/* ==========================================================================
   The Payout Room — Savvy B Trades
   Self-hosted Onest. Light theme, four switchable palettes.
   One spacing scale, one radius scale, borders over shadows.
   ========================================================================== */

/* Onest — variable weight, self-hosted first with Google's CDN copy as a
   fallback source. Browsers try /assets/fonts/onest.woff2 and only fall
   through to gstatic if it isn't served, so the face always resolves. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest.woff2") format("woff2"),
       url("https://fonts.gstatic.com/s/onest/v11/gNMKW3F-SZuj7xmf-HY.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193,
    U+2212, U+2215, U+25C6, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest.woff2") format("woff2"),
       url("https://fonts.gstatic.com/s/onest/v11/gNMKW3F-SZuj7xmR-HY6EQ.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette: violet (default). */
  --accent-rgb: 91, 43, 224;
  --accent: #5b2be0;
  --accent-hover: #4a1fc4;
  --bg: #faf9fc;
  --surface: #ffffff;
  --raised: #f2f0f8;
  --text: #14102a;
  --text-2: #4a4663;
  --muted: #767289;
  --card: #17132e;
  --card-2: #221b46;
  --line: rgba(20, 16, 42, 0.09);
  --line-2: rgba(20, 16, 42, 0.16);
  --chart-grid: rgba(20, 16, 42, 0.06);

  --on-accent: #ffffff;
  --accent-soft: rgba(var(--accent-rgb), 0.07);
  --accent-soft-2: rgba(var(--accent-rgb), 0.13);
  --accent-ring: rgba(var(--accent-rgb), 0.24);
  --card-text: #ffffff;
  --card-muted: #a8a2c4;
  --up: #12a06b;
  --down: #d9454d;

  /* One spacing scale. Everything uses these. */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  /* One radius scale. */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --font: "Onest", "Helvetica Neue", Arial, sans-serif;
  --measure: 60ch;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1140px;
  --section: clamp(64px, 9vw, 112px);

  color-scheme: light;
}

:root[data-theme="royal"] {
  --accent-rgb: 31, 71, 230;
  --accent: #1f47e6; --accent-hover: #1839c2;
  --bg: #f9fafc; --raised: #eef1f6; --text: #0f1222; --text-2: #414659; --muted: #70768a;
  --card: #11142a; --card-2: #1a2044; --card-muted: #9aa1bb;
  --line: rgba(15, 18, 34, 0.09); --line-2: rgba(15, 18, 34, 0.16); --chart-grid: rgba(15, 18, 34, 0.06);
}
:root[data-theme="emerald"] {
  --accent-rgb: 14, 138, 106;
  --accent: #0e8a6a; --accent-hover: #0b6e55;
  --bg: #f8fbf9; --raised: #ecf2ef; --text: #0f1a16; --text-2: #3f4f48; --muted: #6b7a73;
  --card: #101d18; --card-2: #182e26; --card-muted: #98aba2;
  --line: rgba(15, 26, 22, 0.09); --line-2: rgba(15, 26, 22, 0.16); --chart-grid: rgba(15, 26, 22, 0.06);
  --up: #1fb37c;
}
:root[data-theme="ember"] {
  --accent-rgb: 216, 78, 38;
  --accent: #d84e26; --accent-hover: #b73e1b;
  --bg: #fcf9f6; --raised: #f4ede7; --text: #1c1410; --text-2: #52453f; --muted: #7f716a;
  --card: #1e1511; --card-2: #32211a; --card-muted: #b3a29a;
  --line: rgba(28, 20, 16, 0.09); --line-2: rgba(28, 20, 16, 0.16); --chart-grid: rgba(28, 20, 16, 0.06);
}

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

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft-2); color: var(--text); }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--s1);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { margin: 0; }
p + p { margin-top: 0.9em; }

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

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  max-width: var(--measure);
}

.num { font-variant-numeric: tabular-nums; }

.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;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 15px var(--s5);
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 150ms ease, border-color 150ms ease,
    color 150ms ease, transform 150ms ease;
}
.btn .arrow { transition: transform 150ms ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 18px var(--s6); font-size: 1.05rem; }
.btn-sm { padding: 11px var(--s4); font-size: 0.92rem; white-space: nowrap; }

.cta { display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.cta.center { align-items: center; text-align: center; }
.cta-note { font-size: 0.9rem; color: var(--muted); }

/* Nav -------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  height: 68px;
}
.wordmark { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.wordmark-mark {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.wordmark-mark svg { width: 16px; height: 16px; }
.wordmark-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: var(--s6); }
/* Small phones: "Join" alone, so the button never covers the name. */
.nav-cta-short { display: none; }
@media (max-width: 420px) { .nav-cta-long { display: none; } .nav-cta-short { display: inline; } }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } }

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

.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 96px) clamp(48px, 7vw, 80px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 44rem; height: 44rem;
  max-width: 110vw;
  background: radial-gradient(circle at center, rgba(var(--accent-rgb), 0.09), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); }
.hero-copy h1 { max-width: 13ch; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
}
.badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(18, 160, 107, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(18, 160, 107, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(18, 160, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 160, 107, 0); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  width: 100%;
}
.stat + .stat { padding-left: var(--s5); border-left: 1px solid var(--line); }
@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat + .stat { padding-left: 0; border-left: 0; }
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-n {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-l { font-size: 0.85rem; color: var(--muted); line-height: 1.3; }
a.stat-n:hover { color: var(--accent); }

/* Hero visual: the key levels chart */
.chart-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.chart-head strong { color: var(--text); font-weight: 600; }
.chart-head .marked { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.chart-head .marked::before {
  content: "";
  width: 14px; height: 0;
  border-top: 2px dashed var(--accent);
}
.chart-svg { width: 100%; height: auto; }
.chart-foot {
  padding: var(--s3) var(--s5) var(--s4);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.video-frame { aspect-ratio: 16 / 9; width: 100%; background: var(--card); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 15ch; }
}

/* Marquee ---------------------------------------------------------------- */

.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding-block: var(--s4);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
.marquee-group span {
  padding-inline: var(--s5);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-group i {
  font-style: normal;
  font-size: 0.45rem;
  color: var(--accent);
  opacity: 0.7;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

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

.section { padding-block: var(--section); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}
.card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  transition: border-color 180ms ease;
}
.section-alt .card { background: var(--bg); }
.card:hover { border-color: var(--line-2); }
.card-icon {
  width: 38px; height: 38px;
  margin-bottom: var(--s2);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.card-icon svg { width: 19px; height: 19px; }
.card p { color: var(--text-2); font-size: 0.96rem; line-height: 1.55; }
.card.is-lead { background: var(--accent); border-color: var(--accent); }
.card.is-lead h3, .card.is-lead p { color: var(--on-accent); }
.card.is-lead p { opacity: 0.88; }
.card.is-lead .card-icon { background: rgba(255, 255, 255, 0.16); color: var(--on-accent); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } .card { padding: var(--s5); } }

/* Videos ----------------------------------------------------------------- */

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.video-box.is-vertical { aspect-ratio: 9 / 16; }
.video-box iframe,
.video-box video { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* YouTube: our own thumbnail and play button until someone clicks. */
.video-play {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: #000;
  cursor: pointer;
}
.video-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play-icon {
  position: absolute; left: 12px; bottom: 12px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: transform 160ms ease;
}
.video-play-icon::after {
  content: "";
  position: absolute; left: 54%; top: 50%;
  border-style: solid;
  width: 0; height: 0;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--on-accent);
  transform: translate(-50%, -50%);
}
.video-play:hover .video-play-icon,
.video-play:focus-visible .video-play-icon { transform: scale(1.08); }

/* Hero, video-first: headline, then a large video, then the button. */
.hero--video .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero--video .hero-copy { align-items: center; text-align: center; max-width: 1000px; margin-inline: auto; width: 100%; }
.hero--video { padding-top: clamp(40px, 5vw, 64px); }
.hero--video .hero-copy { gap: var(--s4); }
.hero--video .hero-copy h1 { max-width: 24ch; font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.hero--video .hero-copy .lede { max-width: 56ch; }
.hero--video .hero-video { border: 1px solid var(--line-2); margin-block: var(--s2); }
.hero--video .cta { align-items: center; }
.hero--video .stats { justify-content: center; max-width: 640px; }
.hero--video::before { inset: -30% auto auto 50%; transform: translateX(-50%); }

/* Brad's FAQ videos, at the top of the FAQ section. */
.faq-videos { margin-bottom: clamp(56px, 8vw, 96px); }
.video-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
  align-items: stretch;
}
.video-card {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.video-card-head { display: flex; align-items: baseline; gap: var(--s3); min-height: 2.7em; }
.video-card-num {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.video-card h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.video-card .video-box { margin-top: auto; border-radius: var(--r-md); }
.video-card .video-box.is-vertical { max-width: 320px; margin-inline: auto; }
@media (max-width: 720px) {
  .video-cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .video-card-head { min-height: 0; }
}

/* Schedule --------------------------------------------------------------- */

.schedule {
  margin-top: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  overflow: hidden;
}
.schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s4) var(--s5);
  align-items: center;
  padding: var(--s5) var(--s6);
}
.schedule-row + .schedule-row { border-top: 1px solid var(--line); }
.schedule-what { display: flex; flex-direction: column; gap: var(--s1); }
.schedule-what strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.schedule-what span { font-size: 0.92rem; color: var(--muted); }
.days { display: flex; gap: var(--s2); }
.day {
  width: 40px;
  padding-block: 9px;
  border-radius: var(--r-sm);
  background: var(--raised);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.day.on { background: var(--accent); color: var(--on-accent); }
@media (max-width: 700px) {
  .schedule-row { grid-template-columns: 1fr; }
  .schedule-row { padding: var(--s5); }
  .day { flex: 1; width: auto; }
  .days { width: 100%; }
}

/* Pricing ---------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.pricing-copy { display: flex; flex-direction: column; gap: var(--s4); }
.check-list {
  list-style: none;
  padding: 0;
  margin: var(--s2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  color: var(--text-2);
}
.check-list li { display: flex; align-items: flex-start; gap: var(--s3); }
.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='9' fill='none' stroke='black' stroke-width='1.5'/><path d='M6.2 10.3l2.5 2.5 5.1-5.3' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='9' fill='none' stroke='black' stroke-width='1.5'/><path d='M6.2 10.3l2.5 2.5 5.1-5.3' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}

.plan {
  padding: var(--s6);
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--card-text);
  font-variant-numeric: tabular-nums;
}
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-bottom: var(--s5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.plan-head .name { font-size: 0.95rem; font-weight: 600; }
.plan-head .tag {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--card-text);
}
.plan-price { display: flex; align-items: baseline; gap: var(--s2); padding-top: var(--s5); }
.plan-price .amt { font-size: 3.25rem; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.plan-price .per { color: var(--card-muted); font-size: 1rem; }
.plan-sub { margin-top: var(--s2); color: var(--card-muted); font-size: 0.9rem; }
.plan-lines {
  list-style: none;
  padding: 0;
  margin: var(--s5) 0 var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.plan-lines li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.88);
}
.plan-lines li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin-top: 4px;
  background: var(--card-text);
  opacity: 0.9;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.4l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.4l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}
.plan .btn { width: 100%; }
.plan-note { margin-top: var(--s3); text-align: center; font-size: 0.85rem; color: var(--card-muted); }
@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .plan { max-width: 480px; }
}

/* Bio -------------------------------------------------------------------- */

.bio-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--accent-soft-2), var(--raised));
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--s2);
}
.portrait-empty .initials {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.portrait-empty .hint { font-size: 0.78rem; color: var(--muted); }
.portrait .handle {
  position: absolute; left: var(--s4); bottom: var(--s4);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}
.bio-copy { display: flex; flex-direction: column; gap: var(--s4); }
.bio-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s3);
}
.bio-stat {
  padding: var(--s4) var(--s5);
  border-left: 2px solid var(--accent);
  display: flex; flex-direction: column; gap: 2px;
}
.bio-stat .n { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bio-stat .l { font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 820px) {
  .bio-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
}

/* FAQ -------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; gap: var(--s3); }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color 180ms ease;
}
.section-alt .faq-list details { background: var(--bg); }
.faq-list details[open] { border-color: var(--line-2); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s5);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  position: relative;
  transition: transform 200ms ease;
}
.faq-list summary .plus::before,
.faq-list summary .plus::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px;
  border-radius: 1px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.faq-list summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] summary .plus { transform: rotate(45deg); }
.faq-list .answer {
  padding: 0 var(--s5) var(--s5);
  color: var(--text-2);
  font-size: 0.97rem;
  max-width: var(--measure);
}
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; } }

/* Final CTA -------------------------------------------------------------- */

.final { padding-block: var(--section); }
.final-box {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 88px) var(--s6);
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--card-text);
  text-align: center;
}
.final-box::before {
  content: "";
  position: absolute;
  inset: auto auto -55% 50%;
  transform: translateX(-50%);
  width: 40rem; height: 40rem;
  max-width: 140%;
  background: radial-gradient(circle at center, rgba(var(--accent-rgb), 0.5), transparent 62%);
  pointer-events: none;
}
.final-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s5);
  max-width: 620px;
  margin-inline: auto;
}
.final-box .eyebrow { color: var(--card-text); opacity: 0.65; }
.final-box h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.final-box p { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; }
.final-box .btn-primary { background: var(--on-accent); color: var(--card); }
.final-box .btn-primary:hover { background: rgba(255, 255, 255, 0.88); }
.final-box .cta-note { color: var(--card-muted); }

/* Footer ----------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s7) calc(var(--s8) + 44px);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer .wrap { display: flex; flex-direction: column; gap: var(--s5); }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: var(--s5); flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent); }
.disclaimer { max-width: 76ch; line-height: 1.6; font-size: 0.8rem; }
@media (min-width: 761px) { .footer { padding-bottom: var(--s7); } }

/* Sticky mobile CTA ------------------------------------------------------ */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: var(--s4);
  transform: translateY(110%);
  transition: transform 260ms ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .price { font-weight: 700; line-height: 1.2; white-space: nowrap; }
.sticky-cta .price small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.sticky-cta .btn { flex: 1; }
@media (min-width: 761px) { .sticky-cta { display: none; } }

/* Sub pages: opt-in ------------------------------------------------------ */

.page { display: flex; flex-direction: column; min-height: 100vh; }
.page-main { flex: 1; padding-block: clamp(48px, 7vw, 88px); }

.optin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.optin-copy { display: flex; flex-direction: column; gap: var(--s4); }
.optin-copy h1 { font-size: clamp(2rem, 4vw, 2.9rem); max-width: 14ch; }
.optin-fine { font-size: 0.87rem; color: var(--muted); margin-top: var(--s2); }

.optin-form {
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.form-head strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.form-head span { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 14px var(--s4);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
.field input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  background: var(--surface);
}
.field input[aria-invalid="true"] { border-color: var(--down); }
.field .hint { font-size: 0.8rem; color: var(--muted); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.consent input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.form-status { font-size: 0.9rem; color: var(--down); }
.form-status.ok { color: var(--up); }
.form-status:empty { display: none; }

.optin-form[hidden] { display: none; }
.pay-step { scroll-margin-top: 96px; }
.pay-embed { min-height: 420px; }
.pay-embed:empty::before,
.pay-embed > div:only-child:empty::before {
  content: "Loading secure checkout…";
  display: block;
  padding-top: var(--s6);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.pay-fallback { font-size: 0.9rem; color: var(--text-2); }
.pay-fallback a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.optin-form .btn { width: 100%; }
.optin-form .btn[disabled] { opacity: 0.65; cursor: progress; }
.optin-form .cta-note { text-align: center; }

@media (max-width: 880px) {
  .optin-grid { grid-template-columns: 1fr; }
  .optin-form { order: -1; }
  .optin-copy h1 { max-width: none; }
}

/* Sub pages: confirmation + legal --------------------------------------- */

.narrow { max-width: 620px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--s4); }
.narrow h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }

.note-box {
  margin-top: var(--s2);
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex; flex-direction: column; gap: var(--s2);
  color: var(--text-2);
  font-size: 0.95rem;
}
.note-box .k { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.note-box code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  background: var(--raised);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text);
}
.back { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s2); color: var(--muted); font-size: 0.95rem; }
.back:hover { color: var(--accent); }

.legal { max-width: 680px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--s6); }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.75rem); }
.legal h2 { font-size: 1.15rem; }
.legal section { display: flex; flex-direction: column; gap: var(--s3); }
.legal p, .legal li { color: var(--text-2); font-size: 0.97rem; }
.legal ul { padding-left: 1.2em; margin: 0; display: flex; flex-direction: column; gap: var(--s2); }
.legal .updated { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Palette picker --------------------------------------------------------- */

.palettes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.palette {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: var(--s5);
  display: flex; flex-direction: column; gap: var(--s3);
}
.palette.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.palette-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.palette-head h3 { font-size: 1.05rem; }
.palette-head .k { font-size: 0.75rem; color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.swatches span { display: block; aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); }
.palette p { font-size: 0.9rem; color: var(--text-2); }
.palette .row { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s1); }
@media (max-width: 700px) { .palettes { grid-template-columns: 1fr; } }

/* Motion ----------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .badge .dot { animation: none; }
  .btn, .btn .arrow, .sticky-cta, .card, .faq-list details, .video-play-icon { transition: none; }
}
