/* ================================================================
   FundiSyncEd — Modern Edtech Landing
   Tech-forward dark with light-mode option, cyan/violet/emerald accents
   ================================================================ */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* Brand */
  --brand-navy: #002147;
  --brand-cyan: #00E5FF;
  --brand-sky: #38B6FF;

  /* Tunable (Tweaks panel updates these) */
  --accent: #00E5FF;
  --accent-soft: #38B6FF;
  --accent-glow: rgba(0, 229, 255, 0.35);
  --accent-faint: rgba(0, 229, 255, 0.08);

  /* Surfaces */
  --bg-deep: #00091a;
  --bg-base: #00112a;
  --bg-elev: rgba(255, 255, 255, 0.035);
  --bg-elev-hi: rgba(255, 255, 255, 0.06);
  --border: rgba(120, 180, 255, 0.12);
  --border-hi: rgba(120, 180, 255, 0.28);

  /* Text */
  --text: #f5f9ff;
  --text-mute: #94a3b8;
  --text-dim: #64748b;

  /* Density */
  --section-pad-y: 140px;
  --container-pad: 32px;

  /* Type */
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Light theme override */
[data-theme="light"] {
  --bg-deep: #f4f7fb;
  --bg-base: #ffffff;
  --bg-elev: rgba(0, 33, 71, 0.04);
  --bg-elev-hi: rgba(0, 33, 71, 0.07);
  --border: rgba(0, 33, 71, 0.10);
  --border-hi: rgba(0, 33, 71, 0.22);
  --text: #00112a;
  --text-mute: #475569;
  --text-dim: #94a3b8;
  --accent-faint: rgba(0, 229, 255, 0.12);
}

/* Compact density */
[data-density="compact"] {
  --section-pad-y: 80px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ================================================================
   Background — animated grid + radial glow
   ================================================================ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-deep);
  overflow: hidden;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.55;
  animation: gridSlide 80s linear infinite;
}
[data-pattern="off"] .bg-grid { display: none; }
@keyframes gridSlide {
  from { background-position: 0 0, 0 0; }
  to { background-position: 640px 0, 0 640px; }
}
.bg-glow {
  position: absolute;
  width: 1100px;
  height: 1100px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  background: radial-gradient(circle at center, var(--accent) 0%, transparent 60%);
  top: -400px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.bg-glow.lower {
  top: 60%;
  left: 10%;
  width: 700px;
  height: 700px;
  opacity: 0.18;
  background: radial-gradient(circle at center, var(--accent-soft) 0%, transparent 60%);
}
[data-theme="light"] .bg-glow { opacity: 0.18; }
[data-theme="light"] .bg-glow.lower { opacity: 0.10; }

/* ================================================================
   Layout primitives
   ================================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
section {
  padding: var(--section-pad-y) 0;
  position: relative;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}
h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 22px;
  line-height: 1.25;
}
p { color: var(--text-mute); margin: 0; }
p.lead {
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
}

.accent { color: var(--accent); }

/* Section header with consistent rhythm */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 64px;
  max-width: 760px;
}
.section-head.center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 + p { margin-top: 20px; max-width: 600px; }

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(.2, .8, .2, 1);
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: var(--accent);
  color: #00112a;
  box-shadow: 0 8px 28px -6px var(--accent-glow), inset 0 0 0 1px rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -6px var(--accent-glow), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hi);
}
.btn-outline:hover {
  background: var(--bg-elev);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text-mute);
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--text); }
.btn .arrow {
  transition: transform 0.25s ease;
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ================================================================
   Nav
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg-deep) 75%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 42px; width: auto; }
[data-theme="light"] .nav-logo img { filter: invert(1) hue-rotate(180deg); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-mute);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-elev); }
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  text-transform: uppercase;
}
.nav-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-eyebrow .badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #00112a;
  font-weight: 700;
  font-size: 10px;
}
.hero h1 .grad {
  background: linear-gradient(180deg, var(--text) 0%, var(--text-mute) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero-sub {
  margin: 28px auto 40px;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  font-weight: 500;
  text-shadow: 0 1px 14px var(--bg-deep), 0 0 28px var(--bg-deep);
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-dual {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: -28px;
  margin-bottom: 64px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-dual .sep { width: 1px; height: 12px; background: var(--border-hi); }

/* Dashboard mock */
.dash-wrap {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  perspective: 2000px;
}
.dash-wrap::before {
  content: "";
  position: absolute;
  inset: -40px -60px 80px;
  background: radial-gradient(ellipse at 50% 30%, var(--accent-glow) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  opacity: 0.7;
}
.dash {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  box-shadow:
    0 60px 120px -30px rgba(0, 0, 0, 0.6),
    0 30px 60px -20px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  transform: rotateX(2deg);
  transform-origin: center top;
}
[data-theme="light"] .dash {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}
.dash-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.dash-bar .dot-row {
  display: flex;
  gap: 6px;
}
.dash-bar .dot-row span {
  width: 11px; height: 11px; border-radius: 50%;
}
.dash-bar .dot-row span:nth-child(1) { background: #ff5f57; }
.dash-bar .dot-row span:nth-child(2) { background: #febc2e; }
.dash-bar .dot-row span:nth-child(3) { background: #28c840; }
.dash-bar .pill {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  padding: 4px 12px;
  background: var(--bg-elev-hi);
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.dash-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 460px;
}
.dash-side {
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  background: var(--bg-elev);
}
.dash-side .brand {
  padding: 6px 12px 18px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.dash-side .brand .b { color: var(--accent); }
.dash-side .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 12px 12px 6px;
}
.dash-side .item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-mute);
  border-radius: 8px;
  margin-bottom: 2px;
  transition: background 0.2s, color 0.2s;
}
.dash-side .item.active {
  background: var(--accent-faint);
  color: var(--accent);
  font-weight: 600;
}
.dash-side .item .icon {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-elev-hi);
  border-radius: 5px;
  font-size: 10px;
}
.dash-side .item.active .icon { background: var(--accent); color: #00112a; }

.dash-main { padding: 24px 26px; }
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.dash-head h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
}
.dash-head .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dash-head .filter {
  display: flex;
  gap: 8px;
}
.dash-head .filter span {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-mute);
  font-family: var(--font-mono);
}
.dash-head .filter span.on {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-faint);
}

/* KPI strip */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.kpi {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 12px;
  padding: 14px;
}
.kpi .k-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.kpi .k-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.kpi .k-delta {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #4ade80;
}
.kpi .k-delta.down { color: #fbbf24; }

/* Chart */
.dash-chart {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 12px;
  padding: 20px;
  height: 220px;
  position: relative;
}
.dash-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.dash-chart-head .t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}
.dash-chart-head .legend {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dash-chart-head .legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash-chart-head .legend span::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}
.dash-chart-head .legend span.b::before { background: var(--accent-soft); opacity: 0.6; }

.bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  height: 130px;
  align-items: end;
  padding: 0 4px;
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.bar-col .pair {
  width: 100%;
  display: flex;
  gap: 4px;
  align-items: end;
  height: 110px;
}
.bar-col .b1, .bar-col .b2 {
  flex: 1;
  border-radius: 4px 4px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: barRise 1.2s cubic-bezier(.2, .8, .2, 1) forwards;
}
.bar-col .b1 {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  box-shadow: 0 0 12px var(--accent-glow);
}
.bar-col .b2 {
  background: var(--bg-elev-hi);
  border: 1px solid var(--border-hi);
}
.bar-col .lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
@keyframes barRise { to { transform: scaleY(1); } }

/* Floating chips around dashboard */
.float-chip {
  position: absolute;
  background: var(--bg-base);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4), 0 0 0 1px var(--accent-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}
.float-chip .label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.float-chip .value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.float-chip .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-faint);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 18px;
  border: 1px solid var(--border-hi);
}
.float-chip.tl { top: 14%; left: -40px; animation-delay: 0s; }
.float-chip.tr { top: 28%; right: -50px; animation-delay: 1.5s; }
.float-chip.bl { bottom: 8%; left: -30px; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Trust strip below hero */
.trust {
  margin-top: 100px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.trust-row {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.trust-row .stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
}
.trust-row .stat .n {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.trust-row .stat .l {
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--font-body);
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi) 20%, var(--border-hi) 80%, transparent);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 24px;
  position: relative;
}
.step-num::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
  z-index: -1;
  opacity: 0.4;
  filter: blur(4px);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 10px;
}
.step p { font-size: 15px; line-height: 1.6; }
.step .meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ================================================================
   CORE PRODUCTS (FundiOS)
   ================================================================ */
.product-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 140px;
}
.product-row:nth-child(even) {
  grid-template-columns: 1.05fr 1fr;
}
.product-row:nth-child(even) .product-copy { order: 2; }
.product-row:nth-child(even) .product-visual { order: 1; }
.product-row:last-child { margin-bottom: 0; }

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--accent-faint);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.product-row h2 {
  font-size: 44px;
  margin-bottom: 16px;
}
.product-row > .product-copy > p {
  font-size: 17px;
  margin-bottom: 28px;
}
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.bullet-list li:hover {
  border-color: var(--accent);
  background: var(--bg-elev-hi);
  transform: translateX(4px);
}
.bullet-list .b-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-faint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border-hi);
}
.bullet-list .b-text strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 14px;
}
.bullet-list .b-text span {
  font-size: 13px;
  color: var(--text-mute);
}

/* Visual mock cards */
.visual-frame {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border-hi);
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,0.6),
    0 0 0 1px var(--accent-faint);
}
[data-theme="light"] .visual-frame {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}
.visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at top right, var(--accent-faint), transparent 60%);
  opacity: 0.6;
}
.visual-frame .frame-bar {
  height: 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
  background: var(--bg-elev);
}
.visual-frame .frame-bar span {
  width: 9px; height: 9px; border-radius: 50%; background: var(--border-hi);
}
.visual-frame .frame-bar .title {
  width: auto; height: auto; background: transparent;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Markbook visual */
.mb-rows {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mb-row {
  display: grid;
  grid-template-columns: 1fr 60px 60px 60px;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  transition: border-color 0.25s, background 0.25s;
}
.mb-row:hover { border-color: var(--accent); }
.mb-row.head {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 14px;
}
.mb-row .name {
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.mb-row .name .av {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent-faint);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  border: 1px solid var(--border-hi);
}
.mb-row .val {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  color: var(--text-mute);
}
.mb-row .val.hi { color: var(--accent); font-weight: 600; }
.mb-row .val.lo { color: #fbbf24; }

/* Merit visual */
.merit-frame { padding: 22px; }
.merit-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.merit-head .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.merit-head .term {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.merit-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.merit-bar .row {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.merit-bar .row .l { color: var(--text-mute); }
.merit-bar .row .track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-elev-hi);
  position: relative;
  overflow: hidden;
}
.merit-bar .row .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  border-radius: 999px;
  box-shadow: 0 0 12px var(--accent-glow);
  width: 0;
  animation: fillRow 1.4s cubic-bezier(.2,.8,.2,1) forwards;
}
.merit-bar .row .v { text-align: right; color: var(--text); font-weight: 600; }
@keyframes fillRow {
  to { width: var(--w); }
}
.merit-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  display: flex; justify-content: space-between;
}
.merit-foot .ok { color: #4ade80; }

/* ================================================================
   FUTURE PRODUCTS
   ================================================================ */
.future-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.future-card {
  position: relative;
  padding: 28px;
  border-radius: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.future-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), var(--accent-faint) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.future-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
  background: var(--bg-elev-hi);
}
.future-card:hover::before { opacity: 1; }
.future-card .soon {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-faint);
  border: 1px solid var(--border-hi);
}
.future-card .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--bg-base);
  border: 1px solid var(--border-hi);
  padding: 4px;
  margin-bottom: 24px;
  position: relative;
}
.future-card .icon-wrap img {
  width: 100%; height: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.future-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}
.future-card h3 .b { color: var(--accent); }
.future-card p {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: auto;
  padding-bottom: 18px;
}
.future-card .notify {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}
.future-card:hover .notify { color: var(--accent); }

/* ================================================================
   FAQ
   ================================================================ */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item:hover { border-color: var(--border-hi); }
.faq-item.open { border-color: var(--accent); background: var(--bg-elev-hi); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  gap: 20px;
}
.faq-toggle {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
  border-radius: 8px;
  border: 1px solid var(--border-hi);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  background: transparent;
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--text-mute);
  top: 50%; left: 50%;
  transition: opacity 0.25s, transform 0.25s, background 0.25s;
}
.faq-toggle::before {
  width: 12px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq-toggle::after {
  width: 1.5px; height: 12px;
  transform: translate(-50%, -50%);
}
.faq-item.open .faq-toggle { background: var(--accent); border-color: var(--accent); }
.faq-item.open .faq-toggle::before { background: #00112a; }
.faq-item.open .faq-toggle::after { opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.2,.8,.2,1), padding 0.4s;
  padding: 0 24px;
}
.faq-a-inner {
  padding-bottom: 22px;
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; }

/* ================================================================
   WAITLIST COUNTER
   ================================================================ */
.waitlist {
  border: 1px solid var(--border-hi);
  background:
    radial-gradient(ellipse at 30% 0%, var(--accent-faint), transparent 60%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .waitlist {
  background:
    radial-gradient(ellipse at 30% 0%, var(--accent-faint), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}
.waitlist::after {
  content: "";
  position: absolute;
  bottom: -120px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
}
.waitlist h2 {
  font-size: 38px;
  margin-bottom: 16px;
}
.counter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(72px, 9vw, 110px);
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.counter-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 24px;
  border-left: 1px solid var(--border-hi);
}
.counter-meta .line {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}
.counter-meta .line strong {
  color: var(--text);
  font-family: var(--font-display);
}
.avatars {
  display: flex;
  margin: 28px 0 0;
}
.avatars .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  border: 2px solid var(--bg-base);
  margin-left: -10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #00112a;
  display: flex; align-items: center; justify-content: center;
}
.avatars .av:first-child { margin-left: 0; }
.avatars .av.more {
  background: var(--bg-elev-hi);
  color: var(--text);
  border-color: var(--border-hi);
}

/* ================================================================
   ABOUT
   ================================================================ */
.about {
  padding: var(--section-pad-y) 0;
  text-align: center;
}
.about .container { max-width: 880px; }
.about h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin-bottom: 28px;
}
.about p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-mute);
}
.about .sig {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.about .sig::before, .about .sig::after {
  content: ""; width: 30px; height: 1px; background: var(--accent); opacity: 0.4;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 100px 0 40px;
  background:
    radial-gradient(ellipse at 90% 0%, var(--accent-faint), transparent 60%),
    var(--bg-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr;
  gap: 56px;
  margin-bottom: 80px;
}
.footer-brand img { height: 50px; margin-bottom: 22px; }
[data-theme="light"] .footer-brand img { filter: invert(1) hue-rotate(180deg); }
.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 22px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col a, .footer-col div {
  display: block;
  font-size: 14px;
  color: var(--text-mute);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.footer-bottom a { color: var(--text-mute); margin-left: 24px; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 9, 26, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px var(--accent-glow);
  animation: slideUp 0.35s cubic-bezier(.2,.8,.2,1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 8px;
  font-weight: 600;
}
.modal-sub { color: var(--text-mute); margin-bottom: 26px; font-size: 14px; }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 20px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  background: var(--bg-elev-hi);
  color: var(--text);
  border-color: var(--accent);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elev-hi);
}
.modal .btn-primary { width: 100%; justify-content: center; padding: 14px; margin-top: 6px; }
.form-success {
  text-align: center;
  padding: 32px 0;
}
.form-success .check {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-faint);
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 28px;
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .product-row {
    grid-template-columns: 1fr !important;
    gap: 40px;
    margin-bottom: 100px;
  }
  .product-row:nth-child(even) .product-copy { order: 1; }
  .product-row:nth-child(even) .product-visual { order: 2; }
  .future-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .waitlist { grid-template-columns: 1fr; padding: 36px; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .float-chip.tl, .float-chip.bl { left: 12px; }
  .float-chip.tr { right: 12px; }
  .float-chip { display: none; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
}
@media (max-width: 700px) {
  :root { --section-pad-y: 80px; --container-pad: 20px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 120px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .future-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .footer-bottom > div { display: flex; gap: 16px; }
  .footer-bottom a { margin-left: 0; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .bars { gap: 6px; }
  .trust { flex-direction: column; align-items: flex-start; }
  .counter-meta { padding-left: 0; border-left: none; padding-top: 16px; border-top: 1px solid var(--border-hi); }
}

/* ---- Static-site additions (ported from the React prototype) ---- */
.modal-overlay { display: none; }
.modal-overlay.open { display: flex; }
.hp-field { display: none !important; }
.form-status { margin-top: 14px; text-align: center; font-size: 14px; min-height: 1em; }
.form-status.err { color: #ff6b6b; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, .faq-q:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.future-card .icon-wrap img { border-radius: 16px; }
.future-card .soon + .icon-wrap { margin-top: 0; }

/* Large hero CTA */
.btn-xl { padding: 20px 44px; font-size: 18px; border-radius: 14px; }
.btn-xl + .btn-outline { padding: 20px 32px; font-size: 16px; }

/* Nav buttons keep their own text colour */
.nav-links a.btn-primary { color: #00112a; }
.nav-links a.btn-outline { color: var(--text); }
.nav-links a.btn-primary:hover { background: var(--accent); }

/* ---- Waitlist landing section ---- */
.wl-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 56px;
  border-radius: 28px;
  border: 1px solid var(--border-hi);
  background:
    radial-gradient(60% 80% at 0% 0%, var(--accent-faint), transparent 70%),
    linear-gradient(180deg, var(--bg-elev-hi), var(--bg-elev));
}
.wl-copy h2 { margin: 14px 0 16px; }
.wl-lead { font-size: 17px; color: var(--text-mute); margin: 0 0 28px; max-width: 480px; }
.wl-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.wl-points li { display: flex; gap: 14px; align-items: flex-start; }
.wl-points .tick {
  flex: none; width: 24px; height: 24px; margin-top: 2px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-faint); color: var(--accent);
  border: 1px solid var(--accent); font-size: 12px;
}
.wl-points strong { display: block; font-family: var(--font-display); font-size: 16px; }
.wl-points span:not(.tick) { color: var(--text-mute); font-size: 14px; }
.wl-proof { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }

.wl-card {
  padding: 32px;
  border-radius: 20px;
  background: var(--bg-base);
  border: 1px solid var(--border-hi);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px var(--accent-faint);
}
.wl-card h3 { font-family: var(--font-display); font-size: 24px; margin: 0 0 4px; }
.wl-sub { margin: 0 0 22px; color: var(--text-mute); font-size: 14px; }
.wl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wl-card .opt { text-transform: none; letter-spacing: 0; color: var(--text-dim); }
.wl-card .btn-primary { width: 100%; justify-content: center; padding: 14px; margin-top: 6px; }
.wl-fine { margin: 14px 0 0; font-size: 12px; color: var(--text-dim); text-align: center; }
.wl-fine a { color: var(--accent); }
.wl-success { text-align: center; padding: 24px 0; }
.wl-success:focus { outline: none; }
.wl-success[hidden], #waitlistForm[hidden] { display: none; }
.wl-success .check {
  width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-size: 26px;
  background: var(--accent-faint);
}
.wl-success p { color: var(--text-mute); margin: 8px 0 22px; }

@media (max-width: 1024px) {
  .wl-panel { grid-template-columns: 1fr; padding: 32px; gap: 36px; }
}
@media (max-width: 700px) {
  .wl-panel { padding: 24px 18px; }
  .wl-card { padding: 22px 18px; }
  .wl-row { grid-template-columns: 1fr; gap: 0; }
}

/* Keep decorative glows from widening the page on small screens */
.hero { overflow-x: clip; }
html { overflow-x: clip; }
@media (max-width: 700px) {
  .dash-wrap::before { inset: -20px 0 60px; }
}

/* Full-height home sections, each with its own glow centred behind the content */
body:not(.legal) section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
body:not(.legal) section > .container { width: 100%; }
body:not(.legal) section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 46% at 50% 50%, var(--accent-glow) 0%, transparent 72%);
  opacity: 0.6;
}
/* Hero is exactly one screen: glow sits directly behind the headline */
body:not(.legal) .hero::before {
  background: radial-gradient(ellipse 55% 45% at 50% 45%, var(--accent-glow) 0%, transparent 72%);
}
.hero { padding-bottom: 0; }
.hero-dual { margin-top: 0; margin-bottom: 0; }
.gb-section { position: relative; padding: 100px 0 60px; }
/* The old page-wide glows are replaced by the per-section ones */
.bg-glow { display: none; }

/* =====================================================================
   Gradebook preview (hero) — recreation of the real GradebookPro screen
   ===================================================================== */
.gb { --g-line: rgba(120,180,255,.14); font-family: var(--font-body); font-size: 12px; color: var(--text-mute); padding: 18px 22px 14px; text-align: left; text-transform: none; letter-spacing: 0; }
.gb h4, .gb h5 { font-family: var(--font-display); color: var(--text); margin: 0; }
.gb-top { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--g-line); }
.gb-brand img { height: 24px; width: auto; }
.gb-title { margin: 0 auto; font-size: 12px; color: var(--text-mute); }
.gb-pills { display: flex; gap: 8px; }
.gb-pill { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--g-line); background: var(--bg-elev); font-size: 11px; white-space: nowrap; }
.gb-pill.sync { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.gb-pill.sync i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.gb[data-sync="pending"] .gb-pill.sync i { background: #fbbf24; animation: gbBlink 1s ease-in-out infinite; }
.s-done { display: none; } .gb[data-sync="done"] .s-pending { display: none; } .gb[data-sync="done"] .s-done { display: inline; }
.gb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 18px 0 14px; }
.gb-head h4 { font-size: 22px; font-weight: 600; }
.gb-meta { font-size: 11px; margin-top: 2px; }
.gb-head-r { display: flex; align-items: center; gap: 12px; }
.gb-note { font-size: 11px; padding: 6px 10px; border: 1px solid var(--g-line); border-radius: 8px; background: var(--bg-elev); color: var(--text-mute); }
.gb[data-sync="done"] .gb-note { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.gb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; border-radius: 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.gb-btn.ghost { border: 1px solid var(--g-line); background: var(--bg-elev); color: var(--text); }
.gb-btn.solid { background: var(--accent); color: #00112a; }
.gb-btn.wide { display: grid; width: 100%; padding: 10px; margin-top: 10px; font-size: 13px; }
.gb-btn.wide b { grid-area: 1 / 1; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); text-align: center; }
.gb[data-state="draft"] .a1, .gb[data-state="approved"] .a2, .gb[data-state="released"] .a3 { opacity: 1; transform: none; }
.gb[data-state="released"] .gb-btn.wide { background: #34d399; }
.gb-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border: 1px solid var(--g-line); border-radius: 12px; background: var(--bg-elev); margin-bottom: 12px; }
.gb-toolbar .sp { flex: 1; }
.gb-toolbar .sel { padding: 4px 10px; border-radius: 8px; color: var(--text); font-weight: 500; white-space: nowrap; }
.gb-toolbar .sel small { color: var(--text-dim); margin-right: 6px; font-weight: 400; }
.gb-toolbar .tb { padding: 4px 8px; color: var(--text-mute); white-space: nowrap; }
.gb-cards { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.gb-card { padding: 14px 16px; border: 1px solid var(--g-line); border-radius: 14px; background: var(--bg-elev); }
.gb-card h5 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.ex-sub { font-size: 11px; color: var(--text-dim); margin: 6px 0; }
.ex-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--g-line); font-size: 11px; }
.ex-row span:nth-child(2) { margin-right: auto; margin-left: 14px; color: var(--text-dim); }
.ex-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ex-total { display: flex; align-items: baseline; gap: 8px; padding-top: 8px; border-top: 1px solid var(--g-line); color: var(--text); }
.ex-total em { margin-right: auto; font-style: normal; font-size: 11px; color: var(--text-dim); }
.cy { color: var(--accent) !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.cat { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin-bottom: 8px; font-size: 11px; }
.cat b { color: var(--text); font-weight: 600; }
.cat .bar { grid-column: 1 / -1; }
.bar { height: 6px; border-radius: 99px; background: var(--bg-elev-hi); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); transform-origin: left; }
.bar.full i { background: #34d399; }
.cat-total { display: flex; justify-content: space-between; margin: 10px 0 6px; padding-top: 8px; border-top: 1px solid var(--g-line); color: var(--text); font-size: 11px; }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border: 1px solid var(--g-line); border-radius: 9px; background: var(--bg-deep); font-size: 11px; text-align: center; }
.seg span { position: relative; z-index: 1; padding: 4px 0; transition: color .25s ease; }
.seg .knob { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 7px; background: var(--accent-faint); border: 1px solid var(--accent); transition: transform .4s var(--ease-out); }
.gb[data-state="approved"] .knob { transform: translateX(100%); } .gb[data-state="released"] .knob { transform: translateX(200%); }
.gb[data-state="draft"] .s1, .gb[data-state="approved"] .s2, .gb[data-state="released"] .s3 { color: var(--accent); }
.gb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.gb-marks { border: 1px solid var(--g-line); border-radius: 14px; background: var(--bg-elev); overflow: hidden; }
.gb-marks-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--g-line); }
.gb-marks-head b { color: var(--text); margin-right: 4px; }
.gb-marks-head em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--text-dim); }
.chip { padding: 2px 9px; border-radius: 999px; font-size: 10.5px; border: 1px solid; }
.chip.amber, .tag.amber { color: #fbbf24; border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.08); }
.chip.red, .tag.red { color: #f87171; border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.1); }
.gb-scroll { overflow-x: auto; }
.gb table { width: 100%; min-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.gb th { padding: 8px 6px; font-weight: 600; font-size: 11px; color: var(--text); text-align: center; vertical-align: bottom; border-bottom: 1px solid var(--g-line); }
.gb th small { display: block; font-weight: 400; font-size: 9.5px; color: var(--text-dim); margin-top: 2px; }
.gb th.learner, .gb td.learner { text-align: left; padding-left: 14px; width: 24%; }
.ct { display: block; width: fit-content; margin: 0 auto 4px; padding: 1px 7px; border-radius: 6px; font-size: 9.5px; font-weight: 500; border: 1px solid var(--g-line); color: var(--text-mute); background: var(--bg-deep); }
i.ct { display: inline-block; margin: 0 2px; }
.ct.c { color: #34d399; border-color: rgba(52,211,153,.4); } .ct.k { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.addtask { color: var(--accent); font-weight: 500; }
.gb td { padding: 6px; text-align: center; border-bottom: 1px solid var(--g-line); color: var(--text); font-size: 12px; }
.gb td.learner { font-weight: 500; white-space: nowrap; }
.ini { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 6px; background: var(--bg-elev-hi); font-size: 9px; color: var(--text-mute); }
.gb td.n { color: var(--text-dim); } .gb td.m { color: var(--text); }
.pen { display: inline-block; width: 9px; height: 9px; margin-right: 5px; vertical-align: -1px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.8 9.94l-3.75-3.75L3 17.25zM20.7 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.8 9.94l-3.75-3.75L3 17.25zM20.7 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E") center/contain no-repeat; }
.clock { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border: 1.5px solid #fbbf24; border-radius: 50%; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; border: 1px solid var(--g-line); background: var(--bg-deep); color: var(--text-mute); white-space: nowrap; }
.tag.miss { color: #fbbf24; border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.1); }
.gb td.addcol, .gb th.addcol { width: 8%; }
.gb td.calc { background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--accent); font-weight: 600; }
.gb th.calcH { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.gb tr.me td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.gb tr.me td.calc.ca { box-shadow: inset 0 0 0 1.5px var(--accent); }
.gb td.lab-cell { position: relative; }
.gb td.lab-cell.focus::after { content: ""; position: absolute; inset: 2px 4px; border: 1.5px solid var(--accent); border-radius: 7px; box-shadow: 0 0 14px var(--accent-glow); animation: gbFocus .35s var(--ease-out); }
.gb tbody tr.row-on td:not(.calc) { background: color-mix(in srgb, var(--accent) 5%, transparent); transition: background-color .3s ease; }
.gb-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--g-line); border-radius: 12px; font-size: 10px; color: var(--text-dim); }
.gb-legend b { margin-right: 6px; letter-spacing: .08em; }
.gb-legend i.tag { margin: 0 2px; font-style: normal; font-size: 10px; }
.gb-sample { margin: 10px 0 0; text-align: right; font-size: 10px; color: var(--text-dim); }

/* entrance + loops, started when the preview scrolls into view (.go) */
.gb.go .gb-top, .gb.go .gb-head, .gb.go .gb-toolbar, .gb.go .gb-card, .gb.go .gb-marks, .gb.go .gb-legend { animation: gbRise .6s var(--ease-out) backwards; }
.gb.go .gb-head { animation-delay: .05s; } .gb.go .gb-toolbar { animation-delay: .1s; }
.gb.go .gb-card:nth-child(1) { animation-delay: .18s; } .gb.go .gb-card:nth-child(2) { animation-delay: .26s; } .gb.go .gb-card:nth-child(3) { animation-delay: .34s; }
.gb.go .gb-marks { animation-delay: .42s; } .gb.go .gb-legend { animation-delay: .9s; }
.gb.go tbody tr { animation: gbRow .45s var(--ease-out) backwards; }
.gb.go tbody tr:nth-child(1) { animation-delay: .55s; } .gb.go tbody tr:nth-child(2) { animation-delay: .6s; } .gb.go tbody tr:nth-child(3) { animation-delay: .65s; } .gb.go tbody tr:nth-child(4) { animation-delay: .7s; } .gb.go tbody tr:nth-child(5) { animation-delay: .75s; } .gb.go tbody tr:nth-child(6) { animation-delay: .8s; } .gb.go tbody tr:nth-child(7) { animation-delay: .85s; } .gb.go tbody tr:nth-child(8) { animation-delay: .9s; } .gb.go tbody tr:nth-child(9) { animation-delay: .95s; } .gb.go tbody tr:nth-child(10) { animation-delay: 1s; }
.gb.go .bar i { animation: gbBar 1s var(--ease-out) backwards; animation-delay: .6s; }
.gb.go .cat:nth-of-type(2) .bar i { animation-delay: .72s; } .gb.go .cat:nth-of-type(3) .bar i { animation-delay: .84s; } .gb.go .bar.full i { animation-delay: 1s; }
@keyframes gbRise { from { opacity: 0; transform: translateY(14px); } }
@keyframes gbRow { from { opacity: 0; transform: translateX(-10px); } }
@keyframes gbBar { from { transform: scaleX(0); } }
@keyframes gbBlink { 50% { opacity: .35; } }
@keyframes gbFocus { from { opacity: 0; transform: scale(.85); } }

@media (max-width: 900px) {
  .gb { padding: 14px 12px; }
  .gb-cards { grid-template-columns: 1fr; }
  .gb-toolbar .tb, .gb-title, .gb-head-r .ghost, .gb-marks-head em { display: none; }
  .gb-head { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   Motion graphics for the rest of the site
   ===================================================================== */
/* sections breathe slowly behind their content */
body:not(.legal) section::before { animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .5; } 50% { opacity: .75; } }

/* How it works: framed mini product scenes, each a looping story (--cycle) */
.viz {
  --cycle: 9s;
  position: relative; height: 200px; margin: 0 0 22px; padding: 16px; overflow: hidden;
  border: 1px solid var(--border-hi); border-radius: 18px;
  background:
    radial-gradient(70% 90% at 50% 0%, var(--accent-faint), transparent 70%),
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--bg-elev);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
  font-size: 11px; color: var(--text-mute);
}
.viz b { color: var(--text); font-weight: 600; }
.viz .pend, .viz .ready { display: block; }

/* 1 — one administrator provisions the school */
.viz-org { display: flex; flex-direction: column; align-items: center; --cycle: 8s; }
.vo-admin { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 12px; border: 1px solid var(--accent); background: var(--bg-base); box-shadow: 0 0 24px var(--accent-faint); position: relative; z-index: 1; }
.vo-admin .av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #00112a; font-weight: 700; font-size: 11px; }
.vo-admin small { display: block; color: var(--text-dim); font-size: 10px; }
.vo-lines { width: 100%; height: 40px; margin: -1px 0; }
.vo-lines path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 100; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: .75; }
.vo-kids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.kid { padding: 9px 8px; border-radius: 11px; border: 1px solid var(--border-hi); background: var(--bg-base); text-align: center; opacity: 0; }
.kid .ic { display: block; color: var(--accent); font-size: 14px; margin-bottom: 3px; }
.kid .st { position: relative; display: block; height: 16px; margin-top: 5px; font-size: 10px; }
.kid .st u { position: absolute; inset: 0; text-decoration: none; display: grid; place-items: center; }
.kid .pend { color: var(--text-dim); } .kid .ready { color: #34d399; font-weight: 600; opacity: 0; }
.step.in .vo-lines path { animation: voDraw var(--cycle) var(--ease-out) infinite; }
.step.in .vo-lines path:nth-child(2) { animation-delay: .15s; } .step.in .vo-lines path:nth-child(3) { animation-delay: .3s; }
.step.in .kid { animation: voKid var(--cycle) var(--ease-out) infinite backwards; }
.step.in .kid:nth-child(2) { animation-delay: .35s; } .step.in .kid:nth-child(3) { animation-delay: .7s; }
.step.in .kid .pend { animation: voPend var(--cycle) infinite backwards; } .step.in .kid .ready { animation: voReady var(--cycle) infinite backwards; }
.step.in .kid:nth-child(2) u { animation-delay: .35s; } .step.in .kid:nth-child(3) u { animation-delay: .7s; }
@keyframes voDraw { 0% { stroke-dashoffset: 100; opacity: 0; } 4% { opacity: .75; } 16%, 86% { stroke-dashoffset: 0; opacity: .75; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes voKid { 0%, 8% { opacity: 0; transform: translateY(12px) scale(.95); } 20%, 88% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes voPend { 0%, 36% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes voReady { 0%, 38% { opacity: 0; transform: scale(.7); } 46%, 88% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* 2 — marks queue offline, then sync to the cloud */
.viz-sync { display: flex; align-items: center; gap: 0; }
.vs-dev { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-hi); background: var(--bg-base); }
.vs-bar { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 11px; white-space: nowrap; }
.pills { position: relative; flex: none; width: 74px; height: 18px; }
.pill { position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 999px; font-size: 10px; font-weight: 600; border: 1px solid; opacity: 0; }
.pill.off { color: #f87171; border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.1); opacity: 1; }
.pill.off i { width: 5px; height: 5px; border-radius: 50%; background: #f87171; }
.pill.syncing { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-faint); }
.pill.done { color: #34d399; border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.1); }
.vs-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.vs-row .val { font-style: normal; font-weight: 600; color: var(--accent); }
.vs-q { position: relative; height: 18px; margin-top: 8px; }
.q { position: absolute; left: 0; top: 0; padding: 2px 8px; border-radius: 999px; font-size: 10px; border: 1px solid rgba(251,191,36,.45); color: #fbbf24; background: rgba(251,191,36,.08); opacity: 0; }
.q.q0 { color: #34d399; border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.1); }
.vs-pipe { position: relative; flex: none; width: 56px; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--border-hi) 0 4px, transparent 4px 8px); }
.pk { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); opacity: 0; }
.vs-cloud { position: relative; flex: none; width: 58px; }
.vs-cloud svg { width: 58px; fill: var(--accent-faint); stroke: var(--accent); stroke-width: 1.6; }
.vs-cloud .tick { position: absolute; left: 50%; top: 52%; width: 18px; height: 18px; margin: -9px 0 0 -9px; display: grid; place-items: center; border-radius: 50%; background: #34d399; color: #00112a; font-size: 10px; font-weight: 700; opacity: 0; }
.step.in .vs-dev .pill.off { animation: vsOff var(--cycle) infinite; } .step.in .pill.syncing { animation: vsSyncing var(--cycle) infinite; } .step.in .pill.done { animation: vsDone var(--cycle) infinite; }
.step.in .val { animation: vsVal var(--cycle) steps(1, end) infinite; clip-path: inset(0 100% 0 0); }
.step.in .val.r1 { animation: vsReveal var(--cycle) var(--ease-out) infinite; } .step.in .val.r2 { animation: vsReveal2 var(--cycle) var(--ease-out) infinite; } .step.in .val.r3 { animation: vsReveal3 var(--cycle) var(--ease-out) infinite; }
.step.in .q1 { animation: vsQ1 var(--cycle) infinite; } .step.in .q2 { animation: vsQ2 var(--cycle) infinite; } .step.in .q3 { animation: vsQ3 var(--cycle) infinite; } .step.in .q0 { animation: vsQ0 var(--cycle) infinite; }
.step.in .pk { animation: vsPk var(--cycle) cubic-bezier(.4,0,.2,1) infinite; } .step.in .p2 { animation-delay: .22s; } .step.in .p3 { animation-delay: .44s; }
.step.in .vs-cloud .tick { animation: vsTick var(--cycle) var(--ease-out) infinite; }
@keyframes vsOff { 0%, 42% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes vsSyncing { 0%, 44% { opacity: 0; } 48%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes vsDone { 0%, 64% { opacity: 0; } 68%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes vsReveal { 0%, 6% { clip-path: inset(0 100% 0 0); } 12%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes vsReveal2 { 0%, 16% { clip-path: inset(0 100% 0 0); } 22%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes vsReveal3 { 0%, 26% { clip-path: inset(0 100% 0 0); } 32%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes vsQ1 { 0%, 10% { opacity: 0; } 12%, 20% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes vsQ2 { 0%, 20% { opacity: 0; } 22%, 30% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes vsQ3 { 0%, 30% { opacity: 0; } 32%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes vsQ0 { 0%, 66% { opacity: 0; } 70%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes vsPk { 0%, 47% { opacity: 0; transform: translateX(0); } 50% { opacity: 1; } 62% { opacity: 1; transform: translateX(48px); } 65%, 100% { opacity: 0; transform: translateX(48px); } }
@keyframes vsTick { 0%, 64% { opacity: 0; transform: scale(.4); } 70%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* 3 — the gap between CA and exam closes, and the support list appears */
.viz-ins { display: grid; grid-template-columns: 1fr 112px; gap: 14px; }
.vi-chart { display: flex; flex-direction: column; min-width: 0; }
.vi-legend { display: flex; gap: 12px; font-size: 10px; margin-bottom: 6px; }
.vi-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 2px; background: var(--accent); }
.vi-legend .ex::before { background: var(--accent-soft); opacity: .6; }
.vi-bars { flex: 1; display: flex; align-items: flex-end; justify-content: space-around; gap: 6px; border-bottom: 1px solid var(--border-hi); }
.vi-bars .g { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.vi-bars i { display: block; width: 12px; border-radius: 4px 4px 0 0; }
.vi-bars .ca { background: linear-gradient(180deg, var(--accent), var(--accent-soft)); }
.vi-bars .ex { background: var(--accent-soft); opacity: .55; transform-origin: bottom; transform: scaleY(.62); }
.vi-axis { display: flex; justify-content: space-around; margin-top: 4px; font-family: var(--font-mono); font-size: 9px; color: var(--text-dim); }
.vi-list { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--border-hi); background: var(--bg-base); }
.vi-list > b { font-size: 10px; letter-spacing: .04em; }
.vi-s { display: flex; align-items: center; gap: 7px; opacity: 0; }
.vi-s span { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--bg-elev-hi); color: var(--text); font-size: 9px; font-weight: 600; border: 1px solid rgba(251,191,36,.5); }
.vi-s i { flex: 1; height: 5px; border-radius: 99px; background: var(--bg-elev-hi); overflow: hidden; }
.vi-s u { display: block; height: 100%; width: var(--w); border-radius: 99px; background: #fbbf24; transform-origin: left; }
.step.in .vi-bars .ex { animation: viClose var(--cycle) var(--ease-out) infinite; }
.step.in .vi-bars .g:nth-child(2) .ex { animation-delay: .1s; } .step.in .vi-bars .g:nth-child(3) .ex { animation-delay: .2s; } .step.in .vi-bars .g:nth-child(4) .ex { animation-delay: .3s; }
.step.in .vi-s { animation: viIn var(--cycle) var(--ease-out) infinite backwards; } .step.in .s2 { animation-delay: .25s; } .step.in .s3 { animation-delay: .5s; }
.step.in .vi-s u { animation: viBar var(--cycle) var(--ease-out) infinite backwards; } .step.in .s2 u { animation-delay: .25s; } .step.in .s3 u { animation-delay: .5s; }
@keyframes viClose { 0%, 10% { transform: scaleY(.62); } 45%, 88% { transform: scaleY(.96); } 100% { transform: scaleY(.62); } }
@keyframes viIn { 0%, 36% { opacity: 0; transform: translateX(10px); } 46%, 88% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes viBar { 0%, 44% { transform: scaleX(0); } 62%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* product visuals */
.product-visual.in .mb-row:not(.head) { animation: gbRow .45s var(--ease-out) backwards; }
.product-visual.in .mb-row:nth-child(2) { animation-delay: .1s; } .product-visual.in .mb-row:nth-child(3) { animation-delay: .17s; } .product-visual.in .mb-row:nth-child(4) { animation-delay: .24s; } .product-visual.in .mb-row:nth-child(5) { animation-delay: .31s; } .product-visual.in .mb-row:nth-child(6) { animation-delay: .38s; } .product-visual.in .mb-row:nth-child(7) { animation-delay: .45s; }

/* ecosystem cards + waitlist icons float gently */
.future-card .icon-wrap { animation: floaty 5s ease-in-out infinite; }
.future-card:nth-child(2) .icon-wrap { animation-delay: -1.2s; } .future-card:nth-child(3) .icon-wrap { animation-delay: -2.4s; } .future-card:nth-child(4) .icon-wrap { animation-delay: -3.6s; }
.future-card .soon { overflow: hidden; }
.future-card .soon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); animation: shimmer 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
@keyframes shimmer { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.wl-icons { display: flex; gap: 10px; margin: 0 0 22px; }
.wl-icons img { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-hi); animation: floaty 4.5s ease-in-out infinite; }
.wl-icons img:nth-child(2) { animation-delay: -.7s; } .wl-icons img:nth-child(3) { animation-delay: -1.4s; } .wl-icons img:nth-child(4) { animation-delay: -2.1s; } .wl-icons img:nth-child(5) { animation-delay: -2.8s; } .wl-icons img:nth-child(6) { animation-delay: -3.5s; }
.wl-points .tick { transition: transform .3s var(--ease-out), background-color .3s ease; }
.wl-panel.in .wl-points li:nth-child(1) .tick { animation: vPop .5s var(--ease-out) .3s backwards; } .wl-panel.in .wl-points li:nth-child(2) .tick { animation: vPop .5s var(--ease-out) .45s backwards; } .wl-panel.in .wl-points li:nth-child(3) .tick { animation: vPop .5s var(--ease-out) .6s backwards; }
.wl-card .btn-primary { position: relative; overflow: hidden; }
.wl-card .btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-130%); animation: shimmer 6s ease-in-out 1.5s infinite; }
.about .sig { position: relative; display: inline-block; }
.about .sig::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform: scaleX(0); transform-origin: left; }
.about .reveal.in .sig::after { animation: gbBar 1.2s var(--ease-out) .5s forwards; }

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

/* three.js ambient layer (scene.js) */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
#fx.on { opacity: 1; }
/* hero mock tilts toward the cursor (set by home.js) */
.dash { transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .25s ease-out; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .dash { transform: none; } }

/* Mobile: render the gradebook at a fixed design width, scaled down to fit (home.js sets --gs) */
.dash.fit { width: 640px; transform: scale(var(--gs)); transform-origin: top left; transition: none; }
