/* ============================================================
   GoBrief — public site
   Dark, gradient-glow aesthetic with scroll-driven motion.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #07080d;
  --bg-2: #0b0d15;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f5fa;
  --muted: rgba(226, 230, 246, 0.64);
  --faint: rgba(226, 230, 246, 0.4);
  --g1: #6366f1;
  --g2: #a855f7;
  --g3: #ec4899;
  --grad: linear-gradient(100deg, var(--g1), var(--g2) 55%, var(--g3));
  --ok: #34d399;
  --bad: #f87171;
  --radius: 20px;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --container: 1200px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: rgba(168, 85, 247, 0.45); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: var(--bg); }

[hidden] { display: none !important; }

.container { width: min(var(--container), 92vw); margin-inline: auto; }
.container--narrow { width: min(820px, 92vw); }
.center { text-align: center; }
.section { padding: clamp(90px, 12vh, 150px) 0; position: relative; }

/* gradient em */
h1 em, h2 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Reveal states (only when JS animates) ---------- */
body.gb-anim [data-reveal] { opacity: 0; transform: translateY(30px); }
body.gb-anim .line-mask .line { transform: translateY(112%); }
body.gb-anim [data-hero-fade] { opacity: 0; transform: translateY(18px); }

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed; inset: 0 auto auto 0; z-index: 120;
  height: 3px; width: 100%;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 8, 13, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  width: min(var(--container), 94vw); margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 4px 14px rgba(168,85,247,.45)); }
.brand__mark img { display: block; border-radius: 8px; }
.main-nav { display: flex; gap: 26px; margin-inline: auto; }
.main-nav a { font-size: 14.5px; color: var(--muted); font-weight: 500; transition: color .2s; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; gap: 10px; align-items: center; }

.nav-toggle { display: none; width: 42px; height: 42px; position: relative; z-index: 130; }
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s, top .3s;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(7, 8, 13, 0.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: grid; place-items: center;
}
.mobile-menu nav { display: grid; gap: 8px; text-align: center; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(28px, 7vw, 40px); font-weight: 700;
  padding: 6px 20px; color: var(--text);
}
.mobile-menu a:hover { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mobile-menu__explore { font-size: 18px !important; color: var(--muted) !important; margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; font-size: 15px;
  padding: 13px 26px; white-space: nowrap;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s, background .25s, border-color .25s;
  will-change: transform;
}
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 32px -10px rgba(168, 85, 247, 0.65);
}
.btn--primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 40px -10px rgba(168, 85, 247, 0.8); }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255,255,255,.25); background: var(--surface-2); transform: translateY(-2px); }

/* ---------- Aurora background ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora__blob {
  position: absolute; width: 46vw; height: 46vw; min-width: 420px; min-height: 420px;
  border-radius: 50%; filter: blur(110px); opacity: 0.5;
}
.aurora__blob--1 { top: -18%; left: -8%; background: #3b2ea3; animation: drift1 16s ease-in-out infinite alternate; }
.aurora__blob--2 { top: 0%; right: -14%; background: #6b21a8; animation: drift2 20s ease-in-out infinite alternate; }
.aurora__blob--3 { bottom: -30%; left: 28%; background: #9d174d; opacity: .38; animation: drift1 24s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-6vw, 10vh) scale(0.9); } }
.aurora__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 25%, transparent 75%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}
.hero-inner {
  width: min(var(--container), 92vw); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  background: var(--surface);
  margin: 0 0 26px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(168,85,247,.9); }
.hero-title { font-size: clamp(42px, 5.4vw, 76px); font-weight: 800; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-mask .line { display: block; }
.hero-sub { margin: 26px 0 34px; max-width: 54ch; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 16px; align-items: center; margin-top: 34px; color: var(--faint); font-size: 14px; flex-wrap: wrap; }
.hero-meta strong { color: var(--text); font-family: var(--font-display); font-weight: 700; }
.hero-meta .sep { width: 4px; height: 4px; background: var(--faint); border-radius: 50%; }

/* Hero stage: phone + floaters */
.hero-stage { position: relative; height: 640px; }
.phone {
  position: absolute; left: 50%; top: 50%;
  width: 300px; height: 620px;
  transform: translate(-50%, -50%) rotate(2deg);
  border-radius: 44px;
  background: #101321;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 0 0 10px #05060a,
    0 0 0 11px rgba(255,255,255,.08),
    0 60px 120px -30px rgba(0,0,0,.8),
    0 0 90px -20px rgba(124, 58, 237, 0.35);
  z-index: 3;
}
.phone__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 24px; border-radius: 999px; background: #05060a; z-index: 2;
}
.phone__screen {
  position: absolute; inset: 8px; border-radius: 37px; overflow: hidden;
  background: linear-gradient(180deg, #0d101c 0%, #0a0c14 100%);
  padding: 52px 16px 0; display: flex; flex-direction: column; gap: 12px;
}
.app-topbar { display: flex; justify-content: space-between; align-items: center; }
.app-greet { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.app-greet-sub { font-size: 11px; color: var(--faint); }
.app-streak {
  font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px;
  background: rgba(249, 115, 22, 0.15); border: 1px solid rgba(249, 115, 22, 0.35);
}
.app-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 12px;
}
.app-continue { display: flex; gap: 12px; align-items: center; }
.app-continue__cover .gb-cover { width: 52px; border-radius: 6px; }
.app-continue__info { flex: 1; min-width: 0; }
.app-label { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.app-continue__title { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); margin: 8px 0 4px; overflow: hidden; }
.app-progress span { display: block; height: 100%; background: var(--grad); border-radius: 4px; }
.app-continue__time { font-size: 10px; color: var(--faint); }
.app-row-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.app-shelf { display: flex; gap: 10px; overflow: hidden; }
.app-shelf .gb-cover { width: 64px; border-radius: 7px; flex: none; }
.app-challenge { display: flex; gap: 10px; align-items: center; }
.app-challenge__ico { font-size: 20px; }
.app-challenge__title { font-weight: 700; font-size: 13px; }
.app-challenge__sub { font-size: 11px; color: var(--faint); }
.app-miniplayer {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 8px 12px;
}
.app-miniplayer__cover .gb-cover, .app-miniplayer__cover.gb-cover { width: 34px; border-radius: 5px; }
.app-miniplayer__meta { flex: 1; min-width: 0; }
.app-miniplayer__meta p { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-eq { display: flex; gap: 2.5px; align-items: flex-end; height: 10px; margin-top: 3px; }
.app-eq i { width: 3px; background: var(--g2); border-radius: 2px; animation: eq 0.9s ease-in-out infinite alternate; }
.app-eq i:nth-child(1) { height: 45%; animation-delay: 0s; }
.app-eq i:nth-child(2) { height: 90%; animation-delay: .15s; }
.app-eq i:nth-child(3) { height: 60%; animation-delay: .3s; }
.app-eq i:nth-child(4) { height: 100%; animation-delay: .45s; }
@keyframes eq { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }
.app-miniplayer__btn {
  width: 30px; height: 30px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; font-size: 11px; flex: none;
}
.app-tabbar {
  display: flex; justify-content: space-around; padding: 12px 0 18px;
  font-size: 10.5px; color: var(--faint); border-top: 1px solid rgba(255,255,255,.07);
}
.app-tabbar .is-active { color: var(--text); font-weight: 700; }

.float-card {
  position: absolute; z-index: 4; border-radius: 12px;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.55));
}
.float-card .gb-cover { width: 110px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); }
.float-card--1 { top: 4%; left: 0%; transform: rotate(-8deg); }
.float-card--2 { bottom: 10%; left: 4%; transform: rotate(6deg); }
.float-card--3 { top: 14%; right: 0%; transform: rotate(9deg); }
.float-chip {
  position: absolute; z-index: 5;
  background: rgba(13, 15, 24, 0.85); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6);
}
.float-chip--1 { bottom: 26%; right: 2%; }
.float-chip--2 { top: 42%; left: -4%; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint);
  z-index: 2;
}
.scroll-hint span { width: 1px; height: 44px; background: linear-gradient(var(--faint), transparent); display: block; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.stat strong i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat > span:last-child { font-size: 13.5px; color: var(--muted); letter-spacing: .04em; }

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; text-align: left; }
.section-head--row .section-sub { max-width: 40ch; margin: 0; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 16px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-head h2, .quiz-copy h2 { font-size: clamp(32px, 4vw, 54px); font-weight: 800; }
.section-sub { color: var(--muted); margin-top: 18px; font-size: 17px; }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s, background .35s;
}
.bento-card:hover { transform: translateY(-6px); border-color: rgba(168, 85, 247, 0.45); background: var(--surface-2); }
.bento-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(168,85,247,.14), transparent 65%);
}
.bento-card:hover::before { opacity: 1; }
.bento-card h3 { font-size: 20px; font-weight: 700; margin: 14px 0 10px; }
.bento-card p { color: var(--muted); font-size: 15px; }
.bento-ico {
  display: inline-grid; place-items: center; width: 46px; height: 46px; font-size: 21px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
}
.bento-card--player { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; }
.bento-card--wide { grid-column: span 2; }

.player-ui {
  background: rgba(10, 12, 20, 0.8); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; margin-bottom: 22px; text-align: center; position: relative;
}
.player-ui__cover { display: flex; justify-content: center; margin-bottom: 14px; }
.player-ui__cover .gb-cover { width: 120px; border-radius: 10px; box-shadow: 0 20px 44px -16px rgba(0,0,0,.7); }
.player-ui__title { font-weight: 700; font-size: 15px; }
.player-ui__author { color: var(--faint); font-size: 12.5px; margin-bottom: 14px; }
.player-ui__bar { height: 4px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; }
.player-ui__bar span { display: block; height: 100%; width: 35%; background: var(--grad); border-radius: 4px; }
.player-ui__times { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); margin-top: 6px; }
.player-ui__controls { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.player-ui__controls .play {
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 15px;
  box-shadow: 0 10px 28px -8px rgba(168,85,247,.7);
}
.player-ui__speed {
  position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
}
.bento-track-strip { display: flex; gap: 10px; margin-bottom: 20px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
.bento-track-strip .pill {
  flex: none; font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
}

/* ---------- Library / categories ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 70px; }
.cat {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px;
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s, background .3s;
}
.cat:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.22); background: var(--surface-2); }
.cat__swatch { width: 44px; height: 44px; border-radius: 13px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); overflow: hidden; }
.cat__swatch img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.cat__title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; }
.cat__sub { font-size: 12.5px; color: var(--faint); }
.cat__count { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* Marquees */
.marquee-stack { display: grid; gap: 18px; margin: 10px 0 70px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; will-change: transform; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .gb-cover { width: 128px; border-radius: 10px; flex: none; transition: transform .3s; }
.marquee .gb-cover:hover { transform: translateY(-6px) scale(1.03); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Book cover component ---------- */
.gb-cover {
  position: relative; display: block; aspect-ratio: 2 / 3; width: 160px;
  border-radius: 12px; overflow: hidden; color: #fff;
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.6);
}
.gb-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
/* When a real cover image is shown, hide the generated title/brand/texture. */
.gb-cover--photo::after,
.gb-cover--photo .gb-cover__deco,
.gb-cover--photo .gb-cover__body,
.gb-cover--photo .gb-cover__brand { display: none; }
.gb-cover__deco { position: absolute; inset: 0; pointer-events: none; }
.gb-cover.v0 .gb-cover__deco { background: radial-gradient(circle at 78% 16%, rgba(255,255,255,.32) 0 12%, transparent 13%), radial-gradient(circle at 78% 16%, transparent 0 18%, rgba(255,255,255,.16) 19% 24%, transparent 25%); }
.gb-cover.v1 .gb-cover__deco { background: linear-gradient(135deg, transparent 55%, rgba(255,255,255,.18) 55.5%, rgba(255,255,255,.18) 62%, transparent 62.5%), linear-gradient(135deg, transparent 68%, rgba(0,0,0,.14) 68.5%, rgba(0,0,0,.14) 78%, transparent 78.5%); }
.gb-cover.v2 .gb-cover__deco { background-image: radial-gradient(rgba(255,255,255,.28) 1.5px, transparent 1.5px); background-size: 14px 14px; background-position: 0 -4px; -webkit-mask-image: linear-gradient(200deg, #000 26%, transparent 55%); mask-image: linear-gradient(200deg, #000 26%, transparent 55%); }
.gb-cover.v3 .gb-cover__deco { background: conic-gradient(from 210deg at 85% 8%, rgba(255,255,255,.26), transparent 120deg); }
.gb-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.42)); }
.gb-cover__body {
  position: absolute; inset: auto 0 0 0; padding: 10% 9% 16%;
  display: flex; flex-direction: column; gap: 4%; z-index: 2;
}
.gb-cover__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(10px, 11cqw, 17px); line-height: 1.2; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.gb-cover__author {
  font-size: clamp(8px, 7cqw, 11.5px); opacity: .85;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gb-cover__brand {
  position: absolute; bottom: 5%; left: 9%; z-index: 2;
  font-size: clamp(6px, 5cqw, 9px); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .66;
}
.gb-cover { container-type: inline-size; }

/* ---------- Tracks (pinned horizontal) ---------- */
.tracks { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.tracks-pin { padding: clamp(70px, 9vh, 110px) 0; }
.tracks-rail-wrap { margin-top: 54px; overflow: hidden; }
.tracks-rail { display: flex; gap: 20px; padding: 10px 4vw 26px; width: max-content; }
.track-card {
  width: 340px; flex: none; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s;
  display: flex; flex-direction: column;
}
.track-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.24); }
.track-card__head { padding: 26px 24px 22px; position: relative; overflow: hidden; }
.track-card__head::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% -20%, rgba(255,255,255,.28), transparent 55%); }
.track-card__head h3 { font-size: 21px; font-weight: 800; position: relative; z-index: 1; }
.track-card__head p { font-size: 13px; opacity: .9; position: relative; z-index: 1; margin-top: 4px; }
.track-card__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.track-card__desc { color: var(--muted); font-size: 14px; }
.track-card__meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--faint); font-weight: 600; }
.track-card__books { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.track-card__books span {
  font-size: 13px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-left: 20px; position: relative;
}
.track-card__books span::before { content: "▸"; position: absolute; left: 2px; color: var(--g2); }
.track-card__more { font-size: 12.5px; color: var(--faint); padding-left: 20px; }

/* ---------- Plans ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-card {
  text-align: left; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s, background .35s;
}
.plan-card:hover { transform: translateY(-6px); border-color: rgba(168,85,247,.5); background: var(--surface-2); }
.plan-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-card__days {
  font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.plan-card__badge {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--grad); color: #fff;
}
.plan-card h3 { font-size: 22px; font-weight: 800; }
.plan-card__points { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; }
.plan-card__points span { padding-left: 24px; position: relative; }
.plan-card__points span::before { content: "✦"; position: absolute; left: 2px; color: var(--g3); font-size: 11px; top: 4px; }
.plan-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--faint); font-size: 13px; }
.plan-card__cta { color: var(--text); font-weight: 600; font-size: 14px; }
.plan-card__cta::after { content: " →"; transition: transform .2s; display: inline-block; }
.plan-card:hover .plan-card__cta::after { transform: translateX(4px); }

/* Plan modal timeline */
.plan-detail h3 { font-size: 26px; margin-bottom: 6px; }
.plan-detail__meta { color: var(--faint); font-size: 14px; margin-bottom: 22px; }
.plan-detail h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 24px 0 12px; }
.plan-detail__mastery { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--muted); }
.plan-detail__mastery span { padding-left: 24px; position: relative; }
.plan-detail__mastery span::before { content: "✦"; position: absolute; left: 2px; top: 4px; color: var(--g2); font-size: 11px; }
.plan-steps { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 22px; display: flex; flex-direction: column; gap: 18px; }
.plan-step { position: relative; }
.plan-step::before {
  content: ""; position: absolute; left: -28.5px; top: 5px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--bg); border: 2.5px solid var(--g2);
}
.plan-step--section::before { background: var(--grad); border-color: transparent; }
.plan-step__sec { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.plan-step__sec-sub { color: var(--faint); font-size: 13px; margin-top: 2px; }
.plan-step__title { font-size: 14.5px; color: var(--muted); }
.plan-step__kind { font-size: 12px; color: var(--faint); }
.plan-step__kind .q { color: var(--g3); font-weight: 600; }

/* ---------- Quiz demo ---------- */
.quiz { background: var(--bg-2); border-block: 1px solid var(--line); }
.quiz-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.quiz-copy .kicker { margin-bottom: 14px; }
.quiz-points { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.quiz-points li { padding-left: 30px; position: relative; }
.quiz-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(52, 211, 153, .15); color: var(--ok);
  font-size: 11px; display: grid; place-items: center; font-weight: 800; margin-top: 3px;
}
.quiz-widget {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 30px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.7);
}
.quiz-widget__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.quiz-widget__badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.quiz-widget__progress { font-size: 13px; color: var(--faint); font-weight: 600; }
.quiz-widget__q { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.4; margin-bottom: 20px; }
.quiz-widget__opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  text-align: left; padding: 14px 18px; border-radius: 14px; font-size: 14.5px; line-height: 1.5;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .2s, background .2s, transform .2s;
}
.quiz-opt:hover:not(:disabled) { border-color: rgba(168,85,247,.55); transform: translateX(4px); }
.quiz-opt:disabled { cursor: default; opacity: .55; }
.quiz-opt.is-correct { border-color: var(--ok); background: rgba(52, 211, 153, .12); opacity: 1; }
.quiz-opt.is-wrong { border-color: var(--bad); background: rgba(248, 113, 113, .1); opacity: 1; }
.quiz-widget__explain {
  margin-top: 18px; padding: 16px 18px; border-radius: 14px; font-size: 14px; color: var(--muted);
  background: rgba(99, 102, 241, .1); border: 1px solid rgba(99, 102, 241, .3);
}
.quiz-widget__explain strong { color: var(--text); }
.quiz-widget__foot { margin-top: 18px; display: flex; gap: 10px; }
.quiz-widget__score { font-family: var(--font-display); font-size: 34px; font-weight: 800; text-align: center; margin: 10px 0 6px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); justify-content: center; gap: 22px; }
.price-card {
  position: relative; border-radius: 26px; padding: 38px 34px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.price-card:hover { transform: translateY(-6px); }
.price-card h3 { font-size: 17px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.price-card__price { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.price-card__price span { font-size: 15px; font-weight: 500; color: var(--faint); letter-spacing: 0; margin-left: 8px; }
.price-card__tag { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.price-card ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--muted); }
.price-card li { padding-left: 30px; position: relative; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 10px; display: grid; place-items: center; color: var(--text);
}
.price-card .btn { margin-top: auto; }
.price-card--pro { border: 1px solid transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; }
.price-card--pro li::before { background: var(--grad); border: 0; color: #fff; }
.price-card__glow { position: absolute; inset: -40px; background: radial-gradient(circle at 50% 0%, rgba(168,85,247,.22), transparent 65%); pointer-events: none; }
.price-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 8px 24px -6px rgba(168,85,247,.7);
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  transition: border-color .3s;
}
.faq-item[open], .faq-item:hover { border-color: rgba(255,255,255,.2); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 26px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x { position: relative; width: 16px; height: 16px; flex: none; }
.faq-x::before, .faq-x::after {
  content: ""; position: absolute; inset: 50% auto auto 0; width: 100%; height: 2px;
  background: var(--muted); border-radius: 2px; transition: transform .3s;
  transform: translateY(-50%);
}
.faq-x::after { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] .faq-x::after { transform: translateY(-50%) rotate(0deg); }
.faq-item p { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.faq-item a { color: var(--g2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA ---------- */
.cta { overflow: hidden; }
.aurora--cta .aurora__blob--1 { top: auto; bottom: -40%; left: 10%; }
.aurora--cta .aurora__blob--2 { top: auto; bottom: -50%; right: 0%; }
.cta-title { font-size: clamp(52px, 9vw, 130px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; }
.cta .section-sub { margin: 26px auto 40px; }
.store-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #0a0a0f; border-radius: 14px; padding: 12px 22px;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(255,255,255,.25); }
.store-badge--soon {
  background: rgba(255,255,255,.08); color: var(--faint);
  border: 1px solid rgba(255,255,255,.12); cursor: default;
}
.store-badge--soon:hover { transform: none; box-shadow: none; }
.store-badge span { display: flex; flex-direction: column; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.15; }
.store-badge small { font-size: 9px; font-weight: 600; letter-spacing: .08em; opacity: .7; }
.cta-note { margin-top: 30px; color: var(--faint); font-size: 14.5px; }
.cta-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cta-note a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { color: var(--faint); font-size: 14.5px; margin-top: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.footer-col a { color: var(--faint); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--faint); font-size: 13px;
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 5, 9, 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal__panel {
  position: relative; width: min(680px, 100%); max-height: min(82vh, 780px); overflow: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #0d0f18; border: 1px solid rgba(255,255,255,.12); border-radius: 24px;
  padding: 36px; box-shadow: 0 60px 140px -40px rgba(0,0,0,.9);
  animation: modalIn .35s cubic-bezier(.22,1,.36,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(.98); } }
.modal__close {
  position: sticky; top: 0px; float: right; margin: -10px -10px 0 0;
  width: 38px; height: 38px; border-radius: 50%; font-size: 14px;
  background: var(--surface-2); border: 1px solid var(--line); z-index: 5;
  transition: background .2s, transform .2s;
}
.modal__close:hover { background: rgba(255,255,255,.14); transform: rotate(90deg); }

/* Book detail inside modal (explore) */
.book-detail__head { display: flex; gap: 26px; margin-bottom: 24px; }
.book-detail__head .gb-cover { width: 150px; flex: none; }
.book-detail__head-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.book-detail__head-info h3 { font-size: 25px; line-height: 1.2; }
.book-detail__author { color: var(--muted); font-size: 15px; }
.book-detail__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.chip {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.chip--premium { background: var(--grad); color: #fff; border: 0; }
.chip--free { background: rgba(52, 211, 153, .16); border-color: rgba(52, 211, 153, .4); color: var(--ok); }
.book-detail__actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.book-detail h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 24px 0 10px; }
.book-detail p { color: var(--muted); font-size: 15px; }
.book-detail__who { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 14.5px; }
.book-detail__who li { padding-left: 26px; position: relative; }
.book-detail__who li::before { content: "→"; position: absolute; left: 0; color: var(--g2); }

/* ============================================================
   Explore page
   ============================================================ */
.explore-main { padding-top: calc(var(--header-h) + 40px); min-height: 100vh; position: relative; }
.explore-hero { position: relative; padding: 46px 0 30px; }
.explore-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
.explore-hero .section-sub { max-width: 60ch; }
.explore-search { position: relative; max-width: 560px; margin-top: 30px; }
.explore-search input {
  width: 100%; padding: 17px 22px 17px 52px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 16px; outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.explore-search input::placeholder { color: var(--faint); }
.explore-search input:focus { border-color: rgba(168,85,247,.6); background: var(--surface-2); box-shadow: 0 0 0 4px rgba(168,85,247,.14); }
.explore-search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--faint); }

.explore-tabs { display: flex; gap: 6px; margin: 34px 0 18px; border-bottom: 1px solid var(--line); }
.explore-tab {
  padding: 12px 20px; font-weight: 600; font-size: 15px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s;
}
.explore-tab:hover { color: var(--text); }
.explore-tab.is-active { color: var(--text); border-image: var(--grad) 1; border-bottom: 2px solid; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 0 26px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 8px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.filter-chip:hover { border-color: rgba(255,255,255,.3); color: var(--text); transform: translateY(-1px); }
.filter-chip.is-active { color: #fff; background: var(--surface-2); border-color: rgba(168,85,247,.7); box-shadow: 0 0 0 3px rgba(168,85,247,.15); }
.filter-chip i { width: 10px; height: 10px; border-radius: 50%; }
.filter-chip__img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; flex: none; display: block; }

.results-meta { color: var(--faint); font-size: 14px; margin-bottom: 22px; }
.results-meta strong { color: var(--text); }

.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 20px; padding-bottom: 30px; }
.book-card { text-align: left; display: flex; flex-direction: column; gap: 10px; background: none; padding: 0; border-radius: 14px; }
.book-card .gb-cover { width: 100%; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s; }
.book-card:hover .gb-cover { transform: translateY(-6px) scale(1.02); box-shadow: 0 26px 48px -18px rgba(0,0,0,.75); }
.book-card__title { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-card__meta { font-size: 12.5px; color: var(--faint); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.book-card__badge { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.book-card__badge.is-free { background: rgba(52,211,153,.16); border-color: rgba(52,211,153,.4); color: var(--ok); }

.explore-tracks-grid, .explore-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 30px; }
.explore-tracks-grid .track-card { width: auto; }

.load-sentinel { height: 10px; }
.empty-state { text-align: center; padding: 80px 0; color: var(--faint); }
.empty-state strong { display: block; font-family: var(--font-display); font-size: 22px; color: var(--muted); margin-bottom: 8px; }

.explore-cta {
  margin: 60px 0 90px; padding: 50px 40px; text-align: center;
  border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
}
.explore-cta h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 12px; }
.explore-cta p { color: var(--muted); margin-bottom: 26px; }

/* Books grid entrance */
.book-card, .explore-tracks-grid > *, .explore-plans-grid > * { opacity: 0; transform: translateY(22px); animation: cardIn .6s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes cardIn { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .tracks-rail-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tracks-rail-wrap::-webkit-scrollbar { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 70px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-stage { height: 560px; max-width: 560px; margin-inline: auto; width: 100%; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .quiz-wrap { grid-template-columns: 1fr; gap: 44px; }
  .explore-tracks-grid, .explore-plans-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero-title { font-size: clamp(30px, 8.6vw, 40px); }
  .hero-eyebrow { font-size: 11px; padding: 7px 12px; letter-spacing: .05em; }
  .hero-sub { font-size: 15.5px; }
  .hero-actions .btn--lg { padding: 14px 24px; font-size: 15px; }
  .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .phone { width: 270px; height: 560px; }
  .hero-stage { height: 500px; }
  .float-card--2 { display: none; }
  .float-chip--2 { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: auto; }
  .cats { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .track-card { width: 300px; }
  .explore-tracks-grid, .explore-plans-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .book-detail__head { flex-direction: column; }
  .modal__panel { padding: 26px 22px; }
  .marquee .gb-cover { width: 104px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
}
