/* Chapterr marketing site — styles (v2: dark, atmospheric reading room)
   Follows the Chapterr Brand Book v1.0: Forest / Brass / Linen, Fraunces + Inter.
   The page is dark by design; light sections alternate in Linen. */

/* ---------- Tokens ---------- */
:root {
  --forest: #1E3A2F;
  --brass: #B8903F;
  --linen: #F4EEE2;
  --parchment: #FBF8F1;
  --thread: #E3DAC6;
  --moss: #4B5E55;
  --ivy: #2A4D3F;
  --deep: #142A22;
  --night: #0B1612;

  /* dark-ground defaults; .section--light overrides them */
  --ground: var(--night);
  --ink: var(--linen);
  --ink-muted: rgba(244, 238, 226, 0.68);
  --ink-faint: rgba(244, 238, 226, 0.45);
  --line: rgba(244, 238, 226, 0.12);
  --line-strong: rgba(244, 238, 226, 0.28);
  --surface: rgba(244, 238, 226, 0.045);
  --surface-2: rgba(244, 238, 226, 0.08);
  --focus: var(--brass);
  --btn-fill: var(--linen);
  --btn-ink: var(--forest);
  --btn-hover: #FFFFFF;
  --outline-ink: var(--linen);
  --outline-line: rgba(244, 238, 226, 0.38);

  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-card: 20px;
  --radius-control: 12px;
  --radius-chip: 6px;
  --radius-large: 26px;

  --nav-h: 68px;
  --gutter: 24px;
  --ease-out: cubic-bezier(0.22, 0.8, 0.26, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--night); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--linen); color: var(--forest); padding: 10px 14px; border-radius: var(--radius-control); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 800px; }

/* ---------- Type ---------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.display-l {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.heading-m { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: "opsz" 72; }
.heading-s { font-size: 17px; line-height: 24px; font-weight: 600; }
.line { display: block; }
.line--accent { color: var(--brass); font-style: italic; font-weight: 400; }
.lede { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-muted); max-width: 34em; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.eyebrow--brass { color: var(--brass); font-size: 13px; }
.small { font-size: 14px; line-height: 20px; }
.muted { color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--radius-control);
  font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--btn-fill); color: var(--btn-ink); border-color: var(--btn-fill); }
.btn--light:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn--outline { background: transparent; color: var(--outline-ink); border-color: var(--outline-line); }
.btn--outline:hover { border-color: var(--outline-ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--full { width: 100%; }
.text-link { color: var(--ink); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-btn { color: var(--ink-muted); font-size: 14px; font-weight: 500; min-height: 40px; padding: 0 10px; border-radius: 8px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.text-btn:hover { color: var(--ink); }

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px; line-height: 1; color: var(--ink-muted); white-space: nowrap;
}
.pill--light { border-color: var(--thread); background: #F7F2E7; color: var(--forest); font-weight: 600; font-size: 12px; padding: 6px 10px; border-radius: 6px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--night);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 320ms ease, visibility 320ms ease;
  animation: preloader-auto 0s linear 2.6s forwards; /* safety: hides itself even if JS never runs */
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.preloader-inner img { width: 46px; height: 42px; }
.preloader-line { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 20px; color: var(--ink-muted); letter-spacing: -0.01em; min-height: 28px; transition: opacity 200ms ease; }
.preloader-line.is-swapping { opacity: 0; }
@keyframes preloader-auto { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .preloader { display: none; } }

/* ---------- Glows ---------- */
.glow { position: absolute; pointer-events: none; border-radius: 50%; will-change: transform; z-index: 0; }
.glow--hero-a { width: min(70vw, 900px); height: min(70vw, 900px); right: -18vw; top: -12%; background: radial-gradient(closest-side, rgba(184, 144, 63, 0.17), transparent 72%); }
.glow--hero-b { width: min(64vw, 820px); height: min(64vw, 820px); left: -22vw; bottom: -24%; background: radial-gradient(closest-side, rgba(42, 77, 63, 0.55), transparent 72%); }
.glow--features { width: min(60vw, 760px); height: min(60vw, 760px); left: -14vw; top: 10%; background: radial-gradient(closest-side, rgba(42, 77, 63, 0.5), transparent 72%); }
.glow--switch { width: min(60vw, 760px); height: min(60vw, 760px); right: -16vw; top: 0; background: radial-gradient(closest-side, rgba(184, 144, 63, 0.12), transparent 72%); }
.glow--band { width: min(80vw, 1000px); height: min(80vw, 1000px); left: 50%; top: 50%; margin: min(-40vw, -500px) 0 0 min(-40vw, -500px); background: radial-gradient(closest-side, rgba(184, 144, 63, 0.16), rgba(42, 77, 63, 0.25) 45%, transparent 72%); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 22, 18, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--line); }
/* While the overlay menu is open, drop the backdrop filter: a filtered element becomes the
   containing block for fixed descendants, which would pin the overlay to the header box. */
.site-header.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(11, 22, 18, 0.97); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; padding: 8px 0; border-radius: 6px; }
.logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-muted); padding: 8px 0; transition: color 160ms ease; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-mobile-note { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-control); color: var(--ink); }
.menu-toggle:hover { background: var(--surface-2); }
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-menu { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

@media (max-width: 879px) {
  .menu-toggle { display: inline-flex; }
  .nav-actions .text-link { display: none; }
  .site-nav {
    display: none;
    position: fixed; inset: 0; z-index: 40;
    padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
    background: rgba(11, 22, 18, 0.97);
    flex-direction: column; justify-content: space-between; gap: 24px;
    overflow-y: auto;
  }
  .site-header.is-open .site-nav { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a {
    display: block; padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display); font-weight: 500; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink);
  }
  .nav-mobile-actions { display: grid; gap: 12px; margin-top: auto; }
  .nav-mobile-note { display: block; font-size: 14px; color: var(--ink-muted); text-align: center; }
  @media (prefers-reduced-motion: no-preference) {
    .site-header.is-open .site-nav { animation: fade-in 220ms ease; }
    @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  }
}
@media (min-width: 880px) { .nav-mobile-actions { display: none; } }
@media (max-width: 559px) { .nav-actions .btn { display: none; } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 8vw, 128px); overflow: hidden; overflow: clip; }
.section--tight { padding-block: clamp(48px, 5vw, 88px); }
.section--dark { background: var(--night); }
.section--switch { background: linear-gradient(180deg, var(--night), var(--deep) 60%, var(--night)); }
.section--light {
  --ground: var(--linen);
  --ink: var(--forest);
  --ink-muted: var(--moss);
  --ink-faint: rgba(30, 58, 47, 0.5);
  --line: var(--thread);
  --line-strong: #D5CAB2;
  --surface: var(--parchment);
  --surface-2: #F7F2E7;
  --focus: var(--forest);
  --btn-fill: var(--forest);
  --btn-ink: var(--linen);
  --btn-hover: var(--ivy);
  --outline-ink: var(--forest);
  --outline-line: #CFC3A8;
  --shadow: 0 8px 24px rgba(30, 58, 47, 0.10);
  background: var(--linen);
  color: var(--forest);
  color-scheme: light;
}
.section > .container { position: relative; z-index: 1; }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 72px); display: flex; flex-direction: column; gap: 18px; }
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }
.section-head .lede { margin-top: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; overflow: clip; isolation: isolate; /* the video's screen blend uses this opaque backdrop */
  padding: clamp(36px, 5vw, 72px) 0 clamp(40px, 5vw, 72px);
  background: radial-gradient(120% 90% at 50% 0%, var(--deep) 0%, var(--night) 60%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy .display-xl { margin-top: -4px; }
.hero-copy .line--accent { font-size: 0.9em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.microline { font-size: 14px; color: var(--ink-faint); }

.hero-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.stage {
  --stage-w: min(560px, 90vw, 100%);
  position: relative;
  width: var(--stage-w);
  aspect-ratio: 1;
  min-height: 540px;
}
.stage::before {
  content: ""; position: absolute; inset: -12%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side at 50% 52%, rgba(184, 144, 63, 0.22), rgba(42, 77, 63, 0.26) 46%, transparent 74%);
}
.stage-book, .stage-video, .stage-last {
  position: absolute; left: 0; right: 0; top: 50%;
  width: 100%; height: auto; aspect-ratio: 1;
  transform: translateY(-50%);
  z-index: 1;
  transition: opacity 600ms ease;
}
.stage-book { object-fit: contain; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.5)); }
.stage-video, .stage-last { object-fit: contain; mix-blend-mode: screen; opacity: 0; pointer-events: none; background: transparent; }
.stage[data-state="playing"] .stage-video, .stage[data-state="replaying"] .stage-video { opacity: 1; }
.stage[data-state="playing"] .stage-book, .stage[data-state="replaying"] .stage-book,
.stage[data-state="ended"] .stage-book, .stage[data-state="live"] .stage-book { opacity: 0; }
.stage[data-state="ended"] .stage-last { opacity: 1; transition: none; }
.stage[data-state="ended"] .stage-video { opacity: 0; transition: none; }
.stage[data-state="live"] .stage-video, .stage[data-state="live"] .stage-last { opacity: 0; }

.phone-wrap { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.phone {
  position: relative;
  height: 96%;
  aspect-ratio: 9 / 19.5;
  background: var(--forest);
  border: 1px solid var(--brass);
  border-radius: 44px;
  padding: 7px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden;
  transform-origin: 0 0;
  pointer-events: auto;
  transition: opacity 600ms ease, visibility 0s linear 600ms;
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: var(--brass); opacity: 0.9; }
.phone::before { left: -3px; top: 20%; height: 10%; }
.phone::after { right: -3px; top: 26%; height: 7%; }
.stage[data-state="live"] .phone { opacity: 1; visibility: visible; transition: opacity 600ms ease, visibility 0s, transform 1000ms var(--ease-out) 120ms; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--linen); }

.stage-caption { display: flex; align-items: center; justify-content: center; gap: 6px 18px; flex-wrap: wrap; min-height: 40px; opacity: 0; transition: opacity 400ms ease; }
.stage-caption.is-on { opacity: 1; }
.stage-try { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.stage-try svg { color: var(--brass); }
.stage-tools { display: inline-flex; gap: 4px; }

@media (max-width: 979px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; align-items: center; }
  .hero-copy .lede { margin-inline: auto; }
  .pills { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .stage { --stage-w: min(560px, 90vw, 100%); }
}
@media (max-width: 559px) {
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .stage { min-height: 520px; }
}

/* ---------- Features ---------- */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.panel {
  position: relative; overflow: hidden; overflow: clip;
  background: linear-gradient(180deg, rgba(244, 238, 226, 0.055), rgba(244, 238, 226, 0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex; flex-direction: column; gap: 24px; justify-content: flex-end;
  min-height: 300px;
}
.panel--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; min-height: 440px; }
.panel-copy { display: flex; flex-direction: column; gap: 12px; max-width: 46ch; }
.panel-copy p:not(.eyebrow) { color: var(--ink-muted); font-size: 16px; line-height: 1.55; }
.panel-copy .heading-m { color: var(--ink); }
.panel-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--brass); }
.panel-icon svg { width: 24px; height: 24px; }
.panel-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.panel-art::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(184, 144, 63, 0.24), rgba(42, 77, 63, 0.3) 50%, transparent 74%); }
.float { position: relative; width: min(100%, 520px); }
.float img { width: 100%; height: auto; filter: drop-shadow(0 36px 44px rgba(0, 0, 0, 0.5)); }
@media (prefers-reduced-motion: no-preference) {
  .float img { animation: float 7s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-1.2deg); } }
}
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.feature-list li { display: flex; gap: 14px; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.feature-list svg { flex: none; width: 22px; height: 22px; color: var(--brass); margin-top: 1px; }
.feature-list p { font-size: 14px; line-height: 21px; color: var(--ink-muted); margin-top: 4px; }
@media (max-width: 899px) {
  .panels { grid-template-columns: 1fr; }
  .panel--wide { grid-template-columns: 1fr; min-height: 0; }
  .panel-art { min-height: 0; }
  .float { width: min(80vw, 420px); margin-inline: auto; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Shelf (light) ---------- */
.shelf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.shelf-grid .section-head { margin-bottom: 0; }
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.checks li { position: relative; padding-left: 26px; color: var(--ink); font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--brass); }
.shelf-card { background: var(--parchment); border: 1px solid var(--thread); border-radius: var(--radius-large); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.shelf-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bookshelf {
  position: relative;
  display: flex; align-items: flex-end; gap: 7px;
  height: 196px; padding: 0 10px 0 14px;
  border-bottom: 6px solid var(--brass);
  border-radius: 0 0 3px 3px;
}
.bookshelf::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -22px; height: 16px; background: radial-gradient(closest-side, rgba(30, 58, 47, 0.18), transparent); }
.spine { position: relative; flex: 1 1 0; max-width: 42px; min-width: 18px; border-radius: 4px 4px 2px 2px; background: var(--forest); box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.18); }
.spine::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 6px; background: var(--brass); }
.spine--h1 { height: 108px; }
.spine--h2 { height: 128px; }
.spine--h3 { height: 148px; }
.spine--h4 { height: 168px; }
.spine--t2 { background: var(--ivy); }
.spine--t3 { background: var(--moss); }
.spine--t4 { background: var(--deep); }
.spine--lean { transform: rotate(14deg); transform-origin: 50% 100%; margin: 0 12px 0 6px; z-index: 1; }
.shelf-labels { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--moss); margin-top: 10px; }
.shelf-labels b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.1; color: var(--forest); letter-spacing: -0.02em; }
.goal { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--thread); }
.progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.progress { height: 4px; border-radius: 2px; background: var(--forest); overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--brass); border-radius: 2px; transition: width 900ms var(--ease-out); }
html.js .reveal.is-visible .progress-fill--58, html:not(.js) .progress-fill--58 { width: 58%; }
@media (prefers-reduced-motion: reduce) { .progress-fill--58 { width: 58%; } }
@media (max-width: 899px) { .shelf-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 28px 32px; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: 56px; line-height: 1; color: var(--brass); letter-spacing: -0.03em; margin-bottom: 8px; }
.step p:not(.eyebrow) { color: var(--ink-muted); font-size: 16px; line-height: 1.55; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Switch club strip ---------- */
.switch-strip { max-width: 680px; margin-inline: auto; display: flex; flex-direction: column; gap: 22px; }
.club-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.club-chips [role="tab"] {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px 0 8px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.club-chips [role="tab"] .d-club-mark { width: 28px; height: 28px; border-radius: 8px; }
.club-chips [role="tab"]:hover { color: var(--ink); border-color: var(--ink-muted); }
.club-chips [role="tab"][aria-selected="true"] { background: var(--linen); color: var(--forest); border-color: var(--linen); }
.mini-dash {
  --d-border: var(--thread);
  background: var(--parchment); color: var(--forest);
  border-radius: var(--radius-large);
  padding: clamp(22px, 3vw, 30px);
  display: flex; flex-direction: column; gap: 18px;
  transition: opacity 200ms ease, transform 200ms ease;
  color-scheme: light;
}
.mini-dash.is-swapping { opacity: 0; transform: translateY(6px); }
.mini-dash .eyebrow { color: var(--moss); margin-bottom: 4px; }
.mini-head { display: flex; align-items: center; gap: 12px; }
.mini-head .d-club-mark { width: 40px; height: 40px; border-radius: 12px; }
.mini-name { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.mini-meta { font-size: 14px; color: var(--moss); }
.mini-book { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-block: 1px solid var(--thread); }
.mini-book > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-book .d-cover { width: 56px; height: 82px; }
.mini-book .d-cover b { font-size: 10px; }
.mini-book .pill { margin-top: 6px; align-self: flex-start; }
.mini-title { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.mini-row { display: flex; justify-content: space-between; font-size: 14px; }
.mini-row span:last-child { color: var(--moss); }
.mini-progress { height: 4px; border-radius: 2px; background: var(--forest); overflow: hidden; margin-top: -10px; }
.mini-fill { display: block; height: 100%; width: 0; background: var(--brass); border-radius: 2px; transition: width 700ms var(--ease-out); }
html:not(.js) .mini-fill--67 { width: 67%; }
.mini-meeting { display: flex; flex-direction: column; gap: 2px; }
.mini-strong { font-weight: 600; font-size: 16px; }

/* ---------- Comparison ---------- */
.compare-hint { display: none; font-size: 13px; color: var(--ink-faint); margin-bottom: 10px; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.compare { width: 100%; min-width: 720px; font-size: 15px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; padding-top: 18px; }
.compare tbody th { font-weight: 500; color: var(--ink); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .is-us { background: rgba(244, 238, 226, 0.06); }
.compare thead .is-us { color: var(--brass); }
.cell { display: inline-flex; align-items: center; gap: 6px; }
.cell svg { width: 16px; height: 16px; color: var(--brass); }
.cell--yes { color: var(--ink); font-weight: 500; }
.cell--part { color: var(--ink-muted); }
.cell--no { color: var(--ink-faint); }
@media (max-width: 759px) { .compare-hint { display: block; } }

/* ---------- Pricing (light, dark card) ---------- */
.pricing { overflow: hidden; overflow: clip; }
.watermark { position: absolute; right: -40px; bottom: -40px; width: 300px; height: auto; pointer-events: none; }
.price-card {
  --ink: var(--linen); --ink-muted: rgba(244, 238, 226, 0.7); --line: rgba(244, 238, 226, 0.14); --focus: var(--brass);
  --btn-fill: var(--linen); --btn-ink: var(--forest); --btn-hover: #FFFFFF;
  position: relative; max-width: 560px; margin-inline: auto;
  background: var(--deep); color: var(--linen);
  border: 1px solid rgba(244, 238, 226, 0.1);
  border-radius: var(--radius-large);
  padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 70px rgba(30, 58, 47, 0.25);
  color-scheme: dark;
}
.price-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(90% 60% at 50% 0%, rgba(184, 144, 63, 0.12), transparent 70%); pointer-events: none; }
.price-card > * { position: relative; }
.price-big { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.025em; }
.price-sub { color: var(--ink-muted); }
.price-after { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: rgba(244, 238, 226, 0.04); display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.price-after .amount { font-weight: 600; font-size: 17px; }
.price-after p:not(.amount) { color: var(--ink-muted); font-size: 15px; line-height: 1.5; }
.price-includes { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 10px; }
.price-includes li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.price-includes svg { flex: none; width: 18px; height: 18px; color: var(--brass); margin-top: 3px; }
.price-note { font-size: 13px; color: var(--ink-muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px; font-size: 18px; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--brass); transition: transform 200ms ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 22px; max-width: 64ch; color: var(--ink-muted); line-height: 1.6; }
.faq .answer a { color: var(--ink); }

/* ---------- CTA band ---------- */
.band { position: relative; overflow: hidden; overflow: clip; padding-block: clamp(88px, 10vw, 150px); text-align: center; background: linear-gradient(180deg, var(--night), var(--deep)); }
.band-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.band .lede { text-align: center; }
.band-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 559px) { .band-ctas { width: 100%; } .band-ctas .btn { flex: 1 1 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); padding-block: 36px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; border-radius: 6px; }
.footer-brand img { height: 26px; width: auto; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { font-size: 14px; color: var(--ink-faint); }
@media (max-width: 759px) { .footer-row { flex-direction: column; align-items: flex-start; } }

/* ---------- Content pages (privacy, terms, 404) ---------- */
.page-hero { position: relative; overflow: hidden; overflow: clip; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background: radial-gradient(120% 90% at 50% 0%, var(--deep) 0%, var(--night) 60%); }
.page-hero .container { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.page-hero .meta { font-size: 15px; color: var(--ink-muted); }
.prose {
  --ink: var(--forest); --ink-muted: var(--moss); --line: var(--thread); --focus: var(--forest);
  background: var(--linen); color: var(--forest);
  padding-block: clamp(48px, 6vw, 80px) clamp(72px, 8vw, 120px);
  color-scheme: light;
}
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; line-height: 24px; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 17px; line-height: 27px; color: var(--ink); max-width: 68ch; }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.prose a { color: var(--ink); }
.prose .callout { background: var(--parchment); border: 1px solid var(--thread); border-left: 3px solid var(--brass); border-radius: var(--radius-card); padding: 18px 22px; margin: 24px 0; max-width: 68ch; }
.prose .callout p { font-size: 16px; line-height: 25px; }
.not-found { position: relative; overflow: hidden; overflow: clip; text-align: center; padding-block: clamp(80px, 12vw, 180px); background: radial-gradient(120% 90% at 50% 0%, var(--deep) 0%, var(--night) 60%); }
.not-found .container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.not-found .lede { text-align: center; }
.mini-shelf { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 0 10px; border-bottom: 5px solid var(--brass); border-radius: 0 0 3px 3px; margin-bottom: 20px; }
.mini-shelf .spine { width: 22px; flex: none; background: var(--linen); }
.mini-shelf .spine::before { top: 12px; height: 5px; }
.mini-shelf .spine:nth-child(1) { height: 56px; }
.mini-shelf .spine:nth-child(2) { height: 74px; }
.mini-shelf .spine:nth-child(3) { height: 86px; margin-left: 8px; }

/* ---------- Reveal and motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
  html.js .hero-copy .reveal:nth-child(2) { transition-delay: 60ms; }
  html.js .hero-copy .reveal:nth-child(3) { transition-delay: 120ms; }
  html.js .hero-copy .reveal:nth-child(4) { transition-delay: 180ms; }
  html.js .hero-copy .reveal:nth-child(5) { transition-delay: 240ms; }
  html.js .hero-copy .reveal:nth-child(6) { transition-delay: 300ms; }
}

/* ---------- Mobile gutters ---------- */
@media (max-width: 559px) { :root { --gutter: 16px; } }
