/* BeSure — the one stylesheet for every page (PRD §14; the approved design, BRAINFOREST-AEO-DESIGN.md).
   White paper, near-black type, one saturated green for the single main action and for Right.
   Inter only: Light 300, Regular 400, Medium 500, and SemiBold 600 on a short list only (founder, 1 Oct: h1/h2 on
   the Scorecard, All answers and What to change, section headings, the All answers questions, the FAQ questions, the
   score label, the homepage's four question groups; tests/test_look.py holds the list). Nothing 700 or heavier. Square corners. Thin rules, soft shadows.
   Phone first: every rule below is for a phone; wider screens get more room, never more rules. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/static/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --ink: #111111; /* the design's black */
  --green: #008a00; /* the one green: the main action and Right. White on it and it on white both pass 4.5:1 */
  --green-deep: #006e00; /* the same green, pressed */
  --red: #b42318; /* the Wrong group label only. White on it passes 4.5:1 (6.6:1) */
  --grey: #5c5c5c; /* labels, eyebrows, secondary lines */
  --grey-body: #3d3d3d; /* secondary paragraphs */
  --grey-note: #6b6b6b; /* the small print */
  --grey-dot: #8a8a8a; /* the · between two links */
  --rule: #ececec; /* the header, the footer, the big section lines */
  --rule-list: #e8e8e8; /* list lines */
  --rule-row: #efefef; /* row lines */
  --edge: #e3e3e3; /* a card's edge */
  --bar: #e6e6e6; /* an engine bar, empty */
  --box: #d6d6d6; /* the new text, boxed */
  --field: #cfcfcf; /* form field edges */
  --dot-off: #d9d9d9; /* a tour step not reached yet */
  --tour-tint: #f3f8f3; /* the tour card: a pale green, so it stands off the page (founder, 1 Oct) */
  --tour-edge: #dfe9df; /* the tour card's edge */
  --amber: #a15c07; /* Waiting only: sent, the AI has not caught up yet (founder, 9 Oct). 5.2:1 on white */
  --amber-tint: #fdf4e3; /* the Waiting tag's ground */
  --red-tint: #fdf0ef; /* a change for the worse: its tag's ground */
  --band: #fafafa; /* the homepage's grey bands (homepage v2, founder, 1 Oct) */
  --bubble: #f1f1f1; /* the question in the homepage's made-up AI answer */
  --chrome: #f6f6f6; /* the homepage demo's browser bar */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px rgba(0, 0, 0, 0.06);
  --shadow-big: 0 2px 6px rgba(0, 0, 0, 0.04), 0 24px 64px rgba(0, 0, 0, 0.08);
  --shadow-phone: 0 2px 6px rgba(0, 0, 0, 0.05), 0 30px 80px rgba(0, 0, 0, 0.12);
  --shadow-tour: 0 8px 30px rgba(0, 0, 0, 0.12);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: 24px;
  --column: 44rem;
}

/* --- base ------------------------------------------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: none; /* never a fake bold */
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p, ul, ol, dl, dd, blockquote, figure, pre { margin: 0; }
ul, ol { padding: 0; }
strong, b, th, dt, summary, legend { font-weight: 500; }
small { font-size: 0.875rem; }
img { max-width: 100%; height: auto; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--green); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

code {
  font-family: var(--sans);
  font-weight: 500;
}

pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* hidden means hidden, whatever the class's display. */
.btn[hidden],
.btn-line[hidden],
.link-btn[hidden],
.tour[hidden],
.tour-dots[hidden],
.pages-read[hidden] { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- the top bar: BeSure · How it works · Sign in (PRD §6) ------------------------ */

.top {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 16px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: var(--ink); }

.brand-mark {
  width: 9px;
  height: 9px;
  background: var(--green);
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
}

.nav a { text-decoration: none; }

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* Sign out: a POST form that reads as one more nav link, last (founder, 30 Sep). */
.nav-out { display: flex; }

.nav .link-btn {
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
}

/* On a phone, the Scorecard, See all answers and What to change show one link: Your school (or Sign in).
   Signed in, every page does the same, then Sign out: the bar stays one line at 375 wide (How it works is in the footer). */
.app .nav-how,
.nav.is-in .nav-how,
.app .nav-pricing,
.nav.is-in .nav-pricing { display: none; }

/* The public pages' bar (homepage v2, founder, 1 Oct): /, How it works, Pricing, FAQ, Security, Privacy, Terms.
   It sticks to the top. Wide: BeSure, then How it works · Pricing · FAQ · Sign in (or the signed-in links) and
   the green "Get my free Scorecard". A phone: BeSure, the green button and Menu, which opens the links below. */
.top-public {
  position: sticky;
  top: 0;
  z-index: 40;
}

.top-public .top-inner {
  flex-wrap: wrap;
  gap: 0 6px;
  padding: 12px 16px;
}

.top-public .brand { margin-right: auto; }

/* School pages, sign-in and staff (founder, 7 Oct): the same bar, a little lower on a phone, so the Scorecard's
   first screen still fits one (PRD §4). */
.top-app .top-inner { padding-top: 4px; padding-bottom: 4px; }

.btn.top-cta {
  order: 1;
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.top-menu { order: 2; }

.top-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  list-style: none;
  cursor: pointer;
}

.top-menu-btn::-webkit-details-marker { display: none; }

.top-menu-word {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Three thin lines; open, a thin ×. */
.top-menu-icon,
.top-menu-icon::before,
.top-menu-icon::after {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
}

.top-menu-icon { position: relative; }

.top-menu-icon::before,
.top-menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.top-menu-icon::before { top: -6px; }
.top-menu-icon::after { top: 6px; }
.top-menu[open] .top-menu-icon { background: transparent; }
.top-menu[open] .top-menu-icon::before { top: 0; transform: rotate(45deg); }
.top-menu[open] .top-menu-icon::after { top: 0; transform: rotate(-45deg); }

.top-public .nav {
  order: 3;
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-top: 10px;
  font-size: 15px;
  line-height: 20px;
}

.top-public .top-menu[open] ~ .nav { display: flex; }

.top-public .nav > a,
.top-public .nav > form {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.top-public .nav .nav-how,
.top-public .nav .nav-pricing { display: block; } /* signed in too: the menu has room */

@media (min-width: 720px) {
  .top-public .top-inner { padding: 14px var(--gutter); gap: 0 10px; }
}

@media (min-width: 1000px) {
  .top-public .top-inner {
    flex-wrap: nowrap;
    gap: 28px;
    min-height: 76px;
    padding: 0 var(--gutter);
  }
  .top-public .top-menu { display: none; }
  .top-public .nav,
  .top-public .top-menu[open] ~ .nav {
    order: 0;
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    font-size: 14px;
    line-height: 16px;
  }
  .top-public .nav > a,
  .top-public .nav > form {
    padding: 0;
    border: 0;
  }
  .btn.top-cta {
    order: 0;
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
  }
}

@media (min-width: 1100px) {
  .top-public .top-inner,
  .top-public .nav,
  .top-public .top-menu[open] ~ .nav { gap: 36px; }
}

/* --- the site footer ------------------------------------------------------------------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--rule);
  color: var(--grey);
  font-size: 13px;
  line-height: 1.5;
}

.foot-links {
  display: flex;
  gap: 24px;
}

.foot a {
  color: var(--grey);
  text-decoration: none;
}

.foot a:hover { color: var(--green); }

/* --- page column ------------------------------------------------------------------------- */

.wrap {
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 5rem;
}

.app .wrap { padding-top: 22px; padding-bottom: 48px; } /* What to change: the design's phone screen */

.wrap-narrow { max-width: calc(26rem + 2 * var(--gutter)); }
.wrap-wide { max-width: calc(64rem + 2 * var(--gutter)); }

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--grey);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.title {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.lead {
  margin-top: 1.1rem;
  color: var(--grey-body);
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.5;
}

.section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.section-title {
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.note {
  margin-top: 1.25rem;
  color: var(--grey-body);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.back {
  margin: 0;
  font-size: 13px;
}

.back a {
  color: var(--grey);
  text-decoration: none;
}

.back a:hover { color: var(--green); }

/* A message after an action: black text beside a black bar, never a filled block. */
.flash {
  margin: 1.5rem 0 0;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 2px solid var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

/* Work is happening (PRD §5 A): one quiet green square that breathes beside the line. */
.working {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.working::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55em;
  height: 0.55em;
  background: var(--green);
  transform: translateY(-0.02em);
  animation: bf-breathe 1.6s ease-in-out infinite;
}

@keyframes bf-breathe {
  0%, 100% { opacity: 1; transform: translateY(-0.02em) scale(1); }
  50% { opacity: 0.2; transform: translateY(-0.02em) scale(0.7); }
}

/* --- buttons ------------------------------------------------------------------------------- */

.btn,
.btn-line {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  margin: 0;
  padding: 0 28px;
  border: 1px solid var(--green);
  border-radius: 0;
  background: var(--green);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #ffffff;
  text-decoration: none;
}

.btn:disabled {
  cursor: progress;
  opacity: 0.75;
}

/* Every other action: black line, white paper. The green is kept for the one main action. */
.btn-line {
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  text-decoration: none;
}

.btn:focus-visible,
.btn-line:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn-block { width: 100%; }

/* A button that reads as a link (Copy, Read more, Edit). */
.link-btn {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.link-btn:hover { color: var(--green); }

/* --- form fields ------------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
}

.field-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.field-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.field-label-note {
  color: var(--grey);
  font-weight: 400;
}

.field-hint {
  color: var(--grey);
  font-size: 12px;
  line-height: 1.4;
}

.input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--field);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px: no zoom on a phone */
  font-weight: 400;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.input {
  min-height: 6.5rem;
  resize: vertical;
}

.input::placeholder {
  color: var(--grey-note);
  opacity: 1;
}

.input:hover { border-color: var(--ink); }

.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* Checkbox: a square with a green tick. */
.check {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper) no-repeat center / 12px 12px;
  cursor: pointer;
  vertical-align: middle;
}

.check:checked {
  border-color: var(--green);
  background-color: var(--green);
  background-image: url("/static/check.svg"); /* a file on this site: images come from this site only (CSP) */
}

.check:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* A small label: "Draft — confirm" (with its checkbox), "Not found — add the link", "3 drafts — confirm". */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 3px 7px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

a.tag:hover { color: var(--green); border-color: var(--green); }
label.tag { cursor: pointer; }
label.tag .check { width: 16px; height: 16px; background-size: 10px 10px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 6px;
}

/* --- homepage (homepage v2, founder 1 Oct; design: HomeV2) -------------------------------------- */
/* The hero, the problem, the 13 questions, How it works, the live demo, the trust strip, the free Scorecard again.
   Grey bands (#fafafa) alternate with white; every section opens with a thin rule. Phone first, as everywhere. */

.home section[id] { scroll-margin-top: 88px; } /* a jump lands under the sticky bar */

.home-eyebrow {
  color: var(--grey);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-eyebrow.is-green { color: var(--green); }

.home-h2 {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.home-lead {
  color: var(--grey-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
}

.home-lead.is-ink {
  color: var(--ink);
  font-weight: 400;
}

.home-small {
  color: var(--grey);
  font-size: 15px;
  line-height: 1.6;
}

.home-band {
  padding: 64px var(--gutter);
  border-top: 1px solid var(--rule);
}

.home-band.is-grey { background: var(--band); }

.home-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
}

/* The hero: the eyebrow in green, the rotating engine line, one paragraph, the work-email form. */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px var(--gutter) 64px;
  text-align: center;
}

.lockup {
  margin: 20px 0 0;
  font-size: clamp(27px, 8.5vw, 80px); /* 27px: "Google AI Overviews" fits a 320px phone */
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.lockup-line { display: block; }

/* The engine line: each engine's mark, then its name in the hero's own type (Inter Light, the same size and colour),
   fading in and rising slightly, one every ~2.8 s (PRD §6, v5.8; founder, 30 Sep). One line tall: nothing below moves. */
.lockup-engines {
  position: relative;
  display: block;
  height: 1.2em;
  margin: 0 auto;
}

.lockup-engine {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.22em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.lockup-engine.is-on {
  opacity: 1;
  transform: none;
}

.lockup-mark {
  display: block;
  flex: none;
  width: auto;
  height: 0.78em;
}

.lockup-name {
  display: block;
  overflow-wrap: normal;
}

/* Google's two: a plain sparkle, a little smaller than the other marks so it sits on the letters' height. */
.lockup-engine-google_aio .lockup-mark,
.lockup-engine-google_ai_mode .lockup-mark { height: 0.62em; }

.home-sub {
  max-width: 760px;
  margin-top: 28px;
  color: var(--grey-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
}

.home-sub-strong {
  color: var(--ink);
  font-weight: 400;
}

.paste {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  margin-top: 40px;
}

.paste .input {
  height: 56px;
  border-color: var(--ink);
  padding: 0 18px;
  font-size: 17px;
  font-weight: 300;
  text-align: left;
}

.paste .input:focus { box-shadow: inset 0 0 0 1px var(--ink); }
.paste .btn { min-height: 56px; }

/* The free Scorecard by work email (P1): the field's label, and the one line under the button. */
.start-label { text-align: left; }

.start-note {
  width: 100%;
  max-width: 600px;
  margin: 12px 0 0;
  color: var(--grey-body);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

/* On the homepage the field's label is read, not shown (the placeholder and the button say what it is). */
.home .start-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.home-hero .paste,
.home-cta .paste {
  max-width: 620px;
  margin-top: 32px;
}

.home .start-note {
  max-width: 620px;
  margin-top: 16px;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.home-for {
  margin-top: 4px;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.6;
}

/* After Sign out: one small line above the hero. */
.signed-out {
  margin: 0 0 24px;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.5;
}

.home .flash {
  width: 100%;
  max-width: 620px;
  margin: 1.25rem auto 0;
  text-align: left;
}

/* The problem: a made-up AI answer that leaves the school off, and why it matters. */
.home-problem {
  display: grid;
  gap: 48px;
  align-items: center;
}

.home-chat-fig {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  margin: 0;
}

.home-chat {
  border: 1px solid var(--edge);
  background: var(--paper);
  box-shadow: var(--shadow-big);
}

.home-chat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid var(--rule-row);
  color: var(--grey);
  font-size: 13px;
}

.home-chat-dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--field);
}

.home-chat-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 20px 24px;
}

.home-chat-ask {
  align-self: flex-end;
  max-width: 380px;
  padding: 12px 16px;
  background: var(--bubble);
  font-size: 16px;
  line-height: 1.45;
}

.home-chat-answer,
.home-chat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.home-chat-list { list-style: none; }
.home-chat-school { font-weight: 500; }

.home-chat-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

/* The one red on the homepage: "Larkfield University isn't on the list." White on it passes 4.5:1 (6.6:1). */
.home-chat-missing {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  background: var(--red);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.home-chat-note {
  color: var(--grey-note);
  font-size: 12px;
}

.home-problem-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.home-stat {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--edge);
}

.home-stat-num {
  flex: none;
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.home-stat-text {
  color: var(--grey-body);
  font-size: 15px;
  line-height: 1.55;
}

.home-stat-text a { color: var(--grey); }
.home-stat-text a:hover { color: var(--green); }

/* What we check: the 13 questions in four groups, then the midnight line (a photo beside it, once there is one). */
.home-check {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.home-groups {
  display: grid;
  gap: 40px;
}

.home-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.home-group-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.home-group-why {
  margin-bottom: 12px;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.5;
}

.home-qs { list-style: none; }

.home-q {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.45;
}

.home-q-num {
  flex: 0 0 22px;
  color: var(--green);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.home-night {
  display: grid;
  gap: 32px;
  align-items: center;
}

.home-night-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 52 / 34;
  object-fit: cover;
}

.home-night-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 920px;
}

.home-night-big {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.home-night-small {
  color: var(--grey-body);
  font-size: 17px;
  line-height: 1.6;
}

/* How it works: three sample cards (a Scorecard, a change, the win email), each over its step. */
.home-how {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.home-steps {
  display: grid;
  gap: 48px;
  list-style: none;
}

.home-step {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.home-mock {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--edge);
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 18px 48px rgba(0, 0, 0, 0.07);
}

.home-mock.is-email { gap: 12px; }

.home-mock-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--grey-note);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-mock-school {
  font-size: 18px;
  line-height: 1.3;
}

.home-mock-score {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.home-mock-num {
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.85;
}

.home-mock-of {
  color: var(--grey-body);
  font-size: 13px;
  line-height: 1.2;
}

.home-mock-label {
  color: var(--grey);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-mock-label.is-gap { margin-top: 6px; }

.home-mock-line {
  font-size: 14px;
  line-height: 1.45;
}

.home-mock-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.home-mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.home-mock-eng { flex: 0 0 120px; white-space: nowrap; } /* fits "Google AI Overview" */

.home-mock-track {
  flex: 1 1 auto;
  height: 2px;
  background: var(--bar);
}

.home-mock-fill {
  display: block;
  height: 2px;
  background: var(--green);
}

.home-mock-fill.is-62 { width: 62%; }
.home-mock-fill.is-69 { width: 69%; }
.home-mock-fill.is-70 { width: 70%; }
.home-mock-fill.is-77 { width: 77%; }
.home-mock-fill.is-85 { width: 85%; }

.home-mock-page {
  font-size: 13px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.home-mock-new {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--box);
  font-size: 13px;
  line-height: 1.45;
}

.home-mock-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 36px;
  margin-top: auto;
  padding: 0 16px;
  background: var(--green);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

.home-mock-btn.is-wide {
  align-self: stretch;
  justify-content: center;
  min-height: 40px;
}

.home-mock-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-mock-brand-mark {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--green);
}

.home-mock-from {
  color: var(--grey);
  font-size: 13px;
  line-height: 1.4;
}

.home-mock-win {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.35;
}

.home-mock-took {
  color: var(--grey-body);
  font-size: 13px;
  line-height: 1.4;
}

.home-step-words {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.home-step-num {
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.home-step-name {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.home-step-text {
  color: var(--grey-body);
  font-size: 16px;
  line-height: 1.65;
}

/* A real Scorecard: the tour's nine steps beside the live demo in a browser frame. The step showing is lit like the
   tour card: a green bar on its left and the tour's pale green. */
.demo {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.demo-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.demo-side { min-width: 0; }

.demo-steps {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-left: 3px solid transparent;
  color: var(--grey-body);
  text-decoration: none;
}

.demo-step:hover { color: var(--ink); }

.demo-step:focus-visible { outline-offset: -2px; }

.demo-step-num {
  flex: 0 0 22px;
  color: var(--grey-note);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.demo-step-title {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}

.demo-step.is-on {
  border-left-color: var(--green);
  background: var(--tour-tint);
  color: var(--ink);
}

.demo-step.is-on .demo-step-num { color: var(--green); }
.demo-step.is-on .demo-step-title { font-weight: 500; }

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 20px;
  padding-left: 16px;
}

.demo-play {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 400;
}

.demo-take { font-size: 14px; }

/* On a phone the frame runs edge to edge, so the demo is a phone's full width. */
.demo-browser {
  min-width: 0;
  margin: 0 calc(-1 * var(--gutter));
  border-top: 1px solid var(--dot-off);
  border-bottom: 1px solid var(--dot-off);
  background: var(--paper);
  box-shadow: var(--shadow-phone);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--chrome);
}

.demo-dot {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--dot-off);
}

.demo-url {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  height: 24px;
  margin-left: 16px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--paper);
  color: var(--grey-note);
  font-size: 12px;
  white-space: nowrap;
}

/* A phone: the demo at the phone's own width. Wider: the desktop page (1440 wide) scaled to the frame by the
   page's script (0.64 until it runs). */
.demo-frame {
  position: relative;
  height: 640px;
  overflow: hidden;
}

.demo-frame iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}

/* The trust strip: three short promises, the last one links to Security. */
.home-trust {
  display: grid;
  gap: 32px;
}

.home-trust-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-trust-title {
  font-size: 20px;
  line-height: 1.3;
}

.home-trust-text {
  color: var(--grey-body);
  font-size: 15px;
  line-height: 1.6;
}

/* The free Scorecard again: the same form as the hero. */
.home-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 72px;
  padding-bottom: 80px;
  text-align: center;
}

.home-cta-title {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.home-cta .home-lead { max-width: 720px; }
.home-cta .paste { margin-top: 12px; }
.home-cta .start-note { margin-top: -4px; }

.home-cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  font-size: 15px;
}

@media (min-width: 720px) {
  .home-eyebrow { font-size: 12px; }
  .home-h2 { font-size: 40px; }
  .home-lead { font-size: 19px; }
  .home-band { padding-top: 96px; padding-bottom: 96px; }

  .home-hero { padding-top: 88px; padding-bottom: 96px; }
  .lockup { margin-top: 28px; }
  .home-sub { margin-top: 40px; font-size: 21px; }
  .home-hero .paste { margin-top: 44px; } /* the field and the button in one black box: the shared rule below */

  .home-stat-num { font-size: 64px; }
  .home-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-night-big { font-size: 26px; }

  .demo-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-browser {
    margin: 0;
    border: 1px solid var(--dot-off);
  }
  .demo-frame {
    height: auto;
    aspect-ratio: 1440 / 980;
  }
  .demo-frame iframe {
    width: 1440px;
    height: 980px;
    transform: scale(0.64);
    transform-origin: 0 0;
  }

  .home-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .home-cta-title { font-size: 48px; }
}

@media (min-width: 720px) and (max-width: 1099px) {
  .home-step {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
  }
  .home-step-words { margin-top: 0; }
}

@media (min-width: 1100px) {
  .home-hero { padding-top: 104px; padding-bottom: 112px; }
  .home-band { padding-top: 112px; padding-bottom: 112px; }
  .home-h2 { font-size: 48px; }

  .home-problem {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 96px;
  }
  .home-chat-body { padding: 24px 24px 28px; }

  .home-check { gap: 48px; }
  .home-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-night { margin-top: 40px; }
  .home-night.has-photo {
    grid-template-columns: 520px minmax(0, 1fr);
    gap: 72px;
  }

  .home-how { gap: 56px; }
  .home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .demo { gap: 48px; }
  .demo-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 56px;
  }
  .demo-steps { display: flex; }
  .demo-step { padding-top: 14px; padding-bottom: 14px; }

  .home-trust { padding-top: 80px; padding-bottom: 80px; gap: 48px; }
  .home-cta { padding-top: 120px; padding-bottom: 120px; }
  .home-cta-title { font-size: 56px; }
}

/* --- How it works page (PRD §7) ----------------------------------------------------------- */

.steps {
  list-style: none;
  margin-top: 2.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--ink);
}

.step-num {
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.step-name {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.step-text {
  color: var(--grey-body);
  font-size: 16px;
  line-height: 1.65;
}

/* --- sign in, forgot, reset ------------------------------------------------------------------- */

.form { margin-top: 2.25rem; }

.signin-forgot {
  margin-top: 1.5rem;
  font-size: 14px;
}

.signin-name {
  margin-top: 1.25rem;
  font-size: 1.375rem;
  font-weight: 300;
}

.signin-link-line {
  margin-top: 0.75rem;
  font-size: 15px;
  overflow-wrap: anywhere;
}

/* --- the tabs on every school page, under the school name (founder, 30 Sep) ------------------------ */

/* Scorecard · All answers · What to change. The current tab: black, a 2px black line under it; the others grey.
   Each is 44px tall to tap; the row stays one line at 375 wide. The school's name above it, on All answers and What
   to change, reads like the Scorecard's. */
.school-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.school-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: -1px; /* the current tab's line sits on the row's rule */
  border-bottom: 2px solid transparent;
  color: var(--grey);
  text-decoration: none;
}

.tab:hover { color: var(--green); }

.tab[aria-current="page"] {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.sc-head .tabs { margin-bottom: 4px; }

/* --- Scorecard (PRD §4; design: Scorecard, ScorecardDesktop) ----------------------------- */

/* The Scorecard's column: the design's phone screen, 24px each side. */
.wrap.sc-wrap {
  max-width: calc(560px + 2 * var(--gutter));
  padding-top: 26px;
  padding-bottom: 64px;
}

.sc { margin: 0; }

.sc-running { margin: 0 0 16px; }

.sc-first { margin: 0; }

.sc-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.score-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.sc-status {
  color: var(--grey);
  font-size: 12px;
  line-height: 1.4;
}

.tick { color: var(--green); }

/* The score: one big light number, then "of N answers right". */
.sc-score {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.sc-num {
  font-size: 84px;
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.82;
  font-variant-numeric: tabular-nums;
}

.sc-of {
  padding-bottom: 2px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.sc-notice {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.sc-card { margin-top: 26px; }

.sc-worst-block {
  padding-top: 18px;
  border-top: 1px solid var(--rule-list);
}

.sc-worst-label { margin: 0; }

.sc-worst {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
}

/* Named instead of you, Where the AI got this: on the wide Scorecard's card only (the phone has See all answers). */
.sc-lines {
  display: none;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.55;
}

.sc-line-label { color: var(--grey); }

.sc-fix-block { margin-top: 14px; }

.sc-fix-label { display: none; }

.sc-fix {
  color: var(--grey-body);
  font-size: 14px;
  line-height: 1.5;
}

.sc-fix strong {
  color: var(--ink);
  font-weight: 500;
}

.sc-fix-page { display: none; }

.sc-go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 20px;
}

.sc-go .btn {
  width: 100%;
  min-height: 52px;
}

.sc-go-meta {
  display: none;
  color: var(--grey);
  font-size: 13px;
}

/* One row per engine: its name, "11 of 13 right", a thin green bar. */
.engine-scores {
  list-style: none;
  margin-top: 22px;
}

.engine-scores li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 40px;
  border-bottom: 1px solid var(--rule-row);
  font-size: 14px;
}

.engine-scores li.has-note {
  height: auto;
  min-height: 40px;
  padding: 8px 0;
}

.eng-name { white-space: nowrap; }

/* The staff page: what each engine did on the last check, under Last checked. */
.staff-engine-note {
  display: block;
  margin-top: 4px;
  color: var(--grey);
  font-size: 12px;
}

.staff-engine-note.is-problem { color: var(--ink); font-weight: 500; }

.staff-engine-note.working { display: flex; color: var(--ink); font-size: 12px; }

/* Run now finished (founder, 6 Oct): the line turns green with a tick, the school's row glows once. */
.flash.is-complete {
  border-left-color: var(--green);
  animation: staff-done 0.6s ease;
}

.flash.is-complete::before { content: "✓ "; color: var(--green); }

tr.is-finished > * { animation: staff-row 2.4s ease; }

@keyframes staff-done {
  from { opacity: 0.2; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@keyframes staff-row {
  0%, 35% { background: var(--tour-tint); }
  100% { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .flash.is-complete, tr.is-finished > * { animation: none; }
}

.eng-note {
  display: block;
  margin-top: 2px;
  color: var(--grey);
  font-size: 12px;
  white-space: normal;
}

.eng-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eng-count {
  color: var(--grey);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.eng-bar {
  display: block;
  width: 56px;
  height: 2px;
}

.eng-bar-empty { fill: var(--bar); }
.eng-bar-fill { fill: var(--green); }

.sc-links {
  margin-top: 16px;
  font-size: 13px;
}

.sc-dot { color: var(--grey-dot); }

.sc-footer {
  margin-top: 12px;
  color: var(--grey-note);
  font-size: 11px;
  line-height: 1.5;
}

/* The last morning check (Job D): "Last checked Thu 1 Oct, 8:04 am Eastern", just under the first screen. */
.sc-checked {
  margin-top: 8px;
  color: var(--grey-note);
  font-size: 11px;
  line-height: 1.5;
}

.sc-paragraph {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  color: var(--grey-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.score-ask {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.score-ask .field-label { display: block; margin-bottom: 8px; font-size: 13px; }

.score-ask-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-ask-note {
  margin-top: 28px;
  color: var(--grey);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.score-ask-saved {
  list-style: none;
  margin-top: 10px;
}

.score-ask-saved li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-row);
  font-size: 15px;
}

.score-ask-saved .score-ask-q { flex: 1 1 0; min-width: 0; }

/* The page that answers each question (founder, 8 Oct): a quiet field under it, one line with its button. */
.score-ask-saved .score-ask-page {
  display: flex;
  flex: 1 0 100%;
  align-items: center;
  gap: 12px;
}

.score-ask-page .input {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 14px;
}

.score-ask-page-label { margin-top: 14px; }
.score-ask-optional { color: var(--grey); }
.score-ask-page-input { width: 100%; }

.score-ask-saved form { flex: 0 0 auto; }
.score-ask-saved .link-btn { font-size: 13px; }

.score-ask-off {
  margin-left: 6px;
  color: var(--grey);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.score-ask-count {
  margin-top: 10px;
  color: var(--grey);
  font-size: 13px;
}

.score-ask-limit {
  margin: 0 0 14px;
  color: var(--grey-body);
  font-size: 15px;
  line-height: 1.5;
}

/* --- the demo tour (PRD §4.6, v5.8; design: Tour; founder, 30 Sep) ------------------------ */

/* Each step fades everything but its subject: on the Scorecard, See all answers and What to change. */
.top,
.foot,
.flash,
.sc-running,
.sc-notice,
.school-name,
.tabs,
.score-title,
.engine-scores,
.sc-links,
.sc-footer,
.sc-checked,
.sc-paragraph,
.score-ask,
.score-ask-note,
.score-ask-saved,
.answers-title,
.answers-count,
.answers-checked,
.answers-mark,
.sc-q-text,
.sc-a,
.answers-more,
.back,
.correct-head,
.change,
.change > *,
.changes-none,
.expect,
.changes-more,
.fold,
.fold-facts .read-row,
.facts-first,
.facts-signin,
.facts-edit,
[data-tour-subject] { transition: opacity 300ms ease; }

.touring .top,
.touring .foot,
.touring .flash,
.touring .sc-running,
.touring .sc-notice,
.touring .school-name,
.touring .tabs,
.touring .score-title,
.touring .engine-scores,
.touring .sc-links,
.touring .sc-footer,
.touring .sc-checked,
.touring .sc-paragraph,
.touring .score-ask,
.touring .score-ask-note,
.touring .score-ask-saved,
.touring .answers-title,
.touring .answers-count,
.touring .answers-checked,
.touring .answers-mark,
.touring .sc-q-text,
.touring .sc-a,
.touring .answers-more,
.touring .back,
.touring .correct-head,
/* Change card 1 and Saved facts fade part by part: the tour lights only some of their rows. */
.touring .changes:not(.changes-more) .change:not(:first-child),
.touring .changes:not(.changes-more) .change:first-child > :not([data-tour-subject]),
.touring .changes-none,
.touring .expect,
.touring .changes-more,
.touring .fold:not(.fold-facts),
.touring .fold-facts .read-row:not([data-tour-subject]),
.touring .facts-first,
.touring .facts-signin,
.touring .facts-edit,
/* The new tour (founder, 9 Oct) lights Progress, Schools named instead of you and Caught for you: the rest fades. */
.touring .pg-head,
.touring .pg-tiles,
.touring .pg-rivals > :not([data-tour-subject]),
.touring .caught > :not(.caught-list),
.touring .caught-item:not([data-tour-subject]),
.touring .pg-changes-block,
.touring .pg-worth,
.touring .pg-report-link,
.touring .pg-locked,
.touring .sources-feed,
.touring .track,
.touring [data-tour-subject] { opacity: 0.16; }

.touring [data-tour-subject].is-lit { opacity: 1; }

/* The card floats next to the part it lights (placed by the page's script); a step with nothing lit sits in the
   middle of the screen. It fades in once the part and the card are both on the screen. */
.tour {
  --tz: 1; /* the card's size: 1, or larger inside the homepage frame, which shows the page shrunk (below) */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: calc(380px * var(--tz));
  display: flex;
  flex-direction: column;
  gap: calc(10px * var(--tz));
  padding: calc(20px * var(--tz)) calc(20px * var(--tz)) calc(16px * var(--tz));
  border: 1px solid var(--tour-edge);
  border-top: 3px solid var(--green);
  background: var(--tour-tint);
  box-shadow: var(--shadow-tour);
  opacity: 0;
}

/* On the tint, the grey words still pass 4.5:1 (#5c5c5c: 6.2:1, #3d3d3d: 10.1:1); the green on hover is the deeper one
   (#006e00: 6.0:1; #008a00 on the tint is 4.2:1). */
.tour .link-btn:hover { color: var(--green-deep); }

.tour.is-in {
  opacity: 1;
  transition: opacity 250ms ease;
}

.tour.is-centred { position: fixed; }

/* The card takes focus so a screen reader reads it; its buttons show focus, the card itself does not. */
.tour:focus,
.tour:focus-visible { outline: none; }

/* The pointer: a small triangle at the card's edge, aimed at the centre of the lit part. */
.tour-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid var(--tour-edge);
  background: var(--tour-tint);
  transform: rotate(45deg);
}

.tour-arrow[hidden] { display: none; }
/* The green rule is on the side that faces the part, and the pointer is a green triangle on it (founder, 5 Oct):
   below the part, the top rule; beside it, the left rule; above it, the bottom rule. */
.tour.is-side-right { border-top: 1px solid var(--tour-edge); border-left: 3px solid var(--green); }
.tour.is-side-above { border-top: 1px solid var(--tour-edge); border-bottom: 3px solid var(--green); }
.tour-arrow.is-right { left: -9px; background: var(--green); clip-path: polygon(0 100%, 0 0, 100% 100%); } /* on the green left rule */
.tour-arrow.is-below { top: -9px; background: var(--green); clip-path: polygon(0 0, 100% 0, 0 100%); } /* on the green top rule */
.tour-arrow.is-above { bottom: -9px; background: var(--green); clip-path: polygon(100% 0, 100% 100%, 0 100%); } /* on the green bottom rule */

/* The tour's on-screen marker inside the homepage frame: the size of the window, never seen, never in the way. */
.tour-watch {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.tour-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tour-count {
  color: var(--grey);
  font-size: calc(11px * var(--tz));
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tour-dots {
  display: flex;
  gap: calc(4px * var(--tz));
}

.tour-dot {
  width: calc(18px * var(--tz));
  height: calc(2px * var(--tz));
  background: var(--dot-off);
}

.tour-dot.is-on { background: var(--ink); }

.tour-title {
  font-size: calc(21px * var(--tz));
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.tour-body {
  color: var(--grey-body);
  font-size: calc(15px * var(--tz));
  line-height: 1.5;
}

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.tour-moves {
  display: flex;
  align-items: center;
  gap: calc(6px * var(--tz));
}

.tour-skip,
.tour-back {
  margin: 0;
  font-size: calc(14px * var(--tz));
  text-decoration: none;
}

.tour-skip {
  padding: calc(12px * var(--tz)) 0;
  color: var(--grey);
}

.tour-back {
  height: calc(44px * var(--tz));
  padding: 0 calc(14px * var(--tz));
  color: var(--ink);
}

.tour-skip:hover,
.tour-back:hover { color: var(--green-deep); }

.tour .btn {
  min-height: calc(44px * var(--tz));
  padding: 0 calc(24px * var(--tz));
  font-size: calc(14px * var(--tz));
  letter-spacing: 0;
}

.tour-replay {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  min-height: 40px;
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.tour-replay:hover { background: var(--paper); border-color: var(--green); color: var(--green); }

/* Steps 6 and 9: the real email (the IT email, the win email), on its own address in a frame, marked "Example".
   The frame has a fixed height that fits the card; a tall email scrolls inside it. */
.tour-example {
  position: relative;
  margin-top: 4px;
}

.tour-example[hidden] { display: none; }

.tour-mail-subject {
  min-height: calc(22px * var(--tz));
  padding-right: calc(80px * var(--tz));
  color: var(--grey);
  font-size: calc(11px * var(--tz));
  line-height: 1.4;
}

.tour-mail-sheet { margin-top: 8px; }

.tour-mail-frame {
  display: block;
  width: 100%;
  height: min(calc(340px * var(--tz)), 40vh);
  border: 1px solid var(--edge);
  background: var(--paper);
}

.tour-example-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: calc(4px * var(--tz)) calc(8px * var(--tz));
  border: 1px solid var(--edge);
  color: var(--grey);
  font-size: calc(10px * var(--tz));
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tour-it-files {
  display: flex;
  flex-wrap: wrap;
  gap: calc(6px * var(--tz));
  margin-top: 8px;
}

.tour-it-file {
  padding: calc(2px * var(--tz)) calc(6px * var(--tz));
  border: 1px solid var(--edge);
  color: var(--grey);
  font-size: calc(10px * var(--tz));
  line-height: 1.4;
}

/* Self-running: Play/Pause (one toggle, icon and word) and a thin line along the card's bottom edge. */
.tour-play {
  display: inline-flex;
  align-items: center;
  gap: calc(7px * var(--tz));
  height: calc(44px * var(--tz));
  margin: 0;
  padding: 0 calc(12px * var(--tz));
  color: var(--ink);
  font-size: calc(14px * var(--tz));
  text-decoration: none;
}

.tour-play:hover { color: var(--green-deep); }

.tour-icon {
  display: block;
  width: calc(10px * var(--tz));
  height: calc(12px * var(--tz));
  fill: currentColor;
}

.tour-icon-pause,
.tour.is-playing .tour-icon-play { display: none; }
.tour.is-playing .tour-icon-pause { display: block; }

.tour-again {
  height: calc(44px * var(--tz));
  margin: 0;
  padding: 0 calc(14px * var(--tz));
  color: var(--ink);
  font-size: calc(14px * var(--tz));
  text-decoration: none;
}

.tour-again:hover { color: var(--green-deep); }

.tour-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.tour-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
}

/* --- See all answers (PRD §4; design: Answers) -------------------------------------------- */

.sc-all-answers { margin-top: 48px; }
.sc-all-answers:target { display: block; }

/* See all answers is its own screen: the first screen steps aside while it is open. */
.view-answers .sc-first,
.view-answers .sc-paragraph,
.view-answers .score-ask,
.view-answers .score-ask-note,
.view-answers .score-ask-saved,
.view-answers .sc-running,
.view-answers .sc-checked,
.view-answers .flash { display: none; }  /* .sc-checked: All answers has its own line (.answers-checked) */

.view-answers .sc-all-answers { margin-top: 0; }
.view-answers .wrap.sc-wrap { padding-top: 22px; padding-bottom: 40px; }

.sc:has(#answers:target) .sc-first,
.sc:has(#answers:target) .sc-paragraph,
.sc:has(#answers:target) .score-ask,
.sc:has(#answers:target) .score-ask-note,
.sc:has(#answers:target) .score-ask-saved { display: none; }

.answers-title {
  margin-top: 24px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.answers-count {
  margin-top: 6px;
  color: var(--grey);
  font-size: 14px;
}

.answers-checked {
  margin-top: 2px;
  color: var(--grey-note);
  font-size: 12px;
}

/* The two group labels: a solid box, white type (founder, 30 Sep; PRD v5.8 §14). Only these two, not the cards' words. */
.answers-mark {
  width: fit-content;
  margin-top: 32px;
  padding: 8px 16px;
  background: var(--red);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.answers-mark.is-right { margin-top: 40px; background: var(--green); }

.sc-q { padding: 0; }

/* All answers reads question → engine → verdict → quote (founder, 1 Oct): the question 18px SemiBold (20px wide),
   the engine 15px Medium, the Right / Wrong word 13px, the quote 16px Regular; 40px between questions. */
.sc-q-text {
  margin: 40px 0 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.answers-mark + .sc-q .sc-q-text { margin-top: 18px; }
.sc-q.is-all-right .sc-q-text { margin-bottom: 4px; }

.sc-q-text::before { content: "“"; }
.sc-q-text::after { content: "”"; }

.sc-q-quotes {
  display: flex;
  flex-direction: column;
  list-style: none;
}

/* A Wrong answer: a card. */
.sc-a.is-wrong {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--edge);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.sc-a.is-wrong:last-child { margin-bottom: 0; }

/* A Right answer: one compact row. */
.sc-a.is-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-row);
}

.sc-a.is-wrong + .sc-a.is-right { margin-top: 0; border-top: 1px solid var(--rule-row); }

.sc-a-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 15px;
  line-height: 1.5;
}

.sc-a-engine {
  font-size: 15px;
  font-weight: 500;
}

.sc-word {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sc-word.is-right { color: var(--green); }
.sc-word.is-wrong { color: var(--ink); }

.sc-a-why {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

/* The quote, cut to two lines (three for a list) until Read more. */
.sc-a-quote {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--grey);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.sc-a-quote.is-list { -webkit-line-clamp: 3; line-clamp: 3; }

.sc-a-quote.is-open {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: none;
  overflow: visible;
}

.sc-a-quote::before { content: "“"; }
.sc-a-quote::after { content: "”"; }

.sc-a .link-btn { align-self: flex-start; }

.sc-a-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-row);
  font-size: 13px;
  line-height: 1.5;
}

.sc-a-lines .sc-line-label { color: var(--grey); }
.sc-a-fix strong { font-weight: 500; }

.answers-more { margin-top: 20px; font-size: 13px; }
.answers-more .link-btn { font-size: 13px; }

/* --- What to change (PRD §4; design: Correct; founder, 30 Sep: renamed, with the tabs) ------------ */

.correct > .changes:first-child { margin-top: 0; }
.correct-head { margin-top: 24px; }
.correct-head .eyebrow { margin: 0; }

.correct-head .correct-title {
  margin-top: 8px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.correct-intro {
  margin-top: 10px;
  color: var(--grey-body);
  font-size: 15px;
  line-height: 1.55;
}

.changes { margin-top: 28px; }

.changes-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.changes-none {
  font-size: 17px;
  font-weight: 300;
}

.change-list {
  display: grid;
  gap: 14px;
  list-style: none;
}

.changes > .change-list { margin-top: 28px; }
.changes-more > .change-list { margin-top: 16px; }

.card {
  background: var(--paper);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
}

.change {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.change-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.change-num {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.change-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  color: var(--grey);
  font-size: 12px;
}

.change-count::first-letter { text-transform: uppercase; }

.change-live {
  color: var(--green);
  font-weight: 500;
}

.change-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.change-label {
  color: var(--grey);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.change-value {
  font-size: 15px;
  line-height: 1.5;
}

.change-page {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.change-new { gap: 8px; }

.change-new-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

/* The new text: the exact words for IT, boxed, easy to copy. */
.new-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--box);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.new-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.new-line-label {
  color: var(--grey);
  font-size: 11px;
  line-height: 1.4;
}

.change-why {
  color: var(--grey);
  font-size: 13px;
  line-height: 1.55;
}

.change.is-hers .change-value a { font-weight: 500; }

/* Send to IT: the one green action on Correct. Arriving at #send (back from sign-in, after a send), it sits
   a little below the top edge. */
.send {
  margin-top: 32px;
  scroll-margin-top: 24px;
}

.send .send-flash { margin: 0 0 16px; }

.send-it {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.send-it .field { margin: 0; }
.send-it .btn { width: 100%; }

.send-done {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.send-done::before {
  content: "✓";
  margin-right: 0.5rem;
  color: var(--green);
}

/* The moment it went: the same line, a little larger, where the button was. */
.send-confirm {
  font-size: 17px;
  line-height: 1.5;
}

.send-again { margin-top: 10px; }

.send-again summary {
  display: inline-block;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  list-style: none;
}

.send-again summary::-webkit-details-marker { display: none; }
.send-again[open] summary { margin-bottom: 16px; }

.send .btn:not(.btn-block) { width: 100%; }

.expect {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.expect-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.expect-text {
  color: var(--grey-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* Below the fold: every other change, then Saved facts, The eight pages, the facts file. A calm read view. */
.changes-more,
.fold {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.fold-facts { margin-top: 48px; }

.fold-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.fold-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.fold-edit {
  font-size: 13px;
}

.read-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.read-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-row);
}

.read-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.read-label {
  color: var(--grey);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.read-value {
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.read-row.is-drafts { align-items: center; }

.read-drafts {
  color: var(--grey-body);
  font-size: 14px;
}

.pages-read {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  font-size: 14px;
}

.page-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-row);
  line-height: 1.45;
}

.page-name {
  flex: 0 0 auto;
  color: var(--grey);
}

.page-url {
  min-width: 0;
  text-align: right;
  overflow-wrap: break-word;
}

a.page-url { text-decoration: none; }
a.page-url.is-missing { text-decoration: underline; }

.facts-edit { margin-top: 20px; }
.facts-edit[hidden] { display: none; }
.facts-edit:target { display: block; }

.facts-unofficial {
  margin-top: 8px;
  color: var(--grey);
  font-size: 13px;
}

.facts-first {
  margin-top: 16px;
  padding-left: 1rem;
  border-left: 2px solid var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.facts-form { margin-top: 20px; }

.facts-form .form-actions { margin-top: 10px; }

.facts-cancel { font-size: 13px; }

.facts-prose {
  margin-top: 20px;
  padding-left: 1rem;
  border-left: 1px solid var(--rule-list);
  color: var(--grey-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}

.facts-signin { margin-top: 16px; font-size: 14px; }

.pages-also { margin-top: 16px; font-size: 14px; }
.pages-also ul { list-style: none; margin-top: 6px; }
.pages-also li { overflow-wrap: anywhere; }

.facts-files {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  font-size: 14px;
}

.facts-files-none {
  margin-top: 16px;
  color: var(--grey-body);
  font-size: 14px;
}

.facts-home {
  margin-top: 14px;
  color: var(--grey-body);
  font-size: 14px;
  line-height: 1.6;
}

.facts-optional {
  margin-top: 8px;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.6;
}

.facts-back {
  margin-top: 48px;
  font-size: 13px;
}

/* --- staff preview (PRD §12): the three emails as sent ----------------------------------- */

/* One thin line above everything: this page is staff only. */
.staff-banner {
  margin: 0;
  padding: 7px var(--gutter);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
}

.staff-not-sent a { white-space: nowrap; }

.staff-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.staff-h { scroll-margin-top: 1rem; }

.staff-note {
  margin-top: 0.6rem;
  color: var(--grey-body);
  font-size: 0.9375rem;
  font-weight: 300;
}

.staff-head {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.staff-head dt { font-weight: 500; }
.staff-head dd { overflow-wrap: anywhere; }

/* An email, shown at its own width, framed like a sheet of paper. */
.staff-email {
  margin-top: 1.25rem;
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.staff-file {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.staff-pre {
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--edge);
}

.staff-fix {
  margin-top: 1.25rem;
  padding: 1.35rem 1.25rem 1.5rem;
}

.staff-fix-head {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.staff-fix-page {
  margin: 0.25rem 0 1.25rem;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.staff-fix .field { margin-bottom: 1rem; }
.staff-fix textarea.input { min-height: 4.75rem; }

.staff-sends {
  list-style: none;
  margin-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.staff-sends li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}

/* --- error pages ----------------------------------------------------------------------------- */

.error-code {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --- a short phone (375x667): the Scorecard's whole first screen still fits ------------------- */

@media (max-width: 719px) and (max-height: 740px) {
  .app .top-inner { padding-top: 4px; padding-bottom: 4px; } /* the bar: BeSure and Menu, as low as it goes */
  /* The school's name and the tabs sit in the same place on all three views. */
  .app .wrap,
  .wrap.sc-wrap,
  .view-answers .wrap.sc-wrap { padding-top: 12px; }
  .sc-head,
  .school-head { gap: 3px; }
  .sc-head .tabs { margin-bottom: 3px; }
  .sc-score { margin-top: 6px; }
  .sc-num { font-size: 70px; }
  .sc-card { margin-top: 12px; }
  .sc-worst-block { padding-top: 10px; }
  .sc-worst { margin-top: 4px; line-height: 1.25; }
  .sc-fix-block { margin-top: 6px; }
  .sc-fix { line-height: 1.4; }
  .sc-go { margin-top: 10px; }
  .sc-go .btn { min-height: 44px; }
  .engine-scores { margin-top: 8px; }
  .engine-scores li { height: 30px; }
  .sc-links { margin-top: 8px; }
  .sc-footer { margin-top: 6px; line-height: 1.4; }
}

/* --- wider screens: more room, same rules ---------------------------------------------------- */

@media (min-width: 720px) {
  :root { --gutter: 40px; }

  .top-inner { padding-top: 24px; padding-bottom: 24px; }
  .brand { gap: 12px; font-size: 12px; letter-spacing: 0.24em; }
  .brand-mark { width: 10px; height: 10px; }
  .nav { gap: 40px; font-size: 14px; }
  .tabs { gap: 32px; font-size: 15px; }
  .sc-q-text { font-size: 20px; } /* All answers: the question, 20px wide, 18px on a phone */
  .app .nav-how,
  .nav.is-in .nav-how { display: inline; }
  .foot { padding-top: 36px; padding-bottom: 36px; }
  .foot-links { gap: 32px; }

  .wrap { padding-top: 4.5rem; padding-bottom: 7rem; }
  .app .wrap { padding-top: 48px; padding-bottom: 96px; }
  .wrap.sc-wrap { padding-top: 48px; }

  .paste {
    flex-direction: row;
    gap: 0;
    height: 60px;
    margin-top: 52px;
    border: 1px solid var(--ink);
  }
  .paste .input {
    flex: 1 1 auto;
    height: 58px;
    min-height: 58px;
    padding: 0 22px;
    border: 0;
  }
  .paste .input:focus { box-shadow: none; }
  .paste:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
  .paste .btn {
    flex: 0 0 auto;
    min-height: 58px;
    padding: 0 30px;
    border: 0;
  }

  .steps { margin-top: 3.5rem; }

  .sc-go .btn,
  .send-it .btn,
  .send .btn:not(.btn-block) { width: auto; min-width: 240px; }

  .score-ask-row { flex-direction: row; }
  .score-ask-row .input { flex: 1 1 auto; }
  .score-ask-row .btn-line { flex: 0 0 auto; }

  .tour-replay { right: 40px; bottom: 40px; }

  .section { margin-top: 5rem; padding-top: 3rem; }
}

/* A wide screen: the Scorecard in two columns (design: ScorecardDesktop), the homepage at full size. */
@media (min-width: 1100px) {
  :root { --gutter: 80px; }

  .top-inner { padding-top: 28px; padding-bottom: 28px; }

  .wrap.sc-wrap {
    max-width: none;
    padding-top: 72px;
    padding-bottom: 96px;
  }

  .sc-first {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr auto auto;
    column-gap: 96px;
  }
  .sc-head { grid-column: 1; grid-row: 1; gap: 0; }
  .sc-notice { grid-column: 1; }
  .engine-scores { grid-column: 1; grid-row: 2; align-self: start; }
  .sc-card { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .sc-links { grid-column: 2; grid-row: 3; }
  .sc-footer { grid-column: 2; grid-row: 4; }

  .score-title { font-size: 44px; letter-spacing: -0.02em; line-height: 1.1; }
  .sc-head .tabs { margin-top: 14px; margin-bottom: 0; }
  .sc-status { margin-top: 12px; font-size: 13px; }
  .sc-score { gap: 18px; margin-top: 44px; }
  .sc-num { font-size: 168px; letter-spacing: -0.055em; line-height: 0.8; }
  .sc-of { padding-bottom: 4px; font-size: 22px; }

  .engine-scores { margin-top: 52px; border-top: 1px solid var(--ink); }
  .engine-scores li { height: 52px; border-bottom-color: var(--rule); font-size: 15px; }
  .eng-right { gap: 16px; }
  .eng-count { font-size: 14px; }
  .eng-bar { width: 96px; }

  /* The worst wrong answer, its fix and Send to IT: one card. */
  .sc-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 34px 0 0;
    padding: 44px;
    border: 1px solid var(--edge);
    box-shadow: var(--shadow-big);
  }
  .sc-worst-block {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 0;
    border: 0;
  }
  .sc-worst-label { letter-spacing: 0.16em; }
  .sc-worst { margin: 0; font-size: 32px; font-weight: 300; line-height: 1.28; letter-spacing: -0.015em; }
  .sc-lines { display: flex; }
  .sc-fix-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid var(--rule);
  }
  .sc-fix-label { display: block; margin: 0; letter-spacing: 0.16em; }
  .sc-fix { color: var(--ink); font-size: 17px; line-height: 1.55; }
  .sc-fix strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .sc-fix-page { display: block; font-size: 13px; }
  .sc-fix-page a { color: var(--grey); }
  .sc-fix-page a:hover { color: var(--green); }
  .sc-go { margin-top: 6px; }
  .sc-go .btn { width: 240px; min-width: 0; min-height: 56px; }
  .sc-go-meta { display: inline; }

  .sc-links { margin-top: 28px; font-size: 14px; }
  .sc-footer { max-width: 640px; margin-top: 28px; font-size: 12px; line-height: 1.6; }

  .sc-paragraph { max-width: 720px; margin-top: 96px; font-size: 18px; }
  .score-ask { max-width: 720px; }
  .score-ask-note,
  .score-ask-saved { max-width: 720px; }

  .sc-all-answers { max-width: 720px; }
  .view-answers .sc-all-answers { margin-right: auto; margin-left: auto; }
  .view-answers .example-banner { max-width: 720px; margin-right: auto; margin-left: auto; }  /* over the answers column */
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .lockup-engine { transform: none; }
}

/* --- security, privacy, terms (the trust pack, 30 Sep): like How it works ------------------ */

.trust-updated { margin-bottom: 1.4rem; }

.trust-list {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-item {
  position: relative;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

.trust-item:last-child { border-bottom: 1px solid var(--rule); }

.trust-num {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.trust-h {
  font-size: clamp(1.25rem, 3.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.trust-item p,
.trust-bullets li {
  color: var(--grey-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
}

.trust-item p { margin: 0.75rem 0 0; }

.trust-bullets {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.1rem;
}

.trust-bullets li + li { margin-top: 0.4rem; }

.trust-item a { color: var(--ink); }
.trust-item a:hover { color: var(--green); }

.trust-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.trust-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.trust-table th,
.trust-table td {
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--rule-row);
  text-align: left;
  vertical-align: top;
}

.trust-table thead th {
  color: var(--grey);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-table tbody th { font-weight: 500; }
.trust-table td { color: var(--grey-body); font-weight: 300; }

/* --- the FAQ (/faq, founder, 30 Sep): five groups of native details rows, no script ----------- */

.faq-updated { margin-bottom: 1.4rem; }

.faq-group { margin-top: 3.5rem; }

.faq-label {
  margin-bottom: 0.9rem;
  color: var(--grey);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.faq-q { border-top: 1px solid var(--rule); }
.faq-q:last-child { border-bottom: 1px solid var(--rule); }

.faq-q summary {
  display: block;
  position: relative;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  font-size: 18px; /* founder, 1 Oct: the questions 18px SemiBold, the answers 16px Regular */
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
}

.faq-q summary::-webkit-details-marker { display: none; }

/* A thin +, two 1px lines, centred on the question's first line. Open, the upright line goes: −. */
.faq-sign {
  position: absolute;
  top: calc(20px + (1.4em - 13px) / 2);
  right: 0;
  width: 13px;
  height: 13px;
}

.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.faq-sign::before { top: 6px; left: 0; width: 13px; height: 1px; }
.faq-sign::after { top: 0; left: 6px; width: 1px; height: 13px; transition: transform 200ms ease; }

.faq-q[open] .faq-sign::after { transform: scaleY(0); }

.faq-q summary:hover .faq-sign::before,
.faq-q summary:hover .faq-sign::after { background: var(--green); }

.faq-a {
  max-width: 680px;
  padding: 0 0 24px;
}

.faq-a p {
  color: var(--grey-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.faq-more {
  margin-top: 3.5rem;
  color: var(--grey-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.faq-a a,
.faq-more a { color: var(--ink); }

.faq-a a:hover,
.faq-more a:hover { color: var(--green); }

/* How it works, on the homepage and on /how-it-works: one line to the FAQ. */
.how-faq {
  margin-top: 48px;
  color: var(--grey-body);
  font-size: 16px;
  line-height: 1.6;
}

.steps + .how-faq { margin-top: 8px; }

/* The footer's Security · Privacy · Terms. */
.foot-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-dot { color: var(--grey-dot); }

/* A demo school: a small, quiet label next to its name. */
.demo-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 2px 6px;
  border: 1px solid var(--edge);
  color: var(--grey);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.eyebrow .demo-tag { margin-left: 0.4rem; letter-spacing: 0.06em; }

/* A pending claim, a request, or an older claim waiting for review: one clear line. */
.waiting {
  margin: 1rem 0 0;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 2px solid var(--green);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.ask-access {
  margin: 1rem 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.ask-access a { color: var(--green); }

.signin-safe {
  margin-top: 2rem;
  font-size: 14px;
}

.signin-safe a { color: var(--ink); }
.signin-safe a:hover { color: var(--green); }

/* Staff: access requests. */
.staff-access { margin: 1rem 0 0; padding: 0; list-style: none; }
.staff-access-row { padding: 1rem 0; border-bottom: 1px solid var(--rule-row); }
.staff-access-row p { margin: 0 0 0.75rem; font-size: 15px; line-height: 1.5; }
.staff-decide { display: inline-block; margin-right: 0.75rem; }
.staff-access .staff-email { font-weight: 500; }

/* Send to IT while a claim is pending or a request waits, and every form on the made-up example school: shown, but off. */
.btn.is-off,
.btn.is-off:hover,
.btn-line.is-off,
.btn-line.is-off:hover {
  border-color: var(--field);
  background: var(--paper);
  color: var(--grey);
  cursor: not-allowed;
}

/* --- monitoring (P3 locked panel), pricing (P4), billing (P7) -------------------------------------- */

/* One calm panel where a free school's locked items would be: a rule above, the line, one action. */
.locked {
  margin-top: 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--rule);
}

.locked-line {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.5;
}

.locked .btn,
.locked-form { margin-top: 16px; }

.locked-note {
  margin-top: 12px;
  color: var(--grey-body);
  font-size: 15px;
  line-height: 1.5;
}

.free-checked {
  margin-top: 16px;
  color: var(--grey-body);
  font-size: 14px;
  line-height: 1.5;
}

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 2.5rem;
}

.plan {
  padding: 24px 0 0;
  border-top: 1px solid var(--ink);
}

.plan-name {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.plan-price {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.plan-price-unit {
  color: var(--grey-body);
  font-size: 15px;
  letter-spacing: 0;
}

.plan-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--grey-body);
  font-size: 16px;
  line-height: 1.6;
}

.plan-list li { padding: 6px 0; border-bottom: 1px solid var(--rule); }

.plan-action { margin-top: 24px; }

.plan-action .paste { margin-top: 0; }

.pricing-note {
  margin-top: 2.5rem;
  color: var(--grey-body);
  font-size: 15px;
  line-height: 1.55;
}

@media (min-width: 760px) {
  .plans { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* Monthly / Yearly (founder, 6 Oct): a square switch, the brand's green square as its knob. No script:
   the checkbox comes right before the block it changes; the parts marked .is-yearly show when it is on. */
.bill-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
}

.bill-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  font-size: 15px;
}

.bill-word { color: var(--grey); transition: color 0.2s ease; }
.bill-word-month { color: var(--ink); font-weight: 500; }

.bill-switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 26px;
  border: 1px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: background 0.2s ease;
}

.bill-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background: var(--ink);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

.bill-save {
  padding: 3px 8px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.bill-input:checked + .bill-toggle .bill-switch::after { transform: translateX(22px); background: var(--green); }
.bill-input:checked + .bill-toggle .bill-switch { border-color: var(--green); }
.bill-input:checked + .bill-toggle .bill-word-month { color: var(--grey); font-weight: 400; }
.bill-input:checked + .bill-toggle .bill-word-year { color: var(--ink); font-weight: 500; }
.bill-input:focus-visible + .bill-toggle .bill-switch { outline: 2px solid var(--green); outline-offset: 3px; }

.bill-input:not(:checked) ~ * .is-yearly,
.bill-input:checked ~ * .is-monthly { display: none; }

.plan-price-sub {
  margin-top: 6px;
  color: var(--grey-body);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .bill-switch, .bill-switch::after, .bill-word { transition: none; }
}

.billing-status {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 300;
}

.billing-test {
  margin-top: 0.75rem;
  color: var(--grey-body);
  font-size: 14px;
}

.people {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.people li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}

.people-email { overflow-wrap: anywhere; }

.people-meta { color: var(--grey-body); font-size: 14px; }

/* --- the photo hero (founder, 5 Oct) ------------------------------------------------------------------ */
/* A parent and a student looking at colleges, under a black gradient: the eyebrow, the headline and the form, in white.
   The photo fills the hero; the gradient is darkest where the words are (the top on a phone, the left from 1100px).
   The work-email form sits under the headline; the paragraph is in the white section below (.home-lede). */
.home-hero.is-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-content: flex-end;
  min-height: 460px;
  padding-top: 64px;
  padding-bottom: 56px;
  background: var(--ink);
  color: #ffffff;
}

.home-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 30%;
}

.home-hero.is-photo::before { /* the black over the photo */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.25) 100%);
}

.home-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.home-hero.is-photo .home-eyebrow,
.home-hero.is-photo .home-eyebrow.is-green { color: #ffffff; }
.home-hero.is-photo .lockup { color: #ffffff; }
.home-hero.is-photo .lockup-mark { filter: brightness(0) invert(1); } /* every engine's mark in white */

/* The work-email form on the photo: a white field, the green button, the small lines in light grey. */
.home-hero.is-photo .paste .input { border-color: #ffffff; background: #ffffff; color: var(--ink); }
.home-hero.is-photo .start-note,
.home-hero.is-photo .home-for,
.home-hero.is-photo .signed-out { color: rgba(255, 255, 255, 0.78); } /* 10:1 on the black */
.home-hero.is-photo .flash { color: #ffffff; }
.home-hero.is-photo .paste:focus-within,
.home-hero.is-photo .btn:focus-visible { outline-color: #ffffff; }

/* The paragraph, on white under the engines strip. */
.home-lede {
  display: flex;
  justify-content: center;
  padding: 44px var(--gutter) 48px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.home-lede .home-sub { margin-top: 0; }

@media (min-width: 720px) {
  .home-hero.is-photo { min-height: 560px; padding-top: 96px; padding-bottom: 88px; }
  .home-hero.is-photo .paste { border-color: #ffffff; }
  .home-lede { padding-top: 64px; padding-bottom: 68px; }
  .home-lede .home-sub { font-size: 22px; max-width: 860px; }
}

@media (min-width: 1100px) {
  .home-hero.is-photo {
    align-items: stretch;
    justify-content: center;
    min-height: 640px;
    padding-top: 104px;
    padding-bottom: 104px;
    text-align: left;
  }
  .home-hero-photo { object-position: 50% 42%; } /* the whole scene: laptop, both faces, the notebook */
  .home-hero.is-photo::before { /* darkest under the words on the left, clear over the people on the right */
    background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(0, 0, 0, 0.86) 28%,
      rgba(0, 0, 0, 0.55) 46%,
      rgba(0, 0, 0, 0.15) 66%,
      rgba(0, 0, 0, 0) 85%);
  }
  .home-hero-inner {
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
  }
  .home-hero.is-photo .lockup { max-width: 640px; font-size: 76px; }
  .home-hero.is-photo .lockup-engine { justify-content: flex-start; }

  .home-hero.is-photo .paste,
  .home-hero.is-photo .start-note { max-width: 560px; }
  .home-hero.is-photo .start-note { text-align: left; }

  .home-lede {
    justify-content: flex-start;
    padding: 72px max(var(--gutter), calc((100% - 1200px) / 2));
    text-align: left;
  }
  .home-lede .home-sub { max-width: 900px; font-size: 24px; }
}

/* --- the tour inside the homepage frame (founder, 5 Oct: "the cards are extremely small") ----------------------- */
/* The homepage shows the demo page 1440px wide, shrunk to fit its frame (about 0.64 on a laptop), so a normal card
   reads at about 9px there. Inside the frame on a wide screen the card is 1.5 times larger, so it reads at its normal
   size. Everywhere else (the real page, phones) it stays 1. The script reads --tz for the card's width. */
@media (min-width: 1200px) {
  .is-embed .tour { --tz: 1.5; }
  .is-embed .tour-mail-frame { height: min(calc(340px * var(--tz)), 48vh); } /* the email, larger (?big=1), shows more */
}

/* --- the engines strip under the hero (founder, 5 Oct) ---------------------------------------------------------- */
/* The AIs we check, as their wordmarks, all in one grey, on white between the photo hero and the paragraph. Static.
   Google's two: a plain sparkle and the name in our type, the same grey (founder, 7 Oct).
   A phone: the label, then two by two. A tablet: three by two. Wide: the label left, all six spread on one line. */
.home-engines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--rule);
}

.home-engines-label {
  color: var(--grey);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.home-engines-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  align-items: center;
  justify-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-engine-logo {
  display: block;
  width: auto;
  height: 22px;
  filter: grayscale(1) brightness(0.35); /* one grey for all four */
  opacity: 0.75;
}

.home-engine-logo.is-chatgpt,
.home-engine-logo.is-perplexity { height: 21px; } /* their letters sit larger in the file: matched by eye */

.home-engine-text {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--grey); /* the logos' grey */
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.home-engine-spark {
  display: block;
  flex: none;
  width: 12px;
  height: 12px;
  filter: brightness(0) opacity(0.64); /* the text's grey, #5c5c5c */
}

@media (min-width: 720px) {
  .home-engines-row { grid-template-columns: repeat(3, auto); gap: 28px 56px; }
  .home-engine-logo { height: 26px; }
  .home-engine-logo.is-chatgpt,
  .home-engine-logo.is-perplexity { height: 25px; }
  .home-engine-text { font-size: 20px; }
  .home-engine-spark { width: 16px; height: 16px; }
}

@media (min-width: 1100px) {
  .home-engines {
    flex-direction: row;
    justify-content: space-between;
    gap: 48px;
    max-width: none;
    padding: 30px max(var(--gutter), calc((100% - 1200px) / 2));
  }
  .home-engines-label { text-align: left; }
  .home-engines-row { display: flex; flex: 1; justify-content: space-between; gap: 32px; }
  .home-engine-logo { height: 22px; }
  .home-engine-logo.is-chatgpt,
  .home-engine-logo.is-perplexity { height: 21px; }
  .home-engine-text { font-size: 17px; }
  .home-engine-spark { width: 14px; height: 14px; }
}

/* --- the first check, while it runs (founder, 6 Oct) ------------------------------------------
   Each AI waiting, asking or done; the school's own questions typing out; one green progress line.
   Stored rows only: the page asks /sites/<id>/progress every 3 seconds, then fades into the Scorecard. */
.fc-wrap { max-width: calc(1200px + 2 * var(--gutter)); }

.fc {
  display: grid;
  grid-template-areas: "head" "card" "body";
  gap: 40px;
  padding: 56px 0 96px;
  transition: opacity 0.8s ease;
}

.fc.is-finished { opacity: 0.35; }

.fc-head { grid-area: head; }
.fc-card { grid-area: card; }
.fc-body { grid-area: body; }

.fc-title {
  margin-top: 14px;
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.fc-lead {
  max-width: 34rem;
  margin-top: 20px;
  color: var(--grey-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
}

/* What a parent types: a quiet card, the question large and light, a green caret. */
.fc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  padding: 40px 36px;
  background: var(--paper);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-big);
  overflow: hidden;
}

.fc-card::before {
  /* one slow green line along the top: work is happening */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 2px;
  background: var(--green);
  animation: fc-sweep 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.fc-card-label {
  position: absolute;
  top: 28px;
  left: 36px;
  color: var(--grey);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fc-typed {
  min-height: 3.6em;
  margin-top: 28px;
  color: var(--ink);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 1.22;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fc-typed.is-leaving { opacity: 0; transform: translateY(-6px); }

.fc-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--green);
  animation: fc-blink 1s steps(1) infinite;
}

.fc-asked {
  margin-top: 18px;
  color: var(--grey);
  font-size: 13px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fc-asked.is-shown { opacity: 1; transform: none; }

/* Each AI: the name, its state, and a thin line that sweeps while it asks and fills green when done. */
.fc-engines {
  list-style: none;
  border-top: 1px solid var(--ink);
}

.fc-engine {
  display: grid;
  grid-template-columns: 1fr auto 72px;
  align-items: center;
  gap: 16px;
  height: 48px;
  border-bottom: 1px solid var(--rule-row);
  font-size: 15px;
  transition: color 0.4s ease;
}

.fc-engine-name { white-space: nowrap; }

.fc-engine-state {
  color: var(--grey);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.fc-engine.is-waiting .fc-engine-name { color: var(--grey); }
.fc-engine.is-asking .fc-engine-state { color: var(--ink); font-weight: 500; }
.fc-engine.is-done .fc-engine-state::after { content: " ✓"; color: var(--green); }

.fc-engine-bar {
  position: relative;
  display: block;
  height: 2px;
  background: var(--bar);
  overflow: hidden;
}

.fc-engine-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--green);
  transition: width 0.7s ease;
}

.fc-engine.is-asking .fc-engine-fill {
  width: 45%;
  animation: fc-sweep 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.fc-engine.is-done .fc-engine-fill { width: 100%; }

/* The whole check: one line, steps under it, then the reassurance. */
.fc-progress {
  position: relative;
  height: 2px;
  margin-top: 40px;
  background: var(--bar);
}

.fc-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2%;
  background: var(--green);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-progress-fill::after {
  /* the brand's green square at the moving end, softly glowing */
  content: "";
  position: absolute;
  top: -3px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 138, 0, 0.14);
  animation: fc-glow 1.8s ease-in-out infinite;
}

.fc-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 18px;
  list-style: none;
  color: var(--grey-note);
  font-size: 13px;
}

.fc-steps .is-now { color: var(--ink); font-weight: 500; }
.fc-steps .is-done { color: var(--grey); }
.fc-steps .is-done::before { content: "✓ "; color: var(--green); }

.fc-note {
  max-width: 36rem;
  margin-top: 28px;
  color: var(--grey-body);
  font-size: 14px;
  line-height: 1.55;
}

@keyframes fc-sweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

@keyframes fc-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes fc-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 138, 0, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(0, 138, 0, 0.04); }
}

@media (min-width: 960px) {
  .fc {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas: "head card" "body card";
    column-gap: 80px;
    row-gap: 36px;
    align-items: start;
    padding-top: 40px;
  }
  .fc-card { min-height: 380px; position: sticky; top: 100px; }
  .fc-engine { height: 44px; }
  .fc-progress { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .fc-card::before,
  .fc-caret,
  .fc-progress-fill::after,
  .fc-engine.is-asking .fc-engine-fill { animation: none; }
  .fc-typed, .fc-asked, .fc-progress-fill, .fc-engine-fill, .fc { transition: none; }
}

/* --- Progress and the report card (PRD §4.8; founder, 7 Oct) ------------------------------------------------------
   Under the Scorecard's first screen: four tiles (first check → now), the share of answers right at each check, what
   each change did, and what one added student is worth. The report card is the same, on one printable page. */
.progress {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.view-answers .progress { display: none; }

.pg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.pg-title {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.pg-since {
  color: var(--grey);
  font-size: 14px;
}

.pg-label {
  color: var(--grey);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pg-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pg-tile {
  padding: 16px 0 18px;
  border-top: 1px solid var(--rule-list);
}

.pg-big {
  margin-top: 8px;
  line-height: 1;
}

.pg-num {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.pg-of {
  color: var(--grey-body);
  font-size: 14px;
}

.pg-was {
  margin-top: 8px;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.4;
}

.pg-up {
  color: var(--green-deep);
  font-weight: 500;
}

.pg-down {
  color: var(--red);
  font-weight: 500;
}

.pg-chart { margin: 26px 0 0; }

.pg-plot {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: 160px auto;
  column-gap: 10px;
  margin-top: 12px;
}

.pg-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--grey);
  font-size: 11px;
  line-height: 14px;
  text-align: right;
}

.pg-svg {
  display: block;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 160px;
  overflow: visible;
}

.pg-grid {
  stroke: var(--rule);
  stroke-width: 1;
}

.pg-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
}

.pg-mark {
  stroke: var(--green);
  stroke-width: 8;
  stroke-linecap: square;
}

.pg-mark.is-last { stroke-width: 11; }

.pg-x {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--grey);
  font-size: 11px;
}

.pg-engines {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
  font-size: 14px;
}

.pg-engines caption {
  margin-bottom: 8px;
  text-align: left;
}

.pg-engines th,
.pg-engines td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--rule-list);
  font-weight: 400;
  text-align: left;
}

.pg-engines thead th {
  color: var(--grey);
  font-size: 12px;
}

.pg-changes-block { margin-top: 28px; }

.pg-changes {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.pg-change {
  padding: 12px 0;
  border-top: 1px solid var(--rule-list);
}

.pg-ch-head { font-size: 15px; }

.pg-ch-page { font-weight: 500; }

.pg-ch-url {
  margin-left: 6px;
  color: var(--grey);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.pg-ch-line {
  margin-top: 3px;
  color: var(--grey-body);
  font-size: 15px;
}

.pg-change.is-fixed .pg-ch-line { color: var(--ink); }

.pg-ch-sent {
  margin-top: 3px;
  color: var(--grey);
  font-size: 13px;
}

.pg-worth {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 2px solid var(--green);
  background: var(--tour-tint);
}

.pg-worth-line {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
}

.pg-note {
  margin-top: 6px;
  color: var(--grey);
  font-size: 13px;
}

.pg-report-link,
.pg-locked {
  margin-top: 18px;
  font-size: 15px;
}

.pg-locked { color: var(--grey-body); }

@media (min-width: 900px) {
  .pg-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pg-plot { grid-template-rows: 190px auto; }
  .pg-svg { height: 190px; }
}

.report-wrap { max-width: calc(960px + 2 * var(--gutter)); }

.report { padding: 30px 0 52px; }

.report-brand {
  display: none; /* on paper only: the page's own header says BeSure on screen */
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
}

.report-brand-mark {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--green);
}

.report-title {
  margin-top: 6px;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.report-range {
  margin-top: 8px;
  color: var(--grey);
  font-size: 15px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 18px;
}

.progress.is-report { margin-top: 28px; }

.report-foot {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--grey-note);
  font-size: 12px;
}

.report-track {
  margin-top: 24px;
  color: var(--grey);
  font-size: 14px;
}

/* The report card on paper: the page only, four tiles across, nothing split over two pages. */
@media print {
  @page { size: letter; margin: 0.5in; }
  .report-page .top,
  .report-page .foot,
  .report-page .report-actions { display: none; }
  .report-page .wrap { max-width: none; padding: 0; }
  .report-page .example-banner { margin: 0 0 6px; font-size: 10px; }
  .report { padding: 0; }
  .report-brand { display: flex; margin-bottom: 4px; font-size: 10px; }
  .report-title { margin-top: 0; font-size: 22px; }
  .report-range { margin-top: 4px; font-size: 12px; }
  .progress.is-report { margin-top: 10px; padding-top: 10px; }
  .report .pg-title { font-size: 18px; }
  .report .pg-since { font-size: 11px; }
  .report .pg-label { font-size: 9px; }
  .report .pg-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 6px; }
  .report .pg-tile { padding: 8px 0; }
  .report .pg-num { font-size: 28px; }
  .report .pg-of, .report .pg-was { font-size: 11px; }
  .report .pg-chart { margin-top: 10px; }
  .report .pg-plot { grid-template-rows: 56px auto; margin-top: 4px; }
  .report .pg-svg { height: 56px; }
  .report .pg-engines { margin-top: 8px; font-size: 11px; line-height: 1.25; }
  .report .pg-engines th, .report .pg-engines td { padding: 2px 8px 2px 0; }
  .report .pg-engines thead th { font-size: 10px; }
  .report .pg-changes-block { margin-top: 10px; }
  .report .pg-changes { columns: 2; column-gap: 28px; }
  .report .pg-change { padding: 4px 0; }
  .report .pg-ch-head, .report .pg-ch-line { font-size: 12px; }
  .report .pg-ch-url, .report .pg-ch-sent { font-size: 10px; }
  .report .pg-worth { margin-top: 10px; padding: 6px 12px; }
  .report .pg-worth-line { margin-top: 3px; font-size: 12px; }
  .report .pg-note { font-size: 10px; }
  .report-foot { margin-top: 8px; padding-top: 6px; font-size: 9px; }
  .report-track { margin-top: 6px; font-size: 11px; }
  .report .pg-sub { font-size: 11px; font-weight: 500; letter-spacing: 0; }
  .report .pg-rivals { margin-top: 12px; }
  .report .pg-rivals-lead { margin-top: 2px; font-size: 11px; }
  .report .pg-rival-table { margin-top: 4px; font-size: 11px; line-height: 1.25; }
  .report .pg-rival-table th, .report .pg-rival-table td { padding: 2px 8px 2px 0; }
  .report .pg-rival-table thead th { font-size: 9px; }
  .report .pg-rival:nth-child(n+4) { display: none; } /* on paper, the top three */
  .report .pg-rivals .pg-note { margin-top: 4px; }
  .report .pg-tile,
  .report .pg-change,
  .report .pg-worth,
  .report .pg-engines tr { break-inside: avoid; }
}

/* --- Caught for you on What to change (PRD §4.9; founder, 7 Oct) --------------------------------------------------
   New figures to confirm (green edge), changes to put back (black edge: Wrong is black), then what was caught. */
.caught {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.caught-title {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.caught-lead {
  margin-top: 6px;
  color: var(--grey-body);
  font-size: 15px;
  line-height: 1.5;
}

.caught-card {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 2px solid var(--green);
  background: var(--tour-tint);
}

.caught-card.is-undone {
  border-left-color: var(--ink);
  background: var(--band);
}

.caught-new {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.5;
}

.caught-text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.caught-was,
.caught-src {
  margin-top: 6px;
  color: var(--grey-body);
  font-size: 14px;
}

.caught-was-label { color: var(--grey); }

.caught-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.caught-card .new-text { margin-top: 10px; }

.caught-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.caught-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule-list);
  font-size: 15px;
  line-height: 1.5;
}

.caught-day {
  color: var(--grey);
  font-size: 13px;
  line-height: 1.7;
}

.caught-line { overflow-wrap: anywhere; }

.caught-none {
  margin-top: 14px;
  color: var(--grey-body);
  font-size: 15px;
}

/* --- Acts on your behalf (PRD §4.10; founder, 7 Oct): named instead of you, sites feeding wrong answers --------- */
.pg-rivals { margin-top: 28px; }

/* Learns from its results (PRD §4.11): how changes like this one did; the answer checked again at her word. */
.change-worked {
  margin-top: 6px;
  color: var(--green-deep);
  font-size: 13px;
}

.sc-a-dispute {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 10px;
}

.sc-a-dispute .input {
  flex: 1 1 220px;
  min-width: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 14px;
}

.pg-rivals-lead {
  margin-top: 4px;
  color: var(--grey-body);
  font-size: 14px;
}

.pg-rival-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 15px;
}

.pg-rival-table th,
.pg-rival-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule-list);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}

.pg-rival-table thead th {
  color: var(--grey);
  font-size: 12px;
  line-height: 1.35;
}

.pg-rival-table td,
.pg-rival-table thead th + th { width: 22%; text-align: right; }
.pg-rival-table thead th:last-child,
.pg-rival-table td:last-child { padding-right: 0; }

.pg-rival-now { font-weight: 500; }
.pg-rival-now.pg-up { color: var(--green-deep); }
.pg-rival-now.pg-down { color: var(--red); }
.pg-rival-first { color: var(--grey); }

.track,
.sources-feed {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.caught-card.is-source {
  border-left-color: var(--ink);
  background: var(--band);
}

.source-draft {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--box);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
}

.source-line { overflow-wrap: anywhere; }
.source-gap { height: 10px; }

/* How BeSure's changes perform (PRD §4.11): the cross-school track record on What to change. */
.track .trust-table-wrap { margin-top: 16px; }
.track .pg-note { margin-top: 10px; }
.track-fixed { white-space: nowrap; }

/* --- Type system (founder and chief creative officer, 9 Oct) ------------------------------------------------------
   Six sizes, so the eye can tell a section from a subhead from a label from the text:
   eyebrow 12 · body 16 · lead 18 · subhead 22 · section title 32 (26 on a phone) · page title 44 to 56.
   Section titles SemiBold, subheads and the big homepage headings Medium, body Regular; never 700.
   Each section on a product page opens with a black rule and room above it. */
:root {
  --t-eyebrow: 12px;
  --t-body: 16px;
  --t-lead: 18px;
  --t-sub: 22px;
  --t-section: 32px;
}

/* Eyebrows: the start of a section, in green. Inline labels (a tile, a field) stay grey, one size up. */
.eyebrow,
.home-eyebrow,
.faq-label {
  color: var(--green);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.16em;
}

.pg-label,
.change-label,
.read-label,
.fc-card-label,
.trust-table thead th {
  font-size: var(--t-eyebrow);
}

/* The example's note: small print, with room under it before the school's name. */
.example-banner {
  margin: 0 0 20px;
  color: var(--grey-note);
  font-size: 13px;
  line-height: 1.5;
}

/* Section titles. */
.pg-title,
.caught-title,
.changes-title,
.fold-title,
.answers-title {
  font-size: var(--t-section);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Subheads: a part of a section. */
.pg-sub,
.expect-title {
  color: var(--ink);
  font-size: var(--t-sub);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-transform: none;
}

/* Leads: the one line under a section title. */
.caught-lead,
.correct-intro,
.pg-rivals-lead {
  margin-top: 10px;
  color: var(--grey-body);
  font-size: var(--t-lead);
  line-height: 1.5;
}

.pg-since { font-size: 15px; }

/* Each section opens with a black rule and room above it, so the sections read as separate parts. */
.progress,
.caught,
.sources-feed,
.track,
.changes-more,
.fold {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}

.fold-facts { margin-top: 80px; }

.pg-chart,
.pg-changes-block,
.pg-rivals,
.pg-worth,
.pg-engines { margin-top: 48px; }

.pg-sub + * { margin-top: 12px; }

/* The big homepage headings: Medium, so they lead without shouting. */
.home-h2,
.home-cta-title,
.home-step-name,
.home-trust-title {
  font-weight: 500;
}

@media (max-width: 600px) {
  .pg-title,
  .caught-title,
  .changes-title,
  .fold-title,
  .answers-title { font-size: 26px; }
  .pg-sub,
  .expect-title { font-size: 20px; }
  .caught-lead,
  .correct-intro,
  .pg-rivals-lead { font-size: 17px; }
  .progress,
  .caught,
  .sources-feed,
  .track,
  .changes-more,
  .fold,
  .fold-facts { margin-top: 56px; padding-top: 24px; }
  .pg-chart,
  .pg-changes-block,
  .pg-rivals,
  .pg-worth,
  .pg-engines { margin-top: 36px; }
}

/* "Fix this first" (founder, 9 Oct): the one answer to fix first, in the Wrong red. */
.eyebrow.sc-worst-label {
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.1; /* a size up, same height: the first screen still fits a phone (375x667) */
}

.home-mock-label.is-first { color: var(--red); }

/* --- Charts and numbers (job 2; founder and chief creative officer, 9 Oct) ----------------------------------------
   Big numbers; the change since the first check as a small tinted tag (green up, red down); a pale green ground
   under the share line, and today's share beside its title; each AI as two bars; each change with its state tag:
   green Fixed, amber Waiting, grey Replaced, red Taken off the page. Amber means Waiting and nothing else. */
.pg-num {
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.035em;
}

.pg-big { margin-top: 10px; }
.pg-of { font-size: 15px; }
.pg-was { margin-top: 10px; }

.pg-chip {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pg-chip.is-up { color: var(--green-deep); background: var(--tour-tint); box-shadow: inset 0 0 0 1px var(--tour-edge); }
.pg-chip.is-down { color: var(--red); background: var(--red-tint); }

.pg-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}

.pg-chart-now { color: var(--grey); font-size: 14px; }

.pg-chart-pct {
  margin-right: 6px;
  color: var(--green-deep);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pg-area { fill: var(--tour-tint); stroke: none; }
.pg-svg { height: 200px; }
.pg-plot { grid-template-rows: 200px auto; }
.pg-line { stroke-width: 2.5; }

.pg-eng-bars { width: 32%; }
.pg-eng-svg { display: block; width: 100%; height: 12px; }
.pg-eng-track { fill: var(--rule-row); }
.pg-eng-first { fill: var(--grey-dot); }
.pg-eng-now { fill: var(--green); }

.pg-key { white-space: nowrap; }
.pg-key::before {
  display: inline-block;
  width: 10px;
  height: 4px;
  margin-right: 5px;
  vertical-align: middle;
  content: "";
}
.pg-key.is-first::before { background: var(--grey-dot); }
.pg-key.is-now { margin-left: 10px; }
.pg-key.is-now::before { background: var(--green); }

.pg-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  vertical-align: 1px;
  white-space: nowrap;
}

.pg-tag.is-fixed { color: var(--green-deep); background: var(--tour-tint); box-shadow: inset 0 0 0 1px var(--tour-edge); }
.pg-tag.is-waiting { color: var(--amber); background: var(--amber-tint); }
.pg-tag.is-replaced { color: var(--grey); background: var(--band); box-shadow: inset 0 0 0 1px var(--rule); }
.pg-tag.is-undone { color: var(--red); background: var(--red-tint); }

@media (max-width: 600px) {
  .pg-num { font-size: 44px; }
  .pg-svg { height: 160px; }
  .pg-plot { grid-template-rows: 160px auto; }
  .pg-chart-pct { font-size: 24px; }
  .pg-ch-head .pg-tag { display: table; margin: 0 0 6px; } /* on a phone the tag sits over the page's name */
}

@media (min-width: 720px) {
  .pg-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media print {
  .report .pg-num { font-size: 28px; }
  .report .pg-chip, .report .pg-tag { padding: 0 4px; font-size: 9px; line-height: 13px; }
  .report .pg-chart-pct { font-size: 14px; }
  .report .pg-chart-now { font-size: 10px; }
  .report .pg-svg { height: 56px; }
  .report .pg-plot { grid-template-rows: 56px auto; }
  .report .pg-eng-svg { height: 8px; }
  .report .pg-key { font-size: 8px; }
  .report .pg-ch-url { display: none; } /* on paper, the page's name is enough */
  .report .pg-change { padding: 3px 0; }
  .report .pg-engines th, .report .pg-engines td { padding: 1px 8px 1px 0; }
  .report .pg-tile { padding: 6px 0; }
  .report .pg-was { margin-top: 4px; }
}

.pg-area { fill: var(--tour-edge); fill-opacity: 0.55; }

/* --- The demo, wider (founder, 9 Oct: "the screen is so small") -------------------------------------------------
   The ten steps run in a row above the screen; the screen takes the page's full width, so the page inside it is
   about a third larger. On a phone the row scrolls sideways and the screen stays edge to edge. */
.demo-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }

.demo-steps {
  display: flex;
  flex-direction: row;
  gap: 0;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: thin;
}

.demo-steps > li { flex: 0 0 128px; }

.demo-step {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  height: 100%;
  padding: 12px 12px 14px;
  border-left: 0;
  border-top: 3px solid var(--rule);
}

.demo-step.is-on { border-top-color: var(--green); }

.demo-step-num { flex: none; }

.demo-step-title { font-size: 14px; line-height: 1.3; }

.demo-actions { margin-top: 0; padding-left: 0; }

@media (min-width: 720px) {
  .demo-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}

@media (min-width: 1100px) {
  .demo { gap: 40px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .demo-steps { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .demo-step { padding: 12px 10px 14px; }
  .demo-step-title { font-size: 14px; }
}

/* "Watch the 2-minute tour" under the paragraph below the hero. */
.home-lede-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
}

.home-lede-free { color: var(--grey-body); font-size: 15px; }
.home-lede { flex-direction: column; align-items: center; }
.home-lede-actions { justify-content: center; }
@media (min-width: 1100px) {
  .home-lede { align-items: flex-start; }
  .home-lede-actions { justify-content: flex-start; }
}
