/* ── normal-flow sections after the film: ledger, waitlist, footer,
   plus the reduced-motion narrative stack ── */

main { position: relative; z-index: 4; }

/* with the film live, main rides up over the dock beat's tail so the ledger
   heading enters exactly as the mark seats in the nav — no blank frame */
html.film-live #main { margin-top: -40vh; }

/* with the film live, the ledger leaves normal flow and becomes the records
   beat's growing panel — right 40% beside the left-biased lattice on desktop,
   bottom 40% under it on phones. film.js drives opacity/--panel-y and the
   per-row grow; reduced-motion/no-JS keeps the section in normal flow. */
html.film-live .ledger {
  position: fixed;
  z-index: 5;
  /* anchored below the fixed nav — centring slid tall panels under it */
  top: calc(66px + 3vh);
  left: auto;
  right: clamp(16px, 3vw, 52px);
  width: min(34vw, 520px);
  max-height: calc(97vh - 66px - 4vh);
  overflow: hidden;
  transform: translateY(var(--panel-y, 26px));
  opacity: 0;
  pointer-events: none;
  padding: 24px 24px 10px;
  border: 1px solid var(--hair-bone);
  border-radius: 16px;
  background: rgba(9, 15, 12, 0.78);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
  will-change: opacity, transform;
}
html.film-live .ledger .wrap { max-width: none; padding: 0; }
html.film-live .ledger .eyebrow { margin-bottom: 10px; font-size: 10px; }
html.film-live .ledger h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
html.film-live .ledger .ledger-sub { margin-top: 10px; font-size: 13px; max-width: none; }
html.film-live .ledger .ledger-list { margin-top: 20px; }
html.film-live .ledger .errand { padding: 11px 6px; gap: clamp(10px, 1.4vw, 16px); will-change: opacity, transform; }
html.film-live .ledger .errand-name { font-size: 13.5px; }
html.film-live .ledger .errand-amount { font-size: 13.5px; }
html.film-live .ledger .errand-status { font-size: 9.5px; padding: 5px 10px; }
/* the longer status microcopy gets its own row inside the narrow panel */
html.film-live .ledger .errand {
  grid-template-columns: 14px minmax(0, 1fr) auto;
  grid-template-areas:
    "dot main amount"
    ".   status status";
  row-gap: 7px;
}
html.film-live .ledger .errand-dot { grid-area: dot; }
html.film-live .ledger .errand-main { grid-area: main; }
html.film-live .ledger .errand-amount { grid-area: amount; }
html.film-live .ledger .errand-status { grid-area: status; justify-self: start; }
html.film-live .ledger .ledger-caption { margin-top: 14px; font-size: 10px; }

@media (max-width: 860px) {
  html.film-live .ledger {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    /* the pinned Step 4 copy owns the top of the screen; the panel fills
       the rest, and its row list scrolls internally within it */
    height: 56vh;
    max-height: 56vh;
    overflow: hidden;
    transform: translateY(var(--panel-y, 26px));
    border-radius: 16px 16px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 16px var(--pad-gutter) 6px;
  }
  html.film-live .ledger .ledger-sub { display: none; }
  html.film-live .ledger .eyebrow { display: none; }
  html.film-live .ledger h2 { font-size: 1.15rem; }
  html.film-live .ledger .ledger-list {
    margin-top: 10px;
    transform: translateY(var(--list-y, 0px));
    will-change: transform;
  }
  html.film-live .ledger .errand { padding: 8px 4px; }
  html.film-live .ledger .errand-meta { display: none; }
}

/* ── LEDGER ── */
.ledger {
  position: relative;
  padding: calc(var(--space-section) * 0.55) 0 calc(var(--space-section) * 0.8);
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0) 0%, rgba(5, 7, 10, 0.55) 18%, rgba(5, 7, 10, 0.55) 100%);
}
.ledger-wrap { max-width: 880px; }
.ledger h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.ledger-sub {
  margin: 18px 0 0;
  max-width: 52ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--bone-soft);
}

.ledger-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid var(--hair-bone);
}
.errand {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(12px, 2.4vw, 26px);
  padding: 18px clamp(10px, 1.6vw, 18px);
  border-bottom: 1px solid var(--hair-bone);
  transition: background var(--motion-fast) var(--easing-default);
}
.errand:hover { background: rgba(244, 241, 233, 0.03); }
.errand.is-held { background: rgba(227, 160, 8, 0.045); }
.errand.is-inflow { background: rgba(70, 194, 178, 0.045); }
.errand.is-inflow:hover { background: rgba(70, 194, 178, 0.075); }
.errand.is-outflow { background: rgba(224, 122, 106, 0.045); }
.errand.is-outflow:hover { background: rgba(224, 122, 106, 0.075); }
.errand.is-held:hover { background: rgba(227, 160, 8, 0.075); }

.errand-dot { width: 8px; height: 8px; border-radius: 50%; justify-self: center; }
.errand-dot.is-auto { background: var(--teal-bright); box-shadow: 0 0 9px rgba(70, 194, 178, 0.55); }
.errand-dot.is-hold { background: var(--amber); box-shadow: 0 0 9px rgba(227, 160, 8, 0.55); }
.errand-dot.is-block { background: #D96A55; box-shadow: 0 0 9px rgba(217, 106, 85, 0.55); }

.errand-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.errand-name { font-size: 15px; font-weight: 500; color: var(--bone); }
.errand-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--bone-faint); }

.errand-amount {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
/* signed direction: green in, red out, amber under review; blocked stays
   neutral — nothing moved */
.errand-amount.is-in { color: var(--teal-bright); }
.errand-amount.is-out { color: #E07A6A; }
.errand-amount.is-review { color: var(--amber); }

.errand-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.errand-status.is-auto {
  color: var(--teal-bright);
  border: 1px solid rgba(70, 194, 178, 0.3);
  background: rgba(47, 158, 146, 0.09);
}
.errand-status.is-hold {
  color: var(--amber);
  border: 1px solid rgba(227, 160, 8, 0.35);
  background: rgba(227, 160, 8, 0.09);
}
.errand.is-blocked { background: rgba(217, 106, 85, 0.045); }
.errand.is-blocked:hover { background: rgba(217, 106, 85, 0.075); }
.errand-status.is-block {
  color: #E08A78;
  border: 1px solid rgba(217, 106, 85, 0.38);
  background: rgba(217, 106, 85, 0.09);
}
.ledger-caption {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

@media (max-width: 720px) {
  .errand {
    grid-template-columns: 14px minmax(0, 1fr) auto;
    grid-template-areas:
      "dot main amount"
      ".   status status";
    row-gap: 10px;
  }
  .errand-dot { grid-area: dot; }
  .errand-main { grid-area: main; }
  .errand-amount { grid-area: amount; }
  .errand-status { grid-area: status; justify-self: start; }
}

/* ── INTERLUDE — a quiet editorial beat between the ledger and the trust case ── */
.interlude {
  position: relative;
  padding: calc(var(--space-section) * 0.45) var(--pad-gutter);
  text-align: center;
}
.interlude-line {
  margin: 0 auto;
  max-width: 28ch;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.05rem + 2.2vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--bone);
}

/* ── TRUST — where the money actually sits ── */
.trust {
  position: relative;
  padding: calc(var(--space-section) * 0.6) 0;
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.55), rgba(5, 7, 10, 0.35));
}
.trust-wrap { max-width: 880px; }
.trust h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.trust-body {
  margin: 20px 0 0;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--bone-soft);
}

/* ── FAQ ── */
.faq {
  position: relative;
  padding: calc(var(--space-section) * 0.6) 0;
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.35), rgba(5, 7, 10, 0.55));
}
.faq-wrap { max-width: 880px; }
.faq-list {
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--hair-bone);
}
.faq-item { margin: 0; border-bottom: 1px solid var(--hair-bone); }
.faq-q {
  margin: 0;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bone);
  transition: color var(--motion-fast) var(--easing-default);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--sun-bright); }
.faq-toggle { flex: none; width: 14px; text-align: center; }
.faq-toggle::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--sun);
}
details[open] .faq-toggle::before { content: "\2212"; }
.faq-a {
  margin: 0;
  padding: 0 0 22px;
  margin-inline-start: 0;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--bone-soft);
}

/* ── WAITLIST ── */
.waitlist {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 14vh var(--pad-gutter) calc(10vh + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.55), rgba(0, 0, 0, 0.35));
}
.waitlist h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.waitlist-sub {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--bone-soft);
}

#waitlist-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
#waitlist-email {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--bone);
  background: rgba(244, 241, 233, 0.04);
  border: 1px solid rgba(244, 241, 233, 0.22);
  border-radius: 10px;
  padding: 13px 16px;
  min-width: min(320px, 78vw);
  transition: border-color var(--motion-fast) var(--easing-default);
}
#waitlist-email::placeholder { color: var(--bone-faint); }
#waitlist-email:focus { outline: none; border-color: var(--sun); }
#waitlist-email:disabled { opacity: 0.6; }

/* teal — the one CTA accent for every join-the-waitlist action (matches the
   nav pill and the ledger's auto-paid states; gold stays the sun/identity) */
#waitlist-form button {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--on-teal);
  background: var(--teal);
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--easing-default), filter var(--motion-fast) var(--easing-default), background var(--motion-fast) var(--easing-default);
}
#waitlist-form button:hover { background: var(--teal-bright); transform: translateY(-1px); }
#waitlist-form button:active { transform: translateY(0); }
#waitlist-form button:disabled { opacity: 0.6; cursor: default; transform: none; }

.waitlist-note {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--bone-faint);
}
#waitlist-status {
  margin: 18px 0 0;
  min-height: 1.6em;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sun);
}

/* ── FOOTER ── */
.foot-links .foot-contact-toggle {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--bone-faint);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color var(--motion-fast) var(--easing-default);
}
.foot-links .foot-contact-toggle:hover { color: var(--bone); }

/* small bar the Contact button opens — just the email ids */
.foot-contact-bar[hidden] { display: none; }
.foot-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--hair-d);
  border-radius: 10px;
  background: rgba(244, 241, 233, 0.03);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.foot-contact-bar a { color: var(--bone-soft); transition: color var(--motion-fast) var(--easing-default); }
.foot-contact-bar a:hover { color: var(--sun-bright); }

/* the company line reads like a copyright notice */
.foot-legal {
  margin: 22px 0 0;
  padding: 0 var(--pad-gutter);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--bone-faint);
}

.site-footer {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--hair-bone);
  background: rgba(5, 7, 10, 0.72);
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
}
.foot-id { font-family: var(--font-mono); font-size: 12.5px; color: var(--sun); letter-spacing: 0.02em; }
.foot-links { display: flex; gap: 26px; }
.foot-links a {
  font-size: 13px;
  color: var(--bone-faint);
  transition: color var(--motion-fast) var(--easing-default);
}
.foot-links a:hover { color: var(--bone); }
.foot-tag { margin: 0 0 0 auto; font-size: 12.5px; color: var(--bone-faint); }
@media (max-width: 640px) { .foot-tag { margin-left: 0; } }

/* ── REDUCED-MOTION STACK — the film's story, stacked and still ── */
.reduced-stack { position: relative; z-index: 4; padding: var(--space-section) 0 0; }
.reduced-beat {
  max-width: 660px;
  margin: 0 auto;
  padding: 4rem var(--pad-gutter);
}
.reduced-beat + .reduced-beat { border-top: 1px solid var(--hair-bone); }
.reduced-beat h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.reduced-body { margin: 16px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--bone-soft); max-width: 56ch; }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.mono-tag { margin: 20px 0 0; font-family: var(--font-mono); font-size: 0.92rem; color: var(--sun); }
