/* Noble Gas — site design system. See DESIGN.md.
   ONE stylesheet shared by the landing page, platform guide, contact,
   account-deletion, privacy and terms so every surface reads as one product.

   Light is the DEFAULT theme and matches the mobile app palette
   (lib/theme/app_tokens.dart). Dark mode is opt-in via [data-theme="dark"]
   on <html>, toggled in the navbar and remembered in localStorage.
   No background "radiance" gradients — flat, calm surfaces in both themes. */

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

:root {
  /* Brand (identical in both themes) */
  --brand: #76B729;
  --brand-light: #8FCE43;
  --brand-strong: #4D7A2F;
  --brand-deep: #36571F;
  --gold: #F4B401;
  --gold-soft: #FFD766;

  /* ---- LIGHT THEME (default — mirrors the mobile app) ---- */
  --bg: #FFFFFF;              /* page background */
  --bg-tint: #F5FAEE;        /* app surfaceMuted — soft green wash for strips */
  --surface: #FFFFFF;        /* cards */
  --surface-2: #F9FBF5;      /* subtly raised card */
  --surface-3: #F2F4F7;      /* app surfaceSubtle */
  --footer-bg: #0E1B08;      /* footer stays a deep brand green in both themes */

  /* Foreground (app text ramp) */
  --heading: #101828;        /* textPrimary */
  --fg: #344054;             /* textSecondary — body copy */
  --fg-2: #475467;
  --fg-3: #667085;           /* textTertiary — muted labels */
  --ink-900: #101828;        /* device bezels / on-light chips */

  --link: #4D7A2F;           /* readable green link on light */
  --gold-text: #9A6E00;      /* readable "gold" for text/numbers on light */

  --line: #E4E7EC;
  --line-2: #D0D5DD;

  /* Tints (icon chips, accents) */
  --tint-brand: rgba(118,183,41,.12);
  --tint-brand-line: rgba(118,183,41,.30);
  --tint-gold: rgba(244,180,1,.14);
  --tint-gold-line: rgba(244,180,1,.42);

  /* Navbar surface */
  --nav-bg: rgba(255,255,255,.82);
  --nav-bg-scrolled: rgba(255,255,255,.94);

  --danger: #D92D20;
  --success: #75B843;

  /* Radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-2xl: 28px; --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --shadow-md: 0 8px 24px rgba(16,24,40,.10);
  --shadow-lg: 0 24px 60px rgba(16,24,40,.16);
  --shadow-brand: 0 8px 22px rgba(118,183,41,.28);
  /* Elevation for elements sitting ON the brand-green gradient. The ink shadows
     above are tuned for light page surfaces and read as dirt on saturated green. */
  --shadow-on-brand: 0 1px 0 rgba(255,255,255,.14) inset, 0 10px 30px rgba(12,22,10,.22);
  --shadow-on-brand-lg: 0 26px 60px rgba(12,22,10,.42);
  --on-brand-panel: rgba(255,255,255,.10);
  --on-brand-line: rgba(255,255,255,.22);
  --focus-ring: 0 0 0 3px rgba(118,183,41,.40);

  /* Motion */
  --t-fast: 140ms; --t-base: 220ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  /* Legacy aliases (support.html predates the token system — these map the
     old names onto semantic tokens so that page themes correctly too). */
  --green-primary: var(--brand);
  --green-dark: var(--brand-strong);
  --green-light: var(--brand-light);
  --green-subtle: var(--bg-tint);
  --dark: var(--heading);
  --dark-gray: var(--fg);
  --medium-gray: var(--fg-3);
  --light-gray: var(--surface-3);
  --white: var(--surface);
  --transition: var(--t-base) var(--ease-out);
  --radius: var(--r-md);
  --radius-sm: var(--r-sm);
}

/* ---- DARK THEME (opt-in) ---- */
[data-theme="dark"] {
  --bg: #0C160A;
  --bg-tint: #101E0C;
  --surface: #16240F;
  --surface-2: #17280F;
  --surface-3: #101E0C;
  --footer-bg: #081106;

  --heading: #FFFFFF;
  --fg: #EAF3E1;
  --fg-2: #B8C9AC;
  --fg-3: #8DA07F;

  --link: #8FCE43;
  --gold-text: #FFD766;

  --line: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.16);

  --tint-brand: rgba(118,183,41,.16);
  --tint-brand-line: rgba(143,206,67,.32);
  --tint-gold: rgba(244,180,1,.14);
  --tint-gold-line: rgba(244,180,1,.42);

  --nav-bg: rgba(12,22,10,.72);
  --nav-bg-scrolled: rgba(12,22,10,.92);

  --danger: #F97066;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.5);
  --shadow-brand: 0 8px 30px rgba(118,183,41,.30);
  --focus-ring: 0 0 0 3px rgba(143,206,67,.45);
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 96px; }

body {
  font-family: 'Urbanist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}

h1, h2, h3, h4 { color: var(--heading); text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color var(--t-base) var(--ease-out); }
a:hover { color: var(--brand-strong); }
[data-theme="dark"] a:hover { color: #fff; }

/* outline, not box-shadow: every component that declares its own box-shadow
   (.btn-primary, .btn-gold, .feature, .contact-card, .reward-card, .chip) has
   equal specificity and later source order, so a box-shadow ring was silently
   overridden — the primary CTAs had no visible focus at all. outline also
   follows the element's own radius, so it no longer squares off pills. */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
::selection { background: rgba(118,183,41,.28); color: var(--heading); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0; z-index: 100; }
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 13px 26px; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .95rem; border-radius: var(--r-md);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-base), box-shadow var(--t-base), border-color var(--t-base), color var(--t-base);
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: #241a00; box-shadow: 0 8px 22px rgba(244,180,1,.30); }
.btn-gold:hover { transform: translateY(-2px); color: #241a00; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-2px); color: #fff; }
.btn-ghost { background: transparent; color: var(--heading); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
[data-theme="dark"] .btn-ghost:hover { border-color: rgba(255,255,255,.4); color: #fff; }

/* ============================ Navigation ============================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(14px); background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-base), background var(--t-base), border-color var(--t-base);
}
.navbar.scrolled { box-shadow: var(--shadow-md); background: var(--nav-bg-scrolled); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 78px; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo .logo-img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links > li > a { color: var(--fg-2); font-weight: 600; font-size: .95rem; }
.nav-links > li > a:hover { color: var(--heading); }
.nav-cta { background: var(--gold); color: #241a00 !important; padding: 11px 22px; border-radius: var(--r-md); font-weight: 700; font-size: .9rem; transition: transform var(--t-fast) var(--ease-out); }
.nav-cta:hover { transform: translateY(-2px); }

/* Right-side controls that stay in the bar on mobile */
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--r-md); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--fg); cursor: pointer;
  transition: border-color var(--t-base), color var(--t-base), background var(--t-base), transform var(--t-fast);
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand-strong); transform: translateY(-1px); }
[data-theme="dark"] .theme-toggle:hover { color: var(--brand-light); border-color: var(--brand); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-moon { display: none; }
.theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: none; border-radius: var(--r-md); cursor: pointer; padding: 8px; z-index: 1001; transition: background var(--t-base), transform var(--t-fast) var(--ease-out); }
.nav-toggle:hover { background: var(--tint-brand); }
.nav-toggle:active { transform: scale(.97); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--heading); margin: 6px auto; transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out); transform-origin: center; }
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0); z-index: 999; pointer-events: none; transition: background var(--t-base) var(--ease-out); }
.nav-backdrop.open { background: rgba(0,0,0,.5); pointer-events: auto; }

/* ============================ Hero ============================ */
.hero { position: relative; padding: 84px 0 60px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-kicker { color: var(--brand-strong); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
[data-theme="dark"] .hero-kicker { color: var(--brand-light); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.03; font-weight: 900; letter-spacing: -.03em; }
.hero .lede { margin: 24px 0 32px; font-size: 1.18rem; line-height: 1.6; color: var(--fg); max-width: 42ch; }
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badges a { display: inline-block; border-radius: var(--r-sm); transition: transform var(--t-fast) var(--ease-out), opacity var(--t-base); }
.store-badges a:hover { transform: translateY(-2px); }
.store-badges a:focus-visible { outline-offset: 4px; }
.store-badges a:active { transform: scale(.97); }
.store-badges img { height: 52px; width: auto; }
.store-status { color: var(--fg-3); font-weight: 600; margin-top: 12px; }
.hero-stats { display: flex; gap: 40px; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.hero-stat .number { font-size: 2rem; font-weight: 900; color: var(--heading); font-variant-numeric: tabular-nums; line-height: 1; }
.hero-stat .number .u { color: var(--gold-text); }
.hero-stat .label { font-size: .85rem; color: var(--fg-3); font-weight: 600; margin-top: 6px; }

.stage { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; }
.phone { width: 296px; border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #26361c, #0b1207); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.06); transform: rotate(3deg); }
.phone img { border-radius: 34px; }
.reward-card { position: absolute; left: -16px; top: 64px; background: var(--surface); border: 1px solid var(--tint-gold-line); border-radius: 20px; padding: 16px 20px; box-shadow: var(--shadow-lg); transform: rotate(-5deg); }
.reward-card .cap { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); font-weight: 700; }
.reward-card .pts { font-size: 2rem; font-weight: 900; color: var(--gold-text); font-variant-numeric: tabular-nums; line-height: 1.15; }
.reward-card .pts small { font-size: .85rem; color: var(--fg); font-weight: 600; }
.chip { position: absolute; right: -8px; bottom: 92px; background: var(--surface); color: var(--heading); border: 1px solid var(--line); border-radius: 15px; padding: 11px 15px; font-weight: 800; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; transform: rotate(4deg); }
.chip .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.chip .ic svg { width: 18px; height: 18px; }

/* ============================ Locations strip ============================ */
.strip { border-bottom: 1px solid var(--line); padding: 30px 0; background: var(--bg); }
.strip .lbl { text-align: center; color: var(--fg-3); font-size: .82rem; font-weight: 600; margin-bottom: 16px; }
.strip .row { display: flex; gap: 12px 14px; flex-wrap: wrap; justify-content: center; }
/* Each location reveals its address on hover / focus / tap */
.loc {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--fg); font-weight: 700; font-size: .95rem; cursor: default;
  transition: border-color var(--t-base), background var(--t-base), color var(--t-base), transform var(--t-fast);
}
.loc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
/* Shared hover/focus treatment, but the focus ring is NOT suppressed here —
   the global :focus-visible outline has to survive on these pills too. */
.loc:hover, .loc:focus-visible { border-color: var(--brand); color: var(--heading); background: var(--tint-brand); transform: translateY(-1px); }
.loc .addr {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px);
  /* nowrap + centre-on-pill pushed the first and last tooltips past the
     viewport edge (the last one added 11px of horizontal scroll on phones).
     Wrap instead of overflowing. */
  max-width: min(240px, 78vw); background: var(--heading); color: var(--bg);
  font-size: .8rem; font-weight: 600; padding: 7px 11px; border-radius: var(--r-sm);
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; z-index: 5;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.loc .addr::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--heading); }
.loc:hover .addr, .loc:focus-within .addr, .loc:focus-visible .addr { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================ Section head ============================ */
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 900; }
.section-head p { color: var(--fg-3); font-size: 1.1rem; line-height: 1.6; margin-top: 14px; }

/* ============================ Features ============================ */
.features { padding: 104px 0 40px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; box-shadow: var(--shadow-sm); transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base); }
.feature:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--tint-brand); border: 1px solid var(--tint-brand-line); display: grid; place-items: center; color: var(--brand-strong); margin-bottom: 18px; }
[data-theme="dark"] .feature .ic { color: var(--brand-light); }
.feature .ic svg { width: 26px; height: 26px; }
.feature.gold .ic { background: var(--tint-gold); border-color: var(--tint-gold-line); color: var(--gold-text); }
.feature h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.feature p { color: var(--fg-3); line-height: 1.6; font-size: .96rem; }

/* ============================ Showcase ============================ */
.showcase { padding: 56px 0 96px; }
.showcase .row { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: 48px; box-shadow: var(--shadow-sm); }
.showcase .art { display: flex; justify-content: center; }
.showcase .art img { width: 288px; border-radius: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); }
.showcase h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 900; margin-bottom: 12px; }
.showcase .sub { color: var(--fg); font-size: 1.05rem; line-height: 1.7; margin-bottom: 26px; max-width: 46ch; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--tint-brand); border: 1px solid var(--tint-brand-line); color: var(--brand-strong); font-weight: 800; display: grid; place-items: center; font-size: .92rem; }
[data-theme="dark"] .steps .n { color: var(--brand-light); }
.steps b { color: var(--heading); font-weight: 700; display: block; }
.steps span { color: var(--fg-3); font-size: .96rem; }

/* ============================ Tiers ============================ */
.tiers { padding: 20px 0 96px; }
.tiers .note { text-align: center; color: var(--fg); font-size: .98rem; margin: 0 auto 40px; max-width: 64ch; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; }
.tiers .note b { color: var(--heading); }
.tier-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface-2); box-shadow: var(--shadow-sm); }
.tier-table-wrap:focus-visible { outline-offset: 4px; }
.tier-comparison { width: 100%; min-width: 760px; border-collapse: collapse; color: var(--fg); font-variant-numeric: tabular-nums; }
.tier-comparison caption { padding: 18px 24px; color: var(--fg-3); text-align: left; font-weight: 700; border-bottom: 1px solid var(--line); }
.tier-comparison th, .tier-comparison td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.tier-comparison thead th { color: var(--heading); font-size: 1.08rem; font-weight: 900; }
.tier-comparison tbody th { color: var(--heading); font-weight: 700; }
.tier-comparison tr:last-child > * { border-bottom: 0; }
.tier-comparison .gold { background: var(--tint-gold); }
.tier-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.tier-dot.bronze { background: #B07A45; }
.tier-dot.silver { background: #9AA0A6; }
.tier-dot.gold { background: var(--gold); }

/* ============================ FAQ ============================ */
.faq { padding: 8px 0 96px; }
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 4px; color: var(--heading); font-size: 1.08rem; font-weight: 800; cursor: pointer; list-style: none; overflow-wrap: anywhere; transition: color var(--t-base), background var(--t-base); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; color: var(--brand-strong); font-size: 1.6rem; font-weight: 500; line-height: 1; transition: transform var(--t-base) var(--ease-out), color var(--t-base); }
.faq-item summary:hover { color: var(--brand-strong); }
.faq-item summary:active { background: var(--tint-brand); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { max-width: 72ch; padding: 0 48px 24px 4px; color: var(--fg); line-height: 1.7; overflow-wrap: anywhere; }
.faq-empty { display: none; margin: 24px 0 0; padding: 24px; color: var(--fg-2); text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.faq-list:not(:has(.faq-item)) { border-top: 0; }
.faq-list:not(:has(.faq-item)) .faq-empty { display: block; }
[data-theme="dark"] .faq-item summary::after, [data-theme="dark"] .faq-item summary:hover { color: var(--brand-light); }

/* ============================ Final CTA ============================ */
.cta { padding: 0 0 100px; }
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--r-2xl);
  padding: 52px 0 52px 54px; background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: center; gap: 24px;
}
.cta-card h2 { position: relative; color: #fff; font-size: clamp(1.9rem, 3.1vw, 2.55rem); font-weight: 900; }
/* Scoped to .cta-lead, NOT .cta-card p — the latter would also capture the scan
   module's caption and beat it on specificity. */
.cta-lead p { position: relative; color: rgba(255,255,255,.92); font-size: 1.06rem; margin: 14px 0 26px; max-width: 40ch; }
.cta-lead { position: relative; }
.cta-card .store-badges { position: relative; }

/* Scan module — sits above the badges as a second download route. The code's
   required white quiet zone is nested inside a panel that belongs to the green
   surface, rather than punched into it (radii concentric: 16 - 8 = 8). */
.cta-scan {
  display: inline-flex; align-items: center; gap: 16px; margin-bottom: 22px;
  padding: 12px 22px 12px 12px; border-radius: var(--r-lg);
  background: var(--on-brand-panel); border: 1px solid var(--on-brand-line);
  transition: transform var(--t-base) var(--ease-out), background var(--t-base);
}
.cta-scan:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
.cta-scan-code { background: #fff; padding: 8px; border-radius: var(--r-sm); line-height: 0; }
.cta-scan-code img { display: block; width: 72px; height: 72px; }
.cta-scan-text { display: block; }
.cta-scan-label { display: block; color: #fff; font-size: .95rem; font-weight: 800; letter-spacing: -.01em; }
.cta-scan-note { display: block; color: rgba(255,255,255,.74); font-size: .73rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-top: 4px; }

/* App screenshot — bleeds off the bottom of the card, clipped by its overflow. */
/* 360px, no negative margin: the phone stops clear of the card's bottom padding
   so it reads as an object sitting on the card, not sliced by its edge. */
.cta-art { position: relative; align-self: stretch; height: 360px; overflow: hidden; }
.cta-phone {
  position: absolute; left: 34px; top: 22px; width: 250px; height: 430px; overflow: hidden;
  background: #fff; border: 1px solid rgba(255,255,255,.20); border-radius: 30px;
  box-shadow: var(--shadow-on-brand-lg); transform: rotate(-3deg);
}
.cta-phone img { display: block; width: 100%; height: auto; }

/* ============================ Footer ============================ */
.site-footer { background: var(--footer-bg); border-top: 1px solid rgba(255,255,255,.08); padding: 64px 0 30px; color: #B8C9AC; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; }
.foot-brand .logo-img { height: 42px; margin-bottom: 16px; }
.foot-brand p { color: #8DA07F; font-size: .95rem; line-height: 1.6; max-width: 32ch; }
.foot-brand address { font-style: normal; color: #6E8362; font-size: .86rem; margin-top: 14px; line-height: 1.5; }
.foot-col h4 { color: #EAF3E1; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 2px; }
.foot-col a { display: block; color: #8DA07F; font-size: .94rem; padding: 6px 0; }
.foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: #6E8362; font-size: .86rem; }
.foot-bottom .social { display: flex; gap: 18px; }
.dev-credit { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================ Page header (guide / legal / contact) ============================ */
.page-hero { position: relative; padding: 72px 0 40px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; }
.page-hero .lede { color: var(--fg); font-size: 1.15rem; line-height: 1.6; margin-top: 14px; max-width: 60ch; }

/* ============================ Guide layout ============================ */
.guide-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding: 48px 0 80px; }
.guide-sidebar { position: sticky; top: 100px; height: fit-content; max-height: calc(100vh - 130px); overflow-y: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.guide-sidebar h3 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.guide-progress { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 12px 14px; color: var(--fg-3); font-size: .78rem; }
.guide-progress strong { color: var(--heading); font-variant-numeric: tabular-nums; }
.guide-toc { list-style: none; }
.guide-toc li { margin-bottom: 2px; }
.guide-toc a { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: var(--r-sm); color: var(--fg-2); font-size: .9rem; font-weight: 500; transition: color var(--t-base), background var(--t-base), transform var(--t-fast) var(--ease-out); }
.guide-toc a .num { color: var(--fg-3); font-variant-numeric: tabular-nums; font-weight: 700; font-size: .8rem; }
.guide-toc a:hover { background: var(--tint-brand); color: var(--heading); }
.guide-toc a:active { transform: scale(.98); }
.guide-toc a.active { background: var(--tint-brand); color: var(--brand-strong); font-weight: 700; }
[data-theme="dark"] .guide-toc a.active { color: #fff; }
.guide-toc a.active .num { color: var(--brand); }
.guide-actions { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.guide-actions .btn { width: 100%; }
.guide-content { max-width: 780px; min-width: 0; }
.guide-timeline { position: relative; padding-left: 64px; }
.guide-timeline::before { content: ""; position: absolute; left: 21px; top: 112px; bottom: 110px; width: 2px; background: var(--line-2); }
.guide-section { margin-bottom: 56px; scroll-margin-top: 100px; }
.guide-timeline .guide-section { position: relative; margin-bottom: 72px; }
.guide-timeline .guide-section::before { content: attr(data-step); position: absolute; left: -64px; top: -4px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--surface); border: 2px solid var(--brand); color: var(--brand-strong); font-size: .82rem; font-weight: 900; font-variant-numeric: tabular-nums; z-index: 1; }
[data-theme="dark"] .guide-timeline .guide-section::before { color: var(--brand-light); }
.guide-section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px; }
.guide-section h2 .num { color: var(--brand); font-size: .9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.guide-timeline .guide-section h2 .num { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.guide-section h3 { font-size: 1.2rem; font-weight: 700; color: var(--heading); margin: 26px 0 10px; }
.guide-section p { color: var(--fg); line-height: 1.7; margin-bottom: 16px; max-width: 68ch; }
.guide-section ul, .guide-section ol { margin: 0 0 18px 0; padding-left: 22px; color: var(--fg); }
.guide-section li { margin-bottom: 8px; line-height: 1.6; }
.guide-section strong { color: var(--heading); }
.guide-intro-card { background: var(--tint-brand); border: 1px solid var(--tint-brand-line); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 40px; color: var(--fg); line-height: 1.65; }
.guide-screenshots { display: flex; gap: 20px; flex-wrap: wrap; margin: 22px 0; }
.shot { flex: 0 0 auto; }
.shot .frame { position: relative; width: 240px; border-radius: 30px; overflow: hidden; border: 6px solid var(--ink-900); background: var(--ink-900); box-shadow: var(--shadow-md); }
.shot .frame img { width: 100%; border-radius: 24px; transition: opacity var(--t-base); }
.guide-timeline .shot .frame.is-loading, .guide-timeline .shot .frame.is-error { aspect-ratio: 9 / 19.5; }
.guide-timeline .shot .frame.is-loading img { opacity: .28; }
.guide-timeline .shot .frame.is-error img { visibility: hidden; }
.guide-timeline .shot .frame.is-loading::after, .guide-timeline .shot .frame.is-error::after { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #fff; font-size: .9rem; font-weight: 700; text-align: center; }
.guide-timeline .shot .frame.is-loading::after { content: "Loading screenshot…"; }
.guide-timeline .shot .frame.is-error::after { content: "Screenshot unavailable"; }
.guide-timeline .guide-screenshots.is-empty .shot { display: none; }
.guide-timeline .guide-screenshots.is-empty::after { content: "Screenshots are temporarily unavailable. The written steps remain complete."; display: block; width: 100%; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); color: var(--fg); font-weight: 600; }
.shot figcaption { text-align: center; margin-top: 10px; font-size: .85rem; color: var(--fg-3); }

/* ============================ Legal / prose ============================ */
.prose-wrap { padding: 40px 0 80px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 40px 0 14px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 26px 0 10px; }
.prose p { color: var(--fg); line-height: 1.75; margin-bottom: 16px; }
.prose ul, .prose ol { color: var(--fg); margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; line-height: 1.65; }
.prose strong { color: var(--heading); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose code { background: var(--surface-3); border: 1px solid var(--line); padding: .12em .4em; border-radius: 5px; font-size: .9em; color: var(--heading); }
.callout { background: var(--tint-brand); border: 1px solid var(--tint-brand-line); border-radius: var(--r-lg); padding: 18px 22px; margin: 24px 0; color: var(--fg); }
.callout.warn { background: var(--tint-gold); border-color: var(--tint-gold-line); }

/* ============================ Contact ============================ */
.contact-wrap { padding: 48px 0 90px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-sm); transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base); }
.contact-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card .ic { flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--tint-brand); border: 1px solid var(--tint-brand-line); display: grid; place-items: center; color: var(--brand-strong); }
[data-theme="dark"] .contact-card .ic { color: var(--brand-light); }
.contact-card .ic svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.contact-card p { color: var(--fg-3); font-size: .94rem; line-height: 1.5; margin-bottom: 8px; }
.contact-card a.link { color: var(--link); font-weight: 700; font-size: .96rem; }
.contact-card a.link:hover { color: var(--brand-strong); }
[data-theme="dark"] .contact-card a.link:hover { color: #fff; }

/* ============================ Responsive ============================ */
@media (max-width: 968px) {
  .hero { padding: 60px 0 48px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { max-width: 100%; }
  .store-badges, .hero-stats { justify-content: center; }
  .stage { height: 440px; margin-top: 20px; }
  .features { padding: 72px 0 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase .row { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .showcase .art { order: -1; }
  /* Stack and centre; the phone is decorative and its 430px bleed costs more
     height than it earns once the card is one column. */
  .cta-card { grid-template-columns: 1fr; text-align: center; gap: 0; padding: 48px 34px; }
  .cta-card .store-badges { justify-content: center; }
  .cta-lead p { margin-inline: auto; }
  .cta-art { display: none; }
  .steps li { text-align: left; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: relative; top: 0; max-height: none; }
  .guide-layout--timeline .guide-progress { justify-content: flex-start; }
  .guide-layout--timeline .guide-toc { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; }
  .guide-layout--timeline .guide-toc li { flex: none; }
  .guide-timeline { padding-left: 56px; }
  .guide-timeline::before { left: 21px; }
  .guide-timeline .guide-section::before { left: -56px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(300px, 82vw); height: 100vh; height: 100dvh; margin: 0; padding: 96px 24px 40px;
    background: var(--surface); border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    box-shadow: -8px 0 40px rgba(0,0,0,.28); z-index: 1000;
    overflow-y: auto;
    /* The closed drawer must not sit outside the viewport. It used to be parked
       at translateX(100%), and body's overflow-x:hidden does NOT clip a fixed
       descendant, so every page was horizontally scrollable by the drawer's
       300px. (overflow-x:clip on <html> also clips it, but turns the root into
       a scroll container and kills the sticky navbar — verified.) So it stays
       in place and reveals by opacity instead.
       visibility also takes the off-canvas links out of the tab order, which
       the transform alone never did. */
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--t-base) var(--ease-out), visibility 0s;
  }
  .nav-links > li > a { display: block; padding: 15px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 16px; text-align: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .navbar .container { height: 66px; }
  .nav-logo .logo-img { height: 34px; }
  .nav-right { gap: 8px; }
  .nav-cta { padding: 9px 14px; font-size: .82rem; }
  .features-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 40px; }
  .hero-stats { gap: 20px; margin-top: 32px; padding-top: 22px; }
  .hero-stat .number { font-size: 1.6rem; }
  .stage { height: 400px; }
  .phone { width: 240px; }
  .features { padding: 56px 0 24px; }
  .section-head { margin-bottom: 40px; }
  .showcase { padding: 40px 0 64px; }
  .showcase .row, .cta-card { padding: 32px 22px; }
  .tiers { padding: 12px 0 64px; }
  .tier-table-wrap { margin-right: -20px; border-radius: var(--r-xl) 0 0 var(--r-xl); }
  .faq { padding: 0 0 64px; }
  .faq-item summary { gap: 16px; padding-block: 20px; }
  .faq-answer { padding: 0 36px 20px 4px; }
  .cta { padding: 0 0 72px; }
  .cta-scan { display: none; }  /* a phone cannot scan its own screen */
  .guide-screenshots { justify-content: center; }
  .guide-timeline { padding-left: 44px; }
  .guide-timeline::before { left: 16px; }
  .guide-timeline .guide-section::before { left: -44px; width: 34px; height: 34px; font-size: .72rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 380px) {
  .store-badges img { height: 46px; }
  .phone { width: 210px; }
  .stage { height: 360px; }
}

/* Print (guide / legal) */
@media print {
  .navbar, .nav-backdrop, .guide-sidebar, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-section, .prose { break-inside: avoid; }
}
