/* ---- Landing page sections ------------------------------------------------
   One rule governs the palette here: **ink is the machine's own voice.** The
   catalog plate, the verbatim artifacts and the colophon are dark; everything
   a person wrote is on paper. Nothing is dark for contrast alone.

   Tokens only — see `base.css`. Loaded on top of `public.css`. */

/* ---- Masthead ------------------------------------------------------------- */

.masthead {
  padding-block: var(--space-7) var(--space-7);
  border-bottom: 1px solid var(--border);
}
.masthead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.85fr);
  gap: var(--space-6) var(--space-6);
  align-items: start;
}
.masthead h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  font-weight: 600;
  margin: 0 0 var(--space-4);
  max-width: 16ch;
  text-wrap: balance;
}
/* The premise is set quiet and the consequence at full strength, so the
   headline reads as one sentence that lands on its second half. */
.headline-lead { display: block; color: var(--muted); }
.headline-main { display: block; }

.masthead .lede { margin-bottom: var(--space-5); max-width: 40rem; }
.masthead .action-row { margin-bottom: var(--space-4); }
.disclaimer {
  font-size: var(--fs-micro);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
  padding-left: var(--space-3);
  border-left: 2px solid var(--rule);
}

/* ---- The regulatory clock ------------------------------------------------- */

/* Bordered, not raised: the page's structure is hairlines, and the clock is a
   table of dates rather than something floating above the page. */
.clock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.clock .eyebrow { margin-bottom: var(--space-3); color: var(--accent); }
.clock ol { list-style: none; margin: 0; padding: 0; }
.clock li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem var(--space-3);
  padding-block: var(--space-3);
  border-top: 1px solid var(--border);
}
.clock li:first-child { border-top: 0; padding-top: 0; }
.clock-date {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.02em;
  color: var(--muted);
}
.clock-what {
  grid-column: 1;
  font-size: var(--fs-small);
  line-height: 1.45;
  margin: 0;
}
.clock-state {
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
  align-self: center;
  min-width: 4.5rem;
}
.clock-days {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--muted);
}
.is-next .clock-days { font-size: 1.9rem; color: var(--accent); }
.clock-unit {
  display: block;
  font-size: var(--fs-eyebrow);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.clock-elapsed {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--muted);
  background: var(--neutral-soft);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.5rem;
}
.clock-foot {
  margin: var(--space-3) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: var(--muted);
}

/* ---- The catalog plate (the one dark section that is not machine output) --- */

.plate__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-5);
}
.plate__head h2 { color: var(--band-text); }
.catalog-map { display: grid; }
.phase-row {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-3);
  border-top: 1px solid var(--band-line);
}
.phase-row:last-child { border-bottom: 1px solid var(--band-line); }
.phase-label { line-height: 1.35; }
.phase-code {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  color: var(--accent-on-band);
}
.phase-name { display: block; font-size: var(--fs-small); color: var(--band-text); }
.phase-count {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  color: var(--band-muted);
}
.id-run {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}
.id-cell {
  /* An identifier is never abbreviated to fit: the cell keeps its width and
     the run wraps instead. */
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--band-muted);
  background: var(--band-raised);
  border: 1px solid var(--band-line);
  border-radius: 3px;
  padding: 0.1rem 0.32rem;
  white-space: nowrap;
}
/* Risk-gated enhancements are the four items a product's risk determination
   switches on; they are the only cells that differ, because they are the only
   ones that may not apply. */
.id-cell--gated { color: var(--accent-on-band); border-color: var(--accent-on-band); }
.plate-legend {
  margin: var(--space-4) 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--band-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

/* ---- Mechanism claims ----------------------------------------------------- */

/* Two columns, never three: four claims in threes leaves one orphan, and the
   verbatim artifacts need the width. */
.claims {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-5);
}
.claim .eyebrow { color: var(--accent); margin-bottom: var(--space-2); }
.claim p { margin: 0; color: var(--muted); max-width: 48ch; line-height: var(--lh-body); }

/* Literal product output. Never paraphrased, so it is set as what it is. */
.artifact {
  margin-top: var(--space-3);
  background: var(--band);
  color: var(--band-text);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.7;
  overflow-x: auto;
}
.artifact b { color: var(--accent-on-band); font-weight: 400; }
.artifact-caption {
  display: block;
  color: var(--band-muted);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.artifact table { border-collapse: collapse; }
.artifact td { padding: 0 1.2rem 0 0; white-space: nowrap; }
.artifact td:last-child { padding-right: 0; }

/* ---- Who it is for -------------------------------------------------------- */

.audience { margin-top: var(--space-5); }
.audience > div {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-4);
  border-top: 1px solid var(--rule);
}
.audience > div:last-child { border-bottom: 1px solid var(--rule); }
.audience h3 { margin: 0; }
.audience p { margin: 0; color: var(--muted); line-height: var(--lh-body); }

/* ---- Operational facts rail ----------------------------------------------- */

.rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-4) var(--space-5);
}
.rail > div { border-top: 2px solid var(--accent); padding-top: var(--space-3); }
.rail p { margin: 0; font-size: var(--fs-small); color: var(--muted); line-height: var(--lh-body); }
.rail .eyebrow { margin-bottom: var(--space-2); }

/* ---- Stated plainly ------------------------------------------------------- */

.plainly {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-5);
  list-style: none;
  padding: 0;
}
.plainly li {
  border-left: 2px solid var(--rule);
  padding-left: var(--space-3);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--muted);
}
.plainly b { color: var(--text); font-weight: 600; }

/* ---- Closing call --------------------------------------------------------- */

.closing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4) var(--space-6);
  align-items: center;
}
.closing h2 { margin-bottom: var(--space-2); }
.closing p { margin: 0; color: var(--muted); max-width: 46ch; font-size: var(--fs-small); }

/* ---- Narrow viewports ----------------------------------------------------- */

@media (max-width: 64rem) {
  .masthead__grid,
  .plate__head,
  .closing__grid { grid-template-columns: minmax(0, 1fr); }
  .masthead { padding-block: var(--space-6); }
  .masthead h1 { max-width: 20ch; }
}

@media (max-width: 54rem) {
  .claims,
  .plainly { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
}

@media (max-width: 46rem) {
  .phase-row,
  .audience > div { grid-template-columns: minmax(0, 1fr); }
  .clock li { grid-template-columns: minmax(0, 1fr) auto; }
  .is-next .clock-days { font-size: 1.6rem; }
}
