/* ==========================================================================
   CampusZeus marketing site — site.css
   Plain CSS, dark-first with light theme. Brand: CampusZeus / SpeelYaal.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/bricolage-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/bricolage-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/bricolage-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/bricolage-800.woff2') format('woff2');
}

/* ---------- Theme tokens ---------- */
:root {
  /* Brand palette — OKLCH.
     Primary  = bright sky-blue/cyan (hue 232.66)
     Secondary/accent = fresh mint-green (hue 162.48)
     Names like --brand-green / --brand-sky are kept for backwards compatibility
     with inline references in HTML (school.html mock chips etc.) and now map to
     the new palette rather than pointing at the old hex codes. */
  --brand-sky:         oklch(74.6% 0.16 232.661);        /* primary */
  --brand-sky-strong:  oklch(52%   0.16 232.661);        /* darker for AA on white text */
  --brand-sky-deep:    oklch(42%   0.15 232.661);        /* hover on strong */
  --brand-sky-soft:    oklch(96%   0.03 232.661);        /* subtle bg tint */

  --brand-green:       oklch(79.2% 0.209 151.711);         /* soft branding green — used for text accents (e.g., "Zeus" wordmark, eyebrow labels) */
  --brand-green-strong:oklch(52% 0.18 143.22);         /* darker for AA on white text */
  --brand-green-deep:  oklch(42% 0.16 143.22);         /* hover on strong */
  --brand-green-soft:  oklch(96% 0.04 143.22);         /* subtle bg tint */

  /* Legacy aliases (kept so inline `var(--brand-emerald)`, `var(--brand-lime)`,
     `var(--brand-blue)` on existing pages keep working — they now inherit the
     new palette). */
  --brand-emerald: var(--brand-green);
  --brand-lime:    var(--brand-green);
  --brand-blue:    var(--brand-sky-strong);

  /* Gradients — rebuilt on the new hues.
     grad-primary (blue) drives CTAs; grad-secondary (green) drives accent lifts;
     grad-hero blends primary→secondary for the hero showcase. */
  --grad-primary: linear-gradient(135deg, oklch(74.6% 0.16 232.661) 0%, oklch(52% 0.16 232.661) 100%);
  --grad-secondary: linear-gradient(135deg, oklch(72.6% 0.196 143.22) 0%, oklch(52% 0.18 143.22) 100%);
  --grad-hero: linear-gradient(120deg, oklch(74.6% 0.16 232.661) 0%, oklch(72.6% 0.196 143.22) 100%);

  /* Back-compat aliases used by existing selectors (btn-primary, step .num,
     mock-bars, etc.) — remap them so no other rule needs editing. */
  --grad-green: var(--grad-primary);
  --grad-sky:   var(--grad-secondary);

  /* Fonts */
  --font-display: 'Bricolage Grotesque', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;

  /* Layout */
  --container: 1160px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --section-y: 96px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark theme (default) */
:root,
[data-theme="dark"] {
  --bg: #0a0d0b;
  --bg-1: #0e1310;
  --bg-2: #141b16;
  --bg-elev: #131a15;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2ee;
  --text-2: #aeb8b0;
  --text-3: #7d867e;
  --text-inverse: #08110a;
  /* Primary = new sky-blue. On dark surfaces the light-L version reads well
     as brand text/underline/icon. Buttons that carry white text switch to
     --primary-strong (see .btn-primary below). */
  --primary: oklch(74.6% 0.16 232.661);
  --primary-strong: oklch(52% 0.16 232.661);
  --primary-ink: #ffffff;
  --accent: oklch(79.2% 0.209 151.711);
  --accent-strong: oklch(52% 0.18 143.22);
  --glow-primary: oklch(74.6% 0.16 232.661 / 0.30);
  --glow-accent:  oklch(79.2% 0.209 151.711 / 0.28);
  /* Legacy names still referenced by existing rules (.hero-bg, .cta-band, etc.) */
  --glow-green: var(--glow-accent);
  --glow-sky:   var(--glow-primary);
  --nav-bg: rgba(10, 13, 11, 0.72);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 4px 18px -8px rgba(0, 0, 0, 0.55);
  --spotlight: oklch(74.6% 0.16 232.661 / 0.14);
  --grid-line: rgba(255, 255, 255, 0.035);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f7faf8;
  --bg-1: #ffffff;
  --bg-2: #eef4ef;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f7f3;
  --border: rgba(11, 40, 22, 0.10);
  --border-strong: rgba(11, 40, 22, 0.18);
  --text: #0d1f14;
  --text-2: #435049;
  --text-3: #6c7a70;
  --text-inverse: #ffffff;
  /* Light theme picks the darker (strong) L for on-text usage so link text and
     nav-highlight stay AA against white. --primary keeps the strong value
     because the light theme uses it for text/links on light bg. */
  --primary: oklch(48% 0.16 232.661);
  --primary-strong: oklch(40% 0.15 232.661);
  --primary-ink: #ffffff;
  --accent: oklch(51% 0.18 151.711);
  --accent-strong: oklch(42% 0.16 143.22);
  --glow-primary: oklch(74.6% 0.16 232.661 / 0.16);
  --glow-accent:  oklch(79.2% 0.209 151.711 / 0.14);
  --glow-green: var(--glow-accent);
  --glow-sky:   var(--glow-primary);
  --nav-bg: rgba(247, 250, 248, 0.78);
  --shadow: 0 24px 60px -24px rgba(11, 60, 30, 0.22);
  --shadow-sm: 0 6px 20px -10px rgba(11, 60, 30, 0.18);
  --spotlight: oklch(74.6% 0.16 232.661 / 0.10);
  --grid-line: rgba(11, 40, 22, 0.045);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
}
[lang="en"] h1, [lang="en"] h2, [lang="en"] h3 { letter-spacing: -0.025em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
[lang]:not([lang="en"]) .eyebrow { letter-spacing: 0.04em; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 16px 0 14px; }
.section-head p { color: var(--text-2); font-size: 1.08rem; }

.grad-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
[lang]:not([lang="en"]) .grad-text {
  -webkit-text-fill-color: currentColor;
  color: var(--primary);
  background: none;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  /* Use the strong blue so white ink stays AA-legible in both themes. */
  background: var(--primary-strong); color: #ffffff;
  padding: 10px 18px; border-radius: 8px; z-index: 200;
  font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Container ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--section-y); position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
/* Primary CTA — brighter sky blue gradient (was dark navy). L=62%→52% keeps
   white button text at ~AA-Large contrast while giving the button a lighter,
   more inviting look. */
.btn-primary {
  background: linear-gradient(135deg, oklch(62% 0.18 232.661) 0%, oklch(52% 0.17 232.661) 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px -10px var(--glow-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--glow-primary); }

/* Optional accent CTA — mint-green variant, same contrast rules. */
.btn-accent {
  background: linear-gradient(135deg, var(--accent-strong) 0%, oklch(42% 0.16 143.22) 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px -10px var(--glow-accent);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--glow-accent); }

.btn-ghost {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 700; font-size: 0.95rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  height: 66px; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.24rem; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.brand .cz-1 { color: var(--text); }
.brand .cz-2 { color: var(--brand-green); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  color: var(--text-2); transition: color .18s, background .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); transition: color .18s, border-color .18s, background .18s;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn svg { width: 19px; height: 19px; }

/* dropdown (login / language) */
.menu { position: relative; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; display: none; z-index: 120;
}
.menu.open .menu-panel { display: block; animation: fadeInMenu .18s var(--ease); }
@keyframes fadeInMenu { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: 0.92rem;
  color: var(--text-2); text-align: left; transition: background .15s, color .15s;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); color: var(--text); }
.menu-panel a small, .menu-panel button small { display: block; color: var(--text-3); font-weight: 500; font-size: 0.78rem; }
.menu-label {
  padding: 6px 12px 4px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-3); font-weight: 700;
}
.lang-current { display: none; }
@media (min-width: 640px) { .lang-current { display: inline; font-size: 0.82rem; font-weight: 700; } }

/* mobile menu toggle */
.nav-burger { display: none; }
.mobile-menu { display: none; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta-desktop { display: none; }
  .mobile-menu {
    position: fixed; inset: 66px 0 0 0; z-index: 90;
    background: var(--bg); padding: 24px var(--gutter);
    display: none; flex-direction: column; gap: 4px; overflow-y: auto;
  }
  .mobile-menu.open { display: flex; animation: fadeInMenu .2s var(--ease); }
  .mobile-menu a {
    padding: 14px 8px; font-size: 1.1rem; font-weight: 600; color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu .btn { margin-top: 16px; }
}

/* Very narrow screens: tighten nav so the wordmark never clips */
@media (max-width: 400px) {
  .nav-inner { gap: 8px; padding-inline: 16px; }
  .nav-actions { gap: 4px; }
  .icon-btn { width: 38px; height: 38px; }
  .brand { font-size: 1.12rem; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .lang-current { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 150px; padding-bottom: 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 20% 8%, var(--glow-green), transparent 70%),
    radial-gradient(50% 40% at 88% 20%, var(--glow-sky), transparent 72%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(75% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 30%, #000 40%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin-inline: auto; }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); margin: 22px 0 20px; }
.hero-sub { font-size: clamp(1.05rem, 2.3vw, 1.3rem); color: var(--text-2); max-width: 660px; margin: 0 auto 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-note { margin-top: 20px; color: var(--text-3); font-size: 0.9rem; }

/* staggered entrance */
.hero .stagger { opacity: 0; transform: translateY(24px); animation: heroIn .9s var(--ease) forwards; }
.hero .stagger:nth-child(1) { animation-delay: .05s; }
.hero .stagger:nth-child(2) { animation-delay: .15s; }
.hero .stagger:nth-child(3) { animation-delay: .25s; }
.hero .stagger:nth-child(4) { animation-delay: .35s; }
.hero .stagger:nth-child(5) { animation-delay: .45s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero .stagger { animation: none; opacity: 1; transform: none; }
}

/* hero showcase image */
.hero-showcase { margin-top: 60px; position: relative; z-index: 1; opacity: 0; transform: translateY(30px); animation: heroIn 1s var(--ease) .5s forwards; }
@media (prefers-reduced-motion: reduce) { .hero-showcase { animation: none; opacity: 1; transform: none; } }

/* ---------- Browser frame ---------- */
.frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.frame-dots { display: flex; gap: 7px; }
.frame-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.frame-dots i:nth-child(1) { background: #ff5f57; }
.frame-dots i:nth-child(2) { background: #febc2e; }
.frame-dots i:nth-child(3) { background: #28c840; }
.frame-url {
  margin-left: 10px; flex: 1; max-width: 340px;
  background: var(--surface-2); border-radius: 7px;
  font-size: 0.76rem; color: var(--text-3); padding: 5px 12px;
  font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame img { width: 100%; height: auto; display: block; }

/* phone frame */
.phone {
  width: 260px; max-width: 100%;
  border-radius: 34px; padding: 10px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 6px; border-radius: 999px; background: var(--border-strong); z-index: 2;
}
.phone img { width: 100%; border-radius: 26px; display: block; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--spotlight), transparent 60%);
  transition: opacity .3s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--primary); margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 0.97rem; }

/* spotlight on sections */
.spotlight-section::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--spotlight), transparent 55%);
  transition: opacity .4s;
}
.spotlight-section:hover::before { opacity: 1; }
.spotlight-section > .container { position: relative; z-index: 1; }

/* ---------- Edition chooser ---------- */
.edition-card {
  padding: 34px; display: flex; flex-direction: column; gap: 16px;
}
.edition-card .tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2);
}
.edition-card .tag.live { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.edition-card h3 { font-size: 1.6rem; }
.edition-card ul { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 10px; }
.edition-card li { display: flex; gap: 10px; color: var(--text-2); font-size: 0.96rem; align-items: flex-start; }
.edition-card li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.edition-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ---------- Trust bar ---------- */
.trust {
  display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.88rem; font-weight: 600; color: var(--text-2);
}
.trust-pill svg { width: 17px; height: 17px; color: var(--primary); }
/* Trust-pill icons rotate across a 3-hue brand palette for visual variety.
   1,4 → blue (primary)   2,5 → green (brand-green)   3,6 → warm accent (amber). */
.trust-pill:nth-child(3n+1) svg { color: var(--primary); }
.trust-pill:nth-child(3n+2) svg { color: var(--brand-green); }
.trust-pill:nth-child(3n+3) svg { color: oklch(72% 0.16 60); }
.trust-pill:nth-child(3n+1) { border-color: color-mix(in srgb, var(--primary) 22%, transparent); background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.trust-pill:nth-child(3n+2) { border-color: color-mix(in srgb, var(--brand-green) 24%, transparent); background: color-mix(in srgb, var(--brand-green) 6%, var(--surface)); }
.trust-pill:nth-child(3n+3) { border-color: color-mix(in srgb, oklch(72% 0.16 60) 24%, transparent); background: color-mix(in srgb, oklch(72% 0.16 60) 5%, var(--surface)); }

/* ---------- Feature split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 14px 0 16px; }
.split-copy > p { color: var(--text-2); font-size: 1.05rem; margin-bottom: 22px; }
.split-list { display: flex; flex-direction: column; gap: 14px; }
.split-list li { display: flex; gap: 12px; align-items: flex-start; }
.split-list li svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.split-list b { color: var(--text); font-weight: 700; }
.split-list span { color: var(--text-2); font-size: 0.97rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Persona strip ---------- */
.persona-scroll { display: flex; gap: 12px; flex-wrap: wrap; }
.persona {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: 0.92rem;
}
.persona svg { width: 17px; height: 17px; color: var(--primary); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step .num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 800;
  background: var(--grad-green); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 10px;
}
[lang]:not([lang="en"]) .step .num { -webkit-text-fill-color: currentColor; color: var(--primary); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  padding: 20px 22px; font-weight: 700; font-size: 1.02rem; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex-shrink: 0;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); transition: transform .25s var(--ease); margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { padding: 0 22px 20px; color: var(--text-2); font-size: 0.98rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 72px);
  border: 1px solid var(--border-strong); background: var(--bg-1); text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(50% 80% at 15% 0%, var(--glow-green), transparent 70%),
    radial-gradient(50% 80% at 85% 100%, var(--glow-sky), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-2); max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-1); padding-block: 56px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-2); font-size: 0.94rem; margin: 14px 0 18px; max-width: 320px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: 0.94rem; transition: color .15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 0.86rem;
}
.footer-bottom .langs { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-bottom .langs button { color: var(--text-3); font-size: 0.86rem; padding: 4px 8px; border-radius: 6px; }
.footer-bottom .langs button:hover { color: var(--primary); background: var(--surface-2); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-wrap { max-width: 640px; margin-inline: auto; }
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--text); }
.field label .req { color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-1); border: 1px solid var(--border-strong); color: var(--text);
  transition: border-color .18s, box-shadow .18s; font-size: 0.98rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 0.8rem; color: var(--text-3); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* radio cards */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .radio-cards { grid-template-columns: 1fr; } }
.radio-card {
  position: relative; border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 16px; cursor: pointer; transition: border-color .18s, background .18s;
}
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.radio-card small { color: var(--text-3); font-size: 0.82rem; }
.radio-card:has(input:checked) {
  border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.radio-card:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }

/* honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* subdomain preview */
.subdomain-preview {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  font-family: var(--font-mono); font-size: 0.86rem; color: var(--text-2);
  padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border);
}
.subdomain-preview .sd { color: var(--primary); font-weight: 700; }
.subdomain-preview .state { margin-left: auto; font-family: var(--font-body); font-weight: 700; font-size: 0.8rem; }
.subdomain-preview .state.ok { color: var(--primary); }
.subdomain-preview .state.bad { color: #e5484d; }
.subdomain-preview .state.checking { color: var(--text-3); }

.form-error {
  color: #e5484d; font-size: 0.88rem; margin-top: 4px; min-height: 1px;
}
.form-alert {
  padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 0.92rem;
  border: 1px solid; display: none;
}
.form-alert.error { display: block; background: color-mix(in srgb, #e5484d 12%, transparent); border-color: color-mix(in srgb, #e5484d 40%, transparent); color: #f2a3a5; }
[data-theme="light"] .form-alert.error { color: #b3261e; }

.success-panel { text-align: center; padding: 24px 0; }
.success-panel .check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary);
}
.success-panel .check svg { width: 32px; height: 32px; }
.success-panel h2 { font-size: 1.7rem; margin-bottom: 12px; }
.success-panel p { color: var(--text-2); max-width: 440px; margin: 0 auto 22px; }
.success-panel .sd-badge {
  display: inline-block; font-family: var(--font-mono); font-weight: 700; color: var(--primary);
  padding: 8px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
  margin-bottom: 22px;
}

/* ---------- School mockups (CSS-built) ---------- */
.mock { font-family: var(--font-body); }
.mock-phone {
  width: 288px; max-width: 100%; margin-inline: auto;
  border-radius: 36px; padding: 12px; position: relative;
  background: linear-gradient(160deg, #182420, #0c110e);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
[data-theme="light"] .mock-phone { background: linear-gradient(160deg, #dfe9e2, #c3d3c8); }
.mock-phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.2); z-index: 3;
}
.mock-screen {
  border-radius: 26px; overflow: hidden; background: var(--bg-1);
  border: 1px solid var(--border); padding-top: 30px;
}
.mock-topbar {
  background: #0e1712; color: #eef2ee; padding: 12px 16px;
  display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700;
}
.mock-topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-emerald); }
.mock-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mock-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.mock-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mock-eyebrow { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); font-weight: 700; }
.mock-big { font-size: 1.5rem; font-weight: 800; font-family: var(--font-display); }
.mock-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700;
}
.mock-chip.paid { background: color-mix(in srgb, var(--brand-emerald) 20%, transparent); color: var(--brand-emerald); }
.mock-chip.live { background: color-mix(in srgb, var(--brand-sky) 22%, transparent); color: var(--brand-sky); }
.mock-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mock-chip.live .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mock-chip.live .dot { animation: none; } }
.mock-muted { color: var(--text-3); font-size: 0.8rem; }
.mock-strong { font-weight: 700; font-size: 0.94rem; }
.mock-bus-map {
  height: 92px; border-radius: 10px; margin-top: 10px; position: relative; overflow: hidden;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--surface-2);
  background-size: 18px 18px, 18px 18px, auto;
}
.mock-route { position: absolute; height: 3px; background: var(--brand-sky); border-radius: 2px; top: 46px; left: 14px; right: 40px; opacity: .5; }
.mock-bus {
  position: absolute; top: 40px; left: 20px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-sky); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-sky) 30%, transparent);
  animation: busMove 4s var(--ease) infinite alternate;
}
@keyframes busMove { to { left: calc(100% - 56px); } }
@media (prefers-reduced-motion: reduce) { .mock-bus { animation: none; } }
.mock-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-green); display: flex; align-items: center; justify-content: center; color: #04140a; font-weight: 800; font-size: 0.82rem; }
.mock-lang { display: flex; gap: 6px; flex-wrap: wrap; }
.mock-lang span { font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-3); }
.mock-lang span.on { color: var(--primary); border-color: var(--primary); font-weight: 700; }

/* dashboard mock (wide) */
.mock-dash { padding: 20px; display: grid; gap: 14px; }
.mock-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 12px; }
.mock-bars i { flex: 1; background: var(--grad-green); border-radius: 5px 5px 0 0; display: block; opacity: .85; }

/* age-tier ladder */
.tier {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  transition: border-color .2s, transform .2s var(--ease);
}
.tier:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tier .tier-age {
  flex-shrink: 0; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  padding: 7px 12px; border-radius: 10px; background: var(--surface-2); color: var(--primary); min-width: 64px; text-align: center;
}
.tier h3 { font-size: 1.08rem; margin-bottom: 4px; }
.tier p { color: var(--text-2); font-size: 0.93rem; }

/* ---------- Reveal animations ---------- */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0; transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal { transform: translateY(28px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-scale { transform: scale(.94); }
.reveal.in, .reveal-left.in, .reveal-right.in, .reveal-scale.in {
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; transition: none; }
}
/* On small screens, use vertical reveal only (horizontal translate can cause overflow) */
@media (max-width: 700px) {
  .reveal-left, .reveal-right { transform: translateY(28px); }
}

/* ---------- 404 ---------- */
.notfound { min-height: 78vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.notfound .code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; }
.notfound h1 { font-size: 1.8rem; margin: 8px 0 14px; }
.notfound p { color: var(--text-2); margin-bottom: 26px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal .updated { color: var(--text-3); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--text-2); margin-bottom: 12px; font-size: 0.98rem; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--primary); font-weight: 600; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }
.stack-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.muted { color: var(--text-2); }
.bg-alt { background: var(--bg-1); }
.divider-top { border-top: 1px solid var(--border); }
