/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #4361ee;
  --primary-dark:  #3451d1;
  --primary-light: #eef0fd;
  --text:          #0f172a;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --bg:            #f8fafc;
  --white:         #ffffff;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 4px 24px rgba(67,97,238,.10);
  --shadow-lg:     0 16px 48px rgba(67,97,238,.18);
  --font:          'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

/* ── Gradient text ────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(67,97,238,.35); }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: var(--white); }

.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn--white:hover { background: #f0f4ff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

.btn--lg { padding: 15px 32px; font-size: 16px; }
.btn--block { width: 100%; margin-top: 28px; }

/* ── Section head ─────────────────────────────────────── */
.section__head {
  text-align: center;
  margin-bottom: 64px;
}
.section__tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section__sub {
  font-size: 18px;
  color: var(--text-muted);
}

/* ── HEADER ───────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav a:hover { color: var(--primary); }

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(67,97,238,.15);
}
.hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.hero__desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero__stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat__num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat__label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── Hero Mockup ──────────────────────────────────────── */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
}
.mockup__bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 12px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.mockup__body { padding: 20px; }
.mockup__header { margin-bottom: 16px; }
.mockup__logo { font-weight: 800; font-size: 16px; color: var(--primary); }
.mockup__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.mockup__card-gen { margin-bottom: 20px; }
.gen__prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.gen__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.gen__cards { display: flex; flex-direction: column; gap: 8px; }
.gen__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  animation: cardIn .4s ease forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}
.gen__term { font-weight: 600; color: var(--primary); }
.gen__def  { color: var(--text-muted); }

.mockup__progress {}
.progress__label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.progress__label span { font-weight: 600; color: var(--text); }
.progress__bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  border-radius: 3px;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  border: 1px solid var(--border);
  animation: float 3s ease-in-out infinite;
}
.fc1 { bottom: 60px; left: -30px; animation-delay: 0s; }
.fc2 { top: 40px; right: -24px; animation-delay: 1.5s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fc__icon { font-size: 24px; }
.fc__title { font-weight: 700; font-size: 13px; }
.fc__sub   { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── Hero background blobs ────────────────────────────── */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
}
.blob1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -100px; right: -100px;
}
.blob2 {
  width: 400px; height: 400px;
  background: #7c3aed;
  bottom: -80px; left: -80px;
}

/* ── FEATURES ─────────────────────────────────────────── */
.features { background: var(--bg); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-card--big {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0e8ff 100%);
  border-color: rgba(67,97,238,.15);
  position: relative;
  overflow: hidden;
}
.feature-card--wide { grid-column: span 2; }
.feature-card__icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.feature-card__tag {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}

/* ── HOW IT WORKS ─────────────────────────────────────── */
.how { background: var(--white); }
.steps {
  display: flex;
  align-items: center;
  gap: 16px;
}
.step {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.step__num {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 20px;
  -webkit-text-stroke: 2px var(--primary);
}
.step h3  { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p   { font-size: 15px; color: var(--text-muted); }
.step__arrow {
  font-size: 28px;
  color: var(--primary);
  flex-shrink: 0;
  opacity: .4;
}

/* ── PRICING ──────────────────────────────────────────── */
.pricing { background: var(--bg); }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.plan {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
}
.plan--pro {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67,97,238,.12);
  transform: scale(1.03);
}
.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}
.plan__name   { font-size: 15px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
.plan__price  { font-size: 44px; font-weight: 900; line-height: 1; color: var(--text); margin-bottom: 4px; }
.plan__period { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.plan__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  min-height: 160px;
}
.plan__features li { line-height: 1.4; }

/* ── CTA ──────────────────────────────────────────────── */
.cta { padding: 0 0 96px; }
.cta__box {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  border-radius: 28px;
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
}
.cta__blob {
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  top: -100px; right: -100px;
}
.cta__box h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.cta__box p {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
}

/* ── FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.6);
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand .logo { color: var(--white); margin-bottom: 12px; }
.footer__brand p { font-size: 14px; }
.footer__links { display: flex; gap: 48px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--white);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  padding: 20px 24px;
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════
   MODES SECTION
══════════════════════════════════════════════════════ */
.modes { background: var(--white); }
.modes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mode-card {
  border-radius: 20px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
  overflow: hidden;
  min-height: 320px;
}
.mode-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,.15); }

.mode-card--learn { background: #dbeafe; }
.mode-card--flash { background: #ede9fe; }
.mode-card--test  { background: #fef9c3; }
.mode-card--match { background: #fce7e7; }

.mode-card__label {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.mode-card__preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* — Learn preview — */
.lp-card {
  background: var(--white);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.lp-card__term { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.lp-card__img  { font-size: 28px; text-align: center; margin-bottom: 10px; }
.lp-card__options { display: flex; flex-direction: column; gap: 5px; }
.lp-opt {
  font-size: 11px;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 5px 8px;
  border: 1.5px solid transparent;
}
.lp-opt--right { border-color: #22c55e; background: #dcfce7; color: #15803d; font-weight: 600; }
.lp-opt--wrong { border-color: #ef4444; background: #fee2e2; color: #991b1b; text-decoration: line-through; }

/* — Flash preview — */
.fp-stack { position: relative; height: 110px; margin-bottom: 10px; }
.fp-card {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.fp-card--back { transform: rotate(3deg) translateY(4px); opacity: .5; }
.fp-card--mid  { transform: rotate(-1.5deg); opacity: .75; }
.fp-card--front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: none;
}
.fp-card__term { font-weight: 800; font-size: 15px; }
.fp-card__hint { font-size: 10px; color: var(--text-muted); }
.fp-nav { display: flex; align-items: center; justify-content: space-between; }
.fp-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  cursor: pointer;
}
.fp-progress { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* — Test preview — */
.tp-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  margin-bottom: 8px;
}
.tp-score { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.tp-ring  { width: 56px; height: 56px; }
.tp-pct   {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.tp-stats { display: flex; flex-direction: column; gap: 4px; }
.tp-stat  { font-size: 12px; font-weight: 700; }
.tp-stat--ok  { color: #22c55e; }
.tp-stat--bad { color: #ef4444; }
.tp-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.tp-question {
  background: var(--white);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.tp-q-text { font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.tp-opts { display: flex; flex-direction: column; gap: 4px; }
.tp-opt {
  font-size: 10px;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px 8px;
  border: 1.5px solid transparent;
}
.tp-opt--picked { border-color: var(--primary); background: var(--primary-light); font-weight: 600; }

/* — Match preview — */
.mp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.mp-tile {
  background: var(--white);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.mp-tile--done   { opacity: .4; }
.mp-tile--active { border-color: #f97316; background: #fff7ed; }
.mp-tile--link   { border-color: #f97316; }
.mp-timer { font-size: 11px; color: var(--text-muted); text-align: right; }


/* ══════════════════════════════════════════════════════
   SPOTLIGHT SECTIONS
══════════════════════════════════════════════════════ */
.spotlight { background: var(--bg); }
.spotlight + .spotlight { background: var(--white); }
.spotlight + .spotlight + .spotlight { background: var(--bg); }

.spotlight__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.spotlight--reverse .spotlight__visual { order: 2; }
.spotlight--reverse .spotlight__text   { order: 1; }

.spotlight__title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  margin: 12px 0 18px;
}
.spotlight__desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 440px;
}

/* ── Spotlight window chrome ───── */
.sl-window {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  overflow: hidden;
}
.sl-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.sl-window__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 8px;
}

/* ── Learn spotlight ───────────── */
.sl-learn {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
}
.sl-learn__card {
  padding: 20px;
  border-right: 1px solid var(--border);
}
.sl-card-img  { font-size: 36px; margin-bottom: 8px; }
.sl-card-term { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.sl-card-ok   { font-size: 13px; font-weight: 700; color: #22c55e; margin-bottom: 12px; }
.sl-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.sl-opt {
  font-size: 12px;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 500;
}
.sl-opt--right { border-color: #22c55e; background: #dcfce7; color: #15803d; font-weight: 700; }
.sl-opt--wrong { border-color: #ef4444; background: #fee2e2; color: #991b1b; text-decoration: line-through; }

.sl-learn__settings { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 160px; }
.sl-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
}
.sl-toggle {
  width: 32px; height: 18px;
  border-radius: 9px;
  background: #e2e8f0;
  flex-shrink: 0;
  position: relative;
}
.sl-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: left .2s;
}
.sl-toggle--on { background: var(--primary); }
.sl-toggle--on::after { left: 16px; }

/* ── Test spotlight ────────────── */
.sl-test {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
}
.sl-test__q   { padding: 20px; border-right: 1px solid var(--border); }
.sl-test__num { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.sl-test__text { font-size: 14px; font-weight: 700; line-height: 1.45; margin-bottom: 16px; }
.sl-test__opts { display: flex; flex-direction: column; gap: 6px; }
.sl-topt {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #f8fafc;
  font-weight: 500;
  cursor: pointer;
}
.sl-topt--selected { border-color: var(--primary); background: var(--primary-light); font-weight: 700; }

.sl-test__side {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 140px;
}
.sl-test__result { text-align: center; }
.sl-res-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px;
  font-weight: 800;
}
.sl-res-text { font-size: 12px; font-weight: 700; color: #15803d; }
.sl-bar-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.sl-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.sl-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  border-radius: 3px;
}
.sl-test__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

/* ── Match spotlight ───────────── */
.sl-match { padding: 20px; }
.sl-match__timer {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.sl-match__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sl-mtile {
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.sl-mtile--done   { opacity: .35; }
.sl-mtile--active { border-color: #f97316; background: #fff7ed; color: #c2410c; }
.sl-mtile--linked { border-color: #f97316; }

/* ── Cookie banner ────────────────────────────────────── */
.cookie {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 48px);
  max-width: 680px;
  background: var(--text);
  color: rgba(255,255,255,.85);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.28);
  z-index: 200;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0;
}
.cookie.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.cookie__icon { font-size: 28px; flex-shrink: 0; }
.cookie__text { flex: 1; font-size: 13px; line-height: 1.55; }
.cookie__text a { color: #93c5fd; text-decoration: underline; }
.cookie__text a:hover { color: var(--white); }
.cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie__accept {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background .2s;
}
.cookie__accept:hover { background: var(--primary-dark); }
.cookie__decline {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  border: none;
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background .2s;
}
.cookie__decline:hover { background: rgba(255,255,255,.18); }

@media (max-width: 600px) {
  .cookie { flex-wrap: wrap; bottom: 16px; }
  .cookie__actions { width: 100%; }
  .cookie__accept, .cookie__decline { flex: 1; text-align: center; }
}

/* ── Scroll to top ────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(67,97,238,.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 90;
}
.scroll-top svg { width: 20px; height: 20px; }
.scroll-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ── Scroll animations ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--big,
  .feature-card--wide { grid-column: span 2; }
  .hero__inner { gap: 40px; }

  .modes__grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight__inner { gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Header mobile */
  .nav, .header__actions {
    display: none;
    position: fixed;
    inset: 68px 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px;
    z-index: 99;
    border-top: 1px solid var(--border);
  }
  .nav.open, .header__actions.open {
    display: flex;
  }
  .nav { padding-bottom: 0; }
  .header__actions {
    inset: auto;
    position: static;
    flex-direction: row;
    padding: 0 24px 24px;
    display: none;
    background: var(--white);
  }
  .header__actions.open {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    border-top: 1px solid var(--border);
    padding: 16px 24px;
  }
  .nav a { font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .burger { display: flex; }

  /* Hero mobile */
  .hero { padding: 56px 0 48px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: 1; }
  .mockup { max-width: 100%; }
  .fc1, .fc2 { display: none; }
  .hero__stats { gap: 16px; }
  .stat__num { font-size: 18px; }

  /* Modes */
  .modes__grid { grid-template-columns: 1fr 1fr; }
  .mode-card { min-height: 260px; }

  /* Spotlight */
  .spotlight__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .spotlight__text    { order: 1; }
  .spotlight__visual  { order: 2; }
  .sl-learn { grid-template-columns: 1fr; }
  .sl-learn__card { border-right: none; border-bottom: 1px solid var(--border); }
  .sl-learn__settings { flex-direction: row; flex-wrap: wrap; }
  .sl-test  { grid-template-columns: 1fr; }
  .sl-test__q { border-right: none; border-bottom: 1px solid var(--border); }
  .sl-test__side { flex-direction: row; flex-wrap: wrap; align-items: center; }

  /* Features */
  .features__grid { grid-template-columns: 1fr; }
  .feature-card--big, .feature-card--wide { grid-column: span 1; }

  /* Steps */
  .steps { flex-direction: column; gap: 12px; }
  .step__arrow { transform: rotate(90deg); }

  /* Pricing */
  .pricing__grid { grid-template-columns: 1fr; gap: 16px; }
  .plan--pro { transform: none; }

  /* CTA */
  .cta__box { padding: 48px 24px; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__links { flex-direction: column; gap: 24px; }

  /* Section title */
  .section__title { font-size: 26px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 34px; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { width: 100%; justify-content: center; }
  .plan__price { font-size: 36px; }
  .modes__grid { grid-template-columns: 1fr; }
  .spotlight__title { font-size: 26px; }
}
