/* ==========================================================================
   EduScale AI - design system
   Modern AI + education aesthetic: deep blue, soft purple, generous whitespace.
   Status colours (green / orange / red) are reserved and ALWAYS ship with an
   icon and a text label, never colour alone.
   ========================================================================== */

:root {
  /* Brand */
  --blue-900: #12245c;
  --blue-800: #17307a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbe6fe;
  --blue-50: #eef4ff;

  --purple-700: #6d28d9;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --purple-100: #ede4ff;
  --purple-50: #f5f0ff;

  /* Status - fixed, never themed */
  --good: #0ca30c;
  --good-soft: #e6f6e6;
  --good-ink: #0a6b1f;

  --warn: #e2761b;
  --warn-soft: #fdf0e2;
  --warn-ink: #9a4c07;

  --crit: #d03b3b;
  --crit-soft: #fbe9e9;
  --crit-ink: #9b1f1f;

  /* Ink + surfaces */
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6eaf2;
  --line-soft: #eff2f8;
  --surface: #ffffff;
  --canvas: #f7f9fc;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 2px 8px rgba(18, 36, 92, .06);
  --shadow: 0 10px 30px rgba(18, 36, 92, .08);
  --shadow-lg: 0 24px 60px rgba(18, 36, 92, .12);

  --gradient: linear-gradient(135deg, var(--blue-700) 0%, var(--purple-600) 100%);
  --gradient-soft: linear-gradient(135deg, var(--blue-50) 0%, var(--purple-50) 100%);

  --max: 1180px;
  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 750; }

p { margin: 0 0 1rem; }
a { color: var(--blue-700); }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--surface); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--purple-700);
  background: var(--purple-50);
  border: 1px solid #e4dbfa;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.lead { font-size: 1.13rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 26px;
  font: inherit;
  font-weight: 700;
  font-size: .96rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn:focus-visible { outline: 3px solid var(--purple-500); outline-offset: 2px; }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37, 99, 235, .34); }

.btn--ghost {
  background: var(--surface);
  color: var(--blue-800);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { border-color: var(--blue-500); transform: translateY(-2px); }

.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--light:hover { background: rgba(255,255,255,.24); }

.btn--sm { padding: 9px 18px; font-size: .87rem; }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 1.03rem; }

/* ------------------------------------------------------------------- Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(109, 40, 217, .3);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav__links a.is-active { color: var(--blue-700); background: var(--blue-50); }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ----------------------------------------------------------------- Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--line-soft);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -160px -260px auto;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, .18), transparent 62%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0 92px;
  position: relative;
  z-index: 1;
}

.hero h1 { margin-bottom: 18px; }
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(18, 36, 92, .1);
}
.hero__stat strong { display: block; font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; }
.hero__stat span { font-size: .84rem; color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------- Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card--flat { box-shadow: none; }
.card--pad-lg { padding: 34px; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--2-1 { grid-template-columns: 1.6fr 1fr; }
.grid--1-2 { grid-template-columns: 1fr 1.7fr; }

/* -------------------------------------------------------- How it works */
.steps { counter-reset: step; position: relative; }

.step__num {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--purple-600);
  background: var(--purple-50);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* --------------------------------------------------------- Compare card */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.compare__panel { border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.compare__panel--bad { background: #fdfafa; border-color: #f2dede; }
.compare__panel--good { background: #f7fbf7; border-color: #d9eed9; }

.compare__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.compare__tag--bad { color: var(--crit-ink); }
.compare__tag--good { color: var(--good-ink); }

.compare__quote { font-size: 1.16rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.tick-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.tick-list .ico { flex: 0 0 auto; margin-top: 2px; }

/* ----------------------------------------------------------- Flow steps */
.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px 0 0;
  font-size: .84rem;
  font-weight: 700;
  color: var(--muted);
}
.flow__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--muted);
}
.flow__item.is-current { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.flow__item.is-done { color: var(--blue-700); border-color: var(--blue-100); background: var(--blue-50); }
.flow__sep { color: #cbd5e1; }

/* ---------------------------------------------------------- Page header */
.page-head {
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 46px 0 40px;
}
.page-head h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.7rem); margin-bottom: 12px; }
.page-head p { color: var(--ink-2); max-width: 620px; margin: 0; }

/* ----------------------------------------------------------------- Form */
.form-grid { display: grid; gap: 20px; }

.field label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 7px;
  color: var(--ink);
}
.field .hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }

.select-wrap { position: relative; }
.select-wrap svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }

select, input[type="text"], input[type="number"] {
  width: 100%;
  appearance: none;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 44px 14px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"], input[type="number"] { padding-right: 16px; }

select:hover { border-color: #cfd9ea; }
select:focus, input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--blue-500); color: var(--blue-700); }
.chip.is-active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

.summary-card { background: var(--gradient); color: #fff; border: none; }
.summary-card h3 { color: #fff; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  font-size: .95rem;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row span { opacity: .78; font-weight: 600; }
.summary-row strong { font-weight: 750; }

/* -------------------------------------------------------------- Metrics */
.score-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: center;
}

.gauge { position: relative; width: 190px; height: 190px; flex: 0 0 auto; }
.gauge svg { transform: rotate(-90deg); display: block; }
.gauge__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.gauge__value { font-size: 2.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.gauge__label { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.stat__label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 7px; }
.stat__value { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.stat__note { font-size: .84rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------- Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: .8rem;
  font-weight: 750;
  border: 1px solid transparent;
}
.badge--good { background: var(--good-soft); color: var(--good-ink); border-color: #cbe8cb; }
.badge--warn { background: var(--warn-soft); color: var(--warn-ink); border-color: #f5ddc0; }
.badge--crit { background: var(--crit-soft); color: var(--crit-ink); border-color: #f3d2d2; }
.badge--info { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }
.badge--purple { background: var(--purple-50); color: var(--purple-700); border-color: #e4dbfa; }

/* ------------------------------------------------------ Category panels */
.cat {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--line);
}
.cat--good { border-top-color: var(--good); }
.cat--warn { border-top-color: var(--warn); }
.cat--crit { border-top-color: var(--crit); }

.cat__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cat__icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; flex: 0 0 auto;
  font-weight: 800; font-size: 1rem;
}
.cat--good .cat__icon { background: var(--good-soft); color: var(--good-ink); }
.cat--warn .cat__icon { background: var(--warn-soft); color: var(--warn-ink); }
.cat--crit .cat__icon { background: var(--crit-soft); color: var(--crit-ink); }
.cat__head h3 { margin: 0; }
.cat__count { font-size: .84rem; color: var(--muted); font-weight: 600; margin: 0 0 16px; }

.topic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.topic-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--canvas);
  border: 1px solid var(--line-soft);
  font-weight: 650;
  font-size: .95rem;
}
.topic-list .pct { font-variant-numeric: tabular-nums; font-weight: 750; color: var(--ink-2); font-size: .9rem; }

/* ----------------------------------------------------------- Bar charts */
.chart { display: grid; gap: 16px; }

.bar-row { display: grid; grid-template-columns: 190px 1fr 54px; gap: 14px; align-items: center; }
.bar-row__label { font-size: .93rem; font-weight: 650; color: var(--ink-2); }
.bar-row__track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--line-soft);
  overflow: hidden;
}
.bar-row__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: var(--blue-600);
  transition: width 1s cubic-bezier(.22,.9,.3,1);
}
.bar-row__fill.is-good { background: var(--good); }
.bar-row__fill.is-warn { background: var(--warn); }
.bar-row__fill.is-crit { background: var(--crit); }
.bar-row__value { font-variant-numeric: tabular-nums; font-weight: 750; font-size: .9rem; text-align: right; color: var(--ink); }

.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.legend__item { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 650; color: var(--muted); }
.legend__swatch { width: 12px; height: 12px; border-radius: 4px; }

/* Vertical column chart (weekly activity) */
.cols { display: flex; align-items: flex-end; gap: 12px; height: 168px; padding-top: 8px; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.col__bar {
  width: 100%;
  max-width: 40px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-700));
  height: 0;
  transition: height .9s cubic-bezier(.22,.9,.3,1);
  position: relative;
}
.col__bar[data-accent="purple"] { background: linear-gradient(180deg, var(--purple-500), var(--purple-700)); }
.col__label { font-size: .78rem; font-weight: 700; color: var(--muted); }

/* --------------------------------------------------------- AI callout */
.ai-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f2f6ff 0%, #f8f4ff 100%);
  border: 1px solid #e2e6f7;
}
.ai-note__icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--gradient);
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(109, 40, 217, .25);
}
.ai-note h3 { margin-bottom: 6px; font-size: 1.02rem; }
.ai-note p { margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.65; }
.ai-note p em { font-style: normal; font-weight: 750; color: var(--ink); }

/* ------------------------------------------------------- Priority cards */
.priority {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: flex-start;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.priority:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.priority--high { border-left-color: var(--crit); }
.priority--medium { border-left-color: var(--warn); }
.priority--low { border-left-color: var(--good); }

.priority__num {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #c3cddf;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.priority__body h3 { margin-bottom: 4px; }
.priority__body p { margin: 8px 0 0; color: var(--muted); font-size: .96rem; }
.priority__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.priority__side { text-align: right; min-width: 110px; }
.priority__side .pct { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.priority__side .cap { font-size: .78rem; color: var(--muted); font-weight: 650; }

/* --------------------------------------------------------- Journey path */
.journey { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 12px; }
.journey::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--purple-500));
  border-radius: 999px;
  opacity: .28;
}
.journey__node { position: relative; text-align: center; }
.journey__dot {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 3px solid var(--blue-100);
  color: var(--blue-700);
  font-weight: 800;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-xs);
}
.journey__node.is-active .journey__dot { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: 0 10px 22px rgba(109,40,217,.28); }
.journey__node h4 { margin: 0 0 6px; font-size: .98rem; font-weight: 750; }
.journey__node p { margin: 0; font-size: .87rem; color: var(--muted); }

/* ------------------------------------------------------------- Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.timeline li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.timeline li:last-child { border-bottom: none; }
.timeline__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-500); }
.timeline__dot.is-good { background: var(--good); }
.timeline__dot.is-warn { background: var(--warn); }
.timeline__dot.is-crit { background: var(--crit); }
.timeline strong { font-size: .95rem; font-weight: 700; }
.timeline .when { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Next card */
.next-card {
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.next-card::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
}
.next-card h3 { color: #fff; margin-bottom: 8px; font-size: 1.5rem; }
.next-card p { color: rgba(255,255,255,.85); position: relative; z-index: 1; }
.next-card .badge { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.3); }

/* -------------------------------------------------------------- Table */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 750; }
table.data td { font-weight: 600; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

details.table-toggle { margin-top: 20px; }
details.table-toggle summary {
  cursor: pointer;
  font-size: .87rem;
  font-weight: 700;
  color: var(--blue-700);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-50);
}
details.table-toggle summary::-webkit-details-marker { display: none; }

/* --------------------------------------------------------------- CTA */
.cta {
  background: var(--blue-900);
  background-image: radial-gradient(circle at 12% 20%, rgba(124,58,237,.55), transparent 46%),
                    radial-gradient(circle at 88% 78%, rgba(37,99,235,.5), transparent 44%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.78); max-width: 520px; margin: 0 auto 26px; }

/* ------------------------------------------------------------- Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 42px 0; margin-top: 20px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer p { margin: 0; font-size: .88rem; color: var(--muted); }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { font-size: .88rem; color: var(--muted); text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--blue-700); }

.proto-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--canvas);
  border: 1px dashed var(--line);
  padding: 6px 13px;
  border-radius: 999px;
}

/* ------------------------------------------------------------ Tooltip */
.tip {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  font-size: .8rem;
  font-weight: 650;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity .14s ease;
  white-space: nowrap;
}
.tip.is-visible { opacity: 1; }

/* ------------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------- Responsive */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .grid--3, .grid--2, .grid--2-1, .grid--1-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .journey::before { display: none; }
  .nav__toggle { display: inline-grid; }
  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { order: 3; }
  .nav__cta { order: 2; margin-left: auto; }
  .nav__links { order: 4; }
}

@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .container { padding-inline: 18px; }
  .score-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .stat-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr 46px; }
  .bar-row__label { grid-column: 1 / -1; margin-bottom: -6px; }
  .priority { grid-template-columns: auto 1fr; }
  .priority__side { grid-column: 2; text-align: left; }
  .journey { grid-template-columns: 1fr; }
  .cta { padding: 44px 24px; }
  .card, .cat { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  display: inline-block;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
