/* Proceeds Ledger landing page (index.html) — PROPOSED rewrite (prototype, not in repo).
   Page rules only. Every rule is scoped to body.page-landing and reads --pl-* tokens from style.css.
   One accent (--pl-chapter-i, the :root default) in exactly three places:
   1) the H1 key phrase, 2) the How-it-works step numbers, 3) the offer card (edge + eyebrow).
   Everything else is neutral. Breakpoints (min-width only): 37.5rem, 56.25rem, 64rem. */

/* ---------- Shared ---------- */

/* File names stay mono, never drop below the 14px floor and wrap instead of forcing a page scroll. */
body.page-landing code {
  font-size: max(0.9375em, var(--pl-type-metadata));
  overflow-wrap: anywhere;
}

/* A file name may break only where the markup puts a <wbr>, never after a hyphen. */
body.page-landing .nw {
  white-space: nowrap;
}

body.page-landing main h2:not(.t-statement) {
  font-size: var(--pl-type-heading-section);
}

/* Fewer sections, so the rhythm is tighter: 4rem between sections on every width (was 6rem from 900px). */
body.page-landing main > .section {
  padding-block: var(--pl-space-8);
}

/* Section heads sit closer to their content (was --pl-head-gap, up to 4rem). */
body.page-landing main .section-head {
  margin-bottom: var(--pl-space-6);
}

/* ---------- Hero ---------- */

body.page-landing .hero {
  padding-block: var(--pl-space-7) var(--pl-space-8);
}

body.page-landing .hero-grid {
  display: grid;
  gap: var(--pl-space-7);
  align-items: start;
}

body.page-landing .hero-copy {
  display: grid;
  gap: var(--pl-space-5);
  min-width: 0;
}

/* Audience line above the H1: neutral, so the H1 phrase is the hero's only accent. */
body.page-landing .hero .eyebrow {
  margin: 0 0 calc(var(--pl-space-3) * -1);
  color: var(--pl-text-muted);
}

body.page-landing .hero .eyebrow::after {
  display: none;
}

body.page-landing .hero h1 {
  max-width: 18ch;
  text-wrap: balance;
}

/* ACCENT 1 of 3: the outcome phrase in the H1. */
body.page-landing .hero h1 .hl {
  color: var(--pl-accent);
}

body.page-landing .hero .t-intro {
  max-width: 34ch;
  color: var(--pl-text-muted);
}

body.page-landing .hero-copy > .t-note {
  max-width: 52ch;
}

/* Result preview card: real numbers from the sample files, plain HTML on a solid card. */
body.page-landing .hero-card {
  display: grid;
  gap: var(--pl-space-4);
  align-content: start;
  min-width: 0;
  max-width: 36rem;
}

body.page-landing .hero-card-label {
  color: var(--pl-text-subtle);
  font-size: var(--pl-type-metadata);
  line-height: var(--pl-leading-note);
}

body.page-landing .hero-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pl-space-2) var(--pl-space-4);
}

body.page-landing .hero-card-amount {
  font-variant-numeric: tabular-nums;
}

body.page-landing .hero-card .table-wrap {
  border: 0;
  border-radius: 0;
  background: none;
}

body.page-landing .hero-card .table thead th {
  position: static;
  background: none;
}

body.page-landing .hero-card .table :is(th, td) {
  white-space: normal;
}

body.page-landing .hero-card .table td.num {
  white-space: nowrap;
}

body.page-landing .hero-card .table :is(th, td):first-child {
  padding-left: 0;
}

body.page-landing .hero-card .table :is(th, td):last-child {
  padding-right: 0;
}

body.page-landing .hero-card-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pl-space-2) var(--pl-space-3);
  padding-top: var(--pl-space-4);
  border-top: 1px solid var(--pl-divider);
}

body.page-landing .hero-card-file-label {
  color: var(--pl-text-muted);
  font-size: var(--pl-type-support);
}

/* ---------- How it works ---------- */

/* ACCENT 2 of 3: the step numbers become large accent numerals (no pill), on the existing accent top rule. */
body.page-landing .steps > li::before {
  display: block;
  min-width: 0;
  height: auto;
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--pl-accent);
  font: var(--pl-weight-semibold) var(--pl-type-statement)/1 var(--pl-font-ui);
}

/* ---------- Split layout: heading left, content right from 900px (What you get, FAQ) ---------- */

body.page-landing .split {
  display: grid;
}

/* ---------- What you get: one card, three file rows ---------- */

body.page-landing .files {
  display: grid;
  margin: 0;
  list-style: none;
}

body.page-landing .files > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--pl-space-2) var(--pl-space-4);
  align-items: center;
  padding-block: var(--pl-space-5);
  border-top: 1px solid var(--pl-divider);
}

body.page-landing .files > li:first-child {
  padding-top: 0;
  border-top: 0;
}

body.page-landing .files > li:last-child {
  padding-bottom: 0;
}

body.page-landing .files h3 {
  font-size: var(--pl-type-body-large);
}

body.page-landing .files > li > :is(p, code) {
  grid-column: 1 / -1;
}

body.page-landing .files > li > p {
  color: var(--pl-text-muted);
}

body.page-landing .files > li > code {
  justify-self: start;
  color: var(--pl-text-subtle);
}

/* ---------- Pricing: the one offer card (ACCENT 3 of 3: .card-offer edge + its eyebrow) ---------- */

body.page-landing .offer {
  display: grid;
  gap: var(--pl-space-6);
}

body.page-landing .offer-head {
  display: grid;
  gap: var(--pl-space-3);
  align-content: start;
}

body.page-landing .offer-head > .eyebrow {
  margin: 0;
}

body.page-landing .offer-terms {
  max-width: 34ch;
  color: var(--pl-text-muted);
  font-size: var(--pl-type-body-large);
}

body.page-landing .offer-lists {
  display: grid;
  gap: var(--pl-space-5);
  align-content: start;
}

body.page-landing .offer-list-title {
  font-size: var(--pl-type-body-large);
  line-height: 1.3;
}

body.page-landing .offer-list {
  margin: var(--pl-space-2) 0 0;
  padding: 0;
  list-style: none;
}

body.page-landing .offer-list > li {
  padding-block: var(--pl-space-3);
  border-top: 1px solid var(--pl-divider);
  color: var(--pl-text-muted);
}

body.page-landing .offer-buy {
  display: grid;
  gap: var(--pl-space-3);
  align-content: start;
  justify-items: start;
}

body.page-landing .offer-button {
  width: 100%;
}

body.page-landing .offer-fine {
  padding-top: var(--pl-space-5);
  border-top: 1px solid var(--pl-divider);
}

body.page-landing .offer-fine > .t-note {
  max-width: 72ch;
}

/* ---------- FAQ: neutral plus icon (the accent stays on the three places above) ---------- */

body.page-landing .faq summary::after {
  color: var(--pl-text-subtle);
}

/* ---------- Closing line: no band, a divider above, centered ---------- */

body.page-landing .cta {
  padding-top: 0;
}

body.page-landing .cta-band {
  display: grid;
  gap: var(--pl-space-5);
  justify-items: center;
  padding-top: var(--pl-space-7);
  border-top: 1px solid var(--pl-divider);
  text-align: center;
}

body.page-landing .cta-band > h2 {
  max-width: 24ch;
  text-wrap: balance;
}

/* ---------- 600px and up ---------- */

@media (min-width: 37.5rem) {
  body.page-landing .offer-button {
    width: auto;
  }
}

/* ---------- 900px and up ---------- */

@media (min-width: 56.25rem) {
  body.page-landing .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: var(--pl-column-gap);
    align-items: start;
  }

  body.page-landing .split > .section-head {
    margin-bottom: 0;
  }

  body.page-landing .offer {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "head lists"
      "buy lists"
      "fine fine";
    column-gap: var(--pl-column-gap);
  }

  body.page-landing .offer-head {
    grid-area: head;
  }

  body.page-landing .offer-lists {
    grid-area: lists;
  }

  body.page-landing .offer-buy {
    grid-area: buy;
  }

  body.page-landing .offer-fine {
    grid-area: fine;
  }
}

/* ---------- 1024px and up: copy left, result card right ---------- */

@media (min-width: 64rem) {
  body.page-landing .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: var(--pl-column-gap);
    align-items: center;
  }

  body.page-landing .hero-card {
    max-width: none;
  }

  body.page-landing .hero h1 {
    font-size: clamp(2.75rem, 4.4vw, 3.75rem);
  }
}
