/* ==========================================================================
   Velang Cards storefront, v3 (2026-10-11).
   Owner record: docs/features/cards-storefront/SPEC.md

   THESIS: the deck sells itself once you hold a real card. The page leads with
   the offer, the price and a working card, then answers the buyer's questions
   in the order they ask them. It refuses the feature-card grid and the stat row.
   OWN-WORLD: Velang blue system (approved 2026-10-06). Warm paper ground, navy
   ink, one action blue for every action, the brand's cream speech bubble as the
   only decorative shape, a navy band for the price. Lora headings, Outfit text;
   Noto Naskh Arabic and Readex Pro carry the same roles in Arabic.
   STORY: what it is (A0-B2 Anki deck), proof it works (founder pass, learners),
   what is inside (real counts per level), how to start (3 steps), what it costs.
   FIRST VIEWPORT: headline, one line of facts, price and the buy button on the
   start side; the live card phone inside a cream bubble on the end side.
   FORM: conventional product page, conversion-first, by owner decision
   ("whatever converts best"). The in-phone card keeps the deck's own design.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F0F1F2;
  --ink: #153357;
  --text: #23282E;
  --muted: #5F6763;
  --line: #E4E1D8;
  --line-strong: #D3CFC3;
  --action: #2E7CB4;
  --action-deep: #1F5A86;
  --on-action: #FFFFFF;
  --select: #E7F2FA;
  --logo-blue: #4BA2D4;
  --cream: #F7E8CB;
  --gold: #B97C12;
  --band: #153357;
  --band-text: #F3F5F2;
  --band-muted: #B9C6D6;
  --danger: #C2372F;

  /* Deck card colours: the shipped .apkg design, shown as-is in the demo. */
  --deck-green: #197944;
  --deck-honey: #EDCF73;

  --font-display: "Lora", "Noto Naskh Arabic", Georgia, serif;
  --font-text: "Outfit", "Readex Pro", system-ui, sans-serif;
  --font-num: "Outfit", "Readex Pro", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(21, 51, 87, 0.06), 0 8px 24px rgba(21, 51, 87, 0.08);
  --shadow-lg: 0 2px 4px rgba(21, 51, 87, 0.06), 0 24px 60px rgba(21, 51, 87, 0.16);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 20px;

  /* Tokens read by planner-modern.css and the shared scripts. */
  --brand-green: var(--action);
  --brand-green-dark: var(--action-deep);
  --text-main: var(--text);
  --text-muted: var(--muted);
  --text-dim: var(--muted);
  --border-subtle: var(--line);
  --border-main: var(--line-strong);
  --border-focus: var(--action);
  --bg-surface: var(--surface);
  --bg-surface-elevated: var(--surface);
  --bg-surface-recessed: var(--surface-2);
  --bg-surface-soft: var(--surface-2);
  --accent-honey: var(--gold);
  --on-accent: var(--on-action);
  --font-sans: var(--font-text);
  --font-serif: var(--font-display);
  --font-mono: var(--font-text);
  --radius-btn: 12px;
  --radius-card: var(--radius-lg);
  --radius-box: var(--radius);
  --dur-fast: 160ms;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #101617;
  --surface: #182425;
  --surface-2: #0E171A;
  --ink: #F3F5F2;
  --text: #E4E9E6;
  --muted: #A9B6AE;
  --line: #222E30;
  --line-strong: #2B383B;
  --action: #6FB9E8;
  --action-deep: #3E7CA8;
  --on-action: #0B1A24;
  --select: #1B2F3D;
  --cream: #2A2619;
  --gold: #E3B04B;
  --band: #0B1A26;
  --band-text: #F3F5F2;
  --band-muted: #9FB2C4;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.45);
  --deck-green: #55CB76;
  --deck-honey: #C9A43E;
  color-scheme: dark;
}

/* Base ------------------------------------------------------------------ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 700; line-height: 1.12; text-wrap: balance; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

[dir="ltr"], .de { unicode-bidi: isolate; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* Buttons --------------------------------------------------------------- */

.btn-primary,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  border: 0;
  background: var(--action);
  color: var(--on-action);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--action-deep);
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), background-color 160ms ease;
  white-space: nowrap;
}
.btn-primary:hover, .btn:hover { background: color-mix(in srgb, var(--action) 88%, #000); }
.btn-primary:active, .btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--action-deep); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.btn-ghost:hover { border-color: var(--action); }

.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }

.link {
  color: var(--action);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  background: none;
  border: 0;
  padding: 0;
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }

.header-nav { display: flex; gap: 24px; margin-inline-start: 8px; }
.header-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.header-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }

.site-language-switch {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-language-switch:hover { background: var(--surface-2); }
.site-language-switch__mark { display: none; }

/* Hero ------------------------------------------------------------------ */

.hero { padding: 48px 0 72px; overflow: clip; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas: "copy stage" "proof stage";
  grid-template-rows: auto 1fr;
  column-gap: 48px;
  align-items: center;
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-proof { grid-area: proof; align-self: start; }
.stage { grid-area: stage; }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
}
:lang(ar) .hero h1, :lang(ar) h2 { letter-spacing: 0; line-height: 1.3; }

.hero-lede { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-lede strong { color: var(--text); font-weight: 600; }

.hero-buy { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-price { margin-top: 14px; color: var(--muted); font-size: 15px; }
.hero-price strong { color: var(--ink); font-weight: 600; }

.hero-proof {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 34em;
}
.hero-proof img { width: 44px; height: 44px; flex: none; margin-top: 2px; }
.hero-proof p { font-size: 15px; color: var(--muted); }
.hero-proof strong { color: var(--text); font-weight: 600; }

/* Demo language chooser (inserted by demo-setup.js after .hero-buy). */
.demo-lang-chooser {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  max-width: 360px;
}
.demo-lang-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.demo-lang-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.demo-lang-close { border: 0; background: none; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; }
.demo-lang-close:hover { background: var(--surface-2); }
.demo-lang-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-lang-option {
  min-height: 46px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-weight: 600;
}
.demo-lang-option:hover { border-color: var(--action); }
.demo-lang-option.is-selected { border-color: var(--action); background: var(--select); color: var(--ink); }

/* The card stage: phone inside the brand's cream speech bubble. */
.stage { position: relative; display: grid; justify-items: center; padding: 28px 0 8px; }
.stage::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 50%;
  width: min(540px, 112%);
  aspect-ratio: 1;
  translate: -50% 0;
  background: var(--cream);
  border-radius: 50%;
  z-index: 0;
}
.stage::after {
  content: "";
  position: absolute;
  top: calc(6% + min(540px, 112%) * 0.80);
  inset-inline-start: calc(50% - min(540px, 112%) * 0.42);
  width: 96px;
  height: 96px;
  background: var(--cream);
  clip-path: polygon(30% 0, 100% 20%, 0 100%);
  z-index: 0;
}
[dir="rtl"] .stage::after { clip-path: polygon(70% 0, 0 20%, 100% 100%); }
.stage > * { position: relative; z-index: 1; }

.taste-tabs-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.taste-tab-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease, color 160ms ease;
}
.taste-tab-btn:hover { color: var(--ink); }
.taste-tab-btn.active { background: var(--ink); color: var(--paper); }
.taste-tab-btn.coming-soon-tab { display: none; }

.phone-frame {
  width: min(360px, 100%);
  background: #0F1416;
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--shadow-lg);
}
.phone-notch { width: 96px; height: 22px; margin: 2px auto 8px; border-radius: 999px; background: #000; }

.phone-screen {
  background: #FFFEFA;
  color: #23282E;
  border-radius: 36px;
  overflow: hidden;
  padding: 18px 14px 18px;
  height: 560px;
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .phone-screen { background: #182425; color: #F3F5F2; }

/* Anki card rendering (deck design, not site chrome). */
.anki-topbar { flex: none; padding: 0 4px 10px; margin-bottom: 12px; border-bottom: 1px solid rgba(127, 127, 127, 0.18); }
.anki-deck { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.anki-card {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  text-align: center;
  padding: 18px 14px;
  border-radius: 16px;
  background: rgba(127, 127, 127, 0.07);
  border: 1px solid rgba(127, 127, 127, 0.16);
}
.anki-card::-webkit-scrollbar { display: none; }
.anki-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid rgba(127, 127, 127, 0.18); }
.anki-usage { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.anki-tag { font-size: 11px; font-weight: 700; color: var(--deck-green); }
.anki-prompt { font-family: "Lora", Georgia, serif; font-size: 27px; font-weight: 700; line-height: 1.3; }
.anki-example { font-size: 15.5px; opacity: 0.75; margin-top: 10px; line-height: 1.5; }
.anki-audio {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  margin-top: 16px; padding: 0;
  border-radius: 13px;
  border: 1px solid #C7A94E;
  background: var(--deck-honey);
  box-shadow: 0 3px 0 #B99B43;
  color: #30312C;
  font-size: 15px;
}
.anki-audio.is-playing { transform: translateY(2px); box-shadow: none; }
.anki-answer { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(127, 127, 127, 0.18); }
.anki-back { font-family: "Lora", Georgia, serif; font-size: 24px; font-weight: 700; color: var(--deck-green); line-height: 1.3; }
.anki-meaning { font-size: 17px; opacity: 0.75; margin-top: 8px; }
.anki-examplebox, .anki-rulebox { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(127, 127, 127, 0.18); }
[data-theme="dark"] .anki-examplebox, [data-theme="dark"] .anki-rulebox { background: rgba(0, 0, 0, 0.2); }
.anki-examplebox .anki-example { margin: 0; opacity: 1; }
.anki-examplemean { font-size: 14px; opacity: 0.7; margin-top: 4px; }
.anki-rulebox { text-align: start; }
.anki-rulelabel { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-bottom: 4px; }
.anki-rulebox p { font-size: 14.5px; line-height: 1.5; }
.cloze { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #FDF7E7; color: #5A440D; border: 1px solid #D6BE82; font-weight: 700; }
[data-theme="dark"] .cloze { background: #D6BE82; color: #1B150A; border-color: #988047; }

.anki-show {
  flex: none;
  margin-top: 12px;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #2B3236;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
}
[data-theme="dark"] .anki-show { background: #E4E9E6; color: #101617; }
.anki-show[hidden], .anki-grades[hidden] { display: none; }
.anki-grades { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.anki-grade {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 52px; padding: 6px 2px;
  border-radius: 12px;
  border: 1px solid rgba(127, 127, 127, 0.22);
  background: none;
}
.anki-grade b { font-size: 13.5px; font-weight: 700; }
.anki-grade i { font-style: normal; font-size: 11.5px; opacity: 0.6; }
.anki-grade.rating-again b { color: #C2372F; }
.anki-grade.rating-hard b { color: #A9771A; }
.anki-grade.rating-good b { color: var(--deck-green); }
.anki-grade.rating-easy b { color: #2E7CB4; }
.anki-grade.rating-pressed { transform: translateY(2px); }

.stage-note { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

/* Sections -------------------------------------------------------------- */

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.02em; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* Proof */
.proof-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: start; }
.proof-story h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.02em; }
.proof-story p { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 36em; }
.proof-figures { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 40px; }
.proof-figures div { display: grid; gap: 2px; }
.proof-figures strong { font-family: var(--font-display); font-size: 34px; color: var(--ink); line-height: 1.1; }
.proof-figures span { font-size: 14px; color: var(--muted); }
.proof-quotes { display: grid; gap: 0; }
.proof-quotes figure { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.proof-quotes figure:first-child { padding-top: 0; }
.proof-quotes blockquote { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.45; color: var(--ink); }
.proof-quotes figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Levels ladder */
.ladder { display: grid; gap: 0; border-top: 1px solid var(--line); }
.rung {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 140px;
  gap: 8px 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.rung-code { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--action); line-height: 1; }
.rung-body h3 { font-family: var(--font-text); font-size: 18px; font-weight: 600; color: var(--ink); }
.rung-body p { margin-top: 2px; font-size: 15.5px; color: var(--muted); }
.rung-count { text-align: end; font-size: 15px; color: var(--muted); }
.rung-count strong { display: block; font-size: 22px; color: var(--ink); font-weight: 600; }
.rung-bar { grid-column: 2 / 4; height: 6px; border-radius: 99px; background: var(--select); overflow: hidden; }
.rung-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--action); transform-origin: left center; }
[dir="rtl"] .rung-bar i { transform-origin: right center; }

.mix { margin-top: 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.mix div { display: grid; gap: 2px; }
.mix strong { font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.mix span { font-size: 14.5px; color: var(--muted); }

/* Steps + setup guide */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { list-style: none; counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--select);
  color: var(--action-deep);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
}
[data-theme="dark"] .steps li::before { color: var(--action); }
.steps h3 { font-family: var(--font-text); font-size: 19px; font-weight: 600; }
.steps p { font-size: 16px; color: var(--muted); }
ol.steps { padding: 0; margin: 0; }

.setup { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.setup h3 { font-size: 24px; }
.setup > p { margin-top: 8px; color: var(--muted); }

.platform-tabs-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.platform-tab-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.platform-tab-btn:hover { border-color: var(--action); }
.platform-tab-btn.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.tutorial-steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tutorial-step-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-content: start; }
.step-badge {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.step-content { display: grid; gap: 6px; align-content: start; }
.step-visual { margin: 0 0 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.step-visual img { width: 100%; height: auto; }
.step-visual figcaption, .step-screenshot figcaption { font-size: 12.5px; color: var(--muted); padding: 6px 10px; }
.step-title { font-family: var(--font-text); font-size: 16px; font-weight: 600; }
.step-desc { font-size: 15px; color: var(--muted); }
.step-desc strong { color: var(--text); font-weight: 600; }
.step-action-btn { justify-self: start; margin-top: 4px; color: var(--action); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.step-tip { font-size: 13.5px; color: var(--muted); }

/* Planner wrapper */
.planner-shell { max-width: 980px; }
.plan-card.progressive-planner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; }

/* Price band */
.band { background: var(--band); color: var(--band-text); }
.band h2, .band h3 { color: var(--band-text); }
.band .section-head p { color: var(--band-muted); }
.section.band + .section { border-top: 0; }

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 0;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.offer-main { padding: 40px; }
.offer-main h3 { color: var(--ink); font-size: 26px; }
.offer-main > p { margin-top: 6px; color: var(--muted); }
.offer-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.offer-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 16px; }
.offer-list li::before {
  content: "";
  width: 20px; height: 20px; margin-top: 3px;
  border-radius: 50%;
  background: var(--select) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%232E7CB4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.offer-side { padding: 40px; background: var(--surface-2); display: grid; align-content: start; gap: 18px; border-inline-start: 1px solid var(--line); }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-big { font-size: 56px; font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.price-cur { font-size: 20px; font-weight: 600; color: var(--ink); }
.price-alt { font-size: 15px; color: var(--muted); }
.price-alt strong { color: var(--text); font-weight: 600; }
.price-once { font-size: 15px; color: var(--muted); }
.pay-marks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-marks img { height: 28px; width: auto; padding: 4px 8px; background: #fff; border-radius: 6px; border: 1px solid var(--line); }
.offer-facts { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.offer-facts div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.offer-facts dt { color: var(--muted); }
.offer-facts dd { margin: 0; color: var(--text); }
.offer-policy { font-size: 14px; color: var(--muted); }
.offer-policy a { color: var(--action); }
.band-demo { margin-top: 28px; text-align: center; color: var(--band-muted); font-size: 16px; }
.band-demo button { color: var(--band-text); font-weight: 600; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; }

/* Fit + FAQ */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 72px; }
.fit-grid h3 { font-size: 22px; margin-bottom: 14px; }
.fit-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fit-grid li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--text); }
.fit-grid li::before { content: "✓"; color: var(--action); font-weight: 700; }
.fit-grid .fit-no li { color: var(--muted); }
.fit-grid .fit-no li::before { content: "–"; color: var(--muted); }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: 0;
  text-align: start;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.faq-icon { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 18px; transition: transform 240ms var(--ease); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-clip { overflow: hidden; }
.faq-answer-inner { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
.faq-answer-inner strong { color: var(--text); }
.faq-answer-inner a { color: var(--action); }

/* Closing */
.closing { text-align: center; }
.closing h2 { font-size: clamp(2rem, 4vw, 3rem); }
.closing p { margin: 14px auto 28px; color: var(--muted); max-width: 32em; }
.closing .hero-buy { justify-content: center; margin-top: 0; }

/* Footer */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* Sticky mobile buy bar (shown by slickpay-checkout.js) */
.buy-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(21, 51, 87, 0.1);
}
.buy-bar-info { display: grid; line-height: 1.25; }
.buy-bar-info strong { color: var(--ink); font-size: 15px; }
.buy-bar-price { font-size: 13.5px; color: var(--muted); }
.buy-bar .btn-primary { min-height: 46px; }

/* Modals: checkout, success, canceled ------------------------------------ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 22, 36, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.is-active { display: flex; animation: fade-in 200ms ease-out; }
.modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  animation: rise-in 280ms var(--ease);
}
.modal-checkout-card { width: min(880px, 100%); padding: 0; }
.modal-close-btn {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 0;
  background: var(--surface-2);
  color: var(--muted);
}
.modal-close-btn:hover { color: var(--ink); }
.modal-title { font-size: 24px; margin-bottom: 10px; }
.modal-field-note { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.modal-card > .btn-primary { margin-top: 16px; width: 100%; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.checkout-summary-pane { padding: 32px 28px; background: var(--surface-2); border-inline-end: 1px solid var(--line); display: grid; align-content: start; gap: 20px; }
.checkout-product-pill { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.checkout-product-flag { display: none; }
.checkout-product-title { font-size: 22px; margin-top: 6px; }
.checkout-product-subtitle { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.checkout-breakdown { display: grid; gap: 10px; }
.checkout-line-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.checkout-line-check { color: var(--action); font-weight: 700; }
.checkout-line-val { color: var(--muted); text-align: end; }
.checkout-total-divider { height: 1px; background: var(--line-strong); }
.checkout-total-row { display: flex; justify-content: space-between; align-items: baseline; }
.checkout-total-label { font-weight: 600; }
.checkout-total-amount { font-size: 24px; font-weight: 600; color: var(--ink); }
.checkout-fulfillment-note { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 13.5px; color: var(--muted); }
.checkout-fulfillment-note svg { margin-top: 3px; color: var(--action); }
.checkout-fulfillment-note strong { color: var(--text); display: block; }

.checkout-form-pane { padding: 32px 28px; }
.checkout-form-header { margin-bottom: 20px; padding-inline-end: 40px; }
.checkout-form-title { font-family: var(--font-text); font-size: 19px; font-weight: 600; }
.checkout-form-subtitle { font-size: 14px; color: var(--muted); margin-top: 2px; }
#checkoutForm { display: grid; gap: 18px; }

.deck-language-choice { border: 0; padding: 0; margin: 0; }
.deck-language-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.deck-language-option { position: relative; display: grid; place-items: center; min-height: 42px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.deck-language-option input { position: absolute; opacity: 0; pointer-events: none; }
.deck-language-option:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.deck-language-option:has(input:focus-visible) { outline: 3px solid var(--action); outline-offset: 2px; }

.payment-methods-selector { display: grid; gap: 8px; }
.payment-method-btn {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  text-align: start;
}
.payment-method-btn:hover { border-color: var(--action); }
.payment-method-btn.active { border-color: var(--action); background: var(--select); }
.pm-radio { display: block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); }
.payment-method-btn.active .pm-radio { border: 6px solid var(--action); }
.pm-info { display: grid; }
.payment-method-label { font-weight: 600; font-size: 15px; color: var(--ink); }
.pm-sub { font-size: 13px; color: var(--muted); }
.pm-marks { display: flex; gap: 4px; }
.pm-marks img { height: 22px; width: auto; padding: 2px 4px; background: #fff; border-radius: 4px; border: 1px solid var(--line); }

.customer-info-section { display: grid; gap: 14px; }
.form-group { display: grid; gap: 6px; }
.form-label { font-size: 14px; font-weight: 600; }
.required-star { color: var(--danger); }
.form-input {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-size: 16px;
}
.form-input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px var(--select); }
.form-error { color: var(--danger); font-size: 14px; }
.checkout-submit-btn { width: 100%; }
.checkout-terms-line { font-size: 13px; color: var(--muted); text-align: center; }
.checkout-terms-line a { color: var(--action); }
.verification-message { color: var(--text); font-size: 15px; margin-bottom: 12px; }
.verification-support { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.verification-support a { color: var(--action); }

.checkout-screen { position: fixed; inset: 0; z-index: 110; background: #0d1c20; color: #F3F5F2; display: flex; flex-direction: column; }
.checkout-screen[hidden] { display: none; }
.checkout-screen-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.checkout-screen-back { min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: inherit; }
.checkout-screen-body { flex: 1; overflow-y: auto; padding: 16px; }

#successModal .modal-card { text-align: center; }
#successModal .btn-primary { width: 100%; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

/* Motion: the level bars draw once when the ladder enters view. */
.ladder.is-armed .rung-bar i { transform: scaleX(0); }
.ladder.is-armed.is-in .rung-bar i { transform: scaleX(1); transition: transform 1100ms var(--ease); }
.ladder.is-armed.is-in .rung:nth-child(2) .rung-bar i { transition-delay: 80ms; }
.ladder.is-armed.is-in .rung:nth-child(3) .rung-bar i { transition-delay: 160ms; }
.ladder.is-armed.is-in .rung:nth-child(4) .rung-bar i { transition-delay: 240ms; }
.ladder.is-armed.is-in .rung:nth-child(5) .rung-bar i { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ladder.is-armed .rung-bar i { transform: none; }
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1080px) {
  .tutorial-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .header-nav { display: none; }
  .hero { padding: 28px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "stage" "proof"; grid-template-rows: auto; row-gap: 36px; }
  .hero-proof { margin-top: 0; }
  .proof-grid { grid-template-columns: 1fr; gap: 40px; }
  .offer { grid-template-columns: 1fr; }
  .offer-side { border-inline-start: 0; border-top: 1px solid var(--line); }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary-pane { order: 2; border-inline-end: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .fit-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .header-row { height: 60px; gap: 10px; }
  .brand-name { font-size: 17px; }
  .header-actions { gap: 4px; }
  .header-actions .btn-primary { display: none; }
  .site-language-switch { padding: 0 8px; font-size: 14px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero-lede { font-size: 17px; margin-top: 16px; }
  .hero-buy { margin-top: 24px; }
  .hero-buy > * { flex: 1 1 100%; }
  .hero-proof { margin-top: 24px; }
  .phone-screen { height: 500px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .rung { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 6px 14px; padding: 18px 0; }
  .rung-code { font-size: 24px; }
  .rung-count strong { font-size: 18px; }
  .rung-bar { grid-column: 1 / 4; }
  .mix { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .tutorial-steps-grid { grid-template-columns: 1fr; }
  .offer-main, .offer-side { padding: 28px 22px; }
  .price-big { font-size: 46px; }
  .proof-figures { gap: 28px; }
  .buy-bar.is-on { display: flex; }
  body:has(.buy-bar.is-on) .site-footer { padding-bottom: 96px; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-card { border-radius: 22px 22px 0 0; max-height: 94dvh; width: 100%; }
  .checkout-form-pane, .checkout-summary-pane { padding: 26px 18px; }
}

/* Goal answer in the hero (cards-goal.js) ------------------------------- */

.goal {
  margin-top: 26px;
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  max-width: 34em;
}
.goal fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.goal legend, .goal-label { float: inline-start; width: 118px; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.goal-label small { font-weight: 400; color: var(--muted); }
.goal-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.goal-chips label { position: relative; }
.goal-chips input { position: absolute; opacity: 0; pointer-events: none; }
.goal-chips span {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.goal-chips span:hover { border-color: var(--action); }
.goal-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.goal-chips input:disabled + span { opacity: 0.35; cursor: not-allowed; border-style: dashed; }
.goal-chips input:focus-visible + span { outline: 3px solid var(--action); outline-offset: 2px; }
.goal-date { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.goal-date input {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-size: 15px;
  color: var(--text);
}
.goal-date input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px var(--select); }
.goal-answer { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.goal-answer strong { font-family: var(--font-display); font-size: 24px; line-height: 1.25; color: var(--ink); }
.goal-answer span { font-size: 15px; color: var(--muted); }
.goal-answer span:empty { display: none; }
.goal.is-easy [data-goal-pace] { color: var(--action-deep); font-weight: 600; }
.goal.is-firm [data-goal-pace] { color: var(--gold); font-weight: 600; }
.goal.is-hard [data-goal-pace] { color: var(--danger); font-weight: 600; }
[data-theme="dark"] .goal.is-easy [data-goal-pace] { color: var(--action); }
.goal-note { font-size: 13px; color: var(--muted); }
.hero .goal + .hero-buy { margin-top: 20px; }

.guarantee { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.guarantee::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7CB4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.band .guarantee { color: var(--band-text); }

/* Payment help + in-app browser notice (cards-page.js) */
.checkout-help { display: block; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--action); text-decoration: underline; text-underline-offset: 4px; }
.inapp-card { display: grid; gap: 12px; text-align: start; }
.inapp-body, .inapp-ios { color: var(--muted); font-size: 15px; }
.inapp-ios { color: var(--text); font-weight: 600; }
.inapp-anyway { justify-self: center; font-size: 14px; }
.inapp-success-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

@media (max-width: 640px) {
  .goal { padding: 16px; margin-top: 20px; }
  .goal legend, .goal-label { float: none; width: 100%; }
  .goal-chips span { min-width: 56px; min-height: 44px; }
  .goal-answer strong { font-size: 21px; }
}
