/* ==========================================================================
   SihatAI Website — Marketing Site Stylesheet
   Design: app brand blue (#1D59FF) + light wellness, Manrope, mobile-first
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  --c-primary: #1D59FF;        /* app brand blue — Home / points / credits  */
  --c-primary-dark: #1546D6;   /* hover / pressed                           */
  --c-primary-soft: #DCE6FF;   /* chips, icon-chip bg                       */
  --c-primary-tint: #F3F6FF;   /* alternating section bg                    */
  --c-accent: #16a34a;         /* green-600 — checkmarks, success accents   */
  --c-accent-soft: #dcfce7;    /* green-100 — badge background              */
  --c-amber: #f59e0b;          /* amber-500 — credits/points accents        */
  --c-amber-soft: #fef3c7;     /* amber-100 — credits badge background      */
  --c-ink: #0f172a;            /* slate-900 — headings                      */
  --c-ink-2: #334155;          /* slate-700 — body text                     */
  --c-ink-3: #64748b;          /* slate-500 — muted text                    */
  --c-line: #e2e8f0;           /* slate-200 — borders                       */
  --c-bg: #F6F8FC;             /* page background (air white, faint blue)   */
  --c-surface: #ffffff;

  --font-sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.06);
  --sh-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --sh-lg: 0 16px 40px rgba(29, 89, 255, 0.16);

  --container: 1140px;
  --gutter: 16px;

  --bp-sm: 640px;
  --bp-md: 900px;
  --bp-lg: 1100px;
}

/* ── 2. Reset & base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-ink-2);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--c-ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 800;
}

p { margin: 0 0 16px; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }
img { max-width: 100%; display: block; }
strong { color: var(--c-ink); font-weight: 700; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── 3. Typography helpers ────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.section-head p { color: var(--c-ink-3); font-size: 1.02rem; margin: 0; }

/* ── 4. Buttons & badges ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  min-height: 48px;
  text-align: center;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--sh-md);
}

.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--c-primary-dark);
  border-color: var(--c-primary);
}

.btn-outline:hover { background: var(--c-primary-tint); color: var(--c-primary-dark); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-accent-soft);
  color: var(--c-accent);
}

.badge-amber { background: var(--c-amber-soft); color: #b45309; }

/* Store badges */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn-store {
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  line-height: 0;
}

.btn-store:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-store img { height: 48px; width: auto; }

/* ── 5. Sections & grids ──────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--c-primary-tint); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }

.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--c-ink-3); font-size: 0.95rem; margin: 0; }

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  margin-bottom: 16px;
}

.icon-chip svg { width: 24px; height: 24px; }

/* Chips (selectable pills) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-ink-2);
  background: var(--c-surface);
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 38px;
}

.chip:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }
.chip.is-active { background: var(--c-primary-soft); border-color: var(--c-primary); color: var(--c-primary-dark); }

/* ── 6. Header / navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #f1f5f9;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-nav.is-scrolled {
  box-shadow: var(--sh-sm);
  background: rgba(255, 255, 255, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo img { height: 38px; width: auto; }

.nav-links {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-ink-2);
  padding: 9px 14px;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover { color: var(--c-primary-dark); background: var(--c-primary-tint); }
.nav-links a.is-active { color: var(--c-primary-dark); background: var(--c-primary-soft); }

.nav-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-links.nav-open + .nav-cta { margin-left: 0; }

.lang-toggle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-primary-dark);
  background: var(--c-primary-soft);
  border: 1.5px solid var(--c-primary);
  border-radius: 999px;
  padding: 8px 12px;
  min-width: 48px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-toggle:hover { background: var(--c-primary-tint); }

.nav-get-app { min-height: 42px; padding: 10px 18px; font-size: 0.88rem; }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .hamburger { display: none; }
  .nav-links { display: flex; }
  .nav-cta { margin-left: 0; }
}

/* Mobile slide-down menu */
.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--sh-md);
  padding: 12px var(--gutter) 16px;
  margin: 0;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links.nav-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-links a { display: block; text-align: left; }

@media (min-width: 900px) {
  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { display: inline-flex; }
}

/* ── 7. Hero ──────────────────────────────────────────────────────────── */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(220, 230, 255, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(243, 246, 255, 0.9) 0%, transparent 55%),
    var(--c-bg);
}

.hero-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 18px;
}

.hero-copy h1 em { font-style: normal; color: var(--c-primary); }

.hero-sub {
  font-size: 1.08rem;
  color: var(--c-ink-3);
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.hero-chips .chip { background: var(--c-surface); }

.hero-micro { font-size: 0.82rem; color: var(--c-ink-3); margin-top: 14px; }

.hero-points {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--c-ink-2);
}

.hero-points strong { color: var(--c-ink); }

.hero-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--c-primary);
  position: relative;
}

.hero-check::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
}

/* Phone fan (screenshot showcase) */
.phone-fan {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 460px;
  margin: 0 auto;
}

.fan-phone {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05);
  transition: transform 0.8s ease;
}

.fan-phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.fan-phone img.is-on { opacity: 1; }

.fan-1 { width: 150px; height: 300px; left: 0; top: 88px; transform: rotate(-22deg); z-index: 1; }
.fan-2 { width: 162px; height: 324px; left: 12%; top: 52px; transform: rotate(-12deg); z-index: 2; }
.fan-3 { width: 176px; height: 352px; left: 28%; top: 26px; transform: rotate(-2deg); z-index: 4; }
.fan-4 { width: 168px; height: 336px; left: 46%; top: 42px; transform: rotate(10deg); z-index: 3; }
.fan-5 { width: 154px; height: 308px; left: 60%; top: 72px; transform: rotate(20deg); z-index: 2; }

@media (min-width: 640px) {
  .fan-1 { width: 155px; height: 310px; }
  .fan-2 { width: 168px; height: 335px; }
  .fan-3 { width: 182px; height: 365px; }
  .fan-4 { width: 175px; height: 350px; }
  .fan-5 { width: 160px; height: 320px; }
}

@media (max-width: 479px) {
  .phone-fan { height: 380px; }
  .fan-1, .fan-2, .fan-4, .fan-5 { display: none; }
  .fan-3 { left: 50%; top: 20px; transform: translateX(-50%) rotate(0deg); }
}

/* Fallback card shown when screenshots fail (e.g. dev vhost) */
.fan-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1D59FF 0%, #1546D6 55%, #0F2F9E 100%);
  color: #fff;
  text-align: center;
  padding: 32px;
  box-shadow: var(--sh-lg);
}

.fan-fallback svg { width: 64px; height: 64px; opacity: 0.9; }

.fan-fallback strong {
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.fan-fallback span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  max-width: 260px;
}

/* ── 8. Feature sections ──────────────────────────────────────────────── */
.vital-card { display: flex; flex-direction: column; }

.vital-card .vital-name { font-size: 1rem; font-weight: 700; color: var(--c-ink); margin-bottom: 4px; }
.vital-card p { font-size: 0.85rem; }

/* Health Wizard demo */
.demo-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  overflow: hidden;
  max-width: 640px;
}

.demo-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--c-primary-tint);
  border-bottom: 1px solid var(--c-line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-primary-dark);
}

.demo-topbar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-primary); opacity: 0.6; }
.demo-topbar .dot:nth-child(2) { opacity: 0.35; }
.demo-topbar .dot:nth-child(3) { opacity: 0.18; }

.demo-body { padding: 24px; }

.demo-label { font-size: 0.8rem; font-weight: 700; color: var(--c-ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }

.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.demo-output {
  min-height: 120px;
  border-radius: var(--r-md);
  background: var(--c-bg);
  border: 1px dashed var(--c-line);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
}

.demo-output.is-typing { align-items: center; justify-content: center; color: var(--c-ink-3); font-weight: 600; }

.demo-summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.demo-output .demo-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

.demo-output ul { margin: 0; padding-left: 18px; }
.demo-output li { margin-bottom: 6px; }

.demo-disclaimer { font-size: 0.78rem; color: var(--c-ink-3); margin-top: 12px; }

.typing-cursor::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--c-primary);
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Steps */
.step { position: relative; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
  box-shadow: var(--sh-md);
}

.rewards-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Social proof / section 03 mocks */
.mock-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 16px; box-shadow: var(--sh-sm); }
.mock-row { display: flex; align-items: center; gap: 10px; }
.mock-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.8rem;
  flex-shrink: 0;
}
.mock-bubble {
  background: var(--c-bg);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--c-ink-2);
}
.mock-line { height: 8px; border-radius: 4px; background: var(--c-line); }
.mock-line.w60 { width: 60%; }
.mock-line.w80 { width: 80%; }
.mock-line.w40 { width: 40%; }

/* ── 9. CTA band ──────────────────────────────────────────────────────── */
.cta-band {
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #1D59FF 0%, #1546D6 60%, #0F2F9E 100%);
  color: #fff;
  padding: 56px 32px;
  text-align: center;
  box-shadow: var(--sh-lg);
}

.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 26px; }
.cta-band .store-row { justify-content: center; }

/* ── 10. Footer ───────────────────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: 72px;
  padding: 56px 0 28px;
  font-size: 0.9rem;
}

.site-footer .footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 640px) { .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }

.site-footer .footer-brand img { height: 36px; width: auto; margin-bottom: 12px; }
.site-footer .footer-brand p { margin: 0; max-width: 300px; font-size: 0.88rem; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: #94a3b8; transition: color 0.15s ease; }
.site-footer ul a:hover { color: #fff; }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.16); }
.footer-social img { width: 20px; height: 20px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ── 11. Page hero (inner pages) ──────────────────────────────────────── */
.page-hero {
  padding: 56px 0 24px;
  background: linear-gradient(180deg, var(--c-primary-tint) 0%, var(--c-bg) 100%);
}

.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.page-hero p { color: var(--c-ink-3); margin: 0; max-width: 560px; }

/* ── 12. FAQ ──────────────────────────────────────────────────────────── */
.faq-wrap { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  color: var(--c-ink);
  list-style: none;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--c-primary-tint); }

.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-item .faq-body { padding: 0 20px 18px; color: var(--c-ink-3); }
.faq-item .faq-body p { margin: 0; font-size: 0.95rem; }

/* ── 13. Forms ────────────────────────────────────────────────────────── */
.form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  padding: 32px;
  max-width: 640px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-ink-2);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(29, 89, 255, 0.15);
}

.field-error { font-size: 0.8rem; font-weight: 600; color: #dc2626; margin-top: 6px; }

.form-honeypot { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.form-field-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.45;
}

.form-field-check input[type="checkbox"] {
  width: auto;
  min-height: 0;
  padding: 0;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Alerts */
.alert {
  border-radius: var(--r-md);
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.alert-success { background: var(--c-accent-soft); color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.alert-error ul { margin: 8px 0 0; padding-left: 18px; }

/* ── 14. Legal docs (sticky sidebar, GitBook-style) ───────────────────── */
.legal-shell {
  max-width: 1152px;
  margin: 0 auto;
  padding: 32px 16px 96px;
}

.legal-layout { display: block; }

.legal-sidebar {
  margin-bottom: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
}

.legal-sidebar-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin: 0 0 12px;
}

.legal-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: legal-toc;
}

.legal-toc li {
  margin: 0 0 4px;
  counter-increment: legal-toc;
}

.legal-toc a {
  display: block;
  position: relative;
  padding: 10px 14px 10px 16px;
  border-radius: 10px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.legal-toc a::before {
  content: counter(legal-toc) ". ";
  font-weight: 700;
}

.legal-toc a:hover {
  color: var(--c-primary-dark);
  background: var(--c-primary-tint);
  text-decoration: none;
}

.legal-toc a.is-active {
  color: var(--c-primary-dark);
  background: var(--c-primary-soft);
  box-shadow: inset 4px 0 0 var(--c-primary);
}

.legal-hero { margin-bottom: 8px; }

.legal-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: #0f172a;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--c-ink-3);
  margin: 0 0 12px;
}

.legal-hero > p:last-of-type {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 8px;
  max-width: 42rem;
}

.legal-section {
  scroll-margin-top: 96px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 28px 12px;
  margin-bottom: 20px;
}

.legal-section:first-child h2 {
  margin-top: 0;
}

.legal-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 22px 0 10px;
}

.legal-body {
  color: #1e293b;
  font-size: 16px;
  line-height: 1.7;
}

.legal-body p {
  color: #1e293b;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 24px;
  padding-left: 1.25rem;
  color: #1e293b;
  font-size: 16px;
  line-height: 1.7;
}

.legal-body li { margin-bottom: 8px; }

.legal-cite {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
  border-left: 3px solid var(--c-primary-soft);
  padding: 10px 14px;
  margin: 0 0 24px;
  background: var(--c-primary-tint);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

@media (min-width: 900px) {
  .legal-shell { padding: 48px 16px 120px; }

  .legal-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 48px;
    align-items: start;
  }

  .legal-sidebar {
    grid-column: span 4;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .legal-article { grid-column: span 8; min-width: 0; }
}

/* kept for About Us cards */
.legal-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 28px 32px;
  margin-bottom: 20px;
}

.legal-card h2 { font-size: 1.25rem; margin-bottom: 12px; }
.legal-card p { font-size: 0.95rem; color: var(--c-ink-2); margin-bottom: 12px; }
.legal-card p:last-child { margin-bottom: 0; }

.about-hero {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-hero { grid-template-columns: 1fr 1fr; }
}

/* ── 15. Utility ──────────────────────────────────────────────────────── */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }

.contact-wrap {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

.contact-info .card { margin-bottom: 16px; }
.contact-info h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-info p { margin: 0; font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  .fan-phone img { transition: none; }
}
