/* Hallmark · redesign · genre atmospheric · theme: SIRIUS night and gold (custom, from faq.css) · signature: the live orbit with SIRIUS at its centre · shape: hero, steps, ten product demos, small things, who, close */
/* critique: one gold accent on ink; every heading names its feature; demos are the real product UI, live; no eyebrows, no emoji icons, no violet. */
/* waive 46a: 40,000+ questions and 7,000+ students are the bank and account counts of 2026-12-04, not invented. */
:root, :root[data-theme="amoled"] {
  --ab-red: #e0796b;
  --ab-teal: #7fd6c2;
  --ab-flame: #f0a35c;
  --ab-on-gold: #120e06;
  --ab-on-red: #fffaf2;
  --ab-on-teal: #06120f;
  --ab-mask: #000;
  --ab-shadow: rgba(0, 0, 0, 0.7);
  --ab-demo-shadow: rgba(0, 0, 0, 0.7);
  --ab-saturn-ring: #f1dcae;
  --ab-comet: #fff8e4;
  --ab-sun: #ffe7a6;
  --ab-planet-glow: rgba(255, 226, 160, 0.35);
  --ab-board: #11100d;
  --ab-ink: #8fb4ff;
  --ab-dot: rgba(255, 255, 255, 0.5);
  --ab-room-bg: #050807;
  --ab-room-glow-a: rgba(216, 180, 106, 0.26);
  --ab-room-glow-b: rgba(40, 140, 120, 0.24);
  --ab-room-line: #23262a;
  --ab-room-line-2: rgba(255, 255, 255, 0.14);
  --ab-room-ink: #f1efe9;
  --ab-room-dim: rgba(241, 239, 233, 0.6);
  --ab-room-gold: #d8b46a;
  --ab-room-faint: rgba(255, 255, 255, 0.1);
  --ab-room-faint-2: rgba(255, 255, 255, 0.05);
  --ab-card: color-mix(in srgb, var(--faq-surface) 82%, transparent);
  --ab-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ab-gap: clamp(28px, 6vw, 90px);
}
:root[data-theme="light"] {
  --ab-red: #b8493a;
  --ab-teal: #1f8a73;
  --ab-on-gold: #fffaf2;
  --ab-flame: #c4621f;
  --ab-demo-shadow: rgba(70, 50, 20, 0.35);
  --ab-comet: #b0802a;
  --ab-board: #f7f3ea;
  --ab-ink: #2457c5;
  --ab-dot: rgba(90, 60, 20, 0.5);
}
/* The study-room demo stays night-dark in both themes on purpose, like a joined room in the app. */

/* About SIRIUS — landing page (2026-12-05). Builds on faq.css (tokens,
   top bar, footer) and adds the hero sky, scroll reveals and one small
   live demo per feature. Both site themes, phone to desktop; every motion
   stops for prefers-reduced-motion. */

html, body { overflow-x: clip; }


.ab-top,
.ab-foot,
.ab main > section {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.ab-topbar { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }

/* Reading progress */
.ab-progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; pointer-events: none; }
.ab-progress span { display: block; height: 100%; background: var(--faq-gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ── Shared type ─────────────────────────────────────────────── */
.ab-h2 {
  margin: 0 0 18px;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
  font-family: var(--faq-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.ab-copy p:not(.faq-kicker),
.ab-who-text p,
.ab-final p { color: var(--faq-muted); font-size: clamp(0.98rem, 1.6vw, 1.08rem); }

.ab a:not([class]) {
  color: var(--faq-text);
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--faq-gold) 70%, transparent);
}
.ab a:not([class]):hover { color: var(--faq-gold); }

.ab-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 12px;
  font: 700 0.88rem/1 var(--faq-utility);
  text-decoration: none;
  transition: transform 220ms var(--ab-ease), background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.ab-btn:hover { transform: translateY(-2px); }
.ab-btn:active { transform: translateY(0) scale(0.98); }
.ab-btn-gold { background: var(--faq-gold); color: var(--ab-on-gold); }
.ab-btn-gold:hover { background: color-mix(in srgb, var(--faq-gold) 84%, var(--faq-text)); }
.ab-btn-line { border: 1px solid var(--faq-line); color: var(--faq-text); }
.ab-btn-line:hover { border-color: var(--faq-gold); }

/* ── Hero ───────────────────────────────────────────────────── */
.ab-hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: grid;
  align-items: center;
  padding: clamp(56px, 10vw, 110px) 0 clamp(80px, 10vw, 120px);
  isolation: isolate;
}

/* Page-wide star field (fixed): the stars stay while the page moves. */
.ab-sky {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ab-orbit-hero {
  position: absolute;
  z-index: -1;
  top: calc(50% + 48px);
  left: 50%;
  width: clamp(560px, 100vw, 1040px);
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
  /* Owner, 2026-12-05: show the top half; the lower half fades into shade. */
  -webkit-mask-image: linear-gradient(to bottom, var(--ab-mask) 0%, var(--ab-mask) 42%, transparent 78%);
  mask-image: linear-gradient(to bottom, var(--ab-mask) 0%, var(--ab-mask) 42%, transparent 78%);
}
.ab-dial {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: color-mix(in srgb, var(--faq-gold) 38%, transparent);
  stroke-width: 1;
}
.ab-dial * { vector-effect: non-scaling-stroke; }
.ab-dial .ab-dial-faint { stroke: color-mix(in srgb, var(--faq-gold) 16%, transparent); }
.ab-dial-ticks line { stroke: color-mix(in srgb, var(--faq-gold) 40%, transparent); }
.ab-dial-ticks line.is-major { stroke: color-mix(in srgb, var(--faq-gold) 75%, transparent); }
.ab-dial-turn { transform-box: view-box; transform-origin: 300px 300px; animation: ab-turn 240s linear infinite; }
@keyframes ab-turn { to { transform: rotate(360deg); } }

/* Orbit contents (owner, 2026-12-05: "the orbit shouldn't be empty"):
   planets on their rings, a comet on the tilted ellipse and the subjects
   turning slowly round the dial. Owner, 2026-12-05 round 4-5: no star, no coloured planets and no tags in the
   middle; the dial is large and centred behind the hero, like the Universe
   backdrop, and the hero copy sits in its centre. */
.ab-dial .ab-dash { stroke-dasharray: 2 7; }
.ab-dial circle[fill], .ab-dial .ab-comet *, .ab-moon { stroke: none; }
.ab-comet-dot { fill: var(--ab-comet); }
.ab-moon { fill: var(--ab-saturn-ring); opacity: 0.85; }
.ab-words { transform-box: view-box; transform-origin: 300px 300px; animation: ab-turn 180s linear infinite reverse; }
.ab-words text { fill: color-mix(in srgb, var(--faq-gold) 46%, transparent); stroke: none; font: italic 400 12.5px/1 var(--faq-display); }
.ab-spin { transform-box: view-box; transform-origin: 300px 300px; animation: ab-turn linear infinite; }
.ab-spin.s5 { animation-duration: 18s; animation-delay: -4s; }
.ab-spin circle { filter: drop-shadow(0 0 6px var(--ab-planet-glow)); }


.ab main, .ab-top, .ab-foot { position: relative; }

/* Subjects strip under the hero. */
.ab-marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--faq-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--ab-mask) 12%, var(--ab-mask) 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--ab-mask) 12%, var(--ab-mask) 88%, transparent);
}
.ab-marquee > div { display: flex; width: max-content; animation: ab-marquee 60s linear infinite; }
.ab-marquee span { padding: 0 26px; color: var(--faq-muted); font: 500 clamp(1.05rem, 2vw, 1.35rem)/1 var(--faq-display); font-style: italic; white-space: nowrap; }
.ab-marquee span::after { content: "✦"; margin-left: 52px; font-style: normal; font-size: 0.6em; color: var(--faq-gold); vertical-align: middle; }
.ab-marquee:hover > div { animation-play-state: paused; }
@keyframes ab-marquee { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .ab-orbit-hero { width: max(560px, 150vw); opacity: 0.85; }
}

.ab-hero-copy { max-width: 760px; margin-inline: auto; text-align: center; }

.ab-hero h1 {
  margin: 0;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
  font-family: var(--faq-display);
  font-size: clamp(3rem, 9vw, 6.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.ab-hero h1 .ab-accent { color: var(--faq-gold); }

.ab-lead { max-width: 600px; margin: 28px auto 0; color: var(--faq-muted); font-size: clamp(1rem, 2vw, 1.16rem); }

.ab-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.ab-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 46px; margin: 48px 0 0; }
.ab-stats div { display: grid; gap: 2px; }
.ab-stats dt { color: var(--faq-muted); font: 600 0.88rem/1.4 var(--faq-utility); }
.ab-stats dd { margin: 0; font: 500 clamp(1.7rem, 3.4vw, 2.3rem)/1.1 var(--faq-display); font-variant-numeric: tabular-nums; }

/* Hero entrance: one after another */
.ab-rise { opacity: 0; transform: translateY(22px); animation: ab-rise 900ms var(--ab-ease) forwards; }
.ab-rise:nth-child(2) { animation-delay: 90ms; }
.ab-rise:nth-child(3) { animation-delay: 180ms; }
.ab-rise:nth-child(4) { animation-delay: 270ms; }
.ab-rise:nth-child(5) { animation-delay: 360ms; }
@keyframes ab-rise { to { opacity: 1; transform: none; } }

.ab-scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid var(--faq-line);
  border-radius: 14px;
}
.ab-scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--faq-gold); animation: ab-cue 1.8s var(--ab-ease) 6; }
@keyframes ab-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── Scroll reveal ──────────────────────────────────────────── */
/* Content is always visible; it only rises into place (one reveal). */
.ab-js [data-reveal] { transform: translateY(28px); transition: transform 900ms var(--ab-ease); transition-delay: var(--d, 0ms); }
.ab-js [data-reveal].is-in { transform: none; }

/* ── Steps ──────────────────────────────────────────────────── */
.ab-steps { position: relative; padding: clamp(80px, 12vw, 140px) 0 40px; border-top: 1px solid var(--faq-line); }
.ab-step-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ab-gap); margin: 46px 0 0; padding: 0; list-style: none; }
.ab-step-list li { display: grid; gap: 8px; padding-top: 26px; }
.ab-step-list b { font: 600 1.18rem/1.3 var(--faq-body); }
.ab-step-list li > span:last-child { color: var(--faq-muted); }
.ab-step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--faq-gold); border-radius: 50%; background: var(--faq-bg); color: var(--faq-gold); font: 700 0.78rem/1 var(--faq-utility); }
.ab-step-list::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 46px; height: 1px; background: linear-gradient(var(--faq-gold), var(--faq-gold)) 0 0 / calc(var(--line, 0) * 100%) 100% no-repeat, var(--faq-line); }

/* ── Feature rows ──────────────────────────────────────────── */
.ab-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--ab-gap);
  align-items: center;
  padding: clamp(70px, 10vw, 130px) 0;
  border-top: 1px solid var(--faq-line);
}
.ab-feature.is-flip .ab-copy { order: 2; }
.ab-copy { max-width: 470px; }
.ab-feature.is-flip .ab-copy { justify-self: end; }
.ab-points { margin: 20px 0 0; padding: 0; list-style: none; color: var(--faq-text); }
.ab-points li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--faq-line); font-size: 0.95rem; }
.ab-points li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--faq-gold); }

.ab-demo {
  position: relative;
  min-height: 300px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--faq-line);
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--faq-gold) 9%, transparent), transparent 60%),
    var(--ab-card);
  box-shadow: 0 40px 80px -60px var(--ab-demo-shadow);
  overflow: hidden;
}
.ab-js .ab-feature .ab-demo[data-reveal] { transform: translateY(46px) scale(0.97); }
.ab-js .ab-feature .ab-demo[data-reveal].is-in { transform: none; }

/* 1. Question */
.ab-demo-bar { display: flex; align-items: center; justify-content: space-between; color: var(--faq-muted); font: 600 0.82rem/1 var(--faq-utility); }
.ab-mark { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--faq-line); border-radius: 10px; background: transparent; color: var(--faq-muted); cursor: pointer; transition: color 160ms ease, border-color 160ms ease, transform 200ms var(--ab-ease); }
.ab-mark svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ab-mark[aria-pressed="true"] { color: var(--faq-gold); border-color: var(--faq-gold); transform: scale(1.06); }
.ab-mark[aria-pressed="true"] svg { fill: currentColor; }
.ab-q { margin: 16px 0 16px; font-weight: 600; line-height: 1.6; }
.ab-options { display: grid; gap: 9px; }
.ab-options button {
  position: relative;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--faq-line);
  border-radius: 12px;
  background: transparent;
  color: var(--faq-text);
  font: 500 0.92rem/1.35 var(--faq-body);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 200ms ease, background 200ms ease, transform 160ms ease;
}
.ab-options button:hover { border-color: color-mix(in srgb, var(--faq-gold) 60%, var(--faq-line)); }
.ab-options button:active { transform: scale(0.99); }
.ab-options button::after { content: attr(data-pct); position: absolute; right: 12px; top: 50%; translate: 0 -50%; color: var(--faq-muted); font: 700 0.75rem/1 var(--faq-utility); opacity: 0; transition: opacity 300ms ease 200ms; }
.ab-options button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--faq-muted) 12%, transparent); transform-origin: 0 50%; transform: scaleX(0); transition: transform 800ms var(--ab-ease) 120ms; }
.ab-quiz.is-answered .ab-options button { cursor: default; }
.ab-quiz.is-answered .ab-options button::after { opacity: 1; }
.ab-quiz.is-answered .ab-options button::before { transform: scaleX(var(--peer, 0)); }
.ab-options button.is-right { border-color: var(--ab-teal); background: color-mix(in srgb, var(--ab-teal) 10%, transparent); }
.ab-options button.is-right::before { background: color-mix(in srgb, var(--ab-teal) 16%, transparent); }
.ab-options button.is-wrong { border-color: var(--ab-red); background: color-mix(in srgb, var(--ab-red) 10%, transparent); animation: ab-shake 380ms ease; }
@keyframes ab-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.ab-explain { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 600ms var(--ab-ease); }
.ab-explain > p { min-height: 0; margin: 0; overflow: hidden; color: var(--faq-muted); font-size: 0.9rem; }
.ab-quiz.is-answered .ab-explain { grid-template-rows: 1fr; }
.ab-quiz.is-answered .ab-explain > p { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--faq-line); }
.ab-explain b { color: var(--faq-text); }
.ab-demo-hint { margin: 14px 0 0; color: var(--faq-gold); font: 600 0.84rem/1 var(--faq-utility); transition: opacity 300ms ease; }
.ab-quiz.is-answered .ab-demo-hint { opacity: 0; }

/* 2. Queues */
.ab-queues { display: grid; align-content: start; gap: 12px; padding-top: 84px; }
.ab-queue { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--faq-line); border-radius: 14px; background: var(--faq-bg); }
.ab-queue i { width: 10px; height: 10px; border-radius: 50%; background: var(--faq-muted); }
.ab-queue.is-red i { background: var(--ab-red); }
.ab-queue.is-gold i { background: var(--faq-gold); }
.ab-queue em { color: var(--faq-muted); font: 700 0.85rem/1 var(--faq-utility); font-style: normal; font-variant-numeric: tabular-nums; }
.ab-queue.is-red em.is-bump { color: var(--ab-red); animation: ab-bump 500ms var(--ab-ease); }
@keyframes ab-bump { 40% { transform: scale(1.35); } }
.ab-fly { position: absolute; top: 22px; right: 26px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--ab-red); border-radius: 10px; background: var(--faq-surface); font-size: 0.8rem; opacity: 0; }
.ab-fly span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--ab-red); color: var(--ab-on-red); font: 700 0.7rem/1 var(--faq-utility); }
.ab-queues.is-live .ab-fly { animation: ab-fly 3.2s var(--ab-ease) infinite; }
@keyframes ab-fly {
  0% { opacity: 0; transform: translate(0, -10px) scale(0.9); }
  15%, 40% { opacity: 1; transform: none; }
  70% { opacity: 0.9; transform: translate(-30%, 76px) scale(0.6); }
  78%, 100% { opacity: 0; transform: translate(-34%, 80px) scale(0.4); }
}

/* 3. Stats */
.ab-stats-demo { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
.ab-ring { position: relative; width: 150px; height: 150px; }
.ab-ring svg, .ab-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 9; stroke-linecap: round; }
.ab-ring circle:first-child, .ab-clock circle:first-child { stroke: var(--faq-line); }
.ab-ring-fill { stroke: var(--faq-gold); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ab-ease); }
.ab-stats-demo.is-live .ab-ring-fill { stroke-dashoffset: 22; }
.ab-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ab-ring b { font: 500 2.2rem/1 var(--faq-display); }
.ab-ring small { color: var(--faq-muted); font: 600 0.8rem/1.4 var(--faq-utility); }
.ab-bars { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ab-bars li { display: grid; gap: 6px; font-size: 0.85rem; }
.ab-bars i { display: block; height: 7px; border-radius: 4px; background: var(--faq-line); overflow: hidden; }
.ab-bars i::after { content: ""; display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--faq-gold) 60%, transparent), var(--faq-gold)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ab-ease); }
.ab-bars li:nth-child(2) i::after { transition-delay: 120ms; }
.ab-bars li:nth-child(3) i::after { transition-delay: 240ms; }
.ab-bars li:nth-child(4) i::after { transition-delay: 360ms; }
.ab-stats-demo.is-live .ab-bars i::after { transform: scaleX(var(--v)); }
.ab-streak { grid-column: 1 / -1; margin: 0; color: var(--faq-muted); font-size: 0.9rem; }
.ab-streak b { color: var(--faq-text); }

/* 4. Ranks */
.ab-orbit { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 22px; }
.ab-system { position: relative; width: 170px; height: 170px; }
.ab-sun { position: absolute; inset: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: radial-gradient(circle, var(--ab-sun), var(--faq-gold)); box-shadow: 0 0 26px color-mix(in srgb, var(--faq-gold) 70%, transparent); }
.ab-orb { position: absolute; inset: 50%; border: 1px solid var(--faq-line); border-radius: 50%; animation: ab-turn linear infinite; }
.ab-orb i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--faq-muted); }
.ab-orb i.is-you { width: 11px; height: 11px; top: -5.5px; margin-left: -5.5px; background: var(--faq-gold); box-shadow: 0 0 10px var(--faq-gold); }
.ab-orb.o1 { width: 56px; height: 56px; margin: -28px; animation-duration: 9s; }
.ab-orb.o2 { width: 92px; height: 92px; margin: -46px; animation-duration: 15s; }
.ab-orb.o3 { width: 128px; height: 128px; margin: -64px; animation-duration: 24s; }
.ab-orb.o4 { width: 164px; height: 164px; margin: -82px; animation-duration: 38s; }
.ab-board { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ab-board li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--faq-line); border-radius: 12px; font-size: 0.88rem; }
.ab-board li span { color: var(--faq-muted); font: 700 0.78rem/1 var(--faq-utility); }
.ab-board li em { color: var(--faq-gold); font: 600 0.78rem/1 var(--faq-utility); font-style: normal; }
.ab-board li.is-you { border-color: var(--faq-gold); background: color-mix(in srgb, var(--faq-gold) 8%, transparent); }
.ab-board b { font-weight: 600; transition: filter 300ms ease, opacity 300ms ease; }
.ab-orbit.is-ghost .ab-board li.is-you b { filter: blur(5px); opacity: 0.6; }
.ab-switch { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 12px; justify-self: start; color: var(--faq-muted); font: 650 0.85rem/1 var(--faq-utility); cursor: pointer; }
.ab-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ab-switch span { position: relative; width: 44px; height: 26px; border: 1px solid var(--faq-line); border-radius: 13px; background: var(--faq-bg); transition: background 200ms ease, border-color 200ms ease; }
.ab-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--faq-muted); transition: transform 260ms var(--ab-ease), background 200ms ease; }
.ab-switch input:checked + span { border-color: var(--faq-gold); background: color-mix(in srgb, var(--faq-gold) 20%, transparent); }
.ab-switch input:checked + span::after { transform: translateX(18px); background: var(--faq-gold); }
.ab-switch input:focus-visible + span { outline: 2px solid var(--faq-gold); outline-offset: 3px; }

/* 5. Exam */
.ab-exam { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
.ab-clock { position: relative; width: 150px; height: 150px; }
.ab-clock svg { stroke-width: 6; }
.ab-clock-fill { stroke: var(--faq-gold); stroke-dasharray: 100; stroke-dashoffset: 0; }
.ab-clock b { position: absolute; inset: 0; display: grid; place-items: center; font: 500 1.9rem/1 var(--faq-display); font-variant-numeric: tabular-nums; }
.ab-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.ab-dots i { aspect-ratio: 1; border: 1px solid var(--faq-line); border-radius: 6px; transition: background 300ms ease, border-color 300ms ease; }
.ab-dots i.is-done { border-color: color-mix(in srgb, var(--faq-gold) 70%, transparent); background: color-mix(in srgb, var(--faq-gold) 30%, transparent); }
.ab-dots i.is-now { border-color: var(--faq-text); }

/* 6. Flashcard */
.ab-card-demo { display: grid; place-items: center; perspective: 1200px; }
.ab-card { position: relative; width: min(340px, 100%); aspect-ratio: 1.45; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; transform-style: preserve-3d; transition: transform 800ms var(--ab-ease); }
.ab-card.is-flipped { transform: rotateY(180deg); }
.ab-card-face { position: absolute; inset: 0; display: grid; align-content: center; gap: 12px; padding: 26px; border: 1px solid var(--faq-line); border-radius: 18px; background: var(--faq-surface); font: 500 clamp(1.15rem, 2.4vw, 1.35rem)/1.35 var(--faq-display); text-align: left; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 30px 50px -40px var(--ab-shadow); }
.ab-card-face.is-back { transform: rotateY(180deg); border-color: var(--faq-gold); }
.ab-card-face small { color: var(--faq-gold); font: 600 0.82rem/1 var(--faq-utility); }
.ab-card-face em { color: var(--faq-muted); font: 500 0.82rem/1.4 var(--faq-body); font-style: normal; }
.ab-card-demo.is-in .ab-card:not(.is-flipped):not(.was-touched) { animation: ab-peek 4s var(--ab-ease) 1.2s 2; }
@keyframes ab-peek { 0%, 100% { transform: none; } 15% { transform: rotateY(-14deg); } 30% { transform: none; } }

/* 7. Video */
.ab-video { display: grid; align-content: center; gap: 16px; }
.ab-board-screen { position: relative; aspect-ratio: 16 / 8; border: 1px solid var(--faq-line); border-radius: 14px; background: var(--ab-board); overflow: hidden; }
.ab-board-screen svg { position: absolute; inset: 10%; width: 80%; height: 80%; fill: none; stroke: var(--ab-ink); stroke-width: 3; stroke-linecap: round; }
.ab-ink { stroke-dasharray: 600; stroke-dashoffset: 600; }
.ab-ink.is-2 { stroke: var(--ab-red); stroke-dasharray: 200; stroke-dashoffset: 200; }
.ab-video.is-live .ab-ink { animation: ab-draw 5s var(--ab-ease) infinite; }
.ab-video.is-live .ab-ink.is-2 { animation-delay: 0.8s; }
@keyframes ab-draw { 0% { stroke-dashoffset: var(--len, 600); } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ab-ink.is-2 { --len: 200; }
.ab-play { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--faq-gold); box-shadow: 0 0 0 0 color-mix(in srgb, var(--faq-gold) 50%, transparent); }
.ab-play::after { content: ""; position: absolute; left: 15px; top: 12px; border: 8px solid transparent; border-left: 12px solid var(--ab-on-gold); border-right: 0; }
.ab-video.is-live .ab-play { animation: ab-pulse 2s ease-out infinite; }
@keyframes ab-pulse { 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
.ab-wave { display: flex; align-items: center; gap: 4px; height: 26px; }
.ab-wave i { flex: 1; height: 100%; transform: scaleY(0.3); border-radius: 2px; background: color-mix(in srgb, var(--faq-gold) 55%, transparent); }
.ab-video.is-live .ab-wave i { animation: ab-wave 1.1s ease-in-out infinite alternate; }
.ab-wave i:nth-child(3n) { animation-delay: -0.4s !important; }
.ab-wave i:nth-child(3n + 1) { animation-delay: -0.7s !important; }
.ab-wave i:nth-child(4n) { animation-duration: 0.8s !important; }
@keyframes ab-wave { to { transform: scaleY(1); } }
.ab-track { height: 4px; border-radius: 2px; background: var(--faq-line); overflow: hidden; }
.ab-track span { display: block; height: 100%; background: var(--faq-gold); transform-origin: 0 50%; transform: scaleX(0); }
.ab-video.is-live .ab-track span { animation: ab-track 10s linear infinite; }
@keyframes ab-track { to { transform: scaleX(1); } }

/* 8. AI chat */
.ab-chat { display: grid; align-content: center; gap: 14px; }
.ab-bubble { max-width: 86%; margin: 0; padding: 13px 16px; border-radius: 16px; font-size: 0.92rem; line-height: 1.55; }
.ab-bubble.is-me { justify-self: end; border-bottom-right-radius: 5px; background: var(--faq-gold); color: var(--ab-on-gold); font-weight: 600; }
.ab-bubble.is-ai { min-height: 4.8em; border: 1px solid var(--faq-line); border-bottom-left-radius: 5px; background: var(--faq-bg); color: var(--faq-text); }
.ab-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--faq-gold); animation: ab-blink 1s steps(1) infinite; }
@keyframes ab-blink { 50% { opacity: 0; } }

/* 9. Universe room — stays night-dark in both themes on purpose, like a
   joined room in the app: a quiet place to focus. */
.ab-room {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  border-color: var(--ab-room-line);
  background:
    radial-gradient(60% 50% at 70% 10%, var(--ab-room-glow-a), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, var(--ab-room-glow-b), transparent 70%),
    var(--ab-room-bg);
  color: var(--ab-room-ink);
}
.ab-room-timer { display: grid; justify-items: center; }
.ab-room-timer small { color: var(--ab-room-dim); font: 600 0.84rem/1 var(--faq-utility); }
.ab-room-timer b { font: 500 2.6rem/1.1 var(--faq-display); font-variant-numeric: tabular-nums; }
.ab-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.ab-people span { --r: 26px; position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: hsl(var(--h) 55% 42%); font: 700 0.85rem/1 var(--faq-utility); }
.ab-people span::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(var(--ab-room-gold) calc(var(--p) * 100%), var(--ab-room-faint) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), var(--ab-mask) 0); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), var(--ab-mask) 0); }
.ab-room.is-live .ab-people span { animation: ab-float 5s ease-in-out infinite alternate; }
.ab-people span:nth-child(2) { animation-delay: -1.2s !important; }
.ab-people span:nth-child(3) { animation-delay: -2.4s !important; }
.ab-people span:nth-child(4) { animation-delay: -3.6s !important; }
@keyframes ab-float { to { transform: translateY(-6px); } }
.ab-cheers { display: flex; gap: 8px; }
.ab-cheers button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ab-room-line-2); border-radius: 12px; background: var(--ab-room-faint-2); color: var(--ab-room-gold); cursor: pointer; transition: transform 200ms var(--ab-ease), background 200ms ease; }
.ab-cheers button:hover { transform: translateY(-2px); background: var(--ab-room-faint); }
.ab-cheers button:active { transform: scale(0.96); }
.ab-cheers svg, .ab-cheer-layer svg, .ab-ico { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.ab-cheers button:nth-child(4) svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ab-ico { width: 1em; height: 1em; vertical-align: -0.12em; color: var(--ab-flame); }
.ab-cheers button:focus-visible { outline: 2px solid var(--ab-room-gold); outline-offset: 2px; }
.ab-cheer-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ab-cheer-layer span svg { width: 26px; height: 26px; }
.ab-cheer-layer span { position: absolute; bottom: 60px; color: var(--ab-room-gold); animation: ab-cheer 1.6s var(--ab-ease) forwards; }
@keyframes ab-cheer { 0% { opacity: 0; transform: translateY(0) scale(0.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx, 0), -200px) scale(1.2); } }

/* 10. Library */
.ab-library { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 30px); }
.ab-file { display: grid; justify-items: center; gap: 8px; padding: 22px 18px 16px; border: 1px solid var(--faq-line); border-radius: 12px 26px 12px 12px; background: var(--faq-bg); }
.ab-file b { display: grid; place-items: center; width: 58px; height: 40px; border-radius: 8px; background: var(--ab-teal); color: var(--ab-on-teal); font: 800 0.8rem/1 var(--faq-utility); }
.ab-file span { color: var(--faq-muted); font-size: 0.75rem; }
.ab-arrow { position: relative; width: clamp(40px, 8vw, 80px); height: 2px; background: repeating-linear-gradient(90deg, var(--faq-gold) 0 8px, transparent 8px 14px); background-size: 28px 2px; }
.ab-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--faq-gold); border-right: 0; }
.ab-library.is-live .ab-arrow { animation: ab-march 0.9s linear infinite; }
@keyframes ab-march { to { background-position: 28px 0; } }
.ab-stack { position: relative; width: 120px; height: 140px; }
.ab-stack span { position: absolute; left: 0; right: 0; height: 74px; display: grid; place-items: start center; padding-top: 7px; border: 1px solid var(--faq-line); border-radius: 12px; background: var(--faq-surface); color: var(--faq-gold); font: 700 0.85rem/1 var(--faq-utility); box-shadow: 0 16px 30px -24px var(--ab-shadow); }
.ab-stack span:nth-child(1) { top: 0; }
.ab-stack span:nth-child(2) { top: 32px; }
.ab-stack span:nth-child(3) { top: 64px; }
.ab-library.is-live .ab-stack span { animation: ab-stack 3.6s var(--ab-ease) infinite; }
.ab-library.is-live .ab-stack span:nth-child(2) { animation-delay: 0.25s; }
.ab-library.is-live .ab-stack span:nth-child(3) { animation-delay: 0.5s; }
@keyframes ab-stack { 0% { opacity: 0; transform: translateX(-40px) scale(0.85); } 20%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

/* ── Small things grid ─────────────────────────────────────── */
.ab-more { padding: clamp(80px, 12vw, 140px) 0; border-top: 1px solid var(--faq-line); }
.ab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 40px 0 0; padding: 0; list-style: none; border: 1px solid var(--faq-line); border-radius: 20px; background: var(--faq-line); overflow: hidden; }
.ab-grid li { display: grid; align-content: start; gap: 8px; padding: 28px 26px; background: var(--faq-bg); transition: background 220ms ease; }
.ab-grid li:hover { background: var(--faq-surface); }
.ab-grid svg { width: 26px; height: 26px; margin-bottom: 6px; fill: none; stroke: var(--faq-gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms var(--ab-ease); }
.ab-grid li:hover svg { transform: translateY(-3px) rotate(-4deg); }
.ab-grid b { font-weight: 650; }
.ab-grid span { color: var(--faq-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Who + final ───────────────────────────────────────────── */
.ab-who { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--ab-gap); padding: clamp(80px, 12vw, 130px) 0; border-top: 1px solid var(--faq-line); }
.ab-who-text p { margin: 0 0 16px; }
.ab-final { padding: clamp(80px, 12vw, 140px) 0 40px; border-top: 1px solid var(--faq-line); text-align: center; }
.ab-final > div { max-width: 640px; margin: 0 auto; }
.ab-final .ab-h2 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
.ab-final p { margin: 0 0 30px; }
.ab-foot .faq-footer { margin-top: 40px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }

/* ── Tablet ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ab-feature { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .ab-feature.is-flip .ab-copy { order: 0; justify-self: start; }
  .ab-copy { max-width: 620px; }
  .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-who { grid-template-columns: minmax(0, 1fr); }
  .ab-dial { right: -30vw; opacity: 0.6; }
}

/* ── Phones ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ab-top, .ab-foot, .ab main > section { width: min(100% - 28px, 1120px); }
  .ab-hero { min-height: auto; padding-top: 70px; }
  .ab-dial { top: 26%; right: -52vw; width: 120vw; opacity: 0.5; }
  .ab-scroll-cue { display: none; }
  .ab-stats { gap: 14px 30px; }
  .ab-step-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ab-step-list li { grid-template-columns: 40px 1fr; column-gap: 16px; padding-top: 18px; }
  .ab-step-list li > :not(.ab-step-n) { grid-column: 2; }
  .ab-step-list .ab-step-n { grid-row: span 2; }
  .ab-step-list::before { display: none; }
  .ab-demo { border-radius: 18px; min-height: 0; }
  .ab-stats-demo, .ab-exam { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ab-stats-demo .ab-bars, .ab-exam .ab-dots { width: 100%; }
  .ab-orbit { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ab-orbit .ab-board { width: 100%; }
  .ab-switch { justify-self: center; }
  .ab-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-library { flex-direction: column; }
  .ab-arrow { transform: rotate(90deg); margin: 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ab *, .ab *::before, .ab *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .ab-rise { opacity: 1; transform: none; }
  .ab-js [data-reveal] { transform: none; }
  .ab-card.is-flipped { transform: rotateY(180deg); }
}
