/* ==========================================================================
   SOVEREIGN MAN — Design System
   Palette: Bone / Ink / Burnished Gold / Sage
   Type: Fraunces (display) + Inter (body)
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #16130e;
  --ink-2: #201b13;
  --ink-3: #2b2418;
  --bone: #f6f1e7;
  --sand: #ece4d3;
  --sand-2: #e0d5bf;
  --gold: #c29a5b;
  --gold-deep: #96763f;
  --gold-soft: #dcc49c;
  --sage: #4a5744;
  --sage-soft: #99a48f;

  /* Semantic tokens */
  --bg: var(--bone);
  --bg-alt: var(--sand);
  --surface: #fffdf8;
  --text: #241f15;
  --text-muted: #6b6250;
  --border: rgba(34, 28, 16, 0.14);

  --dark-bg: var(--ink);
  --dark-bg-2: var(--ink-2);
  --dark-text: var(--bone);
  --dark-muted: #b8ad97;
  --dark-border: rgba(246, 241, 231, 0.15);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h4: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --fs-h3: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  --fs-h1: clamp(2.5rem, 1.7rem + 3.6vw, 4.4rem);
  --fs-hero: clamp(2.8rem, 1.8rem + 4.6vw, 5.4rem);

  /* Space (8pt rhythm) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 2px 6px rgba(22, 19, 14, 0.05), 0 16px 40px rgba(22, 19, 14, 0.09);
  --shadow-sm: 0 1px 3px rgba(22, 19, 14, 0.07);

  --container: 72rem;
  --header-h: 4.5rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

ul[class],
ol[class] {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: inherit;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  max-width: 65ch;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.container--narrow {
  width: min(46rem, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 3rem + 4vw, 7.5rem);
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.section--dark .eyebrow {
  color: var(--gold);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center p {
  margin-inline: auto;
}

.section-head p {
  margin-top: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--fs-lg);
}

.section--dark .section-head p {
  color: var(--dark-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--sp-2);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  min-height: 3rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: transform 180ms var(--ease), background 180ms var(--ease),
    border-color 180ms var(--ease), color 180ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 180ms var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.97);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: var(--gold-soft);
}

.btn--ink {
  background: var(--ink);
  color: var(--bone);
}

.btn--ink:hover {
  background: var(--ink-3);
}

.btn--outline {
  border-color: var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--text);
}

.section--dark .btn--outline,
.btn--outline-light {
  border-color: var(--dark-border);
  color: var(--dark-text);
}

.section--dark .btn--outline:hover,
.btn--outline-light:hover {
  border-color: var(--bone);
}

.btn--lg {
  padding: 1.15rem 2.25rem;
  font-size: var(--fs-base);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(22, 19, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(22, 19, 14, 0.96);
  border-bottom-color: var(--dark-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bone);
}

.brand__mark {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.site-nav a:not(.btn) {
  color: var(--dark-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  position: relative;
  transition: color 160ms var(--ease);
}

.site-nav a:not(.btn):hover {
  color: var(--bone);
}

.site-nav a[aria-current="page"] {
  color: var(--bone);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.site-nav .btn {
  padding: 0.6rem 1.3rem;
  min-height: 2.6rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  border-radius: var(--radius-sm);
}

.nav-toggle svg {
  width: 1.6rem;
  height: 1.6rem;
}

.nav-toggle .icon-close { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--dark-border);
    padding: var(--sp-2) var(--sp-3) var(--sp-4);
    transform: translateY(-115%);
    transition: transform 260ms var(--ease);
    visibility: hidden;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    visibility: visible;
  }

  body.nav-open .nav-toggle .icon-open { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }

  .site-nav a:not(.btn) {
    padding: 0.9rem 0.25rem;
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--dark-border);
  }

  .site-nav .btn {
    margin-top: var(--sp-3);
    width: 100%;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(58rem 34rem at 85% -10%, rgba(194, 154, 91, 0.16), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, rgba(74, 87, 68, 0.28), transparent 60%),
    var(--ink);
  color: var(--dark-text);
  padding-top: calc(var(--header-h) + clamp(4rem, 3rem + 5vw, 8rem));
  padding-bottom: clamp(4.5rem, 3rem + 5vw, 8rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 500;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero__lede {
  margin-top: var(--sp-3);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: var(--dark-muted);
  max-width: 34rem;
}

.hero .btn-row {
  margin-top: var(--sp-4);
}

.hero__note {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--dark-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__note svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__art svg {
  width: min(27.6rem, 100%);
  height: auto;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__art {
    order: -1;
  }

  .hero__art svg {
    width: min(16.4rem, 69%);
  }
}

/* ---------- Hero emblem: draw-on, then the rings breathe forever ---------- */
/* A soft glow pulse on the whole mark makes the breath legible at a glance,
   especially on phones where the 7% scale swing alone is easy to miss. */
.hero-emblem {
  animation: heGlow 6.5s ease-in-out 1.2s infinite;
}

@keyframes heGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(194, 154, 91, 0)); }
  50% { filter: drop-shadow(0 0 14px rgba(194, 154, 91, 0.45)); }
}

.hero-emblem .he-draw {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
}

.hero-emblem circle,
.hero-emblem path {
  transform-box: fill-box;
  transform-origin: center;
}

.he-ring1 {
  --heo: 0.3;
  --heo-max: 0.75;
  animation-name: heDraw, heBreathe;
  animation-duration: 1.2s, 6.5s;
  animation-delay: 0s, 1.2s;
  animation-timing-function: var(--ease), ease-in-out;
  animation-fill-mode: both, none;
  animation-iteration-count: 1, infinite;
}

.he-ring2 {
  --heo: 0.45;
  --heo-max: 0.9;
  animation-name: heDraw, heBreathe;
  animation-duration: 1.2s, 8s;
  animation-delay: 0.25s, 1.45s;
  animation-timing-function: var(--ease), ease-in-out;
  animation-fill-mode: both, none;
  animation-iteration-count: 1, infinite;
}

.he-peak {
  --heo: 1;
  animation: heDraw 1s var(--ease) 0.55s both;
}

.he-base {
  --heo: 1;
  animation: heDraw 0.6s var(--ease) 1.15s both;
}

.he-sun {
  opacity: 0;
  animation: heSun 0.7s var(--ease) 1.55s both;
}

.he-fade {
  opacity: 0;
  animation: heFade 0.8s var(--ease) 1.9s both;
}

@keyframes heDraw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  35% { opacity: var(--heo, 1); }
  100% { stroke-dashoffset: 0; opacity: var(--heo, 1); }
}

@keyframes heBreathe {
  0%, 100% { transform: scale(1); opacity: var(--heo); }
  50% { transform: scale(1.07); opacity: var(--heo-max); }
}

/* The sun joins the breath after its entrance */
.he-sun {
  animation: heSun 0.7s var(--ease) 1.55s both, heSunBreathe 6.5s ease-in-out 2.25s infinite;
}

@keyframes heSunBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes heSun {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heFade {
  from { opacity: 0; }
  to { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-emblem,
  .hero-emblem .he-draw,
  .he-sun,
  .he-fade {
    animation: none !important;
    stroke-dashoffset: 0;
    transform: none;
  }

  .he-ring1 { opacity: 0.35; }
  .he-ring2 { opacity: 0.55; }
  .he-peak, .he-base, .he-sun { opacity: 1; }
  .he-fade { opacity: 0.8; }
}

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--dark-bg-2);
  color: var(--dark-text);
  border-top: 1px solid var(--dark-border);
  padding-block: var(--sp-5);
}

.stat-strip .container {
  display: block;
}

.stat {
  text-align: left;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
  font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat__label {
  margin-top: var(--sp-1);
  color: var(--dark-muted);
  font-size: var(--fs-sm);
  max-width: 26ch;
}


/* ---------- Rotating stat banner ---------- */
.stat-rotator {
  position: relative;
  min-height: 9.5rem;
}

.stat-rotator__viewport {
  position: relative;
  min-height: 9.5rem;
}

.stat-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 1rem + 2vw, 2.75rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), visibility 600ms;
}

.stat-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.stat-slide__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 5vw, 5rem);
  font-weight: 500;
  line-height: 0.95;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
}

.stat-slide__body {
  min-width: 0;
}

.stat-slide__label {
  color: var(--dark-text);
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.3rem);
  line-height: 1.45;
  max-width: 40ch;
}

.stat-slide__src {
  margin-top: 0.6rem;
  font-size: var(--fs-xs);
  color: var(--dark-muted);
  font-style: italic;
  letter-spacing: 0.01em;
}

.stat-slide--hope .stat-slide__label {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.55rem);
  color: var(--bone);
}

.stat-slide--hope .stat-slide__label strong {
  color: var(--gold);
  font-weight: 500;
}

.stat-rotator__viewport {
  cursor: pointer;
}

.stat-rotator__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  flex-wrap: wrap;
}

.stat-rotator__nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.stat-rotator__count {
  font-size: var(--fs-xs);
  color: var(--dark-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  margin-right: 0.25rem;
}

.stat-rotator__btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1.5px solid var(--dark-border);
  color: var(--dark-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 180ms var(--ease), background 180ms var(--ease),
    color 180ms var(--ease), transform 180ms var(--ease);
}

.stat-rotator__btn svg {
  width: 1.4rem;
  height: 1.4rem;
}

.stat-rotator__btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.stat-rotator__btn:active {
  transform: scale(0.94);
}

/* The emblem IS the button: no disc behind it, its own ring is the boundary */
.stat-rotator__btn--next {
  background: transparent;
  border: none;
  color: var(--gold);
}

.stat-rotator__btn--next svg {
  width: 2.4rem;
  height: 2.4rem;
  transform: rotate(90deg);
}

.stat-rotator__btn--next:hover {
  background: transparent;
  color: var(--gold-soft);
}

.stat-rotator__dots {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1 1 12rem;
  min-width: 0;
}

/* Bars shrink to fit any width; vertical padding gives a proper tap target
   while background-clip keeps the visible bar thin. */
.stat-rotator__dots button {
  box-sizing: content-box;
  flex: 1 1 0;
  min-width: 0.75rem;
  max-width: 2.25rem;
  height: 4px;
  padding: 9px 0;
  background-color: rgba(246, 241, 231, 0.2);
  background-clip: content-box;
  transition: background-color 300ms var(--ease);
}

.stat-rotator__dots button[aria-selected="true"] {
  background-color: var(--gold);
}

@media (max-width: 640px) {
  .stat-rotator,
  .stat-rotator__viewport {
    min-height: 15rem;
  }

  /* Fixed-width bars on mobile: when they wrap to a second row, flex-grow was
     inflating the wrapped ones (slides 10–11 looked bigger). Uniform always. */
  .stat-rotator__dots button {
    flex: 0 0 auto;
    width: 1.1rem;
  }

  .stat-slide {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-slide {
    transition: opacity 200ms linear;
    transform: none;
  }
}

/* ---------- Cards & grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

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

.card h3,
.card h4 {
  margin-bottom: var(--sp-1);
}

.card p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: rgba(194, 154, 91, 0.16);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.section--dark .card {
  background: var(--ink-2);
  border-color: var(--dark-border);
}

.section--dark .card p {
  color: var(--dark-muted);
}

.section--dark .card__icon {
  background: rgba(194, 154, 91, 0.14);
  color: var(--gold);
}

/* ---------- Split feature blocks ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: center;
}

.split--reverse > .split__media {
  order: 2;
}

.split h2 {
  margin-bottom: var(--sp-2);
}

.split p {
  color: var(--text-muted);
}

.section--dark .split p {
  color: var(--dark-muted);
}

.split .btn-row {
  margin-top: var(--sp-4);
}

.split__media {
  position: relative;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse > .split__media {
    order: 0;
  }
}

/* ---------- Feature list (checkmarks) ---------- */
.check-list {
  display: grid;
  gap: 0.9rem;
  margin-top: var(--sp-3);
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--fs-base);
}

.check-list li svg {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
  color: var(--gold-deep);
  margin-top: 0.2rem;
}

.section--dark .check-list li svg {
  color: var(--gold);
}

.check-list li strong {
  font-weight: 600;
}

.check-list li span {
  color: var(--text-muted);
}

.section--dark .check-list li span {
  color: var(--dark-muted);
}

/* ---------- Book cover (pure CSS) ---------- */
.book-scene {
  perspective: 1400px;
  display: flex;
  justify-content: center;
  padding: var(--sp-3);
}

.book {
  position: relative;
  width: min(19rem, 70vw);
  aspect-ratio: 0.66;
  transform: rotateY(-18deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease);
}

.book-scene:hover .book {
  transform: rotateY(-8deg) rotateX(1deg);
}

.book__cover {
  position: absolute;
  inset: 0;
  border-radius: 6px 14px 14px 6px;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(194, 154, 91, 0.28), transparent 55%),
    linear-gradient(160deg, #241e13 0%, #16130e 70%);
  border: 1px solid rgba(194, 154, 91, 0.4);
  box-shadow: -30px 40px 60px rgba(22, 19, 14, 0.4);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  color: var(--bone);
}

.book__cover::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.9rem;
  width: 1px;
  background: rgba(246, 241, 231, 0.22);
}

.book__series {
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.book__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
  line-height: 1.05;
  margin-top: auto;
  font-weight: 600;
}

.book__title em {
  font-style: italic;
  color: var(--gold);
}

.book__sub {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--dark-muted);
  line-height: 1.5;
  max-width: 90%;
}

.book__author {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.book__mark {
  width: 2.2rem;
  height: 2.2rem;
  margin-top: 1.4rem;
  opacity: 0.9;
}

.book__pages {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: -8px;
  width: 8px;
  transform: translateZ(-1px);
  background: repeating-linear-gradient(
    to bottom,
    #efe8da 0 2px,
    #d9d0bd 2px 3px
  );
  border-radius: 0 3px 3px 0;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  max-width: 56rem;
  margin-inline: auto;
  align-items: stretch;
}

@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.price-card--featured {
  background: var(--ink);
  color: var(--dark-text);
  border-color: rgba(194, 154, 91, 0.5);
  box-shadow: var(--shadow);
}

.price-card__badge {
  position: absolute;
  top: -0.85rem;
  right: 1.5rem;
  background: var(--gold);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
}

.price-card h3 {
  font-size: var(--fs-h4);
}

.price-card__price {
  margin-block: var(--sp-3) var(--sp-1);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 1.5vw, 3.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-card__price sup {
  font-size: 0.45em;
  top: -0.9em;
}

.price-card__price span {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.price-card--featured .price-card__price span {
  color: var(--dark-muted);
}

.price-card__meta {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}

.price-card--featured .price-card__meta {
  color: var(--dark-muted);
}

.price-card .check-list {
  margin-block: 0 var(--sp-4);
  gap: 0.7rem;
}

.price-card .check-list li {
  font-size: var(--fs-sm);
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
}

.price-note {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: 44rem;
  margin: var(--sp-4) auto 0;
}

/* ---------- Course / module cards ---------- */
.module-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.module-card__media {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
}

.module-card__media--a { background: linear-gradient(140deg, #2b2418, #16130e), var(--ink); }
.module-card__media--b { background: linear-gradient(140deg, #3c4636, #1c211a); }
.module-card__media--c { background: linear-gradient(140deg, #58452a, #201b13); }
.module-card__media--d { background: linear-gradient(140deg, #433527, #16130e); }

.module-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 75% 10%, rgba(194, 154, 91, 0.25), transparent 60%);
}

.module-card__play {
  position: relative;
  z-index: 1;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: rgba(246, 241, 231, 0.12);
  border: 1.5px solid rgba(246, 241, 231, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.module-card__play svg {
  width: 1.2rem;
  height: 1.2rem;
  margin-left: 3px;
}

.module-card__body {
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.module-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(194, 154, 91, 0.15);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}

.tag--lock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  background: rgba(34, 28, 16, 0.07);
}

.tag--lock svg {
  width: 0.8rem;
  height: 0.8rem;
}

.module-card__body h3 {
  font-size: 1.2rem;
}

.module-card__body p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.module-card__meta {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}

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

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  counter-increment: step;
  position: relative;
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--dark-border);
}

.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold);
  opacity: 0.85;
  line-height: 1;
  display: block;
  margin-bottom: var(--sp-2);
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--dark-muted);
  font-size: var(--fs-sm);
}

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  box-shadow: var(--shadow-sm);
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 400;
}

.quote-card blockquote::before {
  content: "\201C";
  color: var(--gold);
  font-size: 1.6em;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.1em;
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}

.quote-card__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.quote-card figcaption strong {
  display: block;
  font-size: var(--fs-sm);
}

.quote-card figcaption span {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

/* ---------- FAQ accordion ---------- */
.faq {
  max-width: 46rem;
  margin-inline: auto;
  display: grid;
  gap: var(--sp-2);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: var(--fs-base);
  transition: background 160ms var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: rgba(194, 154, 91, 0.07);
}

.faq-item summary svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--gold-deep);
  transition: transform 220ms var(--ease);
}

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

.faq-item .faq-body {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ---------- Lead capture band ---------- */
.lead-band {
  background:
    radial-gradient(50rem 26rem at 90% 0%, rgba(194, 154, 91, 0.18), transparent 60%),
    var(--ink);
  color: var(--dark-text);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--sp-5);
  align-items: center;
}

@media (max-width: 860px) {
  .lead-band { grid-template-columns: 1fr; }
}

.lead-band h2 {
  margin-bottom: var(--sp-2);
}

.lead-band p {
  color: var(--dark-muted);
}

.lead-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lead-form .field {
  flex: 1 1 16rem;
}

.lead-form label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 0.45rem;
}

.lead-form input[type="email"],
.lead-form input[type="text"] {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--dark-border);
  background: rgba(246, 241, 231, 0.06);
  color: var(--bone);
  font: inherit;
  transition: border-color 160ms var(--ease);
}

.lead-form input::placeholder {
  color: rgba(184, 173, 151, 0.7);
}

.lead-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.lead-form .btn {
  align-self: flex-end;
  min-height: 3.25rem;
}

.form-msg {
  flex-basis: 100%;
  font-size: var(--fs-sm);
  color: var(--gold-soft);
  min-height: 1.4em;
}

.form-msg[data-state="error"] {
  color: #e2a291;
}

.lead-form--light input[type="email"],
.lead-form--light input[type="text"] {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.lead-form--light label {
  color: var(--text-muted);
}

.lead-form--light input::placeholder {
  color: var(--text-muted);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(46rem 26rem at 90% -20%, rgba(194, 154, 91, 0.15), transparent 60%),
    var(--ink);
  color: var(--dark-text);
  padding-top: calc(var(--header-h) + clamp(3.5rem, 2.5rem + 4vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.page-hero p {
  margin-top: var(--sp-3);
  font-size: var(--fs-lg);
  color: var(--dark-muted);
  max-width: 38rem;
}

.page-hero .btn-row {
  margin-top: var(--sp-4);
}

/* ---------- Pillar tiles ---------- */
.pillar {
  position: relative;
  border-radius: var(--radius);
  padding: var(--sp-4);
  background: var(--ink-2);
  border: 1px solid var(--dark-border);
  color: var(--dark-text);
  overflow: hidden;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 154, 91, 0.5);
}

.pillar__num {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--gold);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: var(--sp-3);
}

.pillar h3 {
  font-size: var(--fs-h4);
  margin-bottom: 0.5rem;
}

.pillar p {
  color: var(--dark-muted);
  font-size: var(--fs-sm);
}

.pillar__icon {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.pillar__icon svg {
  width: 100%;
  height: 100%;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--dark-muted);
  padding-block: var(--sp-6) var(--sp-4);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--dark-border);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  margin-top: var(--sp-2);
  max-width: 30ch;
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: var(--sp-2);
}

.site-footer ul {
  display: grid;
  gap: 0.6rem;
}

.site-footer a {
  transition: color 160ms var(--ease);
}

.site-footer a:hover {
  color: var(--bone);
}

.footer-legal {
  padding-top: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
}

.footer-disclaimer {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  max-width: 62rem;
  opacity: 0.75;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Myth/Truth flip cards ---------- */
.flip-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.flip-head .hint {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  white-space: nowrap;
  margin-bottom: 0.4rem;
}

.flip-card:hover .flip-card__inner {
  translate: 0 -5px;
}

.flip-card.flipped:hover .flip-card__inner {
  translate: 0 0;
}

/* First card swings immediately, then repeats on a slow loop until tapped */
@keyframes flipTease {
  0% { transform: rotateY(0); }
  12% { transform: rotateY(-24deg); }
  26% { transform: rotateY(0); }
  100% { transform: rotateY(0); }
}

.flip-card.tease .flip-card__inner {
  animation: flipTease 4s var(--ease) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .flip-card.tease .flip-card__inner { animation: none; }
  .flip-card:hover .flip-card__inner { translate: 0 0; }
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}

@media (max-width: 980px) { .flip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flip-grid { grid-template-columns: 1fr; } }

.flip-card {
  perspective: 1200px;
  min-height: 20rem;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.flip-card__inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease);
}

.flip-card.flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  overflow: hidden;
}

.flip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.flip-myth-text {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-top: 0.4rem;
}

.flip-cat {
  display: block;
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.flip-face--myth {
  background: var(--bone);
  color: var(--ink);
}

.flip-face--myth .flip-num { color: var(--gold-deep); }
.flip-face--myth .flip-cat { color: var(--text-muted); }

.flip-face--truth {
  background: var(--ink-2);
  border: 1px solid rgba(194, 154, 91, 0.5);
  color: var(--bone);
  transform: rotateY(180deg);
  justify-content: center;
}

.flip-face--truth .flip-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.flip-face--truth p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--bone);
}

.flip-face--truth .flip-cat { color: var(--dark-muted); }

@media (prefers-reduced-motion: reduce) {
  .flip-card__inner { transition: none; }
}

/* ---------- "Decode" scroll animation (book page) ---------- */
/* Once scroll-scrubbed and pinned (320vh track + sticky stage) — users read the
   pin as a glitch. Now a normal section; js/decode.js runs the beats on a clock. */
.decode {
  position: relative;
  background:
    radial-gradient(46rem 30rem at 50% 20%, rgba(194, 154, 91, 0.08), transparent 60%),
    var(--ink);
}

.decode__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3.5vh, 2.25rem);
  padding: clamp(3rem, 8vh, 5rem) 1.25rem;
  overflow: hidden;
}

.decode.is-static .decode__stage {
  position: static;
  height: auto;
  padding-block: clamp(3rem, 8vh, 5rem);
}

.decode__canvas {
  width: min(340px, 74vw);
  height: auto;
  display: block;
}

.decode__code {
  font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
  font-size: 0.78rem;
  min-height: 1.2em;
  opacity: 0;
  text-align: center;
}

.decode__caps {
  position: relative;
  width: min(32rem, 90vw);
  min-height: 5rem;
  text-align: center;
}

.decode__cap {
  position: absolute;
  inset: 0;
  margin: auto;
  height: max-content;
  opacity: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.1rem + 2vw, 2.1rem);
  line-height: 1.25;
  color: var(--bone);
}

.decode__cap em {
  font-style: italic;
  color: var(--gold);
}

.decode__cta {
  opacity: 0;
  pointer-events: none;
}

.is-static .decode__code,
.is-static .decode__cta {
  opacity: 1;
  pointer-events: auto;
}

@keyframes decodeMote {
  from { transform: translate(0, 0); }
  to { transform: translate(3px, -3px); }
}

@media (prefers-reduced-motion: reduce) {
  #motes circle { animation: none !important; }
}

/* ---------- Lexicon (dictionary definition block) ---------- */
.lexicon {
  max-width: 34rem;
  margin-block: 0 var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  text-align: left;
}

.lexicon--center {
  margin-inline: auto;
  margin-bottom: var(--sp-4);
}

.lexicon__word {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--bone);
}

.lexicon__pron {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dark-muted);
}

.lexicon__pos {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
}

.lexicon__defs {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.lexicon__defs li {
  display: flex;
  gap: 0.65rem;
  color: var(--dark-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.lexicon__defs .n {
  flex-shrink: 0;
  font-family: var(--font-display);
  color: var(--gold-deep);
}

.lexicon__note {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--gold-soft);
}

/* ---------- Sovereign Score band ---------- */
.score-band {
  background:
    radial-gradient(40rem 20rem at 85% -30%, rgba(246, 241, 231, 0.22), transparent 60%),
    var(--gold);
  color: var(--ink);
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
}

.score-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.score-band .eyebrow {
  color: var(--ink);
  opacity: 0.75;
}

.score-band h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  max-width: 22ch;
}

.score-band p {
  margin-top: 0.5rem;
  color: rgba(22, 19, 14, 0.75);
  font-weight: 500;
  max-width: 46ch;
}

.score-band .btn {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .score-band .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .score-band .btn {
    width: 100%;
  }
}

/* ---------- Cohort cards ---------- */
.cohort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--sp-3);
  max-width: 60rem;
  margin-inline: auto;
}

.cohort-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  cursor: pointer;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

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

.cohort-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 154, 91, 0.18);
}

.cohort-status {
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
}

.cohort-status.is-open { background: rgba(74, 107, 69, 0.15); color: var(--success); }
.cohort-status.is-wait { background: rgba(194, 154, 91, 0.16); color: var(--gold-deep); }

.cohort-date {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.cohort-date strong {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--text);
}

.cohort-date span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-muted);
}

.cohort-label {
  font-weight: 600;
  font-size: var(--fs-base);
}

.cohort-spots {
  font-size: var(--fs-sm);
  color: var(--gold-deep);
  font-weight: 600;
}

.cohort-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

.cohort-btn {
  margin-top: var(--sp-2);
  width: 100%;
  pointer-events: none;
}

/* ---------- Book preview (click-through) ---------- */
.preview-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--sp-3);
}

.preview-book {
  width: min(26rem, 100%);
  aspect-ratio: 0.72;
  perspective: 1600px;
  position: relative;
}

.preview-page {
  position: absolute;
  inset: 0;
  border-radius: 8px 14px 14px 8px;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(194, 154, 91, 0.16), transparent 55%),
    linear-gradient(160deg, #241e13 0%, #16130e 70%);
  border: 1px solid rgba(194, 154, 91, 0.35);
  box-shadow: -20px 30px 50px rgba(22, 19, 14, 0.35);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  color: var(--bone);
  transform-origin: left center;
  transition: transform 350ms var(--ease), opacity 350ms var(--ease);
}

.preview-page.turning {
  transform: rotateY(-70deg);
  opacity: 0.2;
}

.preview-page .pg-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}

.preview-page h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: var(--sp-2);
}

.preview-page p {
  color: var(--dark-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.preview-page .pg-num {
  margin-top: auto;
  font-family: var(--font-display);
  color: var(--gold-deep);
  font-size: var(--fs-sm);
}

.preview-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.preview-controls .dots {
  display: flex;
  gap: 0.45rem;
}

.preview-controls .dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(34, 28, 16, 0.18);
  transition: background 200ms var(--ease);
}

.preview-controls .dots span.on { background: var(--gold); }

/* ---------- Legal pages ---------- */
.legal-content {
  padding-block: var(--sp-6);
}

.legal-content h2 {
  font-size: var(--fs-h3);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.legal-content ul {
  padding-left: 1.4rem;
  margin-bottom: var(--sp-2);
}

.legal-content .updated {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-style: italic;
}
