/* ==========================================================================
   School in Stats — marketing site
   Design tokens first; every component below reads from them.
   ========================================================================== */

:root {
  /* Brand — taken from the app: ScIS green on near-black (lib/core/themes/colors.dart). */
  --c-brand: #1db954;          /* fills: primary buttons, logo, highlights */
  --c-brand-hover: #1ed760;
  --c-on-brand: #06200f;       /* text on brand green (8:1) */
  --c-primary: #0e7a3a;        /* text-safe green for links, icons, eyebrows (5.3:1) */
  --c-primary-hover: #0a5f2c;
  --c-primary-soft: #e8f7ee;
  --c-primary-ink: #083d1e;
  --c-secondary: #1db954;
  --c-secondary-ink: #0e7a3a;
  --c-secondary-soft: #e8f7ee;
  --c-accent: #d97706;
  --c-accent-soft: #fff4e0;

  --c-bg: #ffffff;
  --c-surface: #f6f7f6;
  --c-surface-2: #eceeec;
  --c-text: #121212;
  --c-muted: #4d524f;
  --c-subtle: #6b706d;
  --c-border: #e0e3e0;
  --c-border-strong: #c7ccc8;
  --c-ink: #121212;            /* dark sections — the app's dark background */
  --c-ink-2: #1c1c1c;
  --c-ink-line: #2e2e2e;
  --c-on-ink: #d9d9d9;
  --c-on-ink-muted: #a8a8a8;

  --c-success: #0e7a3a;
  --c-warning: #b45309;
  --c-error: #c0262d;
  --c-error-soft: #fdecec;

  /* CBC performance-level colours (always paired with the level code). */
  --c-lvl-ee: #0e7a3a;  --c-lvl-ee-bg: #e3f5ea;
  --c-lvl-me: #1f5fbf;  --c-lvl-me-bg: #e8effb;
  --c-lvl-ae: #a15c00;  --c-lvl-ae-bg: #fff1dc;
  --c-lvl-be: #b3262d;  --c-lvl-be-bg: #fdeaea;

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --fs-display: clamp(2.25rem, 1.35rem + 3.6vw, 3.75rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-caption: 0.8125rem;

  /* Spacing scale (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;
  --section-y: clamp(64px, 5rem + 3vw, 120px);
  --gutter: clamp(16px, 4vw, 32px);

  /* Radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  /* Shadows — restrained */
  --sh-sm: 0 1px 2px rgba(18, 18, 18, .06);
  --sh-md: 0 1px 2px rgba(18, 18, 18, .05), 0 6px 18px -6px rgba(18, 18, 18, .12);
  --sh-lg: 0 2px 6px rgba(18, 18, 18, .06), 0 24px 48px -16px rgba(18, 18, 18, .22);

  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); color: var(--c-text); line-height: 1.15; margin: 0 0 var(--s-4); letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-hover); }
strong { font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
.num, table, .kpi__value, .score { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }
.section--ink :focus-visible, .final-cta :focus-visible, .site-footer :focus-visible { outline-color: #4ade80; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--c-primary); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: var(--s-3); color: #fff; }
main:focus { outline: none; }

.icon { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------ Layout */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--s-12) var(--section-y); }
.section--alt { background: var(--c-surface); }
.section--ink { background: var(--c-ink); color: var(--c-on-ink); }
.section--ink h2, .section--ink h3 { color: #fff; }
.center { text-align: center; }
.center-link { text-align: center; margin-top: var(--s-10); color: var(--c-muted); }
.split { display: grid; gap: var(--s-10); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.2fr 1fr; gap: var(--s-16); align-items: start; }
  .split--center { align-items: center; }
}

/* ------------------------------------------------------- Typography */
.eyebrow {
  font-size: var(--fs-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: var(--s-3);
}
.section--ink .eyebrow { color: #4ade80; }
.lead { font-size: var(--fs-lead); color: var(--c-muted); line-height: 1.55; }
.section--ink .lead { color: var(--c-on-ink-muted); }
.text-brand { color: var(--c-primary); }
.small { font-size: var(--fs-small); color: var(--c-muted); }
.updated { color: var(--c-subtle); font-size: var(--fs-small); }

.section-heading { max-width: 720px; margin: 0 auto var(--s-12); text-align: center; }
.section-heading--left { text-align: left; margin-inline: 0; }
.section-heading .lead { margin-bottom: 0; }

.prose { font-size: var(--fs-body); }
.prose h2 { font-size: 1.375rem; margin-top: var(--s-10); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; margin-bottom: var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose p, .prose li { color: #2b2f2d; }

/* ---------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--c-bg); --btn-fg: var(--c-text); --btn-bd: var(--c-border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { --btn-bg: var(--c-brand); --btn-fg: var(--c-on-brand); --btn-bd: var(--c-brand); box-shadow: 0 1px 2px rgba(14, 122, 58, .2); }
.btn--primary:hover { --btn-bg: var(--c-brand-hover); --btn-bd: var(--c-brand-hover); --btn-fg: var(--c-on-brand); }
.btn--secondary:hover { --btn-bd: var(--c-primary); --btn-fg: var(--c-primary); }
.btn--ghost { --btn-bd: transparent; --btn-bg: transparent; --btn-fg: var(--c-primary); }
.btn--ghost:hover { --btn-bg: var(--c-primary-soft); }
.btn--whatsapp { --btn-bg: var(--c-ink); --btn-fg: #fff; --btn-bd: var(--c-ink); }
.btn--whatsapp:hover { --btn-bg: #2a2a2a; --btn-bd: #2a2a2a; --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: #e8e8e8; --btn-bd: #e8e8e8; --btn-fg: var(--c-ink); }
.btn--on-dark { --btn-bg: #fff; --btn-fg: var(--c-primary); --btn-bd: #fff; box-shadow: none; }
.btn--on-dark:hover { --btn-bg: var(--c-primary-soft); --btn-bd: var(--c-primary-soft); --btn-fg: var(--c-primary-hover); }
.btn--lg { min-height: 54px; padding: 0 var(--s-6); font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 0 var(--s-4); font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .7; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row--center { justify-content: center; }
@media (max-width: 479px) {
  .btn-row > .btn { width: 100%; white-space: normal; text-align: center; }
}

.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none;
  min-height: 44px; color: var(--c-primary);
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 16px; height: 16px; transition: transform .15s var(--ease); }
.text-link:hover .icon { transform: translateX(2px); }
.text-link--green { color: var(--c-secondary-ink); }
.text-link--green:hover { color: var(--c-primary-hover); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md);
  border: 1px solid var(--c-border); background: var(--c-bg); cursor: pointer; color: var(--c-text);
}
.icon-btn:hover { background: var(--c-surface); }

/* ---------------------------------------------------- Badges & pills */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-caption); font-weight: 600; background: var(--c-surface-2); color: var(--c-muted);
  white-space: nowrap;
}
.badge--soft { background: var(--c-primary-soft); color: var(--c-primary-ink); }

.status-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: var(--r-pill);
  background: var(--c-accent-soft); color: #7a3f00; border: 1px solid #f6d9a8;
  font-size: var(--fs-caption); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.status-badge__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.status-badge__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--c-accent);
  opacity: 0; animation: pulse 2.4s var(--ease) infinite;
}
.status-badge--dark { background: rgba(255, 255, 255, .08); color: #ffd79a; border-color: rgba(255, 215, 154, .3); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.lvl {
  display: inline-block; min-width: 38px; padding: 1px 6px; border-radius: var(--r-sm); text-align: center;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em; font-style: normal;
}
.lvl--ee { color: var(--c-lvl-ee); background: var(--c-lvl-ee-bg); }
.lvl--me { color: var(--c-lvl-me); background: var(--c-lvl-me-bg); }
.lvl--ae { color: var(--c-lvl-ae); background: var(--c-lvl-ae-bg); }
.lvl--be { color: var(--c-lvl-be); background: var(--c-lvl-be-bg); }
.lvl--none { color: var(--c-subtle); background: var(--c-surface-2); }

.pill-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); list-style: none; margin-top: var(--s-10); }
.pill-list li {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4);
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-small);
}
.pill-list .icon { width: 18px; height: 18px; color: var(--c-primary); }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.tag-list li { padding: 6px 12px; border-radius: var(--r-pill); background: var(--c-bg); border: 1px solid var(--c-border); font-size: var(--fs-small); font-weight: 500; }

.sample-note { font-size: var(--fs-caption); color: var(--c-subtle); text-align: center; margin-top: var(--s-4); }

/* ---------------------------------------------------------- Cards */
.card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--sh-sm); }
.card--soft { background: var(--c-primary-soft); border-color: #c4e8d2; box-shadow: none; }
.card h3 { margin-bottom: var(--s-3); }

.icon-tile {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--c-primary-soft); color: var(--c-primary); margin-bottom: var(--s-4);
}
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile--lg { width: 52px; height: 52px; border-radius: 14px; }
.icon-tile--lg .icon { width: 26px; height: 26px; }
.icon-tile--success { background: var(--c-secondary-soft); color: var(--c-success); }

.feature-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } .feature-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.feature-card {
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-6);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.feature-card:hover { border-color: #a9dcbd; box-shadow: var(--sh-md); }
.feature-card h3 { margin-bottom: var(--s-2); }
.feature-card p { color: var(--c-muted); font-size: var(--fs-small); }

.checklist { list-style: none; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--c-secondary-ink); }
@media (min-width: 720px) { .checklist--2col { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); } }

/* ------------------------------------------------------------ Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-border); box-shadow: 0 1px 0 rgba(18, 18, 18, .02); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: 100%; }
.site-header__actions { display: flex; align-items: center; gap: var(--s-2); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-primary); min-height: 44px; flex: none; }
.logo:hover { color: var(--c-primary); }
.logo__mark { width: 36px; height: 36px; border-radius: 9px; }
.logo__word { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--c-text); white-space: nowrap; }
.logo__word span { font-weight: 700; color: var(--c-muted); }

.nav { display: none; }
.nav__links { display: flex; gap: 2px; list-style: none; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-md);
  color: var(--c-muted); font-weight: 500; font-size: .9688rem; text-decoration: none; white-space: nowrap;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--c-text); background: var(--c-surface); }
.nav-cta { display: none; }
@media (min-width: 560px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
}
@media (max-width: 359px) {
  .logo__word { font-size: 1rem; }
  .logo__mark { width: 30px; height: 30px; }
}

.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: var(--c-bg); border-bottom: 1px solid var(--c-border); box-shadow: var(--sh-lg);
  padding: var(--s-2) var(--gutter) var(--s-6);
  animation: menu-in .2s var(--ease);
}
.mobile-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu__links { list-style: none; }
.mobile-menu__links a {
  display: flex; align-items: center; min-height: 52px; font-weight: 600; font-size: 1.0625rem; color: var(--c-text);
  text-decoration: none; border-bottom: 1px solid var(--c-border);
}
.mobile-menu__cta { display: grid; gap: var(--s-4); padding-top: var(--s-6); }
.mobile-menu__cta .btn-row { flex-direction: column; }
.mobile-menu__cta .btn { width: 100%; }
.menu-overlay { position: fixed; inset: var(--header-h) 0 0; z-index: 48; background: rgba(18, 18, 18, .35); }
.menu-overlay[hidden] { display: none; }
body.menu-open { overflow: hidden; }

/* -------------------------------------------------------------- Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); background: linear-gradient(180deg, #f1f8f3 0%, #fff 70%); overflow: hidden; }
.hero__grid { display: grid; gap: var(--s-12); align-items: center; }
.hero__copy .status-badge { margin-bottom: var(--s-6); }
.hero h1 { font-size: var(--fs-display); margin-bottom: var(--s-5); }
.hero__lead { max-width: 580px; margin-bottom: var(--s-8); }
.hero__note { margin-top: var(--s-5); font-size: var(--fs-small); color: var(--c-muted); }
.hero__visual { position: relative; display: grid; justify-items: center; }
.hero__phones { display: grid; width: min(520px, 100%); margin-inline: auto; }
.hero__phones > .phone { grid-area: 1 / 1; }
.hero__phones .phone--front { justify-self: end; width: 62%; position: relative; z-index: 1; }
.hero__phones .phone--back { justify-self: start; width: 54%; margin-top: 14%; transform: rotate(-5deg); opacity: .95; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-12); }
}

/* ------------------------------------------------------- Trust strip */
.trust-strip { border-block: 1px solid var(--c-border); background: var(--c-bg); }
.trust-strip__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-8); list-style: none;
  padding-block: var(--s-5);
}
.trust-strip__list li { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--fs-small); color: #2b2f2d; }
.trust-strip__list .icon { color: var(--c-primary); }
@media (max-width: 639px) {
  .trust-strip__list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .trust-strip__list li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
}

/* ---------------------------------------------------------- Problem */
.workflow { display: grid; gap: var(--s-8); }
.workflow__steps { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 560px) { .workflow__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .workflow__steps { grid-template-columns: repeat(4, 1fr); } }
.workflow__step {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: var(--s-3);
  align-items: center; padding: var(--s-4); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-bg);
}
.workflow__num {
  grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-surface-2); font-weight: 700; font-size: var(--fs-small); color: var(--c-muted);
}
.workflow__label { font-weight: 600; }
.workflow__tag { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-caption); font-weight: 600; color: var(--c-secondary-ink); }
.workflow__tag .icon { width: 14px; height: 14px; }
.workflow__tag--you { color: var(--c-primary); }
.workflow__step--auto .workflow__label { text-decoration: line-through; text-decoration-color: rgba(18, 18, 18, .35); color: var(--c-muted); }
.workflow__step--auto .workflow__num { background: var(--c-secondary-soft); color: var(--c-secondary-ink); }
.workflow__summary { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .workflow__summary { grid-template-columns: 1fr 1fr; } }
.workflow__problem, .workflow__solution { display: flex; gap: var(--s-3); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); margin: 0; }
.workflow__problem { background: var(--c-accent-soft); color: #5c3200; }
.workflow__problem .icon { color: var(--c-warning); margin-top: 3px; }
.workflow__solution { background: var(--c-ink); color: #fff; font-size: 1.0625rem; display: block; }
.workflow__solution strong { font-weight: 700; }

/* ------------------------------------------------------------ Steps */
.steps { list-style: none; display: grid; gap: var(--s-4); grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; padding: var(--s-6); background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.step__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); margin-bottom: var(--s-4); }
.step__num { display: block; font-size: var(--fs-caption); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-primary); margin-bottom: var(--s-1); }
.step h3 { font-size: 1.0625rem; margin-bottom: var(--s-2); }
.step p { font-size: var(--fs-small); color: var(--c-muted); }
@media (min-width: 1100px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 45px; right: -14px; width: 12px; height: 2px; background: var(--c-border-strong);
  }
}

/* ------------------------------------------------------- Product tour */
.tour { display: grid; gap: var(--s-8); }
.tour__tabs {
  display: flex; gap: var(--s-2); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none;
}
.tour__tabs::-webkit-scrollbar { display: none; }
.tour__tab {
  flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: var(--s-3); text-align: left;
  min-height: 60px; padding: var(--s-3) var(--s-4); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  background: var(--c-bg); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.tour__tab:hover { border-color: #a9dcbd; }
.tour__tab strong { display: block; font-weight: 700; font-size: .9688rem; }
.tour__tab small { display: block; color: var(--c-muted); font-size: var(--fs-caption); }
.tour__n { font-family: var(--font-display); font-weight: 800; color: var(--c-subtle); font-size: 1rem; }
.tour__tab[aria-selected="true"] { border-color: var(--c-primary); background: var(--c-primary-soft); box-shadow: inset 0 0 0 1px var(--c-primary); }
.tour__tab[aria-selected="true"] .tour__n { color: var(--c-primary); }
.tour__panel { display: grid; gap: var(--s-8); align-items: center; border-radius: var(--r-xl); }
.tour__panel[hidden] { display: none; }
.tour__panel:focus-visible { outline-offset: 6px; }
.tour__text h3 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); font-weight: 800; }
.tour__text p { color: var(--c-muted); }
.benefit { display: flex; gap: var(--s-2); align-items: flex-start; color: var(--c-text) !important; font-weight: 600; margin-top: var(--s-5); }
.benefit .icon { color: var(--c-secondary-ink); margin-top: 3px; }
.tour__media {
  display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-8) var(--s-4) var(--s-4);
  background: radial-gradient(120% 90% at 50% 0%, #e3f4ea 0%, var(--c-surface) 60%); border-radius: var(--r-xl); border: 1px solid var(--c-border);
}
.tour__panel.is-entering .tour__media > .tour__shot { animation: fade-up .35s var(--ease); }
@media (min-width: 1024px) {
  .tour { grid-template-columns: 320px 1fr; align-items: start; }
  .tour__tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .tour__tab { min-height: 76px; }
  .tour__panel { grid-template-columns: 1fr 1.3fr; gap: var(--s-10); }
  .tour > .sample-note { grid-column: 2; margin-top: calc(var(--s-6) * -1); }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------ Phone frame (real screenshots) */
.phone { width: min(300px, 78vw); margin: 0; padding: 9px; border-radius: 40px; background: #121212; box-shadow: var(--sh-lg), inset 0 0 0 2px #333; }
.phone img { width: 100%; height: auto; border-radius: 31px; background: #1c1c1c; }

/* --------------------------------- Paper (used by the demo report preview) */
.paper {
  margin: 0; background: #fff; border: 1px solid var(--c-border); border-radius: 6px; box-shadow: var(--sh-md);
  padding: clamp(14px, 2.4vw, 24px); color: #1a1a1a; font-size: 11px; line-height: 1.35;
}
.paper__school { text-align: center; font-weight: 800; letter-spacing: .08em; font-size: 12px; margin-bottom: 2px; }
.paper__title { text-align: center; font-weight: 600; font-size: 10.5px; color: #333; margin-bottom: 12px; letter-spacing: .02em; }
.paper__scroll { overflow-x: auto; }
.paper__table { width: 100%; font-size: 10.5px; }
.paper__table th, .paper__table td { border: 1px solid #cfd5df; padding: 4px 6px; text-align: center; white-space: nowrap; }
.paper__table th { background: #f1f4f9; font-weight: 700; font-size: 9.5px; letter-spacing: .03em; }
.paper__table .l { text-align: left; }
.paper__table .b, .paper__table tfoot td { font-weight: 700; }
.paper__table tfoot td { background: #f7f9fc; }
.paper__foot { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 560px) { .paper__foot { grid-template-columns: 1fr 1fr; } }
.paper__sub { font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.paper__mini { font-size: 10px; color: #444; margin-top: 8px; }
.paper__foot .paper__mini { margin-top: 0; }
.paper__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 10px; font-size: 10.5px; }
.paper__meta div { display: flex; gap: 4px; }
.paper__meta dt { color: #666; }
.paper__meta dd { margin: 0; font-weight: 700; }
.paper--report { max-width: 420px; }

/* ------------------------------------------------------ Mini demo */
.demo { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-xl); padding: clamp(16px, 3vw, 32px); box-shadow: var(--sh-md); }
.demo__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.demo__context { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-weight: 600; margin: 0; }
.demo__context .icon { color: var(--c-primary); }
.demo__actions { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.demo__table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-lg); position: relative; }
.demo__table { width: 100%; min-width: 720px; font-size: .9375rem; }
.demo__table th, .demo__table td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--c-border); white-space: nowrap; }
.demo__table thead th { background: var(--c-surface); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); font-weight: 700; }
.demo__table tbody tr:last-child td, .demo__table tbody tr:last-child th { border-bottom: 0; }
.demo__table .demo__name { text-align: left; position: sticky; left: 0; background: var(--c-bg); z-index: 1; font-weight: 600; }
.demo__table thead .demo__name { background: var(--c-surface); }
.demo__table .calc { background: #f7fbf8; font-weight: 700; }
.demo__table thead .calc { background: #e6f5ec; color: var(--c-primary-ink); }
.demo__table input {
  width: 64px; height: 44px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums;
  border: 1px solid var(--c-border-strong); border-radius: var(--r-md); background: #fff;
  -moz-appearance: textfield;
}
.demo__table input::-webkit-outer-spin-button, .demo__table input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.demo__table input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(29, 185, 84, .3); }
.demo__table input[aria-invalid="true"] { border-color: var(--c-error); background: var(--c-error-soft); }
.demo__table tr.is-selected .demo__name { color: var(--c-primary); }
.demo__table tr.is-selected td.calc { background: #e3f4ea; }
.demo__table .changed { animation: flash .6s var(--ease); }
@keyframes flash { from { background: #fff4c7; } }
.demo__error { color: var(--c-error); font-weight: 600; font-size: var(--fs-small); margin: var(--s-3) 0 0; }
.demo__noscript { text-align: center; color: var(--c-muted); }

.empty-state { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-10) var(--s-4); text-align: center; color: var(--c-muted); }
.empty-state .icon { width: 32px; height: 32px; color: var(--c-subtle); }

.demo__report { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px dashed var(--c-border-strong); }
.demo__report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.demo__report-head h3 { margin: 0; }
.demo__select select, .field select {
  min-height: 44px; padding: 0 40px 0 12px; border: 1px solid var(--c-border-strong); border-radius: var(--r-md); background: #fff;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234a5670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; font-weight: 600;
}
.report-card { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .report-card { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.report-card .paper { max-width: none; }
.report-summary { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.report-summary div { padding: var(--s-4); border-radius: var(--r-lg); background: var(--c-surface); }
.report-summary span { display: block; font-size: var(--fs-caption); color: var(--c-muted); font-weight: 600; }
.report-summary strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.inline-cta {
  display: grid; gap: var(--s-5); align-items: center; margin-top: var(--s-12); padding: var(--s-6) clamp(20px, 3vw, 36px);
  border-radius: var(--r-xl); background: var(--c-primary-soft); border: 1px solid #c4e8d2;
}
.inline-cta h3 { font-size: 1.375rem; margin-bottom: var(--s-2); }
.inline-cta p { color: var(--c-muted); }
@media (min-width: 900px) { .inline-cta { grid-template-columns: 1fr auto; } }

/* ------------------------------------------------------------ Reports */
.reports { display: grid; gap: var(--s-8); align-items: start; }
.reports__item h3 { margin-top: var(--s-5); margin-bottom: var(--s-2); }
.reports__item p { color: var(--c-muted); }
.levels { margin-top: var(--s-16); display: grid; gap: var(--s-2); }
.levels > p { color: var(--c-muted); }
.levels__scroll { overflow-x: auto; margin-top: var(--s-4); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-bg); }
.levels__table { width: 100%; min-width: 480px; }
.levels__table th, .levels__table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: var(--fs-small); }
.levels__table th { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); background: var(--c-surface); }
.levels__table tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------- Analytics */
.analytics { display: grid; gap: var(--s-10); align-items: center; }
@media (min-width: 1024px) { .analytics { grid-template-columns: .85fr 1.15fr; gap: var(--s-16); } }
.analytics .section-heading { margin-bottom: var(--s-8); }
.dash { margin: 0; padding: clamp(16px, 2.5vw, 28px); border: 1px solid var(--c-border); border-radius: var(--r-xl); background: var(--c-bg); box-shadow: var(--sh-lg); }
.dash__caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); font-weight: 700; margin-bottom: var(--s-5); }
.dash__kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (min-width: 640px) { .dash__kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: var(--s-4); border-radius: var(--r-lg); background: var(--c-surface); display: grid; gap: 2px; justify-items: start; }
.kpi__label { font-size: var(--fs-caption); color: var(--c-muted); font-weight: 600; }
.kpi__value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.kpi__sub { font-size: var(--fs-caption); color: var(--c-subtle); }
.dash__charts { display: grid; gap: var(--s-6); margin-top: var(--s-6); }
@media (min-width: 640px) { .dash__charts { grid-template-columns: 1.1fr 1fr; } }
.chart__title { font-size: var(--fs-small); font-weight: 700; margin-bottom: var(--s-4); font-family: var(--font-body); letter-spacing: 0; }
.chart__title span { font-weight: 500; color: var(--c-subtle); margin-left: 4px; }
.hbars { list-style: none; display: grid; gap: var(--s-3); }
.hbars li { display: grid; grid-template-columns: 112px 1fr 38px; align-items: center; gap: var(--s-2); font-size: var(--fs-caption); }
.hbars__label { color: #2b2f2d; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars__track { height: 10px; border-radius: 99px; background: var(--c-surface-2); overflow: hidden; }
.hbars__bar { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: 99px; background: var(--c-primary); transform-origin: left; }
.hbars__val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.vbars { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; height: 170px; }
.vbars li { display: grid; grid-template-rows: auto 1fr auto; height: 100%; align-items: end; justify-items: center; gap: 4px; }
.vbars__bar { width: 100%; max-width: 28px; height: calc(var(--v) * 10% + 2px); border-radius: 4px 4px 0 0; background: var(--c-lvl-me); align-self: end; transform-origin: bottom; }
.vbars li:nth-child(-n+2) .vbars__bar { background: var(--c-lvl-ee); }
.vbars li:nth-child(n+5):nth-child(-n+6) .vbars__bar { background: #d98a1c; }
.vbars li:nth-child(n+7) .vbars__bar { background: var(--c-lvl-be); }
.vbars__val { font-size: var(--fs-caption); font-weight: 700; font-variant-numeric: tabular-nums; }
.vbars__label { font-size: 11px; font-weight: 600; color: var(--c-muted); }
.in-view .hbars__bar { animation: grow-x .9s var(--ease) both; }
.in-view .vbars__bar { animation: grow-y .9s var(--ease) both; }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }

/* ------------------------------------------------------------ Offline */
.offline-flow { list-style: none; display: grid; gap: var(--s-4); counter-reset: o; }
@media (min-width: 820px) { .offline-flow { grid-template-columns: repeat(3, 1fr); gap: var(--s-8); } }
.offline-flow__step { position: relative; padding: var(--s-6); border-radius: var(--r-lg); background: var(--c-ink-2); border: 1px solid var(--c-ink-line); }
.offline-flow__step p { color: var(--c-on-ink-muted); font-size: var(--fs-small); }
.offline-flow__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(29, 185, 84, .15); color: #4ade80; margin-bottom: var(--s-4); }
.offline-flow__step--off .offline-flow__icon { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.offline-flow__icon .icon { width: 24px; height: 24px; }
@media (min-width: 820px) {
  .offline-flow__step:not(:last-child)::after {
    content: "→"; position: absolute; right: -26px; top: 50%; transform: translateY(-50%); color: #6b6b6b; font-size: 22px;
  }
}
@media (max-width: 819px) {
  .offline-flow__step:not(:last-child)::after {
    content: "↓"; position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); color: #6b6b6b; font-size: 18px;
  }
  .offline-flow { gap: var(--s-8); }
}
.offline-note { text-align: center; margin-top: var(--s-10); color: var(--c-on-ink-muted); font-size: var(--fs-small); }

/* -------------------------------------------------------- Audience */
.audience { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .audience { grid-template-columns: 1fr 1fr; } }
.audience__card { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); border: 1px solid var(--c-border); background: var(--c-bg); }
.audience__card--teachers { background: var(--c-primary-soft); border-color: #c4e8d2; }
.audience__card h3 { font-size: 1.5rem; }
.audience__card > p { color: var(--c-muted); margin-bottom: var(--s-6); }
.school-points { display: grid; gap: var(--s-4); margin: 0; }
.school-points dt { display: flex; align-items: center; gap: var(--s-2); font-weight: 700; }
.school-points dt .icon { color: var(--c-primary); width: 18px; height: 18px; }
.school-points dd { margin: 2px 0 0 26px; color: var(--c-muted); font-size: var(--fs-small); }

/* ------------------------------------------------------------ Testing */
.testing { background: linear-gradient(180deg, #fff 0%, #f1f8f3 100%); }
.testing__head { max-width: 760px; margin: 0 auto var(--s-12); text-align: center; }
.testing__badges { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-bottom: var(--s-5); }
.testing__note { padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--c-bg); border: 1px solid var(--c-border); color: #2b2f2d; }
.testing__body { display: grid; gap: var(--s-8); align-items: start; }
@media (min-width: 1024px) { .testing__body { grid-template-columns: 1.5fr 1fr; } }
.tester-steps { list-style: none; display: grid; gap: var(--s-4); }
.tester-step { display: flex; gap: var(--s-4); padding: var(--s-5) var(--s-6); background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.tester-step__num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); font-weight: 800; font-family: var(--font-display); }
.tester-step h3 { margin-bottom: var(--s-1); }
.tester-step p { color: var(--c-muted); margin-bottom: var(--s-1); }
.testing__loop { padding: var(--s-6); border-radius: var(--r-lg); background: var(--c-ink); color: var(--c-on-ink); }
.testing__loop-title { font-weight: 700; color: #fff; margin-bottom: var(--s-4); }
.loop { list-style: none; display: grid; gap: 0; }
.loop li { display: flex; align-items: center; gap: var(--s-3); padding: 10px 0; position: relative; font-weight: 600; }
.loop li .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--c-ink-2); color: #4ade80; border: 1px solid var(--c-ink-line); }
.loop li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 46px; width: 2px; height: 10px; background: #3a3a3a; }
.loop li:last-child .icon { background: var(--c-secondary); color: #06200f; border-color: var(--c-secondary); }
.testing__honest { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--c-ink-line); font-weight: 600; color: #ffd79a; }
.testing__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-12); }

.what-you-do { margin-top: var(--s-8); }
.bug-card { text-align: left; }
.bug-card .btn { margin-block: var(--s-3); }

/* ------------------------------------------------------------ Pricing */
.pricing { display: grid; gap: var(--s-8); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); background: var(--c-bg); border: 1px solid var(--c-border); }
.pricing h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.pricing .lead { margin-bottom: 0; }
.pricing__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (min-width: 900px) { .pricing { grid-template-columns: 1.6fr auto; } .pricing__actions { flex-direction: column; } }
@media (max-width: 479px) { .pricing__actions .btn { width: 100%; } }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: var(--s-3); }
.faq__item { border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-bg); transition: border-color .15s, box-shadow .15s; }
.faq__item[open] { border-color: #a9dcbd; box-shadow: var(--sh-sm); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 60px;
  padding: var(--s-4) var(--s-5); cursor: pointer; list-style: none; border-radius: var(--r-lg);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.0625rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.faq__chevron { color: var(--c-muted); transition: transform .2s var(--ease); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer { padding: 0 var(--s-5) var(--s-5); color: var(--c-muted); }
.faq__item[open] .faq__answer { animation: fade-up .25s var(--ease); }

/* ---------------------------------------------------------- Final CTA */
.final-cta { background: var(--c-ink); color: var(--c-on-ink); padding-block: var(--section-y); position: relative; overflow: hidden; isolation: isolate; }
.final-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  z-index: -1; background: linear-gradient(180deg, rgba(18, 18, 18, .72), rgba(18, 18, 18, .86));
}
.final-cta__inner { position: relative; text-align: center; max-width: 760px; display: grid; justify-items: center; gap: var(--s-5); }
.final-cta h2 { color: #fff; margin: 0; font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); }
.final-cta p { font-size: var(--fs-lead); margin: 0; }
.final-cta .btn-row { margin-top: var(--s-3); }
.final-cta__alt { font-size: var(--fs-small) !important; }
.final-cta__alt a { color: #fff; }

/* ------------------------------------------------------------- Pages */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); background: linear-gradient(180deg, #f1f8f3, #fff); }
.page-hero__inner { max-width: 820px; }
.page-hero h1 { margin-bottom: var(--s-4); }
.page-hero .lead { margin-bottom: var(--s-6); }
.page-hero .testing__badges { justify-content: flex-start; }
.page-hero .testing__note { margin-bottom: var(--s-8); }
.page-hero--compact { padding-block: var(--s-12) var(--s-6); }
.page-hero--compact h1 { font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem); margin-bottom: var(--s-2); }
.page-hero__inner.center .btn-row { justify-content: center; }

/* ----------------------------------------------------------- Contact */
.contact { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: 1.5fr 1fr; gap: var(--s-8); } }
.contact__form { padding: clamp(20px, 3vw, 36px); }
.contact__heading { font-size: 1.5rem; margin-bottom: var(--s-2); }
.contact__side { display: grid; gap: var(--s-4); }
.contact__side .btn-row { flex-direction: column; }
.contact__side .btn { width: 100%; white-space: normal; }
.contact__side .text-link { word-break: break-all; }
.form-grid { display: grid; gap: 0 var(--s-5); margin-top: var(--s-5); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: var(--s-5); }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field__req { color: var(--c-error); }
.field__opt { font-weight: 400; color: var(--c-subtle); }
.field__hint { font-size: var(--fs-caption); color: var(--c-muted); margin: 0; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--c-border-strong); border-radius: var(--r-md);
  background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(29, 185, 84, .3); }
.field--error input, .field--error textarea, .field--error select { border-color: var(--c-error); }
.field--error input:focus, .field--error textarea:focus { box-shadow: 0 0 0 3px rgba(192, 38, 45, .2); }
.field__error { color: var(--c-error); font-size: var(--fs-small); font-weight: 600; margin: 0; }
.field__error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-md); background: var(--c-error-soft); color: #7d1a1f; font-weight: 500; margin-top: var(--s-4); }
.form-alert[hidden] { display: none; }
.form-alert .icon { margin-top: 2px; color: var(--c-error); }
.form-success { text-align: center; padding: var(--s-8) 0; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success p { color: var(--c-muted); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ Footer */
.site-footer { background: var(--c-ink); color: var(--c-on-ink-muted); padding-block: var(--s-16) var(--s-8); font-size: var(--fs-small); }
.site-footer__grid { display: grid; gap: var(--s-10) var(--s-8); grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; display: grid; gap: var(--s-4); justify-items: start; max-width: 380px; }
.site-footer .logo__word { color: #fff; }
.site-footer .logo__word span { color: var(--c-on-ink-muted); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: var(--s-3); font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: 2px; }
.site-footer a { color: var(--c-on-ink-muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-6); margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--c-ink-line); }
.site-footer__bottom a { word-break: break-all; }
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); }
  .site-footer__brand { grid-column: auto; }
}

/* ------------------------------------------------------------- Modal */
.modal {
  width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); background: var(--c-bg); color: var(--c-text);
}
.modal::backdrop { background: rgba(18, 18, 18, .6); }
.modal[open] { animation: fade-up .2s var(--ease); display: flex; flex-direction: column; }
.modal__header { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--c-border); }
.modal__title { margin: 0; font-size: 1.125rem; }
.modal__body { overflow: auto; padding: var(--s-6); display: grid; justify-items: center; background: var(--c-surface); }
.modal__body .phone { width: min(380px, 80vw); }
.modal__doc { width: 100%; max-width: 900px; height: auto; border: 1px solid var(--c-border); background: #fff; }
.modal__body .paper { font-size: 13px; width: 100%; }
.modal__body .paper__table { font-size: 12.5px; }
.modal__body .paper__table th { font-size: 11px; }
.modal__body .paper__mini { font-size: 12px; }

/* ------------------------------------------------------ Offline toast */
.offline-toast {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-ink); color: #fff; font-size: var(--fs-small); box-shadow: var(--sh-lg);
  width: max-content; max-width: calc(100vw - 32px);
}
.offline-toast[hidden] { display: none; }

/* ------------------------------------------------------------ Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .06s; }
.js .reveal:nth-child(3) { transition-delay: .12s; }
.js .reveal:nth-child(4) { transition-delay: .18s; }
.js .reveal:nth-child(5) { transition-delay: .24s; }

.hero__copy, .hero__visual { animation: fade-up .6s var(--ease) both; }
.hero__visual { animation-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .caret { animation: none; }
}

@media print {
  .site-header, .site-footer, .final-cta, .menu-overlay, .offline-toast { display: none !important; }
}

/* Grid children may contain wide tables that scroll internally; let them shrink. */
.hero__grid > *, .split > *, .reports > *, .analytics > *, .tour > *, .tour__panel > *, .contact > *,
.audience > *, .testing__body > *, .report-card > *, .workflow > *, .pricing > *, .levels > *, .inline-cta > * { min-width: 0; }

/* ------------------------------------------------------------ Photos */
.photo { display: block; width: 100%; height: auto; object-fit: cover; background: var(--c-surface-2); }
.photo--rounded { border-radius: var(--r-xl); aspect-ratio: 3 / 2; }
.problem-intro { display: grid; gap: var(--s-8); align-items: center; margin-bottom: var(--s-12); }
.problem-intro .section-heading { margin-bottom: 0; }
@media (min-width: 900px) { .problem-intro { grid-template-columns: 1.1fr 1fr; gap: var(--s-12); } }
.audience__card { overflow: hidden; }
.audience__photo { margin: calc(clamp(24px, 3vw, 40px) * -1) calc(clamp(24px, 3vw, 40px) * -1) var(--s-6); width: calc(100% + 2 * clamp(24px, 3vw, 40px)); max-width: none; aspect-ratio: 16 / 7; }

/* ---------------------------------------------------- Report images */
.reports__item { margin: 0; }
.doc-shot { display: block; width: 100%; padding: 0; border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-md); cursor: zoom-in; overflow: hidden; transition: box-shadow .2s, transform .2s var(--ease); }
.doc-shot:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); }
.doc-shot img { width: 100%; height: auto; }
@media (min-width: 960px) {
  .reports { grid-template-columns: 1fr 1fr; }
  .reports__item--wide { grid-column: 1 / -1; }
  .reports__item:not(.reports__item--wide) { grid-column: 1 / -1; justify-self: center; max-width: 560px; }
}

/* ------------------------------------------------ Page hero with media */
.page-hero__split { display: grid; gap: var(--s-10); align-items: center; }
@media (min-width: 960px) { .page-hero__split { grid-template-columns: 1.2fr 1fr; gap: var(--s-12); } }
.page-hero__phone { justify-self: center; width: min(280px, 70vw); }
