/* =========================================================
   Quizoma — design tokens
   ========================================================= */
:root {
  --color-primary: #3525cd;
  --color-primary-dark: #3730a3;
  --color-text-dark: #111c2d;
  --color-text-body: #464555;
  --color-text-muted: #94a3b8;
  --color-bg: #f9f9ff;
  --color-bg-alt: #f0f3ff;
  --color-bg-alt-2: #e7eeff;
  --color-white: #ffffff;
  --color-cream: #fdfbf7;
  --color-border: #e2e8f0;
  --color-border-soft: #e5e7eb;

  --color-green-bg: #dcfce7;
  --color-green-text: #166534;
  --color-green-text-dark: #006c49;
  --color-green-accent: #059669;
  --color-mint: #6cf8bb;
  --color-mint-text: #00714d;

  --color-blue-bg: #e0f2fe;
  --color-blue-text: #075985;

  --color-purple-bg: #f3e8ff;
  --color-purple-text: #6b21a8;

  --color-amber-bg: #fef3c7;
  --color-amber-text: #92400e;
  --color-amber-text-dark: #684000;
  --color-amber-accent: #d97706;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-card: 0 1px 1px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);

  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-sans); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--font-mono); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-body); font-weight: 400; }
.foot-green { color: var(--color-green-text-dark); }
.foot-amber { color: var(--color-amber-text); }
.center { text-align: center; align-items: center; }
.max-w-sm { max-width: 420px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.15px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(2px); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 0 var(--color-primary-dark);
}
.btn-primary-dark {
  background: var(--color-primary-dark);
  color: #fff;
}
.btn-dark {
  background: #0f172a;
  border: 1px solid rgba(51,65,85,0.6);
  color: #fff;
}
.btn-cream {
  background: var(--color-cream);
  color: var(--color-amber-text-dark);
  box-shadow: var(--shadow-md);
}
.btn-lg { padding: 13px 22px; font-size: 14.5px; }

.btn-hero-cta {
  background: linear-gradient(135deg, #4c3df0 0%, var(--color-primary) 55%, #281a8f 100%);
  padding: 15px 26px;
  font-size: 14.5px;
  position: relative;
  box-shadow: 0 6px 0 var(--color-primary-dark), 0 14px 28px -8px rgba(53,37,205,0.55);
  animation: heroCtaGlow 2.6s ease-in-out infinite;
}
.btn-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--color-primary-dark), 0 20px 36px -8px rgba(53,37,205,0.65);
}
.btn-hero-cta:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--color-primary-dark), 0 8px 16px -6px rgba(53,37,205,0.5);
}
@keyframes heroCtaGlow {
  0%, 100% { box-shadow: 0 6px 0 var(--color-primary-dark), 0 14px 28px -8px rgba(53,37,205,0.55); }
  50% { box-shadow: 0 6px 0 var(--color-primary-dark), 0 18px 38px -6px rgba(53,37,205,0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-hero-cta { animation: none; }
}
.btn-sm { padding: 8px 16px; font-size: 13px; letter-spacing: 0.26px; border-radius: var(--radius-md); box-shadow: 0 2px 0 #cbd5e1; }
.btn-sm.btn-primary { box-shadow: 0 3px 0 var(--color-primary-dark); }
.btn img { display: block; }

.play-store-btn { display: inline-flex; align-items: center; height: 56px; transition: transform 0.15s ease, opacity 0.15s ease; }
.play-store-btn:hover { opacity: 0.85; }
.play-store-btn:active { transform: translateY(2px); }
.play-store-btn img { display: block; height: 100%; width: auto; }

/* =========================================================
   Badges / chips / tags
   ========================================================= */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.33px;
  box-shadow: var(--shadow-card);
}
.badge-amber { background: var(--color-amber-bg); color: var(--color-amber-text); flex-wrap: wrap; }
.badge-purple { background: var(--color-purple-bg); color: var(--color-purple-text); }
.badge-blue { background: var(--color-blue-bg); color: var(--color-blue-text); flex-wrap: wrap; justify-content: center; }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-amber { background: var(--color-amber-accent); }
.dot-green { background: var(--color-green-accent); }
.dot-green-sm { width: 6px; height: 6px; background: var(--color-green-text-dark); border-radius: 50%; display: inline-block; margin-right: 4px; }
.sep { opacity: 0.5; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.33px;
}
.tag-green { background: var(--color-green-bg); color: var(--color-green-text); }
.tag-blue { background: var(--color-blue-bg); color: var(--color-blue-text); }
.tag-purple { background: var(--color-purple-bg); color: var(--color-purple-text); }
.tag-amber { background: var(--color-amber-bg); color: var(--color-amber-text); }
.tag-blue-soft { background: var(--color-bg-alt-2); color: var(--color-text-body); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--color-bg-alt-2);
  font-size: 13px;
  color: var(--color-text-dark);
}
.chip-inline { padding: 3px 4px; }
.chip-purple { background: var(--color-purple-bg); color: var(--color-purple-text); font-weight: 700; font-size: 11px; border-radius: 6px; }
.chip-round { border-radius: var(--radius-pill); }
.chip-amber { background: var(--color-amber-bg); color: var(--color-amber-accent); }
.chip-green { background: var(--color-green-bg); color: var(--color-green-text-dark); font-weight: 700; font-size: 11px; }
.chip-mint { background: var(--color-mint); color: var(--color-mint-text); border-radius: 6px; }

.chip-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt-2);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.33px;
  color: var(--color-text-dark);
}
.chip-pill-active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chip-pill-active::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }

/* Generic icon fallback chip used where a specific Figma icon asset
   could not be retrieved before the MCP session hit its rate limit. */
.icon-empty { display: block; width: 40%; height: 40%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249,249,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 200ms ease;
}
.site-header.is-scrolled .header-inner { height: 60px; }
.site-header.is-scrolled .brand-mark { width: 30px; height: 30px; }
.site-header.is-scrolled .brand-name { font-size: 17px; }
.header-left { display: flex; align-items: center; gap: 32px; min-width: 0; }
.header-right { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 3px 0 var(--color-primary-dark);
}
.brand-icon { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.4px; color: var(--color-text-dark); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.26px;
  color: var(--color-text-body);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--color-bg-alt); color: var(--color-text-dark); }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}
.hamburger span { width: 16px; height: 2px; background: var(--color-text-dark); margin: 0 auto; }
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--color-border);
}
.mobile-nav a { padding: 10px 8px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--color-text-body); }
.mobile-nav.open { display: flex; }
.mobile-nav .btn { margin-top: 6px; width: 100%; }

/* =========================================================
   Sections / headings
   ========================================================= */
.section { padding: 64px 40px; position: relative; }
.section-alt { background: var(--color-bg-alt); }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.section-head.center { align-items: center; text-align: center; }
.section-head.narrow { max-width: 768px; margin-left: auto; margin-right: auto; }
.section-head.split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; }
.eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}
.h1 { font-size: 34px; line-height: 1.25; font-weight: 800; letter-spacing: -0.85px; color: var(--color-text-dark); }
.h2 { font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.44px; color: var(--color-text-dark); }
.h2-white { color: #fff; font-size: 28px; }
.h3 { font-size: 15px; line-height: 1.45; font-weight: 700; letter-spacing: -0.15px; color: var(--color-text-dark); }
.lead { font-size: 14.5px; line-height: 1.6; color: var(--color-text-body); }
.underline-accent {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-mint);
  text-decoration-thickness: 4px;
}

/* Hero headline typewriter: "dual smart grading." types itself out on load. */
.typewriter.typing {
  text-decoration: none;
  display: inline-block;
}
.typewriter.typing::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 3px;
  background: var(--color-primary);
  vertical-align: -0.1em;
  animation: typewriterCaret 0.8s steps(1) infinite;
}
@keyframes typewriterCaret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .typewriter.typing::after { animation: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero-wrap { position: relative; padding: 40px 64px 64px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -128px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 460px;
  background: linear-gradient(to bottom, rgba(53,37,205,0.05), rgba(224,242,254,0.4) 50%, rgba(224,242,254,0));
  filter: blur(32px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; max-width: 655px; min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 16px; }
.trust-badges span { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--color-text-body); letter-spacing: 0.12px; }

.stat-cards { display: flex; gap: 16px; width: 100%; }
.stat-card {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.stat-top { display: flex; align-items: center; justify-content: space-between; }
/* Pins the tag pill to the card's bottom edge regardless of how many lines the
   description wraps to — otherwise a 2-line description ("Smart Auto + Human Hand
   Marking") leaves its tag sitting higher than the 1-line cards next to it. Same
   pinned-footer idea as .mini-quiz-slide's feedback banner, just via margin-top:auto
   since this card has three stacked children instead of two. */
.stat-card > .tag { margin-top: auto; }
.stat-title { font-weight: 700; font-size: 17px; letter-spacing: -0.25px; }
.stat-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon-green { background: var(--color-green-bg); }
.stat-icon-blue { background: var(--color-blue-bg); }
.stat-icon-amber { background: var(--color-amber-bg); }
.stat-desc { font-size: 12px; color: var(--color-text-body); letter-spacing: 0.12px; }

/* min-width: 0 defeats the CSS Grid "blowout" bug — a grid item's automatic
   min-width is its content's min-content size, so a wide/overflowing
   descendant (like the mini-quiz slider track) can otherwise force this
   whole 5fr column, and the grid, way past the container's real width. */
.hero-visual { position: relative; min-width: 0; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(32px); pointer-events: none; }
.hero-orb-a { top: -40px; right: -40px; width: 288px; height: 288px; background: rgba(224,242,254,0.7); }
.hero-orb-b { bottom: 0; left: -40px; width: 256px; height: 256px; background: rgba(243,232,255,0.5); }

.classroom-card { position: relative; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.classroom-photo { width: 100%; height: auto; aspect-ratio: 456.66 / 340.7; object-fit: cover; }
.float-pill {
  position: absolute; top: 12px;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.33px;
  box-shadow: var(--shadow-md);
}
.float-pill-left { left: 12px; }
.float-pill-right { right: 12px; background: var(--color-green-bg); color: var(--color-green-text); box-shadow: var(--shadow-card); padding: 4px 8px; }
.accent { color: var(--color-primary); }

.mini-quiz-card {
  position: relative;
  min-width: 0;
  margin-top: -48px;
  margin-left: 4px; margin-right: 4px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
/* Format pill row: shows which of the 6 question formats the slider is
   currently demoing. */
.format-pill-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.format-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-primary); color: #fff;
  padding: 5px 12px 5px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.33px;
  box-shadow: var(--shadow-card);
  transition: opacity 150ms ease;
}
.format-pill-icon { width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.format-pill-icon svg { display: block; }
.format-live-badge { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--color-text-body); }

/* Carousel: 6 slides (one per question format), sliding horizontally.
   Each .mini-quiz-slide stretches (flex default) to the tallest slide's
   content height, and space-between keeps the feedback banner pinned to
   the bottom regardless of how tall the middle demo content is — so
   switching slides never jumps or leaves a ragged card height. */
.mini-quiz-slider {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  /* Lets the browser keep handling vertical page scroll with a finger on this element;
     script.js only takes over once it sees the drag is mostly horizontal. Without this,
     the very first touchmove is ambiguous and a vertical scroll gesture here can stutter. */
  touch-action: pan-y;
}
.mini-quiz-track {
  display: flex;
  transition: transform 500ms cubic-bezier(0.65, 0, 0.35, 1);
  /* While a pointer is actively dragging it, script.js sets transform directly per frame
     and must not fight this transition — see .is-dragging below. */
  cursor: grab;
}
.mini-quiz-track.is-dragging { transition: none; cursor: grabbing; }
.mini-quiz-slide {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) {
  .mini-quiz-track { transition: none; }
}
.mini-quiz-question { font-size: 13.5px; font-weight: 700; letter-spacing: -0.1px; line-height: 1.35; }
.mini-quiz-options { display: flex; flex-direction: column; gap: 6px; }

/* Indicator dots */
.mini-quiz-indicators { display: flex; align-items: center; justify-content: center; gap: 6px; }
.mq-dot { width: 6px; height: 6px; padding: 0; border: none; border-radius: 50%; background: var(--color-border); cursor: pointer; transition: background 200ms ease, width 200ms ease; }
.mq-dot.active { width: 18px; border-radius: var(--radius-pill); background: var(--color-primary); }

/* Multiple Correct demo — real buttons, tappable like the Single Choice slide. Picking a
   row always shows a check (it IS checked, right or wrong); the row only turns green once
   picked AND correct. Picking the wrong row stays neutral rather than turning red — the
   product's own "zero punitive penalties" pitch, shown rather than just claimed. */
.demo-checklist { display: flex; flex-direction: column; gap: 6px; }
.demo-check-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 7px 10px;
  font-size: 12px; color: var(--color-text-body);
  /* Button reset: this used to be a <div>, kept looking identical as a <button> so it can
     receive real clicks/taps and keyboard focus. */
  border: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.demo-check-row:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.demo-checkbox { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--color-border); flex-shrink: 0; position: relative; transition: background 200ms ease, border-color 200ms ease, transform 200ms ease; }
.demo-check-row.is-picked .demo-checkbox { background: var(--color-border); border-color: var(--color-border); transform: scale(1.08); }
.demo-check-row.is-picked[data-correct="true"] { color: var(--color-text-dark); font-weight: 600; }
.demo-check-row.is-picked[data-correct="true"] .demo-checkbox { background: var(--color-green-accent); border-color: var(--color-green-accent); }
.demo-checkbox::after {
  content: '';
  position: absolute; left: 5px; top: 1px;
  width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 200ms ease 100ms;
}
.demo-check-row.is-picked .demo-checkbox::after { transform: rotate(45deg) scale(1); }

/* True / False demo — same tap-and-see pattern, matching Single Choice's correct/incorrect
   colors so every "pick an answer" slide in the carousel feels like one system. */
.demo-tf-row { display: flex; gap: 10px; }
.demo-tf-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  color: var(--color-text-body);
  font-weight: 700; font-size: 13px;
  border: 2px solid transparent;
  font-family: inherit;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.demo-tf-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.demo-tf-btn.is-picked-correct { background: #ecfdf5; border-color: #10b981; color: var(--color-green-text-dark); }
.demo-tf-btn.is-picked-incorrect { background: rgba(251,113,133,0.12); border-color: #fb7185; }

/* Written answer demo */
.demo-written-box { background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 10px 12px; }
.demo-written-box p { font-size: 12px; font-style: italic; color: var(--color-text-body); line-height: 1.45; margin: 0; }

/* Fill in the blank demo */
.demo-blank {
  display: inline-block;
  background: #ecfdf5; color: var(--color-green-text-dark);
  border: 1.5px dashed #10b981;
  border-radius: 6px;
  padding: 1px 8px;
  font-weight: 700;
}
.demo-blank-hint { font-size: 11.5px; color: var(--color-text-body); background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 7px 10px; }

/* Live poll demo */
.demo-poll { display: flex; flex-direction: column; gap: 8px; }
.demo-poll-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.demo-poll-label { width: 92px; flex-shrink: 0; color: var(--color-text-body); font-weight: 600; }
.demo-poll-bar { flex: 1; height: 8px; background: var(--color-bg-alt); border-radius: var(--radius-pill); overflow: hidden; }
.demo-poll-bar span { display: block; height: 100%; width: 0; border-radius: var(--radius-pill); background: var(--color-primary); transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1); }
.mini-quiz-slide.slide-active .demo-poll-bar span { width: var(--target); }
.demo-poll-pct { width: 32px; flex-shrink: 0; text-align: right; font-weight: 700; color: var(--color-text-dark); font-family: var(--font-mono); }
.option {
  background: var(--color-bg-alt);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 9px 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
  width: 100%;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.option:hover { border-color: rgba(53,37,205,0.3); }
.option:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.option-correct { background: #ecfdf5; border-color: #10b981; color: var(--color-green-text-dark); font-weight: 700; box-shadow: var(--shadow-card); }
.option-incorrect { background: rgba(251,113,133,0.12); border-color: #fb7185; }
.option-pop { animation: optionPop 300ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.option-shake { animation: optionShake 400ms ease-in-out; }
@keyframes optionPop {
  0% { transform: scale(0.97); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
@keyframes optionShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .option-pop, .option-shake { animation: none; }
}
.option-letter {
  width: 20px; height: 20px; border-radius: 50%;
  background: #d8e3fb; color: var(--color-text-body);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 150ms ease, color 150ms ease;
}
.option-letter svg { display: block; }
.option-letter-correct { background: #10b981; color: #fff; }
.option-letter-incorrect { background: #fb7185; color: #fff; }
.feedback-banner {
  background: rgba(220,252,231,0.8);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.feedback-banner { transition: opacity 200ms ease; }
.feedback-banner-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.feedback-banner span:first-child { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--color-green-text); letter-spacing: 0.33px; min-width: 0; }
.feedback-points { background: #fff; border-radius: var(--radius-pill); padding: 2px 8px; font-size: 11px; font-weight: 700; color: var(--color-green-text-dark); box-shadow: var(--shadow-card); flex-shrink: 0; white-space: nowrap; }

/* =========================================================
   Pillars
   ========================================================= */
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  min-height: 100%;
}
.pillar-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.bg-green { background: var(--color-green-bg); }
.bg-blue { background: var(--color-blue-bg); }
.bg-purple { background: var(--color-purple-bg); }
.bg-amber { background: var(--color-amber-bg); }
.bg-primary { background: var(--color-primary); box-shadow: 0 3px 0 var(--color-primary-dark); }
.bg-green-dark { background: var(--color-green-text-dark); }
.bg-indigo { background: #dee8ff; }
.pillar-card h3 { margin-bottom: 8px; }
.pillar-card p { font-size: 14px; color: var(--color-text-body); line-height: 1.55; flex: 1; margin-bottom: 20px; }
.pillar-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.33px; padding-top: 12px; border-top: 1px solid var(--color-border-soft); }
.foot-blue { color: var(--color-blue-text); }
.foot-purple { color: var(--color-purple-text); }

/* =========================================================
   Dual grading deep dive
   ========================================================= */
.deep-dive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.deep-dive-art { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.deep-dive-art img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.art-caption { background: var(--color-bg-alt-2); padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.art-caption span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; letter-spacing: 0.26px; }
.deep-dive-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.deep-dive-copy .h2 { margin-top: 4px; }

.track-stack { display: flex; flex-direction: column; gap: 16px; width: 100%; margin-top: 8px; }
.track-card { background: #fff; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 8px; }
.track-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.track-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: 0.15px; }
.track-a .track-title { color: var(--color-primary); }
.track-b .track-title { color: var(--color-green-text-dark); }
.track-letter { width: 24px; height: 24px; border-radius: 50%; background: var(--color-bg-alt-2); color: var(--color-primary); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.track-letter-b { background: var(--color-green-bg); color: var(--color-green-text-dark); }
.track-card p { font-size: 14px; color: var(--color-text-body); line-height: 1.55; }
.track-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }

/* =========================================================
   Formats intro / stages / workflow
   ========================================================= */
.section-formats-intro { position: relative; background: #fff; border-top: 1px solid var(--color-border-soft); border-bottom: 1px solid var(--color-border-soft); overflow: hidden; }
.glow { position: absolute; top: 50%; width: 384px; height: 384px; border-radius: 50%; filter: blur(32px); transform: translateY(-50%); pointer-events: none; }
.glow-purple { left: 25%; background: rgba(53,37,205,0.05); }
.glow-mint { right: 25%; background: rgba(108,248,187,0.2); }

.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; margin-bottom: 24px; }
.stage-card { position: relative; z-index: 2; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 25px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.stage-card-highlight { border: 2px solid rgba(53,37,205,0.2); box-shadow: var(--shadow-md); align-items: center; text-align: center; }
.stage-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
/* Icon-in-colored-box centering: absolutely positioned + translate(-50%,-50%)
   instead of relying on flex align-items, which some mobile browsers/WebViews
   render inconsistently for inline SVG replaced elements. This is centered
   regardless of the SVG's own intrinsic box or the parent's flex behavior. */
.stage-icon,
.stage-hub-icon,
.feature-icon,
.highlight-icon,
.workflow-icon,
.step-icon,
.format-icon { position: relative; }
.stage-icon svg,
.stage-hub-icon svg,
.feature-icon svg,
.highlight-icon svg,
.workflow-icon svg,
.step-icon svg,
.format-icon svg {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.stage-icon { width: 48px; height: 48px; border-radius: var(--radius-md); flex-shrink: 0; }
.stage-icon .icon-empty { background: rgba(255,255,255,0.85); border-radius: 4px; }
.stage-eyebrow { display: block; font-size: 11px; letter-spacing: 0.55px; text-transform: uppercase; margin-bottom: 2px; }
.stage-desc { font-size: 12px; color: var(--color-text-body); letter-spacing: 0.12px; line-height: 1.5; margin-bottom: 20px; }
.stage-hub { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.stage-hub-icon { width: 80px; height: 80px; border-radius: var(--radius-lg); background: var(--color-primary); box-shadow: var(--shadow-md); margin-bottom: 8px; }
.stage-hub-icon .icon-empty { background: rgba(255,255,255,0.85); border-radius: 6px; }
.icon-empty-lg { width: 34%; height: 34%; }

/* Animated connecting lines between the 3 stage cards — Teacher → Engine → Student */
.flow-connector {
  position: absolute;
  top: 65px;
  width: 32px;
  height: 20px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.flow-connector.flow-connector-1 { left: 33.333%; }
.flow-connector.flow-connector-2 { left: 66.667%; }
.flow-svg { width: 100%; height: 100%; overflow: visible; }
.flow-line-animated {
  stroke-dasharray: 6 6;
  animation: flowDash 1.4s linear infinite;
}
.flow-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(53,37,205,0.7);
  animation: signalMove 1.4s linear infinite;
}
.stage-hub-icon { animation: pulseGlow 2.5s ease-in-out infinite; }

@keyframes flowDash {
  0% { stroke-dashoffset: 24; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow-md); }
  50% { transform: scale(1.08); box-shadow: 0 0 16px rgba(53,37,205,0.45), var(--shadow-md); }
}
@keyframes signalMove {
  0% { left: 0%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-line-animated, .stage-hub-icon, .flow-dot { animation: none; }
  .flow-dot { display: none; }
  .flow-line-animated { opacity: 0.5; }
}
@media (max-width: 960px) {
  .flow-connector { display: none; }
}

.feature-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.feature-list li { display: flex; gap: 8px; align-items: flex-start; background: rgba(240,243,255,0.7); border-radius: 8px; padding: 8px; }
.feature-icon { width: 20px; height: 20px; border-radius: 5px; background: var(--color-primary); flex-shrink: 0; margin-top: 1px; }
.feature-list strong { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.33px; color: var(--color-text-dark); }
.feature-list span { display: block; font-size: 12px; color: var(--color-text-body); line-height: 1.5; margin-top: 2px; }

.stage-foot { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 11px; font-weight: 700; }
.stage-foot.center { justify-content: center; }
.highlight-rows { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-bottom: 20px; }
.highlight-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; background: var(--color-bg-alt); border: 1px solid var(--color-border-soft); border-radius: 8px; padding: 9px 13px; font-size: 12px; }
.highlight-label { display: flex; align-items: center; gap: 8px; text-align: left; }
.highlight-icon { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; }
.highlight-icon-primary { background: var(--color-primary); }
.highlight-icon-green { background: var(--color-green-accent); }
.highlight-icon-muted { background: #94a3b8; }

.workflow-banner { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 25px; box-shadow: var(--shadow-card); }
.workflow-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 9px; border-bottom: 1px solid rgba(226,232,240,0.8); margin-bottom: 20px; }
.workflow-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--color-primary); box-shadow: var(--shadow-card); }
.workflow-icon .icon-empty { background: rgba(255,255,255,0.85); border-radius: 3px; }
.workflow-status { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 12px; }
.workflow-steps { display: flex; align-items: stretch; gap: 16px; flex-wrap: wrap; }
.workflow-step {
  flex: 1; min-width: 200px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 17px;
  box-shadow: var(--shadow-card);
  animation: stepGlow 4.8s ease-in-out infinite;
}
/* Small connector arrow between consecutive steps, showing the flow order. */
.workflow-arrow {
  display: flex; align-items: center; justify-content: center;
  align-self: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  flex-shrink: 0;
}
@keyframes stepGlow {
  0% { box-shadow: var(--shadow-card); border-color: var(--color-border); transform: translateY(0); }
  7% { box-shadow: 0 0 0 4px rgba(53,37,205,0.14), 0 10px 24px -8px rgba(53,37,205,0.4); border-color: var(--color-primary); transform: translateY(-2px); }
  15%, 100% { box-shadow: var(--shadow-card); border-color: var(--color-border); transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .workflow-step { animation: none; }
}
@media (max-width: 960px) {
  .workflow-arrow { display: none; }
}
.workflow-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.step-tag { background: #eef2ff; color: var(--color-primary); font-size: 11px; font-weight: 700; letter-spacing: 0.55px; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; }
.step-tag-amber { background: var(--color-amber-bg); color: var(--color-amber-text); }
.step-tag-purple { background: var(--color-purple-bg); color: var(--color-purple-text); }
.step-tag-green { background: var(--color-green-bg); color: var(--color-green-text); }
.step-icon { width: 36px; height: 36px; border-radius: var(--radius-md); }
.step-icon .icon-empty { background: rgba(255,255,255,0.9); border-radius: 3px; }
.workflow-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.workflow-step p { font-size: 13px; color: var(--color-text-body); line-height: 1.45; }

/* =========================================================
   6 format cards grid
   ========================================================= */
.formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.format-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.format-icon { width: 40px; height: 40px; border-radius: var(--radius-md); margin-bottom: 16px; }
.format-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
.format-header-row .format-icon { margin-bottom: 16px; }
.format-card h3 { margin-bottom: 8px; }
.format-card p { font-size: 14px; color: var(--color-text-body); line-height: 1.55; flex: 1; margin-bottom: 16px; }
.format-foot { background: var(--color-bg-alt); border-radius: 8px; padding: 12px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; }

/* =========================================================
   Simulator
   ========================================================= */
.simulator-card { background: #fff; border-radius: var(--radius-xl); padding: 48px; box-shadow: var(--shadow-lg); }
.simulator-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
.simulator-left { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pin-inputs { display: flex; gap: 12px; margin: 8px 0; flex-wrap: wrap; }
.pin-box {
  width: 56px; height: 64px;
  background: var(--color-bg-alt);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  font-size: 26px; font-weight: 700; letter-spacing: -0.52px;
  color: var(--color-primary);
  text-align: center;
  text-transform: uppercase;
  transition: border-color 150ms ease, background 150ms ease;
}
.pin-box:focus { outline: none; border-color: var(--color-primary); background: #fff; }
.simulator-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.session-note { font-size: 12px; font-weight: 500; letter-spacing: 0.12px; }
.simulator-right { background: var(--color-bg-alt); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.qr-box { background: #fff; border-radius: var(--radius-md); padding: 12px; box-shadow: var(--shadow-card); margin-bottom: 16px; }
.qr-placeholder {
  width: 120px; height: 120px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
}
.qr-placeholder svg { display: block; }
.simulator-right p { font-size: 12px; color: var(--color-text-body); max-width: 280px; margin-bottom: 6px; }
.footnote { font-size: 12px; color: var(--color-text-body); margin-top: 8px; }

/* =========================================================
   Closing banner
   ========================================================= */
.closing-banner {
  position: relative;
  background: linear-gradient(135deg, #eef1ff 0%, #e7edff 55%, #eaf6ff 100%);
  border: 1px solid rgba(53,37,205,0.1);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.closing-glow { position: absolute; bottom: -80px; right: -80px; width: 384px; height: 384px; border-radius: 50%; background: var(--color-primary); opacity: 0.1; filter: blur(48px); }
.closing-copy { position: relative; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 576px; }
.closing-chip { background: rgba(53,37,205,0.08); color: var(--color-primary); }
.closing-copy p { color: var(--color-text-body); font-size: 14.5px; line-height: 1.6; }
.closing-actions { position: relative; display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { display: flex; flex-direction: column; gap: 16px; max-width: 768px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
.faq-question {
  width: 100%;
  background: none; border: none; cursor: pointer;
  padding: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: inherit; font-weight: 700; font-size: 15px; letter-spacing: -0.15px;
  color: var(--color-text-dark);
  text-align: left;
}
.faq-caret { flex-shrink: 0; color: var(--color-primary); font-size: 18px; font-weight: 400; transition: transform 0.2s ease; }
.faq-item.open .faq-caret { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 20px;
}
.faq-answer p { font-size: 14px; color: var(--color-text-body); line-height: 1.6; padding-bottom: 20px; }
.faq-item.open .faq-answer { max-height: 240px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--color-bg-alt); padding: 48px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; color: var(--color-text-body); line-height: 1.55; margin: 16px 0; max-width: 384px; }
.footer-col h4 { font-size: 15px; font-weight: 600; letter-spacing: 0.15px; margin-bottom: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 12px; font-weight: 500; color: var(--color-text-body); letter-spacing: 0.12px; }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--color-border-soft); }
.footer-bottom p { font-size: 12px; color: var(--color-text-body); letter-spacing: 0.12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--color-text-body); letter-spacing: 0.12px; }
.footer-links a:hover { color: var(--color-primary); }

/* =========================================================
   Responsive — mirrors the Figma "mobile responsive" frame
   (single column stacking, collapsed nav, reduced type scale)
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid,
  .deep-dive-grid,
  .simulator-grid { grid-template-columns: 1fr; }
  .deep-dive-art { order: -1; }
  .stage-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-right .btn-sm { display: none; }
  .hamburger { display: flex; }
  .header-inner { padding: 0 16px; height: 64px; }
  .section { padding: 48px 16px; }
  .hero-wrap { padding: 24px 16px 48px; }
  .hero-copy { max-width: 100%; }
  .h1 { font-size: 27px; letter-spacing: -0.65px; }
  .h2 { font-size: 19px; letter-spacing: -0.3px; }
  .h2-white { font-size: 23px; }
  .stat-cards { flex-direction: column; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .cta-row .play-store-btn { align-self: center; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .pillars-grid { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: 1fr; }
  .simulator-card { padding: 24px 16px; }
  .closing-banner { padding: 32px 20px; flex-direction: column; align-items: flex-start; }
  .closing-actions { width: 100%; }
  .closing-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer { padding: 40px 16px; }
  .pin-inputs { justify-content: space-between; }
  .pin-box { width: 44px; height: 56px; font-size: 20px; flex: 1; max-width: 56px; }
  .mini-quiz-card { margin-left: 0; margin-right: 0; padding: 16px; }
  .track-head { flex-direction: column; align-items: flex-start; }
  .workflow-status { margin-left: 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .h1 { font-size: 23px; }
  .stage-card { padding: 18px; }
  .workflow-banner { padding: 18px; }
  .simulator-actions { flex-direction: column; align-items: stretch; }
  .demo-poll-label { width: 74px; font-size: 11px; }
  .demo-poll-pct { width: 28px; }
  .format-pill-row { gap: 6px; }

  /* The two floating pills over the classroom photo are wide enough on a
     phone-sized card that they'd otherwise overlap each other — stack them
     under the photo instead of floating both at the same top edge. */
  .classroom-card { display: flex; flex-direction: column; }
  .float-pill-left,
  .float-pill-right {
    position: static;
    align-self: flex-start;
    margin: 10px 10px 0;
  }
  .float-pill-right { align-self: flex-end; margin-top: 8px; margin-bottom: 10px; }
  /* The overlap below relies on the pills floating over the photo; now that
     they're stacked under it, keep normal spacing instead of overlapping
     the mini-quiz card into them. */
  .mini-quiz-card { margin-top: 16px; }
}
