/* =============================================================================
   PrepNa — Landing page styles
   Built on the PrepNa design system tokens (assets/colors_and_type.css)
   System: calm off-white wash · white glass cards · gradient reserved for
   hero / CTA / selected highlights · flat semantic colors for status.
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--prep-fg);
  background: var(--prep-bg);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(124,58,237,0.18); }

/* ---- the calm page wash + faint aurora blobs ------------------------------ */
.page-wash {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 88% -5%, rgba(168,85,247,0.10), transparent 60%),
    radial-gradient(46% 40% at -5% 12%, rgba(37,99,235,0.08), transparent 60%),
    linear-gradient(160deg, #fbfbfd 0%, #f4f6fc 48%, #f7f3fd 100%);
}
.aurora { position: fixed; border-radius: 9999px; filter: blur(90px); z-index: -1; pointer-events: none; opacity: .5; }
.aurora.a { width: 520px; height: 520px; top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(168,85,247,0.28), transparent 70%); animation: prep-float 9s ease-in-out infinite; }
.aurora.b { width: 460px; height: 460px; top: 620px; left: -160px;
  background: radial-gradient(circle, rgba(37,99,235,0.20), transparent 70%); animation: prep-float 11s ease-in-out infinite 1s; }

/* ---- layout primitives ---------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 72px 0; }
.center { text-align: center; }

.overline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--prep-violet-600);
}
.overline::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: var(--prep-grad-brand-x);
}
.overline.center-line { justify-content: center; }
.overline.center-line::after {
  content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--prep-grad-brand-x);
}

.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 900; letter-spacing: -0.025em; line-height: 1.08;
  margin: 16px 0 0;
  background: linear-gradient(100deg, #1e1b4b 0%, #4338ca 60%, #6d28d9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub {
  font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; color: var(--prep-fg-muted);
  margin: 18px 0 0; max-width: 620px;
}
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 14px; border: none;
  transition: transform .18s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; stroke-width: 2.4; }
.btn-primary { position: relative; color: #fff; background: var(--prep-grad-brand-x); box-shadow: 0 10px 26px rgba(99,52,200,0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(99,52,200,0.45); }
.btn-white { background: #fff; color: var(--prep-fg); border: 1px solid var(--prep-border); box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-2px); border-color: rgba(124,58,237,0.35); box-shadow: var(--shadow-lg); }
.btn-ghost { background: rgba(255,255,255,0.0); color: var(--prep-fg); border: 1px solid var(--prep-border); }
.btn-ghost:hover { background: rgba(124,58,237,0.05); border-color: rgba(124,58,237,0.3); }
.btn-onhero { background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.28); backdrop-filter: blur(8px); }
.btn-onhero:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 15px; }
.btn-block { width: 100%; }

/* link with trailing arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--prep-primary-600);
  transition: gap .18s var(--ease-out);
}
.link-arrow svg { width: 15px; height: 15px; stroke-width: 2.6; }
.link-arrow:hover { gap: 10px; }

/* ---- chips / badges ------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--prep-fg);
  background: #fff; border: 1px solid var(--prep-border);
  padding: 8px 14px; border-radius: 9999px; box-shadow: var(--shadow-sm);
}
.chip svg { width: 14px; height: 14px; stroke-width: 2.2; }
.chip .dot { width: 7px; height: 7px; border-radius: 9999px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 9999px; letter-spacing: .01em; }
.b-easy   { background: rgba(34,197,94,0.12);  color: #15803d; }
.b-medium { background: rgba(245,158,11,0.14); color: #b45309; }
.b-hard   { background: rgba(239,68,68,0.12);  color: #b91c1c; }
.b-topic  { background: rgba(37,99,235,0.10);  color: #1d4ed8; }
.b-neutral{ background: var(--prep-bg-soft);   color: var(--prep-fg-muted); }
.b-violet { background: rgba(124,58,237,0.10); color: #6d28d9; }

/* ---- generic glass card --------------------------------------------------- */
.card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px);
  border: 1px solid var(--prep-border-soft);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-lg);
}

/* icon chip (gradient tile holding a white lucide glyph) */
.ichip {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--prep-grad-brand); box-shadow: 0 8px 20px rgba(99,52,200,0.28);
}
.ichip svg { width: 24px; height: 24px; color: #fff; stroke-width: 2.1; }
.ichip.sm { width: 38px; height: 38px; border-radius: 11px; }
.ichip.sm svg { width: 19px; height: 19px; }
.ichip.practice  { background: var(--prep-grad-practice);  box-shadow: 0 8px 20px rgba(6,140,210,0.28); }
.ichip.learning  { background: var(--prep-grad-learning);  box-shadow: 0 8px 20px rgba(124,58,237,0.28); }
.ichip.contribute{ background: var(--prep-grad-contribute);box-shadow: 0 8px 20px rgba(16,185,129,0.28); }
.ichip.teach     { background: var(--prep-grad-teach);     box-shadow: 0 8px 20px rgba(245,158,11,0.28); }
.ichip.success   { background: var(--prep-grad-success); }
.ichip.warning   { background: var(--prep-grad-warning); }
.ichip.info      { background: var(--prep-grad-info); }

/* =============================================================================
   HEADER
   ============================================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent; backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s, backdrop-filter .3s;
}
.header.scrolled { border-bottom-color: var(--prep-border-soft); box-shadow: 0 8px 30px rgba(20,20,40,0.05); background: rgba(251,251,253,0.86); backdrop-filter: blur(22px) saturate(1.4); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; }
.brand-word { font-family: var(--font-brand); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.brand-word .na { background: linear-gradient(90deg, #a855f7, #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-word .prep { color: #0f172a; }

/* header-over-dark (top, not scrolled): white text on the dark hero */
.header:not(.scrolled) .brand-word .prep { color: #fff; }
.header:not(.scrolled) .nav a { color: rgba(255,255,255,0.78); }
.header:not(.scrolled) .nav a:hover { color: #fff; background: rgba(255,255,255,0.10); }
.header:not(.scrolled) .header-cta .login { color: #fff; }
.header:not(.scrolled) .header-cta .login:hover { background: rgba(255,255,255,0.10); }
.header:not(.scrolled) .menu-toggle { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.22); }
.header:not(.scrolled) .menu-toggle svg { stroke: #fff; }

.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav a {
  font-size: 14.5px; font-weight: 600; color: var(--prep-fg-muted);
  padding: 9px 14px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--prep-fg); background: rgba(124,58,237,0.06); }
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta .login { font-size: 14.5px; font-weight: 700; color: var(--prep-fg); padding: 10px 14px; border-radius: 10px; }
.header-cta .login:hover { background: rgba(0,0,0,0.04); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--prep-border); background: #fff; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; stroke: var(--prep-fg); stroke-width: 2.2; }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); z-index: 80;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  border-left: 1px solid var(--prep-border);
  transform: translateX(105%); transition: transform .32s var(--ease-out);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: -20px 0 60px rgba(20,20,40,0.18);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .mn-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mobile-nav a { font-size: 17px; font-weight: 700; color: var(--prep-fg); padding: 13px 12px; border-radius: 12px; }
.mobile-nav a:hover { background: rgba(124,58,237,0.06); }
.mobile-nav .mn-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.scrim { position: fixed; inset: 0; background: rgba(15,15,30,0.4); backdrop-filter: blur(2px); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* =============================================================================
   HERO
   ============================================================================= */
.hero {
  position: relative; padding: 116px 0 80px; overflow: hidden;
  background:
    radial-gradient(70% 80% at 78% 8%, rgba(168,85,247,0.34), transparent 60%),
    radial-gradient(60% 70% at 12% 92%, rgba(37,99,235,0.30), transparent 60%),
    linear-gradient(165deg, #16132e 0%, #1e1b4b 42%, #2a1b54 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 0;
  background: linear-gradient(to bottom, transparent, var(--prep-bg));
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1.1fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; color: #e9e6ff;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 16px; border-radius: 9999px; margin-bottom: 24px; backdrop-filter: blur(8px);
}
.hero-eyebrow svg { width: 15px; height: 15px; stroke-width: 2.2; color: #c4b5fd; }
.hero-eyebrow b { background: var(--prep-grad-brand-x); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.hero h1 {
  font-size: clamp(40px, 5.2vw, 66px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02;
  margin: 0 0 22px; color: #ffffff;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #c084fc 0%, #a78bfa 45%, #60a5fa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: rgba(226,224,245,0.78); max-width: 540px; margin: 0 0 32px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-chips .chip { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); color: #f1f0fb; backdrop-filter: blur(8px); box-shadow: none; }

/* hero stats bar */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 60px; position: relative; z-index: 1; }
.hero-stat {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-2xl); padding: 22px 24px; backdrop-filter: blur(10px);
  transition: transform .25s var(--ease-out), background .25s, border-color .25s;
}
.hero-stat:hover { transform: translateY(-3px); background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); }
.hero-stat .hs-top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.hero-stat .hs-top svg { width: 18px; height: 18px; stroke-width: 2.2; }
.hero-stat .hs-num { font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; letter-spacing: -0.025em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stat .hs-lbl { font-size: 13px; font-weight: 600; color: rgba(226,224,245,0.62); margin-top: 7px; }

/* hero product mockup collage */
.hero-stage { position: relative; min-height: 540px; }
.hero-stage .glow {
  position: absolute; inset: 6% 4% 8% 6%; border-radius: 40px; z-index: 0;
  background: var(--prep-grad-brand); filter: blur(60px); opacity: .26;
}

/* base mock card */
.mock {
  position: absolute; background: #fff; border: 1px solid var(--prep-border-soft);
  border-radius: 20px; box-shadow: var(--shadow-2xl); overflow: hidden;
}
.mock-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--prep-border-soft); }
.mock-dot { width: 9px; height: 9px; border-radius: 9999px; }
.mock-title { font-size: 11px; font-weight: 800; color: var(--prep-fg-muted); letter-spacing: .02em; text-transform: uppercase; }

/* builder mock (back-left, large) */
.mock-builder { top: 0; left: 0; width: 62%; z-index: 2; }
.mock-builder .mb-body { padding: 14px 15px 16px; }
.mb-row { margin-bottom: 12px; }
.mb-label { font-size: 9.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--prep-fg-subtle); margin-bottom: 7px; }
.mb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-tag { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 9999px; background: var(--prep-bg-soft); color: var(--prep-fg-muted); border: 1px solid var(--prep-border-soft); }
.mb-tag.on { background: rgba(124,58,237,0.10); color: #6d28d9; border-color: rgba(124,58,237,0.25); }
.mb-tag.on-blue { background: rgba(37,99,235,0.10); color: #1d4ed8; border-color: rgba(37,99,235,0.22); }
.mb-slider { height: 6px; border-radius: 9999px; background: var(--prep-bg-soft); position: relative; }
.mb-slider > span { position: absolute; left: 0; top: 0; height: 100%; border-radius: 9999px; background: var(--prep-grad-brand-x); }
.mb-slider > i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 9999px; background: #fff; border: 3px solid var(--prep-violet-600); transform: translate(-50%,-50%); box-shadow: var(--shadow-md); }
.mb-meta { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; color: var(--prep-fg-subtle); margin-top: 6px; }

/* analytics mock (top-right) */
.mock-analytics { top: 24px; right: 0; width: 46%; z-index: 3; }
.mock-analytics .ma-body { padding: 14px; }
.ma-stat { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ma-stat .lbl { font-size: 11px; font-weight: 700; color: var(--prep-fg-muted); }
.ma-stat .val { font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.ma-trend { font-size: 11px; font-weight: 800; color: var(--success); display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.ma-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.ma-bars > div { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--prep-grad-info); opacity: .85; }

/* question mock (lower middle) */
.mock-question { bottom: 0; left: 8%; width: 60%; z-index: 4; }
.mock-question .mq-body { padding: 13px 15px 15px; }
.mq-q { font-size: 12px; font-weight: 600; line-height: 1.45; color: var(--prep-fg); margin: 8px 0 11px; }
.mq-opt { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 10px; border: 1.5px solid var(--prep-border); font-size: 11.5px; font-weight: 600; margin-bottom: 6px; }
.mq-opt.sel { border-color: var(--prep-violet-600); background: rgba(124,58,237,0.05); }
.mq-opt .lt { width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; background: var(--prep-bg-soft); color: var(--prep-fg-muted); }
.mq-opt.sel .lt { background: var(--prep-grad-brand-x); color: #fff; }

/* reputation widget (floating, bottom-right) */
.mock-rep {
  bottom: 56px; right: -6px; width: 42%; z-index: 5;
  background: linear-gradient(150deg, #1e1b4b, #312e81 70%, #4c1d95);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 14px 15px;
  box-shadow: var(--shadow-2xl); color: #fff;
}
.mock-rep .mr-top { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.mock-rep .mr-av { width: 34px; height: 34px; border-radius: 9999px; background: linear-gradient(135deg,#a855f7,#ec4899); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.mock-rep .mr-name { font-size: 12.5px; font-weight: 800; }
.mock-rep .mr-role { font-size: 10px; color: rgba(255,255,255,0.6); font-weight: 600; }
.mock-rep .mr-stat { display: flex; align-items: center; justify-content: space-between; font-size: 11px; padding: 5px 0; }
.mock-rep .mr-stat span { color: rgba(255,255,255,0.65); }
.mock-rep .mr-stat b { font-weight: 800; font-variant-numeric: tabular-nums; }
.mock-rep .mr-badge { margin-top: 9px; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; padding: 5px 10px; border-radius: 9999px; background: linear-gradient(90deg,#22c55e,#10b981); }
.mock-rep .mr-badge svg { width: 12px; height: 12px; }

/* =============================================================================
   COMPARISON ("not another mock test app")
   ============================================================================= */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: rgba(255,255,255,0.8); backdrop-filter: blur(16px);
  border: 1px solid var(--prep-border-soft); border-radius: var(--radius-3xl);
  padding: 28px; box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2xl); border-color: rgba(124,58,237,0.2); }
.feature-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 20px 0 10px; }
.feature-card p { font-size: 14.5px; line-height: 1.6; color: var(--prep-fg-muted); }
.feature-card .fc-list { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.feature-card .fc-list li { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--prep-fg); }
.feature-card .fc-list svg { width: 16px; height: 16px; color: var(--success); stroke-width: 2.6; flex-shrink: 0; }

/* =============================================================================
   ECOSYSTEM — four workspace boards (Practice / Learning / Contribute / Teach)
   ============================================================================= */
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.board-card {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(16px);
  border: 1px solid var(--prep-border-soft); border-radius: var(--radius-3xl);
  padding: 26px; box-shadow: var(--shadow-md);
  transition: transform .28s var(--ease-out), box-shadow .28s, border-color .28s;
  display: flex; flex-direction: column;
}
.board-card::before {
  content: ""; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px;
  border-radius: 9999px; opacity: .14; filter: blur(8px); transition: opacity .28s;
}
.board-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2xl); border-color: rgba(124,58,237,0.2); }
.board-card:hover::before { opacity: .28; }
.board-card.b-practice::before   { background: var(--prep-grad-practice); }
.board-card.b-learning::before   { background: var(--prep-grad-learning); }
.board-card.b-contribute::before { background: var(--prep-grad-contribute); }
.board-card.b-teach::before      { background: var(--prep-grad-teach); }
.board-card .ichip { width: 52px; height: 52px; border-radius: 15px; margin-bottom: 20px; }
.board-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.board-card p { font-size: 13.5px; line-height: 1.6; color: var(--prep-fg-muted); flex: 1; margin-bottom: 18px; }
.board-card .who { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 5px 11px; border-radius: 9999px; margin-bottom: 18px; align-self: flex-start; }
.board-card .b-cta { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; transition: gap .18s var(--ease-out); }
.board-card .b-cta svg { width: 15px; height: 15px; stroke-width: 2.6; }
.board-card:hover .b-cta { gap: 11px; }
.b-practice .b-cta, .b-practice .who   { color: #0e7fd1; } .b-practice .who { background: rgba(6,140,210,0.10); }
.b-learning .b-cta, .b-learning .who   { color: #7c3aed; } .b-learning .who { background: rgba(124,58,237,0.10); }
.b-contribute .b-cta, .b-contribute .who { color: #15803d; } .b-contribute .who { background: rgba(16,185,129,0.12); }
.b-teach .b-cta, .b-teach .who         { color: #c2410c; } .b-teach .who { background: rgba(245,158,11,0.14); }

/* =============================================================================
   BUILDER SHOWCASE (interactive)
   ============================================================================= */
.builder-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.builder-panel { background: rgba(255,255,255,0.85); backdrop-filter: blur(18px); border: 1px solid var(--prep-border-soft); border-radius: var(--radius-3xl); box-shadow: var(--shadow-lg); padding: 26px; }
.builder-panel .bp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--prep-border-soft); }
.builder-panel .bp-head .t { font-size: 16px; font-weight: 800; }
.builder-panel .bp-head .s { font-size: 12.5px; color: var(--prep-fg-muted); margin-top: 2px; }
.bfield { margin-bottom: 22px; }
.bfield:last-child { margin-bottom: 0; }
.bfield > .lbl { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--prep-fg-subtle); margin-bottom: 11px; display: flex; align-items: center; gap: 7px; }
.bfield > .lbl svg { width: 13px; height: 13px; color: var(--prep-violet-600); stroke-width: 2.4; }
.opt-row { display: flex; flex-wrap: wrap; gap: 9px; }
.opt-pill {
  font-size: 13.5px; font-weight: 700; padding: 9px 15px; border-radius: 11px;
  background: #fff; color: var(--prep-fg-muted); border: 1.5px solid var(--prep-border);
  transition: all .16s var(--ease-out); user-select: none;
}
.opt-pill:hover { border-color: rgba(124,58,237,0.4); color: var(--prep-fg); }
.opt-pill.on { background: rgba(124,58,237,0.08); color: #6d28d9; border-color: var(--prep-violet-600); box-shadow: 0 0 0 3px rgba(124,58,237,0.10); }
.opt-pill.on .tick { display: inline-flex; }
.opt-pill .tick { display: none; width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }
.opt-pill .tick svg { width: 14px; height: 14px; stroke-width: 3; color: var(--prep-violet-600); }

/* range field */
.range-field { display: flex; align-items: center; gap: 16px; }
.range-field input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 9999px; background: var(--prep-bg-soft); outline: none; }
.range-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 9999px; background: #fff; border: 4px solid var(--prep-violet-600); box-shadow: var(--shadow-md); cursor: grab; transition: transform .12s; }
.range-field input[type=range]::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.range-field input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 9999px; background: #fff; border: 4px solid var(--prep-violet-600); box-shadow: var(--shadow-md); cursor: grab; }
.range-val { min-width: 96px; text-align: right; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.range-val small { font-size: 12px; color: var(--prep-fg-muted); font-weight: 700; }
.range-track-wrap { flex: 1; }

/* generated summary card */
.summary-card {
  position: relative; color: #fff; border-radius: var(--radius-3xl); overflow: hidden;
  background: linear-gradient(155deg, #1e1b4b 0%, #312e81 55%, #4c1d95 100%);
  padding: 26px; box-shadow: var(--shadow-2xl);
}
.summary-card::after { content: ""; position: absolute; top: -70px; right: -70px; width: 200px; height: 200px; border-radius: 9999px; background: radial-gradient(circle, rgba(236,72,153,0.35), transparent 70%); }
.summary-card .sc-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.summary-card .sc-top .ok { width: 26px; height: 26px; border-radius: 9999px; background: linear-gradient(135deg,#22c55e,#10b981); display: flex; align-items: center; justify-content: center; }
.summary-card .sc-top .ok svg { width: 15px; height: 15px; color: #fff; stroke-width: 3; }
.summary-card .sc-top .eyebrow { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.summary-card h3 { position: relative; z-index: 1; font-size: 24px; font-weight: 900; letter-spacing: -.02em; margin: 0 0 20px; }
.sc-stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.12); border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.sc-stat { background: rgba(255,255,255,0.04); padding: 14px 16px; }
.sc-stat .n { font-size: 26px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.sc-stat .n small { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.6); }
.sc-stat .k { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.65); margin-top: 5px; }
.sc-breakdown { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.sc-line { display: flex; align-items: center; gap: 11px; font-size: 13px; }
.sc-line .sw { width: 9px; height: 9px; border-radius: 9999px; flex-shrink: 0; }
.sc-line .sw-txt { color: rgba(255,255,255,0.82); flex: 1; }
.sc-line .sw-n { font-weight: 800; font-variant-numeric: tabular-nums; }
.sc-diff { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); margin-bottom: 20px; }
.sc-diff .lbl { font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 600; }
.sc-diff .v { font-size: 13px; font-weight: 800; }
.summary-card .btn { position: relative; z-index: 1; }

/* =============================================================================
   QUESTION SHOWCASE
   ============================================================================= */
.q-show-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.q-mock { background: rgba(255,255,255,0.85); backdrop-filter: blur(18px); border: 1px solid var(--prep-border-soft); border-radius: var(--radius-3xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.q-mock-top { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--prep-border-soft); background: rgba(255,255,255,0.5); }
.q-mock-top .timer { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: #b45309; background: rgba(245,158,11,0.12); padding: 7px 13px; border-radius: 10px; }
.q-mock-top .timer svg { width: 14px; height: 14px; stroke-width: 2.4; }
.q-mock-body { padding: 24px; }
.q-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.q-statement { font-size: 16px; line-height: 1.6; color: var(--prep-fg); margin: 0 0 8px; font-weight: 500; }
.q-data { background: var(--prep-bg-soft); border-radius: 12px; padding: 11px 15px; margin: 14px 0 20px; font-family: var(--font-mono); font-size: 13px; color: var(--prep-fg); }
.q-opts { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.q-opt { display: flex; align-items: center; gap: 13px; background: #fff; border: 1.5px solid var(--prep-border); border-radius: 13px; padding: 13px 16px; font-size: 14.5px; font-weight: 500; transition: all .15s var(--ease-out); }
.q-opt:hover { border-color: rgba(124,58,237,0.4); transform: translateX(2px); }
.q-opt.correct { border-color: #22c55e; background: rgba(34,197,94,0.06); box-shadow: 0 0 0 3px rgba(34,197,94,0.12); }
.q-opt .lt { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--prep-bg-soft); color: var(--prep-fg-muted); }
.q-opt.correct .lt { background: linear-gradient(135deg,#22c55e,#10b981); color: #fff; }
.q-opt .ck { margin-left: auto; color: #16a34a; display: none; }
.q-opt.correct .ck { display: inline-flex; }
.q-opt .ck svg { width: 18px; height: 18px; stroke-width: 2.6; }
.q-submit-row { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--prep-border-soft); }

/* explanation tabs panel */
.expl-panel { background: rgba(255,255,255,0.85); backdrop-filter: blur(18px); border: 1px solid var(--prep-border-soft); border-radius: var(--radius-3xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.expl-tabs { display: flex; gap: 2px; padding: 8px; background: rgba(255,255,255,0.5); border-bottom: 1px solid var(--prep-border-soft); overflow-x: auto; }
.expl-tab { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--prep-fg-muted); padding: 9px 13px; border-radius: 10px; border: none; background: transparent; transition: all .15s; white-space: nowrap; }
.expl-tab:hover { color: var(--prep-fg); background: rgba(0,0,0,0.03); }
.expl-tab.active { color: #6d28d9; background: rgba(124,58,237,0.10); }
.expl-body { padding: 22px; min-height: 280px; }
.expl-pane { display: none; }
.expl-pane.active { display: block; animation: fadeUp .35s var(--ease-out); }
.expl-pane h4 { font-size: 15px; font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; gap: 9px; }
.expl-step { display: flex; gap: 12px; margin-bottom: 14px; }
.expl-step .n { width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: rgba(124,58,237,0.10); color: #6d28d9; }
.expl-step .tx { font-size: 13.5px; line-height: 1.55; color: var(--prep-fg); }
.expl-step .tx b { font-weight: 800; }
.sol-card { background: #fff; border: 1px solid var(--prep-border-soft); border-radius: 16px; padding: 16px; }
.sol-card .sc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sol-av { width: 34px; height: 34px; border-radius: 9999px; background: linear-gradient(135deg,#3b82f6,#06b6d4); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.sol-meta .nm { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.sol-meta .rl { font-size: 11px; color: var(--prep-fg-muted); font-weight: 600; }
.sol-fast { margin-left: auto; font-size: 10.5px; font-weight: 800; color: #15803d; background: rgba(34,197,94,0.12); padding: 4px 10px; border-radius: 9999px; }
.sol-body { font-size: 13.5px; line-height: 1.55; color: var(--prep-fg); }
.sol-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--prep-border-soft); }
.sol-vote { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--prep-fg); }
.sol-vote svg { width: 15px; height: 15px; stroke-width: 2.2; color: var(--prep-violet-600); }
.sol-rep { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: #6d28d9; }
.sol-rep svg { width: 13px; height: 13px; }

/* =============================================================================
   AI + COMMUNITY EXPLANATION CARDS
   ============================================================================= */
.expl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.xcard { position: relative; background: rgba(255,255,255,0.82); backdrop-filter: blur(16px); border: 1px solid var(--prep-border-soft); border-radius: var(--radius-3xl); padding: 26px; box-shadow: var(--shadow-md); transition: transform .25s, box-shadow .25s; }
.xcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2xl); }
.xcard .xc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.xcard h3 { font-size: 17px; font-weight: 800; }
.xcard .xc-tag { font-size: 11px; font-weight: 800; color: var(--prep-fg-muted); }
.xcard .xc-demo { background: var(--prep-bg-soft); border: 1px solid var(--prep-border-soft); border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.xcard p { font-size: 14px; line-height: 1.6; color: var(--prep-fg-muted); }
.xc-demo .row { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.5; margin-bottom: 8px; }
.xc-demo .row:last-child { margin-bottom: 0; }
.xc-demo .row .mk { font-weight: 900; color: var(--prep-violet-600); flex-shrink: 0; }
.xc-demo.mono { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--prep-fg); }
.xc-demo .vote-mini { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--prep-fg-muted); }
.xc-demo .vote-mini svg { width: 14px; height: 14px; color: var(--success); }
.trust-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 34px; padding: 18px 22px; background: rgba(37,99,235,0.05); border: 1px solid rgba(37,99,235,0.14); border-radius: 18px; }
.trust-note svg { width: 20px; height: 20px; color: var(--prep-primary-600); flex-shrink: 0; stroke-width: 2.2; margin-top: 1px; }
.trust-note p { font-size: 14px; line-height: 1.55; color: var(--prep-fg); }
.trust-note b { font-weight: 800; }

/* =============================================================================
   ANALYTICS
   ============================================================================= */
.analytics-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.metric { background: rgba(255,255,255,0.85); backdrop-filter: blur(16px); border: 1px solid var(--prep-border-soft); border-radius: var(--radius-2xl); padding: 22px; box-shadow: var(--shadow-md); }
.metric .m-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.metric .m-lbl { font-size: 13px; font-weight: 700; color: var(--prep-fg-muted); }
.metric .ichip.sm { box-shadow: none; }
.improve { display: flex; align-items: baseline; gap: 10px; }
.improve .from { font-size: 18px; font-weight: 700; color: var(--prep-fg-subtle); text-decoration: line-through; text-decoration-color: var(--prep-fg-subtle); }
.improve .arrow { color: var(--success); display: inline-flex; }
.improve .arrow svg { width: 16px; height: 16px; stroke-width: 2.8; }
.improve .to { font-size: 30px; font-weight: 900; letter-spacing: -.02em; color: var(--prep-fg); font-variant-numeric: tabular-nums; }
.metric .m-trend { font-size: 12px; font-weight: 700; color: var(--success); margin-top: 8px; }
.metric .m-bar { height: 8px; border-radius: 9999px; background: var(--prep-bg-soft); overflow: hidden; margin-top: 14px; }
.metric .m-bar > span { display: block; height: 100%; border-radius: 9999px; }
/* spans */
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }

/* weak-area + next-action special cards */
.metric.weak { border-color: rgba(239,68,68,0.25); }
.weak-list { display: flex; flex-direction: column; gap: 10px; }
.weak-row { display: flex; align-items: center; gap: 11px; }
.weak-row .nm { font-size: 13.5px; font-weight: 700; flex: 1; }
.weak-row .pc { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.weak-row .wbar { width: 90px; height: 6px; border-radius: 9999px; background: var(--prep-bg-soft); overflow: hidden; }
.weak-row .wbar > span { display: block; height: 100%; border-radius: 9999px; }
.next-action { background: linear-gradient(150deg,#1e1b4b,#312e81 60%,#4c1d95); color: #fff; position: relative; overflow: hidden; }
.next-action::after { content:""; position:absolute; bottom:-60px; right:-50px; width:170px; height:170px; border-radius:9999px; background: radial-gradient(circle, rgba(168,85,247,0.4), transparent 70%); }
.next-action .na-eyebrow { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 10px; position: relative; z-index: 1; }
.next-action h3 { font-size: 21px; font-weight: 900; letter-spacing: -.02em; margin: 0 0 8px; position: relative; z-index: 1; }
.next-action p { font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 1.55; margin: 0 0 18px; position: relative; z-index: 1; }
.next-action .btn { position: relative; z-index: 1; }
.mistake-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mistake-strip .mn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 11px; background: #fff; border: 1px solid var(--prep-border-soft); }
.mistake-strip .mn svg { width: 15px; height: 15px; stroke-width: 2.4; }

/* =============================================================================
   COMMUNITY + REPUTATION
   ============================================================================= */
.roles-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 28px; }
.role-card { background: rgba(255,255,255,0.82); backdrop-filter: blur(14px); border: 1px solid var(--prep-border-soft); border-radius: var(--radius-2xl); padding: 22px 18px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(124,58,237,0.22); }
.role-card .ichip { margin: 0 auto 14px; }
.role-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.role-card p { font-size: 12px; color: var(--prep-fg-muted); line-height: 1.5; }
.rep-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: rgba(255,255,255,0.78); backdrop-filter: blur(16px); border: 1px solid var(--prep-border-soft); border-radius: var(--radius-3xl); padding: 32px; box-shadow: var(--shadow-lg); }
.rep-list { display: flex; flex-direction: column; gap: 4px; }
.rep-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--prep-border-soft); }
.rep-item:last-child { border-bottom: none; }
.rep-item .ri-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--prep-bg-soft); }
.rep-item .ri-ic svg { width: 19px; height: 19px; stroke-width: 2.2; }
.rep-item .ri-t { flex: 1; }
.rep-item .ri-t .nm { font-size: 14px; font-weight: 700; }
.rep-item .ri-t .ds { font-size: 12px; color: var(--prep-fg-muted); }
.rep-item .ri-v { font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rep-copy h3 { font-size: 22px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 14px; }
.rep-copy h3 .grad { background: var(--prep-grad-brand-x); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rep-copy p { font-size: 15px; line-height: 1.6; color: var(--prep-fg-muted); }

/* =============================================================================
   LEARNING LAYER
   ============================================================================= */
.learn-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.learn-card { scroll-snap-align: start; background: #fff; border: 1px solid var(--prep-border-soft); border-radius: var(--radius-3xl); overflow: hidden; box-shadow: var(--shadow-md); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.learn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2xl); }
.learn-visual { height: 130px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.learn-visual svg.deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.learn-visual .lv-glyph { position: relative; width: 52px; height: 52px; border-radius: 15px; background: rgba(255,255,255,0.22); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.3); }
.learn-visual .lv-glyph svg { width: 26px; height: 26px; color: #fff; stroke-width: 2; }
.learn-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.learn-body .lb-cat { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--prep-violet-600); margin-bottom: 6px; }
.learn-body h4 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.learn-body p { font-size: 13px; color: var(--prep-fg-muted); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.learn-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.learn-actions .la { font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--prep-border); color: var(--prep-fg); transition: all .15s; }
.learn-actions .la:hover { border-color: var(--prep-violet-600); color: #6d28d9; }
.learn-actions .la.primary { background: var(--prep-grad-brand-x); color: #fff; border-color: transparent; }

/* =============================================================================
   EXAM TRACKS
   ============================================================================= */
.exam-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.exam-card { background: rgba(255,255,255,0.82); backdrop-filter: blur(14px); border: 1px solid var(--prep-border-soft); border-radius: var(--radius-2xl); padding: 22px 20px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; }
.exam-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(124,58,237,0.22); }
.exam-card.live { border-color: rgba(124,58,237,0.3); background: rgba(124,58,237,0.04); }
.exam-card .ex-code { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; color: #fff; letter-spacing: -.02em; margin-bottom: 16px; }
.exam-card h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.exam-card .ex-meta { font-size: 12.5px; color: var(--prep-fg-muted); }
.exam-card .ex-status { position: absolute; top: 18px; right: 18px; font-size: 10px; font-weight: 800; padding: 4px 9px; border-radius: 9999px; }
.ex-status.now { background: linear-gradient(90deg,#22c55e,#10b981); color: #fff; }
.ex-status.soon { background: var(--prep-bg-soft); color: var(--prep-fg-muted); }

/* =============================================================================
   TRUST
   ============================================================================= */
.trust-section { position: relative; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-card { display: flex; gap: 15px; align-items: flex-start; background: rgba(255,255,255,0.8); backdrop-filter: blur(14px); border: 1px solid var(--prep-border-soft); border-radius: var(--radius-2xl); padding: 22px; box-shadow: var(--shadow-sm); }
.trust-card .tc-ic { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(37,99,235,0.08); }
.trust-card .tc-ic svg { width: 20px; height: 20px; color: var(--prep-primary-600); stroke-width: 2.2; }
.trust-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 5px; }
.trust-card p { font-size: 13px; color: var(--prep-fg-muted); line-height: 1.5; }

/* =============================================================================
   FINAL CTA
   ============================================================================= */
.final-cta { padding: 60px 0 100px; }
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--radius-4xl);
  background: linear-gradient(150deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%);
  padding: 64px 56px; text-align: center; color: #fff;
  box-shadow: 0 30px 80px rgba(49,46,129,0.4);
}
.cta-banner::before { content:""; position:absolute; top:-100px; left:-60px; width:340px; height:340px; border-radius:9999px; background: radial-gradient(circle, rgba(168,85,247,0.45), transparent 65%); }
.cta-banner::after { content:""; position:absolute; bottom:-120px; right:-60px; width:360px; height:360px; border-radius:9999px; background: radial-gradient(circle, rgba(37,99,235,0.4), transparent 65%); }
.cta-banner .inner { position: relative; z-index: 1; }
.cta-banner .overline { color: rgba(255,255,255,0.7); }
.cta-banner .overline::before, .cta-banner .overline.center-line::after { background: rgba(255,255,255,0.5); }
.cta-banner h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; margin: 16px auto 18px; max-width: 16ch; }
.cta-banner p { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 580px; margin: 0 auto 32px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-banner .btn-primary { background: #fff; color: #312e81; box-shadow: 0 14px 34px rgba(0,0,0,0.25); }
.cta-banner .btn-primary:hover { box-shadow: 0 20px 44px rgba(0,0,0,0.35); }

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer { border-top: 1px solid var(--prep-border-soft); padding: 56px 0 40px; background: rgba(255,255,255,0.5); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer .f-brand .brand { margin-bottom: 14px; }
.footer .f-brand p { font-size: 13.5px; color: var(--prep-fg-muted); line-height: 1.6; max-width: 280px; }
.footer h5 { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; color: var(--prep-fg-subtle); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 13.5px; font-weight: 600; color: var(--prep-fg-muted); }
.footer ul a:hover { color: var(--prep-fg); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--prep-border-soft); font-size: 13px; color: var(--prep-fg-subtle); flex-wrap: wrap; gap: 12px; }

/* =============================================================================
   MOBILE STICKY CTA
   ============================================================================= */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  border-top: 1px solid var(--prep-border-soft); box-shadow: 0 -8px 30px rgba(20,20,40,0.08);
  transform: translateY(120%); transition: transform .35s var(--ease-out);
}
.mobile-cta.show { transform: translateY(0); }
.mobile-cta .mc-text { flex: 1; }
.mobile-cta .mc-text .t { font-size: 13px; font-weight: 800; }
.mobile-cta .mc-text .s { font-size: 11px; color: var(--prep-fg-muted); }

/* =============================================================================
   REVEAL ANIMATION
   ============================================================================= */
.reveal { opacity: 1; }
html.js .reveal { transform: translateY(18px); transition: transform .7s var(--ease-out); }
html.js .reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { transform: none; transition: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stage { max-width: 560px; margin: 0 auto; }
  .builder-grid, .q-show-grid, .rep-panel { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: repeat(3, 1fr); }
  .exam-grid { grid-template-columns: repeat(3, 1fr); }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .header-cta .login, .header-cta .btn { display: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 760px) {
  .section { padding: 38px 0; }
  .section-tight { padding: 32px 0; }
  .container { padding: 0 18px; }
  .section-head { margin-bottom: 22px; }
  .section-title { font-size: clamp(24px, 6.6vw, 30px); }
  .section-sub { font-size: 15px; margin-top: 12px; }
  .overline { font-size: 11px; }

  /* card sections become horizontal swipe carousels — far less vertical scroll */
  .cards-3, .eco-grid, .expl-cards, .trust-grid, .roles-grid, .exam-grid {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 12px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: -18px; padding: 4px 18px 14px; scrollbar-width: none;
  }
  .cards-3::-webkit-scrollbar, .eco-grid::-webkit-scrollbar, .expl-cards::-webkit-scrollbar,
  .trust-grid::-webkit-scrollbar, .roles-grid::-webkit-scrollbar, .exam-grid::-webkit-scrollbar { display: none; }
  .cards-3 > *, .eco-grid > *, .expl-cards > *, .trust-grid > *, .roles-grid > *, .exam-grid > * {
    flex: 0 0 auto; scroll-snap-align: start;
  }
  .cards-3 > * { width: 80%; }
  .eco-grid > * { width: 76%; }
  .expl-cards > * { width: 82%; }
  .trust-grid > * { width: 80%; }
  .roles-grid > * { width: 43%; }
  .exam-grid > * { width: 40%; }
  .analytics-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 36px; }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 28px; }
  .footer .f-brand { grid-column: span 2; }
  .cta-banner { padding: 40px 24px; border-radius: var(--radius-3xl); }
  .mobile-cta { display: flex; }
  .sc-stats { grid-template-columns: 1fr 1fr; }

  /* hero compaction */
  .hero { padding: 90px 0 48px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 44px); margin-bottom: 16px; }
  .hero-sub { font-size: 15.5px; margin-bottom: 24px; }
  .hero-eyebrow { margin-bottom: 18px; }
  .hero-stage { min-height: 420px; }
  .hero-stat { padding: 15px 16px; }
  .hero-stat .hs-num { font-size: 24px; }
  .hero-stat .hs-lbl { font-size: 11.5px; margin-top: 4px; }

  /* tighter cards across the board */
  .feature-card { padding: 20px; }
  .feature-card h3 { font-size: 18px; margin: 14px 0 8px; }
  .feature-card p { font-size: 13.5px; }
  .feature-card .fc-list { margin-top: 12px; gap: 7px; }
  .board-card { padding: 20px; border-radius: var(--radius-2xl); }
  .board-card .ichip { width: 44px; height: 44px; margin-bottom: 14px; }
  .board-card h3 { font-size: 17px; }
  .board-card p { margin-bottom: 14px; }
  .builder-panel, .rep-panel { padding: 20px; }
  .summary-card { padding: 20px; }
  .metric { padding: 18px; }
  .q-mock-body, .expl-body { padding: 18px; }
  .trust-card { padding: 18px; }
  .role-card { padding: 16px 12px; }
  .role-card .ichip { width: 42px; height: 42px; margin-bottom: 10px; }
  .role-card h4 { font-size: 14px; }
  .exam-card { padding: 16px 14px; }
  .exam-card .ex-code { width: 40px; height: 40px; margin-bottom: 12px; font-size: 12px; }
  .ichip { width: 44px; height: 44px; }
  .learn-scroll { grid-auto-columns: 78%; gap: 12px; }
  .bfield { margin-bottom: 14px; }
  .bfield > .lbl { margin-bottom: 8px; }
  .builder-panel .bp-head { margin-bottom: 16px; padding-bottom: 14px; }
  .expl-step { margin-bottom: 10px; }
  .q-opts { gap: 8px; margin-bottom: 16px; }
  .hero-actions { margin-bottom: 22px; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 460px) {
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .exam-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .builder-panel .opt-pill { font-size: 12.5px; padding: 8px 12px; }
  .q-tags .badge { font-size: 10px; }
  .learn-scroll { grid-auto-columns: 84%; }
}
@media (max-width: 560px) {
  /* the overlapping product collage is cramped on phones — the real product
     is shown full-size in the builder & question sections below */
  .hero-stage { display: none; }
  .hero { padding: 88px 0 44px; }
  .hero-grid { gap: 0; }
}

/* =============================================================================
   ANCHOR OFFSET (fixed header) + DEFAULT STAT COLOR
   ============================================================================= */
.hero, .section, section[id] { scroll-margin-top: 88px; }
.hero-stat .hs-num { color: #fff; }

/* =============================================================================
   LIGHT HERO THEME  (toggle: html.theme-light)
   ============================================================================= */
.theme-light .hero {
  background:
    radial-gradient(58% 50% at 88% -6%, rgba(168,85,247,0.14), transparent 60%),
    radial-gradient(46% 42% at -4% 10%, rgba(37,99,235,0.11), transparent 60%),
    linear-gradient(160deg, #f8f7fe 0%, #eef1fb 52%, #f6f0fd 100%);
}
.theme-light .hero::after { background: linear-gradient(to bottom, transparent, var(--prep-bg)); }
.theme-light .hero-eyebrow { color: #4338ca; background: rgba(124,58,237,0.07); border-color: rgba(124,58,237,0.18); }
.theme-light .hero-eyebrow svg { color: var(--prep-violet-600); }
.theme-light .hero-eyebrow b { background: var(--prep-grad-brand-x); -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-light .hero h1 { color: #15132e; }
.theme-light .hero h1 .grad { background: linear-gradient(100deg, #7c3aed 0%, #4f46e5 45%, #2563eb 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-light .hero-sub { color: var(--prep-fg-muted); }
.theme-light .hero-chips .chip { background: rgba(255,255,255,0.82); border-color: var(--prep-border); color: var(--prep-fg); box-shadow: var(--shadow-sm); backdrop-filter: none; }
.theme-light .hero-stat { background: rgba(255,255,255,0.82); border-color: var(--prep-border-soft); box-shadow: var(--shadow-md); }
.theme-light .hero-stat:hover { background: #fff; border-color: rgba(124,58,237,0.2); }
.theme-light .hero-stat .hs-num { color: var(--prep-fg); }
.theme-light .hero-stat .hs-lbl { color: var(--prep-fg-muted); }
.theme-light .btn-onhero { background: #fff; color: var(--prep-fg); border-color: var(--prep-border); box-shadow: var(--shadow-sm); }
.theme-light .btn-onhero:hover { background: #fff; border-color: rgba(124,58,237,0.35); box-shadow: var(--shadow-lg); }
/* header over a LIGHT hero → dark text at top */
.theme-light .header:not(.scrolled) .brand-word .prep { color: #0f172a; }
.theme-light .header:not(.scrolled) .nav a { color: var(--prep-fg-muted); }
.theme-light .header:not(.scrolled) .nav a:hover { color: var(--prep-fg); background: rgba(124,58,237,0.06); }
.theme-light .header:not(.scrolled) .header-cta .login { color: var(--prep-fg); }
.theme-light .header:not(.scrolled) .header-cta .login:hover { background: rgba(0,0,0,0.04); }
.theme-light .header:not(.scrolled) .menu-toggle { background: #fff; border-color: var(--prep-border); }
.theme-light .header:not(.scrolled) .menu-toggle svg { stroke: var(--prep-fg); }

/* =============================================================================
   THEME TOGGLE CONTROL
   ============================================================================= */
.theme-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 58;
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  border: 1px solid var(--prep-border); border-radius: 9999px; box-shadow: var(--shadow-lg);
}
.theme-toggle button {
  border: none; background: transparent; padding: 8px 14px; border-radius: 9999px;
  font-size: 12.5px; font-weight: 800; color: var(--prep-fg-muted);
  display: flex; align-items: center; gap: 6px; transition: color .15s, background .15s;
}
.theme-toggle button svg { width: 14px; height: 14px; stroke-width: 2.4; }
.theme-toggle button:hover { color: var(--prep-fg); }
.theme-toggle button.active { background: var(--prep-grad-brand-x); color: #fff; }
@media (max-width: 760px) { .theme-toggle { display: none; } }
