:root {
  --blue: #0347af;
  --blue-deep: #04358a;
  --blue-tint: #e6eefb;
  --green: #59941d;
  --green-deep: #4a7a16;
  --green-tint: #f1f7e9;
  --ink: #0f1b2d;
  --ink-2: #26334a;      /* body copy: 8.5:1 on the blue page */
  --ink-3: #3a475b;      /* quiet text: 6.3:1 on the blue page */
  --line: #e3e8ef;
  --rule: #8d98a8;      /* dark grey for section divider lines */
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --page: #c3d5ee;      /* the light blue page behind everything */
  --page-line: #b1c5e2; /* rules drawn on the page colour */
  --radius: 14px;
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Roboto', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.eyebrow {
  font: 600 15px/1.35 var(--head);
  letter-spacing: 0;
  color: #2d4d0c; /* a deeper brand green: 6.5:1 on the blue page */
}
.section { padding: 104px 0; }
.section.soft { background: #fff; border-block: 1px solid var(--page-line); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; font-weight: 800; margin-top: 14px; }
.section-head p:not(.eyebrow) { color: var(--ink-2); margin-top: 16px; font-size: 18px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 700 15px/1 var(--head); letter-spacing: 0.01em;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-patreon { background: var(--ink); color: #fff; }
.btn-patreon:hover { background: #000; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.patreon-mark { width: 16px; height: 16px; flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; height: 76px; gap: 32px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font: 500 15px/1 var(--head); }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 96px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; font-weight: 800;
  margin: 20px 0 24px;
}
.hero h1 .accent { color: var(--blue); }
.hero .lede { font-size: 19.5px; color: var(--ink-2); max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--ink-3); }
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #e5484d; margin-right: 8px; vertical-align: 1px;
 
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }

/* Punnett card */
.punnett-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 28px; box-shadow: 0 30px 60px -30px rgba(6,71,176,.25), 0 2px 6px rgba(15,27,45,.04);
}
.pc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pc-top h3 { font-size: 17px; font-weight: 700; }
.pc-top .tag { font: 600 12px/1 var(--head); color: var(--green); background: var(--green-tint); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.pc-sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.punnett {
  display: grid; grid-template-columns: 56px 1fr 1fr; grid-template-rows: 44px 1fr 1fr;
  gap: 8px; margin-top: 22px;
}
.punnett .h {
  display: grid; place-items: center;
  font: 700 15px/1 var(--head); color: var(--ink-2);
}
.punnett .h em { font-style: normal; color: var(--blue); }
.cell {
  border-radius: 12px; padding: 14px 12px; min-height: 92px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line);
}
.cell .g { font: 700 18px/1 var(--head); }
.cell .g em { font-style: normal; color: var(--blue); }
.cell .ph { font-size: 13px; color: var(--ink-2); }
.cell.homo { background: var(--blue); border-color: var(--blue); }
.cell.homo .g, .cell.homo .g em, .cell.homo .ph { color: #fff; }
.cell.het { background: var(--blue-tint); border-color: #d6e2f7; }
.cell.wt { background: var(--bg-soft); }
.pc-odds { display: flex; gap: 8px; margin-top: 18px; height: 10px; }
.pc-odds span { border-radius: 99px; }
.pc-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; gap: 6px 14px; }
.pc-legend b { color: var(--ink); font-weight: 600; }
.pc-foot { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); }

/* ---------- floating DNA (public/dna.js) ---------- */
.has-dna { position: relative; overflow: hidden; isolation: isolate; }
.has-dna > :not(.dna-field) { position: relative; z-index: 1; }
.dna-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.dna-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dna-p {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate3d(-50%, calc(-50% + var(--py, 0px) * var(--z) * 2), 0);
  will-change: transform;
}
.dna-i {
  display: block; width: var(--w); color: var(--blue);
  opacity: 0; transform: rotate(var(--r)); will-change: transform, opacity;
  animation: dna-life var(--d) linear var(--delay) infinite;
}
.dna-i.dna-green { color: var(--green); }
.dna-light .dna-i, .dna-light .dna-i.dna-green { color: #fff; }
.dna-clip { position: relative; display: block; overflow: hidden; aspect-ratio: 40 / 120;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.dna-roll { position: absolute; left: 0; top: -33.334%; width: 100%; height: 166.667%; animation: dna-roll var(--t) linear infinite; will-change: transform; }
.dna-svg { display: block; width: 100%; height: 100%; }
.dna-strand { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.dna-strand-b { opacity: .72; }
.dna-rung { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: .55; }
.dna-rev .dna-roll { animation-direction: reverse; }
.dna-field:not(.dna-run) .dna-i, .dna-field:not(.dna-run) .dna-roll { animation-play-state: paused; }
/* Fade in, rise a little, fade out; then start again from the bottom (while invisible). */
@keyframes dna-life {
  0% { opacity: 0; transform: translate(0, 0) rotate(var(--r)); animation-timing-function: ease-in-out; }
  25% { opacity: var(--o); }
  70% { opacity: var(--o); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) + var(--dr))); }
}
/* one turn of the helix is a fifth of the drawing: slide by that and loop */
@keyframes dna-roll { to { transform: translate3d(0, -20%, 0); } }
@media (prefers-reduced-motion: reduce) {
  .dna-i, .dna-roll { animation: none; }
  .dna-i { opacity: var(--o); }
  .dna-p { transform: translate(-50%, -50%); will-change: auto; }
}

/* ---------- synopsis strip ---------- */
/* the quick-facts band: soft white over the blue, with a faint honeycomb (like a molecule diagram) */
/* the quick facts: a frosted panel that floats over the bottom of the hero, with a faint
   honeycomb (like a molecule diagram) that fades out towards its edges */
.strip { position: relative; z-index: 2; margin-top: -58px; }
.strip-inner { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .85); border-radius: 22px;
  box-shadow: 0 1px 2px rgba(15, 30, 60, .04), 0 18px 40px rgba(15, 30, 60, .08); }
.strip-inner::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24.25' height='42'%3E%3Cpath d='M12.125 0L24.25 7L24.25 21L12.125 28L0 21L0 7ZM12.125 28L12.125 42' fill='none' stroke='%230347af' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E"); background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 120% at 50% 50%, #000 20%, transparent 85%); mask-image: radial-gradient(ellipse 70% 120% at 50% 50%, #000 20%, transparent 85%); }
.strip-item { position: relative; padding: 26px 28px; }
.strip-item + .strip-item::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: rgba(3, 71, 175, .14); }
.strip-item b { display: block; font: 800 26px/1.1 var(--head); color: var(--blue); }
.strip-item span { font-size: 14.5px; color: var(--ink-2); }

/* ---------- what it is ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about-grid .big { font: 600 clamp(22px, 2.3vw, 28px)/1.4 var(--head); color: var(--ink); letter-spacing: -0.01em; }
.about-grid .big mark { background: none; color: var(--blue); }
.about-grid p + p { margin-top: 18px; }
.about-grid .copy p { color: var(--ink-2); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 72px; border-top: 1px solid var(--line); }
.pillar { padding: 32px 32px 0 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar .num { font: 800 14px/1 var(--head); color: var(--green); letter-spacing: .1em; }
.pillar h3 { font-size: 21px; margin: 14px 0 10px; }
.pillar p { color: var(--ink-2); font-size: 16px; }

/* ---------- perks ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.perk {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.perk .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue); margin-bottom: 20px;
}
.perk:nth-child(even) .ico { background: var(--green-tint); color: var(--green); }
.perk .ico svg { width: 24px; height: 24px; }
.perk h3 { font-size: 18.5px; margin-bottom: 8px; }
.perk p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- curriculum: a photo of Ben teaching beside the list of topics ---------- */
.syl { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
/* the left panel: a small diagram for the open topic */
.syl-viz { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 14px; padding: 26px 28px 24px; min-height: 440px; background: #fff; border: 1px solid var(--page-line); border-radius: 22px; box-shadow: 0 20px 44px rgba(15, 30, 60, .1); }
.syl-viz-top { display: grid; gap: 4px; }
.syl-viz-top span { font: 700 11.5px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.syl-viz-top b { font: 700 18px/1.3 var(--head); color: var(--ink); }
.dg { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 14px; align-items: center; }
.dg.on { animation: dg-in .45s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes dg-in { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.985); } }
.dg svg { width: 100%; height: auto; display: block; }
.dg figcaption { padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.dg text { font-family: var(--head); }
.dg .dg-a { font-size: 15px; font-weight: 700; fill: #3c4a5e; }
.dg .dg-a.on { fill: #fff; }
.dg .dg-t { font-size: 15px; font-weight: 700; fill: #0f1b2d; }
.dg .dg-s { font-family: var(--body); font-size: 12.5px; fill: #4b576a; }
.dg .dg-strong { font-weight: 700; fill: #0f1b2d; }
.dg .dg-h { font-size: 15px; font-weight: 800; fill: #0347af; }
.dg .dg-c { font-size: 15px; font-weight: 700; fill: #0347af; }
.dg .dg-c.dg-cs { font-family: var(--body); font-size: 11.5px; font-weight: 500; fill: #3c4a5e; }
.dg .dg-c.on { fill: #fff; }
.dg .dg-c.on.dg-cs { fill: rgba(255, 255, 255, .85); }
.dg .dg-q { font-family: var(--body); font-size: 14.5px; fill: #0f1b2d; }
.dg .dg-blue { fill: #0347af; }
.dg .dg-green { fill: #365c10; }
@media (prefers-reduced-motion: reduce) { .dg.on { animation: none; } }
.syl-body .section-head { margin-bottom: 26px; }
.syl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(3, 71, 175, .18); }
.syl-row { border-bottom: 1px solid rgba(3, 71, 175, .18); transition: background-color .2s ease; }
.syl-q { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 12px; align-items: center; width: 100%; padding: 18px 14px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); }
.syl-n { font: 800 14px/1 var(--head); color: var(--blue); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.syl-t { font: 700 19px/1.3 var(--head); }
.syl-q svg { width: 18px; height: 18px; color: var(--ink-3); transition: transform .25s ease; }
.syl-q:hover .syl-t { color: var(--blue); }
.syl-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.syl-a > div { overflow: hidden; }
.syl-a p { padding: 0 44px 20px 70px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.syl-row.open { background: rgba(255, 255, 255, .7); border-radius: 14px; border-bottom-color: transparent; }
.syl-row.open .syl-a { grid-template-rows: 1fr; }
.syl-row.open .syl-q svg { transform: rotate(180deg); color: var(--blue); }
.syl-more { margin-top: 22px; font-size: 15.5px; color: var(--ink-2); }
.syl-more a { font-weight: 600; }
@media (max-width: 960px) {
  .syl { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .syl-viz { min-height: 0; order: 2; }
}
@media (max-width: 640px) {
  .syl-q { grid-template-columns: 34px minmax(0, 1fr) 18px; padding: 16px 10px; }
  .syl-t { font-size: 17px; }
  .syl-a p { padding: 0 16px 18px 56px; }
}
@media (prefers-reduced-motion: reduce) { .syl-a, .syl-q svg { transition: none; } }

/* ---------- schedule ---------- */
.sched-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.sessions { display: grid; gap: 12px; }
.session {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.date { text-align: center; border-right: 1px solid var(--line); padding-right: 18px; }
.date .m { font: 700 12px/1 var(--head); letter-spacing: .14em; color: var(--green); text-transform: uppercase; }
.date .d { font: 800 30px/1.1 var(--head); color: var(--ink); }
.session h4 { font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.session .meta { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.pill { font: 600 12px/1 var(--head); padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.pill.live { background: #fdecec; color: #c4303a; }
.pill.qa { background: var(--green-tint); color: var(--green-deep); }
.pill.deep { background: var(--blue-tint); color: var(--blue); }

/* ---------- Ben ---------- */
.ben-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: center; }
.ben-photo {
  aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--blue-tint), #fff 60%, var(--green-tint));
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 2px 6px rgba(15, 30, 60, .06), 0 28px 60px -12px rgba(15, 30, 60, .28);
  display: grid; place-items: center;
}
.ben-photo .mono { font: 800 92px/1 var(--head); color: var(--blue); letter-spacing: -0.04em; }
.ben-photo .ph-note { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--ink-3); }
.ben-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ben blockquote {
  margin: 22px 0 26px; font: 600 clamp(22px, 2.4vw, 30px)/1.35 var(--head); color: var(--ink);
  letter-spacing: -0.01em;
}
.ben blockquote::before { content: '\201C'; color: var(--green); }
.ben blockquote::after { content: '\201D'; color: var(--green); }
.ben .sig { font: 700 17px/1.3 var(--head); }
.ben .sig span { display: block; font: 400 15px/1.5 var(--body); color: var(--ink-3); }
.ben .copy { color: var(--ink-2); margin-top: 22px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff; font: 800 16px/1 var(--head); margin-bottom: 20px;
}
.step:nth-child(2)::before { background: var(--green); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier {
  border: 1px solid var(--line); border-radius: 20px; padding: 32px 30px; background: #fff;
  display: flex; flex-direction: column;
}
.tier.featured { border: 2px solid var(--blue); box-shadow: 0 30px 60px -36px rgba(6,71,176,.45); position: relative; }
.tier.featured .flag {
  position: absolute; top: -13px; left: 30px; background: var(--blue); color: #fff;
  font: 700 11.5px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px;
}
.tier h3 { font-size: 21px; }
.tier .for { color: var(--ink-3); font-size: 14.5px; margin-top: 4px; }
.tier .price { font: 800 46px/1 var(--head); margin: 24px 0 4px; letter-spacing: -0.02em; }
.tier .price small { font: 500 15px/1 var(--body); color: var(--ink-3); letter-spacing: 0; }
.tier ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 11px; flex: 1; }
.tier li { padding-left: 28px; position: relative; font-size: 15.5px; color: var(--ink-2); }
.tier li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2359941d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.tier li.inc { color: var(--ink); font-weight: 500; }
.tier .btn { width: 100%; }
.tiers-note { text-align: center; margin-top: 26px; color: var(--ink-3); font-size: 14.5px; }

/* ---------- FAQ ---------- */
/* FAQ: heading and a help card on the left, each question a white card on the right */
.faq-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side .section-head { margin-bottom: 24px; }
.faq-side .section-head p:not(.eyebrow) { font-size: 16.5px; }
.faq-help { display: grid; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--page-line); border-radius: 16px; }
.faq-help b { font: 700 17px/1.3 var(--head); }
.faq-help span { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.faq-help .btn { justify-self: start; margin-top: 6px; }
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--page-line); border-radius: 16px; transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item:hover { border-color: #b9cbe6; }
.faq-item.open { border-color: #b9cbe6; box-shadow: 0 12px 30px rgba(15, 30, 60, .08); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 22px; font: 600 17px/1.4 var(--head); color: var(--ink);
}
.faq-q .plus { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--blue-tint); position: relative; transition: transform .2s, background .2s; }
.faq-q .plus::before, .faq-q .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--blue); transform: translate(-50%, -50%); border-radius: 2px; }
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .2s; }
.faq-item.open .plus { background: var(--blue); border-color: var(--blue); }
.faq-item.open .plus::before { background: #fff; }
.faq-item.open .plus::after { opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--ink-2); padding: 0 64px 22px 22px; }
@media (max-width: 960px) {
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq-side { position: static; }
  .faq-help { display: none; }
}
@media (max-width: 640px) {
  .faq-q { padding: 18px; font-size: 16px; }
  .faq-a p { padding: 0 18px 18px; }
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- final CTA ---------- */
.cta-band {
  background: var(--blue); color: #fff; border-radius: 28px; padding: 64px;
  display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.82); margin-top: 14px; font-size: 18px; }
.cta-band .btns { display: flex; flex-direction: column; gap: 12px; position: relative; }
.cta-band .btn-white { background: #fff; color: var(--blue); }
.cta-band .btn-white:hover { background: var(--green-tint); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---------- footer ---------- */
.footer { padding: 64px 0 40px; background: #fff; border-top: 1px solid var(--page-line); margin-top: 104px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer img { height: 38px; width: auto; }
.footer p { color: var(--ink-3); font-size: 15px; margin-top: 16px; max-width: 360px; }
.footer h4 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer ul a { color: var(--ink-2); font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 12px; font-size: 15px;
  box-shadow: 0 16px 40px rgba(15,27,45,.25); transition: opacity .25s, transform .25s; z-index: 100;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { gap: 20px; }
  .hero-grid, .about-grid, .sched-grid, .ben-grid { grid-template-columns: 1fr; gap: 48px; }
  .punnett-card { max-width: 520px; }
  .perks, .tiers { grid-template-columns: 1fr 1fr; }
  .tier.featured { order: -1; grid-column: 1 / -1; }
  .ben-photo { max-width: 360px; }
  .cta-band { grid-template-columns: 1fr; padding: 48px; }
  .cta-band .btns { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links, .nav.open .nav-cta {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0;
    background: #fff; padding: 8px 20px; gap: 0;
  }
  .nav.open .nav-links { top: 76px; border-top: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav.open .nav-cta { padding-bottom: 20px; border-bottom: 1px solid var(--line); gap: 10px; }
  .nav.open .nav-cta .btn { width: 100%; height: 48px; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .strip { margin-top: -40px; }
  .strip-item:nth-child(3)::before { display: none; }
  .strip-item:nth-child(n+3) { border-top: 1px solid rgba(3, 71, 175, .12); }
  .pillars, .steps { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .hero { padding: 24px 0 64px; }
  .hero .lede { font-size: 17.5px; }
  .hero-ctas .btn { width: 100%; }
  .nav-logo img { height: 32px; }
  .punnett-card { padding: 20px; }
  .punnett { grid-template-columns: 40px 1fr 1fr; }
  .cell { min-height: 78px; padding: 12px 10px; }
  .cell .g { font-size: 16px; }
  .perks, .tiers { grid-template-columns: 1fr; }
  .session { grid-template-columns: 60px 1fr; }
  .session .pill { grid-column: 2; justify-self: start; }
  .date { padding-right: 14px; }
  .cta-band { padding: 36px 24px; border-radius: 22px; }
  .cta-band .btns .btn { width: 100%; }
  .faq-q { font-size: 16.5px; }
  .faq-a p { padding-right: 0; }
  .footer { margin-top: 72px; }
}

/* ---------- hero video ---------- */
.video-card {
  margin: 0; position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  background: #0b1424;
  box-shadow: 0 40px 80px -40px rgba(6,71,176,.45), 0 0 0 1px rgba(15,27,45,.06);
}
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(4,20,48,0) 45%, rgba(4,20,48,.72));
  display: flex; align-items: flex-end; gap: 16px; text-align: left; color: #fff;
  padding: 24px; transition: background .2s;
}
.video-play:hover .play-btn { transform: scale(1.06); background: var(--green); }
.play-btn {
  flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; transition: transform .2s, background .2s;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.play-btn svg { width: 28px; height: 28px; margin-left: 3px; }
.video-label b { display: block; font: 700 19px/1.25 var(--head); }
.video-label span { font-size: 14.5px; opacity: .85; }
.video-card.playing .video-play { display: none; }
@media (max-width: 640px) {
  .video-card { border-radius: 16px; }
  .video-play { padding: 16px; gap: 12px; }
  .play-btn { width: 52px; height: 52px; }
  .play-btn svg { width: 22px; height: 22px; }
  .video-label b { font-size: 16px; }
  .video-label span { font-size: 13px; }
}

/* phone/tablet hero: headline, then video, then the rest */
@media (max-width: 1020px) {
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-text { display: contents; }
  .hero-eyebrow, .hero h1 { order: 0; }
  .video-card { order: 1; margin-bottom: 28px; max-width: 720px; width: 100%; }
  .hero .lede, .hero-ctas, .hero-note { order: 2; }
  .hero-ctas { margin-top: 26px; }
}
@media (max-width: 640px) {
  .hero h1 { margin: 16px 0 22px; }
  .strip-item { padding: 20px 16px; }
  .strip-item b { font-size: 22px; }
}

/* ---------- community teaser ---------- */
.comm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.comm-h { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; font-weight: 800; margin-top: 14px; }
.comm-lede { color: var(--ink-2); margin-top: 16px; font-size: 18px; }
.comm-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.comm-list li { padding-left: 30px; position: relative; color: var(--ink-2); }
.comm-list li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2359941d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.comm-list b { color: var(--ink); font-weight: 600; }
.comm-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(3,71,175,.25), 0 2px 6px rgba(15,27,45,.04);
}
.cc-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.cc-top b { font: 800 15px/1 var(--head); }
.cc-top span { font: 600 12px/1 var(--head); color: #fff; background: var(--ink); padding: 7px 11px; border-radius: 999px; }
.cc-row { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line); align-items: center; }
.cc-row:first-of-type { border-top: 0; }
.cc-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 13px/1 var(--head); overflow: hidden; }
.cc-av img { width: 100%; height: 100%; object-fit: cover; }
.cc-t { font: 700 15px/1.35 var(--head); color: var(--ink); }
.cc-m { font-size: 13px; color: var(--ink-3); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.cc-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--blue); display: inline-block; }
.cc-dot.g, .cc-dot.t-green { background: var(--green); }
.cc-dot.t-teal { background: #0f8a8a; } .cc-dot.t-amber { background: #c98a06; } .cc-dot.t-rose { background: #c7365f; }
.cc-dot.t-violet { background: #6b46c1; } .cc-dot.t-slate { background: #4b576a; } .cc-dot.t-orange { background: #d4621b; }
.cc-ans, .cc-host { font: 700 11px/1 var(--head); font-style: normal; padding: 4px 7px; border-radius: 6px; margin-left: 4px; vertical-align: 2px; white-space: nowrap; }
.cc-ans { background: var(--green-tint); color: var(--green-deep); }
.cc-host { background: var(--blue); color: #fff; }
@media (max-width: 1020px) { .comm-grid { grid-template-columns: 1fr; gap: 40px; } .comm-card { max-width: 560px; } }
@media (max-width: 640px) { .cc-row { padding: 14px 16px; } .cc-top { padding: 14px 16px; } }

/* ---------- CSP-safe helpers (no inline styles anywhere) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.about-grid .big { margin-top: 18px; }
.about-grid .copy { margin-top: 26px; }
.pc-odds .o-homo { flex: 1; background: var(--blue); }
.pc-odds .o-het { flex: 2; background: #c9d8f3; }
.pc-odds .o-wt { flex: 1; background: var(--line); }
.comm-ctas { margin-top: 30px; }
.c0 { background: #0347af; } .c1 { background: #59941d; } .c2 { background: #2c6bd1; }
.c3 { background: #3f7a12; } .c4 { background: #1d4f9e; } .c5 { background: #6b8f2a; }
.nf-main { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.nf-logo img { height: 46px; width: auto; margin-bottom: 48px; }
.nf h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin-top: 14px; }
.nf-copy { color: var(--ink-2); margin-top: 14px; font-size: 18px; }
.nf-ctas { margin-top: 30px; }

/* ================= What members get: bento ================= */
.perks-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: end; margin-bottom: 44px; }
.perks-head h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 800; margin-top: 14px; }
.perks-head > p { color: var(--ink-2); font-size: 17px; max-width: 420px; justify-self: end; padding-bottom: 6px; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile {
  background: #fff; border: 1px solid #e5eaf2; border-radius: 18px; padding: 24px;
  display: flex; flex-direction: column; gap: 20px; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-2px); border-color: #d3dceb; }
.tile h3 { font: 700 20px/1.25 var(--head); letter-spacing: -0.01em; }
.tile-copy p { color: var(--ink-2); font-size: 15.5px; margin-top: 6px; line-height: 1.55; }

.t-live { grid-column: span 7; grid-row: span 2; padding: 10px 10px 26px; }
.t-live .tile-copy { padding: 0 16px; }
.t-live h3 { font-size: 24px; }
.t-replay { grid-column: span 5; }
.t-ask { grid-column: span 5; }
.t-terms { grid-column: span 6; flex-direction: row; align-items: center; gap: 28px; }
.t-terms .tile-copy { flex: 0 0 36%; }
.t-path { grid-column: span 3; background: #f3f7fe; border-color: #dfe8f8; justify-content: space-between; }
.t-people { grid-column: span 3; background: #f4f9ee; border-color: #e1eed3; justify-content: space-between; }

/* live */
.live-shot { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #0b1424; }
.live-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.live-tag {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: #c4303a; font: 800 11.5px/1 var(--head); letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 6px;
}
.live-tag i { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; }
.live-bar {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 4px;
  font: 600 12px/1 var(--head); color: #fff;
}
.live-bar > div { padding-top: 11px; position: relative; }
.live-bar > div::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 3px; }
.lb-topic { flex: 1; }
.lb-topic::before { background: #fff; }
.lb-qa { flex: 3.2; }
.lb-qa::before { background: var(--green); }
.live-bar span { text-shadow: 0 1px 8px rgba(0,0,0,.7); }

/* replays */
.rp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rp-list li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rp-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rp-thumb {
  width: 64px; height: 40px; border-radius: 6px; overflow: hidden; display: grid; place-items: center;
  font: 800 13px/1 var(--head); color: #fff; background: var(--blue);
}
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-thumb.rp-g { background: var(--green); }
.rp-thumb.rp-b { background: #2c6bd1; }
.rp-text { min-width: 0; display: grid; gap: 2px; }
.rp-text b { font: 600 14.5px/1.3 var(--head); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-meta { font-size: 13px; color: var(--ink-3); }
.rp-prog { height: 3px; background: var(--line); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.rp-prog i { display: block; width: 62%; height: 100%; background: var(--blue); }

/* ask */
.chat { display: grid; gap: 10px; }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: end; }
.msg .cc-av { width: 30px; height: 30px; font-size: 11px; }
.msg p {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px;
  padding: 10px 13px; font-size: 14.5px; line-height: 1.45; color: var(--ink); justify-self: start;
}
.msg.ben p { background: var(--blue); border-color: var(--blue); color: #fff; }
.msg.ben p b { display: block; font: 700 12px/1.2 var(--head); opacity: .8; margin-bottom: 3px; }
.chat-foot { font-size: 13px; color: var(--ink-3); padding-left: 40px; }

/* terms */
.gloss { margin: 0; flex: 1; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gloss > div { display: grid; grid-template-columns: 1fr 1.25fr; border-top: 1px solid var(--line); }
.gloss > div:first-child { border-top: 0; }
.gloss dt, .gloss dd { margin: 0; padding: 9px 14px; font: 600 14px/1.3 var(--head); }
.gloss dt { color: var(--green-deep); background: #fbfdf8; border-right: 1px solid var(--line); }
.gloss dd { color: var(--blue); }
.gloss .gl-head dt, .gloss .gl-head dd { font: 700 10.5px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-soft); padding: 10px 14px; }

/* path */
.path { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 14px; position: relative; }
.path::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: #cdd9ef; }
.path li { position: relative; padding-left: 26px; display: grid; gap: 2px; }
.path li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid #b9cbea;
}
.path li span { font: 600 15px/1.3 var(--head); color: var(--ink-2); }
.path li.on::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px #dfe8f8; }
.path li.on span { color: var(--ink); }
.path em { font-style: normal; font-size: 12.5px; color: var(--blue); font-weight: 500; }

/* people */
.stack { display: flex; flex-wrap: wrap; row-gap: 6px; }
.stack .cc-av { width: 42px; height: 42px; border: 3px solid #f4f9ee; margin-right: -10px; font-size: 13px; }
.stack .more { background: #fff; color: var(--green-deep); width: auto; padding: 0 12px; border-radius: 999px; font-size: 12px; margin-left: 4px; box-shadow: inset 0 0 0 1px #d3e5bd; }
.split { display: flex; border: 1px solid #d3e5bd; border-radius: 8px; overflow: hidden; font: 700 12.5px/1 var(--head); }
.split span { flex: 1; text-align: center; padding: 9px 0; color: var(--green-deep); background: #fff; }
.split span + span { border-left: 1px solid #d3e5bd; color: var(--blue); }

@media (max-width: 1020px) {
  .perks-head { grid-template-columns: 1fr; gap: 14px; }
  .perks-head > p { justify-self: start; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-live, .t-replay, .t-terms, .t-people { grid-column: span 2; grid-row: auto; }
  .t-ask, .t-path { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .t-live, .t-replay, .t-terms, .t-ask, .t-path, .t-people { grid-column: auto; }
  .t-terms { flex-direction: column; align-items: stretch; }
  .t-terms .tile-copy { flex: none; }
  .tile { padding: 20px; }
  .t-live { padding: 8px 8px 22px; }
  .t-live .tile-copy { padding: 0 12px; }
  .live-bar { font-size: 11px; }
  .gloss dt, .gloss dd { padding: 8px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .tile, .tile:hover { transition: none; transform: none; } }
/* bento refinements */
.t-live .live-shot { flex: 1; aspect-ratio: auto; min-height: 340px; }
.t-terms { flex-direction: column; align-items: stretch; gap: 18px; }
.t-terms .tile-copy { flex: none; }
.t-terms .gloss > div { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 1020px) { .t-live .live-shot { flex: none; aspect-ratio: 16 / 10; min-height: 0; } }

/* ================= How it works: connected track ================= */
.how { background: #fff; border-block: 1px solid var(--page-line); }
.how .section-head h2 { max-width: 560px; }
.track { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; position: relative; }
/* the line runs through every node; the last third turns green */
.track::before {
  content: ''; position: absolute; left: 0; right: 0; top: 85px; height: 2px;
  background: linear-gradient(90deg, var(--blue) 0 66%, var(--green) 66% 100%);
}
.step-t { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.step-t .num {
  font: 800 72px/1 var(--head); letter-spacing: -0.04em; color: transparent;
  -webkit-text-stroke: 1.5px #9fb6e0; height: 76px;
}
.step-t:last-child .num { -webkit-text-stroke-color: #a9cc86; }
.step-t .node {
  width: 16px; height: 16px; border-radius: 50%; background: #f2f6fd; border: 3px solid var(--blue);
  margin: 2px 0 26px; position: relative; z-index: 1; box-shadow: 0 0 0 6px #fff;
}
.step-t:last-child .node { border-color: var(--green); }
.step-t h3 { font: 700 21px/1.25 var(--head); }
.step-t > p { color: var(--ink-2); font-size: 15.5px; margin-top: 8px; max-width: 320px; }
.mini { margin-top: 22px; }
.step-t > p.mini-note { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

.mini-tiers { display: inline-flex; border: 1px solid #cfdcf2; border-radius: 10px; background: #fff; padding: 3px; gap: 3px; }
.mini-tiers span { font: 600 13px/1 var(--head); color: var(--ink-2); padding: 9px 12px; border-radius: 7px; }
.mini-tiers .on { background: var(--blue); color: #fff; }

.mini-signin { display: grid; gap: 10px; justify-items: start; }
.fake-btn { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; font: 700 13.5px/1 var(--head); padding: 12px 16px; border-radius: 10px; }
.mini-signin .ok { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--head); color: var(--green-deep); }
.mini-signin .ok svg { width: 16px; height: 16px; }

.mini-split { display: inline-flex; border-radius: 10px; overflow: hidden; border: 1px solid #cfdcf2; background: #fff; }
.mini-split span { display: inline-flex; align-items: center; gap: 8px; font: 700 13.5px/1 var(--head); padding: 12px 14px; }
.mini-split .a { background: var(--blue); color: #fff; }
.mini-split .a i { width: 8px; height: 8px; border-radius: 50%; background: #ff6b70; }
.mini-split .b { color: var(--green-deep); }
.mini-split svg { width: 14px; height: 14px; }

.how-cta { margin-top: 56px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid #dbe5f5; }
.how-cta p { color: var(--ink-2); font-size: 15.5px; }

@media (max-width: 860px) {
  .track { grid-template-columns: 1fr; gap: 40px; padding-left: 36px; }
  .track::before { left: 7px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue) 0 66%, var(--green) 66% 100%); }
  .step-t .num { font-size: 52px; height: 54px; }
  .step-t .node { position: absolute; left: -36px; top: 6px; margin: 0; }
  .step-t h3 { margin-top: 6px; }
}
@media (max-width: 640px) {
  .how-cta .btn { width: 100%; }
  .mini-tiers span { padding: 8px 9px; font-size: 12.5px; }
}

/* ================= Books ================= */
.cover {
  container-type: inline-size; aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; overflow: hidden; position: relative;
  background: var(--blue);
  box-shadow: 0 24px 40px -22px rgba(15,27,45,.55), 0 2px 4px rgba(15,27,45,.12);
}
.cover::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 5%; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.08)); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fb {
  display: flex; flex-direction: column; justify-content: space-between; padding: 16% 12% 12% 15%; color: #fff;
  background: linear-gradient(165deg, #0a55c9 0%, #0347af 45%, #022a6b 100%);
}
.cv-t { font: 800 11cqw/1.08 var(--head); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.cv-a { font: 600 6.2cqw/1.2 var(--head); padding-top: 6%; border-top: 3px solid var(--green); letter-spacing: .02em; }

.books { display: grid; gap: 56px; }
.book { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.book + .book { padding-top: 56px; border-top: 1px solid var(--line); }
.book h3 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.book .sub { font: 500 18px/1.4 var(--head); color: var(--ink-2); margin-top: 8px; }
.book .desc { color: var(--ink-2); margin-top: 16px; max-width: 620px; white-space: pre-line; }
.buy { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 28px; max-width: 720px; }
.buy a {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.buy a:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-1px); }
.buy svg { grid-row: span 2; width: 26px; height: 26px; color: var(--blue); }
.buy a:nth-child(2) svg { color: var(--green); }
.buy .fk { font: 700 15px/1.2 var(--head); }
.buy .pr { font-size: 14px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; }
.buy .pr em { font-style: normal; color: var(--blue); font-weight: 600; }

@media (max-width: 860px) {
  .book { grid-template-columns: 170px 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .book { grid-template-columns: 1fr; gap: 24px; }
  .book .cover { width: 180px; }
}
/* books page */
.books-h { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; line-height: 1.08; margin-top: 14px; letter-spacing: -0.02em; }
.books-empty { color: var(--ink-3); font-size: 17px; }
.nav-links a.on { color: var(--ink); font-weight: 600; }
/* short pages: the footer sits at the bottom of the window, not halfway up */
body.books-page { min-height: 100vh; display: flex; flex-direction: column; }
body.books-page > main { flex: 1 0 auto; }
.books-page .footer { margin-top: 72px; }
.book { scroll-margin-top: 100px; }
/* compact R mark for crowded member headers on phones */
.nav-logo .logo-mark { display: none; }
@media (max-width: 640px) {
  .members .nav-logo .logo-word, .signed-in .member-nav .logo-word { display: none; }
  .members .nav-logo .logo-mark, .signed-in .member-nav .logo-mark { display: block; width: 34px; height: 34px; border-radius: 8px; }
}
.nf-logo img { height: 72px; width: 72px; border-radius: 16px; margin-bottom: 40px; }
/* fallback cover: the text sits in a child so cqw units measure the cover itself */
.cover-fb { position: absolute; inset: 0; }
.nav-logo { flex: none; }
/* members-area headers on phones and tablets: logo + account on one row, tabs on the next */
@media (max-width: 1080px) {
  .members .nav-inner, .signed-in .member-nav .nav-inner { flex-wrap: wrap; height: auto; padding-top: 10px; column-gap: 12px; row-gap: 4px; }
  .members .m-tabs, .signed-in .member-nav .m-tabs { order: 3; width: 100%; margin: 0; height: 42px; overflow-x: auto; scrollbar-width: none; gap: 20px; }
  .members .m-tabs::-webkit-scrollbar, .signed-in .member-nav .m-tabs::-webkit-scrollbar { display: none; }
  .members .m-tabs a, .signed-in .member-nav .m-tabs a { white-space: nowrap; }
  .members .m-user, .signed-in .member-nav .m-user { margin-left: auto; }
  .members .m-user .btn, .signed-in .member-nav .m-user .btn { height: 36px; padding: 0 12px; font-size: 13px; }
}
.book > div { min-width: 0; }
@media (max-width: 640px) { .buy { grid-template-columns: 1fr; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ======================================================================
   Smooth page switching
   Same-site navigations cross-fade (browsers without support just switch).
   The header keeps its place, and content that arrives after loading
   rises in gently instead of popping.
   ====================================================================== */
/* ---------- front page: the hero builds in when the page opens ----------
   Only transform and opacity animate, so the graphics card does the work and the
   page stays smooth. The headline rises out of masks word by word, the video card
   tips up into place and a light glint crosses it, then the rest follows. */
@keyframes hero-rise { from { transform: translate3d(0, 110%, 0); } }
@keyframes hero-up { from { opacity: 0; transform: translate3d(0, 22px, 0); } }
@keyframes hero-label { from { opacity: 0; transform: translate3d(-14px, 0, 0); } }
@keyframes hero-pop { 0% { opacity: 0; transform: translate3d(0, 14px, 0) scale(.9); } 70% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes hero-card { from { opacity: 0; transform: perspective(1400px) translate3d(0, 70px, 0) rotateX(16deg) scale(.92); } }
@keyframes hero-glint { from { transform: translate3d(-140%, 0, 0) skewX(-18deg); } to { transform: translate3d(320%, 0, 0) skewX(-18deg); } }
@keyframes hero-fade { from { opacity: 0; } }
.hero-h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em; margin: 0 -.04em -.12em; }
.hero-h1 .w > span { display: inline-block; animation: hero-rise 1s cubic-bezier(.16, 1, .3, 1) both; }
.hero-h1 .w:nth-child(1) > span { animation-delay: .1s; }
.hero-h1 .w:nth-child(2) > span { animation-delay: .17s; }
.hero-h1 .w:nth-child(3) > span { animation-delay: .24s; }
.hero-h1 .w:nth-child(4) > span { animation-delay: .31s; }
.hero-h1 .w:nth-child(5) > span { animation-delay: .38s; }
.hero-h1 .w:nth-child(6) > span { animation-delay: .45s; }
.hero-h1 .w:nth-child(7) > span { animation-delay: .52s; }
.hero-eyebrow { animation: hero-label .8s cubic-bezier(.16, 1, .3, 1) both; }
.hero .lede { animation: hero-up .9s cubic-bezier(.16, 1, .3, 1) .6s both; }
.hero .hero-ctas .btn { animation: hero-pop .7s cubic-bezier(.2, .8, .2, 1) .78s both; }
.hero .hero-ctas .btn + .btn { animation-delay: .88s; }
.hero .video-card { transform-origin: 50% 100%; animation: hero-card 1.3s cubic-bezier(.16, 1, .3, 1) .2s backwards; }
.hero .video-card::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: translate3d(-140%, 0, 0) skewX(-18deg); animation: hero-glint 1.2s cubic-bezier(.4, 0, .2, 1) 1.1s both; }
.strip-inner { animation: hero-up .9s cubic-bezier(.16, 1, .3, 1) .9s both; }
.strip-item { animation: hero-up .8s cubic-bezier(.16, 1, .3, 1) both; }
.strip-item:nth-child(1) { animation-delay: 1s; }
.strip-item:nth-child(2) { animation-delay: 1.08s; }
.strip-item:nth-child(3) { animation-delay: 1.16s; }
.strip-item:nth-child(4) { animation-delay: 1.24s; }
.hero .dna-field { animation: hero-fade 1.8s ease 1.1s both; }
@media (prefers-reduced-motion: reduce) {
  .hero-h1 .w > span, .hero-eyebrow, .hero .lede, .hero .hero-ctas .btn, .hero .video-card, .hero .video-card::after, .strip-inner, .strip-item, .hero .dna-field { animation: none; }
  .hero .video-card::after { display: none; }
}

@view-transition { navigation: auto; }
.nav:not([hidden]) { view-transition-name: site-header; }
.demo-bar:not([hidden]) { view-transition-name: demo-bar; }
::view-transition-old(root) { animation: 140ms ease-out both ri-fade-out; }
::view-transition-new(root) { animation: 220ms ease-out both ri-fade-in; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation-duration: 120ms; }
::view-transition-group(site-header), ::view-transition-group(demo-bar) { animation-duration: 0s; }
@keyframes ri-fade-out { to { opacity: 0; } }
@keyframes ri-fade-in { from { opacity: 0; transform: translateY(6px); } }

@keyframes ri-rise { from { opacity: 0; transform: translateY(8px); } }
#sections > *, #list > *, #view > *, #booksList > *, .st-panel:not([hidden]), #cwRow > *, .mx-locked:not([hidden]) {
  animation: ri-rise .32s cubic-bezier(.2, .7, .2, 1) both;
}
#sections > :nth-child(2) { animation-delay: 40ms; }
#sections > :nth-child(3) { animation-delay: 80ms; }
#sections > :nth-child(n+4) { animation-delay: 110ms; }

/* tabs and links respond instantly */
.m-tabs a, .nav-links a, .lib-col, .cm-cat { transition: color .12s ease, border-color .12s ease, background-color .12s ease; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  #sections > *, #list > *, #view > *, #booksList > *, .st-panel, #cwRow > *, .mx-locked { animation: none !important; }
}

/* ---------- join + sign-in dialogs ---------- */
body.dlg-open { overflow: hidden; }
.dlg { position: fixed; inset: 0; z-index: 400; background: rgba(8,16,32,.55); display: grid; place-items: center; padding: 16px; animation: ri-fade-in .18s ease both; }
.dlg-box { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 14px; padding: 30px 28px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.dlg-box h2 { font: 800 26px/1.15 var(--head); letter-spacing: -0.01em; margin: 8px 0 4px; }
.dlg-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 8px; border: 0; background: none; cursor: pointer; font-size: 22px; color: var(--ink-3); }
.dlg-x:hover { background: var(--bg-soft); color: var(--ink); }
.dlg-note { color: var(--ink-2); margin: 6px 0 12px; font-size: 15px; }
.dlg-price { font: 600 16px/1.3 var(--head); color: var(--blue); margin-bottom: 14px; }
.dlg-wide { width: 100%; margin-top: 14px; }
.dlg .btn { border-radius: 8px; }
.dlg-or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; margin: 18px 0 4px; }
.dlg-or::before, .dlg-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.dlg-form { display: grid; }
.dlg-form label { font: 600 13.5px/1.35 var(--head); color: var(--ink); margin: 14px 0 6px; }
.dlg-in { height: 46px; border: 1px solid #d5dce6; border-radius: 8px; padding: 0 12px; font: 400 16px var(--body); color: var(--ink); outline: none; }
.dlg-in:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.dlg-msg { color: #c4303a; font-size: 14px; margin-top: 10px; min-height: 1px; }
.dlg-msg:empty { display: none; }
.dlg-fine { font-size: 13px; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }
.dlg-done { color: var(--ink-2); margin-top: 16px; line-height: 1.6; }
.dlg-done b { color: var(--ink); }
.dlg-demo { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--green-tint); color: var(--green-deep); font-size: 14px; }
.dlg-link { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.dlg-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dlg-forgot { font-size: 13.5px; text-decoration: none; }
.dlg-forgot:hover { text-decoration: underline; }
.dlg-hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* password field with a Show/Hide button inside it */
.pw { position: relative; display: block; }
.pw .dlg-in { width: 100%; padding-right: 72px; }
.pw-eye { position: absolute; top: 6px; right: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: none; font: 600 13px var(--head); color: var(--blue); cursor: pointer; }
.pw-eye:hover { background: var(--blue-tint); }
.pw-eye:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

/* bot trap: off-screen, never seen or tabbed to by people */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* "I'm not a robot" */
.robot { display: grid; gap: 6px; margin-top: 16px; }
.robot-box { display: flex; align-items: center; gap: 12px; width: 100%; height: 56px; padding: 0 14px; border: 1px solid #d5dce6; border-radius: 8px; background: #f8fafc; font: 500 15px var(--body); color: var(--ink); cursor: pointer; text-align: left; }
.robot-box:hover { border-color: #b9c4d3; }
.robot-box:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.robot-tick { position: relative; flex: none; width: 24px; height: 24px; border: 2px solid #9aa7b8; border-radius: 4px; background: #fff; }
.robot[data-state="busy"] .robot-tick { border-color: var(--blue-tint); border-top-color: var(--blue); border-radius: 50%; animation: ri-spin .8s linear infinite; }
.robot[data-state="done"] .robot-box { cursor: default; border-color: rgba(89,148,29,.45); background: var(--green-tint); }
.robot[data-state="done"] .robot-tick { border-color: var(--green); background: var(--green); }
.robot[data-state="done"] .robot-tick::after { content: ''; position: absolute; left: 6px; top: 1px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.robot[data-state="error"] .robot-tick { border-color: #c4303a; }
.robot-fine { font-size: 12.5px; color: var(--ink-3); }
@keyframes ri-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .robot[data-state="busy"] .robot-tick { animation-duration: 2.4s; } }

/* membership choice inside the join form */
.dlg-box.dlg-join { width: min(520px, 100%); }
@media (min-width: 900px) { .dlg-box.dlg-join { width: min(940px, 100%); padding: 34px 36px 28px; } }
.tp { display: grid; gap: 10px; margin-top: 18px; }
.tp-opt { display: grid; grid-template-columns: 22px 1fr auto; grid-template-areas: "dot name price" ". blurb price"; column-gap: 12px; row-gap: 4px; align-items: start; width: 100%; padding: 14px 16px; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s; }
.tp-opt:hover { border-color: #b9c4d3; }
.tp-opt:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--blue-tint); border-color: var(--blue); }
.tp-opt[aria-checked="true"] { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.tp-dot { width: 20px; height: 20px; margin-top: 1px; border: 2px solid #9aa7b8; border-radius: 50%; background: #fff; }
.tp-opt[aria-checked="true"] .tp-dot { border-color: var(--blue); box-shadow: inset 0 0 0 4px #fff; background: var(--blue); }
.tp-main { display: contents; }
.tp-dot { grid-area: dot; }
.tp-name { grid-area: name; }
.tp-blurb { grid-area: blurb; }
.tp-price { grid-area: price; }
.tp-name { font: 700 15.5px/1.3 var(--head); }
.tp-flag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 4px; background: var(--green-tint); color: var(--green-deep); font: 600 11px/1.5 var(--head); letter-spacing: .02em; vertical-align: 1px; white-space: nowrap; }
.tp-blurb { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.tp-price { font: 800 18px/1.2 var(--head); white-space: nowrap; text-align: right; }
.tp-price small { display: block; font: 400 12.5px var(--body); color: var(--ink-3); }
.dlg-step { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font: 700 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.dlg-step + label { margin-top: 12px; }
@media (max-width: 420px) { .tp-opt { grid-template-columns: 20px 1fr; grid-template-areas: "dot name" ". price" ". blurb"; } .tp-price { text-align: left; } .tp-price small { display: inline; margin-left: 4px; } }
/* wide join form: the three tiers side by side, account fields in two columns */
.jn-grid { display: grid; }
.jn-f { display: grid; align-content: start; }
.jn-f label, .jn-label { font: 600 13.5px/1.35 var(--head); color: var(--ink); margin: 14px 0 6px; }
.jn-label { display: none; }
@media (min-width: 900px) {
  .dlg-join .tp { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .dlg-join .tp-opt { grid-template-columns: 20px 1fr; grid-template-areas: "dot name" ". price" ". blurb"; align-content: start; padding: 16px; }
  .dlg-join .tp-price { text-align: left; font-size: 22px; margin-top: 2px; }
  .dlg-join .tp-price small { display: inline; margin-left: 4px; }
  .dlg-join .tp-blurb { margin-top: 4px; }
  .dlg-join .tp-flag { margin: 4px 0 0; display: table; }
  .jn-grid { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .jn-label { display: block; }
  .jn-f .robot { margin-top: 0; }
  .jn-form .dlg-wide { margin-top: 20px; }
}

/* cancel / delete */
.btn-danger { background: #b4232c; color: #fff; border-color: #b4232c; }
.btn-danger:hover { background: #961c24; border-color: #961c24; }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }
.btn-danger-outline { background: #fff; color: #b4232c; border-color: #efc9cc; }
.btn-danger-outline:hover { background: #fdf2f3; border-color: #b4232c; }
.dlg-wide-2 { margin-top: 10px; }
.dlg-list { margin: 4px 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.dlg-warn { padding: 10px 12px; border-radius: 8px; background: #fff7e6; color: #7a4b00; }
.dlg-label { display: block; font: 600 13.5px/1.35 var(--head); margin: 16px 0 6px; }
.dlg-ta { width: 100%; height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.tp-compact { gap: 6px; margin-top: 10px; }
.tp-compact .tp-opt { grid-template-columns: 20px 1fr; grid-template-areas: "dot name"; padding: 10px 12px; align-items: center; }
.tp-compact .tp-dot { margin-top: 0; }
.tp-compact .tp-name { font: 500 14.5px/1.35 var(--body); }
/* "coming soon": a form you can see but not use yet */
.dlg-form.locked { position: relative; margin-top: 18px; padding: 16px 18px 18px; border: 1px dashed #b9cbe6; border-radius: 14px; background: var(--bg-soft); }
.dlg-form.locked > :not(.soon-badge) { opacity: .5; pointer-events: none; filter: grayscale(.3); }
.soon-badge { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 4px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.soon-badge span { flex: none; padding: 4px 9px; border-radius: 6px; background: var(--green-tint); color: #365c10; font: 700 12px/1.2 var(--head); }
.dlg-patreon-go { margin-top: 18px; }

.rs-form { max-width: 420px; margin-top: 18px; }

/* privacy policy */
.legal-page .nav-inner { justify-content: space-between; }
.legal { max-width: 760px; padding: 56px 0 24px; }
.legal h1 { font: 800 clamp(30px, 4.4vw, 44px)/1.1 var(--head); letter-spacing: -0.02em; margin-top: 12px; }
.legal-meta { color: var(--ink-3); font-size: 14px; margin-top: 10px; }
.legal-lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-top: 22px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 28px 0 8px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14.5px; }
.legal section { padding-top: 34px; }
.legal h2 { font: 800 22px/1.25 var(--head); margin-bottom: 12px; }
.legal h3 { font: 700 16px/1.3 var(--head); margin: 20px 0 8px; }
.legal p, .legal li, .legal dd { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal-dl { display: grid; margin: 4px 0 14px; }
.legal-dl div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-dl dt { font: 600 15px/1.5 var(--head); color: var(--ink); }
.legal-dl dd { margin: 0; }
.legal-page .footer { margin-top: 64px; padding: 24px 0; }
.legal-page .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 640px) { .legal-dl div { grid-template-columns: 1fr; gap: 4px; } }
.rs-form .btn { border-radius: 8px; }
.tier-alt { display: block; text-align: center; margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.tier-alt:hover { color: var(--blue); }
/* demo checkout page */
.dp-main { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; max-width: 640px; }
.dp-main h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-top: 12px; line-height: 1.1; }
.dp-copy { color: var(--ink-2); margin-top: 14px; font-size: 17px; }
.dp-main .hero-ctas { margin-top: 28px; }
.dp-msg { color: #c4303a; margin-top: 14px; }

/* the public menu collapses earlier now that it has more links */
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links, .nav.open .nav-cta {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0;
    background: #fff; padding: 8px 20px; gap: 0;
  }
  .nav.open .nav-links { top: 76px; border-top: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav.open .nav-cta { padding-bottom: 20px; border-bottom: 1px solid var(--line); gap: 10px; }
  .nav.open .nav-cta .btn { width: 100%; height: 48px; }
  .nav.open .nav-links, .nav.open .nav-cta { box-shadow: 0 18px 30px -20px rgba(15,27,45,.25); }
}

/* ======================================================================
   Video player (public/player.js): our own controls over a <video>
   ====================================================================== */
.rp { position: absolute; inset: 0; background: #000; overflow: hidden; outline: none; color: #fff; user-select: none; -webkit-user-select: none; }
.rp video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.rp.rp-idle, .rp.rp-idle video { cursor: none; }
/* big play button: until it's playing */
.rp-big { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(3, 71, 175, .92); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease; }
.rp-big svg { width: 32px; height: 32px; margin-left: 4px; }
.rp-big:hover { transform: scale(1.06); background: var(--blue); }
.rp.rp-playing .rp-big { opacity: 0; transform: scale(.85); pointer-events: none; }
/* loading */
.rp-spin { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; }
.rp.rp-loading.rp-playing .rp-spin { opacity: 1; animation: ri-spin .8s linear infinite; }
/* control bar */
.rp-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(180deg, transparent, rgba(4, 12, 28, .78));
  transition: opacity .25s ease, transform .25s ease; }
.rp:not(.rp-started) .rp-bar { opacity: 0; pointer-events: none; }
.rp.rp-idle .rp-bar { opacity: 0; transform: translate3d(0, 8px, 0); pointer-events: none; }
.rp-track { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.rp-rail { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; transition: height .15s ease; }
.rp-track:hover .rp-rail, .rp.rp-scrub .rp-rail, .rp-track:focus-visible .rp-rail { height: 6px; }
.rp-buf, .rp-played { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); }
.rp-buf { background: rgba(255, 255, 255, .35); }
.rp-played { background: linear-gradient(90deg, #2f7bf0, #5aa0ff); }
.rp-thumb { position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(90, 160, 255, .35); transform: translateX(0); opacity: 0; transition: opacity .15s; }
.rp-track:hover .rp-thumb, .rp.rp-scrub .rp-thumb, .rp-track:focus-visible .rp-thumb { opacity: 1; }
.rp-tip { position: absolute; left: 0; bottom: 22px; padding: 4px 8px; border-radius: 6px; background: rgba(4, 12, 28, .9); font: 600 12px/1 var(--head); font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; transition: opacity .12s; white-space: nowrap; }
.rp-track:hover .rp-tip, .rp.rp-scrub .rp-tip { opacity: 1; }
.rp-row { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.rp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 38px; height: 38px; padding: 0 6px; border: 0; border-radius: 9px; background: none; color: #fff; cursor: pointer; font: 700 13px/1 var(--head); }
.rp-btn svg { width: 22px; height: 22px; }
.rp-btn small { font: 700 10px/1 var(--head); opacity: .85; }
.rp-btn:hover, .rp-btn:focus-visible { background: rgba(255, 255, 255, .14); outline: none; }
.rp-play svg { width: 24px; height: 24px; }
.rp-vol { display: flex; align-items: center; }
.rp-vtrack { width: 0; height: 18px; display: flex; align-items: center; overflow: hidden; cursor: pointer; touch-action: none; outline: none; transition: width .2s ease, margin .2s ease; }
.rp-vol:hover .rp-vtrack, .rp-vtrack:focus-visible, .rp-vtrack:active { width: 78px; margin: 0 8px 0 2px; }
.rp-vrail { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.rp-vfill { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; }
.rp-time { margin-left: 8px; font: 500 13px/1 var(--body); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.rp-time b { font-weight: 700; color: #fff; }
.rp-gap { flex: 1; }
.rp-speedwrap { position: relative; }
.rp-speed { min-width: 46px; }
.rp-menu { position: absolute; right: 0; bottom: 46px; display: grid; min-width: 128px; padding: 6px; border-radius: 12px; background: rgba(10, 18, 34, .96); box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
.rp-menu button { padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: #fff; cursor: pointer; text-align: left; font: 600 13.5px/1 var(--head); }
.rp-menu button:hover, .rp-menu button:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.rp-menu button[aria-checked="true"] { color: #8fc0ff; }
.rp-menu button[aria-checked="true"]::after { content: ' \2713'; }
.rp.rp-fs { border-radius: 0; }
/* the front-page intro video keeps it simple */
.rp-simple .rp-back, .rp-simple .rp-fwd, .rp-simple .rp-speedwrap { display: none; }
@media (max-width: 640px) {
  .rp-back, .rp-fwd, .rp-vtrack, .rp-pip { display: none; }
  .rp-big { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
  .rp-bar { padding: 22px 8px 6px; }
}
@media (prefers-reduced-motion: reduce) { .rp-bar, .rp-big { transition: none; } }
/* where the player sits */
.video-card .rp { border-radius: inherit; }
.video-card .rp video { object-fit: cover; }
.video-card.playing .rp video { object-fit: contain; }
.wt-stage .rp { border-radius: inherit; }

/* ---------- on the light blue page: books and the privacy policy sit on white ---------- */
.book { padding: 32px; background: #fff; border: 1px solid var(--page-line); border-radius: 20px; }
.book + .book { margin-top: 20px; padding-top: 32px; border-top: 1px solid var(--page-line); }
.legal { margin-top: 32px; margin-bottom: 0; padding: 48px 56px 40px; background: #fff; border: 1px solid var(--page-line); border-radius: 22px; }
@media (max-width: 640px) { .book { padding: 20px; } .legal { padding: 28px 20px; border-radius: 16px; } }

/* ---------- header on every page: a floating rounded bar, not edge to edge ---------- */
html { scroll-padding-top: 100px; }
.nav { background: none; backdrop-filter: none; border: 0; padding: 14px 0 0; pointer-events: none; }
.nav .nav-inner {
  position: relative; pointer-events: auto;
  height: 68px; padding: 0 12px 0 24px;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px;
  box-shadow: 0 8px 24px -14px rgba(15, 30, 60, .28);
  transition: box-shadow .2s ease;
}
.nav.scrolled .nav-inner { box-shadow: 0 14px 34px -14px rgba(15, 30, 60, .38); }
.nav .nav-cta .btn { border-radius: 14px; }
@media (max-width: 1080px) {
  .nav .nav-inner { padding: 0 12px 0 18px; }
  .nav .nav-toggle { margin-left: auto; }
  /* the open menu drops down as a card under the bar */
  .nav.open .nav-links, .nav.open .nav-cta { left: 0; right: 0; padding: 4px 20px; }
  .nav.open .nav-links { top: calc(100% + 8px); border: 0; border-radius: 18px 18px 0 0; }
  .nav.open .nav-links a:last-child { border-bottom: 0; }
  .nav.open .nav-cta { border: 0; border-radius: 0 0 18px 18px; padding-bottom: 18px; padding-top: 6px; }
}
@media (max-width: 640px) {
  .nav { padding-top: 10px; }
  .nav .nav-inner { height: 60px; border-radius: 16px; }
}
/* members header: the tabs sit inside the bar, the current one underlined just above its bottom edge */
.nav .m-tabs a { border-bottom-width: 3px; margin-bottom: 0; padding-top: 3px; }
@media (max-width: 1080px) {
  .nav .nav-inner:has(> .m-tabs) { height: auto; padding: 8px 14px 0; }
}

/* ---------- membership: what each tier gets ---------- */
#membership .section-head { max-width: 760px; }
.mb-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.mb-tier { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--page-line); box-shadow: 0 1px 2px rgba(15, 30, 60, .04); }
.mb-tier.top { border: 2px solid var(--blue); box-shadow: 0 22px 44px -26px rgba(3, 71, 175, .55); }
.mb-flag { position: absolute; top: -13px; left: 24px; padding: 6px 11px; border-radius: 99px; background: var(--blue); color: #fff; font: 700 12px/1 var(--head); letter-spacing: .02em; }
.mb-name { font: 800 18px/1.25 var(--head); color: var(--ink); }
.mb-price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.mb-price b { font: 800 40px/1 var(--head); letter-spacing: -.03em; color: var(--ink); }
.mb-price span { font-size: 15px; color: var(--ink-3); }
.mb-for { margin-top: 10px; min-height: 3.1em; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.mb-go { margin-top: 18px; width: 100%; justify-content: center; }
.mb-plus { margin-top: 22px; font: 700 13px/1.3 var(--head); letter-spacing: .02em; color: var(--ink); }
.mb-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 11px; }
.mb-plus + .mb-list { margin-top: 10px; }
.mb-tier > .mb-go + .mb-list { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.mb-tier > .mb-plus { padding-top: 20px; border-top: 1px solid var(--line); }
.mb-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.mb-list svg { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mb-tier.top .mb-list svg { stroke: var(--blue); }
/* the table */
.mb-compare { margin-top: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--page-line); overflow: hidden; }
.mb-compare table { width: 100%; border-collapse: collapse; }
.mb-compare caption { padding: 18px 24px 6px; text-align: left; font: 800 16px/1.3 var(--head); color: var(--ink); }
.mb-compare th, .mb-compare td { padding: 13px 24px; border-top: 1px solid var(--line); text-align: center; }
.mb-compare thead th { border-top: 0; font: 700 13px/1.2 var(--head); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.mb-compare thead th:last-child { color: var(--blue); }
.mb-compare tbody th { text-align: left; font: 500 15px/1.4 var(--body); color: var(--ink); }
.mb-compare td:last-child { background: #f4f8ff; }
.mb-yes svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.mb-no { color: #b9c5d6; font-weight: 700; }
.mb-fine { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 1020px) {
  .mb-tiers { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 26px; }
  .mb-for { min-height: 0; }
  .mb-compare { display: none; } /* the cards say it all on smaller screens */
}
/* join picker as cards: the full list of what each tier includes opens inside its card */
.tp-cards .tp-card { display: flex; flex-direction: column; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; transition: border-color .15s, background-color .15s; }
.tp-cards .tp-card:hover { border-color: #b9c4d3; }
.tp-cards .tp-card:has(.tp-opt[aria-checked="true"]) { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.tp-cards .tp-opt, .tp-cards .tp-opt[aria-checked="true"] { border: 0; background: transparent; box-shadow: none; }
.tp-cards .tp-opt:focus-visible { box-shadow: 0 0 0 3px var(--blue-tint), inset 0 0 0 2px var(--blue); }
.tp-perks { display: none; list-style: none; margin: 0 16px 16px; padding: 12px 0 0; border-top: 1px solid rgba(15, 30, 60, .12); gap: 8px; cursor: pointer; }
.tp-cards.open .tp-perks { display: grid; }
.tp-perks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.tp-perks svg { width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--green); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-perks li.tp-also { display: block; margin-top: 6px; font: 700 12px/1.3 var(--head); color: var(--ink-2); }
.tp-perks li.tp-in { color: var(--ink-3); }
.tp-perks li.tp-in svg { stroke: #9aa7b8; }
.tp-more { display: flex; align-items: center; gap: 6px; margin: 12px auto 0; padding: 7px 12px; border: 0; border-radius: 8px; background: none; color: var(--blue); font: 600 14px/1.2 var(--head); cursor: pointer; }
.tp-more:hover { background: var(--blue-tint); }
.tp-more:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--blue-tint); }
.tp-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.tp-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.dlg-join .dlg-fine { text-align: center; }
/* the closing call to action sits in the middle of its light-blue strip, same space above and below */
.cta-sec { padding: 88px 0; }
main:has(> .cta-sec:last-child) + .footer { margin-top: 0; }
@media (max-width: 640px) { .cta-sec { padding: 48px 0; } }
/* the Learning app tab opens Ben's app in a new tab */
.m-tabs a.m-app::after { content: ''; display: inline-block; width: 9px; height: 9px; margin-left: 5px; vertical-align: 1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 8 8 2M3.5 2H8v4.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 8 8 2M3.5 2H8v4.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .7; }
