/* Pawnprint — medieval-academy brand system */
:root {
  --ink-0: #0b0c10;
  --ink-1: #111217;
  --ink-2: #16181f;
  --ink-3: #1d2029;
  --ink-4: #262a35;
  --gold: #d4af37;
  --gold-deep: #b8941f;
  --gold-light: #e8c560;
  --gold-faint: rgba(212, 175, 55, 0.14);
  --gold-line: rgba(212, 175, 55, 0.22);
  --ivory: #f4f0e6;
  --ivory-dim: #d8d2c2;
  --ivory-mute: #a89f8a;
  --crimson: #8b1e2b;
  --crimson-bright: #c23844;
  --shadow-deep: 0 30px 80px -20px rgba(0,0,0,0.7), 0 4px 12px rgba(0,0,0,0.5);

  --f-head: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --f-body: 'Crimson Text', 'Iowan Old Style', Georgia, serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ink-0); color: var(--ivory); font-family: var(--f-body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Parchment vignette — very subtle */
.noise-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 100%);
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

h1,h2,h3,h4 { font-family: var(--f-head); font-weight: 700; letter-spacing: 0.02em; color: var(--ivory); line-height: 1.1; }
.eyebrow {
  font-family: var(--f-head); font-size: 12px; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--gold-line); }
.eyebrow.left::before { display: none; }
.eyebrow.left { padding-left: 0; }

.section { padding: 120px 32px; position: relative; }
@media (max-width: 768px) { .section { padding: 80px 20px; } }
.section + .section { border-top: 1px solid var(--gold-line); }

/* Ornamental divider */
.flourish { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--gold); }
.flourish .line { flex: 1; max-width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }
.flourish .glyph { font-family: var(--f-head); font-size: 14px; letter-spacing: 0.3em; }

/* Button */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px;
  font-family: var(--f-head); font-weight: 700; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  border-radius: 2px; transition: all 0.25s ease; position: relative;
}
.btn-primary { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #1a0f00; text-shadow: 0 1px 0 rgba(255,230,150,0.35); box-shadow: 0 0 0 1px var(--gold-deep), 0 10px 24px -8px rgba(212,175,55,0.4); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 0 0 1px var(--gold-deep), 0 14px 32px -8px rgba(212,175,55,0.55); }
.btn-ghost { border: 1px solid var(--gold-line); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Gold frame util */
.gold-frame { border: 1px solid var(--gold-line); position: relative; }
.gold-frame::before, .gold-frame::after,
.gold-frame > .corner-tl, .gold-frame > .corner-br {
  content: ''; position: absolute; width: 14px; height: 14px; border-color: var(--gold); pointer-events: none;
}
.gold-frame::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.gold-frame::after { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }
.gold-frame > .corner-tr { position: absolute; top: -1px; right: -1px; width: 14px; height: 14px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); pointer-events: none; }
.gold-frame > .corner-bl { position: absolute; bottom: -1px; left: -1px; width: 14px; height: 14px; border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); pointer-events: none; }

/* Chess board styling */
.board { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); aspect-ratio: 1; border: 1px solid var(--gold-line); box-shadow: var(--shadow-deep); }
.board .sq { display: flex; align-items: center; justify-content: center; font-size: 2rem; line-height: 1; position: relative; aspect-ratio: 1; }
.board .sq.light { background: #f0d9b5; }
.board .sq.dark { background: #b58863; }
.board .sq .piece { color: #f8f8f8; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.9)); }
.board .sq .piece.black { color: #2a2520; text-shadow: 0 0 1px rgba(248,248,248,0.9); }
.board .sq.highlight::before { content: ''; position: absolute; inset: 6%; background: var(--gold); opacity: 0.2; border-radius: 2px; }
.board .sq.threat::after { content: ''; position: absolute; inset: 10%; border: 2px dashed var(--crimson-bright); border-radius: 50%; }
.board .sq.target::before { content: ''; position: absolute; inset: 6%; background: var(--crimson); opacity: 0.25; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(11,12,16,0.72); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.nav.scrolled { border-bottom-color: var(--gold-line); background: rgba(10,8,6,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; max-width: 1400px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-head); font-size: 18px; letter-spacing: 0.25em; color: var(--ivory); text-transform: uppercase; }
.brand .mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 32px; font-family: var(--f-head); font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #f5efe0; text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 0 1px rgba(0,0,0,0.6); }
.nav-links a { color: #f5efe0; transition: color 160ms ease; }
.nav-links a:hover { color: var(--gold); }
/* When nav has scrolled, boost contrast further with a stronger shadow */
.nav.scrolled .nav-links { text-shadow: 0 1px 2px rgba(0,0,0,0.95); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* Hero */
.hero { padding-top: 140px; padding-bottom: 80px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } }
.hero h1 { font-size: clamp(40px, 6vw, 78px); font-weight: 700; letter-spacing: 0.01em; }
.hero h1 em { font-style: italic; color: var(--gold); font-family: var(--f-body); font-weight: 400; }
.hero .tagline { font-size: clamp(18px, 1.6vw, 22px); color: var(--ivory-dim); margin-top: 28px; max-width: 520px; line-height: 1.5; font-style: italic; }
.hero .ctas { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero .trust { margin-top: 40px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-mute); }
.hero .trust span + span::before { content: '·'; margin: 0 12px; color: var(--gold); }

/* Atmospheric hero bg */
.hero-glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-glow::before {
  content: ''; position: absolute; top: 30%; left: 55%; width: 720px; height: 720px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 55%);
  filter: blur(20px);
}

/* Hero board scene */
.hero-scene { position: relative; width: 100%; max-width: 480px; margin-left: auto; }

/* Pawnprint wordmark — "Pawn" white, "print" gold gradient */
.pp-wordmark {
  font-family: 'Cinzel', var(--f-head), serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
}
.pp-word-pawn {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.pp-word-print {
  background: linear-gradient(180deg, #f4d989 0%, #d4af37 60%, #8a6e1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(212,175,55,0.25));
}
/* Override old .brand layout: no gap-12 / uppercase on the wordmark */
.nav .brand, footer .brand { gap: 10px; text-transform: none; letter-spacing: normal; font-family: inherit; }

/* HeroCoach animated moment — board */
.hero-coach { display: flex; flex-direction: column; gap: 14px; position: relative; }
.hc-board-wrap { position: relative; padding-top: 8px; }
.hc-board-frame {
  position: relative;
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  overflow: hidden;
}
.hc-move-badge {
  position: absolute; top: -14px; left: 16px;
  background: #0f172a; border: 1px solid var(--gold);
  padding: 6px 12px; border-radius: 6px;
  display: inline-flex; gap: 10px; align-items: baseline;
  font-family: 'Cinzel', var(--f-head), serif;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-mute);
  opacity: 0; transform: translateY(-4px);
  transition: all 0.4s ease;
  z-index: 2;
}
.hc-move-badge[data-on="true"] { opacity: 1; transform: translateY(0); }
.hc-move-badge .hc-move-san {
  font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.04em;
}

/* In-app chat panel — mirrors ReflectionGate + InlineCoachingBlock */
.pp-chat-panel {
  margin-top: 4px;
  padding: 14px;
  border-radius: 8px;
  background: #0f0d0a;
  border: 1px solid rgba(212,175,55,0.12);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.45s ease;
}
.pp-chat-panel.on { opacity: 1; transform: translateY(0); }
.pp-chat-label {
  font-family: 'Cinzel', serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #aaa59b; margin-bottom: 8px;
}

/* Reflection input row */
.pp-reflection-row { display: flex; gap: 8px; align-items: stretch; }
.pp-reflection-input {
  flex: 1;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #111217;
  border: 1px solid #2a2520;
  color: #f4f0e6;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  transition: border-color 160ms ease;
  word-break: break-word;
}
.pp-reflection-input[data-focused="true"] {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.10);
}
.pp-typed { color: #f4f0e6; }
.pp-placeholder { color: #555; font-style: italic; }
.pp-caret {
  display: inline-block;
  color: var(--gold);
  margin-left: 1px;
  animation: ppBlink 1s steps(2) infinite;
}
@keyframes ppBlink { 50% { opacity: 0; } }

.pp-reflection-submit {
  align-self: stretch;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.25);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
}
.pp-reflection-submit.sent {
  background: rgba(212,175,55,0.04);
  color: #7e7a72;
  border-color: rgba(212,175,55,0.10);
}

/* Coach entry */
.pp-coach-entry {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(212,175,55,0.08);
  animation: ppFade 400ms ease;
}
.pp-coach-entry-head {
  font-family: 'Cinzel', serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.pp-coach-response {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 14px; line-height: 1.55;
  color: #f4f0e6;
}
.pp-coach-response b { color: var(--gold); font-weight: 600; }
.pp-coach-response em { color: #f4f0e6; font-style: italic; }

.pp-coach-loading {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Crimson Text', Georgia, serif;
  color: #aaa59b; font-size: 13px;
}
.pp-coach-spinner {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(212,175,55,0.30);
  border-top-color: var(--gold);
  animation: ppSpin 600ms linear infinite;
  display: inline-block;
}
@keyframes ppSpin { to { transform: rotate(360deg); } }
@keyframes ppFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Coach action strip */
.pp-coach-actions {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid rgba(212,175,55,0.06);
  display: flex; align-items: center; gap: 10px;
  animation: ppFade 400ms ease;
}
.pp-coach-action {
  background: none; border: 0; padding: 0;
  font-family: 'Cinzel', serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer;
  transition: color 120ms ease;
}
.pp-coach-action-primary   { color: var(--gold); }
.pp-coach-action-primary:hover   { color: #e0bc4a; }
.pp-coach-action-secondary { color: #7e7a72; }
.pp-coach-action-secondary:hover { color: #aaa59b; }
.pp-coach-action-dot { color: #2a2520; }

/* Vocab tooltip — wraps a term; shows floating def card on hover/focus. */
.pp-vocab {
  color: var(--gold);
  border-bottom: 1px dotted var(--gold);
  cursor: help;
  position: relative;
  font-style: normal;
}
.pp-vocab:focus { outline: 2px solid rgba(212,175,55,0.35); outline-offset: 2px; border-radius: 2px; }
.pp-vocab-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  padding: 10px 12px;
  background: #15120d;
  border: 1px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  z-index: 20;
  font-style: normal;
  pointer-events: none;
  text-align: left;
  animation: ppVocabIn 140ms ease;
}
.pp-vocab-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 6px solid transparent;
  border-top-color: var(--gold);
}
.pp-vocab-tip-title {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.pp-vocab-tip-body {
  display: block;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 13px; line-height: 1.45;
  color: #f4f0e6;
}
@keyframes ppVocabIn { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translate(-50%, 0); } }

.hc-term { color: var(--gold); border-bottom: 1px dotted var(--gold); font-style: normal; }

.hero-board-wrap { position: relative; }
.hero-tag { display: none; }

/* Type stack */
.overline { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.kicker { font-family: var(--f-head); font-size: 12px; letter-spacing: 0.36em; color: var(--gold); text-transform: uppercase; }
h2.display { font-size: clamp(36px, 4.5vw, 60px); font-weight: 700; max-width: 820px; }
h2.display em { font-style: italic; color: var(--gold); font-family: var(--f-body); font-weight: 400; }
.lede { font-size: 20px; color: var(--ivory-dim); max-width: 680px; margin-top: 20px; }

/* Problem section */
.problem { text-align: center; }
.problem-quote { font-family: var(--f-body); font-style: italic; font-size: clamp(28px, 3.5vw, 44px); color: var(--ivory); line-height: 1.35; max-width: 900px; margin: 40px auto 0; position: relative; }
.problem-quote::before, .problem-quote::after { font-family: var(--f-head); color: var(--gold); font-size: 1.2em; position: absolute; opacity: 0.6; }
.problem-quote::before { content: '“'; top: -10px; left: -30px; }
.problem-quote::after { content: '”'; bottom: -30px; right: -20px; }
.problem-pains { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 80px; text-align: left; }
@media (max-width: 820px) { .problem-pains { grid-template-columns: 1fr; } }
.pain { padding: 28px; border: 1px solid var(--gold-line); background: var(--ink-1); }
.pain .cost { font-family: var(--f-head); font-size: 28px; color: var(--crimson-bright); letter-spacing: 0.02em; }
.pain .cost small { font-size: 14px; color: var(--ivory-mute); font-family: var(--f-mono); font-weight: normal; letter-spacing: 0.12em; }
.pain h4 { font-size: 17px; margin: 12px 0 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.pain p { color: var(--ivory-dim); font-size: 16px; }

/* Loop */
.loop-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; margin-top: 64px; }
@media (max-width: 960px) { .loop-wrap { grid-template-columns: 1fr; } }
.loop-steps { display: flex; flex-direction: column; gap: 2px; }
.loop-step { padding: 20px 8px 20px 36px; border-left: 1px solid var(--gold-line); margin-left: 28px; position: relative; cursor: pointer; transition: all 0.3s; }
.loop-step .num { font-family: var(--f-head); font-size: 14px; letter-spacing: 0; color: var(--gold); position: absolute; left: -14px; top: 22px; background: var(--ink-0); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold-line); border-radius: 50%; }
.loop-step.active .num { background: var(--gold); color: var(--ink-0); border-color: var(--gold); }
.loop-step h4 { font-size: 20px; letter-spacing: 0.04em; }
.loop-step p { color: var(--ivory-mute); font-size: 15px; margin-top: 4px; line-height: 1.5; max-height: 0; overflow: hidden; transition: all 0.35s; opacity: 0; }
.loop-step.active p { max-height: 120px; margin-top: 8px; opacity: 1; }
.loop-step.active h4 { color: var(--ivory); }
.loop-step:not(.active) h4 { color: var(--ivory-mute); }
.loop-step:hover:not(.active) h4 { color: var(--ivory-dim); }

.loop-visual { position: relative; aspect-ratio: 1; max-width: 520px; margin: 0 auto; width: 100%; }

/* Training modes — 2-up top row, Hub spans full width below */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; align-items: stretch; }
.modes .mode-hub { grid-column: 1 / -1; }
@media (max-width: 960px) { .modes { grid-template-columns: 1fr; } .modes .mode-hub { grid-column: auto; } }
.mode { padding: 32px 28px 36px; background: var(--ink-1); border: 1px solid var(--gold-line); display: flex; flex-direction: column; transition: all 0.3s; position: relative; overflow: hidden; }
.mode:hover { border-color: var(--gold); background: var(--ink-2); transform: translateY(-4px); }

/* Integration pills for the Analyze Games card */
.mode-integrations {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.mode-integrations span {
  padding: 6px 12px;
  border: 1px solid var(--gold);
  background: rgba(212,175,55,0.06);
  border-radius: 2px;
}

/* Training Hub — full-width featured card with 2-col interior */
.mode-hub {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212,175,55,0.04), var(--ink-1) 40%);
  padding: 36px 36px 40px;
}
.hub-body {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 48px;
  margin-top: 24px;
  align-items: start;
}
@media (max-width: 960px) { .hub-body { grid-template-columns: 1fr; gap: 24px; } }
.hub-intro { display: flex; flex-direction: column; }
.hub-intro p { margin-top: 0; }
.hub-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: 22px;
  padding: 16px; background: var(--ink-2);
  border: 1px solid var(--gold-line);
}
.hub-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.hub-stat-n {
  font-family: var(--f-head); font-size: 26px;
  color: var(--gold); letter-spacing: 0.02em;
  line-height: 1;
}
.hub-stat-l {
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-mute);
  text-align: center;
}
.hub-intro .tags { margin-top: 22px; }

.hub-list { flex: 1; min-width: 0; }
.hub-list-head {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-faint);
  margin-bottom: 10px;
}
.hub-list-head span { color: var(--ivory-mute); letter-spacing: 0.14em; }
.hub-list ul {
  list-style: none; padding: 0; margin: 0;
  /* Responsive columns — flows 2 → 3 → 4 → 5 as the card widens */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  column-gap: 18px;
  row-gap: 2px;
}
.hub-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dotted rgba(212,175,55,0.08);
  align-items: baseline;
  break-inside: avoid;
}
.hub-list li:last-child { border-bottom: none; }
.hub-ex-num {
  grid-row: 1 / 3;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
  align-self: center;
  opacity: 0.8;
}
.hub-ex-name {
  font-family: var(--f-head); font-weight: 700; font-size: 13px;
  color: var(--ivory); letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}
.hub-ex-note {
  font-family: var(--f-body); font-style: italic;
  font-size: 12px; color: var(--ivory-mute);
  line-height: 1.3;
}
.hub-more { grid-column: 1 / -1; border-top: 1px solid var(--gold-faint); margin-top: 6px; padding-top: 10px; }
.hub-more .hub-ex-num { color: var(--gold); font-size: 14px; opacity: 1; }
.hub-more .hub-ex-name { color: var(--gold); font-style: italic; font-family: var(--f-body); font-size: 13px; }
.hub-more .hub-ex-note { font-size: 11px; }
.mode .chapter { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; }
.mode h3 { font-size: 28px; margin-top: 16px; letter-spacing: 0.03em; }
.mode .sub { color: var(--gold); font-family: var(--f-body); font-style: italic; margin-top: 6px; font-size: 17px; }
.mode p { color: var(--ivory-dim); margin-top: 18px; font-size: 16px; line-height: 1.55; }
.mode .board-wrap { margin-top: 22px; }
.mode .tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-mute); }
.mode .tags span { padding: 4px 10px; border: 1px solid var(--gold-line); }
.mode .unique { position: absolute; top: 16px; right: 0; padding: 6px 14px; background: var(--crimson); color: var(--ivory); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }

/* Differentiator matrix */
.matrix { margin-top: 56px; border: 1px solid var(--gold-line); background: var(--ink-1); }
.matrix-head { display: grid; grid-template-columns: 1.1fr 1fr; padding: 20px 28px; border-bottom: 1px solid var(--gold-line); font-family: var(--f-head); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; }
.matrix-head .p { color: var(--gold); display: flex; align-items: center; gap: 7px; }
.matrix-head .e { color: var(--ivory-mute); }
.matrix-row { display: grid; grid-template-columns: 1.1fr 1fr; border-bottom: 1px solid var(--gold-faint); }
.matrix-row:last-child { border-bottom: none; }
.matrix-row > div { padding: 22px 28px; font-size: 16px; }
.matrix-row .p { color: var(--ivory); border-right: 1px solid var(--gold-faint); position: relative; }
.matrix-row .p::before { content: '♙'; color: var(--gold); margin-right: 12px; font-size: 16px; }
.matrix-row .e { color: var(--ivory-mute); font-style: italic; }
.matrix-row .e::before { content: '—'; color: var(--ivory-mute); margin-right: 12px; opacity: 0.5; }
@media (max-width: 720px) {
  .matrix-head, .matrix-row { grid-template-columns: 1fr; }
  .matrix-row .p { border-right: none; border-bottom: 1px solid var(--gold-faint); }
  .matrix-row > div { padding: 16px 20px; }
}

/* Vocabulary demo */
.vocab-age-tabs {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  background: var(--ink-1);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  max-width: fit-content;
}
.vocab-age-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-mute);
  padding: 0 10px 0 6px;
  border-right: 1px solid var(--gold-faint);
  margin-right: 4px;
}
.vocab-age-tab {
  padding: 8px 16px;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ivory-dim);
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: all 140ms ease;
}
.vocab-age-tab:hover { color: var(--ivory); border-color: var(--gold-faint); }
.vocab-age-tab.active {
  background: var(--gold);
  color: var(--ink-0);
  border-color: var(--gold);
}
@media (max-width: 640px) { .vocab-age-label { display: none; } }

.vocab-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
@media (max-width: 820px) { .vocab-demo { grid-template-columns: 1fr; } }
.vocab-card { background: var(--ink-1); border: 1px solid var(--gold-line); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.vocab-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--gold-faint); }
.vocab-head .who { font-family: var(--f-head); font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; }
.vocab-head .meta { font-family: var(--f-mono); font-size: 11px; color: var(--ivory-mute); letter-spacing: 0.12em; }
.vocab-msg { font-size: 17px; color: var(--ivory-dim); line-height: 1.55; font-style: italic; }
.vocab-msg .learned { color: var(--gold); font-style: normal; border-bottom: 1px dotted var(--gold); }
.vocab-msg .new { color: var(--ivory); font-style: normal; background: rgba(212,175,55,0.08); padding: 0 3px; }
.vocab-tracker { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--gold-faint); }
.vocab-tracker-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-mute); margin-bottom: 12px; }
.vocab-term { display: grid; grid-template-columns: minmax(120px, 150px) 1fr auto; align-items: center; gap: 16px; padding: 8px 0; font-size: 14px; }
.vocab-term .t { font-family: var(--f-head); letter-spacing: 0.06em; color: var(--ivory); line-height: 1.2; font-size: 13px; word-break: break-word; }
.vocab-term .bar { height: 4px; background: var(--ink-3); position: relative; overflow: hidden; }
.vocab-term .bar .fill { position: absolute; top: 0; left: 0; bottom: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.vocab-term .stage { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-mute); }
.vocab-term.acquired .stage { color: var(--gold); }

/* Coaching moment */
.coach-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; margin-top: 56px; }
@media (max-width: 960px) { .coach-wrap { grid-template-columns: 1fr; } }
.coach-stage { background: var(--ink-1); border: 1px solid var(--gold-line); padding: 28px; }
.coach-stage .board-sm { max-width: 340px; margin: 0 auto; }
.coach-dialog { display: flex; flex-direction: column; gap: 16px; }
.coach-line { padding: 20px 24px; background: var(--ink-1); border: 1px solid var(--gold-line); position: relative; }
.coach-line.ask { border-color: var(--gold); background: linear-gradient(180deg, rgba(212,175,55,0.06), transparent); }
.coach-line .from { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.coach-line .from.user { color: var(--ivory-mute); }
.coach-line .msg { font-size: 17px; line-height: 1.55; color: var(--ivory); font-style: italic; }
.coach-line.ask .msg { font-family: var(--f-head); font-style: normal; font-size: 22px; color: var(--ivory); letter-spacing: 0.01em; }
.coach-line .cite { font-family: var(--f-mono); font-size: 11px; color: var(--gold); margin-top: 12px; letter-spacing: 0.1em; }

/* Pricing */
.pricing { text-align: center; position: relative; }
.pricing .crest em { font-style: italic; font-family: var(--f-body); }
.pricing .promise { margin-top: 24px; font-size: 22px; color: var(--ivory-dim); max-width: 640px; margin-left: auto; margin-right: auto; font-style: italic; }
.pricing .ctas { margin-top: 40px; display: inline-flex; gap: 16px; }
.pricing .vs { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 80px; max-width: 820px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .pricing .vs { grid-template-columns: 1fr; } }
.pricing .vs-cell { padding: 20px; border: 1px solid var(--gold-line); }
.pricing .vs-cell .amt { font-family: var(--f-head); font-size: 28px; color: var(--ivory); }
.pricing .vs-cell .amt.strike { text-decoration: line-through; color: var(--ivory-mute); text-decoration-color: var(--crimson-bright); }
.pricing .vs-cell .what { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-mute); margin-top: 8px; }

/* Billing toggle */
.billing-toggle { display: inline-flex; border: 1px solid var(--gold-line); margin-top: 36px; background: var(--ink-1); }
.billing-toggle button { padding: 10px 22px; font-family: var(--f-head); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-mute); background: transparent; }
.billing-toggle button.on { background: var(--gold); color: var(--ink-0); }
.billing-toggle .save { font-family: var(--f-body); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 13px; color: inherit; margin-left: 8px; opacity: 0.85; }

/* Tier pair (Free + Family) */
.tier-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 880px; margin: 48px auto 0; text-align: left; }
@media (max-width: 720px) { .tier-pair { grid-template-columns: 1fr; } }
.tier-card { padding: 36px 32px 32px; background: var(--ink-1); border: 1px solid var(--gold-line); display: flex; flex-direction: column; gap: 18px; position: relative; }
.tier-card.hl { border-color: var(--gold); background: linear-gradient(180deg, rgba(212,175,55,0.05), var(--ink-1)); }
.tier-name { font-family: var(--f-head); font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.tier-price { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--gold-faint); padding-bottom: 18px; }
.tier-price .amt { font-family: var(--f-head); font-size: 44px; color: var(--ivory); letter-spacing: 0.01em; }
.tier-price .per { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-mute); }
.tier-who { font-family: var(--f-body); font-style: italic; color: var(--ivory-dim); font-size: 16px; margin-top: -4px; }
.tier-feats { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; font-size: 15px; color: var(--ivory-dim); }
.tier-feats li { display: flex; gap: 10px; align-items: flex-start; }
.tier-feats .chk { color: var(--gold); flex-shrink: 0; }

/* Compact tier strip */
.tier-strip { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 16px; max-width: 1040px; margin: 36px auto 0; align-items: stretch; text-align: left; }
@media (max-width: 820px) { .tier-strip { grid-template-columns: 1fr; } }
.tier-strip-label { font-family: var(--f-head); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ivory-mute); align-self: center; padding-right: 8px; }
.strip-cell { padding: 18px 20px; background: var(--ink-1); border: 1px solid var(--gold-line); position: relative; }
.strip-cell.featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(212,175,55,0.06), var(--ink-1)); }
.strip-cell .rec { position: absolute; top: -10px; left: 16px; background: var(--gold); color: var(--ink-0); font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; padding: 3px 8px; }
.strip-name { font-family: var(--f-head); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.strip-price { font-family: var(--f-head); font-size: 24px; color: var(--ivory); margin-top: 6px; }
.strip-price .strip-sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-mute); margin-left: 6px; }
.strip-who { font-family: var(--f-body); font-style: italic; color: var(--ivory-mute); font-size: 14px; margin-top: 4px; }

.pricing-footnote { display: flex; justify-content: center; gap: 32px; margin-top: 40px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-mute); flex-wrap: wrap; }
.pricing-footnote span { display: inline-flex; align-items: center; gap: 8px; }

/* PFA Fundamentals section */
.pfa { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin-top: 56px; align-items: start; }
@media (max-width: 900px) { .pfa { grid-template-columns: 1fr; } }
.pfa-scroll { padding: 28px 32px 0; background: linear-gradient(180deg, #1f170d, #191208); border-color: var(--gold); box-shadow: 0 0 0 1px rgba(212,175,55,0.18) inset, 0 30px 60px -30px rgba(212,175,55,0.22); display: flex; flex-direction: column; }

.pfa-brand-band { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--gold-faint); flex-wrap: wrap; }
.pfa-brand-tag { font-family: var(--f-head); font-weight: 700; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory-mute); padding-left: 14px; border-left: 1px solid var(--gold-faint); }

.pfa-title-row { padding: 22px 0 18px; }
.pfa-title { font-family: var(--f-head); font-weight: 700; font-size: 30px; letter-spacing: 0.04em; color: var(--ivory); line-height: 1.1; }
.pfa-sub { font-family: var(--f-body); font-style: italic; color: var(--ivory-mute); font-size: 14px; margin-top: 6px; }

.pfa-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; padding-bottom: 24px; }
@media (max-width: 520px) { .pfa-modules { grid-template-columns: 1fr; } }
.pfa-module { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gold-faint); font-size: 15px; }
.pfa-module .roman { font-family: var(--f-head); font-weight: 700; color: var(--gold); letter-spacing: 0.1em; font-size: 13px; }
.pfa-module .name { color: var(--ivory-dim); }
.pfa-module .check { color: var(--gold); font-size: 13px; }

.pfa-reward-banner {
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  align-items: center;
  margin: 0 -32px;
  padding: 22px 32px;
  background: linear-gradient(90deg, rgba(212,175,55,0.14), rgba(212,175,55,0.04));
  border-top: 1px solid var(--gold);
}
@media (max-width: 620px) { .pfa-reward-banner { grid-template-columns: 1fr; } }
.pfa-reward-left { border-right: 1px solid var(--gold-faint); padding-right: 24px; }
@media (max-width: 620px) { .pfa-reward-left { border-right: none; border-bottom: 1px solid var(--gold-faint); padding-right: 0; padding-bottom: 14px; } }
.pfa-reward-right { display: flex; align-items: center; }
.pfa-reward-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.pfa-reward-amt { font-family: var(--f-head); font-weight: 700; font-size: 24px; color: var(--gold); letter-spacing: 0.04em; margin-top: 4px; line-height: 1.1; }
.pfa-reward-note { font-family: var(--f-body); font-style: italic; font-size: 13px; color: var(--ivory-dim); line-height: 1.5; letter-spacing: 0; }
.pfa-reward-note strong { color: var(--ivory); font-style: normal; font-family: var(--f-head); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Free vs Apprentice comparison */
.pfa-rules h4 { font-family: var(--f-head); font-weight: 700; font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.pfa-compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.pfa-compare th, .pfa-compare td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--gold-faint); }
.pfa-compare thead th { font-family: var(--f-head); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-mute); padding-bottom: 12px; }
.pfa-compare th.col-free, .pfa-compare td:nth-child(2) { width: 90px; text-align: center; color: var(--ivory-mute); }
.pfa-compare th.col-app,  .pfa-compare td:nth-child(3) { width: 120px; text-align: center; color: var(--ivory); }
.pfa-compare th.col-app { color: var(--gold); }
.pfa-compare td:first-child { color: var(--ivory-dim); }
.pfa-compare td.hl { color: var(--gold); font-family: var(--f-head); font-weight: 700; letter-spacing: 0.04em; }
.pfa-compare-foot { margin-top: 16px; font-family: var(--f-body); font-style: italic; font-size: 13px; color: var(--ivory-mute); line-height: 1.5; }

/* Coach bullets */
.coach-bullets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 640px) { .coach-bullets { grid-template-columns: repeat(2, 1fr); } }
.cb { padding: 18px 16px; border: 1px solid var(--gold-line); background: var(--ink-1); text-align: center; }
.cb-k { display: block; font-family: var(--f-head); font-size: 22px; color: var(--gold); letter-spacing: 0.02em; }
.cb-v { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-mute); margin-top: 4px; }

/* Clubs */
.clubs { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 820px) { .clubs { grid-template-columns: 1fr; } }
.clubs p { color: var(--ivory-dim); font-size: 19px; margin-top: 20px; line-height: 1.6; }

/* Footer */
footer { padding: 80px 0 40px; border-top: 1px solid var(--gold-line); background: var(--ink-1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-grid h5 { font-family: var(--f-head); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-grid a { display: block; color: var(--ivory-dim); font-size: 15px; padding: 4px 0; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--gold-faint); display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ivory-mute); text-transform: uppercase; flex-wrap: wrap; gap: 16px; }

/* Small chess board generator sizing */
.board.sm { max-width: 280px; }
.board.xs { max-width: 200px; }

/* Thinking input mock */
.think-input { margin-top: 10px; display: flex; gap: 10px; padding: 12px 16px; background: var(--ink-0); border: 1px solid var(--gold-line); align-items: center; }
.think-input input { flex: 1; background: transparent; border: none; color: var(--ivory); font-family: var(--f-body); font-size: 16px; outline: none; }
.think-input input::placeholder { color: var(--ivory-mute); font-style: italic; }
.think-input button { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; }

/* Hero stat cards */
.stat-row { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat .k { font-family: var(--f-head); font-size: 32px; color: var(--gold); letter-spacing: 0.02em; }
.stat .v { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-mute); margin-top: 4px; }

/* Tweaks panel */
.tweaks-panel { position: fixed; bottom: 24px; right: 24px; width: 320px; background: var(--ink-2); border: 1px solid var(--gold); padding: 20px; z-index: 100; box-shadow: var(--shadow-deep); display: none; }
.tweaks-panel.open { display: block; }
.tweaks-panel h5 { font-family: var(--f-head); font-size: 12px; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; margin-bottom: 16px; }
.tweaks-panel .tweak-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--gold-faint); font-size: 14px; color: var(--ivory-dim); }
.tweaks-panel .tweak-row:first-of-type { border-top: none; }
.tweaks-panel .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks-panel .chip { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; padding: 4px 8px; border: 1px solid var(--gold-line); color: var(--ivory-mute); cursor: pointer; }
.tweaks-panel .chip.active { background: var(--gold); color: var(--ink-0); border-color: var(--gold); }

/* Scroll anim */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: fadeUp 0.8s ease both; }

/* Loop cycle SVG labels */
.cycle-label { font-family: var(--f-head); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; fill: var(--ivory); }
.cycle-label.active { fill: var(--gold); }
.cycle-node { transition: all 0.3s; }

/* Nav sign-in text link — sits beside the gold Sign Up CTA */
.nav-signin {
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f5efe0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85);
  transition: color 160ms ease;
}
.nav-signin:hover { color: var(--gold); }
@media (max-width: 820px) { .nav-signin { display: none; } }
