/* AI Score by Bevy Commerce. Follows the design language of https://www.bevycommerce.com/ (context/017):
   black and white with light-grey bands, Inter (Manrope for eyebrow labels), light large headings with tight
   tracking, pill buttons, hairline-separated lists, and teal (#008080) as the only accent.
   Score colors (good/average/poor) are kept for meaning. Text colors meet WCAG AA (tests/test_style.py). */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --black: #000000;
  --white: #ffffff;
  --surface: #f6f6f6;
  --text: #000000;
  --text-muted: #5c5b63;
  --line: #e1e2e4;
  --on-dark: #ffffff;
  --on-dark-muted: #a5a4ac;
  --line-dark: #2b2b2e;
  --teal: #008080;
  --teal-light: #3fb5b5;

  /* Score colors: *-text for text on light backgrounds, *-bg for tinted badges, *-bright for use on black. */
  --good: #1a9a5c;
  --good-text: #11794a;
  --good-bg: #e3f2ea;
  --good-bright: #3ecf8e;
  --average: #d07a12;
  --average-text: #9a4f00;
  --average-bg: #fbeedd;
  --average-bright: #f5a623;
  --poor: #c93a3a;
  --poor-text: #b8282b;
  --poor-bg: #fbe7e7;
  --poor-bright: #ff6b6b;
  --na-text: #55545c;
  --na-bg: #ececef;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-label: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --tracking: -0.035em;
  --gutter: 40px;
}

* { box-sizing: border-box; }
/* Author display rules (grid, flex, block) would otherwise override the hidden attribute. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--text);
  background: var(--white); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: var(--tracking); line-height: 1.05; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.band-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--teal-light); }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 18px; border-radius: 40px;
  background: var(--white); color: var(--black); text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Labels and pills ------------------------------------------------------- */
.eyebrow { font-family: var(--font-label); font-size: 22px; line-height: 1.3; color: var(--text); margin-bottom: 16px; }
.band-dark .eyebrow { color: var(--on-dark); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px;
  border: 1px solid currentColor; border-radius: 40px; font: inherit; font-size: 17px; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.pill-on-dark { color: var(--on-dark); background: transparent; border-color: var(--on-dark); }
.pill-on-dark:hover { background: var(--on-dark); color: var(--black); }
.pill-solid { color: var(--black); background: var(--white); border-color: var(--white); font-weight: 500; }
.pill-solid:hover { background: #e7e7ea; border-color: #e7e7ea; }
.pill-solid:disabled { opacity: 0.75; cursor: progress; }
.pill-large { min-height: 58px; padding: 0 36px; font-size: 19px; }
/* Bevy's call-to-action pills end in an arrow that nudges forward on hover. */
.pill-arrow { gap: 10px; }
.arrow-icon { flex: none; transition: transform 0.15s; }
.pill-arrow:hover .arrow-icon { transform: translateX(3px); }
.pill-solid:disabled .arrow-icon { display: none; }
.pill-dark { color: var(--white); background: var(--black); border-color: var(--black); font-weight: 500; }
.pill-dark:hover { background: var(--line-dark); border-color: var(--line-dark); }
.pill-dark:disabled { opacity: 0.75; cursor: progress; }
.pill-dark:disabled .arrow-icon { display: none; }

.tag {
  display: inline-block; padding: 4px 14px; border-radius: 40px; background: var(--surface); color: var(--text-muted);
  font-size: 14px; line-height: 1.4; text-decoration: none;
}
.band-light .tag { background: var(--white); }
a.tag:hover { color: var(--text); text-decoration: underline; }

/* Header ------------------------------------------------------------------ */
.site-header { background: var(--black); color: var(--on-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand-bevy { display: flex; }
.bevy-logo { display: block; width: 96px; height: auto; }
.brand-divider { width: 1px; height: 28px; background: var(--line-dark); }
.brand-product { font-family: var(--font-label); font-size: 22px; font-weight: 500; color: var(--on-dark); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.header-nav { display: flex; align-items: center; gap: 32px; }
.nav-link { color: var(--on-dark); text-decoration: none; font-size: 17px; }
.nav-link:hover { text-decoration: underline; }

/* Bands ------------------------------------------------------------------- */
.band { padding: 96px 0; }
.band-dark { background: var(--black); color: var(--on-dark); }
.band-light { background: var(--surface); }
.band-white { background: var(--white); }

.section-head { max-width: 860px; margin-bottom: 48px; }
.section-head h2, .split-head h2, .category-header h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.section-lede { margin-top: 20px; font-size: 19px; color: var(--text-muted); max-width: 760px; }
.section-lede strong, .prose strong { color: var(--text); font-weight: 500; }

/* Home: hero --------------------------------------------------------------- */
.hero { padding: 72px 0 120px; }
.hero-short { padding-bottom: 96px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.125rem); line-height: 1; max-width: 15ch; }
.lede { margin-top: 28px; max-width: 780px; font-size: 21px; line-height: 1.6; letter-spacing: -0.02em; color: #d9d8de; }
.lede strong { color: var(--on-dark); font-weight: 500; }

/* The home hero: copy and form on the left, an example report on the right, and a row of numbers below. */
.hero-home { padding-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 72px; align-items: center; }
.hero-home h1 { font-size: clamp(2.6rem, 5.4vw, 4.75rem); }
.hero-points {
  list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px;
  color: var(--on-dark-muted); font-size: 16px;
}
.hero-points li { display: inline-flex; align-items: center; gap: 10px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-light); }

.hero-sample { padding: 28px; border: 1px solid var(--line-dark); border-radius: 12px; background: #0d0d0f; }
.sample-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; }
.sample-label { flex: none; font-family: var(--font-label); font-weight: 500; color: var(--on-dark); }
.sample-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--on-dark-muted); }
.sample-score { display: flex; align-items: center; gap: 24px; margin: 24px 0; }
.sample-title { font-size: 30px; line-height: 1.1; letter-spacing: var(--tracking); }
.sample-score .score-word { margin-top: 6px; font-size: 17px; }
.sample-categories {
  list-style: none; margin: 0; padding: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px;
  border-top: 1px solid var(--line-dark);
}
.sample-categories li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.3; }
.sample-fix {
  display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line-dark); font-size: 14px;
}
.sample-fix-label { flex: none; font-family: var(--font-label); color: var(--on-dark-muted); }
.sample-fix-title { flex: 1; min-width: 0; }
.sample-fix-gain { flex: none; color: var(--good-bright); font-weight: 600; }

.stats {
  list-style: none; margin: 88px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.stats li { padding: 36px 32px 80px; }
.stats li:first-child { padding-left: 0; }
.stats li:last-child { padding-right: 0; }
.stats li + li { border-left: 1px solid var(--line-dark); }
.stat-number { display: block; font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1; letter-spacing: var(--tracking); }
.stat-label { display: block; margin-top: 14px; max-width: 24ch; color: var(--on-dark-muted); font-size: 16px; line-height: 1.45; }
.hero-link { margin-top: 24px; }
.hero-link a { color: var(--on-dark); }

/* Scan form */
.scan-form { display: flex; gap: 12px; margin-top: 40px; max-width: 860px; }
.scan-form input {
  flex: 1; min-width: 0; height: 62px; padding: 0 28px; border-radius: 40px; border: 1px solid #5a5960;
  background: transparent; color: var(--on-dark); font: inherit; font-size: 18px;
}
.scan-form input::placeholder { color: #8e8d94; }
.scan-form input:focus { outline: none; border-color: var(--on-dark); box-shadow: 0 0 0 3px rgba(63, 181, 181, 0.45); }
.scan-form button { height: 62px; padding: 0 36px; font-size: 18px; }
.scan-form-compact { margin-top: 0; max-width: none; }
.scan-form-compact input, .scan-form-compact button { height: 50px; font-size: 16px; }
/* While a scan runs (app.js): a spinner in the button, a bar sliding under the form, and a seconds counter. */
.scanning { max-width: 860px; margin-top: 14px; }
.scan-form-compact + .scanning { max-width: none; }
.scan-progress { position: relative; display: block; height: 3px; overflow: hidden; border-radius: 3px; background: var(--line-dark); }
.scan-progress span {
  position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: 3px; background: var(--teal-light);
  animation: slide 1.4s ease-in-out infinite;
}
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.scanning-note { margin-top: 12px; color: var(--on-dark-muted); }
.scanning-elapsed { font-variant-numeric: tabular-nums; }
.spinner-inline { display: none; width: 18px; height: 18px; border-width: 2px; }
button:disabled .spinner-inline { display: block; }
.pill-dark .spinner-inline { border-color: #3a3a3f; border-top-color: var(--teal-light); }
.form-error {
  margin-top: 16px; max-width: 860px; padding: 14px 20px; border-radius: 6px; color: #ffb4b4;
  background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.5);
}

/* Home: steps, numbered list, split sections, FAQ, CTA ------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { padding-top: 28px; border-top: 1px solid var(--line); }
.step-number { font-family: var(--font-label); font-size: 18px; color: var(--teal); }
.steps h3 { margin-top: 24px; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.steps p { margin-top: 12px; max-width: 36ch; color: var(--text-muted); }

.numbered-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.numbered-list li { display: grid; grid-template-columns: 1fr auto; gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); }
.numbered-list h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.numbered-list p { margin-top: 8px; color: var(--text-muted); max-width: 720px; }
.numbered-main .tag { margin-top: 14px; }
.numbered-index { font-size: 22px; color: var(--text-muted); letter-spacing: -0.02em; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.prose p { font-size: 21px; line-height: 1.6; letter-spacing: -0.02em; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { padding: 28px 0; border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.faq-item p { margin-top: 10px; color: var(--text-muted); }
@media (min-width: 961px) {
  .faq .split-head { position: sticky; top: 48px; }  /* stays beside the long list of questions */
}

.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); max-width: 17ch; }

/* Report: summary ---------------------------------------------------------- */
.report-hero { padding: 40px 0 0; }
.notice {
  margin-top: 28px; padding: 16px 22px; border-radius: 6px; color: #fde3b5;
  background: rgba(245, 166, 35, 0.1); border: 1px solid rgba(245, 166, 35, 0.55);
}
.notice strong { color: var(--on-dark); }
.summary { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: center; margin-top: 56px; }
/* min-width: 0 lets the column shrink below a long unbroken URL instead of pushing the thumbnail off-screen. */
.summary-text { min-width: 0; }
.summary-score { display: flex; flex-direction: column; align-items: center; }
.score-word { margin-top: 12px; font-family: var(--font-label); font-size: 20px; color: var(--on-dark-muted); }
.score-word.band-good { color: var(--good-bright); }
.score-word.band-average { color: var(--average-bright); }
.score-word.band-poor { color: var(--poor-bright); }
.summary-text h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.scanned-url { margin-top: 14px; font-size: 18px; word-break: break-all; }
/* A long URL (tracking parameters, say) is cut to two lines, so it doesn't push the counts and the email form
   down; the link and its title have all of it (context/039). The padding keeps the focus ring inside the clip. */
.scanned-url, .scan-redirect {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  padding: 4px; margin-left: -4px; margin-right: -4px;
}
.scan-redirect { word-break: break-all; }
.scanned-url a { color: var(--on-dark); text-decoration-color: var(--teal-light); }
.scan-meta { margin-top: 6px; color: var(--on-dark-muted); font-size: 16px; overflow-wrap: anywhere; }
.legend {
  list-style: none; margin: 0; padding: 18px 0 24px; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 22px; font-size: 14px; border-top: 1px solid var(--line-dark);
}
.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: currentColor; }
.legend .band-good { color: var(--good-bright); }
.legend .band-good::before { border-radius: 50%; }
.legend .band-average { color: var(--average-bright); }
.legend .band-poor { color: var(--poor-bright); }
.legend .band-poor::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.category-scores {
  display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 64px;
  border-top: 1px solid var(--line-dark);
}
.category-score {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 12px 36px;
  color: var(--on-dark); text-decoration: none; text-align: center; font-size: 15px; line-height: 1.35;
}
.category-score + .category-score { border-left: 1px solid var(--line-dark); }
.category-score:hover { background: #111113; }
.category-issues { margin-top: -6px; color: var(--on-dark-muted); font-size: 14px; }

/* Check counts by status ("▲ 3 failed ■ 2 to improve ● 18 passed"), in the summary and each category. */
.status-counts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 16px; }
.status-counts li { display: inline-flex; align-items: center; gap: 8px; }
.status-counts .status-icon { width: 10px; height: 10px; }
.band-dark .status-pass .status-icon { background: var(--good-bright); }
.band-dark .status-warn .status-icon { background: var(--average-bright); }
.band-dark .status-fail .status-icon { background: var(--poor-bright); }

/* Gauges: rings on black (summary band), with the score number in white. */
.gauge { position: relative; flex: none; }
.gauge svg { width: 100%; height: 100%; display: block; }
.gauge-track { fill: none; stroke: var(--line-dark); stroke-width: 8; }
.gauge-value { fill: none; stroke-width: 8; stroke-linecap: round; stroke: var(--on-dark-muted); }
.gauge-number {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-dark);
  font-variant-numeric: tabular-nums; letter-spacing: -0.04em;
}
.gauge-lg { width: 200px; height: 200px; }
.gauge-lg .gauge-number { font-size: 68px; }
.gauge-md { width: 112px; height: 112px; }
.gauge-md .gauge-number { font-size: 38px; }
.gauge-xs { width: 40px; height: 40px; }
.gauge-xs .gauge-number { font-size: 14px; letter-spacing: -0.02em; }
.gauge-xs .gauge-track, .gauge-xs .gauge-value { stroke-width: 11; }
.gauge-sm { width: 76px; height: 76px; }
.gauge-sm .gauge-number { font-size: 24px; }
.gauge.band-good .gauge-value { stroke: var(--good-bright); }
.gauge.band-average .gauge-value { stroke: var(--average-bright); }
.gauge.band-poor .gauge-value { stroke: var(--poor-bright); }
.gauge.band-na .gauge-number { color: var(--on-dark-muted); }

/* Report: top fixes ----------------------------------------------------------- */
.fix-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.fix-list li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 24px; align-items: start;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.fix-number { font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; color: var(--text-muted); }
.fix-title { display: flex; align-items: flex-start; gap: 12px; }
.fix-title .status-icon { margin-top: 10px; }
.fix-title a { font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; text-decoration: none; }
.fix-title a:hover { text-decoration: underline; }
.fix-main > p + p { margin-top: 8px; padding-left: 24px; max-width: 820px; color: var(--text-muted); }
.fix-main .tag { margin: 14px 0 0 24px; }
.gain { text-align: right; color: var(--good-text); white-space: nowrap; }
.gain-number { display: block; font-size: 40px; line-height: 1; letter-spacing: var(--tracking); }
.gain-label { display: block; margin-top: 6px; font-size: 14px; }

/* Report: email-gated teaser (context/020) ------------------------------------ */
.fix-title .fix-name { font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.fix-list-teaser { border-bottom: 0; }
/* The email card sits over a blurred decoy made of empty shapes. The rest of the report is never sent to the
   browser, so there's nothing behind the blur to reveal. */
.locked-area { display: grid; align-items: start; }
.locked-area > * { grid-area: 1 / 1; }
.locked-decoy {
  filter: blur(6px); user-select: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
  mask-image: linear-gradient(to bottom, #000 50%, transparent);
}
.decoy-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 72px; gap: 24px; padding: 32px 0;
  border-top: 1px solid var(--line);
}
.decoy-number { width: 30px; height: 22px; border-radius: 6px; background: var(--line); }
.decoy-lines { display: grid; gap: 12px; justify-items: start; }
.decoy-line { display: block; height: 14px; border-radius: 7px; background: #d7d7db; }
.decoy-title { height: 24px; border-radius: 12px; background: #b4b4ba; }
.decoy-w40 { width: 40%; } .decoy-w48 { width: 48%; } .decoy-w55 { width: 55%; } .decoy-w62 { width: 62%; }
.decoy-w70 { width: 70%; } .decoy-w75 { width: 75%; } .decoy-w80 { width: 80%; } .decoy-w88 { width: 88%; }
.decoy-w92 { width: 92%; }
.decoy-tag { width: 130px; height: 30px; margin-top: 6px; border-radius: 40px; background: var(--na-bg); }
.decoy-gain { justify-self: end; width: 60px; height: 44px; border-radius: 10px; background: var(--good-bg); }

/* The email card sits straight under the summary, so the form is on screen without scrolling: the pitch on
   the left and the form on the right on wide screens, stacked on narrow ones. */
.report-hero-gated .summary { margin-top: 32px; }
.email-card {
  scroll-margin-top: 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 20px 48px; align-items: start;
  margin-top: 24px; padding: 24px 36px 26px; color: var(--text); background: var(--white); border-radius: 16px;
}
.email-card h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; }
.email-pitch p, .email-sent p { margin-top: 10px; color: var(--text-muted); }
.email-pitch strong, .email-sent strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.email-sent { grid-column: 1 / -1; }
.email-sent h2:focus { outline: none; }
.email-sent-head { display: flex; align-items: center; gap: 14px; }
.sent-check { flex: none; width: 40px; height: 40px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sent-check-ring { stroke: var(--teal); stroke-width: 2; }
.sent-check-mark { stroke: var(--teal); stroke-width: 3; }

/* Sending, then switching to "Check Your Inbox" (app.js): the form fades out, the card eases to its new height,
   and the confirmation fades up while its check mark draws itself. */
.email-card > * { transition: opacity 0.18s ease, transform 0.18s ease; }
.email-card.is-leaving > * { opacity: 0; transform: translateY(-6px); }
.email-card.is-resizing { overflow: hidden; }
.email-card.is-entering > * { animation: email-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.email-card.is-entering > .email-action { animation-delay: 0.06s; }
.email-card.is-entering .sent-check-ring { animation: draw 0.5s ease-out 0.1s both; }
.email-card.is-entering .sent-check-mark { animation: draw 0.35s ease-out 0.45s both; }
.email-card .form-error:not([hidden]) { animation: email-in 0.25s ease-out both; }
@keyframes email-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
.email-card :focus-visible { outline-color: var(--teal); }
/* Pages to scan next, in the "Check Your Inbox" card (context/034): hairline-divided rows, each with its kind,
   its title and path, and what scanning it adds. */
.next-pages { margin-top: 24px; }
.next-pages h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.next-pages ul { margin: 12px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.next-pages li {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 24px; padding: 16px 0;
  border-top: 1px solid var(--line);
}
.next-page-kind { font-family: var(--font-label); font-size: 15px; line-height: 1.6; color: var(--teal); }
.next-page-body { display: grid; gap: 2px; justify-items: start; }
.next-pages a {
  font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--text); overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px;
}
.next-pages a:hover { text-decoration-color: currentColor; }
.next-page-path { font-size: 14px; color: var(--text-muted); overflow-wrap: anywhere; }
.next-page-reason { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.email-sent-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.email-sent-actions a, .link-button { color: var(--text); }
.link-button {
  padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.email-form { display: flex; flex-wrap: wrap; gap: 10px; }
/* Wide enough to show a whole address before it's sent (context/039): where the row can't fit 300px and the
   button, the button goes under the field. */
.email-form input {
  flex: 1 1 300px; min-width: 0; height: 54px; padding: 0 22px; font: inherit; font-size: 17px; color: var(--text);
  background: var(--white); border: 1px solid #8e8d94; border-radius: 40px;
}
.email-form input::placeholder { color: #6b6a72; }
.email-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.25); }
.email-form button { flex: none; height: 54px; font-size: 17px; }
.email-card .form-error { margin-top: 12px; color: var(--poor-text); background: var(--poor-bg); border-color: #efb3b4; }
/* What the email job is doing while the visitor waits for Mailgun to accept the email (context/038, 045): its step,
   a progress bar, a seconds counter, and after a while a way to skip the screenshots. It doesn't fade in, because
   without JavaScript the page reloads every few seconds and it would fade in each time. */
.email-progress { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--text); }
.email-progress-elapsed { color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.email-progress [tabindex="-1"]:focus { outline: none; }
.email-progress .progress-bar { margin-top: 8px; }
.email-skip { margin-top: 10px; font-size: 14px; }
.email-skip .link-button { color: var(--text-muted); }
.email-skip .link-button:hover { color: var(--text); }
.email-note { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.email-note a { color: var(--text-muted); white-space: nowrap; }
.email-note a:hover { color: var(--text); }

/* Over the decoy: what the full report adds, and a link up to the form. */
.locked-cta {
  position: relative; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 20px;
  width: min(100%, 520px); margin-top: 56px; padding: 32px; text-align: center; background: var(--white);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
}
.locked-cta p { font-size: 19px; line-height: 1.45; letter-spacing: -0.01em; }
.locked-cta strong { font-weight: 600; overflow-wrap: anywhere; }

/* Phones: a bar at the bottom of the screen that links up to the form while it's below the fold (app.js). */
.email-jump-bar {
  position: fixed; z-index: 20; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px;
  border-radius: 40px; color: var(--white); background: var(--teal); font-size: 17px; font-weight: 500;
  text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.email-jump-bar .arrow-icon { transform: rotate(90deg); }

/* Report: categories and checks --------------------------------------------- */
.category-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.category .status-counts { margin: 16px 0 0; color: var(--text-muted); }
.category-note { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 500; }
.category-note.status-na { color: var(--text-muted); font-weight: 400; }
/* A category with nothing to fix is a shorter band, so a clean report doesn't read as empty space. */
.category-quiet { padding: 72px 0; }
.check-lists { margin-top: 36px; border-top: 1px solid var(--line); }
.score-badge {
  flex: none; padding: 8px 20px; border-radius: 40px; font-size: 22px; font-weight: 500;
  font-variant-numeric: tabular-nums; background: var(--na-bg); color: var(--na-text);
}
.score-badge.band-good { background: var(--good-bg); color: var(--good-text); }
.score-badge.band-average { background: var(--average-bg); color: var(--average-text); }
.score-badge.band-poor { background: var(--poor-bg); color: var(--poor-text); }

.check { border-bottom: 1px solid var(--line); }
.check summary { display: flex; align-items: center; gap: 14px; padding: 20px 0; cursor: pointer; list-style: none; }
.check summary::-webkit-details-marker { display: none; }
.check summary::after { content: "+"; margin-left: auto; font-size: 24px; line-height: 1; color: var(--text-muted); }
.check[open] summary::after { content: "−"; }
.check-title { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.check-body { padding: 0 0 28px 28px; color: var(--text-muted); font-size: 16px; }
.check-body p { margin-top: 12px; }
.check-body strong { color: var(--text); font-weight: 600; }
.check-details { margin: 0; padding-left: 18px; color: var(--text); overflow-wrap: anywhere; }
.check-group > summary {
  display: flex; align-items: center; gap: 14px; padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font-label); font-size: 18px; color: var(--text-muted); border-bottom: 1px solid var(--line);
}
.check-group > summary::-webkit-details-marker { display: none; }
.check-group > summary::after { content: "+"; margin-left: auto; font-size: 24px; line-height: 1; color: var(--text-muted); }
.check-group[open] > summary::after { content: "−"; }
.check-group .check { padding-left: 26px; }

/* Status icons: shape as well as color, for color-blind readers. */
.status-icon { flex: none; width: 12px; height: 12px; background: var(--na-text); }
.status-pass .status-icon { background: var(--good); border-radius: 50%; }
.status-warn .status-icon { background: var(--average); }
.status-fail .status-icon { background: var(--poor); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.status-na .status-icon { background: transparent; border: 2px solid var(--na-text); border-radius: 50%; }

/* Code evidence */
.evidence { margin: 16px 0 0; }
.evidence figcaption { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.evidence pre {
  margin: 0; padding: 10px 0; overflow-x: auto; background: var(--white); border: 1px solid var(--line);
  border-radius: 6px; font-size: 13.5px; line-height: 1.55;
}
.evidence code { font-family: var(--font-mono); color: var(--text); }
.code-line { display: block; padding-right: 14px; white-space: pre; }
.code-line.highlight { background: var(--poor-bg); box-shadow: inset 3px 0 0 var(--poor); }
.line-number {
  display: inline-block; min-width: 3.6em; padding-right: 12px; margin-right: 12px; text-align: right;
  color: #6b6a72; border-right: 1px solid var(--line); user-select: none;
}
.line-number:empty::before { content: "\00a0"; } /* keeps the gutter line on unnumbered lines */

/* Screenshots ---------------------------------------------------------------------- */
.view-compare-wrap { margin-top: 36px; }
.shot-status { margin: 0 0 14px; color: var(--text-muted); font-size: 16px; }
.view-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.view-compare figure, .shot-crop { margin: 0; }
.view-compare figcaption { font-family: var(--font-label); font-size: 18px; margin-bottom: 10px; }
.view-compare figcaption span { font-family: var(--font-body); color: var(--text-muted); font-size: 15px; margin-left: 8px; }
.shot {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--white); cursor: zoom-in; color: inherit;
}
.shot:disabled, .summary-shot:disabled { cursor: progress; opacity: 1; }
.shot img { display: block; width: 100%; height: auto; }
.view-compare .shot img { max-height: 460px; object-fit: cover; object-position: top; }
.shot-note { margin-top: 14px; color: var(--text-muted); font-size: 15px; max-width: 880px; }
.shot-slot { margin-top: 14px; }
.shot-crops-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.shot-crop { margin-bottom: 12px; }
.shot-crop figcaption { font-size: 13px; margin-top: 6px; }
/* Up to 320px wide on desktop, keeping its shape, so it stays shorter than the score and summary columns and
   the email form doesn't move (context/021). Tablets and phones keep 170px (see the 960px breakpoint). */
.summary-shot {
  width: clamp(240px, 23vw, 320px); padding: 0; border: 1px solid var(--line-dark); border-radius: 6px; overflow: hidden;
  background: #0d0d0f; cursor: zoom-in; color: var(--on-dark-muted);
}
.summary-shot img { display: block; width: 100%; height: auto; aspect-ratio: 24 / 17; object-fit: cover; object-position: top; }

.shot-pending {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 260px; padding: 16px; color: var(--text-muted); font-size: 15px; text-align: center;
  background: linear-gradient(100deg, #eeeef0 30%, #f8f8f9 50%, #eeeef0 70%); background-size: 300% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
.summary-shot .shot-pending {
  min-height: 0; aspect-ratio: 24 / 17; font-size: 13px; color: var(--on-dark-muted);
  background: linear-gradient(100deg, #151517 30%, #232327 50%, #151517 70%); background-size: 300% 100%;
}
.shot-pending-small { flex-direction: row; justify-content: flex-start; min-height: 0; padding: 12px 14px; border-radius: 6px; }
.shot-pending-text { font-weight: 600; }
.shot-elapsed { font-size: 13px; font-variant-numeric: tabular-nums; }
.shot-pending-done { animation: none; background: var(--na-bg); }
.summary-shot .shot-pending-done { background: #151517; }
.shot-pending-done .spinner { display: none; }
.spinner {
  width: 24px; height: 24px; flex: none; border: 3px solid #d5d6db; border-top-color: var(--teal);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
.summary-shot .spinner { border-color: #3a3a3f; border-top-color: var(--teal-light); }
.shot-pending-small .spinner { width: 16px; height: 16px; border-width: 2px; }
/* A job's progress (context/045): the part its current step covers fills, easing forward while the step lasts
   (app.js, stepProgress). A native <progress>, styled through each engine's own pseudo-elements. */
.progress-bar {
  display: block; width: 100%; height: 4px; border: 0; border-radius: 4px; overflow: hidden;
  -webkit-appearance: none; appearance: none; background: var(--line); color: var(--teal);
}
.progress-bar::-webkit-progress-bar { background: var(--line); border-radius: 4px; }
.progress-bar::-webkit-progress-value { background: var(--teal); border-radius: 4px; transition: width 0.5s linear; }
.progress-bar::-moz-progress-bar { background: var(--teal); border-radius: 4px; }
.shot-pending .progress-bar { width: min(240px, 70%); }
.summary-shot .progress-bar, .summary-shot .progress-bar::-webkit-progress-bar { background: var(--line-dark); }
.summary-shot .progress-bar::-webkit-progress-value { background: var(--teal-light); }
.summary-shot .progress-bar::-moz-progress-bar { background: var(--teal-light); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.lightbox {
  padding: 0; border: 0; border-radius: 6px; max-width: min(1280px, 95vw); max-height: 92vh; overflow: auto;
  overscroll-behavior: contain; background: var(--white);
}
/* While the screenshot is open, the report behind it doesn't scroll (context/039). */
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.8); }
.lightbox img { display: block; max-width: 100%; height: auto; }
/* A zero-height sticky bar, so the close button floats over the screenshot instead of sitting above it. */
.lightbox form { position: sticky; top: 0; z-index: 1; height: 0; display: flex; justify-content: flex-end; }
.lightbox-close {
  flex: none; margin: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--black); color: var(--white); font-size: 1.4rem; cursor: pointer;
}

/* Footer --------------------------------------------------------------------------- */
.site-footer { background: var(--black); color: var(--on-dark-muted); padding-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 48px; }
.footer-logo .bevy-logo { width: 121px; }
.footer-tagline { margin-top: 32px; max-width: 340px; font-size: 18px; line-height: 1.6; letter-spacing: -0.02em; }
.footer-tagline strong { color: var(--on-dark); font-weight: 500; }
.social { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 12px; }
.social a { display: block; width: 40px; height: 40px; border-radius: 50%; }
.social a:hover svg circle, .social a:hover svg rect { stroke: var(--on-dark); }
.footer-heading { font-size: 22px; color: var(--on-dark); letter-spacing: -0.02em; margin-bottom: 26px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 18px; }
.footer-col a, .legal a { color: var(--on-dark-muted); text-decoration: none; }
.footer-col a:hover, .legal a:hover { color: var(--on-dark); }
.footer-cta p:not(.footer-heading) { margin-bottom: 24px; max-width: 320px; }
/* Hairlines drawn as backgrounds on .wrap elements, so they span the content width and not the side padding.
   A page that ends on a black band gets one above the footer too, or the two would run together. */
.footer-bottom, main:has(> .band-dark:last-child) + .site-footer .footer-grid {
  background: linear-gradient(var(--line-dark), var(--line-dark)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
main:has(> .band-dark:last-child) + .site-footer { padding-top: 0; }
main:has(> .band-dark:last-child) + .site-footer .footer-grid { padding-top: 96px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 72px; padding-top: 28px; padding-bottom: 40px; font-size: 16px;
}
.legal { list-style: none; margin: 0; padding: 0; display: flex; }
.legal li + li { margin-left: 20px; padding-left: 20px; border-left: 1px solid #3a3a3f; }

/* Small screens ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-sample { display: none; }
  .hero-home h1 { font-size: clamp(2.6rem, 6.4vw, 5.125rem); }
}
@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li { padding: 28px 24px 44px; }
  .stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(even) { padding-right: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
  .steps { gap: 28px; }
  .summary { grid-template-columns: auto 1fr; }
  /* Tablets: the full width under the summary, so it doesn't leave an empty space beside it (context/039). */
  .summary-shot { grid-column: 1 / -1; width: 100%; }
  .summary-shot img, .summary-shot .shot-pending { aspect-ratio: auto; height: 200px; }
  .email-card { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .category-scores { grid-template-columns: repeat(3, 1fr); }
  .category-score:nth-child(4) { border-left: 0; }
  .category-score:nth-child(n + 4) { border-top: 1px solid var(--line-dark); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .band { padding: 64px 0; }
  .hero { padding: 40px 0 72px; }
  .report-hero { padding-top: 24px; }
  .header-inner { min-height: 72px; }
  .nav-link { display: none; }
  .bevy-logo { width: 72px; }
  .brand { gap: 12px; }
  .brand-product { font-size: 18px; }
  .header-nav .pill { min-height: 40px; padding: 0 16px; font-size: 15px; }
  .eyebrow { font-size: 18px; }
  .lede, .prose p { font-size: 18px; }
  .scan-form { flex-direction: column; }
  /* flex: 1 would size the input along the column (its height) instead of its width. */
  .scan-form input, .scan-form button { flex: none; height: 54px; }
  .summary { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .summary-shot { max-width: 420px; }
  .summary-shot img, .summary-shot .shot-pending { height: 170px; }
  .status-counts { justify-content: center; }
  .category .status-counts { justify-content: flex-start; }
  .category-issues { font-size: 12px; }
  .gauge-lg { width: 168px; height: 168px; }
  .gauge-lg .gauge-number { font-size: 56px; }
  .category-score { padding: 20px 6px 24px; font-size: 13px; }
  .gauge-sm { width: 60px; height: 60px; }
  .gauge-sm .gauge-number { font-size: 19px; }
  .fix-list li { grid-template-columns: 32px minmax(0, 1fr); gap: 10px 12px; padding: 26px 0; }
  .fix-number { font-size: 18px; }
  .fix-title a, .fix-title .fix-name { font-size: 19px; }
  .decoy-row { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 26px 0; }
  .decoy-gain { display: none; }
  .report-hero-gated .summary { margin-top: 32px; }
  .email-card { margin-top: 28px; padding: 24px 20px; border-radius: 12px; }
  .email-card h2 { font-size: 26px; }
  .email-form { flex-direction: column; }
  .email-form input, .email-form button { flex: none; }
  .next-pages li { grid-template-columns: minmax(0, 1fr); }
  .next-pages a { font-size: 17px; }
  .locked-cta { margin-top: 32px; padding: 24px 20px; }
  .locked-cta p { font-size: 17px; }
  .gain { grid-column: 2; display: flex; align-items: baseline; gap: 6px; padding-left: 24px; text-align: left; }
  .gain-number { font-size: 26px; }
  .gain-label { margin-top: 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 24px 0 32px; }
  .steps h3 { margin-top: 16px; font-size: 22px; }
  .stats { margin-top: 56px; }
  .stat-number { font-size: 2.6rem; }
  .hero-points { gap: 6px 20px; font-size: 15px; }
  .stat-label { font-size: 14px; }
  .category-quiet { padding: 56px 0; }
  .view-compare { grid-template-columns: 1fr; }
  .numbered-list li { gap: 16px; padding: 22px 0; }
  .numbered-list h3 { font-size: 21px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer { padding-top: 64px; }
  main:has(> .band-dark:last-child) + .site-footer .footer-grid { padding-top: 64px; }
}
/* The narrowest phones (320px): the header still fits on one line (context/039). */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .header-inner { gap: 12px; }
  .bevy-logo { width: 60px; }
  .brand { gap: 10px; }
  .brand-product { font-size: 16px; }
  .header-nav .pill { padding: 0 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .shot-pending, .spinner { animation: none; }
  .progress-bar::-webkit-progress-value { transition: none; }
  .email-card > *, .email-card.is-entering > *, .email-card .form-error:not([hidden]),
  .email-card.is-entering .sent-check-ring, .email-card.is-entering .sent-check-mark { transition: none; animation: none; }
  .scan-progress span { animation: none; width: 100%; opacity: 0.35; }  /* the seconds counter still ticks */
  .pill, .arrow-icon { transition: none; }
}
