/* Crimson SAT research read-outs. Same tokens as the landing page: Source Serif 4 + Instrument Sans, crimson, maroon, ink, gold. */
:root {
  --white: #FFFFFF;
  --mist: #F3F2F3;
  --ink: #141012;
  --ink-2: #1E181B;
  --maroon: #3A0407;
  --maroon-2: #4E080D;
  --crimson: #B3182F;
  --crimson-hover: #941226;
  --red-bright: #FF5247;
  --gold: #FBBC04;
  --text: #19141A;
  --text-2: #4B4448;
  --line: #E1DEE0;
  --on-dark: #FFFFFF;
  --on-dark-2: #D9D2D4;
  --grey-bar: #C9C3C6;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 7vw, 96px);
  --radius: 12px;
  --crimson-deep: linear-gradient(150deg, #B3182F 0%, #8A1124 55%, #560A12 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--sans); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
cite { font-style: normal; }
a { color: var(--crimson); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; text-wrap: balance; font-optical-sizing: auto; }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; }
.hero :focus-visible, .dark :focus-visible, .topbar :focus-visible { outline-color: var(--white); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; text-decoration: none; color: var(--white); display: inline-flex; align-items: center; gap: 10px; }
.wordmark::before { content: ""; width: 12px; height: 12px; background: var(--crimson); border-radius: 2px; transform: rotate(45deg); }
.tabs { display: flex; gap: 4px; }
.tabs a { color: var(--on-dark-2); text-decoration: none; font-size: .9rem; font-weight: 600; padding: 8px 12px; border-radius: 7px; white-space: nowrap; }
.tabs a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.tabs a[aria-current="page"] { color: var(--white); background: var(--crimson); }

/* Cover */
.hero { position: relative; isolation: isolate; background: var(--ink); color: var(--on-dark); padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30,6,10,.96) 0%, rgba(40,6,11,.93) 56%, rgba(46,7,12,.82) 68%, rgba(48,7,13,.4) 84%, rgba(48,7,13,.1) 100%); }
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.35; color: #FFD3CE; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; max-width: 17ch; margin-bottom: 22px; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .lede { font-size: 1.2rem; line-height: 1.5; color: var(--on-dark-2); max-width: 56ch; margin-bottom: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; max-width: 760px; }
.hero-stat { border-top: 1px solid rgba(255,255,255,.28); padding-top: 14px; }
.hero-stat b { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: 8px; }
.hero-stat span { display: block; font-size: .9375rem; line-height: 1.4; color: var(--on-dark-2); }
.meta { max-width: 56ch; margin-top: 28px; font-size: .9rem; color: var(--on-dark-2); }

/* Sections */
.section { padding: var(--section) 0; }
.section.mist { background: var(--mist); }
.section.dark { background: var(--maroon); color: var(--on-dark); background-image: linear-gradient(150deg, #4E080D 0%, #3A0407 60%, #240205 100%); }
.section.crimson { background: var(--crimson-deep); color: var(--white); }
.kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--crimson); margin-bottom: 12px; }
.dark .kicker, .crimson .kicker { color: #FFB3AB; }
.h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px; max-width: 24ch; }
.section-lede { font-size: 1.125rem; color: var(--text-2); max-width: 62ch; margin-bottom: 32px; }
.dark .section-lede, .crimson .section-lede { color: var(--on-dark-2); }
.hl { color: var(--crimson); }
.note { font-size: .9375rem; color: var(--text-2); max-width: 70ch; }
.dark .note { color: var(--on-dark-2); }

/* Prose block */
.prose p { max-width: 64ch; }
.prose p.big { font-size: 1.25rem; line-height: 1.55; }
.callout { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; max-width: 64ch; }
.callout p:last-child { margin-bottom: 0; }

/* Bar charts: one series, zero baseline, direct labels */
.chart { margin: 0; }
.chart figcaption { font-size: .9375rem; color: var(--text-2); margin-top: 14px; max-width: 70ch; }
.chart-title { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1.2; margin-bottom: 4px; }
.chart-sub { font-size: .9375rem; color: var(--text-2); margin-bottom: 18px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) 84px; align-items: center; gap: 14px; }
.bar-label { font-size: .9688rem; font-weight: 600; line-height: 1.25; }
.bar-label small { display: block; font-weight: 400; font-size: .8125rem; color: var(--text-2); }
.bar-track { height: 22px; }
.bar { height: 100%; border-radius: 0 4px 4px 0; background: var(--grey-bar); min-width: 4px; }
.bar.is-hot { background: var(--crimson); }
.bar-val { white-space: nowrap; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; text-align: left; font-variant-numeric: tabular-nums; }

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 8px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; color: var(--crimson); margin-bottom: 10px; }
.stat span { display: block; font-size: .9688rem; line-height: 1.45; color: var(--text); }

/* Table that becomes cards on a phone */
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); background: var(--mist); padding: 12px 14px; font-weight: 700; }
.tbl td { padding: 14px; vertical-align: top; border-top: 1px solid var(--line); line-height: 1.4; }
.tbl td:first-child { font-weight: 700; white-space: nowrap; }
.tbl-wrap { border-radius: var(--radius); }

/* Competitor accordions */
.comps { display: grid; gap: 10px; }
.comp { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.comp summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 22px; }
.comp summary::-webkit-details-marker { display: none; }
.comp-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.comp-promise { display: block; font-family: var(--sans); font-weight: 400; font-size: .9375rem; color: var(--text-2); margin-top: 2px; }
.chev { width: 28px; height: 28px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; transition: transform .2s ease, background-color .2s ease; }
.chev svg { width: 14px; height: 14px; }
.comp[open] .chev { transform: rotate(180deg); background: var(--crimson); color: var(--white); }
.comp-body { padding: 4px 22px 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
.comp-body h4 { margin: 0 0 4px; font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--crimson); font-weight: 700; }
.comp-body p { margin: 0; font-size: .9688rem; line-height: 1.5; }
.comp-body .wide { grid-column: 1 / -1; }

/* Email timeline dots */
.dots { display: grid; gap: 10px; }
.dot-row { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr); align-items: center; gap: 14px; }
.dot-row .pips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9375rem; color: var(--text-2); }
.pip { width: 18px; height: 18px; border-radius: 50%; background: var(--crimson); flex: none; }
.pip.empty { background: transparent; border: 2px dashed #B9B2B5; }

/* Move cards */
.moves { display: grid; gap: 16px; }
.move { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.tick { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--crimson); color: var(--white); margin-top: 2px; }
.tick svg { width: 18px; height: 18px; }
.move h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 8px; }
.move p { margin: 0 0 10px; font-size: 1rem; line-height: 1.55; }
.move .for-john { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9688rem; }
.move .for-john b { color: var(--crimson); }

/* Gap statements (dark) */
.gaps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gap-card { border-top: 2px solid var(--red-bright); padding-top: 18px; }
.gap-card h3 { font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 10px; }
.gap-card p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--on-dark-2); }

/* Review quotes */
.fear { margin-bottom: 52px; }
.fear:last-child { margin-bottom: 0; }
.fear-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: baseline; margin-bottom: 18px; }
.fear-n { font-family: var(--serif); font-weight: 800; font-size: 2.4rem; color: var(--crimson); line-height: 1; }
.fear-head h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -0.015em; }
.fear-head p { margin: 6px 0 0; font-size: 1rem; color: var(--text-2); max-width: 62ch; }
.rvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.rv { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.mist .rv { background: var(--white); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }
.stars .off { color: #DDD8DA; }
.rv blockquote { font-size: 1.0625rem; line-height: 1.5; color: var(--text); }
.rv blockquote::before { content: "\201C"; font-family: var(--serif); font-weight: 800; font-size: 1.6em; line-height: 0; color: var(--crimson); margin-right: 2px; vertical-align: -.25em; }
.rv cite { margin-top: auto; font-size: .8125rem; line-height: 1.35; color: var(--text-2); font-weight: 500; }
.rv cite b { color: var(--text); font-weight: 700; }

/* Checklist for John */
.asks { display: grid; gap: 12px; max-width: 640px; margin: 22px 0 8px; }
.asks li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.125rem; font-weight: 500; line-height: 1.4; }
.box { flex: none; width: 26px; height: 26px; border: 2px solid var(--white); border-radius: 6px; margin-top: 1px; }

/* Finding blocks for the read-out */
.finding { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.finding + .finding { margin-top: clamp(48px, 6vw, 80px); }
.finding h2 { margin-bottom: 14px; }
.finding p { max-width: 54ch; }
.finding .big-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.mist .finding .big-stat { background: var(--white); }
.finding .big-stat .bars { margin-top: 6px; }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark-2); padding: 40px 0; font-size: .9375rem; }
.footer a { color: var(--white); }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer .wordmark { font-size: 1.2rem; margin-bottom: 8px; }
.footer p { margin: 0 0 4px; }
.sources { font-size: .875rem; color: var(--text-2); max-width: 80ch; }
.sources a { word-break: break-word; }

/* Index cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--text); transition: border-color .18s ease, transform .18s ease; }
.card:hover { border-color: var(--crimson); transform: translateY(-2px); }
.card h2 { font-size: 1.6rem; line-height: 1.15; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 1rem; }
.card .go { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--crimson); display: inline-flex; align-items: center; gap: 8px; }

/* Phone */
@media (max-width: 860px) {
  .gaps { grid-template-columns: 1fr; }
  .finding { grid-template-columns: 1fr; }
  .comp-body { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .hero-stat { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: baseline; }
  .hero-stat b { margin: 0; }
  .tabs a { padding: 8px 9px; font-size: .82rem; }
  .wordmark { font-size: 1.2rem; }
  .hero::before { background: linear-gradient(180deg, rgba(30,6,10,.93) 0%, rgba(40,6,11,.9) 100%); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .tabs { width: 100%; overflow-x: auto; }
  .bar-row { grid-template-columns: minmax(0, 1fr) 54px; gap: 4px 10px; }
  .bar-label { grid-column: 1 / -1; }
  .bar-track { grid-column: 1; }
  .dot-row { grid-template-columns: 1fr; gap: 6px; }
  .move { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .fear-head { grid-template-columns: 1fr; gap: 4px; }
  .rvs { grid-template-columns: 1fr; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl { border: 0; background: none; }
  .tbl tr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0; }
  .tbl td { border: 0; padding: 6px 16px; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; white-space: normal !important; }
  .tbl td::before { content: attr(data-l); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); font-weight: 700; padding-top: 2px; }
  .tbl td:first-child { font-family: var(--serif); font-size: 1.2rem; display: block; padding-top: 12px; }
  .tbl td:first-child::before { content: none; }
}

/* Print / PDF */
@media print {
  @page { size: Letter; margin: 0; }
  html { scroll-behavior: auto; }
  body { font-size: 15px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topbar { position: static; }
  .tabs { display: none; }
  .hero, .footer { break-inside: auto; }
  .section { break-inside: avoid; }
  #each, #fears, #moves, #glance { break-inside: auto; }
  .kicker, .h2, .section-lede { break-after: avoid; }
  .section { padding: 40px 0; }
  .hero { padding: 48px 0 40px; }
  .comp, .move, .rv, .stat, .gap-card, .callout, .fear-head, .finding .big-stat, .tbl tr { break-inside: avoid; }
  .comp-body { display: grid; }
  h2, h3 { break-after: avoid; }
  .chev { display: none; }
  .wrap { max-width: none; padding: 0 44px; }
}

/* Dot grid: 109 inquiries, the strong students highlighted */
.waffle { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; max-width: 360px; margin: 18px 0 14px; }
.waffle span { aspect-ratio: 1; border-radius: 50%; background: var(--grey-bar); }
.waffle span.on { background: var(--crimson); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pair .stat b { font-size: 2.2rem; }
.pair .stat.dim b { color: var(--text-2); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .875rem; color: var(--text-2); margin-top: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--grey-bar); }
.legend i.hot { background: var(--crimson); }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }

/* Check lists (used on the dark "what I've changed" sections) */
.checks { display: grid; gap: 12px; margin-top: 24px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.5; font-size: 1.125rem; max-width: 70ch; }
.checks .tick { width: 26px; height: 26px; flex: none; margin-top: 1px; }
.checks .tick svg { width: 15px; height: 15px; }
.dark .checks .tick { background: var(--red-bright); color: var(--ink); }
.dark a { color: var(--white); }
.waffle.waffle-10 { grid-template-columns: repeat(10, 1fr); }
.gaps.changes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .gaps.changes { grid-template-columns: 1fr; } }

/* Ads and what I'd build */
.adgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; align-items: start; }
.ad img { width: 100%; max-width: 430px; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ad figcaption { margin-top: 12px; font-size: .9688rem; line-height: 1.5; max-width: 430px; }
.ad figcaption b { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; margin-bottom: 4px; }
.builds { display: grid; gap: 14px; margin-top: 28px; }
.build { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; }
.build h3 { font-size: 1.35rem; line-height: 1.2; margin-bottom: 6px; }
.build p { margin: 0 0 6px; font-size: 1rem; line-height: 1.5; max-width: 66ch; }
.build p b { color: var(--crimson); }
.stchip { font-size: .8125rem; font-weight: 700; line-height: 1; padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.stchip.done { background: #DDF0E6; color: #14543A; }
.stchip.coming { background: #FFF0C2; color: #6B4A00; }
.stchip.later { background: var(--mist); color: var(--text-2); }
@media (max-width: 640px) { .build { grid-template-columns: 1fr; padding: 18px; } }
