/* ═══════════════════════════════════════════════════════════════
   CardLogic HK — Company Website Stylesheet
   ═══════════════════════════════════════════════════════════════ */

:root {
  --primary: #007AFF;
  --primary-dark: #005EC4;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --text: #1D1D1F;
  --text-secondary: #6E6E73;
  --border: #D2D2D7;
  --radius: 12px;
  --max-width: 800px;
}

/* ── Reset & Base ─────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ── Bilingual Toggle ─────────────────────────────────────────── */

.lang-zh .en { display: none !important; }
.lang-en .zh { display: none !important; }

/* ── Navigation ───────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.nav-links a:hover { color: var(--primary); text-decoration: none; }

.lang-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: inherit;
}

.lang-toggle:hover { background: #E8E8ED; }

/* ── Header bar ───────────────────────────────────────────────── */

header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

/* ── Main Content ─────────────────────────────────────────────── */

main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ── Hero Section ─────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.app-store-badge {
  display: inline-block;
  height: 44px;
  transition: opacity 0.2s;
}

.app-store-badge:hover { opacity: 0.8; }

/* ── Features ─────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 40px 0 60px;
}

.feature-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card .icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Onboarding Guide ─────────────────────────────────────────── */

.guide {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
}

.guide-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.guide-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.guide-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Policy / Support Content ─────────────────────────────────── */

.page-content {
  padding: 40px 0 60px;
}

.page-content h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-content .subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.page-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
}

.page-content p,
.page-content ul {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

.page-content ul {
  padding-left: 1.2em;
  margin-top: 8px;
}

.page-content li { margin-bottom: 4px; }

/* ── FAQ ──────────────────────────────────────────────────────── */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Contact Card ─────────────────────────────────────────────── */

.contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
  text-align: center;
}

.contact-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-card a {
  font-weight: 600;
}

.contact-desc {
  margin-bottom: 20px;
}

.contact-alt {
  margin-top: 20px;
  font-size: 0.85rem;
}

/* ── Contact Form ─────────────────────────────────────────────── */

.contact-form {
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

/* ── Footer ───────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 24px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

footer .footer-links {
  margin-top: 8px;
}

footer .footer-links a {
  color: var(--text-secondary);
  margin: 0 12px;
}

footer .footer-links a:hover { color: var(--primary); }

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }

  .hero { padding: 40px 0 24px; }

  .hero h1 { font-size: 1.5rem; }

  .hero-icon { width: 96px; height: 96px; border-radius: 22px; }

  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.82rem; }
}

/* ── Print ────────────────────────────────────────────────────── */

@media print {
  header, footer, .lang-toggle { display: none; }
  main { max-width: 100%; padding: 0; }
  a { color: var(--text); }
}
