/* LaunchProof. Type-led editorial system: Newsreader for display, Instrument
   Sans for reading and UI. Cream ground (it matches the ground baked into the
   logo PNGs), navy ink, one orange accent for the paid action and the marks.
   Surfaces are separated by tone steps, not lines; only tables and form
   fields keep rules. Square corners throughout. */

:root {
  --chrome-offset: 80px;

  /* Ground and tone steps. Paper matches the logo PNGs. */
  --paper: #F4ECD9;
  --paper-2: #ECE2C9;
  --paper-3: #E3D6B8;
  --surface: #FBF7EE;
  --white: #FFFDF8;

  /* Ink */
  --ink: #132847;
  --ink-2: #2B3C58;
  --muted: #56637A;

  /* Inverted field */
  --navy: #132847;
  --navy-2: #1C3459;
  --navy-3: #0C1C35;
  --on-navy: #F4ECD9;
  --on-navy-2: #BFC8D6;

  /* Lines live only inside tables and form fields */
  --line: #DDD0B2;
  --field: #857B68;

  --accent: #E8571E;        /* brand orange: marks only */
  --accent-text: #A8380C;   /* 5.5:1 on paper */
  --accent-btn: #B83D10;    /* white text 5.7:1 */
  --accent-btn-hover: #9A320B;
  --accent-on-navy: #F5A27F;

  --pass: #0F6B4F;
  --pass-bg: #DDEBDF;
  --warn: #8A5806;
  --warn-bg: #F3E4BF;
  --fail: #B3261E;
  --fail-bg: #F6DDD5;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace; /* taste-skill-ignore: only the real <pre> workflow JSON uses it */

  /* Grid */
  --wrap: 1360px;
  --gutter: clamp(20px, 3vw, 40px);
  --measure: calc(min(100vw, var(--wrap)) - 2 * var(--gutter));
  --section: clamp(88px, 10vw, 160px);

  /* Five type steps. Display is sized from the measured width of the
     longer headline line (8.86em at Newsreader 500, -0.035em) so both
     lines always fit the measure. */
  --s-display: calc(var(--measure) / 9.2);
  --s-head: clamp(2.125rem, 1.25rem + 3.1vw, 3.75rem);
  --s-lead: clamp(1.25rem, 1.08rem + 0.55vw, 1.5rem);
  --s-body: 1.0625rem;
  --s-small: 0.875rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--s-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }

p { margin: 0 0 1em; }

a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--ink); text-decoration-thickness: 2px; }
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  font-optical-sizing: auto;
  text-wrap: balance;
}

h1 {
  font-size: var(--s-head);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

/* The accent word is set in the same face, weight and colour as the rest. */
h1 em { font-style: normal; font-weight: inherit; color: inherit; }

h2 {
  font-size: var(--s-head);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0 0 20px;
}

h3 {
  font-size: var(--s-lead);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0 0 8px;
}

.lede {
  font-size: var(--s-body);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0;
  text-wrap: pretty;
}

.fineprint {
  font-size: var(--s-small);
  line-height: 1.55;
  color: var(--muted);
  max-width: 64ch;
}

.mono-break {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* ---------- Accessibility ---------- */

.skip-links { position: absolute; top: 0; left: 0; z-index: 100; }

.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: var(--s-small);
  padding: 12px 18px;
  text-decoration: none;
  white-space: nowrap;
}
.skip-links .skip-link:nth-child(2) { left: 210px; }
.skip-link:focus { top: 12px; color: var(--paper); }

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

.price-card-featured :focus-visible,
.price-card:last-child :focus-visible,
.shared-banner :focus-visible,
.issues-field :focus-visible,
#issues :focus-visible,
.site-footer :focus-visible,
.code-block:focus-visible { outline-color: var(--on-navy); }

main[tabindex="-1"]:focus,
section[tabindex="-1"]:focus,
.report[tabindex="-1"]:focus,
.mini-result[tabindex="-1"]:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main > section, main > div > section, .tool-section, #saved, #offer {
  scroll-margin-top: var(--chrome-offset);
}

/* ---------- Header: wordmark, four links, one action. No bar chrome. ---------- */

.site-header {
  background: var(--paper);
  z-index: 50;
}

@media (min-width: 861px) {
  .site-header { position: sticky; top: 0; }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
}
.brand img { display: block; height: 28px; width: auto; }

.site-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 9px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-ui) var(--ease-out);
}
.site-nav a.is-current::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover::after { transform: scaleX(1); }
}

/* ---------- Buttons: flat fill, square corners ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: wait; }

.btn-navy { background: var(--ink); color: var(--paper); }
.btn-orange { background: var(--accent-btn); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }

@media (hover: hover) and (pointer: fine) {
  .btn-navy:hover { background: var(--navy-3); color: #fff; }
  .btn-orange:hover { background: var(--accent-btn-hover); color: #fff; }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); }
}

.btn-text {
  background: transparent;
  color: var(--ink);
  padding: 0 4px;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
@media (hover: hover) and (pointer: fine) {
  .btn-text:hover { color: var(--accent-text); text-decoration: underline; text-decoration-color: currentColor; }
}

.btn-drag {
  background: var(--paper-3);
  color: var(--ink);
  cursor: grab;
}
@media (hover: hover) and (pointer: fine) {
  .btn-drag:hover { background: var(--ink); color: var(--paper); }
}

.btn-small { min-height: 44px; padding: 0 18px; font-size: var(--s-small); }
.btn-large { min-height: 56px; padding: 0 30px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Hero: two-line statement across the full measure ---------- */

.hero { padding: clamp(28px, 4vw, 64px) 0 var(--section); }

.hero h1 {
  font-size: var(--s-display);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(48px, 6.5vw, 104px);
  text-wrap: nowrap;
  transform-origin: left top;
}
.hero h1 > span,
.hero h1 > em {
  display: block;
  white-space: nowrap;
  padding-bottom: 0.06em;
}
.hero h1 > em { text-align: right; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
}

.hero-sub {
  font-size: var(--s-lead);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34em;
  margin: 0 0 clamp(36px, 4vw, 56px);
  text-wrap: pretty;
}

.offer {
  background: var(--paper-2);
  padding: clamp(24px, 2.6vw, 36px);
  max-width: 40rem;
}

.offer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 14px;
}

.offer-head h2 { font-size: var(--s-lead); margin: 0; letter-spacing: -0.012em; }

.offer-price {
  margin: 0;
  font-size: var(--s-small);
  font-weight: 600;
  color: var(--accent-text);
  white-space: nowrap;
}

.offer-body { font-size: var(--s-body); color: var(--ink); margin: 0 0 24px; max-width: 60ch; }

.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; }

.founder-line {
  margin: 28px 0 0;
  font-size: var(--s-small);
  color: var(--muted);
}

.hero-note {
  font-size: var(--s-small);
  color: var(--muted);
  margin: 18px 0 0;
}

/* ---------- Interface fragments: the tools ---------- */

.tool-card {
  background: var(--surface);
  padding: clamp(20px, 3vw, 40px);
}

.tool-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 22px;
}
.tool-head h2 { font-size: var(--s-lead); margin: 0; }

.tool-tag { font-size: var(--s-small); font-weight: 500; color: var(--pass); }

.mini-card {
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--white);
}
.mini-card[data-ui] { border: 2px solid var(--ink); }

.field-stack { display: grid; gap: 16px; margin-bottom: 22px; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.field-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-span { grid-column: 1 / -1; }

.field { display: block; margin: 0 0 18px; min-width: 0; }
.field-grid .field, .field-stack .field { margin: 0; }

.field > span:first-child {
  display: block;
  font-size: var(--s-small);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.field input[type="url"],
.field input[type="text"],
.field select,
.field textarea,
.share-fallback input {
  display: block;
  width: 100%;
  min-height: 48px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field);
  border-radius: 0;
  padding: 11px 14px;
  transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease;
}

.field input::placeholder, .field textarea::placeholder { color: #736C5E; opacity: 1; }

.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }

.field input:focus, .field select:focus, .field textarea:focus, .share-fallback input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 0;
  border-color: var(--ink);
}

.field input[readonly] { background: var(--surface); }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23132847' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}

.field textarea { font-size: 1rem; line-height: 1.6; resize: vertical; }

.field input[type="file"] { font: inherit; font-size: var(--s-small); max-width: 100%; min-height: 44px; }

[aria-invalid="true"] {
  border-color: var(--fail) !important;
  background: #FFF8F5 !important;
}

.char-count {
  display: block;
  min-height: 1.4em;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.label-line { font-size: var(--s-small); font-weight: 600; margin: 0 0 12px; }

fieldset.form-block { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
.form-block { margin: 0 0 36px; }

.form-block legend {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: var(--s-lead);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.form-error {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--fail-bg);
  color: var(--fail);
  font-size: 1rem;
  font-weight: 500;
}

.submit-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-top: 8px;
}
.submit-row .fineprint { flex: 1 1 280px; margin: 0; }

.empty-state {
  margin: 20px 0 0;
  padding: 18px 20px;
  color: var(--ink-2);
  font-size: 1rem;
  background: var(--paper-2);
}

/* ---------- Mini-check result ---------- */

.mini-result {
  margin-top: 22px;
  padding-top: 20px;
}

.mini-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.mini-score {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
}
.mini-score .score-denom { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; }

.mini-result.is-pass .mini-score { color: var(--pass); }
.mini-result.is-warn .mini-score { color: var(--warn); }
.mini-result.is-fail .mini-score { color: var(--fail); }

.mini-issues { list-style: none; margin: 0 0 18px; padding: 0; }
.mini-issues li {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 8px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.mini-issues li:nth-child(odd) { background: var(--paper); }

.mini-clean { margin: 0 0 18px; color: var(--pass); font-weight: 500; }

.mini-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Chapters ---------- */

.chapter { padding: var(--section) 0; }

.chapter-head { max-width: 52rem; margin-bottom: clamp(36px, 4.5vw, 64px); }
.chapter-head .lede a { color: var(--accent-text); }

/* Checker: a tone-step field, heading and lede side by side */

.chapter-checker { background: var(--paper-2); }

.chapter-checker .chapter-head,
#pricing .chapter-head,
#limits .chapter-head,
#utm-builder .chapter-head {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 20px clamp(40px, 6vw, 112px);
  align-items: end;
}
.chapter-checker .chapter-head h2,
#pricing .chapter-head h2,
#limits .chapter-head h2,
#utm-builder .chapter-head h2 { margin: 0; }

.checker-card { padding: clamp(20px, 3.4vw, 48px); background: var(--white); }

.mode-toggle {
  display: inline-flex;
  gap: 0;
  padding: 0;
  margin-bottom: 36px;
  background: var(--paper-2);
}

.mode-btn {
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.mode-btn.is-active { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .mode-btn:not(.is-active):hover { background: var(--paper-3); }
}

.preset-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.preset-btn {
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper-2);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.preset-btn:active { transform: scale(0.97); }
.preset-btn.is-active { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .preset-btn:not(.is-active):hover { background: var(--paper-3); }
}

.preset-note {
  font-size: var(--s-small);
  color: var(--ink-2);
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  min-height: 1.5em;
  max-width: 76ch;
}

/* ---------- Report document ---------- */

.report { margin-top: 40px; }

.report-doc {
  position: relative;
  background: var(--white);
  padding: clamp(22px, 4vw, 52px);
}

.shared-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 14px 12px 20px;
  margin-bottom: 8px;
}
.shared-banner .btn { background: var(--paper); color: var(--ink); }

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.report-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.report-brand-icon { width: 36px; height: 36px; }
.report-brand-name { font-family: var(--serif); font-weight: 600; font-size: var(--s-lead); letter-spacing: -0.01em; }
.report-brand-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; }

.report-doc-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.report-score-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding: 32px 0 28px;
}

.score-block {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: start;
  column-gap: 10px;
  row-gap: 14px;
}

.score-num {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 3rem + 4vw, 7.5rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.045em;
  font-variant-numeric: lining-nums tabular-nums;
}

.score-denom { font-family: var(--sans); font-weight: 500; font-size: 1rem; color: var(--muted); }

.score-verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px 6px 10px;
  font-family: var(--sans);
  font-size: var(--s-small);
  font-weight: 600;
  line-height: 1.3;
}
.score-verdict::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.score-verdict:empty { display: none; }
.score-block .score-verdict { grid-column: 1 / -1; }

.verdict-pass { color: var(--pass); background: var(--pass-bg); }
.verdict-warn { color: var(--warn); background: var(--warn-bg); }
.verdict-fail { color: var(--fail); background: var(--fail-bg); }

.report-stamp {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  transform: rotate(-7deg);
  mix-blend-mode: multiply;
}

.report-meta {
  margin-left: auto;
  font-size: 1rem;
  display: grid;
  gap: 6px;
  min-width: min(100%, 300px);
  max-width: 460px;
}
.report-meta p {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}

.meta-label { font-size: 0.8125rem; font-weight: 500; color: var(--muted); padding-top: 2px; }

/* Check list: striped rows instead of rules */

.check-list { list-style: none; margin: 8px 0 0; padding: 0; }

.check-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 14px;
}
.check-row:nth-child(odd) { background: var(--surface); }

.check-mark {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1;
  padding: 6px 0 5px;
  margin-top: 3px;
}

.status-pass .check-mark { color: var(--pass); background: var(--pass-bg); }
.status-warn .check-mark { color: var(--warn); background: var(--warn-bg); }
.status-fail .check-mark { color: var(--fail); background: var(--fail-bg); }

.check-title { font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.check-detail { margin: 3px 0 0; color: var(--ink-2); font-size: 1rem; overflow-wrap: anywhere; max-width: 72ch; }

.check-list.compact { margin-top: 18px; }
.check-list.compact:empty { display: none; }
.check-list.compact .check-row { padding: 10px 12px; }

/* Comparison panel */

.compare-panel {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--paper-2);
}
.compare-panel h3 { font-size: var(--s-lead); margin: 0 0 4px; }
.compare-scores { font-weight: 600; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.compare-group { margin: 14px 0 0; }
.compare-group h4 { font-family: var(--sans); font-size: var(--s-small); font-weight: 600; margin: 0 0 4px; }
.compare-group ul { margin: 0; padding-left: 20px; }
.compare-group li { font-size: 1rem; color: var(--ink-2); }
.compare-panel .fineprint { margin: 12px 0 0; }

.first-run-note {
  margin: 24px 0 0;
  padding: 14px 18px;
  font-size: var(--s-small);
  color: var(--ink-2);
  background: var(--paper-2);
}

/* Report actions */

.report-actions { margin: 32px calc(-1 * clamp(22px, 4vw, 52px)) 0; padding: clamp(22px, 3vw, 40px) clamp(22px, 4vw, 52px); background: var(--surface); }

.ra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  align-items: start;
}
.ra-group .fineprint { margin: 10px 0 0; }

.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.tool-card .action-row { margin: 18px 0; }

.share-fallback { margin: 12px 0 0; }
.share-fallback input { font-size: 0.875rem; }

.save-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.save-row .field { margin: 0; }
.field-grow { flex: 1 1 200px; }

.panel { background: var(--paper-2); }
.panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--t-hover) ease;
}
.panel > summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) {
  .panel > summary:hover { background: var(--paper-3); }
}
.panel > summary::after, .faq-item > summary::after, .sample > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--t-ui) var(--ease-out);
}
.panel[open] > summary::after, .faq-item[open] > summary::after, .sample[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.panel-body { padding: 4px 18px 20px; }
.panel-body .fineprint { margin: 10px 0 0; }

.check-line { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; margin: 4px 0 0; min-height: 44px; padding-top: 10px; cursor: pointer; }
.check-line input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: 0 0 auto; }

.webhook-block h3 { font-size: var(--s-lead); margin: 0 0 12px; }
.webhook-block .fineprint { margin: 10px 0 0; }

.report-footer-line {
  margin: 36px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Saved campaigns */

.saved-block { margin-top: clamp(56px, 6vw, 88px); }
.saved-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 28px; margin-bottom: 18px; }
.saved-head h3 { margin: 0; }
.saved-head .fineprint { margin: 0; flex: 1 1 320px; }
.saved-block .empty-state { margin-top: 0; background: var(--paper-3); }

.saved-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px 20px;
  background: var(--white);
  padding: 18px 22px;
  margin-bottom: 6px;
}
.saved-name { font-family: var(--serif); font-weight: 600; font-size: var(--s-lead); margin: 0; overflow-wrap: anywhere; }
.saved-url { font-size: 0.875rem; word-break: break-all; color: var(--muted); margin: 2px 0; }
.saved-meta { font-size: var(--s-small); color: var(--muted); margin: 0; }
.saved-score { text-align: center; padding: 0 8px; }
.saved-score .score-big { display: block; font-family: var(--serif); font-size: 2.25rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.saved-score .score-small { font-size: 0.8125rem; color: var(--muted); }

/* Bulk report */

.bulk-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 24px 0 8px;
}
.bulk-stat { background: var(--surface); padding: 16px 18px; }
.bulk-stat .stat-num { display: block; font-family: var(--serif); font-size: 2.5rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.bulk-stat .stat-label { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--muted); }

.bulk-note { font-size: 1rem; color: var(--ink-2); margin: 12px 0 0; }

.bulk-row:first-of-type { margin-top: 16px; }
.bulk-row:nth-of-type(odd) > summary { background: var(--surface); }
.bulk-row > summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 52px;
  padding: 10px 12px;
  cursor: pointer;
}
.bulk-row .bulk-score { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; min-width: 2.5ch; font-variant-numeric: tabular-nums; }
.bulk-row .bulk-url { font-size: 0.875rem; word-break: break-all; flex: 1 1 220px; }
.bulk-row .check-list { margin: 0 0 12px; padding-left: 4px; }
.bulk-skipped { padding: 12px; font-size: 1rem; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- Samples: the report as a striped document ---------- */

#sample .chapter-head { max-width: 60rem; }

.samples { display: grid; gap: 6px; }

.sample { background: var(--paper-2); }
.sample[open] { background: var(--paper-3); }

.sample > summary {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 80px;
  padding: 14px clamp(18px, 2.4vw, 32px);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--t-hover) ease;
}
.sample > summary::-webkit-details-marker { display: none; }
.sample > summary::after { width: 12px; height: 12px; margin-left: 4px; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .sample > summary:hover { background: var(--paper-3); }
}

.sample-caption { font-size: var(--s-lead); margin: 0; flex: 1 1 auto; }

.sample-peek {
  font-family: var(--serif);
  font-size: var(--s-lead);
  font-weight: 500;
  line-height: 1;
  min-width: 3.5rem;
  padding: 10px 12px;
  text-align: center;
  font-variant-numeric: lining-nums tabular-nums;
}

.sample-body { padding: 0 clamp(12px, 2.4vw, 32px) clamp(16px, 2.4vw, 32px); }
/* A closed sample lays out nothing (Chrome would otherwise keep a skipped box). */
.sample:not([open]) > .sample-body,
.faq-item:not([open]) > p,
.panel:not([open]) > :not(summary) { display: none; }
.sample-note { color: var(--ink); margin: 0 0 24px; max-width: 68ch; }
.sample-doc { margin-top: 18px; }

.sample-flag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
}

/* ---------- Explainer ---------- */

.split { padding: var(--section) 0; }

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px clamp(40px, 6vw, 112px);
  align-items: start;
}

.split-head h2 { margin-bottom: 16px; }

@media (min-width: 961px) {
  .split-head { position: sticky; top: calc(var(--chrome-offset) + 24px); }
}

/* What you get: four lines that step across the page */

#what-you-get { padding: calc(var(--section) * 0.7) 0 calc(var(--section) * 0.6); }
#what-you-get .split-grid { grid-template-columns: 1fr; }
#what-you-get .split-head { position: static; }
#what-you-get .split-head h2 { color: var(--muted); margin: 0; }

.numbered-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(40px, 4.5vw, 64px);
}
.numbered-rows li { grid-column: 1 / span 6; }
.numbered-rows li:nth-child(2) { grid-column: 3 / span 6; }
.numbered-rows li:nth-child(3) { grid-column: 5 / span 6; }
.numbered-rows li:nth-child(4) { grid-column: 7 / span 6; }
.numbered-rows h3 {
  font-size: var(--s-head);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0 0 14px;
}
.numbered-rows li:last-child h3 { color: var(--accent-text); }
.numbered-rows p { color: var(--ink); margin: 0; max-width: 40ch; }

/* How the score works: the three marks at display size */

#score .split-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }

.legend-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 3vw, 48px);
}
.legend-rows li { display: grid; align-content: start; gap: 18px; }

.verdict-chip {
  display: block;
  width: fit-content;
  margin: 0 !important;
  padding: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: var(--s-head) !important;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.legend-rows .verdict-chip { padding-bottom: 14px; border-bottom: 4px solid currentColor; }
.legend-rows h3 { font-size: var(--s-lead); margin: 0 0 6px; }
.legend-rows p { color: var(--ink); margin: 0; max-width: 40ch; }

/* Common issues: an inverted field, one size of type */

#issues { background: var(--navy); color: var(--on-navy); }
#issues .split-grid { grid-template-columns: 1fr; }
#issues .split-head { position: static; }
#issues h2 { color: var(--on-navy); max-width: 13.2em; text-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }

.issue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(40px, 6vw, 112px);
}
.issue-list li {
  font-size: var(--s-body);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
}
.issue-list strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: var(--s-lead);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.25;
}
#issues .issue-list li { color: var(--on-navy-2); }
#issues .issue-list strong { color: var(--on-navy); }

/* Who it is for: large names, the description beside */

#who .split-grid { grid-template-columns: 1fr; }
#who .split-head { position: static; }
#who .split-head h2 { color: var(--ink-2); max-width: 18ch; }

.def-rows { display: grid; gap: clamp(48px, 6vw, 88px); margin-top: clamp(16px, 2vw, 32px); }
.def-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: baseline;
}
.def-row h3 {
  grid-column: 1 / span 6;
  font-size: var(--s-head);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
}
.def-row p { grid-column: 8 / span 5; color: var(--ink); margin: 0; max-width: 44ch; }

/* ---------- Tools band ---------- */

.band {
  background: var(--paper-2);
  padding: calc(var(--section) * 0.4) 0 var(--section);
}

.tool-section { padding: calc(var(--section) * 0.6) 0 0; }
.tool-section .chapter-head h2, .tool-section-sm h2 { font-size: var(--s-head); }
.tool-section > .wrap > .fineprint { margin: 16px 0 0; }
.tool-section .lede a { color: var(--accent-text); }

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 4vw, 64px);
  align-items: start;
}
.tool-section-sm h2 { font-size: var(--s-lead) !important; letter-spacing: -0.012em; }
.tool-section-sm .lede { margin-bottom: 24px; }
.tool-section-sm .tool-card { padding: clamp(20px, 2.6vw, 32px); }

.output-well {
  margin-top: 28px;
  padding: 20px;
  background: var(--paper-2);
}
.output-well .field { margin: 0; }
.output-well .field input { font-size: 1rem; background: var(--white); }
.output-well .action-row { margin: 14px 0 0; }

/* Tables: real tables keep their row rules */

.limits-scroll {
  overflow-x: auto;
  width: 0;
  min-width: 100%;
  max-width: 100%;
  margin: 0 0 4px;
  background: var(--white);
}
.tool-card .limits-scroll { margin-top: 28px; }

.limits-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
/* On narrow screens the table keeps readable columns and scrolls inside its frame */
@media (max-width: 760px) {
  .limits-table { width: max-content; min-width: 100%; }
  .limits-table td { max-width: 24rem; }
}

.limits-table th, .limits-table td {
  text-align: left;
  vertical-align: top;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.45;
}

.limits-table thead th {
  font-size: var(--s-small);
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-3);
  border-top: 0;
  white-space: nowrap;
}

.limits-table tbody tr { transition: background-color var(--t-hover) ease; }
.limits-table tbody tr:hover td { background: var(--surface); }
.limits-platform { font-weight: 600; white-space: nowrap; }
.limits-num { white-space: nowrap; font-variant-numeric: tabular-nums; }

.counter-status { font-weight: 600; font-size: var(--s-small); white-space: nowrap; }
.counter-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.05em;
}
.counter-pass { color: var(--pass); }
.counter-warn { color: var(--warn); }
.counter-fail { color: var(--fail); }
.counter-empty { color: var(--muted); font-weight: 400; }
.counter-empty::before { background: transparent; border: 1.5px solid currentColor; }

.tool-card > .fineprint { margin: 18px 0 0; }

/* UTM guide */

.issue-list-2 { margin-top: clamp(40px, 4vw, 64px); }

.utm-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: clamp(40px, 4vw, 56px) 0 20px;
}
.utm-example {
  background: var(--surface);
  padding: clamp(20px, 2.4vw, 32px);
  min-width: 0;
}
.utm-example p { margin: 0 0 14px; color: var(--ink); font-size: 1rem; }
.utm-example p:last-child { margin: 0; }
.utm-example-label { font-weight: 600; font-size: var(--s-small) !important; }
.utm-example-label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 8px;
}
.utm-example .utm-example-good { color: var(--pass); }
.utm-example .utm-example-bad { color: var(--fail); }
.utm-example-url {
  padding: 12px 14px;
  background: var(--paper-2);
  color: var(--ink) !important;
  line-height: 1.5;
}

/* Steps and code */

.step-list { list-style: none; counter-reset: step; margin: 0 0 8px; padding: 0; }
.step-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  font-size: 1rem;
  color: var(--ink);
}
.step-list li::before {
  content: counter(step) ".";
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--accent-text);
}

.code-panel { margin: 4px 0 0; }
.code-panel .code-block { margin: 0 12px 12px; width: auto; min-width: 0; }

.code-block {
  display: block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  background: var(--ink);
  color: #E9E2D0;
  padding: 18px;
  margin: 0;
  overflow: auto;
  max-height: 320px;
  white-space: pre;
}

/* ---------- Pricing: plans that step up ---------- */

#pricing .chapter-head { margin-bottom: clamp(48px, 5vw, 80px); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: clamp(24px, 2.4vw, 36px) clamp(24px, 2.4vw, 36px) 0;
  background: var(--paper-2);
  color: var(--ink);
}
.price-card:nth-child(2) { min-height: 500px; }
.price-card:nth-child(3) { min-height: 600px; }

.price-card-featured { background: var(--navy); color: var(--on-navy); }
.price-card:last-child { background: var(--navy-3); color: var(--on-navy); }

.price-tier {
  font-family: var(--serif);
  font-size: var(--s-lead);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
  color: inherit;
}

.price-amount {
  font-family: var(--serif);
  font-size: var(--s-head);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  font-variant-numeric: lining-nums;
}
.price-per { font-family: var(--serif); font-size: var(--s-body); font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price-card-featured .price-per, .price-card:last-child .price-per { color: var(--on-navy-2); }

.price-list { list-style: none; margin: 0 0 32px; padding: 0; flex: 1; }
.price-list li {
  padding: 6px 0;
  font-size: var(--s-body);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
}
.price-card-featured .price-list li, .price-card:last-child .price-list li { color: var(--on-navy); }

/* The bottom strip of every tile is its button */
.price-card .btn {
  margin: auto calc(-1 * clamp(24px, 2.4vw, 36px)) 0;
  width: auto;
  min-height: 64px;
  justify-content: flex-start;
  padding: 0 clamp(24px, 2.4vw, 36px);
  font-size: 1rem;
  border: 0;
}
.price-card .btn::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--t-ui) var(--ease-out);
}
.price-card .btn-ghost { background: var(--paper-3); color: var(--ink); }
.price-card:last-child .btn-navy { background: #071226; color: var(--on-navy); }
@media (hover: hover) and (pointer: fine) {
  .price-card .btn:hover::after { transform: translateX(4px) rotate(45deg); }
  .price-card .btn-ghost:hover { background: var(--ink); color: var(--paper); }
  .price-card:last-child .btn-navy:hover { background: #000A1A; }
}

.pricing-note {
  margin: 40px 0 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: var(--s-body);
  max-width: 64ch;
}

/* ---------- FAQ ---------- */

.split-faq { background: var(--paper-2); padding: var(--section) 0; }
.split-faq .split-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }

.faq-list { display: grid; gap: 4px; }
.faq-item { background: var(--paper); }
.faq-item[open] { background: var(--surface); }

.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 18px clamp(18px, 2vw, 28px);
  font-family: var(--serif);
  font-size: var(--s-lead);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
  transition: color var(--t-hover) ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) {
  .faq-item > summary:hover { color: var(--accent-text); }
}
.faq-item p { margin: 0; padding: 0 clamp(18px, 2vw, 28px) 26px; color: var(--ink); max-width: calc(64ch + 56px); }

/* ---------- Footer: a navy field, the email address as the headline ---------- */

.site-footer {
  background: var(--navy);
  color: var(--on-navy);
  padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 4vw, 64px);
  font-size: 1rem;
}
.site-footer a { color: var(--on-navy); text-decoration-color: var(--accent-on-navy); }
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { color: #fff; text-decoration-color: currentColor; }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
  gap: 0 clamp(32px, 4vw, 64px);
  align-items: start;
}

.footer-brand { grid-column: 1; grid-row: 1 / span 2; display: flex; align-items: flex-start; gap: 16px; }
.footer-icon { width: 48px; height: 48px; flex: 0 0 auto; }
.footer-brand .footer-line { margin-top: 6px; font-family: var(--serif); font-size: var(--s-lead); line-height: 1.3; max-width: 22ch; }
.footer-line { margin: 0 0 8px; overflow-wrap: anywhere; }
.footer-about { display: contents; }
.footer-about > .footer-line:first-child { grid-column: 2; grid-row: 1; margin-top: 8px; }
.footer-about > .footer-line:nth-child(2):not(:last-child) { grid-column: 2; grid-row: 2; }
.footer-about .fineprint { color: var(--on-navy-2); }

/* The contact line closes the page at full width */
.footer-about > .footer-line:last-child {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: clamp(72px, 12vw, 200px) 0 0;
  max-width: none;
  font-size: var(--s-small);
  color: var(--on-navy-2);
}
.footer-about > .footer-line:last-child a {
  display: block;
  width: fit-content;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: calc(var(--measure) / 11.8);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.12em;
  color: var(--on-navy);
}

.footer-links { grid-column: 3; grid-row: 1; display: flex; flex-wrap: wrap; gap: 0 22px; justify-content: flex-end; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  font-size: 1rem;
  font-weight: 500;
}
.footer-links a[aria-current="page"] { text-decoration-thickness: 2px; }

/* ---------- Legal pages ---------- */

.legal { padding: clamp(48px, 7vw, 112px) 0 var(--section); }

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(40px, 7vw, 128px);
  align-items: start;
}

@media (min-width: 961px) {
  .legal-head { position: sticky; top: calc(var(--chrome-offset) + 24px); }
}

.legal h1 { font-size: calc(var(--s-head) * 1.6); line-height: 0.92; letter-spacing: -0.035em; margin: 0 0 24px; }
.legal-meta { font-size: var(--s-small); color: var(--muted); margin: 0 0 20px; font-variant-numeric: tabular-nums; }
.legal-note { color: var(--ink); font-size: var(--s-body); max-width: 32ch; margin: 0; }

.legal-body { max-width: 40rem; }
.legal-body h2 {
  font-size: var(--s-lead);
  letter-spacing: -0.012em;
  margin: 48px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--ink); line-height: 1.7; overflow-wrap: anywhere; }

/* Print area is hidden on screen */

#print-area { display: none; }

/* ---------- Motion ----------
   Hidden states only apply when scripting is on (html.js) and motion is
   welcome; the reduced state is the finished page. */

@media (prefers-reduced-motion: no-preference) {
  /* Signature: the statement rises line by line, then settles back a few
     percent as the first screen scrolls away. */
  .js .hero h1 > span,
  .js .hero h1 > em {
    clip-path: inset(0 0 100% 0);
    transform: translateY(0.35em);
    animation: line-up 1000ms var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 120ms + 120ms);
  }
  .js .hero h1 > em { --i: 1; }
  .js .hero-copy, .js .hero-tool {
    opacity: 0;
    transform: translateY(24px);
    animation: rise var(--t-reveal) var(--ease-out) forwards;
    animation-delay: 420ms;
  }
  .js .hero-tool { animation-delay: 520ms; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 75ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* The verdict marks draw their underline as they arrive */
  .js .legend-rows [data-reveal] .verdict-chip { border-bottom-color: transparent; transition: border-color 600ms ease 300ms; }
  .js .legend-rows [data-reveal].is-in .verdict-chip { border-bottom-color: currentColor; }

  /* The stamp lands like a rubber stamp */
  .js .report-stamp[data-reveal] {
    opacity: 0;
    transform: rotate(-22deg) scale(1.5);
    transition: opacity 260ms ease, transform 520ms cubic-bezier(0.3, 1.25, 0.5, 1);
    transition-delay: 300ms;
  }
  .js .report-stamp[data-reveal].is-in { opacity: 1; transform: rotate(-7deg) scale(1); }
}

@keyframes line-up { to { clip-path: inset(0 0 -10% 0); transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero h1 {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: exit -20% exit 80%;
    }
    @keyframes settle { from { transform: none; } to { transform: scale(0.94); } }
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .duo { grid-template-columns: 1fr; }
  .bulk-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .legend-rows { grid-template-columns: 1fr; gap: 40px; }
  .legend-rows li { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); column-gap: 24px; }
  .legend-rows .verdict-chip { grid-row: 1 / span 2; align-self: start; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .offer { max-width: none; }
  .split-grid, .legal-grid,
  #score .split-grid, .split-faq .split-grid { grid-template-columns: 1fr; }
  .chapter-checker .chapter-head, #pricing .chapter-head,
  #limits .chapter-head, #utm-builder .chapter-head { grid-template-columns: 1fr; }
  .legal-note { max-width: none; }
  .ra-grid { grid-template-columns: 1fr; }
  .field-grid-3 { grid-template-columns: 1fr; }

  .numbered-rows li, .numbered-rows li:nth-child(n) { grid-column: 1 / -1; }
  .numbered-rows li:nth-child(2) { padding-left: 6vw; }
  .numbered-rows li:nth-child(3) { padding-left: 12vw; }
  .numbered-rows li:nth-child(4) { padding-left: 18vw; }

  .def-row h3 { grid-column: 1 / -1; margin-bottom: 12px; }
  .def-row p { grid-column: 1 / -1; }

  /* Stacked tiles read like a menu: plan name and price share one line */
  .price-grid { grid-template-columns: 1fr; gap: 40px; }
  .price-card, .price-card:nth-child(n) {
    min-height: 0;
    padding-top: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 16px;
  }
  .price-tier { grid-column: 1; margin: 0; }
  .price-amount { grid-column: 2; margin: 0; text-align: right; }
  .price-list { grid-column: 1 / -1; margin: 20px 0 28px; }
  .price-card .btn { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-row: auto; margin-bottom: 20px; }
  .footer-about > .footer-line:first-child,
  .footer-about > .footer-line:nth-child(2):not(:last-child) { grid-column: 1; grid-row: auto; margin-top: 0; }
  .footer-links { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .footer-about > .footer-line:last-child { grid-row: auto; }
  .report-meta { margin-left: 0; }
}

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; padding-bottom: 4px; }
  .brand img { height: 26px; }
  .header-cta { margin-left: auto; }
  .site-nav {
    order: 3;
    width: calc(100% + 24px);
    margin: 4px -12px 0;
    justify-content: space-between;
    gap: 0;
  }
  .site-nav a { padding: 0 12px; font-size: 1rem; }
  .site-nav a::after { left: 12px; right: 12px; bottom: 8px; }
  main > section, main > div > section, .tool-section, #saved, #offer { scroll-margin-top: 16px; }
}

@media (min-width: 561px) and (max-width: 860px) {
  .site-nav { justify-content: flex-start; gap: 8px; }
}

@media (max-width: 760px) {
  .field-grid { grid-template-columns: 1fr; }
  .issue-list { grid-template-columns: 1fr; }
  .utm-examples { grid-template-columns: 1fr; }
  .saved-card { grid-template-columns: minmax(0, 1fr) auto; }
  .saved-card .btn { width: 100%; }
  .legend-rows li { grid-template-columns: 1fr; }
  .legend-rows .verdict-chip { grid-row: auto; }
}

@media (max-width: 560px) {
  .skip-links .skip-link:nth-child(2) { left: 12px; }
  .skip-links .skip-link:nth-child(2):focus { top: 64px; }

  .hero h1 { margin-bottom: 40px; }
  .hero h1 > em { text-align: left; }
  .offer { padding: 22px 18px; margin: 0 calc(-1 * var(--gutter)); }
  .offer-actions .btn-orange { flex: 1 1 100%; }
  .offer-actions .btn-text { padding: 0 2px; min-height: 44px; }

  .tool-card, .checker-card { padding: 20px 16px; }
  .chapter-checker .checker-card, .tool-section .tool-card { margin: 0 calc(-1 * var(--gutter)); padding: 24px var(--gutter); }
  .report-doc { padding: 22px 16px; }
  .report-actions { margin: 28px -16px 0; padding: 22px 16px; }
  .mode-toggle { display: flex; }
  .mode-btn { flex: 1 1 0; padding: 0 10px; }
  .preset-btn { padding: 0 14px; }
  .submit-row .btn { width: 100%; }

  .report-head { flex-direction: column; align-items: flex-start; }
  .report-score-row { gap: 16px 20px; padding: 24px 0; }
  .report-stamp { width: 96px; height: 96px; }
  .report-meta { min-width: 0; width: 100%; }
  .report-meta p { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 8px; }
  /* A URL value takes the full width under its label, so it is not cut into a narrow column */
  .report-meta p:has(.mono-break) { grid-template-columns: minmax(0, 1fr); gap: 2px; margin-top: 4px; }
  .check-row { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 6px 12px; padding: 14px 10px; }
  /* The mark sits beside the title; the detail runs the full row width beneath both */
  .check-row > div { display: contents; }
  .check-row .check-mark { margin-top: 0; align-self: center; }
  .check-row .check-title { grid-column: 2; align-self: center; }
  .check-row .check-detail { grid-column: 1 / -1; margin: 0; }
  .sample > summary { gap: 12px; padding: 12px 16px; }
  .sample-body { padding: 0 0 16px; }
  .sample-flag { right: 0; }
  /* The flag gets its own band above the brand, so it never covers the name */
  .sample-doc { padding-top: 52px; }

  .save-row .btn, .action-row .btn { flex: 1 1 auto; }
  .bulk-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limits-table th, .limits-table td { padding: 11px 12px; }

  .site-footer { padding-top: 48px; }
  .footer-about > .footer-line:last-child { margin-top: 64px; }
  .footer-about > .footer-line:last-child a { display: flex; align-items: center; min-height: 48px; }
}

@media (max-width: 380px) {
  .site-nav a { padding: 0 8px; font-size: 0.875rem; }
  .site-nav a::after { left: 8px; right: 8px; }
  .header-cta { padding: 0 12px; }
}

/* ---------- Print: report only ---------- */

@media print {
  body { background: #fff; }
  .site-header, main, .site-footer, .skip-links { display: none !important; }
  .legal-page main, .legal-page .site-footer { display: block !important; }
  .legal-page .legal-grid { display: block; }
  .legal-page .site-footer { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  #print-area { display: block !important; }
  #print-area .report-doc { border: 1px solid #000; } /* taste-skill-ignore: print only, paper needs an edge */
  #print-area .report-stamp { width: 96px; height: 96px; }
}
