:root {
  --paper: #fafbf9;
  --ink: #1d211e;
  --muted: color-mix(in srgb, var(--ink) 60%, var(--paper));
  --soft: color-mix(in srgb, var(--ink) 38%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 11%, var(--paper));
  --card: color-mix(in srgb, #fff 72%, var(--paper));
  --accent: #3b7ff0;
  --halo: #d9e7fa;
  --good: #2fa66a;
  --bad: #e2553f;
  --kaya: #f2e6cc;
  --kaya-edge: #e4d3af;
  --shadow: 0 1px 2px #141e190f, 0 8px 24px #141e1914;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --header: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
  background: var(--paper);
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.accent { color: var(--accent); }
.u { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

.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;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip {
  position: absolute; top: -60px; left: 12px; z-index: 100;
  background: var(--ink); color: var(--paper);
  border-radius: 8px; padding: 8px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.container { width: min(1160px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow--accent { color: var(--accent); }
.eyebrow b { color: var(--ink); font-weight: 700; }
.eyebrow b.accent { color: var(--accent); }
.note { font-size: 12px; color: var(--muted); letter-spacing: .02em; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; padding: 5px 9px; white-space: nowrap;
  border-radius: 999px; background: var(--card); box-shadow: var(--shadow);
}
.pill--accent { background: var(--halo); color: var(--accent); box-shadow: none; font-size: 12px; padding: 5px 11px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--header);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { width: 26px; height: 26px; }
.site-nav { margin-left: auto; display: flex; gap: 28px; font-size: 13.5px; }
.site-nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-weight: 600; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn--sm { padding: 9px 16px 9px 14px; font-size: 13px; }
.btn--lg { padding: 14px 24px 14px 20px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--soft); }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
}
@media (max-width: 560px) {
  :root { --header: 58px; }
  .brand { font-size: 16px; }
  .btn--sm { padding: 8px 13px 8px 12px; font-size: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header) + clamp(48px, 9vw, 120px)) 0 clamp(72px, 10vw, 128px);
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 720px; z-index: -1;
  background: radial-gradient(60% 50% at 75% 30%, color-mix(in srgb, var(--halo) 70%, transparent), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: clamp(40px, 6vw, 96px);
}
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.06; letter-spacing: -0.03em; }
.hero h1 span { color: var(--soft); }
.hero__lead { color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.8; max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.hero__meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.hero__copy > *, .hero__device { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) backwards; }
.hero__copy > :nth-child(1) { animation-delay: .1s; }
.hero__copy > :nth-child(2) { animation-delay: .2s; }
.hero__copy > :nth-child(3) { animation-delay: .35s; }
.hero__copy > :nth-child(4) { animation-delay: .5s; }
.hero__copy > :nth-child(5) { animation-delay: .6s; }
.hero__device { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { justify-items: center; text-align: center; }
  .hero__actions, .hero__meta { justify-content: center; }
}

/* ---------- iPhone mockup ---------- */
.hero__device { display: flex; justify-content: center; }
.phone {
  width: min(320px, 82vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 52px;
  padding: 11px;
  background: linear-gradient(145deg, #2b302c, #121513);
  box-shadow: 0 0 0 1px #00000026, 0 2px 4px #141e1914, 0 30px 60px -10px #141e1933, 0 60px 120px -40px #3b7ff033;
  position: relative;
}
.phone::before {
  content: ""; position: absolute; right: -3px; top: 26%; width: 3px; height: 70px;
  border-radius: 0 3px 3px 0; background: #1a1e1b;
}
.phone__screen {
  height: 100%; border-radius: 42px; overflow: hidden;
  background: var(--paper); position: relative;
  display: flex; flex-direction: column;
  padding: 14px 16px 18px;
  container-type: inline-size;
}
.phone__island { width: 31%; height: 26px; border-radius: 20px; background: #0d0f0e; margin: 0 auto; flex: none; }
.phone__status {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 600; margin-top: -21px; padding: 0 10px;
}
.phone__status i { display: inline-block; width: 18px; height: 9px; border: 1.2px solid var(--ink); border-radius: 3px; position: relative; }
.phone__status i::after { content: ""; position: absolute; inset: 1px 4px 1px 1px; background: var(--ink); border-radius: 1px; }

.app-top { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.app-top__title { font-size: 12.5px; font-weight: 650; line-height: 1.3; }
.app-top__title small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; }

.players { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.player {
  display: flex; align-items: center; gap: 7px;
  border-radius: 12px; padding: 6px 8px; background: var(--card); box-shadow: var(--shadow);
  font-size: 10.5px; font-weight: 600; line-height: 1.2;
}
.player small { display: block; font-weight: 500; color: var(--muted); font-size: 9.5px; }
.player b { margin-left: auto; font-size: 12px; font-weight: 650; }
.player--turn { box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow); }
.player--turn b { color: var(--accent); }
.stone { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: .5px 1px 1.5px #141e1940; }
.stone--b { background: radial-gradient(circle at 36% 30%, #525a54, #1d211e 70%); }
.stone--w { background: radial-gradient(circle at 36% 30%, #fff, #e6e8e3 90%); box-shadow: inset 0 0 0 .6px #1d211e55, .5px 1px 1.5px #141e1940; }

.app-board {
  margin-top: 12px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--kaya-edge), var(--shadow);
}
.board { width: 100%; height: auto; }
.board .grid line { stroke: #1d211e; stroke-opacity: .55; stroke-width: .42; stroke-linecap: square; }
.board .grid line.e { stroke-opacity: .7; stroke-width: .6; }

.coach-card {
  margin-top: 12px; border-radius: 14px; padding: 9px 11px; background: var(--card); box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.coach-card .eyebrow { font-size: 9px; letter-spacing: .16em; }
.coach-card p { font-size: 11px; line-height: 1.45; }

.app-actions { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 10px; }
.app-actions span {
  text-align: center; font-size: 10.5px; font-weight: 600; padding: 7px 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--muted);
}
.app-actions .is-on { background: var(--halo); color: var(--accent); box-shadow: none; }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--line); padding: clamp(80px, 11vw, 150px) 0; }
.section__head { display: grid; gap: 16px; max-width: 40em; }
.section__head--center { margin: 0 auto; text-align: center; justify-items: center; }
.section__title { font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -0.025em; line-height: 1.12; }
.section__lead { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.85; max-width: 36em; }

.panel {
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 32px);
}
.panel h3 { font-size: 19px; letter-spacing: -0.01em; }

/* ---------- Learn ---------- */
.learn {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(20px, 3vw, 32px);
}
.learn__side { display: grid; gap: clamp(20px, 3vw, 32px); align-content: start; }
@media (max-width: 860px) { .learn { grid-template-columns: 1fr; } }

.path-panel { display: flex; justify-content: center; align-items: center; }
.path { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.path__todo { fill: none; stroke: var(--line); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1 12; }
.path__done { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; opacity: .9; }
.path__unit { font: 600 11px var(--font); letter-spacing: .18em; fill: var(--muted); }
.node text { font: 600 13.5px var(--font); fill: var(--ink); }
.node text.sub { font-weight: 500; font-size: 11.5px; fill: var(--muted); }
.node--done circle { fill: var(--ink); }
.node--done path { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.node--now circle { fill: var(--accent); stroke: #fff; stroke-width: 4; }
.node--now .pulse { fill: var(--halo); stroke: none; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-in-out infinite; }
.node--now .node__play { fill: #fff; }
.node--now text:not(.sub) { font-size: 15px; font-weight: 700; }
@keyframes pulse { 0%, 100% { transform: scale(.9); opacity: 1; } 50% { transform: scale(1.18); opacity: .55; } }
.node--boss rect { fill: #fff; stroke: var(--line); stroke-width: 1.5; filter: drop-shadow(0 6px 12px #141e1918); }
.node--locked circle { fill: var(--paper); stroke: var(--line); stroke-width: 2; }
.node--locked rect { fill: var(--soft); }
.node--locked path { fill: none; stroke: var(--soft); stroke-width: 2; }
.node--locked text { fill: var(--muted); }
.stars use { fill: #f2b84b; }
.stars use.off { fill: var(--line); }

.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: center; }
.problem__board { border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--kaya-edge); }
.problem__copy { display: grid; gap: 10px; }
.problem__copy p:not(.eyebrow):not(.note) { color: var(--muted); font-size: 14.5px; line-height: 1.8; }
@media (max-width: 520px) { .problem { grid-template-columns: 1fr; } .problem__board { max-width: 260px; } }

.streak { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.streak__ring { position: relative; width: 112px; height: 112px; }
.streak__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg, .ring-fg { fill: none; stroke-width: 7; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; }
.streak__ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.streak__ring small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.streak__copy { display: grid; gap: 10px; }
.week { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.week li {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line);
}
.week li.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.week li.today { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
@media (max-width: 420px) { .streak { grid-template-columns: 1fr; justify-items: start; } .week li { width: 28px; height: 28px; } }

.units {
  list-style: none; padding: 0; margin: clamp(32px, 5vw, 56px) 0 0;
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
}
.units li {
  padding: 18px 14px 4px 0; display: grid; gap: 4px; font-size: 14px; font-weight: 600; line-height: 1.35; align-content: start;
}
.units b { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.units span { font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.5; }
.units li.is-pro b::after { content: " · Premium"; color: var(--accent); }
@media (max-width: 960px) { .units { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .units { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Play the AI ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; }
.ticks li { border-top: 1px solid var(--line); padding: 15px 0; display: grid; grid-template-columns: 150px 1fr; gap: 4px 20px; font-size: 14.5px; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks b { font-weight: 600; }
.ticks span { color: var(--muted); }
@media (max-width: 480px) { .ticks li { grid-template-columns: 1fr; } }

.ranks { display: grid; gap: 18px; }
.ranks__now { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ranks__rank { font-size: clamp(44px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.ranks__desc { color: var(--muted); font-size: 15px; line-height: 1.75; min-height: 3.5em; }
.ranks__range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer;
  --p: 38.46%;
}
.ranks__range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--p), var(--line) var(--p));
}
.ranks__range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--line); }
.ranks__range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--accent); }
.ranks__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #525a54, #1d211e 70%); border: 0;
  box-shadow: 0 0 0 5px var(--halo), 1px 2px 4px #141e1940;
}
.ranks__range::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 36% 30%, #525a54, #1d211e 70%);
  box-shadow: 0 0 0 5px var(--halo), 1px 2px 4px #141e1940;
}
.ranks__range:focus-visible { outline: none; }
.ranks__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent); }
.ranks__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent); }
.ranks__scale { position: relative; height: 16px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); margin-top: -8px; }
.ranks__scale span { position: absolute; top: 0; left: calc(13px + (100% - 26px) * var(--i) / 13); translate: -50% 0; white-space: nowrap; line-height: 16px; }
.ranks__scale span:first-child { translate: -13px 0; }
.ranks__scale span:last-child { translate: calc(-100% + 13px) 0; }
@media (max-width: 600px) { .ranks__scale span:nth-child(2), .ranks__scale span:nth-child(4), .ranks__scale span:nth-child(5) { display: none; } }
.ranks__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.ranks__foot b { color: var(--ink); font-weight: 600; }

/* ---------- Coach ---------- */
.coach {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 32px); align-items: stretch;
}
@media (max-width: 900px) { .coach { grid-template-columns: 1fr; } }
.graph-panel { display: flex; flex-direction: column; gap: 18px; }
.graph-head { display: flex; justify-content: space-between; align-items: baseline; }
.graph { width: 100%; height: auto; overflow: visible; }
.graph__mid { stroke: var(--soft); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.graph__area { fill: var(--halo); opacity: .7; }
.graph__line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.graph__cursor { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 4; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.graph__mark { fill: var(--bad); stroke: #fff; stroke-width: 2.5; }

.mistakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.mistakes button {
  appearance: none; border: 0; cursor: pointer; text-align: left;
  background: var(--paper); border-radius: 14px; padding: 12px 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; gap: 1px; font-size: 12px; color: var(--muted); line-height: 1.35;
  transition: box-shadow .2s, background-color .2s;
}
.mistakes button b { font-size: 18px; font-weight: 700; color: var(--bad); letter-spacing: -0.02em; }
.mistakes button small { font-size: 12px; color: var(--ink); font-weight: 600; }
.mistakes button:hover { box-shadow: inset 0 0 0 1px var(--soft); }
.mistakes button[aria-selected="true"] { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow); }
@media (max-width: 480px) { .mistakes { grid-template-columns: 1fr; } .mistakes button { grid-template-columns: 1fr auto; } .mistakes small { grid-column: 1; } .mistakes b { grid-row: 1 / 3; grid-column: 2; align-self: center; } }

.explain { display: flex; flex-direction: column; gap: 18px; }
.explain__item { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: center; }
.explain__item[hidden] { display: none; }
.explain__item:not([hidden]) { animation: fadeIn .4s ease; }
.explain__board { border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--kaya-edge); }
.explain__copy { display: grid; gap: 10px; }
.explain__copy p:not(.eyebrow) { font-size: 15px; line-height: 1.75; }
.explain__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .explain__item { grid-template-columns: 1fr; } .explain__board { max-width: 280px; } }

/* ---------- Online ---------- */
.formats {
  list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.formats li { display: grid; gap: 6px; align-content: start; padding: 22px 24px; border-radius: 20px; }
.formats__size { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.formats h3 { font-size: 20px; }
.formats p { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .formats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .formats { grid-template-columns: 1fr; } }

.feature-grid {
  list-style: none; padding: 0; margin: clamp(44px, 6vw, 72px) 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.feature-grid li {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 30px 26px 34px; display: grid; gap: 10px; align-content: start;
}
.feature-grid svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.feature-grid h3 { font-size: 17px; letter-spacing: -0.01em; }
.feature-grid p { color: var(--muted); font-size: 14px; line-height: 1.8; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid li { padding: 24px 18px 26px; }
}

/* ---------- Pricing ---------- */
.plans { margin: clamp(40px, 6vw, 64px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 840px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3.4vw, 36px); }
.plan--pro { box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow); position: relative; }
.plan__badge { position: absolute; top: -12px; right: 24px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan__name { font-size: 18px; }
.plan__price { font-size: clamp(40px, 5vw, 54px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan .note { margin-top: -8px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.plan li svg { width: 16px; height: 16px; margin-top: 4px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan .btn { margin-top: auto; justify-content: center; }
.plans__note { text-align: center; margin: 22px auto 0; max-width: 46em; }

.billing { display: inline-flex; align-self: flex-start; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.billing__opt {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; color: var(--muted);
  transition: background-color .2s, color .2s;
}
.billing__opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
html:not(.js) .billing { display: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 32px clamp(40px, 6vw, 96px); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 22px 44px 22px 0; font-size: 16px; font-weight: 600; line-height: 1.5;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; translate: 0 -50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.6px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.6px 14px no-repeat;
  transition: rotate .3s;
}
details[open] summary::after { rotate: 45deg; }
details p { color: var(--muted); padding: 0 44px 24px 0; font-size: 15px; line-height: 1.85; }
details[open] p { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Final CTA ---------- */
.cta { text-align: center; display: grid; justify-items: center; gap: 22px; }
.cta h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.03em; line-height: 1.06; }
.cta__mark { width: 56px; height: 56px; filter: drop-shadow(0 8px 24px #141e1924); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 13px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Legal & support pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: calc(var(--header) + 48px) 24px 80px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin: 8px 0 6px; letter-spacing: -0.025em; }
.legal h2 { font-size: 19px; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--muted); line-height: 1.75; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent); }
.legal .note { margin-top: 40px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* Late additions: hero score estimate, coach move chips */
.estimate { margin-top: 12px; display: grid; gap: 7px; }
.estimate__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; color: var(--muted); }
.estimate__row b { color: var(--ink); font-weight: 650; }
.estimate__row > b { font-size: 13px; }
.estimate__bar { height: 8px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.estimate__bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1.5px; background: var(--soft); }
.estimate__bar i { position: absolute; inset: 0 auto 0 0; width: 58%; background: var(--ink); border-radius: 999px 0 0 999px; }

.moves { display: flex; flex-wrap: wrap; gap: 8px; }
.moves span {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted);
  padding: 5px 11px 5px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: #fff;
}
.moves span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.moves b { color: var(--ink); font-weight: 700; }
.moves__bad::before { background: var(--bad); }
.moves__good { background: var(--halo) !important; box-shadow: none !important; }
.moves__good::before { background: var(--accent); }
.moves__good b { color: var(--accent); }
.faq .section__head { align-content: start; }
.legal h1 + .note { margin-top: 4px; }
