/* home.css — composition for the PUBLIC homepage.
 *
 * Built 2026-08-31 from the owner-ratified sketch (rounds 8–37). public.css is
 * the shell every public page shares (header, footer, buttons, fields); this file
 * is only this page's composition. Tokens come from tokens.css and no colour is
 * written as a literal here — the palette is a contract, not a suggestion.
 *
 * TWO FORM RULINGS ARE LOAD-BEARING, and both are accessibility decisions before
 * they are taste:
 *
 *   1. NO RED/GREEN PAIRING anywhere. The owner is red/green colour-blind, so
 *      meaning is carried by LIGHTNESS plus the one blue. Blue says "good".
 *   2. GOLD IS SPENT ONCE — on the hero card's top row, which is the page's
 *      signature moment. Never as text (it measures 2.82:1 on paper, below AA at
 *      any size); it works as a 4px bar because a bar is read by position first.
 *
 * And one line ruling: the thick bar (subject) lies DEAD STRAIGHT. A thick line
 * sloping down at the reader reads as a negative trend.
 */

/* =========================== HERO =========================== */
/* `.pm-hero` and `.pm-hero__h1` are SHARED components in public.css, used by five
 * templates. Nothing here redefines them: the shared `__h1` carries a measured
 * mobile fix (hyphenation plus a smaller clamp — an unbreakable Swedish compound
 * does not wrap, it overhangs, and the whole document then scrolls sideways), and
 * an override here would silently drop that fix from this page and restyle the
 * other four. The homepage's own variations hang off a modifier instead. */
.pm-hero--home { padding-bottom: clamp(2.75rem, 1.5rem + 5vw, 4.5rem); }

.pm-hero__grid {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: clamp(2rem, 0.5rem + 4vw, 4rem);
  align-items: center;
}

.pm-eyebrow__kicker { color: var(--pm-signal); }

/* Only what the shared rule does not already say — never its font-size. */
.pm-hero--home .pm-hero__h1 {
  font-family: var(--pm-display);
  font-weight: 600;
  color: var(--pm-ink);
  text-wrap: balance;
  margin-block: 1.125rem 1.375rem;
  max-width: 18em;
}

.pm-hero__copy .pm-lede { max-width: 34em; }

/* The "why" paragraph sits closer to the lede than a new thought would: it is
   the same breath, one step quieter. */
.pm-lede--why {
  font-size: var(--pm-body-m);
  color: var(--pm-graphite);
  margin-top: 0.875rem;
}

.pm-cta-row {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.625rem);
  flex-wrap: wrap;
  margin-top: 1.875rem;
}

/* `.pm-btn` MOVED to public.css on 2026-09-06. It was defined here, and only
 * the homepage loads this file — so /testa, which uses the same class in four
 * places, rendered the browser's default grey button and a plain blue link
 * where its two calls to action should be. A component more than one page uses
 * belongs in the shell, not in one page's composition file. Its phone rule is
 * still in this file's 34rem block; see the note there. */

.pm-quiet {
  color: var(--pm-graphite);
  font-size: var(--pm-body-s);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pm-quiet:hover { color: var(--pm-ink); }

.pm-proofline {
  font-family: var(--pm-mono);
  font-size: 0.8125rem;
  color: var(--pm-muted);
  margin-top: 1.375rem;
  font-variant-numeric: tabular-nums;
}
.pm-proofline b { color: var(--pm-ink); font-weight: 500; }

/* ---- The delivery card (own block: `.pm-card` is taken) ---------------------------------------------------- */
.pm-delivery {
  background: var(--pm-paper-sheet);
  border: 1px solid var(--pm-rule);
  border-radius: 4px;
  padding: 1.625rem 1.5rem 1.125rem;
  margin: 0;
}

.pm-delivery__src {
  background: var(--pm-paper-card);
  border: 1px solid var(--pm-rule);
  border-radius: 3px;
  padding: 0.625rem 0.875rem;
  font-family: var(--pm-mono);
  font-size: 0.78125rem;
  color: var(--pm-ink);
  display: inline-block;
}
.pm-delivery__src small {
  display: block;
  color: var(--pm-muted);
  font-size: 0.65625rem;
  letter-spacing: 0.1em;
}

.pm-delivery__step {
  font-family: var(--pm-mono);
  font-size: var(--pm-label-s);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pm-muted);
  margin-block: 0.875rem 0.5rem;
}
.pm-delivery__step::before { content: "\2193 "; color: var(--pm-signal); }

.pm-weights { display: grid; gap: 0.375rem; }
.pm-weights__row {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 0.625rem;
  align-items: center;
}
.pm-weights__row span {
  font-family: var(--pm-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pm-muted);
  text-align: right;
}
/* DEAD STRAIGHT, always. Width is the weight; a transform or a skew here would
   turn the page's clearest claim into a trend line pointing the wrong way. */
.pm-weights__row i {
  display: block;
  height: 10px;
  border-radius: 2px;
  background: var(--pm-signal);
}

.pm-delivery__wcap {
  font-family: var(--pm-mono);
  font-size: 0.71875rem;
  color: var(--pm-muted);
  margin-top: 0.375rem;
}

.pm-delivery__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.375rem; }

.pm-delivery__row {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: var(--pm-paper-page);
  border: 1px solid var(--pm-rule);
  border-radius: 3px;
  padding: 0.5625rem 0.75rem 0.5625rem 0.5rem;
  font-size: 0.875rem;
}
.pm-delivery__bar { width: 4px; height: 100%; border-radius: 2px; background: transparent; }

/* THE ONE GOLD ON THE PAGE. Border + bar, never text. */
.pm-delivery__row.is-top { background: var(--pm-paper-sheet); border-color: var(--pm-gold); }
.pm-delivery__row.is-top .pm-delivery__bar { background: var(--pm-gold); }

.pm-delivery__who b {
  font-family: var(--pm-display);
  font-weight: 600;
  color: var(--pm-ink);
  font-size: 0.90625rem;
}
.pm-delivery__who span {
  display: block;
  color: var(--pm-muted);
  font-size: 0.78125rem;
  margin-top: 1px;
}

.pm-chips { display: flex; gap: 4px; }
.pm-chip {
  font-family: var(--pm-mono);
  font-size: 0.65625rem;
  font-weight: 500;
  border: 1px solid var(--pm-county-3);
  color: var(--pm-signal);
  border-radius: 2px;
  padding: 1px 6px;
}
/* An absent signal is shown by LIGHTNESS, never by a second hue. */
.pm-chip.is-off { border-color: var(--pm-rule); color: var(--pm-muted); opacity: 0.55; }

.pm-delivery__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  border-top: 1px solid var(--pm-rule);
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  font-family: var(--pm-mono);
  font-size: var(--pm-label);
  color: var(--pm-muted);
}
.pm-delivery__total b { color: var(--pm-ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* =========================== THE FRAME LINE =========================== */
.pm-frame {
  border-top: 1px solid var(--pm-rule);
  padding-top: clamp(2.25rem, 1.4rem + 3vw, 3.25rem);
}
.pm-frame p {
  font-size: var(--pm-d5);
  max-width: 40em;
  color: var(--pm-graphite);
}
.pm-frame b { font-weight: 600; color: var(--pm-ink); }

/* =========================== THE STEPS =========================== */
.pm-act { padding-block: clamp(3.5rem, 2rem + 5.5vw, 5.5rem); }
.pm-act + .pm-act, .pm-act--match { border-top: 1px solid var(--pm-rule); }
/* Step 1 follows the frame line, which already drew the rule. */
#pm-step-1 { border-top: 0; padding-top: clamp(2rem, 1.2rem + 3vw, 2.75rem); }

.pm-act__head { max-width: 40em; }

.pm-act__marker {
  font-family: var(--pm-mono);
  font-size: var(--pm-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pm-signal);
  font-weight: 500;
}

.pm-act h2 {
  font-family: var(--pm-display);
  font-size: var(--pm-d2);
  line-height: var(--pm-lh-head);
  letter-spacing: var(--pm-tr-d4);
  font-weight: 600;
  color: var(--pm-ink);
  text-wrap: balance;
  margin-block: 0.875rem 1rem;
}

.pm-act__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 0.5rem + 3.5vw, 3.5rem);
  margin-top: 2.75rem;
  align-items: start;
}
/* A grid item defaults to `min-width: auto`, so ONE unbreakable child can push
 * its track wider than the viewport and the whole document then scrolls
 * sideways — measured here at 375px, where the receipt's nowrap chip made the
 * column 363px inside a 335px gutter. The overflow shows up on the page, never
 * on the element that caused it, which is why it is worth stating explicitly. */
.pm-act__body > * { min-width: 0; }
.pm-act__body > div > p + p { margin-top: 0.875rem; }
.pm-act__body p { color: var(--pm-graphite); }

/* Step 2 dominates: recessed full-bleed band, double the surface. The page has
   ONE dominant and this is it. */
.pm-act--match {
  background: var(--pm-paper-deep);
  padding-block: clamp(4rem, 2rem + 6.5vw, 6.75rem);
}
.pm-act--match .pm-shot { background: var(--pm-paper-page); }

/* ---- Screenshot slots ----------------------------------------------------- *
 * Honest about being placeholders. Photographed AFTER the demo data is cleaned
 * and de-identified — a marketing page must not ship a product shot carrying a
 * real journalist's name or a real masthead. */
.pm-shot {
  background: var(--pm-paper-deep);
  border: 1px dashed var(--pm-muted);
  border-radius: 4px;
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  margin: 0;
}
.pm-shot p {
  font-family: var(--pm-mono);
  font-size: var(--pm-label);
  color: var(--pm-muted);
  max-width: 26em;
  line-height: 1.6;
}
.pm-shot p strong {
  color: var(--pm-ink);
  font-weight: 500;
  display: block;
  margin-bottom: 0.375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* The live caption is NOT placeholder text — it ships with the photograph. */
.pm-shot figcaption {
  margin-top: 0.875rem;
  font-size: var(--pm-body-s);
  color: var(--pm-graphite);
  border-top: 1px solid var(--pm-rule);
  padding-top: 0.75rem;
  max-width: 26em;
}

.pm-fact {
  font-family: var(--pm-mono);
  font-size: 0.8125rem;
  color: var(--pm-ink);
  border-left: 3px solid var(--pm-signal);
  padding: 2px 0 2px 0.875rem;
  margin-top: 1.625rem;
}

/* ---- The trust figure ----------------------------------------------------- */
.pm-trust {
  background: var(--pm-paper-card);
  border: 1px solid var(--pm-rule);
  border-radius: 4px;
  padding: 1.375rem 1.5rem;
  margin: 1.875rem 0 0;
}
.pm-trust blockquote {
  font-family: var(--pm-display);
  font-weight: 500;
  font-size: var(--pm-d5);
  color: var(--pm-ink);
  line-height: 1.45;
  margin: 0;
}
.pm-trust figcaption { margin-top: 0.625rem; font-size: 0.84375rem; color: var(--pm-muted); }

.pm-badges { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.pm-badge {
  font-family: var(--pm-mono);
  font-size: var(--pm-label-s);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--pm-county-3);
  color: var(--pm-signal);
  border-radius: 2px;
  padding: 3px 9px;
}

/* ---- The county map ------------------------------------------------------- *
 * Every county the same size, the same shape and the same colour: presence, not
 * depth, and nothing a reader could rank. */
.pm-map { margin: 0; }

.pm-map__svg {
  display: block;
  width: 100%;
  max-width: 19rem;
  height: auto;
  margin-inline: auto;
}

/* ONE tone for every lit county. A north-to-south ramp was tried and dropped:
 * it was a geographic variable carrying no value, but it READ as thin coverage
 * over thick — and since the north really is the corpus's thin tail, the
 * accident would have looked like a truthful ranking. "No ranking" is the
 * ruling; a drawing nobody can misread beats one that merely means nothing. */
.pm-map__cell { transition: fill var(--pm-dur) var(--pm-ease); }
.pm-map__cell.is-lit { fill: var(--pm-county-3); }
/* An unlit county is an OUTLINE, not a second colour: absence is read as absence,
   and no visitor has to tell two hues apart to understand the map. */
.pm-map__cell.is-dark { fill: var(--pm-paper-page); stroke: var(--pm-rule); stroke-width: 0.6; }

.pm-shot--map { min-height: 12rem; }

.pm-map figcaption {
  font-size: 0.84375rem;
  color: var(--pm-muted);
  margin-top: 0.875rem;
  text-wrap: pretty;
}

.pm-demoline {
  margin-top: 2.5rem;
  font-size: var(--pm-body-m);
  color: var(--pm-graphite);
  border-top: 1px solid var(--pm-rule);
  padding-top: 1.375rem;
}
.pm-demoline a { color: var(--pm-signal); text-decoration: underline; text-underline-offset: 3px; }

/* ---- The figure card (step 3) --------------------------------------------- */
.pm-receipt {
  background: var(--pm-paper-sheet);
  border: 1px solid var(--pm-rule);
  border-radius: 4px;
  padding: 1.875rem 1.875rem 1.5rem;
}
.pm-receipt__nums { display: flex; gap: 3rem; flex-wrap: wrap; }
.pm-receipt__num b {
  font-family: var(--pm-mono);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 2.875rem);
  color: var(--pm-ink);
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pm-receipt__num span {
  font-family: var(--pm-mono);
  font-size: var(--pm-label-s);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pm-muted);
}
.pm-receipt__rows { margin-top: 1.5rem; border-top: 1px solid var(--pm-rule); }
.pm-receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5625rem 2px;
  border-bottom: 1px solid var(--pm-rule);
  font-size: 0.90625rem;
  color: var(--pm-graphite);
}
.pm-receipt__v {
  font-family: var(--pm-mono);
  font-size: 0.84375rem;
  color: var(--pm-ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.pm-receipt__chip {
  font-family: var(--pm-mono);
  font-size: var(--pm-label-s);
  color: var(--pm-muted);
  border: 1px solid var(--pm-rule);
  border-radius: 2px;
  padding: 2px 8px;
  white-space: nowrap;
}
.pm-receipt__note {
  margin-top: 0.875rem;
  font-family: var(--pm-mono);
  font-size: var(--pm-label-s);
  color: var(--pm-muted);
}

/* =========================== THE CLOSER =========================== */
.pm-closer {
  text-align: center;
  padding-block: clamp(4rem, 2.2rem + 6.5vw, 6.75rem);
  border-top: 1px solid var(--pm-rule);
}
.pm-closer h2 {
  font-family: var(--pm-display);
  font-size: var(--pm-d2);
  font-weight: 600;
  letter-spacing: var(--pm-tr-d4);
  color: var(--pm-ink);
  text-wrap: balance;
}
.pm-closer p {
  max-width: 36em;
  margin: 1.125rem auto 1.875rem;
  font-size: var(--pm-body-l);
  color: var(--pm-graphite);
  text-wrap: pretty;
}

/* =========================== RESPONSIVE =========================== *
 * The steps stack in the same order and NOTHING is hidden — a mobile visitor
 * gets the whole argument, not an abridged one. */
@media (max-width: 60rem) {
  .pm-hero__grid,
  .pm-act__body { grid-template-columns: 1fr; }
  .pm-hero__grid { gap: 2.25rem; }
  .pm-map__svg { max-width: 13rem; }
  .pm-receipt__nums { gap: 2rem; }
}

@media (max-width: 34rem) {
  /* The chip holds a whole clause ("indicative · enabled per sendout"); keeping
     it on one line is a wide-screen nicety, not a rule worth a scrollbar. */
  .pm-receipt__chip { white-space: normal; }
  .pm-receipt__row { flex-wrap: wrap; row-gap: 0.25rem; }
  .pm-delivery { padding: 1.25rem 1rem 1rem; }
  .pm-delivery__row { grid-template-columns: 4px 1fr; row-gap: 0.5rem; }
  .pm-chips { grid-column: 2; }
  .pm-receipt { padding: 1.375rem 1.125rem 1.125rem; }
  .pm-cta-row { gap: 1rem; }
  /* Full-width on a phone is a HOMEPAGE decision and STAYS here, even though
     the component itself moved to public.css on 2026-09-06: this file is loaded
     by the homepage alone, so the rule reaches exactly the two buttons it was
     drawn for and nothing on /testa. Scoping it to `.pm-cta-row` was tried and
     reverted — it would have quietly narrowed the closer's button, which sits
     outside that row. */
  .pm-btn { width: 100%; text-align: center; }
}
