/* ═══════════════════════════════════════════════════════════
   NCSO FIELD — design tokens
   Art direction: field instrument panel. Graphite + hi-vis amber.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* type scale */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);

  /* spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;

  /* radius + elevation */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --wrap: 940px;
  --nav-h: 68px;
}

/* ── DARK (default) ── */
:root, [data-theme='dark'] {
  --bg:          oklch(0.16 0.012 265);
  --bg-deep:     oklch(0.12 0.014 265);
  --surface:     oklch(0.205 0.013 265);
  --surface-2:   oklch(0.245 0.014 265);
  --surface-3:   oklch(0.29 0.015 265);
  --line:        oklch(0.32 0.016 265);
  --line-soft:   oklch(0.26 0.014 265);
  --text:        oklch(0.96 0.006 265);
  --text-2:      oklch(0.78 0.012 265);
  --muted:       oklch(0.63 0.018 265);
  --faint:       oklch(0.48 0.018 265);

  --accent:      oklch(0.80 0.165 78);      /* hi-vis amber */
  --accent-soft: oklch(0.80 0.165 78 / 0.14);
  --accent-line: oklch(0.80 0.165 78 / 0.34);
  --on-accent:   oklch(0.17 0.03 78);

  --ok:   oklch(0.78 0.16 158);
  --ok-soft: oklch(0.78 0.16 158 / 0.13);
  --bad:  oklch(0.70 0.19 22);
  --bad-soft: oklch(0.70 0.19 22 / 0.13);
  --warn: oklch(0.80 0.14 62);
  --info: oklch(0.74 0.13 232);

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 6px 24px -8px oklch(0 0 0 / 0.55);
  --shadow-lg: 0 24px 60px -20px oklch(0 0 0 / 0.7);
  --grid-line: oklch(1 0 0 / 0.022);
}

/* ── LIGHT ── */
[data-theme='light'] {
  --bg:          oklch(0.975 0.004 265);
  --bg-deep:     oklch(0.94 0.005 265);
  --surface:     oklch(1 0 0);
  --surface-2:   oklch(0.975 0.004 265);
  --surface-3:   oklch(0.945 0.006 265);
  --line:        oklch(0.89 0.008 265);
  --line-soft:   oklch(0.93 0.006 265);
  --text:        oklch(0.22 0.015 265);
  --text-2:      oklch(0.38 0.015 265);
  --muted:       oklch(0.52 0.018 265);
  --faint:       oklch(0.66 0.016 265);

  --accent:      oklch(0.68 0.155 62);
  --accent-soft: oklch(0.68 0.155 62 / 0.12);
  --accent-line: oklch(0.68 0.155 62 / 0.32);
  --on-accent:   oklch(1 0 0);

  --ok:   oklch(0.56 0.14 158);
  --ok-soft: oklch(0.56 0.14 158 / 0.1);
  --bad:  oklch(0.56 0.19 25);
  --bad-soft: oklch(0.56 0.19 25 / 0.09);
  --warn: oklch(0.62 0.14 62);
  --info: oklch(0.55 0.13 232);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 265 / 0.06);
  --shadow-md: 0 8px 24px -10px oklch(0.2 0.02 265 / 0.16);
  --shadow-lg: 0 24px 60px -22px oklch(0.2 0.02 265 / 0.22);
  --grid-line: oklch(0.2 0.02 265 / 0.035);
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, var(--accent-soft), transparent 62%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 46px 100%;
}
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - var(--space-8), var(--wrap)); margin-inline: auto; }
@media (max-width: 520px) { .wrap { width: calc(100% - var(--space-6)); } }

.num { font-family: var(--font-mono); font-feature-settings: 'tnum'; letter-spacing: -0.02em; }

/* ═══ APP BAR ═══ */
.bar {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px) saturate(150%);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.bar-in { display: flex; align-items: center; gap: var(--space-4); height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; min-width: 0; }
.brand svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand b {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 800;
  letter-spacing: -0.02em; white-space: nowrap;
}
.brand b span { color: var(--accent); }

.hstat {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  font-size: var(--text-xs); font-weight: 600; color: var(--text-2);
  white-space: nowrap;
}
.hstat i { font-style: normal; font-size: 0.9em; }
.hstat.live { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
@media (max-width: 640px) { .hstat.hide-sm { display: none; } }

.icobtn {
  width: 36px; height: 36px; display: grid; place-items: center; flex: none;
  border-radius: 10px; border: 1px solid var(--line-soft); background: var(--surface-2);
  color: var(--text-2); transition: 0.18s var(--ease);
}
.icobtn:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-1px); }
.icobtn svg { width: 17px; height: 17px; }

/* ═══ BOTTOM NAV ═══ */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: 720px; margin-inline: auto;
  background: color-mix(in oklab, var(--bg-deep) 92%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--line-soft);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; height: var(--nav-h); color: var(--faint);
  font-size: 0.68rem; font-weight: 650; letter-spacing: 0.01em;
  transition: color 0.18s var(--ease); position: relative;
}
.nav button svg { width: 20px; height: 20px; transition: transform 0.28s var(--ease); }
.nav button:hover { color: var(--text-2); }
.nav button.on { color: var(--accent); }
.nav button.on svg { transform: translateY(-2px) scale(1.06); }
@media (min-width: 721px) {
  .nav { border-radius: var(--r-lg) var(--r-lg) 0 0; border: 1px solid var(--line-soft); border-bottom: 0; }
}
.nav button.on::after {
  content: ''; position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: 26px; height: 2px; border-radius: 0 0 3px 3px; background: var(--accent);
}
.nav .dotbadge {
  position: absolute; top: 11px; right: calc(50% - 18px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent);
  font-size: 0.6rem; font-weight: 800; line-height: 16px;
}

/* ═══ VIEW ═══ */
.view { padding: var(--space-6) 0 var(--space-12); animation: rise 0.42s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.eyebrow {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}
h1.title {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08; margin-top: 3px;
}
h2.sect {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 750;
  letter-spacing: -0.02em; display: flex; align-items: center; gap: var(--space-3);
}
h2.sect::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.sub { color: var(--muted); font-size: var(--text-sm); }

.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}

/* ═══ READINESS HERO ═══ */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background:
    radial-gradient(700px 340px at 88% -30%, var(--accent-soft), transparent 68%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  padding: var(--space-6); box-shadow: var(--shadow-md);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 40%, oklch(1 0 0 / 0.045) 50%, transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-6);
  align-items: center;
}
@media (max-width: 560px) { .hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.ring { position: relative; width: 148px; height: 148px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-linecap: round; }
.ring .trk { stroke: var(--surface-3); }
.ring .val {
  stroke: url(#ringgrad);
  transition: stroke-dashoffset 1.1s var(--ease);
  filter: drop-shadow(0 0 7px var(--accent-soft));
}
.ring-mid {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.ring-mid b {
  font-family: var(--font-mono); font-size: 2.45rem; font-weight: 700;
  letter-spacing: -0.05em; line-height: 1; display: block;
}
.ring-mid small {
  display: block; margin-top: 4px; font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}
.rank {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: var(--space-2);
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: var(--text-xs); font-weight: 750;
  letter-spacing: 0.03em;
}
.hero h1 {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}
.hero p { color: var(--text-2); font-size: var(--text-sm); margin-top: var(--space-2); max-width: 44ch; }
.xpbar {
  margin-top: var(--space-4); height: 7px; border-radius: var(--r-pill);
  background: var(--surface-3); overflow: hidden;
}
.xpbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--warn)); transition: width 0.9s var(--ease); }
.xpmeta { display: flex; justify-content: space-between; margin-top: 6px; font-size: var(--text-xs); color: var(--muted); }

/* ═══ PRIMARY CTA — the button people press ═══ */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: var(--space-4); width: 100%;
  margin-top: var(--space-5); padding: var(--space-4) var(--space-5);
  border-radius: var(--r-lg); color: var(--on-accent);
  background: linear-gradient(115deg, var(--accent) 0%, oklch(0.76 0.17 55) 55%, var(--accent) 100%);
  background-size: 220% 220%;
  box-shadow:
    0 10px 34px -8px var(--accent-line),
    0 0 0 1px oklch(1 0 0 / 0.12) inset,
    0 1px 0 oklch(1 0 0 / 0.3) inset;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  animation: ctaBreathe 3.2s ease-in-out infinite, ctaShift 7s ease-in-out infinite;
  text-align: left;
}
/* pulsing halo */
.cta::before {
  content: ''; position: absolute; inset: -3px; z-index: -1; border-radius: inherit;
  background: linear-gradient(115deg, var(--accent), oklch(0.8 0.16 45), var(--accent));
  filter: blur(14px); opacity: 0.55;
  animation: ctaHalo 3.2s ease-in-out infinite;
}
/* passing shine */
.cta::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 32%, oklch(1 0 0 / 0.42) 50%, transparent 68%);
  transform: translateX(-130%) skewX(-8deg);
  animation: ctaShine 3.4s var(--ease-in-out) infinite;
  animation-delay: 1.2s;
}
@keyframes ctaBreathe {
  0%, 100% { box-shadow: 0 10px 34px -8px var(--accent-line), 0 0 0 1px oklch(1 0 0 / 0.12) inset, 0 1px 0 oklch(1 0 0 / 0.3) inset; }
  50% { box-shadow: 0 14px 46px -6px var(--accent-line), 0 0 26px -2px var(--accent-line), 0 0 0 1px oklch(1 0 0 / 0.16) inset, 0 1px 0 oklch(1 0 0 / 0.3) inset; }
}
@keyframes ctaHalo { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.75; } }
@keyframes ctaShine { 0% { transform: translateX(-130%) skewX(-8deg); } 42%, 100% { transform: translateX(130%) skewX(-8deg); } }
@keyframes ctaShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta:hover { transform: translateY(-3px) scale(1.012); }
.cta:hover em { transform: translateX(4px); }
.cta:active { transform: translateY(0) scale(0.99); }
.cta em { transition: transform 0.2s var(--ease); }
@media (prefers-reduced-motion: reduce) { .cta, .cta::before, .cta::after { animation: none !important; } }
.cta:disabled { opacity: 0.45; pointer-events: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: var(--text-sm); font-weight: 650; color: var(--text);
  transition: 0.18s var(--ease);
}
.btn:hover { background: var(--surface-3); border-color: var(--accent-line); transform: translateY(-1px); }
.btn.pri { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.pri:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 13px; font-size: var(--text-xs); }
.btn.danger { color: var(--bad); border-color: var(--bad-soft); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

/* ═══ QUICK ACTIONS ═══ */
.qa-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: var(--space-3); margin-top: var(--space-3);
}
.qa {
  position: relative; overflow: hidden; text-align: left;
  padding: var(--space-4); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: 0.2s var(--ease);
}
.qa:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.qa:disabled { opacity: 0.42; pointer-events: none; }
.qa-ico, .tc-ico, .pr-ico {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; font-size: 1.02rem; line-height: 1;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  margin-bottom: 10px; transition: 0.2s var(--ease);
}
.qa:hover .qa-ico, .tc:hover .tc-ico { border-color: var(--accent-line); transform: scale(1.06); }
.qa.hot .qa-ico { background: var(--accent-soft); border-color: var(--accent-line); }
.tc.on .tc-ico { background: var(--accent-soft); border-color: var(--accent-line); }
.qa b { display: block; font-size: var(--text-sm); font-weight: 700; letter-spacing: -0.01em; }
.qa span { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: 2px; }
.qa i {
  position: absolute; top: 10px; right: 10px; font-style: normal;
  padding: 2px 7px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent);
  font-size: 0.62rem; font-weight: 800;
}
.qa.hot { border-color: var(--accent-line); background: linear-gradient(150deg, var(--accent-soft), var(--surface) 62%); }

/* ═══ STAT STRIP ═══ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-top: var(--space-4); }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: var(--space-3); border-radius: var(--r-md); text-align: center;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.stat b { display: block; font-family: var(--font-mono); font-size: 1.32rem; font-weight: 700; letter-spacing: -0.04em; white-space: nowrap; }
.stat b .of { font-size: 0.55em; color: var(--faint); letter-spacing: 0; }
.stat span { display: block; font-size: 0.66rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 3px; line-height: 1.3; }
.stat.g b { color: var(--ok); } .stat.a b { color: var(--accent); } .stat.r b { color: var(--bad); }

/* ═══ STREAK HEATMAP ═══ */
.heatwrap {
  margin-top: var(--space-3); padding: var(--space-4);
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft);
}
.heatdays, .heat {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  max-width: 340px; margin-inline: auto;
}
.heatdays span {
  text-align: center; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--faint); margin-bottom: 6px;
}
.heat i {
  aspect-ratio: 1; border-radius: 6px;
  background: var(--surface-3); border: 1px solid var(--line-soft);
  transition: 0.2s var(--ease);
}
.heat i.future { opacity: 0.28; }
.heat i:hover { transform: scale(1.14); }
.heatkey {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: var(--space-4); font-size: 0.64rem; color: var(--faint); font-weight: 600;
}
.heatkey i { width: 12px; height: 12px; border-radius: 4px; background: var(--surface-3); border: 1px solid var(--line-soft); }
.heatkey i[data-l="1"] { background: color-mix(in oklab, var(--accent) 28%, var(--surface-3)); }
.heatkey i[data-l="2"] { background: color-mix(in oklab, var(--accent) 55%, var(--surface-3)); }
.heatkey i[data-l="3"] { background: color-mix(in oklab, var(--accent) 80%, var(--surface-3)); }
.heatkey i[data-l="4"] { background: var(--accent); }
.heat i[data-l='1'] { background: color-mix(in oklab, var(--accent) 28%, var(--surface-3)); }
.heat i[data-l='2'] { background: color-mix(in oklab, var(--accent) 55%, var(--surface-3)); }
.heat i[data-l='3'] { background: color-mix(in oklab, var(--accent) 80%, var(--surface-3)); }
.heat i[data-l='4'] { background: var(--accent); box-shadow: 0 0 8px var(--accent-line); }
.heat i.today { border-color: var(--accent); border-width: 2px; box-shadow: 0 0 0 3px var(--accent-soft); }

/* ═══ TOPIC CARDS ═══ */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.tc {
  position: relative; padding: var(--space-4) var(--space-3) var(--space-3);
  border-radius: var(--r-md); background: var(--surface);
  border: 1px solid var(--line-soft); cursor: pointer; text-align: left;
  transition: 0.2s var(--ease); overflow: hidden;
}
.tc:hover { transform: translateY(-2px); border-color: var(--line); }
.tc.on { border-color: var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); }
.tc-chk {
  position: absolute; top: 9px; right: 9px; width: 19px; height: 19px;
  border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center;
  font-size: 11px; font-weight: 900; color: transparent; transition: 0.18s var(--ease);
}
.tc.on .tc-chk { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.tc strong { display: block; font-size: var(--text-sm); font-weight: 700; letter-spacing: -0.01em; }
.tc small { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: 1px; }
.tc-bar { height: 4px; border-radius: var(--r-pill); background: var(--surface-3); margin-top: 10px; overflow: hidden; }
.tc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.7s var(--ease); }

/* ═══ CHIPS ═══ */
.chips { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.chip {
  padding: 8px 15px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-soft);
  font-size: var(--text-xs); font-weight: 650; color: var(--text-2);
  transition: 0.18s var(--ease);
}
.chip:hover { border-color: var(--line); color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.row-lbl { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-top: var(--space-5); }

/* ═══ QUIZ ═══ */
.qhead { display: flex; align-items: flex-start; gap: var(--space-3); }
.qmeta { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; flex: 1; min-width: 0; }
.qacts { display: flex; align-items: center; gap: var(--space-2); flex: none; }
@media (max-width: 560px) {
  .qacts .btn.sm { padding: 8px 10px; }
  .qacts .lbl { display: none; }
}
.pill {
  padding: 4px 11px; border-radius: var(--r-pill); font-size: var(--text-xs); font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--text-2);
}
.pill.d-easy { color: var(--ok); border-color: var(--ok-soft); background: var(--ok-soft); }
.pill.d-medium { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 26%, transparent); background: color-mix(in oklab, var(--warn) 12%, transparent); }
.pill.d-hard { color: var(--bad); border-color: var(--bad-soft); background: var(--bad-soft); }
.pill.d-expert { color: var(--info); border-color: color-mix(in oklab, var(--info) 28%, transparent); background: color-mix(in oklab, var(--info) 12%, transparent); }
.pill.count { font-family: var(--font-mono); }


.timer { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; color: var(--muted); }
.timer.warn { color: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

.track { height: 5px; border-radius: var(--r-pill); background: var(--surface-3); margin-top: var(--space-3); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--warn)); transition: width 0.45s var(--ease); }
.dots { display: flex; gap: 4px; flex-wrap: wrap; margin-top: var(--space-3); }
.dots i { width: 100%; max-width: 22px; min-width: 8px; height: 4px; flex: 1; border-radius: var(--r-pill); background: var(--surface-3); transition: 0.25s var(--ease); }
.dots i.c { background: var(--ok); } .dots i.w { background: var(--bad); }
.dots i.cur { background: var(--accent); box-shadow: 0 0 8px var(--accent-line); }

.qcard {
  margin-top: var(--space-4); padding: var(--space-6);
  border-radius: var(--r-xl); background: var(--surface);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-md);
  animation: qin 0.4s var(--ease) both;
}
@keyframes qin { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
@media (max-width: 520px) { .qcard { padding: var(--space-4); } }
.qtext {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.35;
}
.opts { display: grid; gap: var(--space-2); margin-top: var(--space-5); }
.opt {
  display: flex; align-items: flex-start; gap: var(--space-3); text-align: left; width: 100%;
  padding: var(--space-4); border-radius: var(--r-md);
  background: var(--surface-2); border: 1.5px solid var(--line-soft);
  font-size: var(--text-sm); line-height: 1.45; color: var(--text);
  transition: 0.16s var(--ease);
}
.opt:not(:disabled):hover { border-color: var(--accent-line); background: var(--surface-3); transform: translateX(3px); }
.opt .let {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--muted);
  transition: 0.16s var(--ease);
}
.opt:not(:disabled):hover .let { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.opt:disabled { cursor: default; opacity: 0.58; }
.opt.chi { border-color: var(--ok); background: var(--ok-soft); opacity: 1; }
.opt.chi .let { background: var(--ok); border-color: var(--ok); color: var(--on-accent); }
.opt.wrg { border-color: var(--bad); background: var(--bad-soft); opacity: 1; }
.opt.wrg .let { background: var(--bad); border-color: var(--bad); color: oklch(0.98 0 0); }
@keyframes shake { 20%,60% { transform: translateX(-5px);} 40%,80% { transform: translateX(5px);} }
.opt.wrg { animation: shake 0.34s var(--ease-in-out); }

.exp {
  margin-top: var(--space-4); padding: var(--space-4);
  border-radius: var(--r-md); border-left: 3px solid var(--ok);
  background: var(--ok-soft); animation: rise 0.32s var(--ease) both;
}
.exp.no { border-left-color: var(--bad); background: var(--bad-soft); }
.exp h4 { font-size: var(--text-sm); font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 7px; }
.exp p { font-size: var(--text-sm); color: var(--text-2); margin-top: 7px; line-height: 1.6; }
.exp small { display: inline-block; margin-top: var(--space-3); padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-soft); font-size: var(--text-xs); color: var(--muted); font-weight: 600; }
.xpop {
  display: inline-block; margin-left: auto; font-family: var(--font-mono);
  font-size: var(--text-xs); font-weight: 800; color: var(--accent);
  animation: pop 0.5s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(9px) scale(0.8); } }

.nrow { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.nrow .btn { flex: 1; padding: 14px; }
.kbd-hint { text-align: center; margin-top: var(--space-3); font-size: var(--text-xs); color: var(--faint); }
.kbd-hint kbd {
  font-family: var(--font-mono); font-size: 0.7rem; padding: 2px 6px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line-soft); box-shadow: 0 1px 0 var(--line);
}
@media (max-width: 700px) { .kbd-hint { display: none; } }

/* ═══ RESULTS ═══ */
.rcard {
  padding: var(--space-8) var(--space-6); border-radius: var(--r-xl); text-align: center;
  background: radial-gradient(600px 300px at 50% -20%, var(--accent-soft), transparent 66%), var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: rise 0.5s var(--ease) both;
}
.rpct { font-family: var(--font-mono); font-size: 4rem; font-weight: 700; letter-spacing: -0.06em; line-height: 1; }
.rpct.g { color: var(--ok); } .rpct.y { color: var(--warn); } .rpct.r { color: var(--bad); }
.rtitle { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.02em; margin-top: var(--space-2); }
.rsub { color: var(--muted); font-size: var(--text-sm); margin-top: 4px; }
.deltas { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; margin-top: var(--space-4); }
.delta {
  padding: 7px 14px; border-radius: var(--r-pill); font-size: var(--text-xs); font-weight: 750;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
  font-family: var(--font-mono);
}
.rstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-6); }
.wbox { margin-top: var(--space-6); padding: var(--space-4); border-radius: var(--r-md); background: var(--bad-soft); border: 1px solid var(--bad-soft); text-align: left; }
.wbox b { font-size: var(--text-sm); color: var(--bad); font-weight: 800; }
.wtags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.wtag { padding: 4px 11px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-soft); font-size: var(--text-xs); font-weight: 650; }
.bdt { text-align: left; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); margin: var(--space-6) 0 var(--space-3); }
.bdr { display: flex; align-items: center; gap: var(--space-3); margin-bottom: 9px; }
.bdc { flex: 0 0 40%; text-align: left; font-size: var(--text-xs); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bdw { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.bdb { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width 0.8s var(--ease); }
.bdb.y { background: var(--warn); } .bdb.p { background: var(--bad); }
.bds { flex: 0 0 42px; text-align: right; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; }
.rbtns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-6); }
.rbtns .btn { padding: 13px; }
.rbtns .wide { grid-column: 1 / -1; }

/* review list */
.rev { margin-top: var(--space-6); text-align: left; }
.revi { padding: var(--space-3) var(--space-4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-soft); margin-bottom: var(--space-2); }
.revi.ok { border-left: 3px solid var(--ok); }
.revi.no { border-left: 3px solid var(--bad); }
.revi .rq { font-size: var(--text-sm); font-weight: 650; line-height: 1.4; }
.revi .ra { font-size: var(--text-xs); color: var(--muted); margin-top: 5px; }
.revi .ra b { color: var(--ok); font-weight: 700; }

/* ═══ NOTES / LIBRARY ═══ */
.searchbar {
  display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4);
  padding: 12px var(--space-4); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.searchbar svg { width: 17px; height: 17px; color: var(--faint); flex: none; }
.searchbar input { flex: 1; background: none; border: 0; outline: none; font-size: var(--text-sm); }
.searchbar input::placeholder { color: var(--faint); }
.fscroll { display: flex; gap: 7px; overflow-x: auto; margin-top: var(--space-3); padding-bottom: 6px; scrollbar-width: none; }
.fscroll::-webkit-scrollbar { display: none; }
.fscroll .chip { flex: none; }

.nc {
  padding: var(--space-4); border-radius: var(--r-md); background: var(--surface);
  border: 1px solid var(--line-soft); margin-top: var(--space-2); cursor: pointer;
  transition: 0.18s var(--ease);
}
.nc:hover { border-color: var(--line); }
.nccat { display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); font-weight: 700; color: var(--muted); }
.nccat .tip { margin-left: auto; font-weight: 500; color: var(--faint); font-size: 0.68rem; }
.ncq { font-size: var(--text-sm); font-weight: 650; line-height: 1.45; margin-top: 7px; }
.nca { display: none; margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px dashed var(--line); font-size: var(--text-sm); color: var(--text-2); line-height: 1.6; }
.nc.ex .nca { display: block; animation: rise 0.28s var(--ease) both; }
.nca .ans { color: var(--ok); font-weight: 700; }
.nca .ref { display: inline-block; margin-top: var(--space-3); font-size: var(--text-xs); color: var(--faint); }

/* ═══ CHEAT ═══ */
.csec { margin-top: var(--space-5); padding: var(--space-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); }
.csec h3 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 800; letter-spacing: -0.01em; margin-bottom: var(--space-3); }
.csec table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.csec th { text-align: left; padding: 9px 10px; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.csec td { padding: 10px; border-bottom: 1px solid var(--line-soft); color: var(--text-2); vertical-align: top; }
.csec tr:last-child td { border-bottom: 0; }
.csec td:first-child { font-weight: 650; color: var(--text); }
.csec ul li { padding: 8px 0 8px 20px; position: relative; font-size: var(--text-sm); color: var(--text-2); border-bottom: 1px solid var(--line-soft); line-height: 1.55; }
.csec ul li:last-child { border-bottom: 0; }
.csec ul li::before { content: ''; position: absolute; left: 4px; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.csec strong { color: var(--text); }

/* ═══ PROGRESS ═══ */
.pr { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line-soft); }
.pr:last-child { border-bottom: 0; }
.pr-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 1.05rem; flex: none; }
.prn { font-size: var(--text-sm); font-weight: 650; line-height: 1.3; }
.prn small { display: block; font-size: var(--text-xs); color: var(--faint); font-weight: 550; margin-top: 1px; }

.prb { height: 5px; border-radius: var(--r-pill); background: var(--surface-3); margin-top: 7px; overflow: hidden; }
.prb i { display: block; height: 100%; border-radius: inherit; transition: width 0.8s var(--ease); }
.prs { flex: 0 0 46px; text-align: right; font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; }
.prs.g { color: var(--ok); } .prs.y { color: var(--warn); } .prs.r { color: var(--bad); } .prs.n { color: var(--faint); }

.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.ach { padding: var(--space-4) var(--space-2); border-radius: var(--r-md); text-align: center; background: var(--surface); border: 1px solid var(--line-soft); transition: 0.2s var(--ease); }
.ach.u { border-color: var(--accent-line); background: linear-gradient(165deg, var(--accent-soft), var(--surface) 72%); }
.ach.u:hover { transform: translateY(-3px) scale(1.02); }
.ach.lk { opacity: 0.42; filter: grayscale(1); }
.ach .ai { font-size: 1.5rem; }
.ach .an { font-size: var(--text-xs); font-weight: 750; margin-top: 6px; letter-spacing: -0.01em; }
.ach .ad { font-size: 0.66rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }

/* ═══ EMPTY / TOAST / MODAL ═══ */
.empty { padding: var(--space-16) var(--space-4); text-align: center; color: var(--muted); }
.empty .ei { font-size: 2.4rem; opacity: 0.5; }
.empty p { font-size: var(--text-sm); margin-top: var(--space-3); }
.empty small { display: block; font-size: var(--text-xs); color: var(--faint); margin-top: 6px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px); translate: -50% 0; z-index: 200;
  padding: 11px 20px; border-radius: var(--r-pill);
  background: var(--surface-3); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); font-size: var(--text-sm); font-weight: 650;
  opacity: 0; pointer-events: none; transition: 0.3s var(--ease);
}
.toast.show { opacity: 1; translate: -50% -10px; }
.toast.err { border-color: var(--bad); color: var(--bad); }
.toast.win { border-color: var(--accent-line); color: var(--accent); }

.scrim { position: fixed; inset: 0; z-index: 150; background: oklch(0 0 0 / 0.6); backdrop-filter: blur(4px); display: grid; place-items: center; padding: var(--space-4); animation: fade 0.25s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(100%, 440px); padding: var(--space-6); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: rise 0.32s var(--ease) both; text-align: center; }
.modal h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.02em; }
.modal p { font-size: var(--text-sm); color: var(--text-2); margin-top: var(--space-3); line-height: 1.6; }
.modal .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-6); }
.badge-big { font-size: 3.2rem; animation: pop 0.6s var(--ease) both; }

/* settings rows */
.srow { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line-soft); }
.srow:last-child { border-bottom: 0; }
.srow div { flex: 1; }
.srow b { display: block; font-size: var(--text-sm); font-weight: 650; }
.srow span { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══ BRAND MARK ═══ */
.brand .mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand b span { color: var(--accent); margin-left: 2px; }

/* ═══ AVATAR / ACCOUNT ═══ */
.avatar, span.avatar, button.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden; padding: 0;
  line-height: 1;
  background: var(--accent-soft); border: 1.5px solid var(--accent-line);
  color: var(--accent); font-weight: 800; font-size: 0.9rem;
  font-family: var(--font-display); transition: 0.18s var(--ease);
}
.avatar:hover { transform: translateY(-1px); box-shadow: 0 4px 14px -6px var(--accent-line); }
.avatar.guest { border-style: dashed; color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.avatar svg { width: 17px; height: 17px; }

/* ═══ AUTH SCREEN ═══ */
body.authing .nav, body.authing .hstat, body.authing .avatar { display: none; }
.auth {
  min-height: calc(100dvh - 130px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--space-8) 0 var(--space-12);
}
.auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.auth-brand .mark { width: 76px; height: 76px; color: var(--accent); filter: drop-shadow(0 8px 28px var(--accent-line)); }
.auth-brand h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em;
  font-size: 1.8rem; margin-top: var(--space-4);
}
.auth-brand h1 span { color: var(--accent); }
.auth-brand p { color: var(--muted); font-size: var(--text-sm); margin-top: var(--space-2); max-width: 34ch; }

.auth-card {
  width: min(100%, 400px); margin-top: var(--space-8);
  padding: var(--space-6); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px; border-radius: var(--r-md);
  background: oklch(0.99 0 0); color: oklch(0.25 0.01 265);
  border: 1px solid oklch(0.85 0.005 265);
  font-size: var(--text-sm); font-weight: 700; transition: 0.18s var(--ease);
}
.gbtn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.gbtn svg { width: 18px; height: 18px; flex: none; }
.auth-div {
  display: flex; align-items: center; gap: var(--space-3);
  margin: var(--space-5) 0; color: var(--faint);
  font-size: var(--text-xs); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
}
.auth-div::before, .auth-div::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.field { margin-bottom: var(--space-3); }
.field label { display: block; font-size: var(--text-xs); font-weight: 700; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.04em; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1.5px solid var(--line-soft);
  font-size: var(--text-base); color: var(--text); outline: none;
  transition: border-color 0.18s var(--ease);
}
.field input:focus { border-color: var(--accent); }
.field input::placeholder { color: var(--faint); }
.auth-err {
  display: none; margin-bottom: var(--space-3); padding: 10px 14px;
  border-radius: var(--r-md); background: var(--bad-soft); border: 1px solid var(--bad);
  color: var(--bad); font-size: var(--text-xs); font-weight: 650; line-height: 1.45;
}
.auth-err.show { display: block; animation: rise 0.25s var(--ease) both; }
.auth-submit { width: 100%; padding: 13px; font-size: var(--text-sm); }
.auth-switch { text-align: center; margin-top: var(--space-4); font-size: var(--text-xs); color: var(--muted); }
.auth-switch button { color: var(--accent); font-weight: 700; margin-left: 4px; }
.auth-guest { margin-top: var(--space-6); text-align: center; }
.auth-guest button { color: var(--muted); font-size: var(--text-xs); font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; }
.auth-note { margin-top: var(--space-5); text-align: center; font-size: 0.68rem; color: var(--faint); max-width: 320px; line-height: 1.5; }
.auth-note svg { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }
.btn.busy { pointer-events: none; opacity: 0.6; }

/* greeting */
.greet-sub { color: var(--text-2); font-weight: 650; }

/* account modal rows */
.acc-head { display: flex; align-items: center; gap: var(--space-4); text-align: left; }
.acc-head .avatar { width: 48px; height: 48px; font-size: 1.15rem; pointer-events: none; }
.acc-head > div b { display: block; font-family: var(--font-display); font-size: var(--text-base); font-weight: 800; }
.acc-head > div span { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: 1px; }
.acc-sync {
  display: flex; align-items: center; gap: 8px; margin-top: var(--space-5);
  padding: 10px 14px; border-radius: var(--r-md);
  background: var(--ok-soft); border: 1px solid color-mix(in oklab, var(--ok) 25%, transparent);
  font-size: var(--text-xs); font-weight: 650; color: var(--ok); text-align: left;
}
.acc-sync.off { background: var(--surface-2); border-color: var(--line-soft); color: var(--muted); }
.acc-sync .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* ═══════════ LANDING PAGE ═══════════ */
body.landing-on { padding-bottom: 0; }
body.landing-on .bar { display: none; }
.lp { position: relative; overflow: hidden; color: var(--text); }
.lp-wrap { width: min(100% - var(--space-8), 1080px); margin-inline: auto; }

/* ambient background */
.lp-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.lp-bg .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.lp-bg .o1 { width: 560px; height: 560px; top: -180px; right: -120px; background: oklch(0.65 0.16 70 / 0.32); animation: drift 16s ease-in-out infinite alternate; }
.lp-bg .o2 { width: 420px; height: 420px; top: 46%; left: -180px; background: oklch(0.55 0.12 255 / 0.2); animation: drift 20s ease-in-out infinite alternate-reverse; }
.lp-bg .o3 { width: 460px; height: 460px; bottom: -160px; right: 8%; background: oklch(0.6 0.15 45 / 0.2); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(46px, 34px, 0) scale(1.12); } }

/* nav */
.lp-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px) saturate(150%); background: color-mix(in oklab, var(--bg) 74%, transparent); border-bottom: 1px solid var(--line-soft); }
.lp-nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lp-logo { display: flex; align-items: center; gap: 10px; }
.lp-logo .mark { width: 30px; height: 30px; color: var(--accent); }
.lp-logo b { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em; font-size: 1.05rem; }
.lp-logo b span { color: var(--accent); }
.lp-logo.sm .mark { width: 24px; height: 24px; }
.lp-nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.lp-ghost { padding: 9px 16px; border-radius: var(--r-pill); font-size: var(--text-sm); font-weight: 650; color: var(--text-2); transition: 0.18s var(--ease); }
.lp-ghost:hover { color: var(--text); }

.lp-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-pill);
  background: linear-gradient(120deg, var(--accent), oklch(0.74 0.17 55));
  color: var(--on-accent); font-size: var(--text-sm); font-weight: 800;
  box-shadow: 0 12px 34px -10px var(--accent-line), inset 0 1px 0 oklch(1 0 0 / 0.25);
  transition: 0.2s var(--ease); position: relative; overflow: hidden;
}
.lp-cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, oklch(1 0 0 / 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); }
.lp-cta:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 20px 46px -12px var(--accent-line); }
.lp-cta:hover::after { transform: translateX(120%); }
.lp-cta em { font-style: normal; transition: transform 0.2s var(--ease); }
.lp-cta:hover em { transform: translateX(3px); }
.lp-cta.sm { padding: 10px 18px; font-size: var(--text-xs); }

/* hero */
.lp-hero { position: relative; z-index: 1; padding: clamp(3rem, 8vw, 6.5rem) 0 0; }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-12); align-items: center; }
@media (max-width: 900px) { .lp-hero-grid { grid-template-columns: 1fr; gap: var(--space-16); } }
.lp-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: var(--r-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: var(--text-xs); font-weight: 750;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.lp-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.05; letter-spacing: -0.035em;
  margin-top: var(--space-5);
}
.lp-hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.lp-hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.1em; background: var(--accent); opacity: 0.35; border-radius: 3px; }
.lp-hero-copy > p { color: var(--text-2); font-size: var(--text-base); line-height: 1.65; margin-top: var(--space-5); max-width: 50ch; }
.lp-hero-cta { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-8); flex-wrap: wrap; }
.lp-cta-note { font-size: var(--text-xs); color: var(--muted); }
.lp-proof { display: flex; align-items: center; gap: 10px; margin-top: var(--space-8); font-size: var(--text-xs); color: var(--muted); max-width: 46ch; line-height: 1.5; }
.lp-stars { color: var(--accent); letter-spacing: 2px; font-size: 0.85rem; flex: none; }

/* hero visual */
.lp-hero-visual { position: relative; perspective: 900px; transition: transform 0.25s var(--ease); transform-style: preserve-3d; }
.lp-ring-card {
  position: relative; margin-inline: auto; width: min(100%, 340px);
  padding: var(--space-6); border-radius: var(--r-xl);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.lp-ring { position: relative; width: 210px; height: 210px; margin-inline: auto; }
.lp-ring svg { width: 100%; height: 100%; }
#lpRingVal { transition: stroke-dashoffset 0.2s linear; filter: drop-shadow(0 0 10px var(--accent-line)); }
.lp-ring-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.lp-ring-mid b { font-family: var(--font-mono); font-size: 3.4rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.lp-ring-mid small { font-size: 0.62rem; font-weight: 750; letter-spacing: 0.16em; color: var(--muted); margin-top: 5px; }
.lp-ring-foot { display: flex; justify-content: space-between; margin-top: var(--space-4); font-size: var(--text-xs); font-weight: 650; color: var(--muted); }
.lp-ring-foot .ok { color: var(--ok); }
.lp-float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: var(--r-md);
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  animation: floaty 5.5s ease-in-out infinite;
}
.lp-float em { font-style: normal; font-size: 1.1rem; }
.lp-float b { display: block; font-size: var(--text-xs); font-weight: 750; }
.lp-float span { display: block; font-size: 0.66rem; color: var(--muted); }
.lp-float.f1 { top: -18px; left: -8px; animation-delay: 0s; }
.lp-float.f2 { bottom: 34px; right: -14px; animation-delay: 1.6s; }
.lp-float.f3 { bottom: -20px; left: 6px; animation-delay: 3.1s; }
@media (max-width: 900px) { .lp-float.f1 { left: 0; } .lp-float.f2 { right: 0; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* marquee */
.lp-marquee { margin-top: clamp(3rem, 7vw, 5rem); border-block: 1px solid var(--line-soft); padding: 14px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lp-track { display: flex; gap: 12px; width: max-content; animation: scroll 34s linear infinite; }
@keyframes scroll { to { transform: translateX(-50%); } }
.lp-chip { padding: 8px 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-soft); font-size: var(--text-xs); font-weight: 650; color: var(--text-2); white-space: nowrap; }

/* sections */
.lp-sect { position: relative; z-index: 1; padding: clamp(4rem, 9vw, 7rem) 0; }
.lp-sect-head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.lp-eyebrow { display: inline-block; font-size: var(--text-xs); font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3); }
.lp-sect-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; }

.lp-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.lp-feat {
  position: relative; padding: var(--space-6); border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-soft); transition: 0.25s var(--ease);
}
.lp-feat:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: var(--shadow-lg); }
.lp-feat-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 1.25rem; }
.lp-feat b { display: block; font-family: var(--font-display); font-size: var(--text-base); font-weight: 750; letter-spacing: -0.01em; margin-top: var(--space-4); }
.lp-feat p { color: var(--muted); font-size: var(--text-sm); line-height: 1.6; margin-top: var(--space-2); }

/* stats band */
.lp-band { position: relative; z-index: 1; border-block: 1px solid var(--line-soft); background: color-mix(in oklab, var(--surface) 55%, transparent); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.lp-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); text-align: center; }
@media (max-width: 720px) { .lp-band-grid { grid-template-columns: repeat(2, 1fr); } }
.lp-stat b { display: block; font-family: var(--font-mono); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.04em; color: var(--accent); }
.lp-stat span { display: block; font-size: var(--text-xs); font-weight: 650; color: var(--muted); margin-top: 6px; letter-spacing: 0.04em; }

/* steps */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-4); counter-reset: step; }
.lp-step { padding: var(--space-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); position: relative; }
.lp-step i {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-style: normal; font-family: var(--font-mono); font-weight: 700;
  background: var(--accent); color: var(--on-accent); font-size: 1rem;
  box-shadow: 0 6px 18px -6px var(--accent-line);
}
.lp-step b { display: block; font-family: var(--font-display); font-weight: 750; margin-top: var(--space-4); letter-spacing: -0.01em; }
.lp-step p { color: var(--muted); font-size: var(--text-sm); line-height: 1.6; margin-top: var(--space-2); }

/* reviews */
.lp-rev-sect { background: radial-gradient(700px 400px at 50% 0%, var(--accent-soft), transparent 70%); }
.lp-rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--space-4); }
.lp-rev {
  margin: 0; padding: var(--space-6); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: 0.25s var(--ease);
}
.lp-rev:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.lp-rev blockquote { margin: 0; font-size: var(--text-sm); line-height: 1.65; color: var(--text-2); flex: 1; }
.lp-rev figcaption { display: flex; align-items: center; gap: 12px; }
.lp-rev-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-weight: 800; font-family: var(--font-display); }
.lp-rev figcaption b { display: block; font-size: var(--text-sm); font-weight: 750; }
.lp-rev figcaption span { display: block; font-size: var(--text-xs); color: var(--muted); }

/* final */
.lp-final { position: relative; z-index: 1; padding: clamp(3rem, 7vw, 6rem) 0; }
.lp-final-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) var(--space-6);
  border-radius: var(--r-xl); border: 1px solid var(--accent-line);
  background:
    radial-gradient(600px 300px at 50% -30%, var(--accent-soft), transparent 70%),
    linear-gradient(170deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lg);
}
.lp-final-card .mark { width: 54px; height: 54px; color: var(--accent); }
.lp-final-card h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; margin-top: var(--space-4); }
.lp-final-card p { color: var(--text-2); font-size: var(--text-sm); max-width: 46ch; margin: var(--space-4) auto 0; line-height: 1.65; }
.lp-final-card .lp-cta { margin-top: var(--space-8); }

/* footer */
.lp-foot { border-top: 1px solid var(--line-soft); padding: var(--space-10) 0 calc(var(--space-10) + env(safe-area-inset-bottom, 0px)); position: relative; z-index: 1; }
.lp-foot p { color: var(--faint); font-size: var(--text-xs); line-height: 1.6; max-width: 60ch; margin-top: var(--space-4); }
.lp-foot small { display: block; color: var(--faint); font-size: 0.68rem; margin-top: var(--space-4); }

/* reveals */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.r1 { transition-delay: 60ms; } .reveal.r2 { transition-delay: 140ms; }
.reveal.r3 { transition-delay: 220ms; } .reveal.r4 { transition-delay: 300ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .lp-track, .lp-float, .lp-bg .orb { animation: none !important; }
}

/* ═══ TRUE CALENDAR ═══ */
.cal { margin-top: var(--space-3); padding: var(--space-4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); }
.cal-head { display: flex; align-items: center; gap: var(--space-3); }
.cal-title { flex: 1; text-align: center; }
.cal-title b { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--text-base); letter-spacing: -0.01em; }
.cal-title span { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: 1px; }
.cal-head .icobtn:disabled { opacity: 0.3; pointer-events: none; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: var(--space-4); }
.cal-dow span { text-align: center; font-size: 0.62rem; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 7px; }
.cal-c {
  position: relative; aspect-ratio: 1; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: 0.18s var(--ease);
}
.cal-c b { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--text-2); }
.cal-c i { font-style: normal; font-size: 0.55rem; font-weight: 700; color: var(--muted); }
.cal-c.out { background: transparent; border-color: transparent; }
.cal-c.future { opacity: 0.38; }
.cal-c.l1 { background: color-mix(in oklab, var(--accent) 20%, var(--surface-2)); }
.cal-c.l2 { background: color-mix(in oklab, var(--accent) 42%, var(--surface-2)); }
.cal-c.l3 { background: color-mix(in oklab, var(--accent) 68%, var(--surface-2)); }
.cal-c.l4 { background: var(--accent); }
.cal-c.l3 b, .cal-c.l4 b, .cal-c.l3 i, .cal-c.l4 i { color: var(--on-accent); }
.cal-c.today { border: 2px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cal-c:not(.out):hover { transform: scale(1.07); z-index: 1; }

/* ═══ ACCOUNT DROPDOWN MENU ═══ */
.menu {
  position: fixed; top: 64px; right: max(12px, calc((100vw - 940px) / 2)); z-index: 220;
  width: min(92vw, 300px); padding: var(--space-2);
  border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-8px) scale(0.98);
  transition: 0.22s var(--ease); transform-origin: top right;
}
.menu.open { opacity: 1; transform: none; }
.menu-head { display: flex; align-items: center; gap: 12px; padding: var(--space-3); }
.menu-head .avatar { pointer-events: none; }
.menu-head > div b { display: block; font-size: var(--text-sm); font-weight: 750; }
.menu-head > div span { display: block; font-size: var(--text-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu-sync { display: flex; align-items: center; gap: 8px; margin: 0 var(--space-3) var(--space-2); font-size: 0.66rem; font-weight: 650; color: var(--ok); }
.menu-sync.off { color: var(--muted); }
.menu-sync i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.menu-sep { height: 1px; background: var(--line-soft); margin: var(--space-2) var(--space-2); }
.menu-i {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px var(--space-3); border-radius: var(--r-md);
  font-size: var(--text-sm); font-weight: 600; color: var(--text-2);
  transition: 0.15s var(--ease); text-align: left;
}
.menu-i:hover { background: var(--surface-2); color: var(--text); }
.menu-i em { font-style: normal; width: 20px; text-align: center; flex: none; }
.menu-i.danger { color: var(--bad); }
.menu-i.danger:hover { background: var(--bad-soft); }
.menu-i.pri { color: var(--accent); font-weight: 750; }
.soon-badge {
  margin-left: auto; padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.05em;
}

/* ═══ COMPANY PAGES ═══ */
.page { max-width: 720px; }
.page-body { margin-top: var(--space-6); }
.page-body .lead { font-size: var(--text-base); line-height: 1.7; color: var(--text); font-weight: 550; }
.page-body p { font-size: var(--text-sm); line-height: 1.75; color: var(--text-2); margin-top: var(--space-4); }
.page-body h3 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 750; letter-spacing: -0.01em; margin-top: var(--space-8); }
.page-body ul { margin-top: var(--space-3); }
.page-body ul li { position: relative; padding: 7px 0 7px 22px; font-size: var(--text-sm); line-height: 1.65; color: var(--text-2); }
.page-body ul li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.page-body a { color: var(--accent); font-weight: 650; }
.page-body .fine { font-size: var(--text-xs); color: var(--faint); }
.page-foot { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-16); padding-top: var(--space-5); border-top: 1px solid var(--line-soft); font-size: var(--text-xs); color: var(--faint); }
.linklike { color: var(--muted); font-size: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.linklike:hover { color: var(--text); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-3); margin-top: var(--space-6); }
.contact-card { display: block; padding: var(--space-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; color: inherit; transition: 0.2s var(--ease); }
a.contact-card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.cc-ico { font-size: 1.4rem; }
.contact-card b { display: block; font-family: var(--font-display); font-weight: 750; margin-top: var(--space-3); }
.contact-card > span:not(.cc-ico) { display: block; font-size: var(--text-sm); color: var(--accent); font-weight: 650; margin-top: 3px; }
.contact-card small { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-2); line-height: 1.5; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.plan { position: relative; padding: var(--space-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--accent-line); }
.plan.soon { border-color: var(--line-soft); opacity: 0.85; }
.plan > b { font-family: var(--font-display); font-size: var(--text-base); font-weight: 800; }
.plan-price { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.04em; margin-top: var(--space-2); }
.plan-price span { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.plan ul { margin-top: var(--space-4); }
.plan ul li { padding: 6px 0; font-size: var(--text-sm); color: var(--text-2); }
.plan-badge { display: inline-block; margin-top: var(--space-4); padding: 5px 13px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line-soft); font-size: var(--text-xs); font-weight: 750; color: var(--muted); }
.plan-badge.now { background: var(--ok-soft); border-color: color-mix(in oklab, var(--ok) 30%, transparent); color: var(--ok); }
.lp-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); }
@media (max-width: 760px) { .lp-foot-grid { grid-template-columns: 1fr 1fr; } .lp-foot-grid > div:first-child { grid-column: 1/-1; } }
.lp-foot-col b { display: block; font-size: var(--text-xs); font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-bottom: var(--space-3); }
.lp-foot-col button { display: block; padding: 5px 0; font-size: var(--text-sm); color: var(--muted); transition: color 0.15s var(--ease); text-align: left; }
.lp-foot-col button:hover { color: var(--accent); }
.lp-rev-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-line); box-shadow: 0 4px 14px -6px oklch(0 0 0 / 0.5); flex: none; }
.lp-verified { width: 14px; height: 14px; color: var(--info); vertical-align: -2px; margin-left: 3px; }

/* ═══════════ ICON SYSTEM ═══════════ */
/* inline icon: optically aligned with adjacent text */
.ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.05em; height: 1.05em; flex: none;
  vertical-align: -0.16em; margin-right: 0.42em;
}
.ic > svg { width: 100%; height: 100%; display: block; }
.ic:last-child { margin-right: 0; }
.ic.ok { color: var(--ok); } .ic.no { color: var(--bad); }

/* icons inside flex rows shouldn't carry trailing margin */
.hstat .ic, .pill .ic, .rank .ic { margin-right: 0.34em; }
.chip .ic { margin-right: 0.38em; }
.menu-i .ic { width: 18px; height: 18px; margin-right: 0; color: var(--muted); }
.menu-i:hover .ic { color: var(--accent); }
.menu-i.danger .ic { color: var(--bad); }
.menu-i.pri .ic { color: var(--accent); }
.btn .ic { margin-right: 0.4em; }
.nccat .ic { width: 14px; height: 14px; }
.bdc .ic { width: 14px; height: 14px; color: var(--muted); }
.exp h4 .ic { width: 17px; height: 17px; }
.exp.no h4 .ic { color: var(--bad); } .exp h4 .ic { color: var(--ok); }
.exp small .ic { width: 13px; height: 13px; color: var(--faint); }
.nca .ref .ic { width: 13px; height: 13px; }
.ans .ic { width: 14px; height: 14px; }
.revi .rq .ic { width: 15px; height: 15px; }
.csec h3 .ic { width: 19px; height: 19px; color: var(--accent); }
.wbox b .ic { width: 15px; height: 15px; }

/* ═══ badge containers: perfectly centred, no baseline drift ═══ */
.qa-ico, .tc-ico, .pr-ico, .cc-ico, .ai, .badge-big, .rbadge, .tc-chk {
  display: grid; place-items: center; line-height: 0;
}
.qa-ico > svg, .tc-ico > svg { width: 19px; height: 19px; color: var(--text-2); }
.qa:hover .qa-ico > svg, .qa.hot .qa-ico > svg { color: var(--accent); }
.tc.on .tc-ico > svg { color: var(--accent); }
.pr-ico > svg { width: 19px; height: 19px; color: var(--text-2); }
.tc-chk > svg { width: 12px; height: 12px; }
.ai > svg { width: 24px; height: 24px; color: var(--muted); }
.ach.u .ai > svg { color: var(--accent); }
.badge-big { width: 62px; height: 62px; margin: 0 auto var(--space-2); border-radius: 18px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.badge-big > svg { width: 30px; height: 30px; color: var(--accent); }
.rbadge { width: 74px; height: 74px; margin: 0 auto var(--space-4); border-radius: 22px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.rbadge > svg { width: 36px; height: 36px; color: var(--accent); }
.empty .ei { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto; opacity: 1; }
.empty .ei > svg { width: 30px; height: 30px; color: var(--faint); }
.cc-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.cc-ico > svg { width: 20px; height: 20px; color: var(--accent); }
.lp-feat-ico > svg, .lp-final-card > svg.mark { color: var(--accent); }
.delta .ic { width: 13px; height: 13px; }
.rank .ic { width: 14px; height: 14px; }
.hstat .ic { width: 13px; height: 13px; }
.tc { padding-top: var(--space-4); }
.tc-tag { position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: -0.03em; color: var(--muted); }
.tc-tag i { font-style: normal; font-size: 0.68em; opacity: 0.65; margin-left: 1px; }
.tc-tag.g { color: var(--ok); } .tc-tag.y { color: var(--warn); } .tc-tag.r { color: var(--bad); }
.tc-tag.new { font-family: var(--font-body); font-size: 0.62rem; font-weight: 650; color: var(--faint); }
.tc small { min-height: 1.1em; }
.prn small { white-space: normal; }
.bds { flex: 0 0 52px; }
.lp-fi { display: grid; place-items: center; width: 26px; height: 26px; flex: none; }
.lp-fi > svg { width: 19px; height: 19px; color: var(--accent); }
.lp-chip .ic { width: 14px; height: 14px; color: var(--accent); }
.lp-feat-ico > svg { width: 21px; height: 21px; }
.lp-ring-foot .ic { width: 13px; height: 13px; }

/* ═══════════════════════════════════════════════════════════
   START TRAINING — the hero action
   ═══════════════════════════════════════════════════════════ */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: var(--space-4);
  width: 100%; margin-top: var(--space-5);
  padding: 16px 18px; border-radius: 20px;
  color: var(--on-accent); text-align: left;
  background:
    linear-gradient(180deg, oklch(1 0 0 / 0.22), oklch(1 0 0 / 0) 42%),
    linear-gradient(118deg, oklch(0.84 0.15 82) 0%, var(--accent) 42%, oklch(0.73 0.18 48) 100%);
  background-size: auto, 200% 200%;
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.45) inset,
    0 -1px 0 oklch(0.3 0.09 50 / 0.35) inset,
    0 12px 30px -10px oklch(0.72 0.17 60 / 0.75),
    0 2px 8px -2px oklch(0.2 0.05 50 / 0.4);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), filter 0.24s var(--ease);
  animation: ctaGlow 3.6s ease-in-out infinite, ctaHue 9s ease-in-out infinite;
}
/* soft halo behind the button */
.cta::before {
  content: ''; position: absolute; inset: -4px; z-index: -1; border-radius: inherit;
  background: linear-gradient(118deg, oklch(0.84 0.15 82), oklch(0.75 0.18 52));
  filter: blur(16px); opacity: 0.45;
  animation: ctaHalo 3.6s ease-in-out infinite;
}
/* sheen sweep */
.cta::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(104deg, transparent 34%, oklch(1 0 0 / 0.5) 50%, transparent 66%);
  transform: translateX(-135%) skewX(-10deg);
  animation: ctaSheen 4.2s var(--ease-in-out) infinite 1.4s;
}
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 1px 0 oklch(1 0 0 / 0.45) inset, 0 -1px 0 oklch(0.3 0.09 50 / 0.35) inset, 0 12px 30px -10px oklch(0.72 0.17 60 / 0.75), 0 2px 8px -2px oklch(0.2 0.05 50 / 0.4); }
  50%      { box-shadow: 0 1px 0 oklch(1 0 0 / 0.5) inset,  0 -1px 0 oklch(0.3 0.09 50 / 0.35) inset, 0 18px 44px -10px oklch(0.75 0.18 62 / 0.9), 0 2px 8px -2px oklch(0.2 0.05 50 / 0.4); }
}
@keyframes ctaHalo { 0%, 100% { opacity: 0.32; } 50% { opacity: 0.62; } }
@keyframes ctaSheen { 0% { transform: translateX(-135%) skewX(-10deg); } 46%, 100% { transform: translateX(135%) skewX(-10deg); } }
@keyframes ctaHue { 0%, 100% { background-position: 0 0, 0% 50%; } 50% { background-position: 0 0, 100% 50%; } }

.cta:hover { transform: translateY(-3px); filter: saturate(1.06); }
.cta:active { transform: translateY(-1px) scale(0.992); }

/* icon well — recessed glass disc, mathematically centred */
.cta-well {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 12%, oklch(1 0 0 / 0.34), oklch(0.35 0.1 55 / 0.28));
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.5) inset,
    0 -2px 6px oklch(0.28 0.08 50 / 0.4) inset,
    0 2px 6px -2px oklch(0.25 0.06 50 / 0.45);
  transition: transform 0.24s var(--ease);
}
.cta:hover .cta-well { transform: scale(1.06); }
.cta-glyph { display: grid; place-items: center; width: 20px; height: 20px; line-height: 0; }
.cta-glyph > svg { width: 100%; height: 100%; display: block; transform: translateX(1.5px); }

/* text block */
.cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cta-title {
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1;
  text-shadow: 0 1px 0 oklch(1 0 0 / 0.22);
}
.cta-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.cta-tag {
  padding: 3px 9px; border-radius: var(--r-pill);
  background: oklch(0.22 0.05 55 / 0.16);
  border: 1px solid oklch(0.25 0.05 55 / 0.14);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.01em;
  white-space: nowrap;
}
.cta-tag.hot { background: oklch(1 0 0 / 0.32); border-color: oklch(1 0 0 / 0.4); }

/* go affordance */
.cta-go {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; line-height: 0;
  background: oklch(0.22 0.05 55 / 0.14);
  transition: transform 0.24s var(--ease), background 0.24s var(--ease);
}
.cta-go > svg { width: 17px; height: 17px; display: block; }
.cta:hover .cta-go { transform: translateX(4px); background: oklch(0.22 0.05 55 / 0.22); }

@media (max-width: 380px) { .cta { padding: 14px; gap: var(--space-3); } .cta-well { width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .cta, .cta::before, .cta::after { animation: none !important; } }

/* ═══════════════════════════════════════════════════════════
   MOCK EXAM — briefing, exam mode, result stamp
   ═══════════════════════════════════════════════════════════ */
.modal.exam-modal { max-width: 460px; padding: 0; overflow: hidden; text-align: left; }
.exam-brief {
  padding: var(--space-8) var(--space-6) var(--space-6);
  background:
    radial-gradient(520px 240px at 50% -18%, var(--accent-soft), transparent 68%),
    linear-gradient(175deg, var(--surface-2), var(--surface));
  text-align: center;
}
.exam-seal { position: relative; width: 68px; height: 68px; margin: 0 auto; display: grid; place-items: center; }
.exam-seal > svg { width: 32px; height: 32px; color: var(--accent); position: relative; z-index: 1; }
.exam-seal-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--accent-line); background: var(--accent-soft);
  animation: sealPulse 2.6s ease-in-out infinite;
}
@keyframes sealPulse { 0%,100% { box-shadow: 0 0 0 0 var(--accent-soft); } 50% { box-shadow: 0 0 0 10px transparent; } }
.exam-kicker {
  display: block; margin-top: var(--space-4);
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.exam-brief h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.exam-lede { font-size: var(--text-sm); color: var(--text-2); line-height: 1.6; margin-top: var(--space-3); max-width: 34ch; margin-inline: auto; }

.exam-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-6); }
.exam-spec { padding: var(--space-4) var(--space-2); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-soft); }
.exam-spec b { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.04em; color: var(--accent); }
.exam-spec span { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }

.exam-rules { margin-top: var(--space-5); text-align: left; }
.exam-rules li { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; font-size: var(--text-xs); color: var(--text-2); line-height: 1.5; }
.exam-rules li > svg { width: 15px; height: 15px; flex: none; color: var(--ok); margin-top: 1px; }
.exam-best { margin-top: var(--space-4); padding: 9px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-soft); font-size: var(--text-xs); color: var(--muted); }
.exam-best b { color: var(--accent); }

.exam-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-3); margin-top: var(--space-6); }
.exam-cancel { width: 100%; }
.exam-start {
  position: relative; overflow: hidden; width: 100%;
  padding: 13px 14px; border-radius: var(--r-md);
  background: linear-gradient(118deg, oklch(0.84 0.15 82), var(--accent) 45%, oklch(0.73 0.18 48));
  color: var(--on-accent);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.4) inset, 0 10px 26px -10px oklch(0.72 0.17 60 / 0.85);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.exam-start::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(104deg, transparent 34%, oklch(1 0 0 / 0.45) 50%, transparent 66%);
  transform: translateX(-135%) skewX(-10deg);
  animation: ctaSheen 3.6s var(--ease-in-out) infinite 0.8s;
}
.exam-start:hover { transform: translateY(-2px); box-shadow: 0 1px 0 oklch(1 0 0 / 0.4) inset, 0 16px 34px -10px oklch(0.75 0.18 62 / 0.95); }
.exam-start-label { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.exam-start-sub { display: block; font-size: 0.64rem; font-weight: 650; opacity: 0.78; margin-top: 1px; }

/* ── exam mode chrome ── */
body.exam-mode .nav { opacity: 0.35; pointer-events: none; }
.exam-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.exam-live { display: flex; align-items: center; gap: 7px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; color: var(--bad); }
.exam-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); animation: pulse 1.6s infinite; }
.exam-count { display: block; font-size: var(--text-sm); font-weight: 700; margin-top: 5px; }
.exam-count em { font-style: normal; color: var(--muted); font-weight: 500; }
.exam-clock {
  font-family: var(--font-mono); font-size: 2rem; font-weight: 700;
  letter-spacing: -0.04em; line-height: 1; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.exam-clock.warn { color: var(--warn); }
.exam-clock.danger { color: var(--bad); animation: pulse 1s infinite; }
.exam-progress { height: 6px; border-radius: var(--r-pill); background: var(--surface-3); margin-top: var(--space-3); overflow: hidden; }
.exam-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--warn)); transition: width 0.4s var(--ease); }
.exam-sub { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-3); font-size: var(--text-xs); color: var(--muted); }
.exam-sub-btns { display: flex; gap: var(--space-2); }

/* ── result stamp ── */
.exam-stamp {
  display: inline-block; margin: 0 auto var(--space-4);
  padding: 10px 26px; border-radius: 10px;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  letter-spacing: 0.12em; transform: rotate(-6deg);
  animation: stampIn 0.5s var(--ease) both;
}
.exam-stamp.pass { color: var(--ok); border: 3px solid var(--ok); background: var(--ok-soft); }
.exam-stamp.fail { color: var(--bad); border: 3px solid var(--bad); background: var(--bad-soft); }
@keyframes stampIn { from { opacity: 0; transform: rotate(-6deg) scale(1.6); } }

/* modal buttons must always fill their column */
.modal .row > .btn, .modal .row > button { width: 100%; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar.has-img { background: var(--surface-2); }
.acc-head .avatar, .menu-head .avatar { padding: 0; }
/* Google button: keep the official mark crisp and correctly proportioned */
.gbtn svg { width: 19px; height: 19px; shape-rendering: geometricPrecision; }

/* ═══════════════════════════════════════════════════════════
   CENTERING GUARD
   Generic descendant rules like `.qa span { display:block }` outrank
   single-class component rules and silently break icon centering.
   These element+class selectors always win. Do not remove.
   ═══════════════════════════════════════════════════════════ */
span.qa-ico, span.tc-ico, span.cta-well, span.cta-glyph, span.cta-go,
span.avatar, div.pr-ico, span.cc-ico, div.ai, div.badge-big, div.rbadge,
div.tc-chk, i.lp-fi, div.exam-seal, span.lp-rev-av {
  display: grid !important;
  place-items: center !important;
  line-height: 0;
}
span.avatar { line-height: 1; }
span.qa-ico > svg, span.tc-ico > svg { display: block; }

/* ═══ EMPTY-STATE CALL TO ACTION ═══ */
.empty { display: flex; flex-direction: column; align-items: center; }
.empty p { font-weight: 650; color: var(--text-2); }
.empty-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: var(--space-5); padding: 13px 22px;
  border-radius: var(--r-pill); white-space: nowrap;
  background: linear-gradient(118deg, oklch(0.84 0.15 82), var(--accent) 48%, oklch(0.74 0.18 50));
  color: var(--on-accent); font-size: var(--text-sm); font-weight: 750;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.38) inset, 0 10px 26px -12px oklch(0.72 0.17 60 / 0.9);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.empty-cta:hover { transform: translateY(-2px); box-shadow: 0 1px 0 oklch(1 0 0 / 0.38) inset, 0 16px 34px -12px oklch(0.75 0.18 62); }
.empty-cta > .ic { width: 17px; height: 17px; margin: 0; }

/* ═══════════════════════════════════════════════════════════
   LANDING — MOTION LAYER
   ═══════════════════════════════════════════════════════════ */

/* scroll progress */
.lp-prog {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120;
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
  background: linear-gradient(90deg, oklch(0.84 0.15 82), var(--accent) 55%, oklch(0.72 0.19 45));
  box-shadow: 0 0 14px oklch(0.78 0.16 68 / 0.75);
}

/* parallax uses `translate` so it composes with keyframe transforms */
[data-par] { translate: 0 var(--py, 0px); }
.lp-hero-visual[data-par] { will-change: translate; }

/* headline word rise */
.lp-hero h1.split .w {
  display: inline-block; opacity: 0;
  transform: translateY(0.44em) rotate(1.4deg); filter: blur(8px);
  transition: opacity 0.8s var(--ease) var(--wd), transform 0.8s var(--ease) var(--wd), filter 0.8s var(--ease) var(--wd);
}
.lp-hero h1.split.lit .w { opacity: 1; transform: none; filter: none; }
.lp-hero h1.split em.w::after { transform-origin: 0 50%; animation: hlWipe 0.7s var(--ease) both; animation-delay: calc(var(--wd) + 620ms); }
@keyframes hlWipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* reveals gain depth + defocus */
.reveal {
  transform: translateY(26px) scale(0.985); filter: blur(6px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), filter 0.75s var(--ease);
}
.reveal.in { transform: none; filter: blur(0); }

/* readiness ring */
#lpRingVal { filter: drop-shadow(0 0 11px oklch(0.78 0.16 66 / 0.6)); }
#lpRingDot { fill: #fff; opacity: 0; filter: drop-shadow(0 0 10px oklch(0.84 0.17 70)); transition: opacity 0.3s; }
.lp-ring::before {
  content: ''; position: absolute; inset: 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, oklch(0.78 0.16 68 / 0.16), transparent 68%);
  animation: ringBreathe 4.2s var(--ease) infinite;
}
@keyframes ringBreathe { 0%, 100% { opacity: 0.5; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.04); } }
.lp-ring-card.done .lp-ring-mid b { animation: numLand 0.6s var(--ease); }
@keyframes numLand { 35% { transform: scale(1.06); } }
.lp-ring-card.done::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  animation: cardFlash 0.9s var(--ease) forwards;
  background: radial-gradient(circle at 50% 38%, oklch(0.8 0.16 70 / 0.22), transparent 60%);
}
@keyframes cardFlash { to { opacity: 0; } }

/* cursor spotlight */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  opacity: 0; transition: opacity 0.4s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), oklch(0.82 0.15 70 / 0.14), transparent 62%);
}
.spot:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .lp-prog, .lp-ring::before, .spot::after { display: none; }
  .reveal { transform: none; filter: none; opacity: 1; }
  [data-par] { translate: none; }
}

/* floats sit clear of the ring card's footer row */
.lp-float.f1 { top: -22px; left: -34px; }
.lp-float.f2 { bottom: 84px; right: -40px; }
.lp-float.f3 { bottom: -30px; left: -22px; }
@media (max-width: 1100px) {
  .lp-float.f1 { left: -10px; }
  .lp-float.f2 { right: -12px; }
  .lp-float.f3 { left: -4px; bottom: -26px; }
}
@media (max-width: 900px) {
  .lp-float.f1 { left: 0; top: -16px; }
  .lp-float.f2 { right: 0; bottom: 74px; }
  .lp-float.f3 { left: 0; bottom: -22px; }
}
/* f3 clears the footer entirely by dropping below the card */
.lp-float.f3 { bottom: -52px; left: -30px; }
@media (max-width: 1100px) { .lp-float.f3 { bottom: -48px; left: -8px; } }
@media (max-width: 900px)  { .lp-float.f3 { bottom: -44px; left: 0; } }
.lp-hero-visual { padding-bottom: 44px; }

/* ═══════════════════════════════════════════════════════════
   PREMIUM — locked modules & upgrade sheet
   ═══════════════════════════════════════════════════════════ */
.tc.locked { opacity: 0.62; position: relative; }
.tc.locked .tc-ico { filter: grayscale(1); }
.tc.locked small { color: var(--accent); font-weight: 700; letter-spacing: 0.02em; }
.tc-lock {
  position: absolute; top: 9px; right: 9px; width: 22px; height: 22px;
  display: grid !important; place-items: center; border-radius: 7px;
  background: oklch(0.72 0.15 70 / 0.16); border: 1px solid oklch(0.72 0.15 70 / 0.34);
  color: var(--accent);
}
.tc-lock > svg { width: 12px; height: 12px; }
.tc.locked:hover { opacity: 0.82; }

.menu-i.gold { color: var(--accent); font-weight: 700; }
.menu-i.gold > .ic { color: var(--accent); }

.scrim .modal.wide { max-width: 940px; width: min(94vw, 940px); }

.up { position: relative; padding: 4px 2px 2px; }
.up-x {
  position: absolute; top: -4px; right: -2px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--text-2);
}
.up-x > svg { width: 15px; height: 15px; }
.up-x:hover { color: var(--text); background: var(--surface-3); }
.up-head { text-align: center; max-width: 560px; margin: 0 auto var(--space-6); }
.up-seal {
  width: 54px; height: 54px; margin: 0 auto var(--space-3);
  display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(150deg, oklch(0.78 0.15 75 / 0.22), oklch(0.68 0.16 55 / 0.12));
  border: 1px solid oklch(0.75 0.15 70 / 0.4); color: var(--accent);
  box-shadow: 0 10px 28px -14px oklch(0.75 0.17 65 / 0.9);
}
.up-seal > svg { width: 26px; height: 26px; }
.up-head h2 { font-size: var(--text-2xl); margin: 0 0 8px; letter-spacing: -0.02em; }
.up-head p { color: var(--text-2); font-size: var(--text-sm); margin: 0; line-height: 1.62; }

.pl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.pl {
  position: relative; text-align: left; display: flex; flex-direction: column;
  padding: 20px 18px 18px; border-radius: 18px;
  background: var(--surface-1); border: 1px solid var(--line-soft);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pl:hover { transform: translateY(-3px); border-color: oklch(0.72 0.14 70 / 0.5); box-shadow: var(--shadow-lg); }
.pl.best { border-color: oklch(0.75 0.16 70 / 0.62); background: linear-gradient(180deg, oklch(0.72 0.14 68 / 0.09), var(--surface-1) 42%); }
.pl.busy { opacity: 0.6; pointer-events: none; }
.pl-tag {
  position: absolute; top: -10px; left: 18px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-accent);
  background: linear-gradient(118deg, oklch(0.84 0.15 82), var(--accent)); padding: 4px 10px; border-radius: 999px;
}
.pl-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pl-top b { font-size: var(--text-base); }
.pl-save { font-size: 11px; font-weight: 750; color: var(--good); background: oklch(0.72 0.15 150 / 0.14); padding: 3px 8px; border-radius: 999px; }
.pl-price { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.pl-price span { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.pl-note { font-size: var(--text-xs); color: var(--muted); margin-bottom: 14px; }
.pl-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; flex: 1; }
.pl-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.pl-list .ic { width: 14px; height: 14px; color: var(--accent); flex: none; margin-top: 2px; }
.pl-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 750;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line-soft);
}
.pl-go .ic { width: 14px; height: 14px; }
.pl.best .pl-go {
  background: linear-gradient(118deg, oklch(0.84 0.15 82), var(--accent) 52%, oklch(0.72 0.19 45));
  color: var(--on-accent); border-color: transparent;
  box-shadow: 0 10px 26px -14px oklch(0.75 0.17 62);
}
.pl:hover .pl-go { background: var(--surface-4); }
.pl.best:hover .pl-go { filter: brightness(1.06); }

.up-code { margin-top: var(--space-5); text-align: center; }
.up-code label { display: block; font-size: var(--text-xs); color: var(--muted); margin-bottom: 8px; }
.up-code-row { display: flex; gap: 8px; justify-content: center; }
.up-code-row input {
  width: min(240px, 60%); padding: 11px 14px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--text);
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
}
.up-code-row input:focus { outline: none; border-color: var(--accent); }
.up-code small { display: block; margin-top: 9px; font-size: var(--text-xs); min-height: 16px; }
.up-code small.ok { color: var(--good); }
.up-code small.bad { color: var(--bad); }
.up-fine { text-align: center; font-size: var(--text-xs); color: var(--muted); margin: var(--space-5) 0 0; }
.linky { color: var(--accent); text-decoration: underline; font-size: inherit; }

@media (max-width: 820px) {
  .pl-grid { grid-template-columns: 1fr; }
  .pl.best { order: -1; }
  .up-head h2 { font-size: var(--text-xl); }
}

/* lifetime badge + narrow redeem modal */
.menu-lifetime {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 2px 0; border-radius: 10px;
  font-size: var(--text-sm); font-weight: 700; color: var(--accent);
  background: oklch(0.72 0.15 70 / 0.1); border: 1px solid oklch(0.72 0.15 70 / 0.26);
}
.menu-lifetime > .ic { width: 15px; height: 15px; color: var(--accent); }
.scrim .modal.narrow { max-width: 460px; }
.rdm .up-code-row input { width: 100%; }
.rdm .up-code-row { flex-direction: column; }
.rdm .up-code-row .btn { width: 100%; }
.plan-grid.three { grid-template-columns: repeat(3, 1fr); }
.plan.best { border-color: oklch(0.75 0.16 70 / 0.6); background: linear-gradient(180deg, oklch(0.72 0.14 68 / 0.09), var(--surface-1) 44%); }
@media (max-width: 860px) { .plan-grid.three { grid-template-columns: 1fr; } .plan.best { order: -1; } }

/* ═══ plan buttons: make hover unmistakable ═══
   Previously the non-featured buttons only shifted one surface step on
   hover, which read as "disabled" rather than "clickable". Now every plan
   button lights up amber on hover, so the affordance is obvious. */
.pl-go {
  position: relative; overflow: hidden;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), box-shadow 0.22s var(--ease),
              transform 0.22s var(--ease);
}
.pl:hover .pl-go,
.pl:focus-visible .pl-go,
.pl-go:hover {
  background: linear-gradient(118deg, oklch(0.86 0.15 84), var(--accent) 52%, oklch(0.73 0.19 46));
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: 0 10px 26px -13px oklch(0.75 0.17 62), 0 1px 0 oklch(1 0 0 / 0.35) inset;
  transform: translateY(-1px);
}
.pl:hover .pl-go .ic, .pl-go:hover .ic { color: var(--on-accent); transform: translateX(2px); }
.pl-go .ic { transition: transform 0.22s var(--ease); }
.pl.best:hover .pl-go { filter: none; box-shadow: 0 14px 32px -12px oklch(0.76 0.18 62), 0 1px 0 oklch(1 0 0 / 0.4) inset; }
.pl:active .pl-go { transform: translateY(0); }
.pl:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* whole card lifts a touch more so the hovered plan is unambiguous */
.pl:hover { border-color: oklch(0.75 0.15 70 / 0.62); box-shadow: 0 18px 44px -22px oklch(0.6 0.12 60 / 0.9); }

/* ═══ PREMIUM GATE SCREEN ═══ */
.gate {
  margin-top: var(--space-5); text-align: center;
  padding: var(--space-8) var(--space-5) var(--space-7);
  border-radius: 22px; position: relative; overflow: hidden;
  background:
    radial-gradient(560px 220px at 50% 0%, oklch(0.72 0.14 68 / 0.14), transparent 70%),
    var(--surface-1);
  border: 1px solid oklch(0.72 0.15 70 / 0.26);
}
.gate::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(oklch(1 0 0 / 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, oklch(1 0 0 / 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 40%, transparent 78%);
}
.gate > * { position: relative; z-index: 1; }
.gate-seal {
  width: 62px; height: 62px; margin: 0 auto var(--space-4);
  display: grid; place-items: center; border-radius: 19px;
  background: linear-gradient(150deg, oklch(0.78 0.15 75 / 0.24), oklch(0.68 0.16 55 / 0.1));
  border: 1px solid oklch(0.75 0.15 70 / 0.44); color: var(--accent);
  box-shadow: 0 14px 34px -16px oklch(0.75 0.17 65 / 0.9);
}
.gate-seal > svg { width: 27px; height: 27px; }
.gate h2 { font-size: var(--text-xl); letter-spacing: -0.02em; margin: 0 0 var(--space-4); }
.gate-list {
  list-style: none; padding: 0; margin: 0 auto var(--space-5);
  display: grid; gap: 11px; max-width: 460px; text-align: left;
}
.gate-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); color: var(--text-2); line-height: 1.5; }
.gate-list .ic { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 2px; }
.gate-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gate-btns .btn.lg { padding: 13px 24px; font-size: var(--text-sm); }
.gate-btns .btn.pri .ic { width: 16px; height: 16px; }
.gate-fine { display: block; margin-top: var(--space-4); font-size: var(--text-xs); color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   GUIDED TOUR — spotlight coach marks over the live app
   ═══════════════════════════════════════════════════════════ */
body.gt-on { overflow: hidden; }

.gt { position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity 0.32s var(--ease); }
.gt.in { opacity: 1; }

/* dim layer sits under the cutout */
.gt-dim { position: absolute; inset: 0; background: oklch(0.12 0.012 265 / 0.5); }

/* the cutout: a giant outer shadow punches a hole in the dim */
.gt-hole {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 9999px oklch(0.11 0.012 265 / 0.82);
  outline: 1.5px solid oklch(0.8 0.15 72 / 0.85);
  outline-offset: 0;
  transition: left 0.5s var(--ease), top 0.5s var(--ease),
              width 0.5s var(--ease), height 0.5s var(--ease),
              opacity 0.35s var(--ease), border-radius 0.4s var(--ease);
}
.gt-halo {
  position: absolute; inset: -5px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 2px oklch(0.8 0.15 72 / 0.35), 0 0 34px 6px oklch(0.78 0.16 68 / 0.28);
  animation: gtPulse 2.4s var(--ease) infinite;
}
@keyframes gtPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.995); }
  50%      { opacity: 1;   transform: scale(1.012); }
}

/* the coach mark */
.gt-pop {
  position: absolute; width: 380px; pointer-events: auto;
  padding: 20px 20px 16px; border-radius: 18px;
  background: linear-gradient(180deg, oklch(0.22 0.014 262 / 0.98), oklch(0.17 0.012 262 / 0.98));
  border: 1px solid oklch(0.75 0.14 70 / 0.3);
  box-shadow: 0 26px 70px -26px oklch(0.05 0.02 260 / 0.95), 0 0 0 1px oklch(1 0 0 / 0.04) inset;
  backdrop-filter: blur(18px);
  transition: left 0.5s var(--ease), top 0.5s var(--ease), opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.gt-pop.shift { opacity: 0; transform: translateY(8px); }
.gt-pop.center { width: min(460px, 92vw); text-align: center; }

/* arrow */
.gt-pop::before {
  content: ''; position: absolute; width: 13px; height: 13px; rotate: 45deg;
  background: oklch(0.21 0.014 262 / 0.99);
  border: 1px solid oklch(0.75 0.14 70 / 0.3);
}
.gt-pop.s-bottom::before { top: -7.5px; left: var(--ax, 50%); margin-left: -6.5px; border-right: 0; border-bottom: 0; }
.gt-pop.s-top::before    { bottom: -7.5px; left: var(--ax, 50%); margin-left: -6.5px; border-left: 0; border-top: 0; }
.gt-pop.s-right::before  { left: -7.5px; top: var(--ay, 50%); margin-top: -6.5px; border-right: 0; border-top: 0; }
.gt-pop.s-left::before   { right: -7.5px; top: var(--ay, 50%); margin-top: -6.5px; border-left: 0; border-bottom: 0; }
.gt-pop.center::before   { display: none; }

.gt-x {
  position: absolute; top: 11px; right: 11px; width: 27px; height: 27px;
  display: grid; place-items: center; border-radius: 8px; color: var(--muted);
}
.gt-x > svg { width: 13px; height: 13px; }
.gt-x:hover { color: var(--text); background: oklch(1 0 0 / 0.07); }

.gt-eyebrow {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 9px;
}
.gt-pop h3 { font-size: 1.16rem; letter-spacing: -0.02em; margin: 0 0 9px; line-height: 1.22; }
.gt-pop p { font-size: 13.6px; line-height: 1.62; color: var(--text-2); margin: 0; }
.gt-pop p em { color: var(--accent); font-style: normal; font-weight: 650; }
.gt-pop p b { color: var(--text); font-weight: 700; }

.gt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; }
.gt-dots { display: flex; gap: 5px; }
.gt-dots span { width: 5px; height: 5px; border-radius: 50%; background: oklch(1 0 0 / 0.2); transition: all 0.3s var(--ease); }
.gt-dots span.on { width: 17px; border-radius: 999px; background: var(--accent); }
.gt-btns { display: flex; gap: 7px; align-items: center; }
.gt-back {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-soft);
}
.gt-back:hover { color: var(--text); background: oklch(1 0 0 / 0.06); }
.gt-next {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 750; color: var(--on-accent);
  padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(118deg, oklch(0.86 0.15 84), var(--accent) 52%, oklch(0.73 0.19 46));
  box-shadow: 0 8px 20px -10px oklch(0.75 0.17 62), 0 1px 0 oklch(1 0 0 / 0.35) inset;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.gt-next:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px oklch(0.76 0.18 62), 0 1px 0 oklch(1 0 0 / 0.4) inset; }
.gt-next .ic { width: 13px; height: 13px; }

@media (max-width: 720px) {
  .gt-pop { width: min(94vw, 380px) !important; padding: 17px 17px 14px; }
  .gt-pop h3 { font-size: 1.06rem; }
  .gt-pop p { font-size: 13px; }
  .gt-foot { flex-direction: column-reverse; align-items: stretch; gap: 11px; }
  .gt-btns { justify-content: space-between; }
  .gt-dots { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .gt-halo { animation: none; }
  .gt-hole, .gt-pop { transition: opacity 0.2s linear; }
}

/* ── Byline + sources (GEO credibility signals) ───────────────── */
.byline{
  font-size:.82rem; color:var(--muted,#8b93a7); margin:-.35rem 0 1.4rem;
  display:flex; flex-wrap:wrap; gap:.45rem; align-items:center; line-height:1.5;
}
.byline time{ color:inherit; }
.byline a{ color:var(--accent,#FFB020); text-decoration:none; border-bottom:1px solid transparent; }
.byline a:hover{ border-bottom-color:currentColor; }

.sources{
  margin:3rem 0 1rem; padding:1.35rem 1.5rem;
  border:1px solid var(--line,#242a38); border-radius:14px;
  background:var(--panel-2,rgba(255,255,255,.02));
}
.sources h2{ font-size:1.02rem; margin:0 0 .5rem; letter-spacing:.01em; }
.sources ul{ margin:.7rem 0 .9rem; padding-left:1.1rem; }
.sources li{ margin:.55rem 0; font-size:.9rem; line-height:1.6; color:var(--muted,#8b93a7); }
.sources li a{ color:var(--fg,#e8ecf5); text-decoration:none; border-bottom:1px solid var(--accent,#FFB020); }
.sources li a:hover{ color:var(--accent,#FFB020); }
.src-note{ font-size:.82rem; color:var(--muted,#8b93a7); margin:.4rem 0 0; line-height:1.6; }

@media (max-width:640px){
  .sources{ padding:1.1rem 1.15rem; border-radius:12px; }
  .byline{ font-size:.78rem; }
}

/* ── Sources block inside the landing footer ──────────────────── */
.lp-sources{
  margin:1.6rem 0 0; padding-top:1.3rem;
  border-top:1px solid var(--line,#242a38);
}
.lp-sources b{
  display:block; font-size:.85rem; letter-spacing:.06em;
  text-transform:uppercase; color:var(--muted,#8b93a7); margin-bottom:.5rem;
}
.lp-sources p{ font-size:.8rem; color:var(--muted,#8b93a7); margin:0 0 .6rem; line-height:1.6; }
.lp-sources ul{ margin:0; padding-left:1.05rem; }
.lp-sources li{ font-size:.8rem; line-height:1.65; color:var(--muted,#8b93a7); margin:.4rem 0; }
.lp-sources a{ color:var(--fg,#e8ecf5); text-decoration:none; border-bottom:1px solid var(--accent,#FFB020); }
.lp-sources a:hover{ color:var(--accent,#FFB020); }

/* ── Sample questions on module pages ─────────────────────────── */
.q-sample{
  margin:1.25rem 0; padding:1.15rem 1.3rem;
  border:1px solid var(--line,#242a38); border-radius:14px;
  background:var(--panel-2,rgba(255,255,255,.02));
}
.q-num{
  font-size:.72rem; letter-spacing:.09em; text-transform:uppercase;
  color:var(--accent,#FFB020); margin:0 0 .5rem; font-weight:700;
}
.q-text{ font-weight:600; margin:0 0 .85rem; line-height:1.55; font-size:1.02rem; }
.q-opts{ margin:0 0 .85rem; padding-left:1.35rem; }
.q-opts li{ margin:.4rem 0; line-height:1.55; color:var(--muted,#8b93a7); }
.q-opts li.q-correct{ color:var(--fg,#e8ecf5); font-weight:600; }
.q-tick{
  display:inline-block; margin-left:.5rem; padding:.1rem .45rem;
  font-size:.68rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:#0d1117; background:var(--accent,#FFB020); border-radius:999px; vertical-align:middle;
}
.q-exp{ border-top:1px solid var(--line,#242a38); padding-top:.7rem; }
.q-exp summary{
  cursor:pointer; font-size:.84rem; font-weight:600; color:var(--accent,#FFB020);
  list-style:none; user-select:none;
}
.q-exp summary::-webkit-details-marker{ display:none; }
.q-exp summary::before{ content:'▸ '; }
.q-exp[open] summary::before{ content:'▾ '; }
.q-exp p{ font-size:.9rem; line-height:1.65; color:var(--muted,#8b93a7); margin:.6rem 0 0; }
.q-ref{ font-size:.82rem !important; font-style:italic; opacity:.85; }

.cta-line{ margin:1.6rem 0 2rem; }
.mod-links{ columns:2; column-gap:2rem; margin:.8rem 0 0; padding-left:1.1rem; }
.mod-links li{ margin:.4rem 0; break-inside:avoid; }
.mod-links a{ color:var(--fg,#e8ecf5); text-decoration:none; border-bottom:1px solid var(--accent,#FFB020); }
.mod-links a:hover{ color:var(--accent,#FFB020); }

@media (max-width:640px){
  .mod-links{ columns:1; }
  .q-sample{ padding:1rem 1.05rem; }
  .q-text{ font-size:.98rem; }
}
