/* Homepage styles. Palette from the Argn design system (packages/ui tokens,
   root DESIGN.md); the site system (sites/argn-marketing/DESIGN.md) adds the
   display scale, the record voice (Plex Mono), the marker and the sheet lift. */

.home-body {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --border: #e0e0dc;
  --rule: #cfd1cc;
  --text: #1a1e18;
  --text-muted: #6e6e68;
  --primary: #2c3329;
  --primary-muted: #4a5246;
  --primary-tint: #e9ebe8;
  --accent: #c89f56;
  --accent-muted: #f2e8d5;
  --accent-text: #8b6b30;
  --success: #6b8e6d;
  --danger: #bc5d48;
  /* The marker: gold laid over paper, as an analyst would mark the sheet. */
  --marker: rgba(200, 159, 86, 0.36);

  /* On the olive field: text tinted from the olive hue, never gray. */
  --on-dark: #f7f7f5;
  --on-dark-muted: #c3c9bd;
  --on-dark-rule: rgba(247, 247, 245, 0.16);
  --on-dark-track: #3d4539;

  /* Serif stays at 400: hierarchy is size, color and space. */
  --serif: "Source Serif 4", "Source Serif 4 Fallback", serif;
  --mono: "IBM Plex Mono", "IBM Plex Mono Fallback", monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --radius-unit: 4px;
  /* A sheet laid on the desk: hairline edge, contact shadow, long soft fall. */
  --shadow-sheet:
    0 0 0 1px rgba(44, 51, 41, 0.07), 0 1px 2px rgba(44, 51, 41, 0.06),
    0 28px 48px -30px rgba(44, 51, 41, 0.42);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Site type scale: clear steps from body to display. */
  --fs-meta: 12px;
  --fs-caption: 13px;
  --fs-small: 14px;
  --fs-body: 17px;
  --fs-h3: 22px;
  --fs-h3-serif: clamp(24px, 2.4vw, 30px);
  --fs-quote-sm: 19px;
  --fs-statement: clamp(26px, 3.2vw, 40px);
  --fs-h2: clamp(36px, 5vw, 60px);
  --fs-display: clamp(48px, 8.4vw, 96px);
  --fs-figure: clamp(48px, 6vw, 80px);

  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.5;
  caret-color: var(--primary);
  scrollbar-color: var(--primary-muted) var(--bg);
}

/* Zero-specificity reset so component margins below always win. */
:where(.home) :where(h4, dl, dd, figure, blockquote) {
  margin: 0;
}

.home ::selection {
  background: var(--accent-muted);
  color: var(--text);
}

.band-dark ::selection {
  background: var(--accent);
  color: var(--primary);
}

.band {
  padding-inline: var(--gutter);
}

.wrap {
  max-width: 1184px;
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 40;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-dark);
  font-weight: 500;
}

.skip-link:focus-visible {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-inline: var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 68px;
}

.site-logo {
  width: 92px;
  height: auto;
}

.site-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.site-links a,
.login-link,
.footer-inner a {
  transition: color 160ms var(--ease-out);
}

.site-links a:hover,
.login-link:hover,
.footer-inner a:hover {
  color: var(--text);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.login-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.btn-lg {
  min-height: 56px;
  padding: 0 30px;
  font-size: 17px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-dark);
}

.btn-primary:hover {
  background: var(--primary-muted);
}

.btn-ghost {
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.btn-ghost:hover {
  background: var(--primary-tint);
  box-shadow: inset 0 0 0 1px var(--primary-tint);
}

.btn-light {
  background: var(--on-dark);
  color: var(--primary);
}

.btn-light:hover {
  background: var(--accent-muted);
}

.home a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.band-dark a:focus-visible {
  outline-color: var(--accent);
}

.btn:focus-visible {
  border-radius: var(--radius-pill);
}

/* Shared section rhythm */
.section {
  padding-block: clamp(48px, 6vw, 72px);
  scroll-margin-top: 68px;
}

.section-ruled .wrap {
  position: relative;
}

.section-title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.025em;
  max-width: 20ch;
  text-wrap: balance;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 32px 64px;
  align-items: end;
}

.section-lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 34ch;
  text-wrap: pretty;
}

/* Section label: its own line above the section title. */

/* Neither font ships smcp, so these are synthesized small caps: sized up a
   step and lightly tracked so the scaled capitals keep their color. */
.section-label {
  margin-bottom: clamp(28px, 3.5vw, 48px);
  font-size: 17px;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  font-synthesis-small-caps: auto;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.band-dark .section-label {
  color: var(--on-dark-muted);
}

/* Olive field */
.band-dark {
  background: var(--primary);
  color: var(--on-dark);
}

/* Hero */
/* The illustration is decorative and adds no height to the hero. */
.hero {
  position: relative;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0 0 auto;
  height: min(100%, 640px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.95;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: right top; }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 10%, rgba(247, 247, 245, 0.95) 25%, rgba(247, 247, 245, 0.72) 42%, rgba(247, 247, 245, 0.24) 65%, transparent 85%);
}
@media (max-width: 640px) {
  .hero-image { opacity: 0.42; }
  .hero-image img { object-position: 65% top; }
  .hero-image::after { background: linear-gradient(to right, var(--bg), rgba(247, 247, 245, 0.55) 50%, rgba(247, 247, 245, 0.2)); }
}

.hero-inner {
  padding-block: clamp(56px, 7vw, 96px) clamp(48px, 5vw, 72px);
}

.hero {
  padding-inline: 0;
}

.hero > .hero-inner {
  padding-inline: var(--gutter);
  box-sizing: content-box;
}

.hero-title {
  font-family: var(--serif);
  font-size: var(--fs-display);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  max-width: 11em;
}

.hero-title .line {
  display: block;
  text-wrap: balance;
}

.line-quiet {
  color: var(--primary-muted);
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: end;
  margin-top: clamp(32px, 4vw, 56px);
}

.hero-sub {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 44ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.hero-actions .btn-ghost {
  background: rgba(247, 247, 245, 0.65);
  color: var(--primary);
  border: 1px solid rgba(44, 51, 41, 0.24);
}

.hero-actions .btn-ghost:hover {
  background: rgba(247, 247, 245, 0.85);
}

/* Hero evidence ledger: the last ruled line of the hero, on paper. */
.ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--rule);
}

.ledger-item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 12px;
  padding: 8px 28px;
  border-left: 1px solid var(--rule);
}

.ledger-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.ledger-item:last-child {
  padding-right: 0;
}

.ledger-num {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.ledger-label {
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 30ch;
}

.ledger-detail {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}

/* The marker: gold under the words that carry the evidence. */
.mark,
.transcript mark {
  background: linear-gradient(var(--marker), var(--marker)) 0 86% / 100% 0.5em
    no-repeat;
  color: inherit;
}

/* Problem: a ruled sheet of questions */
/* A compact bridge from the hero promise to the product. */
.problem-section { padding-block: clamp(32px, 4vw, 56px); }
.problem-section .section-title { max-width: 32ch; font-size: clamp(28px, 3vw, 40px); }
.problem-section .q-table { margin-top: 28px; border-bottom: 1px solid var(--rule); }
.problem-section .q-row { padding: 0; border-top: 1px solid var(--rule); }
.q-question { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.3; font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
.problem-section .statement { margin-top: 24px; color: var(--primary); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; }

/* How it works */
.section-ruled {
  border-top: 1px solid var(--rule);
}

/* Keep each benefit beside its evidence, including in document order. */
.product-moments { margin-top: clamp(40px, 5vw, 64px); }
.product-moment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}
.product-copy h3 {
  margin-block: 12px 16px;
  font-size: var(--fs-h3-serif);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.product-copy > p { color: var(--text-muted); text-wrap: pretty; }
.product-copy .product-audience { font-size: var(--fs-small); font-weight: 500; }
.product-visual { min-width: 0; padding: clamp(16px, 2.5vw, 32px); background: var(--primary-tint); border-radius: var(--radius-md); }
.tour-outputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.tour-output { padding-top: 16px; border-top: 2px solid var(--accent); font-size: 14px; line-height: 1.5; }
.tour-output h4 { color: var(--primary-muted); font-size: var(--fs-small); }
.tour-output .output-focus { margin-block: 8px; font-weight: 600; }
.tour-output > p:last-child { color: var(--text-muted); }
#product mark { background: var(--accent-muted); color: var(--text); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.unit.sel { display: grid; place-items: center; color: var(--surface); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.unit-status { color: var(--text); }
.unit-vacancy { margin-block: 8px 16px; font-weight: 600; }
.pattern-label { margin-bottom: 8px; font-size: var(--fs-small); font-weight: 600; }
.pattern-count { margin-top: 12px; color: var(--text-muted); font-size: var(--fs-small); }
@media (max-width: 900px) {
  .product-moment { grid-template-columns: 1fr; gap: 24px; }
  .product-copy { max-width: 540px; }
}
@media (max-width: 600px) {
  .tour-outputs { grid-template-columns: 1fr; }
  .product-visual { padding: 12px; }
  .product-visual .artifact { padding: 16px; }
  .product-visual .unit-map { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .product-visual .unit { aspect-ratio: 2; }
}

.badge-early {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-muted);
  color: var(--primary);
  font-size: var(--fs-small);
  font-weight: 600;
}

.badge-early::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.artifact {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sheet);
}

.artifact-meta {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* Tour transcript */
.transcript {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.transcript li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
}

.t-time {
  grid-row: span 2;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: var(--fs-meta);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.t-who {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--text-muted);
}

.transcript p {
  font-size: 15px;
  line-height: 1.5;
}

.t-key p {
  font-family: var(--serif);
  font-size: var(--fs-quote-sm);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.t-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.t-tags li {
  padding: 4px 8px;
  border-radius: var(--radius-unit);
  background: var(--primary-tint);
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--primary);
}

.t-tags li:first-child {
  background: var(--accent-muted);
}

.artifact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-muted);
}

.artifact-caption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: var(--fs-meta);
  color: var(--text-muted);
}

.unit-map {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  margin-top: 18px;
}

.unit {
  aspect-ratio: 1.3;
  border-radius: 4px;
  background: var(--success);
}

.unit.y {
  background: var(--accent);
}

.unit.r {
  background: var(--danger);
}

.unit.sel {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--text-muted);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-unit);
  background: var(--success);
}

.map-legend .y {
  background: var(--accent);
}

.map-legend .r {
  background: var(--danger);
}

.unit-callout {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}

.unit-callout b {
  font-weight: 600;
}

.unit-callout .artifact-meta {
  display: block;
  margin-bottom: 2px;
  color: var(--text-muted);
}

.artifact-rec {
  background: var(--accent-muted);
}

/* Gold text fails AA on the pale gold card; olive tokens carry the labels. */
.artifact-rec .artifact-bar,
.artifact-rec .artifact-caption {
  color: var(--primary-muted);
}

.rec-chip {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--text);
}

.rec-title {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: 1.3;
  font-weight: 400;
  text-wrap: pretty;
}

.rec-rows {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.rec-rows dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-muted);
}

.rec-rows dd {
  margin-top: 2px;
}

.rec-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.rec-actions span {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  background: var(--surface);
}

.rec-actions span:first-child {
  background: var(--primary);
  color: var(--on-dark);
}

/* Results: the evidence ledger on the olive field */
.result-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--on-dark);
}

.result-a {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px 72px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 40px;
  border-top: 1px solid var(--on-dark-rule);
}

.bars {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px 20px;
  align-items: center;
  margin-top: 32px;
}

.bar-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--on-dark-muted);
}

.bar-track {
  position: relative;
  height: 44px;
  border-radius: 6px;
  background: var(--on-dark-track);
  overflow: hidden;
}

/* Both bars share a 0–50% scale. */
.bar-scale {
  position: relative;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: var(--fs-meta);
  color: var(--on-dark-muted);
  font-variant-numeric: tabular-nums;
}

.bar {
  display: block;
  height: 100%;
  border-radius: 6px;
  transform-origin: left center;
}

.bar-before {
  width: 38%;
  background: var(--on-dark-muted);
}

.bar-after {
  width: 84%;
  background: var(--accent);
}

.bar-val {
  min-width: 3ch;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  font-weight: 400;
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--on-dark-muted);
}

.bar-val-after {
  color: var(--accent);
}

.bars-caption {
  margin-top: 16px;
  font-size: 15px;
  color: var(--on-dark-muted);
}

.metrics {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums lining-nums;
}

.metrics th,
.metrics td {
  padding: 18px 0;
  border-bottom: 1px solid var(--on-dark-rule);
  text-align: right;
  vertical-align: baseline;
}

.metrics th:first-child {
  text-align: left;
  padding-right: 16px;
}

.metrics thead th {
  padding-top: 0;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--on-dark-muted);
}

.metrics tbody th {
  font-weight: 400;
  color: var(--on-dark-muted);
}

.metrics td {
  padding-left: 24px;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  color: var(--on-dark-muted);
}

.metrics td:last-child {
  font-size: clamp(28px, 2.6vw, 34px);
  font-weight: 400;
  color: var(--accent);
}

.footnote {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}

.result-b {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px 72px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 40px;
  border-top: 1px solid var(--on-dark-rule);
}

.pilot-num {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: var(--fs-figure);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
}

.pilot-desc {
  margin-top: 14px;
  color: var(--on-dark-muted);
  max-width: 28ch;
}

.quote p {
  font-family: var(--serif);
  font-size: var(--fs-statement);
  line-height: 1.32;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.quote footer {
  margin-top: 24px;
  font-size: 15px;
  color: var(--on-dark-muted);
}

.finding {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px 72px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 40px;
  border-top: 1px solid var(--on-dark-rule);
}

.finding-title {
  font-family: var(--serif);
  font-size: var(--fs-h3-serif);
  line-height: 1.3;
  font-weight: 400;
}

.finding-rows > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
  gap: 8px 32px;
  padding-block: 20px;
  border-bottom: 1px solid var(--on-dark-rule);
}

.finding-rows > div:first-child {
  padding-top: 0;
}

.finding-rows dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--on-dark-muted);
}

.finding-rows dd {
  line-height: 1.55;
  text-wrap: pretty;
}

.worth-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: var(--fs-figure);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--accent);
}

/* Stack + trust */
.stack-line {
  margin-top: clamp(32px, 4vw, 48px);
  max-width: 44ch;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.45;
  color: var(--text-muted);
  text-wrap: pretty;
}

.stack-line strong {
  font-weight: 600;
  color: var(--text);
}

.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 72px;
  margin-top: clamp(48px, 6vw, 80px);
}

.trust-title {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-h3);
  font-weight: 600;
}

.check-list li {
  position: relative;
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3329' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}

/* Backers and advisors */
.backing {
  padding-block: clamp(56px, 7vw, 96px);
}

.backing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 72px;
}

.org-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.org-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 16px;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primary-muted);
}

.org-caption {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* Closing CTA */
.cta {
  padding-block: clamp(80px, 11vw, 144px);
}

.cta-title {
  font-family: var(--serif);
  font-size: var(--fs-display);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.03em;
  max-width: 11em;
  text-wrap: balance;
}

.cta-foot {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: end;
  margin-top: clamp(32px, 4vw, 56px);
}

.cta-body {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--on-dark-muted);
  max-width: 44ch;
  text-wrap: pretty;
}

.cta-foot .btn {
  justify-self: end;
}

/* Footer */
.site-footer {
  padding-block: 32px 48px;
  font-size: 15px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.footer-inner > span:first-child {
  font-weight: 600;
  color: var(--text);
}

.footer-inner .copyright {
  margin-left: auto;
}

/* The one authored moment: the "after" bar grows out of the "before"
   value as Results scrolls into view. Final state is the default. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  @supports (animation-timeline: view()) {
    .bar-after {
      animation: bar-grow linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }

    .bar-val-after,
    .metrics td:last-child {
      animation: bar-value linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }

    /* The marker is drawn across the thesis sentence, line by line. */
    .statement .mark {
      animation: marker-draw linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 45%;
    }
  }
}

@keyframes marker-draw {
  from {
    background-size: 0% 0.5em;
  }
  to {
    background-size: 100% 0.5em;
  }
}

@keyframes bar-grow {
  from {
    transform: scaleX(0.452381);
    background: var(--on-dark-muted);
  }
  to {
    transform: scaleX(1);
    background: var(--accent);
  }
}

@keyframes bar-value {
  from {
    opacity: 0.35;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .site-links {
    display: none;
  }

  .hero-foot,
  .cta-foot,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .cta-foot .btn {
    justify-self: start;
  }

  .result-a,
  .result-b {
    grid-template-columns: 1fr;
  }

  .finding {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ledger {
    grid-template-columns: 1fr;
  }

  .ledger-item,
  .ledger-item:first-child,
  .ledger-item:last-child {
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .ledger-item:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .ledger-item:last-child {
    padding-bottom: 0;
  }

  .q-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 28px;
  }

  /* No label above the question on small screens: it trails the detail. */
  .q-area {
    order: 3;
    font-size: var(--fs-small);
    font-weight: 500;
  }

  .trust,
  .backing-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {
  .site-logo {
    width: 80px;
  }

  .site-actions {
    gap: 14px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .finding-rows > div {
    grid-template-columns: 1fr;
  }

  .artifact {
    padding: 20px;
  }

  .bars {
    gap: 14px 14px;
  }

  .bar-track {
    height: 36px;
  }

  .metrics td {
    padding-left: 16px;
  }

  .cta-foot .btn {
    justify-self: stretch;
  }

  .footer-inner .copyright {
    margin-left: 0;
  }
}

/* Product review: coaching score and recommendation evidence. */
.coaching-score { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 12px; font-size: var(--fs-small); }
.coaching-score strong { font-family: var(--mono); font-size: 24px; font-weight: 500; white-space: nowrap; }
.coaching-score strong span { font-size: var(--fs-meta); color: var(--text-muted); }
.unit-callout .unit-heading { font-family: var(--mono); font-weight: 400; }
.recommendation-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.recommendation-copy { min-width: 0; }
.comps-chart { min-width: 0; padding: 20px; border-radius: var(--radius-sm); background: var(--surface); }
.comps-chart h4 { font-size: var(--fs-small); font-weight: 600; }
.comps-meta, .comps-basis { margin-top: 4px; color: var(--text-muted); font-size: var(--fs-meta); }
.comps-legend { display: flex; gap: 12px; margin-top: 16px; font-size: var(--fs-meta); color: var(--text-muted); }
.comps-legend span { display: flex; align-items: center; gap: 5px; }
.comps-legend i { width: 8px; height: 8px; background: var(--primary-tint); }
.comps-legend span:last-child i { background: var(--primary-muted); }
/* Connected price points share a dollar axis, following the supplied reference. */
.pricing-dots { display: block; width: 100%; height: auto; margin-top: 16px; overflow: visible; }
.pricing-grid { fill: none; stroke: var(--rule); stroke-width: 1; }
.pricing-reference { stroke: var(--primary); stroke-width: 1.5; }
.pricing-reference-label { fill: var(--primary); font: 12px var(--sans); font-weight: 600; }
.pricing-row-label { fill: var(--text); font: 13px var(--sans); font-weight: 600; }
.pricing-connector { stroke: var(--success); stroke-width: 2; }
.pricing-asking { fill: var(--success); }
.pricing-effective { fill: var(--primary); stroke: var(--surface); stroke-width: 1; }
.pricing-values, .pricing-axis { fill: var(--text-muted); font: 11px var(--mono); }
.pricing-offer { fill: var(--primary-muted); font: 11px var(--sans); }
.comps-legend i { border-radius: 50%; background: var(--success); }
.comps-legend span:last-child i { background: var(--primary); }
.message-thread { display: grid; gap: 12px; margin-top: 16px; }
.message-bubble { position: relative; margin-left: 12px; padding: 14px 16px; border-radius: 16px; background: var(--primary); color: var(--surface); line-height: 1.5; }
.comps-basis { margin-top: 20px; }

@media (max-width: 650px), (min-width: 901px) and (max-width: 1150px) {
  .recommendation-grid { grid-template-columns: 1fr; }
}

.message-incoming { margin-left: 0; margin-right: 12px; border-radius: 16px; background: var(--primary-tint); color: var(--text); }

.coaching-suggestions { display: grid; gap: 14px; margin-top: 14px; list-style: none; }
.coaching-suggestions b { font-weight: 600; }
.coaching-suggestions p { margin-top: 4px; color: var(--text-muted); }

.pricing-y-axis { fill: none; stroke: var(--text-muted); stroke-width: 1; }

.problem-section .q-detail { margin-top: 6px; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.5; text-wrap: pretty; }

.q-toggle { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding-block: 16px; cursor: pointer; list-style: none; }
.q-toggle::-webkit-details-marker { display: none; }
.q-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: var(--radius-sm); }
.q-toggle:hover .q-question { color: var(--primary-muted); }
.q-icon { position: relative; width: 24px; height: 24px; flex: 0 0 24px; }
.q-icon::before, .q-icon::after { content: ""; position: absolute; background: var(--primary); }
.q-icon::before { width: 16px; height: 2px; left: 4px; top: 11px; }
.q-icon::after { height: 16px; width: 2px; left: 11px; top: 4px; }
.q-icon::after { transition: transform 220ms ease, opacity 220ms ease; }
.q-row[open] .q-icon::after { transform: rotate(90deg); opacity: 0; }

/* Animate native disclosures while retaining keyboard and no-JS behavior.
   Browsers without intrinsic-size transitions keep the native instant toggle. */
@supports (interpolate-size: allow-keywords) and selector(details::details-content) {
  .q-row { interpolate-size: allow-keywords; }
  .q-row::details-content {
    height: 0;
    opacity: 0;
    overflow: clip;
    transition: height 280ms cubic-bezier(0.2, 0, 0, 1), opacity 220ms ease,
      content-visibility 280ms allow-discrete;
  }
  .q-row[open]::details-content { height: auto; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .q-row::details-content, .q-icon::after { transition: none; }
}
.problem-section .q-detail { max-width: 76ch; margin: 0; padding: 0 40px 24px 0; font-size: 16px; line-height: 1.65; }

.problem-panel { padding: clamp(24px, 4vw, 48px); background: var(--primary-tint); border-radius: var(--radius-md); }

.coaching-score strong .score-value { font: inherit; color: inherit; display: inline-block; min-width: 2ch; text-align: right; }
.message-reserved { opacity: 0; }
.message-typed { position: absolute; inset: 14px 16px; }

/* Product feature inventory. */
.product-features { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--rule); }
.product-features li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-small); font-weight: 500; }
