/* Shared stylesheet for the four Gagner for Schools solution pages:
   ai-infrastructure.php, curriculum.php, school-management.php, parent-portal.php.
   Each page pulls a different subset of this file so the four can look and feel
   distinct while sharing the same underlying tokens and chrome. */

/* ==========================================================================
   AI MARQUEE: an infinite scrolling statement banner, used on AI Infrastructure.
   Reuses the shared .marquee / .marquee-track scroll mechanics from styles.css.
   ========================================================================== */
.infra-marquee-section { padding: 56px 0; overflow: hidden; background: var(--surface); }
.infra-marquee-item {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: clamp(50px, 4.6vw, 50px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--border);
  white-space: nowrap;
}
.infra-marquee-item .dot { color: var(--brand-tint); font-size: 0.6em; }
.infra-marquee-section .marquee-track.is-animating { animation-duration: 70s; }

/* ---------- epic hero: animated orbs, dot grid, a giant ghost numeral
   marking which of the four solutions this is, and themed floating icons ---------- */
.solution-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 64px) 0 88px;
  background:
    radial-gradient(75% 90% at 82% -10%, rgba(69,54,224,0.1), transparent 60%),
    var(--surface);
}
.solution-hero-inner { position: relative; z-index: 3; max-width: 720px; }

.solution-hero-orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.hero-orb-a {
  width: 420px; height: 420px; top: -150px; right: -60px;
  background: radial-gradient(circle, #6d4fe0, transparent 70%);
  animation: heroOrbA 24s ease-in-out infinite;
}
.hero-orb-b {
  width: 340px; height: 340px; bottom: -180px; right: 18%;
  background: radial-gradient(circle, #3457e0, transparent 70%);
  animation: heroOrbB 28s ease-in-out infinite;
}
.hero-orb-c {
  width: 280px; height: 280px; top: 20%; left: -120px;
  background: radial-gradient(circle, #9c8bff, transparent 70%);
  animation: heroOrbC 32s ease-in-out infinite;
}
@keyframes heroOrbA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 40px) scale(1.1); }
}
@keyframes heroOrbB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -35px) scale(0.92); }
}
@keyframes heroOrbC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, 25px) scale(1.08); }
}

.solution-hero-grid {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  color: var(--border); opacity: 0.7;
  mask-image: radial-gradient(60% 70% at 88% 10%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(60% 70% at 88% 10%, #000, transparent 72%);
}

/* the giant ghost numeral, e.g. "01", marking this page's place among the four solutions */
.solution-hero-mark {
  position: absolute;
  top: clamp(-40px, -4vw, 10px);
  right: clamp(-30px, 1vw, 40px);
  z-index: 1;
  font-size: clamp(200px, 24vw, 400px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(69, 54, 224, 0.13);
  pointer-events: none;
  user-select: none;
}

.solution-hero-floaters { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.hero-float {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(20,16,60,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  animation: heroFloat 8s ease-in-out infinite;
}
.hero-float svg { width: 22px; height: 22px; }
.hero-float-a { top: 18%; right: 30%; animation-duration: 7.5s; }
.hero-float-b { top: 8%; right: 8%; animation-duration: 8.5s; animation-delay: -2.5s; }
.hero-float-c { top: 62%; right: 34%; animation-duration: 9s; animation-delay: -4s; }
.hero-float-d { top: 46%; right: 6%; animation-duration: 7s; animation-delay: -1s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-4deg); }
}
@media (max-width: 900px) {
  .hero-float, .solution-hero-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-float { animation: none; }
}

.solution-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-tint);
  padding: 7px 14px 7px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.solution-hero-tag-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
}

.solution-hero-eyebrow { display: flex; align-items: center; gap: 10px; }
.solution-hero h1 { font-size: clamp(38px, 5.6vw, 58px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 14px 0 22px; }
.solution-hero-sub { font-size: 17px; line-height: 1.7; color: var(--text-soft); max-width: 58ch; }
.solution-hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.solution-section { padding: 80px 0; }
.solution-section-muted { background: var(--surface-2); }
.solution-section-head { max-width: 62ch; }
.solution-section-head.center { margin: 0 auto 30px auto; text-align: center; }
.solution-section-head.center .section-sub { margin-left: auto; margin-right: auto; }

.solution-cta {
  border-radius: var(--radius-xl);
  background: var(--contrast-bg);
  color: #fff;
  padding: 64px clamp(24px, 5vw, 72px);
  text-align: center;
}
.solution-cta h2 { color: #fff; max-width: 26ch; margin: 0 auto 14px; }
.solution-cta p { color: rgba(255,255,255,0.7); max-width: 50ch; margin: 0 auto 28px; font-size: 15.5px; }

/* soft "coming soon" tag for light sections */
.soon-tag {
  display: inline-flex;
  margin-top: 24px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--brand-deep);
  background: var(--brand-tint);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  max-width: 46ch;
}

.capability-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.capability-pill {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
}

.gradient-text {
  background: linear-gradient(90deg, #6d4fe0, #3457e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   LEDGER: an editorial, spec-sheet style list, used on AI Infrastructure.
   Full-width rows with a large faint numeral, not a grid of floating cards.
   ========================================================================== */
.ledger { margin-top: 48px; border-top: 1px solid var(--border); }
.ledger-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 20px;
  border-bottom: 1px solid var(--border);
  transition: background-color .25s ease;
}
.ledger-row:hover { background: var(--surface-2); }
.ledger-row.is-highlight,
.ledger-row.is-highlight:hover { background: var(--brand-tint); border-color: transparent; }
.ledger-row.is-highlight .ledger-num { color: var(--brand-deep); }
.ledger-num {
  flex-shrink: 0;
  width: 52px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--border);
  transition: color .25s ease;
}
.ledger-row:hover .ledger-num { color: var(--brand-deep); }
.ledger-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-tint);
  display: flex; align-items: center; justify-content: center;
}
.ledger-icon svg { width: 16px; height: 16px; color: var(--brand-deep); }
.ledger-body { flex: 1; display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 760px) {
  .ledger-body { grid-template-columns: 0.8fr 1.2fr; gap: 32px; align-items: baseline; }
}
.ledger-body h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.ledger-body p { font-size: 14px; line-height: 1.65; color: var(--text-soft); }

/* ==========================================================================
   AI TOOL CARDS: pastel bento tiles with a huge bleeding ghost numeral,
   the same device the About page's core values use, adapted for a light
   page. Used for "Beyond the Classroom" on AI Infrastructure. The seventh
   card breaks the grid as a full-width closing tile in solid brand ink,
   mirroring how About closes its own value grid with a distinct tile.
   ========================================================================== */
.ai-tool-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) {
  .ai-tool-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 1040px) {
  .ai-tool-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

.ai-tool-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 30px 26px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ai-tool-card:hover { transform: translateY(-5px); box-shadow: 0 26px 44px -22px rgba(20,16,60,0.28); }

.ai-tool-num {
  position: absolute;
  top: -0.1em;
  right: -0.05em;
  z-index: 0;
  font-size: 132px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(20, 24, 31, 0.055);
  -webkit-text-stroke: 1px rgba(20, 24, 31, 0.1);
  pointer-events: none;
  user-select: none;
}

.ai-tool-card h3 {
  position: relative;
  z-index: 1;
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  max-width: 17ch;
  margin-bottom: 10px;
}
.ai-tool-card p {
  position: relative;
  z-index: 1;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-soft);
  max-width: 30ch;
}
.ai-tool-icon {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-tool-icon svg { width: 19px; height: 19px; color: var(--brand-deep); }

.ai-tool-card.tone-1 { background: linear-gradient(153deg, var(--edu-1), var(--edu-2) 48%, var(--card-end) 56%); }
.ai-tool-card.tone-2 { background: linear-gradient(153deg, var(--agri-1), var(--agri-2) 48%, var(--card-end) 56%); }
.ai-tool-card.tone-3 { background: linear-gradient(153deg, var(--health-1), var(--health-2) 48%, var(--card-end) 56%); }
.ai-tool-card.tone-4 { background: linear-gradient(153deg, #e4ecfe, #ded0fb 48%, var(--card-end) 56%); }
.ai-tool-card.tone-5 { background: linear-gradient(153deg, #ffe9ae, #fbf3dd 48%, var(--card-end) 56%); }
.ai-tool-card.tone-6 { background: linear-gradient(153deg, #ffd3c2, #fbe6dd 48%, var(--card-end) 56%); }

/* the seventh card: a full-width closing tile in solid brand ink, echoing
   the special tile About uses to close its own value grid */
.ai-tool-card.is-closing {
  grid-column: 1 / -1;
  background: var(--contrast-bg);
  flex-direction: row;
  align-items: center;
  gap: 28px;
  min-height: 0;
  padding: 34px clamp(26px, 4vw, 46px);
}
.ai-tool-card.is-closing .ai-tool-num {
  font-size: 168px;
  color: rgba(255,255,255,0.045);
  -webkit-text-stroke: 1px rgba(255,255,255,0.13);
}
.ai-tool-card.is-closing .ai-tool-icon { background: rgba(255,255,255,0.1); margin-top: 0; flex-shrink: 0; }
.ai-tool-card.is-closing .ai-tool-icon svg { color: #fff; }
.ai-tool-card.is-closing h3 { color: #fff; margin-bottom: 6px; max-width: none; }
.ai-tool-card.is-closing p { color: rgba(255,255,255,0.66); max-width: 56ch; }
@media (max-width: 640px) {
  .ai-tool-card.is-closing { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* a calm, non-urgent badge marking trust/principle content, distinct from
   the pulsing red alert badge used for safety notifications elsewhere */
.section-trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-deep);
  margin-bottom: 14px;
}
.section-trust-badge svg { width: 16px; height: 16px; }

/* ==========================================================================
   TRUST STRIP: a horizontally scrolling row of "checkpoint" cards with a
   soft glowing icon badge, used on AI Infrastructure for the responsible-AI
   principles. Edge-masked so the row visibly invites a swipe/scroll.
   ========================================================================== */
.trust-strip-wrap { position: relative; margin-top: 44px; }
.trust-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 4px 18px;
  margin: -4px -4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 96%, transparent);
}
.trust-strip::-webkit-scrollbar { height: 6px; }
.trust-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.trust-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(250px, 25vw, 280px);
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.trust-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-ambient); }
.trust-card-icon {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: radial-gradient(circle at 32% 28%, rgba(69,54,224,0.2), rgba(69,54,224,0.05));
}
.trust-card-icon::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(69,54,224,0.28), transparent 70%);
  filter: blur(11px);
  z-index: -1;
}
.trust-card-icon svg { width: 24px; height: 24px; color: var(--brand-deep); }
.trust-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.005em; margin-bottom: 10px; }
.trust-card p { font-size: 13.5px; line-height: 1.62; color: var(--text-soft); }

.trust-strip-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-softer);
}
.trust-strip-hint svg { width: 14px; height: 14px; animation: trustHintNudge 1.8s ease-in-out infinite; }
@keyframes trustHintNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
@media (min-width: 1040px) {
  .trust-strip-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .trust-strip-hint svg { animation: none; }
}

/* ==========================================================================
   PRINCIPLE ROWS: the "AI assists, humans decide" manifesto, a big statement
   followed by rows split into an AI half and a human half, each marked by a
   colored dot, so the layout itself carries the AI/human split.
   ========================================================================== */
.principle-statement {
  margin: 8px auto 0;
  max-width: 34ch;
  text-align: center;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--text);
}
.principle-statement .accent { color: var(--brand-deep); }

.principle-rows { margin-top: 52px; display: flex; flex-direction: column; }
.principle-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.principle-row:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 760px) {
  .principle-row { grid-template-columns: 0.85fr 1fr 1fr; gap: 28px; align-items: start; }
}
.principle-row h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.005em; padding-top: 2px; }
.principle-half { position: relative; padding-left: 18px; }
.principle-half::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.principle-half.is-ai::before { background: var(--brand); }
.principle-half.is-human::before { background: #f59e0b; }
.principle-half-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-softer);
  margin-bottom: 4px;
}
.principle-half p { font-size: 13.5px; line-height: 1.6; color: var(--text-soft); }

.principle-closing {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  padding: 200px clamp(24px, 6vw, 64px);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, var(--brand-tint), var(--surface) 60%);
  text-align: center;
}
.principle-closing h2 {
  position: relative;
  z-index: 2;
  max-width: 30ch;
  margin: 0 auto;
  /* font-size: clamp(26px, 4vw, 38px); */
}

/* ---- background scene: a paper plane gliding along a dotted flight line,
   with small tilted "3D" shapes drifting around it ---- */
.principle-closing-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.principle-closing-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--border);
  opacity: 0.9;
}
.paper-plane {
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 28px;
  color: var(--brand-deep);
  filter: drop-shadow(0 10px 14px rgba(69,54,224,0.25));
  offset-path: path('M -30 190 C 220 40, 540 300, 900 80 S 1300 30, 1460 120');
  offset-rotate: auto;
  animation: paperPlaneFly 16s ease-in-out infinite;
}
.paper-plane svg { width: 100%; height: 100%; }
@keyframes paperPlaneFly {
  0% { offset-distance: 0%; opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.closing-shape {
  position: absolute;
  border-radius: 8px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  box-shadow: 0 10px 18px -8px rgba(20,16,60,0.18);
}
.closing-shape.is-circle { border-radius: 50%; }
.closing-shape-a { width: 24px; height: 24px; top: 16%; left: 10%; transform: perspective(500px) rotateY(-20deg) rotateX(12deg); animation: closingShapeDrift 8s ease-in-out infinite; }
.closing-shape-b { width: 32px; height: 32px; top: 64%; left: 20%; transform: perspective(500px) rotateY(16deg) rotateX(-8deg); animation: closingShapeDrift 9.5s ease-in-out infinite; animation-delay: -3s; }
.closing-shape-c { width: 20px; height: 20px; top: 20%; right: 14%; transform: perspective(500px) rotateY(18deg) rotateX(10deg); animation: closingShapeDrift 7.5s ease-in-out infinite; animation-delay: -1.5s; }
.closing-shape-d { width: 28px; height: 28px; top: 66%; right: 9%; transform: perspective(500px) rotateY(-14deg) rotateX(-10deg); animation: closingShapeDrift 10s ease-in-out infinite; animation-delay: -5s; }
@keyframes closingShapeDrift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@media (max-width: 760px) {
  .paper-plane, .closing-shape { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .paper-plane, .closing-shape { animation: none; }
}

/* ---- the highlighter-pen sweep, used to call out the closing sentence ---- */
mark{
  background-color: var(--accent);
}
.highlight-sweep {
  position: relative;
  display: inline;
  color: #fff;
  background-image: linear-gradient(100deg, #4536e0, #968ee6);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 0;
  padding: 1px 5px;
  border-radius: 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: 1.2;
}
.reveal.is-visible .highlight-sweep {
  animation: highlightSweep .9s .5s cubic-bezier(.22,.8,.24,1) forwards;
}
@keyframes highlightSweep {
  from { background-size: 0% 100%; }
  to { background-size: 100% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .highlight-sweep { background-size: 100% 100%; animation: none; }
}

/* ==========================================================================
   OPS PANELS: colored-accent category panels, used on School Management.
   Each category gets a tinted panel with compact internal rows, not a grid
   of uniform floating cards.
   ========================================================================== */
.ops-panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent, var(--brand));
  background: var(--surface);
  overflow: hidden;
}
.ops-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 28px;
  background: var(--surface-2);
}
.ops-panel-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent, var(--brand)) 16%, var(--surface));
  display: flex; align-items: center; justify-content: center;
}
.ops-panel-icon svg { width: 20px; height: 20px; }
.ops-panel-head h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.ops-panel-head span { display: flex; font-size: 12.5px; color: var(--text-softer); margin-top: 2px; }

.ops-panel-body { padding: 6px 28px 6px; }
.ops-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.ops-row:last-child { border-bottom: none; }
.ops-row h4 { flex: 0 0 auto; width: 100%; max-width: 190px; font-size: 14.5px; font-weight: 700; }
.ops-row p { flex: 1; font-size: 13.5px; line-height: 1.6; color: var(--text-soft); }
@media (max-width: 640px) {
  .ops-row { flex-direction: column; gap: 6px; }
  .ops-row h4 { max-width: none; }
}

.ops-panel-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 900px) {
  .ops-panel-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.ops-panel.tone-1 { --accent: var(--edu-2); }
.ops-panel.tone-2 { --accent: var(--agri-2); }
.ops-panel.tone-3 { --accent: var(--health-2); }
.ops-panel.tone-4 { --accent: #c98f1d; }

/* ==========================================================================
   CHECKLIST: a lightweight benefits list, used on Parent Portal.
   No cards, no borders, just a rhythm of check bubbles and hairlines.
   ========================================================================== */
.checklist {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 760px) {
  .checklist { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
.checklist-item {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.checklist-check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center;
}
.checklist-check svg { width: 13px; height: 13px; }
.checklist-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.checklist-item p { font-size: 13.5px; line-height: 1.6; color: var(--text-soft); }

/* a small pulsing bell badge that sits above a section eyebrow to flag
   alert-related content without building a literal banner */
.section-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  margin-bottom: 14px;
  animation: alertPulse 2.4s ease-in-out infinite;
}
.section-alert-badge svg { width: 16px; height: 16px; }
@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.35); }
  50% { box-shadow: 0 0 0 9px rgba(220,38,38,0); }
}
@media (prefers-reduced-motion: reduce) {
  .section-alert-badge { animation: none; }
}

/* ==========================================================================
   ALERT LADDER: an escalating safety-notification timeline, used on Parent
   Portal to explain how the three-level AI safety system reaches a parent.
   A vertical line runs behind the level badges, fading from calm grey to
   amber to red as severity climbs.
   ========================================================================== */
.alert-ladder {
  position: relative;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}
.alert-ladder::before {
  content: '';
  position: absolute;
  top: 26px; bottom: 26px; left: 25px;
  width: 2px;
  background: linear-gradient(180deg, #94a3b8, #f59e0b 55%, #dc2626);
}
.alert-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding: 18px 0;
}
.alert-step-badge {
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-softer);
}
.alert-step.level-2 .alert-step-badge { border-color: #f59e0b; color: #b45309; }
.alert-step.level-3 .alert-step-badge { border-color: #dc2626; color: #b91c1c; background: #fef2f2; }

.alert-step-body {
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.alert-step.level-2 .alert-step-body { border-color: rgba(245,158,11,0.35); background: #fffaf0; }
.alert-step.level-3 .alert-step-body { border-color: rgba(220,38,38,0.35); background: #fef2f2; }

.alert-step-tier {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-softer);
  margin-bottom: 10px;
}
.alert-step.level-2 .alert-step-tier { background: rgba(245,158,11,0.16); color: #b45309; }
.alert-step.level-3 .alert-step-tier { background: rgba(220,38,38,0.14); color: #b91c1c; }

.alert-step-body h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.005em; margin-bottom: 8px; }
.alert-step-body p { font-size: 14px; line-height: 1.65; color: var(--text-soft); }

.alert-callout {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--brand-tint);
}
.alert-callout-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert-callout-icon svg { width: 18px; height: 18px; color: var(--brand-deep); }
.alert-callout p { font-size: 14.5px; line-height: 1.65; color: var(--text); }
.alert-callout strong { color: var(--brand-deep); }

@media (max-width: 640px) {
  .alert-step { grid-template-columns: 40px 1fr; gap: 14px; }
  .alert-step-badge { width: 40px; height: 40px; font-size: 13px; }
  .alert-ladder::before { left: 19px; }
}

/* ==========================================================================
   VISIBILITY SPLIT: an honest "live today" vs "on the roadmap" pair of
   panels, used on Parent Portal for what a parent can currently do versus
   per-child AI controls that do not exist yet.
   ========================================================================== */
.visibility-split {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 780px) {
  .visibility-split { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.visibility-panel {
  padding: 28px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.visibility-panel.is-live { background: var(--surface); }
.visibility-panel.is-roadmap { background: var(--surface-2); border-style: dashed; }

.visibility-panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.visibility-panel.is-live .visibility-panel-tag { background: rgba(22,163,74,0.12); color: #15803d; }
.visibility-panel.is-roadmap .visibility-panel-tag { background: var(--surface); color: var(--text-softer); }
.visibility-panel-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.visibility-item { display: flex; gap: 12px; }
.visibility-item + .visibility-item { margin-top: 18px; }
.visibility-item-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.visibility-panel.is-live .visibility-item-icon { background: rgba(22,163,74,0.12); color: #15803d; }
.visibility-panel.is-roadmap .visibility-item-icon { background: var(--surface); color: var(--text-softer); border: 1px dashed var(--border); }
.visibility-item-icon svg { width: 13px; height: 13px; }
.visibility-item h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.visibility-item p { font-size: 13.5px; line-height: 1.6; color: var(--text-soft); }
.visibility-panel .soon-tag { margin-top: 20px; }

/* ==========================================================================
   AI INFRASTRUCTURE: the animated bento card showcase
   ========================================================================== */
.ai-showcase {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .ai-showcase { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 1000px) {
  .ai-showcase { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

.ai-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ai-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-ambient); border-color: transparent; }

.ai-card-visual {
  position: relative;
  height: 168px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--surface-2);
}

.ai-card-body { padding: 24px 24px 26px; }
.ai-card-num {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-softer);
  margin-bottom: 10px;
}
.ai-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.ai-card-desc { font-size: 13.5px; line-height: 1.6; color: var(--text-soft); }

.ai-feature-badge {
  display: inline-flex;
  margin-top: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-tint);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}

/* ---- per-card visual tint ---- */
.visual-chat { background: linear-gradient(160deg, var(--edu-1), var(--edu-2) 60%, var(--card-end)); }
.visual-glow { background: linear-gradient(160deg, #e5ceff, #efe4fb 60%, var(--card-end)); }
.visual-steps { background: linear-gradient(160deg, var(--agri-1), var(--agri-2) 60%, var(--card-end)); }
.visual-board { background: var(--brand); }
.visual-chart { background: linear-gradient(160deg, var(--health-1), var(--health-2) 60%, var(--card-end)); }
.visual-orbit { background: linear-gradient(160deg, #ffe9ae, #fbf3dd 60%, var(--card-end)); }

/* ---- 1. Study Buddy: a small floating chat card ---- */
.visual-chat-bubble {
  position: absolute; left: 20px; right: 20px; top: 50%; transform: translateY(-50%);
  background: var(--surface); border-radius: var(--radius-md);
  box-shadow: 0 16px 30px -14px rgba(20,16,60,0.28);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 9px;
}
.visual-chat-avatar {
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand-tint);
  border: 1px solid var(--brand); margin-bottom: 2px;
}
.visual-chat-line { height: 7px; border-radius: 4px; background: var(--surface-3); }
.visual-chat-line.line-1 { width: 88%; }
.visual-chat-line.line-2 { width: 58%; }
.visual-pulse-dot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand); top: 22px; right: 22px;
  box-shadow: 0 0 0 0 rgba(69,54,224,0.5);
  animation: pulseDot 2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(69,54,224,0.45); }
  70% { box-shadow: 0 0 0 10px rgba(69,54,224,0); }
  100% { box-shadow: 0 0 0 0 rgba(69,54,224,0); }
}

/* ---- 2. Idea Lab: a glowing bulb ---- */
.visual-glow-ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(120, 70, 200, 0.18);
}
.visual-glow-ring.ring-a { width: 84px; height: 84px; }
.visual-glow-ring.ring-b { width: 128px; height: 128px; border-color: rgba(120, 70, 200, 0.1); }
.visual-glow-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; color: #7a3fd6;
  filter: drop-shadow(0 0 14px rgba(122, 63, 214, 0.55));
}

/* ---- Generate with AI: an animated robot head, blinking, used on
   Computer Based Testing in place of the plain glow icon above ---- */
.visual-robot-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; color: #7a3fd6;
  filter: drop-shadow(0 0 14px rgba(122, 63, 214, 0.5));
}
.robot-eye { transform-origin: center; transform-box: fill-box; }
.robot-antenna { transform-origin: center; transform-box: fill-box; }

/* ---- 3. Homework Coach: a small step checklist card ---- */
.visual-step-card {
  position: absolute; left: 20px; right: 20px; top: 50%; transform: translateY(-50%);
  background: var(--surface); border-radius: var(--radius-md);
  box-shadow: 0 16px 30px -14px rgba(20,16,60,0.28);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
}
.visual-step { position: relative; height: 8px; border-radius: 4px; background: var(--surface-3); padding-left: 24px; }
.visual-step::before {
  content: ''; position: absolute; left: 0; top: -3px; width: 14px; height: 14px;
  border-radius: 50%; border: 1.5px solid var(--text-softer); background: var(--surface);
}
.visual-step.done { background: var(--surface-3); }
.visual-step.done::before { background: var(--brand); border-color: var(--brand); }

/* ---- 4. AI Quiz Master: a mini leaderboard, on the solid brand tint ---- */
.visual-board {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 0 22px;
}
.visual-board-row { display: flex; align-items: center; gap: 10px; }
.visual-board-rank {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.visual-board-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.85); }
.visual-board-row.row-2 .visual-board-bar { background: rgba(255,255,255,0.55); }
.visual-board-row.row-3 .visual-board-bar { background: rgba(255,255,255,0.35); }

/* ---- 5. Financial AI Analyst: a small bar chart ---- */
.visual-chart {
  display: flex; align-items: flex-end; justify-content: center; gap: 12px;
  padding-bottom: 26px;
}
.visual-chart-bar {
  width: 16px; height: var(--h, 40%); border-radius: 4px 4px 0 0;
  background: rgba(20, 24, 31, 0.16);
}
.visual-chart-bar-highlight { background: var(--brand); }

/* ---- 6. Special Needs Support: an inclusive icon in orbit ---- */
.visual-orbit-ring {
  position: absolute; top: 50%; left: 50%; width: 96px; height: 96px;
  border-radius: 50%; border: 1px dashed rgba(160, 120, 20, 0.3);
  transform: translate(-50%, -50%);
}
.visual-orbit-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 28px; height: 28px; color: #a4740f;
}
.visual-orbit-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #a4740f; }
.visual-orbit-dot.dot-a { top: 30%; left: 74%; }
.visual-orbit-dot.dot-b { top: 68%; left: 28%; }

/* ---- card visuals animate on an infinite loop, but not in sync: each card
   carries its own --stagger offset so the six graphics take turns coming to
   life rather than firing all at once, with idle gaps between each turn. ---- */
.ai-card:nth-child(1) { --stagger: 0s; }
.ai-card:nth-child(2) { --stagger: 2.6s; }
.ai-card:nth-child(3) { --stagger: .9s; }
.ai-card:nth-child(4) { --stagger: 4.4s; }
.ai-card:nth-child(5) { --stagger: 1.8s; }
.ai-card:nth-child(6) { --stagger: 3.5s; }

.visual-chat-line { transform-origin: left center; animation: cardLineGrow 8s ease-in-out infinite; animation-delay: var(--stagger, 0s); }
.visual-chat-line.line-2 { animation-delay: calc(var(--stagger, 0s) + .25s); }
.visual-pulse-dot { animation: cardPulseDot 8s ease-in-out infinite; animation-delay: var(--stagger, 0s); }

.visual-glow-icon { animation: cardGlowPulse 8s ease-in-out infinite; animation-delay: var(--stagger, 0s); }
.visual-glow-ring.ring-a { animation: cardRingPulse 8s ease-in-out infinite; animation-delay: var(--stagger, 0s); }
.visual-glow-ring.ring-b { animation: cardRingPulse 8s ease-in-out infinite; animation-delay: calc(var(--stagger, 0s) + .2s); }

.visual-robot-icon { animation: robotBob 3.6s ease-in-out infinite; animation-delay: var(--stagger, 0s); }
.robot-eye { animation: robotBlink 4.2s ease-in-out infinite; animation-delay: var(--stagger, 0s); }
.robot-eye.eye-b { animation-delay: calc(var(--stagger, 0s) + .05s); }
.robot-antenna { animation: robotAntennaPulse 2.1s ease-in-out infinite; animation-delay: var(--stagger, 0s); }

.visual-step:last-child::before { animation: cardStepCheck 8s ease-in-out infinite; animation-delay: var(--stagger, 0s); }

.visual-board-bar { transform-origin: left center; animation: cardBarGrow 8s ease-in-out infinite; animation-delay: var(--stagger, 0s); }
.visual-board-row.row-2 .visual-board-bar { animation-delay: calc(var(--stagger, 0s) + .15s); }
.visual-board-row.row-3 .visual-board-bar { animation-delay: calc(var(--stagger, 0s) + .3s); }

.visual-chart-bar { transform-origin: bottom center; animation: cardChartGrow 8s ease-in-out infinite; animation-delay: var(--stagger, 0s); }
.visual-chart-bar:nth-child(2) { animation-delay: calc(var(--stagger, 0s) + .1s); }
.visual-chart-bar:nth-child(3) { animation-delay: calc(var(--stagger, 0s) + .2s); }
.visual-chart-bar:nth-child(4) { animation-delay: calc(var(--stagger, 0s) + .3s); }

.visual-orbit-ring { animation: cardOrbitRing 8s ease-in-out infinite; animation-delay: var(--stagger, 0s); }
.visual-orbit-icon { animation: cardOrbitIcon 8s ease-in-out infinite; animation-delay: var(--stagger, 0s); }
.visual-orbit-dot { animation: cardOrbitDot 8s ease-in-out infinite; animation-delay: var(--stagger, 0s); }
.visual-orbit-dot.dot-b { animation-delay: calc(var(--stagger, 0s) + .15s); }

@keyframes cardLineGrow {
  0%, 15% { transform: scaleX(0); opacity: .4; }
  32%, 62% { transform: scaleX(1); opacity: 1; }
  80%, 100% { transform: scaleX(0); opacity: .4; }
}
@keyframes cardPulseDot {
  0%, 20% { box-shadow: 0 0 0 0 rgba(69,54,224,0); opacity: .3; }
  30% { box-shadow: 0 0 0 0 rgba(69,54,224,.5); opacity: 1; }
  50% { box-shadow: 0 0 0 10px rgba(69,54,224,0); opacity: 1; }
  65%, 100% { box-shadow: 0 0 0 0 rgba(69,54,224,0); opacity: .3; }
}
@keyframes cardGlowPulse {
  0%, 15% { filter: drop-shadow(0 0 0 rgba(122,63,214,0)); transform: translate(-50%, -50%) scale(.9); }
  35% { filter: drop-shadow(0 0 16px rgba(122,63,214,.65)); transform: translate(-50%, -50%) scale(1.06); }
  60% { filter: drop-shadow(0 0 14px rgba(122,63,214,.55)); transform: translate(-50%, -50%) scale(1); }
  85%, 100% { filter: drop-shadow(0 0 0 rgba(122,63,214,0)); transform: translate(-50%, -50%) scale(.9); }
}
@keyframes cardRingPulse {
  0%, 20% { transform: translate(-50%, -50%) scale(.85); opacity: .4; }
  40% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
  65% { transform: translate(-50%, -50%) scale(1); opacity: .7; }
  100% { transform: translate(-50%, -50%) scale(.85); opacity: .4; }
}
@keyframes robotBob {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(0deg); }
  50% { transform: translate(-50%, -50%) translateY(-4px) rotate(-2deg); }
}
@keyframes robotBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.12); }
}
@keyframes robotAntennaPulse {
  0%, 100% { opacity: .5; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.25); }
}
@keyframes cardStepCheck {
  0%, 25% { background: var(--surface); border-color: var(--text-softer); }
  40%, 70% { background: var(--brand); border-color: var(--brand); }
  85%, 100% { background: var(--surface); border-color: var(--text-softer); }
}
@keyframes cardBarGrow {
  0%, 12% { transform: scaleX(0); }
  35%, 70% { transform: scaleX(1); }
  90%, 100% { transform: scaleX(0); }
}
@keyframes cardChartGrow {
  0%, 10% { transform: scaleY(0); }
  35%, 68% { transform: scaleY(1); }
  88%, 100% { transform: scaleY(0); }
}
@keyframes cardOrbitRing {
  0%, 20% { transform: translate(-50%, -50%) scale(.9); opacity: .4; }
  45% { transform: translate(-50%, -50%) scale(1.06); opacity: .9; }
  100% { transform: translate(-50%, -50%) scale(.9); opacity: .4; }
}
@keyframes cardOrbitIcon {
  0%, 20% { transform: translate(-50%, -50%) scale(.92); }
  40% { transform: translate(-50%, -50%) scale(1.1); }
  65% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(.92); }
}
@keyframes cardOrbitDot {
  0%, 20% { transform: scale(.5); opacity: .35; }
  40% { transform: scale(1.2); opacity: 1; }
  60% { transform: scale(1); opacity: .9; }
  85%, 100% { transform: scale(.5); opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  .visual-pulse-dot,
  .visual-chat-line,
  .visual-glow-icon,
  .visual-glow-ring,
  .visual-step:last-child::before,
  .visual-board-bar,
  .visual-chart-bar,
  .visual-orbit-ring,
  .visual-orbit-icon,
  .visual-orbit-dot,
  .visual-robot-icon,
  .robot-eye,
  .robot-antenna { animation: none; }
}

/* ==========================================================================
   CURRICULUM: a level-by-level progression path
   ========================================================================== */
.curriculum-path {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.curriculum-stage {
  flex: 1 1 140px;
  padding: 28px 24px 28px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.curriculum-stage:last-child { border-right: none; }
.curriculum-stage:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -7px;
  width: 14px; height: 14px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: translateY(-50%) rotate(-45deg);
  z-index: 2;
}
.curriculum-stage.is-brand:not(:last-child)::after { background: var(--brand); border-color: var(--brand); }
.curriculum-stage-num {
  display: inline-flex;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-deep);
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}
.curriculum-stage h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.curriculum-stage p { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
.curriculum-stage.is-brand { background: var(--brand); }
.curriculum-stage.is-brand .curriculum-stage-num { background: rgba(255,255,255,0.18); color: #fff; }
.curriculum-stage.is-brand h3, .curriculum-stage.is-brand p { color: #fff; }
.curriculum-stage.is-brand p { color: rgba(255,255,255,0.75); }
.curriculum-path-note {
  margin: 28px auto 0;
  max-width: 68ch;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

.curriculum-track {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 860px) {
  .curriculum-track { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.curriculum-track-item { display: flex; gap: 16px; }
.curriculum-track-item + .curriculum-track-item { margin-top: 28px; }
.curriculum-track-marker {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-softer);
}
.curriculum-track-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.curriculum-track-item p { font-size: 14px; line-height: 1.65; color: var(--text-soft); }

.exam-body-panel {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
}
.exam-body-panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }

/* ambient drifting orbs behind the portal preview section, subdued so they
   sit quietly behind the showcase rather than competing with it */
.portal-preview-section { position: relative; overflow: hidden; }
.portal-preview-section .container { position: relative; z-index: 1; }
.portal-preview-ambient { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.amb-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32; }
.amb-orb-a {
  width: 360px; height: 360px; top: -90px; left: -70px;
  background: radial-gradient(circle, #6d4fe0, transparent 70%);
  animation: ambDriftA 26s ease-in-out infinite;
}
.amb-orb-b {
  width: 300px; height: 300px; bottom: -110px; right: 4%;
  background: radial-gradient(circle, #3457e0, transparent 70%);
  animation: ambDriftB 30s ease-in-out infinite;
}
.amb-orb-c {
  width: 240px; height: 240px; top: 32%; right: -90px;
  background: radial-gradient(circle, #9c8bff, transparent 70%);
  animation: ambDriftC 34s ease-in-out infinite;
}
@keyframes ambDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes ambDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -36px) scale(0.94); }
}
@keyframes ambDriftC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, 26px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .amb-orb { animation: none; }
}

/* ==========================================================================
   PORTAL SHOWCASE: the real dashboard, in a layered browser + phone frame
   composition, used on Parent Portal directly below the hero.
   ========================================================================== */
.portal-showcase {
  position: relative;
  margin-top: 56px;
  padding-bottom: 64px;
}
.portal-browser-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 44px 80px -32px rgba(20,16,60,0.32);
  background: var(--surface);
  transform: perspective(1400px) rotateX(2deg);
}
.portal-browser-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.portal-browser-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.portal-browser-frame img { display: block; width: 100%; height: auto; }

.portal-phone-frame {
  position: absolute;
  right: clamp(4px, 6vw, 64px);
  bottom: -40px;
  width: clamp(130px, 15vw, 160px);
  border-radius: 20px;  
  background: var(--contrast-bg);
  padding: 6px;
  box-shadow: 0 30px 54px -20px rgba(20,16,60,0.4);
  z-index: 2;
}
.portal-phone-frame-notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 44%; height: 13px;
  border-radius: 20px;
  background: var(--contrast-bg);
  z-index: 2;
}
.portal-phone-frame img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* floating 3D badges scattered around the showcase, each tilted in its own
   plane and drifting on an independent cycle, so the composition feels like
   it has real depth rather than a flat screenshot */
.portal-3d-float {
  position: absolute;
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 6px 12px rgba(20,16,60,0.08), 0 22px 36px -16px rgba(20,16,60,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  pointer-events: none;
  animation: portal3dFloat 8s ease-in-out infinite;
}
.portal-3d-float svg { width: 22px; height: 22px; }
.portal-3d-float.tone-green { color: #16a34a; }
.portal-3d-float.tone-gold { color: #b8860b; font-size: 20px; }
.portal-3d-float.tone-purple { color: #7a3fd6; }
.portal-3d-float.tone-blue { color: var(--brand-deep); }

.portal-3d-float-a { top: -22px; left: 5%; transform: perspective(600px) rotateY(-18deg) rotateX(10deg); animation-duration: 7.5s; }
.portal-3d-float-b { top: -16px; right: 7%; transform: perspective(600px) rotateY(16deg) rotateX(-8deg); animation-duration: 8.5s; animation-delay: -2.5s; }
.portal-3d-float-c { bottom: 16%; left: -14px; transform: perspective(600px) rotateY(-14deg) rotateX(-6deg); animation-duration: 9s; animation-delay: -4.5s; }
.portal-3d-float-d { top: 40%; right: -12px; transform: perspective(600px) rotateY(20deg) rotateX(8deg); animation-duration: 7s; animation-delay: -1.5s; }

@keyframes portal3dFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@media (max-width: 900px) {
  .portal-3d-float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-3d-float { animation: none; }
}

@media (max-width: 640px) {
  .portal-showcase { padding-bottom: 24px; }
  .portal-browser-frame { transform: none; }
  .portal-phone-frame { display: none; }
}

.portal-stat-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) {
  .portal-stat-strip { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (min-width: 1040px) {
  .portal-stat-strip { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.portal-stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.portal-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-ambient); }
.portal-stat-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand-tint);
  display: flex; align-items: center; justify-content: center;
}
.portal-stat-icon svg { width: 17px; height: 17px; color: var(--brand-deep); }
.portal-stat h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.005em; }
.portal-stat p { font-size: 13px; line-height: 1.55; color: var(--text-soft); }

/* ==========================================================================
   INSTALL & NOTIFY: alternating media/copy rows, used on Parent Portal
   ========================================================================== */
.pwa-rows { margin-top: 56px; display: flex; flex-direction: column; gap: 72px; }
.pwa-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 860px) {
  .pwa-row { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
  .pwa-row.is-reverse { grid-template-columns: 1.15fr 0.85fr; }
  .pwa-row.is-reverse .pwa-media { order: 2; }
  .pwa-row.is-reverse .pwa-copy { order: 1; }
}
.pwa-copy h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; max-width: 26ch; }
.pwa-copy p { font-size: 15px; line-height: 1.75; color: var(--text-soft); }
.pwa-copy p + p { margin-top: 12px; }

/* install mockup: a tablet-style frame holding a real screenshot, with a
   floating "Add to Home Screen" badge pulsing over the bottom edge of it */
.install-phone-frame {
  position: relative;
  width: min(380px, 100%);
  margin: 0 auto;
  border-radius: 32px;
  background: var(--contrast-bg);
  padding: 14px;
  box-shadow: 0 30px 60px -26px rgba(20,16,60,0.35);
}
.install-phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.28); z-index: 2;
}
.install-phone-screen {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
}
.install-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.install-tap-badge {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 22px -6px rgba(20,16,60,0.35);
  animation: installTapPulse 2.4s ease-in-out infinite;
}
.install-tap-badge svg { width: 14px; height: 14px; }
@keyframes installTapPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.06); }
}

/* notifications: image on top, copy centered underneath, the whole block centered */
.notify-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.notify-visual { position: relative; max-width: 340px; margin: 0 auto; }
.notify-visual::before {
  content: '';
  position: absolute;
  inset: -20px;
  z-index: -1;
  border-radius: 30px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(69,54,224,0.16), transparent 70%);
}
.notify-image {
  width: 100%;
  display: block;
  border-radius: 20px;
  transform: rotate(-2deg);
  box-shadow: 0 30px 60px -20px rgba(20,16,60,0.35);
}

.notify-copy { margin-top: 40px; max-width: 640px; }
.notify-copy h3 { margin: 0 auto 12px; }
.notify-copy p { margin: 0 auto; }

.notify-pills {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.notify-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 16px 9px 12px;
  border-radius: var(--radius-pill);
}
.notify-pill-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.pwa-copy .soon-tag { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  .install-tap-badge { animation: none; }
}

/* ==========================================================================
   COMPUTER BASED TESTING: a glassmorphic exam console mockup, a shuffling
   card demo for question randomization, and a results distribution chart.
   Used only on computer-based-testing.php.
   ========================================================================== */

/* ---- extra ai-card visual: a small spreadsheet grid, for "Upload from Excel" ---- */
.visual-sheet { background: linear-gradient(160deg, #d3f1a7, #eef8dd 60%, var(--card-end)); }
.visual-sheet-grid {
  position: absolute; left: 22px; right: 22px; top: 50%; transform: translateY(-50%);
  background: var(--surface); border-radius: var(--radius-md);
  box-shadow: 0 16px 30px -14px rgba(20,16,60,0.28);
  padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.visual-sheet-grid span { height: 12px; border-radius: 3px; background: var(--surface-3); }
.visual-sheet-grid span.hl { background: #7ba53c; animation: cardBarGrow 8s ease-in-out infinite; animation-delay: var(--stagger, 0s); transform-origin: left center; }

/* ---- exam console stage: ambient glow behind a frosted glass exam mockup,
   with 3D badges (flag, fullscreen lock, autosave) drifting around it ---- */
.cbt-console-stage {
  position: relative;
  margin: 56px auto 0;
  max-width: 620px;
  padding: 46px 10px 80px;
}
.cbt-console-glow {
  position: absolute; inset: -40px;
  z-index: 0;
  background:
    radial-gradient(46% 60% at 20% 15%, rgba(109,79,224,0.28), transparent 70%),
    radial-gradient(40% 55% at 85% 80%, rgba(52,87,224,0.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.cbt-console {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 40px 80px -30px rgba(20,16,60,0.35), var(--shadow-gloss-top);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  overflow: hidden;
  transform: perspective(1400px) rotateX(1.4deg);
}
.cbt-console-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.35);
}
.cbt-console-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--text); }
.cbt-console-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.18); }
.cbt-timer {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.01em;
  color: #b45309;
  background: rgba(245,158,11,0.16);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  animation: cbtTimerPulse 2.2s ease-in-out infinite;
}
.cbt-timer svg { width: 14px; height: 14px; }
@keyframes cbtTimerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.25); }
  50% { box-shadow: 0 0 0 7px rgba(245,158,11,0); }
}

.cbt-console-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 24px 22px 26px;
}
@media (min-width: 620px) {
  .cbt-console-body { grid-template-columns: 1.3fr 1fr; }
}

.cbt-question-line { height: 11px; border-radius: 4px; background: rgba(27,31,40,0.14); }
.cbt-question-line.is-title { width: 92%; height: 13px; margin-bottom: 18px; background: rgba(27,31,40,0.22); }
.cbt-question-line + .cbt-question-line { margin-top: 10px; }

.cbt-options { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.cbt-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.6);
}
.cbt-option-mark { flex-shrink: 0; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--text-softer); }
.cbt-option.is-selected { background: rgba(69,54,224,0.12); border-color: rgba(69,54,224,0.3); }
.cbt-option.is-selected .cbt-option-mark { background: var(--brand); border-color: var(--brand); }
.cbt-option-line { flex: 1; height: 8px; border-radius: 4px; background: rgba(27,31,40,0.12); }

.cbt-navigator-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-softer); margin-bottom: 12px;
}
.cbt-navigator-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cbt-nav-cell {
  aspect-ratio: 1; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(27,31,40,0.12);
  color: var(--text-soft);
}
.cbt-nav-cell.is-answered { background: var(--brand); border-color: var(--brand); color: #fff; }
.cbt-nav-cell.is-flagged { background: rgba(245,158,11,0.2); border-color: #f59e0b; color: #b45309; }
.cbt-nav-cell.is-current { border-color: var(--brand); border-style: dashed; color: var(--brand-deep); }

.cbt-navigator-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.cbt-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-softer); }
.cbt-legend-swatch { width: 9px; height: 9px; border-radius: 3px; }
.cbt-legend-swatch.is-answered { background: var(--brand); }
.cbt-legend-swatch.is-flagged { background: #f59e0b; }
.cbt-legend-swatch.is-open { background: transparent; border: 1.5px solid rgba(27,31,40,0.25); }

/* 3D badges drifting around the glass console */
.cbt-3d-float {
  position: absolute;
  z-index: 2;
  width: 50px; height: 50px;
  border-radius: 15px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 12px rgba(20,16,60,0.08), 0 22px 36px -16px rgba(20,16,60,0.3);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  animation: portal3dFloat 8s ease-in-out infinite;
}
.cbt-3d-float svg { width: 21px; height: 21px; }
.cbt-3d-float.tone-blue { color: var(--brand-deep); }
.cbt-3d-float.tone-amber { color: #b45309; }
.cbt-3d-float.tone-green { color: #16a34a; }
.cbt-3d-float.tone-purple { color: #7a3fd6; }
.cbt-3d-float-a { top: -14px; left: 6%; transform: perspective(600px) rotateY(-18deg) rotateX(10deg); animation-duration: 7.5s; }
.cbt-3d-float-b { top: -18px; right: 9%; transform: perspective(600px) rotateY(16deg) rotateX(-8deg); animation-duration: 8.5s; animation-delay: -2.5s; }
.cbt-3d-float-c { bottom: 20px; left: -16px; transform: perspective(600px) rotateY(-14deg) rotateX(-6deg); animation-duration: 9s; animation-delay: -4.5s; }
.cbt-3d-float-d { bottom: 10px; right: -14px; transform: perspective(600px) rotateY(20deg) rotateX(8deg); animation-duration: 7s; animation-delay: -1.5s; }
@media (max-width: 700px) {
  .cbt-3d-float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cbt-3d-float, .cbt-timer { animation: none; }
}

/* ==========================================================================
   SHUFFLE DEMO: three overlapping question cards that continuously reorder,
   illustrating per-student randomized question sequence.
   ========================================================================== */
.shuffle-demo {
  position: relative;
  height: 220px;
  max-width: 300px;
  margin: 0 auto;
}
.shuffle-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -18px rgba(20,16,60,0.28);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shuffle-card-num {
  display: inline-flex;
  width: 26px; height: 26px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  background: var(--brand-tint);
  color: var(--brand-deep);
  margin-bottom: 6px;
}
.shuffle-card-line { height: 8px; border-radius: 4px; background: var(--surface-3); }
.shuffle-card-line.w-90 { width: 90%; }
.shuffle-card-line.w-70 { width: 70%; }
.shuffle-card-line.w-50 { width: 50%; }

.shuffle-card-a { animation: shuffleA 9s ease-in-out infinite; }
.shuffle-card-b { animation: shuffleB 9s ease-in-out infinite; }
.shuffle-card-c { animation: shuffleC 9s ease-in-out infinite; }
@keyframes shuffleA {
  0%, 28% { transform: translate(0,0) rotate(0deg) scale(1); z-index: 3; }
  38%, 61% { transform: translate(14px, 16px) rotate(4deg) scale(0.94); z-index: 1; }
  71%, 94% { transform: translate(-14px, 28px) rotate(-3deg) scale(0.9); z-index: 2; }
  100% { transform: translate(0,0) rotate(0deg) scale(1); z-index: 3; }
}
@keyframes shuffleB {
  0%, 28% { transform: translate(-14px, 28px) rotate(-3deg) scale(0.9); z-index: 2; }
  38%, 61% { transform: translate(0,0) rotate(0deg) scale(1); z-index: 3; }
  71%, 94% { transform: translate(14px, 16px) rotate(4deg) scale(0.94); z-index: 1; }
  100% { transform: translate(-14px, 28px) rotate(-3deg) scale(0.9); z-index: 2; }
}
@keyframes shuffleC {
  0%, 28% { transform: translate(14px, 16px) rotate(4deg) scale(0.94); z-index: 1; }
  38%, 61% { transform: translate(-14px, 28px) rotate(-3deg) scale(0.9); z-index: 2; }
  71%, 94% { transform: translate(0,0) rotate(0deg) scale(1); z-index: 3; }
  100% { transform: translate(14px, 16px) rotate(4deg) scale(0.94); z-index: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .shuffle-card-a, .shuffle-card-b, .shuffle-card-c { animation: none; }
  .shuffle-card-a { transform: translate(0,0); z-index: 3; }
  .shuffle-card-b { transform: translate(-14px, 28px); z-index: 2; }
  .shuffle-card-c { transform: translate(14px, 16px); z-index: 1; }
}

/* ==========================================================================
   DISTRIBUTION CHART: a class-score spread, used for results & analytics.
   ========================================================================== */
.dist-chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  height: 180px;
  padding: 0 12px 28px;
  border-bottom: 1px solid var(--border);
}
.dist-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1 1 0; max-width: 40px; }
.dist-bar {
  width: 100%;
  height: var(--h, 40px);
  border-radius: 6px 6px 3px 3px;
  background: rgba(69,54,224,0.18);
  transform-origin: bottom center;
  animation: distBarGrow 1s cubic-bezier(.22,.8,.24,1) both;
}
.dist-bar.is-peak { background: var(--brand); }
.dist-bar-label { font-size: 10.5px; font-weight: 700; color: var(--text-softer); }
.dist-chart-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--text-softer); }
.dist-callouts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.dist-callout {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: var(--radius-pill);
}
.dist-callout-dot { width: 8px; height: 8px; border-radius: 50%; }
.dist-callout-dot.is-high { background: #16a34a; }
.dist-callout-dot.is-low { background: #dc2626; }
@keyframes distBarGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .dist-bar { animation: none; }
}
