/* ============================================================
   Course landing page (templates/course_landing.html)
   Mobile-first; a single @media (min-width: 900px) block re-flows
   the same sections into the wide layout.
   ============================================================ */
:root {
  --bg: #09090B;
  --bg-2: #0F0F12;
  --surface: #151518;
  --surface-2: #1B1B1F;
  --border: #26262B;
  --border-strong: #34343A;
  --text: #FAFAFA;
  --text-2: #B4B4BC;
  --text-3: #7C7C86;
  --text-4: #56565E;
  --blue: #3B82F6;
  --blue-2: #60A5FA;
  --blue-dark: #2563EB;
  --blue-tint: rgba(59, 130, 246, 0.12);
  --blue-line: rgba(59, 130, 246, 0.3);
  --green: #4ADE80;
  --green-tint: rgba(74, 222, 128, 0.12);
  --amber: #FACC15;
  --red: #F87171;
  --red-tint: rgba(248, 113, 113, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 20px;
  --col: 520px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--blue-2); }
button, input { font-family: inherit; }
strong { color: var(--text); font-weight: 600; }
h1, h2, h3, h4 { color: var(--text); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
.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;
}

/* Page column — phone-width on larger screens */
.page {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
}
@media (min-width: 560px) {
  body { background: #050506; }
  .page {
    border-left: 1px solid #1A1A1E;
    border-right: 1px solid #1A1A1E;
    box-shadow: 0 0 120px rgba(59, 130, 246, 0.06);
  }
}

/* ============ Top bar ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  padding-top: calc(14px + env(safe-area-inset-top));
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.topbar.scrolled { border-bottom-color: var(--border); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
}
.topbar-login {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 40px;
  display: inline-flex; align-items: center;
}
.topbar-login:active { background: var(--surface); }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar .topbar-cta { display: none; }
.signup-points { display: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s var(--ease), background 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.985); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary .btn-price {
  font-weight: 500;
  opacity: 0.85;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-2); }
.btn svg { flex-shrink: 0; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 28px var(--gutter) 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-2);
  background: var(--blue-tint);
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}
.hero h1 {
  font-size: clamp(2.15rem, 9.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.hero h1 .accent { color: var(--blue); display: block; }
.hero .lede {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 24px;
  max-width: 34ch;
}
.hero .lede strong { color: var(--text); }
.hero-cta { margin-bottom: 14px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 26px;
}
.trust-row span {
  display: inline-flex; align-items: center; gap: 6px;
}
.trust-row svg { color: var(--green); flex-shrink: 0; }

/* Hero image with product overlay */
/* Product shot: transparent laptop mockup floating on a soft glow */
.hero-visual {
  position: relative;
  margin: 2px calc(-1 * var(--gutter)) 0;
  padding: 6px 0 6px;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 0 12% 0;
  background: radial-gradient(58% 55% at 45% 45%, rgba(59, 130, 246, 0.3), transparent 70%);
  pointer-events: none;
}
.hero-visual img {
  position: relative;
  width: 112%;
  max-width: none;
  height: auto;
  margin-left: -5%;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55));
}

/* ============ Proof strip ============ */
.proof {
  margin: 4px var(--gutter) 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.proof-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.proof-num small {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-2);
  vertical-align: top;
  margin-left: 1px;
}
.proof-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-2);
}
.proof-text strong { display: block; color: var(--text); }

/* ============ Sections ============ */
.section {
  padding: 56px var(--gutter) 0;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(1.6rem, 6.4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section .sub {
  font-size: 1rem;
  color: var(--text-3);
  margin-bottom: 26px;
  max-width: 40ch;
}
.section .sub strong { color: var(--text-2); }

/* ============ Grinds comparison ============ */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.compare-card {
  border-radius: var(--radius);
  padding: 18px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 160px;
}
.compare-card.ours {
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.04));
  border-color: var(--blue-line);
  position: relative;
}
.compare-card.ours::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.compare-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.compare-card.ours .compare-title { color: var(--blue-2); }
.compare-price {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-top: 4px;
}
.compare-price.strike {
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
}
.compare-desc {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.45;
  margin-top: auto;
}
.compare-card.ours .compare-desc { color: var(--text-2); }
.compare-math {
  font-size: 0.86rem;
  color: var(--text-3);
  padding: 12px 14px;
  border-left: 2px solid var(--border-strong);
  margin-bottom: 26px;
}
.compare-math strong { color: var(--text); }

/* ============ Benefit cards ============ */
.benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.benefit {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px 16px;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.02));
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
}
.benefit-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--blue-tint);
  color: var(--blue-2);
  display: flex; align-items: center; justify-content: center;
}
.benefit h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.benefit p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-3);
}

/* ============ Benefit cards ("perks") ============ */
.perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.perk {
  --ac: var(--blue-2);
  --ac-rgb: 96, 165, 250;
  position: relative;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--ac-rgb), 0.22), transparent 55%),
    linear-gradient(180deg, #17171B, #101013);
  border: 1px solid rgba(var(--ac-rgb), 0.28);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.perk::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.perk[data-accent="violet"] { --ac: #A78BFA; --ac-rgb: 167, 139, 250; }
.perk[data-accent="green"]  { --ac: #4ADE80; --ac-rgb: 74, 222, 128; }
.perk[data-accent="amber"]  { --ac: #FACC15; --ac-rgb: 250, 204, 21; }
.perk[data-accent="blue"]   { --ac: #60A5FA; --ac-rgb: 96, 165, 250; }
.perk-visual {
  padding: 18px 18px 0;
}
.perk-copy { padding: 16px 18px 20px; }
.perk h3 {
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.perk h3::before {
  content: "";
  display: block;
  width: 28px; height: 4px;
  border-radius: 2px;
  background: var(--ac);
  margin-bottom: 12px;
  box-shadow: 0 0 14px rgba(var(--ac-rgb), 0.6);
}
.perk p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text-2);
}

/* Mini product visuals inside perks */
.mini {
  position: relative;
  background: rgba(9, 9, 11, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 12px 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
  min-height: 132px;
}
.mini-head {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 7px;
  margin-top: 3px;
  color: var(--text-2);
}
.mini-row em {
  font-style: normal;
  white-space: nowrap;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}
.mini-row.skip { color: var(--text-4); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.25); }
.mini-row.skip em { text-decoration: none; color: var(--text-4); background: rgba(255, 255, 255, 0.05); }
.mini-row.do { background: rgba(var(--ac-rgb), 0.12); color: var(--text); font-weight: 600; }
.mini-row.do em { color: #0B0B0D; background: var(--ac); }

/* Ring + ticks */
.mini-ring {
  position: absolute;
  top: 12px; right: 12px;
  width: 74px; height: 74px;
}
.mini-ring svg { width: 74px; height: 74px; transform: rotate(-90deg); }
.mini-ring .track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 6; }
.mini-ring .fill {
  fill: none;
  stroke: var(--ac);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  transition: stroke-dashoffset 1.3s var(--ease) 0.2s;
  filter: drop-shadow(0 0 6px rgba(var(--ac-rgb), 0.6));
}
.in-view .mini-ring .fill { stroke-dashoffset: 0; }
.mini-ring-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ac);
}
.mini-ticks { padding-right: 84px; padding-top: 2px; }
.mini-tick {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  color: var(--text-2);
  font-weight: 500;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mini-tick + .mini-tick { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.mini-tick i {
  font-style: normal;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(var(--ac-rgb), 0.18);
  color: var(--ac);
  font-size: 0.66rem;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.in-view .mini-tick { opacity: 1; transform: none; }
.in-view .mini-tick:nth-child(1) { transition-delay: 0.3s; }
.in-view .mini-tick:nth-child(2) { transition-delay: 0.55s; }
.in-view .mini-tick:nth-child(3) { transition-delay: 0.8s; }

/* Past paper stack */
.mini.papers { padding: 0; background: none; border: none; box-shadow: none; min-height: 150px; }
.paper {
  position: absolute;
  left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: #141417;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  color: var(--text-2);
  transition: transform 0.7s var(--ease);
}
.paper .py { font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.paper .pq { font-size: 0.74rem; color: var(--text-3); }
.paper.p1 { top: 0; z-index: 1; opacity: 0.55; transform: translateY(26px) scale(0.94); }
.paper.p2 { top: 32px; z-index: 2; opacity: 0.8; transform: translateY(16px) scale(0.97); }
.paper.p3 { top: 64px; z-index: 3; transform: translateY(8px); }
.in-view .paper.p1 { transform: scale(0.94); }
.in-view .paper.p2 { transform: scale(0.97); }
.in-view .paper.p3 { transform: none; }
.stamp {
  position: absolute;
  right: 4px; top: 92px;
  z-index: 4;
  padding: 6px 10px;
  border: 2px solid var(--ac);
  border-radius: 8px;
  color: var(--ac);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-8deg) scale(1.4);
  opacity: 0;
  transition: transform 0.45s var(--ease) 0.5s, opacity 0.3s 0.5s;
  background: rgba(9, 9, 11, 0.7);
  box-shadow: 0 0 18px rgba(var(--ac-rgb), 0.35);
}
.in-view .stamp { transform: rotate(-8deg) scale(1); opacity: 1; }

/* Mini chat */
.mini.chat { display: flex; flex-direction: column; gap: 6px; }
.mini-time { font-size: 0.66rem; color: var(--text-4); text-align: center; font-weight: 600; }
.mini-bubble {
  max-width: 82%;
  padding: 8px 11px;
  border-radius: 12px;
  line-height: 1.4;
  font-size: 0.8rem;
}
.mini-bubble.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 3px; }
.mini-bubble.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  border-bottom-left-radius: 3px;
}
.mini-bubble b {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 2px;
}

/* Staggered entrance */
.perk { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.in-view .perk { opacity: 1; transform: none; }
.in-view .perk:nth-child(2) { transition-delay: 0.08s; }
.in-view .perk:nth-child(3) { transition-delay: 0.16s; }
.in-view .perk:nth-child(4) { transition-delay: 0.24s; }

/* ============ How a topic works: four photo-led stages ============ */
/* One colour per learning event, matching the lesson page badges */
.stages { display: flex; flex-direction: column; gap: 16px; }
.stage {
  --ac: var(--blue-2);
  --ac-rgb: 96, 165, 250;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(110% 60% at 0% 100%, rgba(var(--ac-rgb), 0.1), transparent 60%),
    linear-gradient(180deg, #17171B, #101013);
  border: 1px solid rgba(var(--ac-rgb), 0.26);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.stage[data-accent="blue"]   { --ac: #60A5FA; --ac-rgb: 96, 165, 250; }
.stage[data-accent="amber"]  { --ac: #FACC15; --ac-rgb: 250, 204, 21; }
.stage[data-accent="green"]  { --ac: #4ADE80; --ac-rgb: 74, 222, 128; }
.stage[data-accent="violet"] { --ac: #A78BFA; --ac-rgb: 167, 139, 250; }
.stage-media {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #0B0B0E;
}
.stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
/* thin accent line where the photo meets the copy */
.stage-media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ac), rgba(var(--ac-rgb), 0));
}
/* transparent cut-out (phone in hand) sits on an accent glow */
.stage-media.cutout {
  background:
    radial-gradient(70% 80% at 28% 40%, rgba(var(--ac-rgb), 0.3), transparent 68%),
    #0B0B0E;
}
.stage-media.cutout { aspect-ratio: 5 / 4; }
.stage-media.cutout img { object-position: 0% 4%; }
.stage-body { padding: 18px 18px 22px; }
.stage-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.stage-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(var(--ac-rgb), 0.14);
  border: 1px solid rgba(var(--ac-rgb), 0.5);
  color: var(--ac);
  font-weight: 700;
  font-size: 0.86rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(var(--ac-rgb), 0.22);
}
.stage-kind {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ac);
  background: rgba(var(--ac-rgb), 0.12);
}
.stage h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.stage p {
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.55;
}
.stage-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(var(--ac-rgb), 0.08);
  border: 1px solid rgba(var(--ac-rgb), 0.25);
  border-radius: 8px;
  padding: 6px 10px;
}
.stage-note svg { color: var(--ac); flex-shrink: 0; }

/* Sequencing roadmap */
.seq { display: flex; flex-direction: column; gap: 18px; }
.roadmap {
  position: relative;
  border-radius: 18px;
  padding: 14px 10px 12px;
  background:
    radial-gradient(90% 70% at 90% 30%, rgba(59, 130, 246, 0.16), transparent 60%),
    linear-gradient(180deg, #17171B, #101013);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.rm-svg { display: block; width: 100%; height: auto; font-family: inherit; }
.rm-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 4; stroke-linecap: round; }
.rm-seg { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.rm-seg.mastered { stroke: var(--green); stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 0.9s var(--ease) 0.2s; }
.rm-seg.current  { stroke: var(--blue-2); stroke-dasharray: 150; stroke-dashoffset: 150; transition: stroke-dashoffset 0.8s var(--ease) 1s; filter: url(#rm-glow); }
.rm-seg.locked   { stroke: rgba(255, 255, 255, 0.18); stroke-dasharray: 6 8; }
.in-view .rm-seg.mastered, .in-view .rm-seg.current { stroke-dashoffset: 0; }
.rm-node text {
  font-size: 11px;
  font-weight: 600;
  fill: var(--text-2);
  text-anchor: middle;
  letter-spacing: -0.01em;
}
.rm-node text.sub { font-size: 9.5px; font-weight: 700; fill: var(--blue-2); text-transform: uppercase; letter-spacing: 0.06em; }
.rm-node circle { stroke-width: 2; }
.rm-node path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rm-node.mastered circle { fill: rgba(74, 222, 128, 0.16); stroke: var(--green); }
.rm-node.mastered path { stroke: var(--green); }
.rm-node.mastered text { fill: var(--text); }
.rm-node.current circle { fill: #0F1420; stroke: var(--blue-2); filter: url(#rm-glow); }
.rm-node.current .dot { fill: var(--blue-2); stroke: none; filter: none; }
.rm-node.current .pulse { fill: none; stroke: var(--blue-2); stroke-width: 2; opacity: 0; transform-origin: center; transform-box: fill-box; animation: rm-pulse 2.2s ease-out infinite 1.6s; filter: none; }
.rm-node.current text { fill: var(--text); font-weight: 700; }
.rm-node.locked circle { fill: #141417; stroke: rgba(255, 255, 255, 0.16); }
.rm-node.locked .lock { stroke: var(--text-4); stroke-width: 1.6; }
.rm-node.locked text { fill: var(--text-4); }
.rm-node.locked .dots { fill: var(--text-4); font-size: 14px; font-weight: 800; }
.rm-node.finish circle { fill: rgba(251, 191, 36, 0.12); stroke: var(--amber); }
.rm-node.finish .flag { stroke: var(--amber); }
.rm-node.finish text { fill: var(--amber); font-weight: 700; }
.rm-node { opacity: 0; transition: opacity 0.4s var(--ease); }
.in-view .rm-node { opacity: 1; }
.in-view .rm-node:nth-of-type(1) { transition-delay: 0.1s; }
.in-view .rm-node:nth-of-type(2) { transition-delay: 0.35s; }
.in-view .rm-node:nth-of-type(3) { transition-delay: 0.6s; }
.in-view .rm-node:nth-of-type(4) { transition-delay: 1.3s; }
.in-view .rm-node:nth-of-type(5) { transition-delay: 1.5s; }
.in-view .rm-node:nth-of-type(6) { transition-delay: 1.6s; }
.in-view .rm-node:nth-of-type(7) { transition-delay: 1.7s; }
.in-view .rm-node:nth-of-type(8) { transition-delay: 1.8s; }
@keyframes rm-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}
.rm-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 4px 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--blue-line);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease) 1.9s, transform 0.5s var(--ease) 1.9s;
}
.in-view .rm-toast { opacity: 1; transform: none; }
.rm-toast strong { color: var(--text); }
.rm-toast-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.seq-copy { display: flex; flex-direction: column; gap: 14px; }
.seq-point { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.seq-point-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--blue-tint);
  color: var(--blue-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.seq-point h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.seq-point p { font-size: 0.9rem; color: var(--text-3); line-height: 1.55; }

/* ============ What's inside: bento tiles ============ */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.tile {
  --ac: var(--blue-2);
  --ac-rgb: 96, 165, 250;
  position: relative;
  min-height: 150px;
  padding: 16px 14px 14px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 0% 100%, rgba(var(--ac-rgb), 0.2), transparent 60%),
    linear-gradient(180deg, #17171B, #101013);
  border: 1px solid rgba(var(--ac-rgb), 0.28);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
}
.tile::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.tile[data-accent="violet"] { --ac: #A78BFA; --ac-rgb: 167, 139, 250; }
.tile[data-accent="green"]  { --ac: #4ADE80; --ac-rgb: 74, 222, 128; }
.tile[data-accent="amber"]  { --ac: #FACC15; --ac-rgb: 250, 204, 21; }
.tile[data-accent="blue"]   { --ac: #60A5FA; --ac-rgb: 96, 165, 250; }
.tile[data-accent="pink"]   { --ac: #F472B6; --ac-rgb: 244, 114, 182; }
.tile[data-accent="cyan"]   { --ac: #22D3EE; --ac-rgb: 34, 211, 238; }
.tile.wide { grid-column: 1 / -1; min-height: 0; }
.tile-num {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 0 24px rgba(var(--ac-rgb), 0.35);
}
.tile-num span { color: var(--ac); font-size: 1.3rem; vertical-align: top; font-weight: 800; }
.tile-num span.dash { color: var(--text-4); font-size: 2.1rem; vertical-align: baseline; font-weight: 600; padding: 0 0.1em; }
.tile-label {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.4;
  margin-top: 7px;
  max-width: 24ch;
}
.tile-art { margin-top: auto; padding-top: 14px; }
.tile-art i, .tile-art i::after { font-style: normal; }

/* 25 dots */
.tile-art.dots { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; max-width: 140px; }
.tile-art.dots i { display: block; aspect-ratio: 1; border-radius: 50%; background: rgba(var(--ac-rgb), 0.22); }
.tile-art.dots i:nth-child(-n+7) { background: var(--ac); box-shadow: 0 0 8px rgba(var(--ac-rgb), 0.6); }
.tile-art.dots i:nth-child(8) { background: var(--text); }

/* 12 blocks */
.tile-art.blocks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; max-width: 120px; }
.tile-art.blocks i { display: block; aspect-ratio: 1.3; border-radius: 4px; background: rgba(var(--ac-rgb), 0.22); border: 1px solid rgba(var(--ac-rgb), 0.35); }
.tile-art.blocks i:nth-child(-n+3) { background: var(--ac); border-color: transparent; }

/* multiple choice */
.tile-art.mcq { display: flex; flex-direction: column; gap: 4px; max-width: 120px; }
.tile-art.mcq div { display: flex; align-items: center; gap: 6px; }
.tile-art.mcq b { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.2); font-size: 0.55rem; font-weight: 800; color: var(--text-4); display: inline-flex; align-items: center; justify-content: center; }
.tile-art.mcq span { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.tile-art.mcq .on b { border-color: var(--ac); background: var(--ac); color: #0B0B0D; }
.tile-art.mcq .on span { background: rgba(var(--ac-rgb), 0.5); }

/* article skeleton */
.tile-art.article { display: flex; flex-direction: column; gap: 5px; max-width: 120px; }
.tile-art.article i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.tile-art.article i.h { height: 8px; width: 70%; background: rgba(var(--ac-rgb), 0.7); }
.tile-art.article i.s { width: 55%; }
.tile-art.article i.q { width: 40%; background: var(--ac); margin-top: 3px; }

/* year ticks */
.tile-art.years { display: flex; align-items: flex-end; justify-content: space-between; gap: 3px; padding-top: 22px; position: relative; }
.tile-art.years i { flex: 1; height: 12px; border-radius: 2px; background: rgba(var(--ac-rgb), 0.35); position: relative; }
.tile-art.years i:nth-child(odd) { height: 18px; }
.tile-art.years i:first-child, .tile-art.years i:last-child { background: var(--ac); }
.tile-art.years i[data-y]::after {
  content: attr(data-y);
  position: absolute;
  top: -18px;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ac);
}
.tile-art.years i:first-child::after { left: 0; }
.tile-art.years i:last-child::after { right: 0; }

/* tutor spark */
.tile-art.spark { position: absolute; right: 14px; top: 14px; margin: 0; padding: 0; width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--ac-rgb), 0.15); color: var(--ac); display: flex; align-items: center; justify-content: center; }
.tile-art.spark svg { width: 24px; height: 24px; }
.tile.wide .tile-label { max-width: 34ch; }
.tile.wide[data-accent="green"] { padding-right: 76px; }

/* Staggered entrance */
.tile { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.in-view .tile { opacity: 1; transform: none; }
.in-view .tile:nth-child(2) { transition-delay: 0.07s; }
.in-view .tile:nth-child(3) { transition-delay: 0.14s; }
.in-view .tile:nth-child(4) { transition-delay: 0.21s; }
.in-view .tile:nth-child(5) { transition-delay: 0.28s; }
.in-view .tile:nth-child(6) { transition-delay: 0.35s; }

.topics-all {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.topics-all summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
}
.topics-all summary::-webkit-details-marker { display: none; }
.ta-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}
.ta-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  margin-top: 2px;
}
.topics-all summary svg { color: var(--text-3); flex-shrink: 0; transition: transform 0.25s var(--ease); }
.topics-all[open] summary svg { transform: rotate(180deg); }
.topics-all-body {
  padding: 4px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--border);
}
.tgroup { padding-top: 12px; }
.tgroup + .tgroup { border-top: 1px solid var(--border); }
.tgroup-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.tgroup-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 11px;
}

/* ============ Pricing ============ */
.price-card {
  position: relative;
  border-radius: 18px;
  padding: 26px 22px 22px;
  background: linear-gradient(170deg, #17171B, #0E0E11);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  top: -40%; left: 50%;
  width: 140%; height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.22), transparent 60%);
  pointer-events: none;
}
.price-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.price-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-2);
}
.price-amount {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 4px;
}
.price-amount .big {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
  line-height: 1;
}
.price-amount .per {
  font-size: 0.9rem;
  color: var(--text-3);
  font-weight: 500;
}
.price-compare {
  position: relative;
  font-size: 0.86rem;
  color: var(--text-3);
  margin-bottom: 20px;
}
.price-compare s { color: var(--text-4); }
.price-list {
  position: relative;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.45;
}
.price-list svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.price-fine {
  position: relative;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 12px;
  line-height: 1.5;
}

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq-q svg {
  flex-shrink: 0;
  color: var(--text-4);
  transition: transform 0.25s var(--ease);
}
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); color: var(--blue-2); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding: 0 0 18px;
  font-size: 0.93rem;
  color: var(--text-3);
  line-height: 1.6;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ============ Signup form ============ */
.signup {
  margin-top: 56px;
  padding: 36px var(--gutter) 40px;
  background: linear-gradient(180deg, var(--bg), #0C0F17 60%, var(--bg));
  border-top: 1px solid var(--border);
}
.signup h2 {
  font-size: clamp(1.6rem, 6.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.signup .sub { margin-bottom: 22px; }
.form { display: flex; flex-direction: column; gap: 10px; }
.field { position: relative; }
.field input {
  width: 100%;
  min-height: 54px;
  padding: 15px 16px;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: var(--text-4); }
.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.field input:not(:placeholder-shown):invalid { border-color: rgba(248, 113, 113, 0.6); }
.field .toggle-pw {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 10px 12px;
  min-height: 42px;
  cursor: pointer;
  border-radius: 8px;
}
.field .toggle-pw:active { background: var(--surface-2); }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-3);
  line-height: 1.5;
  padding: 4px 2px;
  cursor: pointer;
}
.consent input {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.consent a { color: var(--blue-2); text-decoration: none; }
.consent a:hover { text-decoration: underline; }
.form .btn { margin-top: 4px; }
.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 16px;
}
.form-note a { color: var(--blue-2); text-decoration: none; font-weight: 500; }
.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--text-4);
}
.secure svg { color: var(--text-4); }

/* ============ Footer ============ */
.footer {
  padding: 26px var(--gutter) calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-4);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 12px;
}
.footer a { color: var(--text-3); text-decoration: none; }
.footer a:hover { color: var(--text-2); }

/* ============ Sticky CTA ============ */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-inner {
  width: 100%;
  max-width: calc(var(--col) - 2 * var(--gutter));
  display: flex;
  align-items: center;
  gap: 12px;
}
.sticky-text { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-text .a {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.sticky-text .b {
  display: block;
  font-size: 0.74rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cta .btn {
  width: auto;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 0.95rem;
  flex-shrink: 0;
}


/* ============================================================
   Desktop layout (≥ 900px). Mobile stays the source of truth;
   this only re-flows the same sections into a wide page.
   ============================================================ */
@media (min-width: 900px) {
  :root { --gutter: 48px; --col: 1120px; }
  body { background: var(--bg); }
  .page { border: none; box-shadow: none; }

  /* Top bar */
  .topbar { padding: 16px var(--gutter); }
  .brand { font-size: 1.15rem; }
  .topbar-right { gap: 14px; }
  .topbar .topbar-cta {
    display: inline-flex;
    width: auto;
    min-height: 42px;
    padding: 9px 18px;
    font-size: 0.9rem;
    border-radius: 10px;
    box-shadow: none;
  }
  .sticky-cta { display: none; }

  /* Hero: copy left, photo right */
  .hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas: "copy visual" "proof visual";
    column-gap: 56px;
    row-gap: 24px;
    align-items: center;
    padding: 56px var(--gutter) 0;
    position: relative;
  }
  .hero::before {
    content: "";
    position: absolute;
    top: -80px; right: 0;
    width: 55%; height: 120%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.13), transparent 62%);
    pointer-events: none;
  }
  .hero-copy { grid-area: copy; position: relative; align-self: end; }
  .hero h1 { font-size: 2.9rem; }
  .hero .lede { font-size: 1.2rem; max-width: 40ch; margin-bottom: 30px; }
  .hero-cta { width: auto; min-width: 280px; padding: 16px 30px; font-size: 1.08rem; }
  .trust-row { font-size: 0.86rem; gap: 8px 22px; margin-bottom: 0; }
  .hero-visual { grid-area: visual; margin: 0; padding: 0; overflow: visible; }
  .hero-visual::before { inset: -6% -20% 0 -10%; }
  .hero-visual img { width: 128%; margin-left: -8%; }
  .proof { grid-area: proof; margin: 0; align-self: start; max-width: 460px; }

  /* Section headers centred, content left-aligned */
  .section { padding: 96px var(--gutter) 0; text-align: center; }
  .section h2 { font-size: 2.35rem; }
  .section .sub { font-size: 1.1rem; max-width: 56ch; margin-left: auto; margin-right: auto; margin-bottom: 40px; }
  .section .benefit, .section .stage, .section .tile, .section .seq,
  .section .compare-card, .section .price-card,
  .section .faq, .section .topics-all { text-align: left; }

  /* Grinds comparison */
  .compare { max-width: 760px; margin: 0 auto 16px; gap: 16px; }
  .compare-card { padding: 26px 24px; min-height: 190px; }
  .compare-price { font-size: 2.8rem; }
  .compare-desc { font-size: 0.9rem; }
  .compare-math { max-width: 760px; margin: 0 auto 48px; text-align: left; }

  /* Benefit cards */
  .benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .benefits.single { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
  .benefit { grid-template-columns: 1fr; gap: 16px; padding: 26px 24px; }
  .benefits.single .benefit { grid-template-columns: 44px 1fr; }
  .benefit p { font-size: 0.93rem; }

  /* Benefit cards: 2 x 2, copy left and visual right */
  .perks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .perk { display: grid; grid-template-columns: 1fr 272px; align-items: center; }
  .perk-visual { padding: 22px 22px 22px 0; order: 2; }
  .perk-copy { padding: 26px 18px 26px 26px; order: 1; }
  .perk h3 { font-size: 1.42rem; }
  .perk p { font-size: 0.95rem; }
  .section .perk { text-align: left; }

  /* How a topic works: alternating photo / copy rows */
  .stages { gap: 28px; max-width: 1040px; margin: 0 auto; }
  .stage { display: grid; grid-template-columns: 1.08fr 1fr; align-items: stretch; text-align: left; }
  .stage:nth-child(even) .stage-media { order: 2; }
  .stage-media, .stage-media.cutout { aspect-ratio: auto; min-height: 370px; }
  .stage-media img { position: absolute; inset: 0; }
  .stage-media.cutout img { object-position: 0% 14%; }
  .stage-media::after {
    left: auto; right: 0; top: 0; bottom: 0;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--ac), rgba(var(--ac-rgb), 0));
  }
  .stage:nth-child(even) .stage-media::after { right: auto; left: 0; }
  .stage-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .stage-head { margin-bottom: 16px; }
  .stage h3 { font-size: 1.75rem; margin-bottom: 10px; }
  .stage p { font-size: 1rem; }
  .stage-note { margin-top: 18px; font-size: 0.84rem; }

  /* Sequencing: roadmap left, points right */
  .seq { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; max-width: 1000px; margin: 0 auto; text-align: left; }
  .roadmap { padding: 22px 18px 18px; }
  .rm-toast { font-size: 0.9rem; }
  .seq-copy { gap: 22px; }
  .seq-point h3 { font-size: 1.15rem; }
  .seq-point p { font-size: 0.97rem; }

  /* What's inside: bento */
  .bento { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; text-align: left; }
  .tile { min-height: 190px; padding: 22px 20px 18px; }
  .tile.wide { grid-column: span 2; min-height: 150px; }
  .tile-num { font-size: 2.6rem; }
  .tile-num span.dash { font-size: 2.6rem; }
  .tile-label { font-size: 0.86rem; }
  .topics-all-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 28px; padding: 16px 20px 20px; }
  .tgroup { padding-top: 10px; padding-bottom: 6px; }
  .tgroup + .tgroup { border-top: none; }

  /* Pricing */
  .price-card { max-width: 560px; margin: 0 auto; padding: 34px 34px 30px; }
  .price-amount .big { font-size: 4rem; }

  /* FAQ */
  .faq { max-width: 760px; margin: 0 auto; }
  .faq-q { font-size: 1.08rem; padding: 20px 0; }
  .faq-a p { font-size: 1rem; }

  /* Signup: copy left, form right */
  .signup { margin-top: 96px; padding: 80px var(--gutter) 88px; }
  .signup-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 64px;
    align-items: center;
  }
  .signup h2 { font-size: 2.35rem; }
  .signup .sub { font-size: 1.1rem; margin-bottom: 26px; }
  .signup-points { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
  .signup-points li { display: flex; align-items: center; gap: 10px; font-size: 0.98rem; color: var(--text-2); }
  .signup-points svg { color: var(--green); flex-shrink: 0; }
  .signup-form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);
  }

  /* Footer */
  .footer {
    padding: 28px var(--gutter) 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
  }
  .footer-links { margin: 0; }

  /* Hover polish where a pointer exists */
  @media (hover: hover) {
    .stage { transition: border-color 0.2s; }
    .stage:hover { border-color: rgba(var(--ac-rgb), 0.5); }
    .stage-media img { transition: transform 0.6s var(--ease); }
    .stage:hover .stage-media img { transform: scale(1.03); }
    .topbar-login:hover { color: var(--text); }
  }
}
@media (min-width: 1200px) {
  .hero { column-gap: 72px; padding-top: 72px; }
  .hero h1 { font-size: 3.4rem; }
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-cta, .faq-a, .faq-q svg, .btn, .perk, .mini-tick, .paper, .stamp, .mini-ring .fill { transition: none; }
  .perk, .mini-tick, .stamp, .tile, .rm-node, .rm-toast { opacity: 1; transform: none; transition: none; }
  .mini-ring .fill, .rm-seg.mastered, .rm-seg.current { stroke-dashoffset: 0; transition: none; }
  .rm-node.current .pulse { animation: none; }
}

/* Server-side signup error (re-rendered by course_signup) */
.form-error-server {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--red);
}

/* Logged-in free (past papers) accounts: start the free trial instead of signing up */
.upgrade { display: flex; flex-direction: column; gap: 12px; }
.upgrade-lead { font-size: 0.95rem; color: var(--text-2); line-height: 1.55; }
