/* Mockup styles for attendancegenius.com pages.
   Reference design: the live homepage (light hero, gradient headline, framed screenshots).
   Colors and font match the live site; see styleguide.html. */
:root {
  --navy: #000066;
  --indigo: #24038f;
  --indigo-50: #eef0ff;
  --ink: #111827;
  --body: #4b5563;
  --muted: #646b78;          /* 4.9:1 on the sky hero (was #6b7280, 4.4:1) */
  --line: #e5e7eb;
  --soft: #f7f8fc;
  --teacher: #0e7a5a;
  --teacher-50: #e7f6f0;
  --admin: #24038f;
  --admin-50: #eef0ff;
  --amber: #b45309;
  --indigo-hover: #1e0373;
  --sky: #edf6ff;            /* homepage hero background */
  /* Radius: three sizes plus pill. Shadow: three levels. */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --sh-1: 0 0 0 1px var(--line);
  --sh-2: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(17,24,39,.35);
  --sh-3: 0 40px 80px -30px rgba(17,24,39,.45);
  --grad-1: #24008f; --grad-2: #3b82f6; --grad-3: #9333ea;  /* homepage headline gradient */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
/* No orphan words: the browser keeps at least two words on a heading's last line */
h1, h2, h3, h4 { text-wrap: pretty; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Nav (simplified copy of the live public nav) */
.nav { border-bottom: 1px solid var(--line); background: #fff; }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 56px; }
.nav .logo img { height: 36px; display: block; }
.nav ul { display: flex; gap: 28px; list-style: none; font-weight: 500; font-size: .94rem; color: #374151; }
/* The underline is drawn outside the text box, so the active item stays level with the others */
.nav ul a.active { color: var(--navy); position: relative; }
.nav ul a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--navy); }
.nav .auth { display: flex; align-items: center; gap: 20px; font-weight: 500; font-size: .94rem; color: #374151; white-space: nowrap; }
@media (max-width: 1180px) { .nav .container { gap: 32px; } .nav ul { gap: 20px; font-size: .9rem; } .nav .auth { gap: 16px; font-size: .9rem; } .nav .logo img { height: 32px; } }
.nav .auth .navcta { background: var(--indigo); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: var(--r-sm); }
.nav .auth .navcta:hover { background: var(--indigo-hover); }
@media (max-width: 900px) { .nav ul, .nav .auth { display: none; } }

/* Hero: light, like the homepage */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); color: var(--ink); padding: 64px 0 56px; }
.hero.center { text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; max-width: 960px; padding-bottom: 6px;
  background-image: linear-gradient(to bottom right, var(--grad-1) 30%, var(--grad-2) 55%, var(--grad-3) 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero.center h1 { margin: 0 auto; }
.hero p.lede { font-size: 1.15rem; line-height: 1.75; color: var(--muted); max-width: 700px; margin-top: 20px; }
.hero.center p.lede { margin-left: auto; margin-right: auto; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--r-sm); font-weight: 600; font-size: 1rem; }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-primary { background: var(--indigo); color: #fff; border: 1.5px solid var(--indigo); }
.btn-primary:hover { background: var(--indigo-hover); }
.btn-outline { border: 1.5px solid var(--indigo); color: var(--indigo); background: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero.center .btn-row { justify-content: center; }

/* Audience switch (on the light hero) */
.audience-switch { display: inline-flex; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(17,24,39,.08); border-radius: var(--r-pill); padding: 6px; gap: 6px; margin-top: 32px; }
.audience-switch a { padding: 10px 22px; border-radius: var(--r-pill); font-weight: 600; color: var(--body); display: flex; align-items: center; gap: 8px; }
.audience-switch a.on { background: var(--indigo); color: #fff; }

/* Eyebrow labels (homepage style: small grey caps). The dot marks the audience. */
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pill.teacher::before, .pill.admin::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.pill.teacher::before { background: var(--teacher); }
.pill.admin::before { background: var(--admin); }
.pill.soon { color: var(--amber); }

/* Screenshot placeholder in the homepage's frosted frame. Swap the inner .shot for <img alt> later. */
.shot { position: relative; background: repeating-linear-gradient(135deg, #f3f4f9 0 12px, #eceef6 12px 24px); border: 1.5px dashed #b7bcd9; border-radius: var(--r-sm); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; color: #4a4f73; aspect-ratio: 16 / 10; }
.shot::before { content: "SCREENSHOT TO CAPTURE"; font-size: .68rem; font-weight: 700; letter-spacing: .1em; color: #6b70a0; margin-bottom: 8px; }
.shot span { font-size: .88rem; line-height: 1.45; max-width: 420px; }
.shot.wide { aspect-ratio: 16 / 8; }
.frame { padding: 8px; border-radius: var(--r-md); background: rgba(17,24,39,.05); box-shadow: 0 0 0 1px rgba(17,24,39,.1), 0 25px 50px -12px rgba(0,0,0,.25); }
/* Real app screenshots in a frame: fit the column, keep the aspect ratio. */
.frame.screen { min-width: 0; }
.frame.screen > img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); background: #fff; }
.split > .shot, .hero .split > .shot { padding: 20px; box-shadow: 0 0 0 8px rgba(17,24,39,.05), 0 0 0 9px rgba(17,24,39,.1), 0 25px 50px -12px rgba(0,0,0,.25); border-radius: var(--r-sm); }

/* Sections */
section.block { padding: 80px 0; }
section.block.soft { background: var(--soft); }
.section-head { margin-bottom: 40px; }   /* headings run full width (David, 2026-11-28); only the intro paragraph is capped */
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -0.01em; margin-top: 12px; }
.section-head p { color: var(--body); font-size: 1.1rem; margin-top: 12px; max-width: 760px; }

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(17,24,39,.04); }
.card .shot { border-radius: 0; border-width: 0 0 1.5px 0; aspect-ratio: 16 / 9; }
.card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.2rem; line-height: 1.3; margin: 10px 0 8px; }
.card p { color: var(--body); font-size: .97rem; }
.card .more { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--indigo); }
.card.featured { border: 2px solid var(--indigo); }
.card.featured .flag { position: absolute; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 80px; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip > :first-child { order: 0; } }
.split h3 { font-size: 1.7rem; line-height: 1.25; margin: 12px 0 14px; letter-spacing: -0.01em; }
.split p { color: var(--body); }
ul.ticks { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
ul.ticks li { padding-left: 30px; position: relative; color: var(--body); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--indigo-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324038f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
ul.ticks li strong { color: var(--ink); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--body); font-size: .95rem; }
.step .who { font-size: .8rem; color: var(--muted); margin-top: 10px; font-weight: 600; }

/* Stat / proof strip */
.strip { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center; padding: 22px 16px; background: #fff; border-bottom: 1px solid var(--line); color: var(--body); font-weight: 500; font-size: .95rem; }
.strip span::before { content: "✓ "; color: var(--indigo); font-weight: 700; }

/* Settings grid */
.settings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .settings { grid-template-columns: 1fr; } }
.settings div { background: #fff; padding: 22px 24px; }
.settings h4 { font-size: 1rem; margin-bottom: 4px; }
.settings p { color: var(--body); font-size: .93rem; }
.settings small { display: block; margin-top: 8px; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-weight: 600; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--indigo); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--body); margin-top: 10px; }

/* CTA band */
/* Closing band: a classroom photo fading into soft grey, text on the clear side. Built by build-nav.py (photo per page in CTA_PHOTOS). */
.cta { position: relative; overflow: hidden; background: var(--soft); min-height: 340px; display: flex; align-items: center; }
.cta .cta-ph { position: absolute; right: 0; top: 0; width: 58%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--soft) 0%, var(--soft) 42%, rgba(247,248,252,.85) 52%, rgba(247,248,252,0) 70%); }
.cta .container { position: relative; z-index: 2; width: 100%; }
.cta .copy { max-width: 480px; padding: 56px 0; }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.cta p { color: var(--body); font-size: 1.1rem; margin-top: 10px; }
.cta .btn-row { margin-top: 26px; }
@media (max-width: 860px) { .cta { flex-direction: column; align-items: stretch; min-height: 0; } .cta .cta-ph { position: static; width: 100%; height: 220px; } .cta::before { display: none; } .cta .copy { padding: 36px 0 44px; } }

/* Footer (simplified) */
.footer { background: #fff; color: var(--body); padding: 72px 0 28px; font-size: .93rem; border-top: 1px solid var(--line); }
.footer a { color: var(--body); } .footer a:hover { color: var(--indigo); }
.footer .ftop { display: grid; grid-template-columns: 300px 1fr; gap: 64px; }
.footer .fbrand .flogo img { height: 34px; display: block; mix-blend-mode: multiply; }
.footer .fbrand p { margin-top: 16px; color: var(--body); max-width: 270px; line-height: 1.6; }
.footer .ftrust { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.footer .ftrust .cert img { height: 58px; display: block; mix-blend-mode: multiply; }
.footer .ftrust span { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); line-height: 1.3; }
.footer .ftrust svg { width: 22px; height: 22px; flex: none; color: var(--teacher); }
.footer .fcols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer h3 { color: var(--ink); font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer .fbottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; font-size: .87rem; color: var(--muted); }
.footer .social { display: flex; gap: 8px; }
.footer .social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--soft); transition: background .15s, color .15s; }
.footer .social a:hover { background: var(--indigo); color: #fff; }
.footer .social svg { width: 19px; height: 19px; }
.footer .legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer .legal a { color: var(--muted); } .footer .legal a:hover { color: var(--indigo); }
@media (max-width: 1000px) { .footer .ftop { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 640px) { .footer .fcols { grid-template-columns: 1fr 1fr; } .footer .fbottom { flex-direction: column; align-items: flex-start; } }

/* Review note, mockup only */
.review { background: #fff7e6; border: 1px solid #f5c76b; padding: 12px 16px; font-size: .85rem; color: #7c4a03; margin-top: 16px; border-radius: 4px; }
.card .pill, .split .pill { align-self: flex-start; }
.hero .split h1 { font-size: clamp(2.2rem, 4vw, 3.25rem); line-height: 1.1; }

/* Photo timeline ("How A Trip Works", layout B): photo, clock-time overlay, school-day ruler */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .photos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .photos { grid-template-columns: 1fr; } }
.photo-card .photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; margin: 0; background: #e2e6f3; box-shadow: 0 0 0 1px rgba(17,24,39,.08), 0 18px 36px -18px rgba(17,24,39,.35); }
.photo-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clock { position: absolute; left: 12px; bottom: 12px; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-sm); padding: 8px 12px; box-shadow: 0 8px 24px -8px rgba(17,24,39,.45); }
.clock time { font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.clock small { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.photo-card h4 { margin: 16px 0 6px; font-size: 1.1rem; }
.photo-card p { color: var(--body); font-size: .95rem; }
.ruler { margin-top: 40px; position: relative; height: 64px; }
.ruler .line { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line); }
.ruler .out { position: absolute; top: 25px; height: 12px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--grad-1), var(--grad-2), var(--grad-3)); left: 74.4%; width: 6.1%; }
.ruler .mark { white-space: nowrap; position: absolute; top: 0; font-size: .75rem; color: var(--muted); font-weight: 600; transform: translateX(-50%); }
.ruler .mark::after { content: ""; display: block; width: 1px; height: 10px; background: #c7cbe0; margin: 4px auto 0; }
.ruler .mark.first { transform: none; } .ruler .mark.first::after { margin-left: 0; }
.ruler .mark.last { transform: translateX(-100%); } .ruler .mark.last::after { margin-right: 0; }
.ruler .call { position: absolute; top: 44px; left: 77.5%; transform: translateX(-50%); font-size: .82rem; font-weight: 700; color: var(--indigo); white-space: nowrap; }

/* Destinations board (split-flap "departures board"). Names stay real text for SEO and screen readers;
   JS adds the letter tiles. */
.board { background: #0a0a3d; border-radius: var(--r-lg); padding: 22px; color: #fff; box-shadow: 0 30px 60px -24px rgba(0,0,102,.55); }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.board-head b { letter-spacing: .18em; font-size: .9rem; }
.board-head span { color: #a9addf; font-size: .85rem; font-weight: 500; }
.board-head time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; color: #ffd166; letter-spacing: .04em; }
.board-cols, .board-row { display: grid; grid-template-columns: 44px minmax(0, 2.2fr) 1.2fr .8fr 1fr; gap: 14px; align-items: center; padding: 10px 8px; }
.board-cols { font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: #8a8fd0; text-transform: uppercase; padding-top: 16px; }
.board-row { border-top: 1px solid rgba(255,255,255,.06); border-radius: var(--r-sm); transition: background .2s; }
.board-row:hover { background: rgba(255,255,255,.05); }
.board-row .ico { width: 40px; height: 40px; border-radius: var(--r-sm); background: rgba(255,255,255,.08); display: grid; place-items: center; }
.board-row .ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flap { font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; }
.flap .t { display: inline-grid; place-items: center; width: 1.25em; height: 1.6em; margin-right: 2px; background: #1b1b63; border-radius: 3px; position: relative; color: #fff; }
.flap .t.sp { background: transparent; width: .5em; }
.flap .t::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.55); }
.flap .t { animation: flip .5s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i) * 28ms + var(--r) * 90ms); transform-origin: 50% 50%; }
@keyframes flip { from { transform: rotateX(90deg); opacity: 0; } to { transform: rotateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .flap .t { animation: none; } }
.board-row .kind { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a8fd0; margin-top: 6px; }
.board-row .where { color: #d6d9f5; font-size: .95rem; }
.board-row .spots { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; }
.board-row .spots small { color: #8a8fd0; font-weight: 500; }
.status { justify-self: start; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.status.open { background: rgba(52, 211, 153, .16); color: #6ee7b7; }
.status.low { background: rgba(255, 209, 102, .16); color: #ffd166; }
.status.full { background: rgba(248, 113, 113, .18); color: #fca5a5; }
@media (max-width: 760px) {
  .board { padding: 14px; }
  .board-cols { display: none; }
  .board-row { grid-template-columns: 40px 1fr auto; row-gap: 4px; }
  .board-row .where { grid-column: 2; grid-row: 2; font-size: .85rem; }
  .board-row .spots { display: none; }
  .board-row .status { grid-column: 3; grid-row: 1; }
  .flap { font-size: .8rem; }
}
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
@media (max-width: 760px) { .kinds { grid-template-columns: 1fr; } }
.kinds div { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; background: #fff; }
.kinds h4 { font-size: 1.1rem; margin: 8px 0 6px; }
.kinds p { color: var(--body); font-size: .97rem; }
.board-note { color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* School floor plan: tap a room to see it as a destination */
.plan-wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .plan-wrap { grid-template-columns: 1fr; } }
.plan { background: #fff; border-radius: var(--r-md); padding: 14px; box-shadow: 0 0 0 1px rgba(17,24,39,.08), 0 25px 50px -20px rgba(17,24,39,.3); }
.plan svg { width: 100%; height: auto; display: block; font-family: 'Inter', sans-serif; }
.plan .room rect.r { fill: #f7f8fc; stroke: #c7cbe0; stroke-width: 2; }
.plan .dest { cursor: pointer; outline: none; }
.plan .dest rect.r { fill: var(--sky); stroke: #9aa4d6; transition: fill .15s, stroke .15s; }
.plan .dest:hover rect.r, .plan .dest:focus-visible rect.r { fill: #e0e9ff; stroke: var(--indigo); }
.plan .dest.on rect.r { fill: #e4dcff; stroke: var(--indigo); stroke-width: 3.5; }
.plan .dest.full rect.r { fill: #fff1f1; stroke: #f0a3a3; }
.plan .dest.full.on rect.r { stroke: #dc2626; }
.plan text.n { font-size: 21px; font-weight: 700; fill: var(--ink); }
.plan text.s { font-size: 15px; font-weight: 600; fill: var(--muted); }
.plan .chip rect { fill: var(--indigo); } .plan .chip text { fill: #fff; font-size: 14.5px; font-weight: 700; }
.plan .full .chip rect { fill: #dc2626; }
.plan .open .chip rect { fill: var(--teacher); }
.plan .origin rect.r { fill: #fff8e6; stroke: #f5b942; stroke-width: 3; }
.plan .student { fill: var(--grad-3); stroke: #fff; stroke-width: 2.5; }
.plan .student.back { fill: var(--teacher); }
.plan-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; padding: 0 6px 4px; font-size: .82rem; color: var(--muted); font-weight: 500; }
.plan-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; position: sticky; top: 20px; }
.panel-card[hidden] { display: none; }
.panel-card h3 { font-size: 1.6rem; margin: 10px 0 4px; letter-spacing: -.01em; }
.panel-card .loc { color: var(--muted); font-weight: 500; }
.cap { margin: 20px 0 6px; display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; }
.cap b { font-variant-numeric: tabular-nums; }
.cap-bar { height: 10px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.cap-bar span { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--grad-1), var(--grad-2)); }
.cap-bar.full span { background: #dc2626; }
.panel-card dl { margin-top: 22px; display: grid; gap: 4px; }
.panel-card dd + dt { margin-top: 14px; }
.panel-card dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.panel-card dd { color: var(--body); margin-top: 2px; }
.panel-hint { color: var(--muted); font-size: .85rem; margin-top: 18px; }
@media (max-width: 700px) {
  .plan { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plan svg { min-width: 660px; }
  .plan::after { content: "Swipe to see the whole school →"; display: block; font-size: .8rem; color: var(--muted); padding: 8px 6px 0; }
}

/* Photo check-in demo: "From the door to your report" (two scenes, animated by JS) */
.d2 { background: #fff; border-radius: var(--r-lg); box-shadow: 0 0 0 1px rgba(17,24,39,.08), 0 25px 50px -20px rgba(17,24,39,.3); padding: 22px 28px 32px; min-height: 640px; position: relative; overflow: hidden; }
.d2-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.d2-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.d2-label i { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.d2.later .d2-label i { background: var(--indigo); box-shadow: 0 0 0 4px rgba(36,3,143,.15); }
.d2-clock { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.4rem; color: var(--ink); transition: opacity .25s; }
.d2-clock.tick { animation: tick .6s ease; }
@keyframes tick { 0% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(-10px); opacity: 0; } 55% { transform: translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.scene { position: absolute; left: 28px; right: 28px; top: 86px; bottom: 28px; transition: opacity .6s ease, transform .6s ease; }
.scene.off { opacity: 0; transform: translateY(12px); pointer-events: none; }
.door { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.vf { position: relative; width: 270px; height: 270px; border-radius: var(--r-lg); background: #f3f4f9; overflow: hidden; }
.vf .c { position: absolute; width: 34px; height: 34px; border: 4px solid var(--indigo); z-index: 3; transition: transform .2s; }
.vf .c.tl { left: 12px; top: 12px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.vf .c.tr { right: 12px; top: 12px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.vf .c.bl { left: 12px; bottom: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.vf .c.br { right: 12px; bottom: 12px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.vf.snap .c.tl { transform: translate(8px, 8px); } .vf.snap .c.tr { transform: translate(-8px, 8px); }
.vf.snap .c.bl { transform: translate(8px, -8px); } .vf.snap .c.br { transform: translate(-8px, -8px); }
.vf-face { position: absolute; inset: 0; transition: filter .45s ease, transform .45s ease, opacity .3s; filter: blur(8px); transform: scale(.9); opacity: 0; }
.vf-face.in { opacity: 1; } .vf-face.sharp { filter: none; transform: none; }
.vf-flash { position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 2; }
.vf-flash.go { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.vf-tag { min-height: 48px; text-align: center; transition: opacity .3s; }
.vf-tag b { display: block; font-size: 1.15rem; }
.vf-tag small { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.thumbs { display: flex; gap: 10px; }
.thumbs span { width: 56px; height: 56px; border-radius: var(--r-sm); border: 2px dashed #c7cbe0; overflow: hidden; }
.thumbs span.got { border: 0; animation: pop .35s cubic-bezier(.2,.8,.3,1.2) both; box-shadow: 0 6px 14px -6px rgba(17,24,39,.4); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.thumbs-note { color: var(--muted); font-size: .85rem; font-weight: 600; }
.report h3 { font-size: 1.25rem; }
.report .meta { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.rtable { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.rrow { display: grid; grid-template-columns: 64px 1fr 140px 110px; gap: 16px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); background: #fff; position: relative; }
.rrow:first-child { border-top: 0; }
.rrow.head { background: var(--soft); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 18px; }
.rrow.add { animation: rowin .45s cubic-bezier(.2,.8,.3,1) both; }
@keyframes rowin { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.rrow .av { width: 48px; height: 48px; border-radius: var(--r-sm); overflow: hidden; }
.rrow .tm { font-variant-numeric: tabular-nums; color: var(--body); }
.rrow .st { justify-self: start; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: #dcfce7; color: #15803d; }
.rrow.buddy { outline: 2.5px dashed #f59e0b; outline-offset: -4px; border-radius: var(--r-sm); }
.note { margin-top: 14px; background: #fff7e6; border: 1px solid #f5c76b; color: #7c4a03; border-radius: var(--r-sm); padding: 12px 16px; font-weight: 600; display: flex; gap: 12px; align-items: center; animation: rowin .45s both; }
.note .pair { display: flex; gap: 4px; align-items: center; }
.note .pair div { width: 36px; height: 36px; border-radius: var(--r-sm); overflow: hidden; }
.note .pair em { font-style: normal; color: #b45309; font-weight: 700; padding: 0 2px; }
@media (max-width: 700px) {
  .d2 { padding: 16px 14px 20px; min-height: 620px; }
  .scene { left: 14px; right: 14px; top: 76px; }
  .vf { width: 210px; height: 210px; }
  .thumbs span { width: 44px; height: 44px; }
  .rrow { grid-template-columns: 48px 1fr auto; gap: 10px; padding: 8px 10px; }
  .rrow .tm { display: none; }
  .rrow .av { width: 40px; height: 40px; }
}
.demo-controls { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.demo-controls button { font: inherit; font-weight: 600; font-size: .9rem; color: var(--indigo); background: #fff; border: 1.5px solid #d9dcf3; border-radius: var(--r-pill); padding: 8px 18px; cursor: pointer; }
.demo-controls button:hover { border-color: var(--indigo); }
.demo-controls[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shared feature-page parts (tardies, consequences, live view, time in class) */
.related { margin-top: 40px; color: var(--body); }
.related a { color: var(--indigo); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.chip { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.chip.on { background: #dcfce7; color: #15803d; } .chip.late { background: #fef3c7; color: #b45309; }
.chip.miss { background: #fee2e2; color: #b91c1c; } .chip.trip { background: #f3e8ff; color: #7e22ce; }
.chip.info { background: var(--indigo-50); color: var(--indigo); } .chip.grey { background: #f3f4f6; color: #4b5563; }
.panel { background: #fff; border-radius: var(--r-md); box-shadow: 0 0 0 1px rgba(17,24,39,.08), 0 25px 50px -24px rgba(17,24,39,.35); padding: 22px; }
.settings-ui { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.settings-ui .row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); align-items: start; }
.settings-ui .row:first-child { border-top: 0; }
.settings-ui .row b { display: block; }
.settings-ui .row small { display: block; color: var(--body); font-size: .9rem; margin-top: 2px; }
.tog { width: 42px; height: 24px; border-radius: var(--r-pill); background: var(--indigo); position: relative; margin-top: 2px; flex: none; }
.tog::after { content: ""; position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.tog.offt { background: #d1d5db; } .tog.offt::after { right: auto; left: 3px; }
.val { font-weight: 700; color: var(--indigo); background: var(--indigo-50); border-radius: var(--r-sm); padding: 4px 10px; white-space: nowrap; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mini-table th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mini-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mini-table .av { width: 32px; height: 32px; border-radius: var(--r-sm); overflow: hidden; flex: none; display: block; }
.mini-table .num { font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }
.two-col h3 { font-size: 1.6rem; line-height: 1.25; margin: 10px 0 12px; letter-spacing: -.01em; }
.two-col > div > p { color: var(--body); font-size: 1.05rem; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }
.cards3 article { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.cards3 h3 { font-size: 1.2rem; margin: 12px 0 6px; }
.cards3 p { color: var(--body); }
.cards3 svg { width: 30px; height: 30px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px; }
.seg button { font: inherit; font-weight: 600; font-size: .92rem; border: 0; background: transparent; color: var(--body); padding: 8px 16px; border-radius: var(--r-pill); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--indigo); color: #fff; }

/* Quotes: a large gradient quote mark, the words, then the attribution in eyebrow style. No borders, no cards. */
.say { margin: 0; }
.say .mark { display: block; height: .55em; font-size: 4.5rem; line-height: 1; font-weight: 700; font-family: Georgia, 'Times New Roman', serif;
  background-image: linear-gradient(to bottom right, var(--grad-1) 30%, var(--grad-2) 60%, var(--grad-3) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.say blockquote { font-size: 1.4rem; line-height: 1.4; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.say figcaption { margin-top: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.say figcaption b { color: var(--ink); letter-spacing: .04em; }
.say-list { display: grid; gap: 36px; }

/* Video blocks (filled from the YouTube channel feed in production) */
.vid { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(135deg, #0a0a3d, #24038f 60%, #3b82f6); color: #fff; display: grid; place-items: center; text-align: center; box-shadow: 0 0 0 1px rgba(17,24,39,.08), 0 20px 40px -24px rgba(0,0,102,.6); }
.vid .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; margin: 0 auto 12px; }
.vid .play::after { content: ""; border-left: 20px solid var(--indigo); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.vid b { display: block; font-size: 1.05rem; } .vid span { color: #c7cbf0; font-size: .88rem; }
.vid.sm .play { width: 46px; height: 46px; } .vid.sm .play::after { border-left-width: 15px; border-top-width: 9px; border-bottom-width: 9px; }

/* Nav dropdowns: Features mega menu (pattern: wpcharitable.com) and a Solutions list.
   Opens on hover and on keyboard focus. Built by build-nav.py, so edit the menu there. */
.nav .container { position: relative; }
.nav ul.menu { align-items: center; height: 72px; }
.nav ul.menu > li { height: 100%; display: flex; align-items: center; }
.nav ul.menu > li > a { display: inline-flex; align-items: center; gap: 6px; }
.nav ul.menu > li > a .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform .15s; }
.nav ul.menu > li:hover > a .caret, .nav ul.menu > li:focus-within > a .caret { transform: rotate(180deg); }
.nav .drop { position: absolute; top: 72px; z-index: 50; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--indigo); border-radius: 0 0 16px 16px; box-shadow: 0 30px 60px -20px rgba(17,24,39,.3);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav ul.menu > li:hover > .drop, .nav ul.menu > li:focus-within > .drop { opacity: 1; visibility: visible; transform: none; }
.nav .drop a { color: #374151; font-weight: 500; }
.nav .drop a:hover { color: var(--indigo); }
.nav .mega { left: 16px; right: 16px; display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; overflow: hidden; }
.nav .mega .col { padding: 32px 30px; }
.nav .mega .col + .col { border-left: 1px solid var(--line); margin: 28px 0; padding-top: 4px; padding-bottom: 4px; }
.nav .mega h4 { font-size: .98rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.nav .mega h4 i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.nav .mega ul { display: grid !important; gap: 13px; list-style: none; font-weight: 500; }
.nav .mega .all { display: inline-flex; gap: 6px; margin-top: 22px; padding-bottom: 3px; border-bottom: 1px solid currentColor; color: var(--ink); font-weight: 600; font-size: .93rem; }
.nav .mega .news { background: var(--soft); padding: 32px 30px; border-left: 0 !important; margin: 0 !important; }
.nav .mega .col.news { padding: 32px 30px; }  /* beats ".col + .col", so "Latest Update" lines up with the other headings */
.nav .mega .news small { display: block; font-weight: 700; color: var(--ink); font-size: .98rem; line-height: 1.6; }
.nav .mega .news img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); margin: 12px 0 14px; }
.nav .mega .news b { display: block; font-size: 1.05rem; line-height: 1.35; color: var(--ink); }
.nav .mega .news .rm { display: inline-block; margin-top: 10px; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.nav .mega .news .all { display: flex; width: max-content; }
.nav .list { width: 300px; padding: 14px; }
.nav .list a { display: block; padding: 9px 12px; border-radius: var(--r-sm); }
.nav .list a:hover { background: var(--soft); }
.nav .list hr { border: 0; border-top: 1px solid var(--line); margin: 8px 12px; }
.nav .list small { display: block; padding: 4px 12px 6px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Solution pages: before/after comparison and feature link cards */
.ba { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.ba .row { display: grid; grid-template-columns: 1fr 1.25fr; }
.ba .row + .row { border-top: 1px solid var(--line); }
.ba .row > div { padding: 24px 28px; }
.ba .was { background: #fafafa; color: var(--body); }
.ba .was b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.ba .now b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.ba .now p { color: var(--body); }
.ba .now a { display: inline-block; margin-top: 8px; color: var(--indigo); font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.ba .head > div { padding: 14px 28px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ba .head .now { color: var(--indigo); }
@media (max-width: 760px) { .ba .row { grid-template-columns: 1fr; } .ba .head { display: none; } .ba .was { padding-bottom: 14px !important; } .ba .now { padding-top: 14px !important; } }
.fcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.fcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line); padding: 24px; transition: box-shadow .15s, transform .15s; }
.fcard:hover { box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(17,24,39,.35); transform: translateY(-2px); }
.fcard h3 { font-size: 1.15rem; margin-top: 8px; }
.fcard p { color: var(--body); margin-top: 6px; flex: 1; }
.fcard .go { margin-top: 16px; color: var(--indigo); font-weight: 600; font-size: .93rem; }
.sol-quote { max-width: 860px; margin: 0 auto; }

/* Mobile menu (below 900px). Built by build-nav.py, toggled by nav.js. */
.nav .burger { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; position: relative; }
.nav .burger span, .nav .burger span::before, .nav .burger span::after { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, background .2s; content: ""; }
.nav .burger span { top: 21px; } .nav .burger span::before { left: 0; top: -7px; } .nav .burger span::after { left: 0; top: 7px; }
.nav .burger[aria-expanded="true"] span { background: transparent; }
.nav .burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav .burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.nav .burger:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; }
.nav .mnav { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; overflow-y: auto; padding: 8px 16px 32px; border-top: 1px solid var(--line); }
.nav .mnav[hidden] { display: none; }
.nav .mnav details, .nav .mnav .top { border-bottom: 1px solid var(--line); }
.nav .mnav summary, .nav .mnav .top { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-size: 1.1rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.nav .mnav summary::-webkit-details-marker { display: none; }
.nav .mnav summary::after { content: "+"; color: var(--indigo); font-size: 1.4rem; line-height: 1; }
.nav .mnav details[open] summary::after { content: "–"; }
.nav .mnav .sub { padding: 0 4px 18px; }
.nav .mnav .sub small { display: block; margin: 12px 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav .mnav .sub ul { display: grid !important; gap: 0; list-style: none; }
.nav .mnav .sub ul a { display: block; padding: 9px 0; color: #374151; font-weight: 500; }
.nav .mnav .sub .all { display: inline-block; margin-top: 8px; color: var(--indigo); font-weight: 600; }
.nav .mnav .mcta { display: grid; gap: 10px; margin-top: 24px; }
.nav .mnav .mcta .btn { justify-content: center; text-align: center; }
.nav .mnav .mauth { text-align: center; margin-top: 18px; color: var(--muted); font-weight: 500; }
.nav .mnav .mauth a { color: var(--indigo); font-weight: 600; }
body.menu-open { overflow: hidden; }
@media (max-width: 900px) { .nav .burger { display: block; } }
@media (min-width: 901px) { .nav .mnav { display: none !important; } }

/* Grid children may shrink below their content (stops tables and nowrap text widening the page on phones) */
.split > *, .calc > *, .two-col > *, .grid > * { min-width: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Accessibility: skip link, visible focus, reduced motion */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; transition: top .15s; }
.skip:focus { top: 12px; }
#main:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.rcard a:focus-visible, .aud a:focus-visible, .btn-primary:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--indigo); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- Shared components (documented in styleguide.html) ---- */
/* Status chips: the same words and colors the app uses */
.tag { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: var(--indigo-50); color: var(--indigo); white-space: nowrap; }
.tag.g { background: var(--teacher-50); color: var(--teacher); }
.tag.a { background: #fef3c7; color: var(--amber); }
.tag.r { background: #fee2e2; color: #b91c1c; }
.tag.new { background: var(--teacher); color: #fff; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; margin-left: 8px; }

/* Facts strip: 2 to 4 sourced facts in a row */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { background: #fff; padding: 20px 22px; }
.facts b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.facts span { color: var(--body); font-size: .93rem; }

/* Form fields */
.f { display: block; margin-top: 14px; }
.f label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.f label i { color: var(--muted); font-style: normal; font-weight: 500; }
.f input, .f select, .f textarea { width: 100%; font: inherit; font-size: .98rem; color: var(--ink); background: #fff; border: 1.5px solid #c9cde6; border-radius: var(--r-sm); padding: 11px 12px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-50); }
.f textarea { min-height: 110px; resize: vertical; }
.f .help { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.f.err input, .f.err select, .f.err textarea { border-color: #b91c1c; }
.f .msg { color: #b91c1c; font-size: .85rem; font-weight: 600; margin-top: 6px; }
.form-ok { background: var(--teacher-50); color: #065f46; border-radius: var(--r-sm); padding: 14px 16px; font-weight: 600; }

/* Pill tabs: switch between a few views of the same thing */
.ptabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ptabs button { font: inherit; font-weight: 600; color: var(--body); background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 10px 18px; cursor: pointer; }
.ptabs button[aria-selected="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* Pricing card */
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px; display: flex; flex-direction: column; }
.plan.lead { border: 2px solid var(--indigo); box-shadow: 0 24px 44px -26px rgba(36,3,143,.45); }
.plan h3 { font-size: 1.3rem; }
.plan .for { color: var(--muted); font-size: .93rem; margin-top: 2px; }
.plan .price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-size: 2.6rem; letter-spacing: -.02em; line-height: 1; }
.plan .price span { color: var(--muted); font-weight: 600; }
.plan .btn { justify-content: center; margin: 18px 0 20px; }
.plan ul { list-style: none; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 26px; color: var(--body); font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--indigo-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324038f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Checklist (Getting Started) */
.checks { list-style: none; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.checks li + li { border-top: 1px solid var(--line); }
.checks label { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 22px 26px; cursor: pointer; }
.checks input { appearance: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #c7cbd4; margin-top: 2px; display: grid; place-items: center; cursor: pointer; }
.checks input:checked { background: var(--teacher); border-color: var(--teacher); }
.checks input:checked::after { content: "✓"; color: #fff; font-weight: 700; font-size: .85rem; }
.checks b { display: block; font-size: 1.08rem; }
.checks p { color: var(--body); margin-top: 4px; }

/* Announcement bar: one line above the nav, for a time-limited event. Off by default (build-nav.py ANNOUNCEMENT). */
.announce { background: linear-gradient(90deg, var(--indigo-50), #f3e8ff); color: var(--ink); text-align: center; font-size: .92rem; font-weight: 500; padding: 10px 16px; border-bottom: 1px solid #e4e6fb; }
.announce a { color: var(--indigo); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }

/* Phones: tighter vertical rhythm between sections (80px each side read as empty screens) */
@media (max-width: 700px) {
  section.block { padding: 52px 0; }
  .footer { padding-top: 48px; }
}

/* Real Educators story videos (public/images/stories/). One story: video beside its copy. Two: .stories grid of .story-card. */
.story { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 28px; } }
.story-vid { margin: 0; min-width: 0; }
.story-vid video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-sm); background: #0a0a3d; }
.story-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -.01em; margin: 12px 0 12px; }
.story-copy > p:not([class]) { color: var(--body); font-size: 1.05rem; }
.story-copy .say { margin-top: 24px; }
.story-copy .say blockquote { font-size: 1.15rem; }
.story-who { margin-top: 18px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.story-who b { color: var(--ink); letter-spacing: .04em; }
.story-note { margin-top: 14px; font-size: .82rem; color: var(--muted); }
.stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .stories { grid-template-columns: 1fr; } }
.story-card { background: #fff; border-radius: var(--r-md); padding: 14px 14px 22px; box-shadow: 0 0 0 1px rgba(17,24,39,.08), 0 25px 50px -24px rgba(17,24,39,.3); display: flex; flex-direction: column; }
.story-card h3 { font-size: 1.25rem; line-height: 1.3; margin: 18px 10px 6px; }
.story-card p { color: var(--body); margin: 0 10px; }
.story-card .story-who { margin: 14px 10px 0; }
