/* ══════════════════════════════════════════════════════════════════════════
   Sentence Professor — website
   Palette and type are carried over from the printed products so the site and
   the books look like one thing.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --ink:        #0A2540;
  --ink-soft:   #1E3A5F;
  --muted:      #5A6B85;
  --faint:      #8798AF;

  --page:       #FFFFFF;
  --surface:    #FFFFFF;
  --surface-2:  #F4F8FD;
  --hairline:   rgba(10, 37, 64, .11);
  --hairline-2: rgba(10, 37, 64, .06);

  --accent:        #0B5FFF;
  --accent-bright: #2E7BFF;
  --accent-deep:   #0847C4;
  --accent-wash:   #EDF4FF;

  --green:      #0E8F63;
  --green-bg:   #E4F5EE;
  --red:        #D22C42;
  --red-bg:     #FCEAEC;

  /* From the book cover, so the site and the book read as one thing. */
  --navy:        #1B2140;
  --gold:        #B5832A;
  --gold-bright: #E0AE4A;

  --shadow-sm:  0 1px 2px rgba(10,37,64,.06), 0 4px 12px rgba(10,37,64,.06);
  --shadow-md:  0 2px 4px rgba(10,37,64,.05), 0 12px 32px rgba(10,37,64,.09);
  --shadow-lg:  0 4px 10px rgba(10,37,64,.06), 0 28px 70px rgba(11,95,255,.14);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
             "Segoe UI", system-ui, Arial, sans-serif;
  --font-display: ui-serif, "New York", Georgia, "Iowan Old Style", "Times New Roman", serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1120px;
  --nav-h: 60px;
}

/* Dark theme — opt-in only. The site stays light whatever the visitor's
   system setting is. To follow the system again, wrap this block in
   @media (prefers-color-scheme: dark) instead. */
:root[data-theme="dark"] {
  --ink:        #E8EEF7;
  --ink-soft:   #C2CFE0;
  --muted:      #94A6BE;
  --faint:      #73869F;

  --page:       #08111F;
  --surface:    #0F1C2E;
  --surface-2:  #122135;
  --hairline:   rgba(255, 255, 255, .12);
  --hairline-2: rgba(255, 255, 255, .06);

  --accent:        #5AA0FF;
  --accent-bright: #7DB6FF;
  --accent-deep:   #2E7BFF;
  --accent-wash:   rgba(90, 160, 255, .12);

  --green:      #3FC98D;
  --green-bg:   rgba(63, 201, 141, .14);
  --red:        #FF8A97;
  --red-bg:     rgba(255, 138, 151, .13);

  --shadow-sm:  0 1px 2px rgba(0,0,0,.45);
  --shadow-md:  0 2px 6px rgba(0,0,0,.45), 0 14px 36px rgba(0,0,0,.38);
  --shadow-lg:  0 4px 12px rgba(0,0,0,.5), 0 30px 70px rgba(0,0,0,.55);
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* .btn's inline-flex would otherwise win */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;            /* clip, not hidden — hidden breaks position:sticky */
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.12; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

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

.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;
}
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 16px; }

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

/* ── Shared type ────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 7.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -.032em;
  margin-top: 18px;
}
.display em { font-style: italic; color: var(--accent); }

.lede {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--muted);
}

.section { padding: clamp(72px, 11vw, 132px) 0; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--hairline-2); }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -.028em;
  margin-top: 14px;
}
.section-sub { margin-top: 16px; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 16px; font-weight: 560; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease), background .22s var(--ease),
              box-shadow .22s var(--ease), border-color .22s var(--ease), opacity .2s;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: var(--accent-deep); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: var(--accent-deep); }

/* In dark mode the accent lightens, so white-on-blue loses contrast.
   Dark text on the light blue reads far better (≈8:1 instead of ≈2.3:1). */
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .btn-accent { color: #06101E; }
:root[data-theme="dark"] .btn-primary:hover,
:root[data-theme="dark"] .btn-accent:hover { background: var(--accent-bright); }

/* A Gumroad button whose link isn't in config.js yet: looks final, goes nowhere. */
.btn[aria-disabled="true"] { cursor: not-allowed; }

.dev-bar {
  padding: 8px 16px; text-align: center;
  background: #FFF4D6; color: #6B4A00; border-bottom: 1px solid #F0D48A;
  font-size: 13.5px;
}
.dev-bar[hidden] { display: none; }

.btn .arrow { transition: transform .22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--page) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hairline); }

.nav-inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: 24px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { border-radius: 7px; }
.brand-name {
  font-size: 16px; font-weight: 600; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-thin { font-weight: 400; color: var(--muted); margin-left: 4px; }

.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--hairline-2); }

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

.nav-toggle {
  display: none; width: 38px; height: 38px; padding: 0;
  background: none; border: 1px solid var(--hairline); border-radius: 10px;
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  display: grid; padding: 8px 24px 20px;
  border-top: 1px solid var(--hairline);
}
.mobile-menu[hidden] { display: none; }
@media (min-width: 761px) { .mobile-menu { display: none; } }
.mobile-menu a { padding: 13px 4px; font-size: 17px; border-bottom: 1px solid var(--hairline-2); }
.mobile-menu a:last-child { border-bottom: 0; }
.menu-cta { display: none; margin-top: 14px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(56px, 9vw, 108px) 0 clamp(64px, 9vw, 110px); }
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 760px; z-index: -1;
  background:
    radial-gradient(58% 48% at 16% 10%, rgba(11, 95, 255, .13), transparent 72%),
    radial-gradient(52% 46% at 88% 2%,  rgba(46, 123, 255, .10), transparent 74%);
  filter: blur(6px);
  pointer-events: none;
}

/* Hook, copy and buttons on top; the intro video full-width underneath. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 56px); }
.hero-copy { max-width: 860px; }
.hero-video { width: 100%; }
.hero-grid .display { font-size: clamp(38px, 5.6vw, 68px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 16px; max-width: 520px; font-size: 14.5px; color: var(--muted); }

.hero-grid .stats { margin-top: 0; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px; margin-top: clamp(40px, 6vw, 64px);
  padding-top: 28px; border-top: 1px solid var(--hairline);
}
.stats li { display: grid; gap: 4px; }
.stats strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; color: var(--accent);
}
.stats span { font-size: 14.5px; color: var(--muted); }

/* ── "Sen olsan ne derdin?" card ────────────────────────────────────────── */
.quiz {
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.quiz-chrome {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 26px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline-2);
}
.quiz-n {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
}
.quiz-body { padding: 30px 28px 30px; }
.quiz-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.025em;
}
.quiz-context { margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.quiz-reveal { margin-top: 26px; }

.quiz-answer { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--hairline-2); }
.quiz-k {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
}
.quiz-primary {
  margin: 8px 0 24px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3.4vw, 32px); line-height: 1.25; letter-spacing: -.02em;
  color: var(--green);
}
.quiz-alts { display: grid; margin-top: 8px; }
.quiz-alts li {
  display: grid; gap: 2px; padding: 10px 0;
  border-bottom: 1px solid var(--hairline-2);
}
.alt-note { font-size: 13px; font-weight: 600; color: var(--gold); }
.alt-en { font-size: 17px; font-weight: 600; color: var(--ink); }
.quiz-tip {
  margin-top: 22px; padding: 16px 18px;
  background: var(--navy); color: #fff; border-radius: var(--r-md);
  font-size: 15.5px; line-height: 1.5;
}
.quiz-tip b {
  display: block; margin-bottom: 4px;
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright);
}

.swap-in { animation: answerIn .45s var(--ease) both; }
@keyframes answerIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.pips { display: flex; gap: 7px; }
.pips button {
  width: 22px; height: 5px; padding: 0; border: 0; border-radius: 999px;
  background: var(--hairline); cursor: pointer; transition: background .3s, width .3s var(--ease);
}
.pips button[aria-selected="true"] { background: var(--accent); width: 30px; }

/* ── Product cards ──────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 30px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--hairline); }
.card.featured { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.card.featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(162deg, var(--accent-wash), transparent 46%);
}
.card > * { position: relative; }

.card-badge {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-wash);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 18px;
}
.card-kicker { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 28px; letter-spacing: -.02em; margin-top: 8px;
}
.card-blurb { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.card-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hairline-2);
}
.card-price b {
  font-family: var(--font-display); font-weight: 400;
  font-size: 34px; letter-spacing: -.02em;
}
.card-price span { font-size: 14px; color: var(--faint); }

.card-features { display: grid; gap: 9px; margin-top: 20px; }
.card-features li {
  position: relative; padding-left: 24px;
  font-size: 14.5px; line-height: 1.5; color: var(--ink-soft);
}
.card-features li::before {
  content: ""; position: absolute; left: 4px; top: 7px;
  width: 9px; height: 5px;
  border-left: 1.8px solid var(--green); border-bottom: 1.8px solid var(--green);
  transform: rotate(-45deg);
}

.card-actions { display: grid; gap: 10px; margin-top: 26px; padding-top: 4px; }
.card-actions .btn { width: 100%; }
.card-actions .link {
  text-align: center; font-size: 14.5px; color: var(--muted);
  padding: 4px; transition: color .2s;
}
.card-actions .link:hover { color: var(--ink); }
.card-foot-spacer { flex: 1; }

/* ── Mirror + prose ─────────────────────────────────────────────────────── */
.mirror { display: grid; gap: 14px; margin-top: -24px; }
.mirror li {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 32px); line-height: 1.3; letter-spacing: -.02em;
  color: var(--muted);
  padding-left: 20px; border-left: 3px solid var(--gold);
}
.mirror b { font-weight: 600; color: var(--ink); }

.prose { margin-top: 44px; display: grid; gap: 16px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.prose-lead {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1.25; letter-spacing: -.02em;
  color: var(--ink);
}
.prose p:last-child { color: var(--ink); font-weight: 600; }

/* ── Inside the book ────────────────────────────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 72px); align-items: start;
}
.split .section-head { margin-bottom: 36px; }

.flow { display: grid; gap: 2px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline-2); background: var(--hairline-2); }
.flow li { display: flex; gap: 18px; padding: 20px 22px; background: var(--page); }
.flow h3 { font-size: 17.5px; letter-spacing: -.015em; }
.flow p  { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.step-n {
  flex: none; padding-top: 2px;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .08em;
  color: var(--accent);
}

.page-shot { margin: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.page-shot img {
  width: 100%; height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
}
.page-shot figcaption { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--faint); }

/* ── Benefits + curiosity ───────────────────────────────────────────────── */
.benefits {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.benefits li {
  padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
}
.benefits h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.benefits p  { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }

.curiosity {
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(26px, 4vw, 40px);
  background: var(--navy); color: #fff;
  border-radius: var(--r-xl);
}
.curiosity-k {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; line-height: 1.25;
}
.curiosity ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 28px; margin-top: 22px; }
.curiosity li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; color: #D6DEEE; }
.curiosity li::before { content: "?"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--gold-bright); }
.curiosity-payoff { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 550; }

/* ── Free-first ─────────────────────────────────────────────────────────── */
.howto {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  margin-bottom: clamp(36px, 5vw, 52px);
}
.howto li { display: flex; gap: 14px; align-items: flex-start; }
.howto li > span {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
}
.howto h3 { font-size: 17px; letter-spacing: -.015em; }
.howto p  { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 880px; margin-inline: auto; }
#once-dene .fine { text-align: center; }

/* Format tiles inside the cards — the audio one is tinted so it reads first. */
.formats { display: grid; gap: 10px; margin-top: 22px; }
.format {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
}
.format b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.format small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.format-icon {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.format-icon svg, .chip svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.format-audio { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.format-audio .format-icon { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Same idea in the hero, as chips. */
.format-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 11px;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--surface);
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
}
.chip-audio { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent-deep); }
.fine { margin-top: 20px; font-size: 14px; color: var(--faint); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq {
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
}
.faq details { border-bottom: 1px solid var(--hairline-2); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 550; letter-spacing: -.015em;
  transition: background .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 1.8px solid var(--faint); border-bottom: 1.8px solid var(--faint);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p {
  padding: 0 26px 24px; max-width: 62ch;
  color: var(--muted); font-size: 15.5px; line-height: 1.65;
}

/* ── CTA ────────────────────────────────────────────────────────────────── */
.cta {
  padding: clamp(72px, 10vw, 116px) 0;
  text-align: center;
  background:
    radial-gradient(64% 100% at 50% 0%, var(--accent-wash), transparent 72%),
    var(--page);
  border-top: 1px solid var(--hairline-2);
}
.cta h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 4vw, 42px); letter-spacing: -.028em;
}
.cta > .wrap > p { margin-top: 14px; color: var(--muted); }

.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }


/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--surface-2); border-top: 1px solid var(--hairline); padding-top: 60px; }
.footer-inner {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img { border-radius: 8px; }
.footer-brand p { margin-top: 14px; font-weight: 600; letter-spacing: -.02em; }
.footer-brand span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-cols h4 {
  font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px; font-weight: 600;
}
.footer-cols a {
  display: block; padding: 6px 0; font-size: 14.5px; color: var(--muted);
  transition: color .2s;
}
.footer-cols a:hover { color: var(--ink); }

.footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-block: 22px; border-top: 1px solid var(--hairline);
  font-size: 13.5px; color: var(--faint);
}

/* ── Reveal on scroll ─────────────────────────────────────────────────────
   Only hidden when JS is running (html.js is set by an inline script in the
   head). Without that gate a blocked script leaves the whole page blank. */
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .page-shot { position: static; max-width: 460px; justify-self: center; }
  .howto { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions { margin-left: auto; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .stats li { display: flex; align-items: baseline; gap: 10px; }
  .hero-cta .btn, .cta-buttons .btn { width: 100%; }
  .quiz-body { padding: 24px 20px; }
  .benefits { grid-template-columns: 1fr; }
  .quiz-chrome { padding: 12px 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* On narrow phones the nav CTA crowds the wordmark — move it into the menu. */
@media (max-width: 520px) {
  .nav-actions > .btn { display: none; }
  .menu-cta { display: inline-flex; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .cta, .dev-bar, .quiz-reveal { display: none; }
  body { background: #fff; color: #000; }
}

/* ── Video ────────────────────────────────────────────────────────────────
   Click-to-play: only the thumbnail loads until the visitor presses play. */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0a1022; box-shadow: var(--shadow-lg); }
.video-frame iframe, .video-poster, .video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { padding: 0; cursor: pointer; background: #0a1022; }
.video-poster img { object-fit: cover; transition: transform .4s ease, opacity .3s ease; opacity: .92; }
.video-poster:hover img { transform: scale(1.02); opacity: 1; }
.video-play-icon { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); box-shadow: var(--shadow-md); transition: transform .2s ease; }
.video-play-icon svg { width: 34px; height: 34px; margin-left: 4px; fill: #fff; }
.video-poster:hover .video-play-icon, .video-poster:focus-visible .video-play-icon { transform: scale(1.08); }
@media (max-width: 760px) {
  /* Keep the poster's headline readable: smaller button in the empty lower-right corner. */
  .video-play-icon { left: auto; top: auto; right: 5%; bottom: 8%; width: 54px; height: 54px; margin: 0; }
  .video-play-icon svg { width: 24px; height: 24px; margin-left: 3px; }
}
