/* skin.css — the s12 design-pass component skins (R3.12).
 *
 * Expressed ONLY through the shipped template class names (the
 * s01-s11 contract; the design hooks onto what things ARE):
 * buttons ink never green, the escrow panel as the protagonist,
 * cards, creation surfaces at blank-page density, prices in serif,
 * labels uppercase tracked, hairlines over shadows. Every brand
 * value is a var() reference into tokens.css — zero literal colors,
 * fonts, radii or spacing outside the two vendored @font-face
 * blocks. Trust green appears ONLY in the pinned trust-state rules.
 * No markup is invented; pseudo-elements are skin (the milestone
 * dots ride the existing data-state attribute).
 */

/* ── Vendored variable fonts (C2.8: vendored-only, no CDN) ───── */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/sourceserif4-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/publicsans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ── Wordmark ────────────────────────────────────────────────── */

/* DESIGN.md "Wordmark": live text in Source Serif 4 700; the font's
   own period colored verified green via the dot span (the logo
   exception). Never adjacent to the h. mark. */
.site-logo {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-h3);
  letter-spacing: var(--tracking-heading);
  text-decoration: var(--text-decoration-none);
  color: var(--color-ink);
}

.site-logo-dot {
  color: var(--color-ai);
}

/* ── Headings ────────────────────────────────────────────────── */

/* Serif headlines carry the weight of a contract; h3 stays sans. */
h1,
h2 {
  font-family: var(--font-heading);
  letter-spacing: var(--tracking-heading);
}

h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-tight);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-h3);
}

/* ── Header / nav ────────────────────────────────────────────── */

/* The mock's nav sits on paper with a hairline; source order
   (this file loads after base.css) overrides the surface header. */
.site-header {
  background-color: var(--color-paper);
}

.site-nav-link {
  color: var(--color-muted);
}

.site-nav-link:hover,
.site-nav-link:focus {
  color: var(--color-ink);
}

.logout-form {
  display: var(--field-display);
  flex-direction: var(--field-direction);
}

/* ── Buttons ─────────────────────────────────────────────────── */

/* Buttons are ink, NEVER green: an action is a decision, not a
   promise (DESIGN.md: if a pixel is green, it means something). */
.form-submit {
  padding: var(--pad-button);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--color-surface);
  background-color: var(--color-ink);
  border: var(--border-width) solid var(--color-ink);
  border-radius: var(--radius-sm);
}

.hero-cta {
  display: var(--link-display);
  padding: var(--pad-button);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--color-surface);
  background-color: var(--color-ink);
  border: var(--border-width) solid var(--color-ink);
  border-radius: var(--radius-sm);
}

.hero-cta:hover,
.hero-cta:focus {
  color: var(--color-surface);
}

/* ── Fields / labels / errors / flash ────────────────────────── */

.form-input,
.form-textarea {
  color: var(--color-ink);
  background-color: var(--color-surface);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-sm);
}

.form-label {
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-size: var(--font-size-label);
  color: var(--color-ink);
}

/* The brand defines no error color — errors render in ink at 700
   weight (loud by weight, never an invented red). */
.field-error,
.form-error,
.checkout-error,
.payout-error,
.wallet-error {
  color: var(--color-ink);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-body-sm);
}

.flash-message {
  background-color: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* ── Cards & lists ───────────────────────────────────────────── */

.product-card,
.mission-card {
  background-color: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--pad-card);
}

.product-card-title,
.mission-charter {
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
}

.featured-products-list,
.catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--space-lg);
}

/* ── Prices (serif 700 — the weight of a contract) ───────────── */

.product-card-price,
.checkout-price,
.order-amount,
.escrow-total-held,
.escrow-total-released,
.escrow-total-committed,
.escrow-milestone-held,
.escrow-milestone-released,
.escrow-milestone-committed,
.milestone-amount,
.awarded-amount,
.payout-amount,
.movement-amount,
.wallet-withdrawable,
.wallet-promo,
.wallet-total {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
}

.product-card-price,
.checkout-price {
  font-size: var(--font-size-h3);
}

.escrow-total-held,
.escrow-total-released,
.escrow-total-committed {
  font-size: var(--font-size-h2);
}

/* Held money is the trust state made visible (DESIGN.md's reserved
   trust: held escrow = the promise, kept); released/committed stay
   ink — the figures below name only what the brand reserves. */
.escrow-total-held,
.escrow-milestone-held {
  color: var(--color-trust);
}

/* ── Escrow panel (the protagonist) ──────────────────────────── */

.escrow-totals {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  padding: var(--pad-panel);
}

.escrow-row,
.escrow-list {
  border-bottom: var(--border-width) solid var(--color-border);
}

.escrow-list li:last-child,
.escrow-row:last-child {
  border-bottom: var(--border-width) solid var(--color-line);
}

.escrow-empty {
  color: var(--color-muted);
}

/* ── Milestone dots (pure CSS over the existing data-state) ──── */

/* The one fusion-mock device the frozen anatomy absorbs without
   markup: a ::before dot per milestone — no DOM node, no text. */
.milestone-row {
  position: relative;
}

.milestone-row::before {
  content: "";
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: var(--nav-display);
  position: absolute;
  left: 0;
  top: var(--space-sm);
}

.milestone-row[data-state="validated"]::before {
  background-color: var(--color-trust);
}

.milestone-row[data-state="active"]::before,
.milestone-row[data-state="submitted"]::before {
  background-color: var(--color-surface);
  border: var(--border-width) solid var(--color-ai);
}

.milestone-row[data-state="pending"]::before,
.milestone-row[data-state="rejected"]::before,
.milestone-row[data-state="disputed"]::before {
  background-color: var(--color-surface);
  border: var(--border-width) solid var(--color-line);
}

/* ── Mission states ──────────────────────────────────────────── */

.mission-state-tag {
  display: var(--link-display);
  padding: var(--pad-badge);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-size: var(--font-size-label);
}

.mission-state-clarity,
.mission-created,
.mission-progress {
  color: var(--color-muted);
}

.mission-list {
  display: grid;
  gap: var(--space-lg);
}

.mission-list-empty {
  color: var(--color-muted);
}

/* ── Creation surfaces (the blank page) ──────────────────────── */

.advisor-chat,
.wizard-page {
  max-width: var(--content-max-narrow);
  margin: var(--content-margin);
  padding: var(--content-padding);
}

.advisor-transcript,
.wizard-transcript {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  padding: var(--pad-creator);
}

.advisor-heading,
.wizard-heading,
.advisor-intro,
.wizard-intro {
  font-family: var(--font-body);
}

/* ── Hero / sections ─────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: var(--space-xxl) 0;
}

.hero-cta {
  margin-top: var(--space-lg);
}

.use-case {
  border-top: var(--border-width) solid var(--color-border);
  padding: var(--space-lg) 0;
}

/* ── Admin console ───────────────────────────────────────────── */

/* The console inherits the shared vocabulary; no admin-specific
   colors exist. */
.admin-overview {
  display: grid;
  gap: var(--space-lg);
}

.admin-counter {
  display: grid;
  gap: var(--space-md);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-size: var(--font-size-label);
}

.admin-alerts {
  padding: var(--pad-card);
}

.alert-list,
.alert-row {
  border-bottom: var(--border-width) solid var(--color-border);
}

.alert-list-note,
.alert-list-empty {
  color: var(--color-muted);
}

.admin-console-links {
  display: flex;
  gap: var(--space-md);
}

/* ── Footer ──────────────────────────────────────────────────── */

/* Inherits base.css's footer (muted, hairline top); the skin
   re-anchors both reads to the brand tokens by name. */
.site-footer {
  border-top: var(--border-width) solid var(--color-border);
  color: var(--color-muted);
}

/* ── Legal / error pages ─────────────────────────────────────── */

.legal-content {
  max-width: 65ch;
}

.error-page {
  text-align: center;
  padding: var(--space-xxl) 0;
}
/* ── s14 landing: headline display cut ───────────────────────── */

/* display optical sizing — the variable woff2 does not auto-engage
   opsz; headlines must pin the display cut. */
h1, h2, .top-word {
  font-variation-settings: "opsz" 60, "wght" 700;
}

/* ── s14 landing: the LED dot (pulse, never a bounce) ────────── */

@keyframes ia-led {
  0% {opacity: 0}
  8% {opacity: 1}   18% {opacity: .15}
  26% {opacity: 1}  36% {opacity: .15}
  55% {opacity: 1}
  92% {opacity: 0}  100% {opacity: 0}
}
.ia-dot {animation: ia-led 2.8s ease-in-out infinite}

/* ── s14 landing: top bar, hollow menu button, center wordmark ─ */

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
}

.top-logo {
  justify-self: start;
  text-decoration: none;
  color: var(--color-ink);
  display: inline-grid;
  place-items: center;
}

.top-word {
  justify-self: center;
  font-family: var(--font-serif);
  font-size: var(--font-size-h3);
  letter-spacing: var(--tracking-heading);
  text-decoration: none;
  color: var(--color-ink);
}

.top-word .dot {
  color: var(--color-ai);
}

.menubtn-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

/* the hollow menu button (s19 round 7: the lettermark label IS the
   menu button — the separate hamburger glyph box is retired; the
   name stays as a no-op hook) */
.menubtn-label {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.clickaway {
  display: none;
}

.top-menu {
  display: none;
}

/* the landing-v1 checkbox menu mechanics: no JS */
#navtoggle:checked ~ .top-menu {
  display: block;
}

#navtoggle:checked ~ .clickaway {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
}

.top-menu {
  position: absolute;
  z-index: 100;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.site-header {
  position: relative;
}

/* ── s14 landing: section skins ──────────────────────────────── */

.landing-hero {
  padding: var(--space-xxl) 0;
  text-align: center;
}

.landing-kicker {
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-size: var(--font-size-label);
  color: var(--color-muted);
}

.landing-hero-sub {
  max-width: var(--content-max-narrow);
  margin: 0 auto var(--space-lg);
  color: var(--color-muted);
}

.btn-primary {
  display: inline-block;
  padding: var(--pad-button) var(--space-lg);
  background: var(--color-ink);
  color: var(--color-paper);
  border: var(--border-width) solid var(--color-ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.landing-image-band {
  padding: var(--space-xl) 0;
}

.landing-image-band--light {
  background: var(--color-surface);
}

.landing-image-band--dark {
  background: var(--color-ink);
  color: var(--color-paper);
}

.landing-image-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.landing-image-band-img {
  max-width: 100%;
  border-radius: var(--radius-md);
}

.landing-typed {
  font-family: var(--font-serif);
  font-size: var(--font-size-h3);
}

/* Two-channel promise (owner decision 2026-10-02): line stays muted;
   the agent-bid figures are machine activity — AI Blue; "held in
   escrow" is proof — stays green (the seed marks it escrow-hold). */
.landing-promise {
  color: var(--color-muted);
}

.landing-promise b {
  color: var(--color-ai-deep);
}

.landing-promise .escrow-hold {
  color: var(--color-trust);
}

.landing-hint {
  font-size: var(--font-size-body-sm);
  color: var(--color-muted);
}

.circle-sequence {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.circle-step-dot {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 2px solid var(--color-ink);
  border-radius: 50%;
}

.circle-step-label {
  display: block;
  font-weight: 700;
}

.circle-step-small {
  display: block;
  color: var(--color-muted);
  font-size: var(--font-size-body-sm);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.use-case-card {
  position: relative;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--pad-card);
}

.use-case-cat {
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-size: var(--font-size-label);
  color: var(--color-muted);
}

.featured-products-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.product-card {
  position: relative;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--pad-card);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: var(--font-size-h2);
  margin: 0;
}

.stat-label {
  color: var(--color-muted);
  font-size: var(--font-size-body-sm);
}

.values-list {
  list-style: none;
  padding: 0;
}

.values-item {
  padding: var(--space-sm) 0;
  border-bottom: var(--border-width) solid var(--color-line);
}

.landing-ai-band {
  background: var(--color-surface);
  border-top: var(--border-width) solid var(--color-line);
  border-bottom: var(--border-width) solid var(--color-line);
  padding: var(--space-xl) 0;
  text-align: center;
}

.journey-list {
  list-style: none;
  padding: 0;
}

.journey-rn {
  font-family: var(--font-serif);
  font-weight: 700;
}

.landing-newsletter {
  text-align: center;
  padding: var(--space-xl) 0;
}

.landing-privacy-note {
  color: var(--color-muted);
  font-size: var(--font-size-body-sm);
}

.landing-final-cta {
  text-align: center;
  padding: var(--space-xxl) 0;
}

/* ── Blue-for-AI cascade (owner decision 2026-10-02; issue #47) ── */

/* Keyboard focus is the machine's presence: AI Blue ring + wash.
   base.css has no focus rule of its own (browser default). */
:focus-visible {
  outline: 2px solid var(--color-ai);
  outline-offset: 2px;
}

::selection {
  background: var(--color-ai-bg);
}

/* Featured-product cards: a hover carries the machine's accent — a
   2px blue top edge (the landing-v2 card hover device). */
.product-card:hover {
  box-shadow: inset 0 2px 0 var(--color-ai);
}

/* ── s15: responsive + ink bands + two-channel markup ────────── */

.landing-kicker-ai {
  color: var(--color-ai-deep);
}

.landing-kicker-t {
  color: var(--color-trust);
}

/* PLAIN RULE FIRST (issue #49): equal specificity resolves by
   source order — declared `inherit` written after a channel class
   would BEAT it. Plain values inherit; the channel classes win for
   the marked figures (ruling below, now encoded by this order). */
.stat-value {
  color: inherit;
}

.stat-value--trust {
  color: var(--color-trust);
}

.stat-value--ai {
  color: var(--color-ai-lift);
}

.landing--ink {
  background: var(--color-ink);
  color: var(--color-paper);
}

.landing--ink .landing-hero-sub,
.landing--ink .landing-image-band-text p,
.landing--ink .circle-step-label,
.landing--ink .journey-step p,
.landing--ink .stat-label {
  color: rgba(250, 249, 246, 0.65);
}

.landing--ink .circle-step-dot {
  border-color: rgba(250, 249, 246, 0.6);
  color: var(--color-paper);
}

.landing--ink .landing-kicker {
  color: rgba(250, 249, 246, 0.65);
}

.landing--ink .values-item span {
  color: rgba(250, 249, 246, 0.72);
}

.landing--ink h2,
.landing--ink .values-item b {
  color: var(--color-paper);
}

.site-footer-ink {
  background: var(--color-ink);
  color: rgba(250, 249, 246, 0.8);
  border-top: none;
}

.site-footer-ink a {
  color: var(--color-paper-lift);
}

.site-footer-ink a:hover {
  color: var(--color-paper);
}

@media (max-width: 940px) {
  .use-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-products-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .top-word {
    display: none;
  }

  .use-case-grid,
  .featured-products-list,
  .stats-grid,
  .journey-list {
    grid-template-columns: 1fr;
  }

  .values-list,
  .landing-values-list ul {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  section,
  .landing-hero,
  .landing-final-cta {
    padding: var(--space-xl) 0;
  }

  .circle-sequence {
    gap: var(--space-md);
  }

  .circle-step-dot {
    width: 30px;
    height: 30px;
  }

  .site-footer,
  .site-footer-ink {
    display: grid;
    gap: var(--space-md);
  }

  .footer-nav {
    display: grid;
    gap: var(--space-xs);
  }
}

/* ── s18: landing anatomy v2 — the mockup scale (design source:
   meta/brand/mockups/landing/landing-v3.html @ meta bc78e66;
   v0.1 pinned landing-v2 @ 8b353be — SUPERSEDED) ── */

/* Section scaffolding: the mockup rhythm (96px sections; the hero
   buys the fixed-header clearance). The wrap chrome stays the
   shipped main.content constraint. */
.landing-page section {
  padding: 96px 0;
}

.landing-home .landing-hero {
  padding: 150px 0 60px;
}

/* Section kickers + headings (#50): the mockup .kicker/.sub.
   v0.2: kicker 14px (owner 2026-10-06; the mock's 12.5px failed
   over bright band spots — 3.81:1 measured). */
.landing-kicker {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

/* v0.2 a11y: the dark-band AI text channels (6.93:1 on ink). */
.landing-kicker-ai-dark {
  color: var(--color-ai-lift-hi);
}

.landing-ai-quiet {
  color: var(--color-ai-lift-hi);
}

/* v0.2: the ghost button (secondary CTAs, human actions stay ink). */
.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
}

.btn-ghost:hover {
  background: rgba(19, 32, 46, 0.06);
}

/* v0.2: hero dual-CTA row + policy anchor. */
.landing-hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-hero-anchor {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--color-muted);
}

/* v0.2: the two-lane how + closing line. */
.lane-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 34px 0 0;
  text-align: center;
}

.lane-label + .circle-sequence {
  margin-top: 30px;
}

.landing-closing {
  margin: 44px auto 0;
  font-size: 16px;
  max-width: 56ch;
}

.landing-section-ctas {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-final-ctas {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* v0.2: the featured product cards + demo pill. */
.badge-demo {
  background: var(--color-ai-bg);
  color: var(--color-ai-deep);
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
}

.product-card-tagline,
.product-card-detail {
  font-size: 14.5px;
  color: var(--color-muted);
}

.product-card-detail {
  font-size: 13px;
}

.product-card-badge {
  margin-top: 14px;
}

.product-card-cta {
  margin-top: 16px;
}

.product-card-cta .btn-primary {
  padding: 10px 22px;
  font-size: 14px;
}

/* v0.2: the circle icon grammar — stroke inherited here; never
   blue (machine) nor green (trust). */
.circle-step-dot--empty svg {
  width: 40px;
  height: 40px;
}

.circle-step-dot--empty svg path,
.circle-step-dot--empty svg rect,
.circle-step-dot--empty svg circle {
  stroke: var(--color-ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing--ink .circle-step-dot--empty svg path,
.landing--ink .circle-step-dot--empty svg rect,
.landing--ink .circle-step-dot--empty svg circle {
  stroke: var(--color-paper);
}

/* v0.2 continues below with the v0.1 skin blocks (bgimg, creator,
   circles, values, journey, newsletter, final-cta, header, the
   floating treatment, responsive) — those are UNCHANGED by v0.2
   except where noted in the v0.2 header above. */
.landing-page h2 {
  font-size: 38px;
}

h2 {
  font-variation-settings: "opsz" 48, "wght" 700;
}

.landing-sub {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.landing--ink .landing-sub {
  color: rgba(250, 249, 246, 0.8);
}

.landing--ink .landing-ai-band-sub {
  color: rgba(250, 249, 246, 0.8);
}

/* The bgimg band treatment (#53): data-driven (bg_image + veil),
   console-replaceable stand-ins (D6). */
.landing-bgimg {
  background-size: cover;
  background-position: center;
  position: relative;
}

.landing-bgimg::before {
  content: "";
  position: absolute;
  inset: 0;
}

.landing-bgimg > * {
  position: relative;
}

.landing-bgimg--light::before {
  background: linear-gradient(var(--color-paper), rgba(250, 249, 246, 0) 18%, rgba(250, 249, 246, 0) 86%, var(--color-paper));
}

.landing-bgimg--ink::before {
  background: linear-gradient(rgba(19, 32, 46, 0.86), rgba(19, 32, 46, 0.92));
}

.landing-bgimg--ink-soft::before {
  background: linear-gradient(rgba(19, 32, 46, 0.72), rgba(19, 32, 46, 0.86));
}

/* The creator card (#52): the mockup .creator device — window bar,
   typed line + caret, actions row, hint inside the card. */
.creator-card {
  max-width: 720px;
  margin: 44px auto 0;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  text-align: left;
}

.creator-bar {
  height: 42px;
  border-bottom: var(--border-width) solid var(--color-line);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 7px;
}

.creator-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-line);
  display: block;
}

.creator-bar-label {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.creator-body {
  padding: 32px 36px 28px;
}

.creator-caret {
  display: inline-block;
  width: 2px;
  height: 22px;
  background: var(--color-ink);
  vertical-align: -4px;
  margin-left: 2px;
  animation: caret-blink 1.1s step-end infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.creator-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: var(--border-width) solid var(--color-line);
}

.creator-card .landing-hint {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  padding: 0 0 14px;
}

/* The circle device at mockup scale (#52): 92px circles, state
   borders, the LED and the check. */
.circle-sequence {
  gap: 34px;
  max-width: 860px;
  margin: 52px auto 0;
  text-align: center;
}

.circle-step-dot {
  width: 92px;
  height: 92px;
  border-width: 1.5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.circle-step-dot--thinking {
  border-color: var(--color-ai);
}

.landing--ink .circle-step-dot--thinking {
  border-color: var(--color-ai-lift);
}

.circle-step-dot--done {
  border-color: var(--color-trust);
}

.circle-step-dot svg {
  width: 40px;
  height: 40px;
}

.circle-step-dot--done svg path {
  stroke: var(--color-trust);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ia-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-ai);
  display: block;
}

.landing--ink .ia-dot {
  background: var(--color-ai-lift);
}

.circle-step-label {
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 600;
}

.circle-step-small {
  font-size: 13px;
}

.landing-section-cta {
  margin-top: 46px;
}

/* Use-case section chrome (the mockup surface band). */
.landing-use-case-cards {
  background: var(--color-surface);
  border-top: var(--border-width) solid var(--color-line);
  border-bottom: var(--border-width) solid var(--color-line);
}

/* Stats band at mockup scale (#52): 52px serif figures, value
   over label. The s18 weight/size re-declaration rides the s14
   `.stat-value` cascade (same-selector merge by source order —
   issue #49: the merged read is the honest read). */
.stat {
  display: flex;
  flex-direction: column-reverse;
}

.stat-value {
  font-weight: 700;
  font-size: var(--font-size-h1);
}

.stat-label {
  font-size: 13.5px;
  margin-top: 6px;
}

/* Values grid (#52): the 2-col proof list with trust dots. */
.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
  max-width: 780px;
  margin: 40px auto 0;
  text-align: left;
}

.values-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-bottom: none;
  padding: 0;
}

.values-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-trust);
  margin-top: 8px;
  flex: none;
}

.landing--ink .values-dot {
  box-shadow: 0 0 0 4px rgba(14, 124, 91, 0.22);
}

.values-text span {
  font-size: 14px;
  color: var(--color-muted);
}

.landing--ink .values-text span {
  color: rgba(250, 249, 246, 0.72);
}

/* Journey strip (#52): the 4-col ruled strip. */
.journey-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--border-width) solid var(--color-line);
  margin-top: 44px;
}

.journey-step {
  padding: 22px 22px 6px 0;
  border-left: var(--border-width) solid var(--color-line);
}

.journey-step:first-child {
  border-left: none;
  padding-left: 0;
}

.journey-step:not(:first-child) {
  padding-left: 22px;
}

.journey-rn {
  font-size: 24px;
}

.journey-text {
  display: block;
  font-size: 14px;
  color: var(--color-muted);
  margin-top: 8px;
}

/* Newsletter card (#52): the surface box (the form itself is #44). */
.newsletter-card {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  max-width: 640px;
  margin: 40px auto 0;
  padding: 34px 38px;
}

/* s19 (spec v0.3 §5): the form MARKUP lands with the mockup form
   visuals (mockup 274-276, transposed onto the shipped token names).
   The endpoint is #44's — the markup + visuals only. */
.landing-newsletter form {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.landing-newsletter form input {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-ink);
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 6px;
}
.landing-newsletter form input:focus {
  border-color: var(--color-ai);
  box-shadow: 0 0 0 3px var(--color-ai-bg);
  outline: none;
}

/* Final CTA narrow wrap. */
.landing-final-cta {
  max-width: var(--content-max-narrow);
  margin: 0 auto;
}

/* Header (#51): the three-cell top bar + top-auth. */
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 28px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  position: relative;
}

.top-word {
  justify-self: center;
}

.top-auth {
  justify-self: end;
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14.5px;
}

.top-auth-link {
  color: var(--color-muted);
  text-decoration: none;
}

.top-auth-link:hover {
  color: var(--color-ink);
}

.top-auth-cta {
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

/* The logged-in name (D7: a plain span) wears the muted tone — the
   app mock's own .who device (dashboard-c-hybrid.html line 60). */
.top-auth-who {
  color: var(--color-muted);
}

/* The landing-only floating treatment: transparent over the hero,
   paper + hairline after 240px of scroll (pure CSS scroll-driven
   animation, no JS — Chromium 115+; the @supports guard leaves
   non-supporting browsers on the transparent base, the mockup's
   own degradation). Scoped to .landing-home: every other page
   keeps the shipped static paper bar. */
.landing-home .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  box-shadow: none;
}

@supports (animation-timeline: scroll()) {
  .landing-home .site-header {
    animation: top-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0 240px;
  }
}

@keyframes top-solid {
  from {
    background: transparent;
    box-shadow: none;
  }
  to {
    background: rgba(250, 249, 246, 0.92);
    box-shadow: 0 1px 0 var(--color-line);
  }
}

/* Responsive additions (the mockup 640 block; the s15 940/640
   blocks stay as shipped). */
@media (max-width: 640px) {
  .landing-page section {
    padding: 72px 0;
  }
  .landing-page h2 {
    font-size: 28px;
  }
  .circle-step-dot {
    width: 72px;
    height: 72px;
  }
  .values-list {
    grid-template-columns: 1fr;
  }
  .top {
    padding: 12px 18px;
    grid-template-columns: auto 1fr auto;
  }
}

.landing-creator-box {
  /* wrapper only — chrome retired in s18 */
}

/* ── s19: design parity v3 ── */

/* Form B: the wrapper's constraint lifts on the landing route —
   the band backgrounds reach the viewport edge. The lift is scoped to
   the landing's own <main> (the landing-scoped main rule below); the
   footer's inner div keeps the cross-page treatment. */
/* landing v3, design source:
   meta/brand/mockups/landing/landing-v3.html @ meta bc78e66 */

/* §3 buttons: the shared .btn grammar (mockup verbatim). */
.btn {
  display: inline-block;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--color-ink-hover); }
.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover { background: rgba(19, 32, 46, 0.06); }
.btn-primary {
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

/* §2 header: the lettermark button chrome (the v3 mark). Round 7:
   the lettermark IS the menu button — one box in the left cell
   (the separate two-line hamburger glyph box is retired; the
   template's label-for association keeps the checkbox mechanism). */
.top-logo .menubtn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-ink);
  background: transparent;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.top-logo .menubtn:hover {
  transform: translateY(-1px);
  background: var(--color-ink-wash);
}
.top-logo .menubtn svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* §2 menu panel: the v3 drop mechanics. */
.top-menu {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  top: 56px;
  left: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  min-width: 230px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  padding: 10px 0;
}
#navtoggle:checked ~ .clickaway {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 55;
  cursor: pointer;
}
#navtoggle:checked ~ .top-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.top-left { position: relative; }

/* Round 7 §1 header transplant (the seed's .top, line 102-104):
   grid 1fr auto 1fr — col2 auto centers the wordmark; col3 rides
   justify-self:end. No border-bottom anywhere (the mockup's
   floating bar has NO divider line — §7: nothing re-adds it). */
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 28px;
  border-bottom: none;
  background: transparent;
}
/* Round 12d (mockup MARKUP, verbatim): the bar is position:fixed
   (inset 0 0 auto 0, z-50) — the mockup CSS line 112: position fixed.
   The top-solid scroll animation paints paper + hairline over the
   first 240px (the @supports block below). The hero still starts at
   y=0 (no flow height). Fixed ≠ the retired s18 sticky shape: the
   bg starts transparent and paints ONLY via scroll-timeline. */
.landing-home .site-header {
  border-bottom: none;
  background: transparent;
  padding: 0;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}
.top-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  cursor: pointer;
}
.top-auth {
  justify-self: end;
}
/* The .top-menu dropdown: 230px wide, left-anchored BELOW the
   logo (under the label at the cell's far-left origin, x=28). */
.top-left {
  position: relative;
}
.top-menu {
  left: 0;
  border: 1px solid var(--color-line);
}
/* §6 margins: the header's bands die with the 72px total. */
/* Round 11d (owner verdict): the header margins die — the mockup bar floats directly against the hero (72px total, no bands). */
.top,
.site-header {
  margin-top: 0;
  margin-bottom: 0;
}

/* §2 wordmark: 22px serif 700 on desktop + the dot pulse. */
.top-word {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.top-word .dot {
  color: var(--color-ai);
  animation: dot-pulse 3.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* §6 sweep: card hover edges, note/more channels, a11y. */
.product-card .product-card-price {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-top: 14px;
}
.product-card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: transparent;
  border-radius: 12px 12px 0 0;
  transition: background 0.15s ease;
}
.product-card:hover::after { background: var(--color-ai); }
.use-case-card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: transparent;
  border-radius: 12px 12px 0 0;
  transition: background 0.15s ease;
}
.use-case-card:hover::after { background: var(--color-ai); }
.landing-note a {
  color: var(--color-ai-deep);
  font-weight: 600;
}
.landing-note a:hover { color: var(--color-ai); }
.landing-more a {
  color: var(--color-ai-deep);
  font-weight: 600;
}
.landing-more a:hover { color: var(--color-ai); }
h1 {
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h2 {
  /* The s18 bare opsz-48 display-cut override rides the last h2
     read (issue #49 source-order merge); the s19 sweep adds the
     line-height/letter-spacing/margin pins only. */
  font-variation-settings: "opsz" 48, "wght" 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

/* §6 hardening: site-wide. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
html, body { overflow-x: clip; }
:focus-visible {
  outline: 2px solid var(--color-ai);
  outline-offset: 2px;
}
::selection { background: var(--color-ai-bg); }

/* Round 7 §2: the copy columns read 701px (hero h1/p, mission copy)
   — the round-6 `> *` 1100 rule stays for grids/cards/ol/form; only
   the bare copy block elements tighten. */
.landing-page section > h1,
.landing-page section > p {
  max-width: 701px;
  margin-left: auto;
  margin-right: auto;
}

/* Round 7 §3: the AI band reads LEFT (ta:start, x=115) — every
   child left-justified. */
.landing-ai-band,
.landing-ai-band section,
.landing-page .sec-ai,
.sec-ai {
  text-align: left;
}
.landing-ai-band .landing-kicker,
.landing-ai-band h2,
.landing-ai-band .landing-ai-band-sub {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* Round 7 §4: circle devices re-anchored IN-FLOW, static, centered
   above their column (the legacy s13 absolute rules retire). */
.circle-device,
.dev-circle,
.circle-step-dot {
  position: static;
  display: block;
  margin: 0 auto 24px;
}
.circle-step-dot svg {
  position: static;
}

/* §4 footer brand row (the v3 site footer). */
.site-footer {
  color: var(--color-paper);
}
.f-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 44px;
}
.f-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.f-logo svg {
  width: 28px;
  height: 28px;
  opacity: 0.9;
  display: block;
}
.f-word {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.f-word .dot { color: var(--color-ai); }
.f-links {
  display: flex;
  gap: 26px;
  justify-content: flex-end;
  font-size: 14px;
}
.f-links a {
  color: var(--color-paper-lift);
  text-decoration: none;
}
.f-links a:hover { color: var(--color-paper); }
.legal {
  border-top: 1px solid var(--color-line-lift);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--color-paper-dim);
}

/* §1 full-bleed bands: only the landing loses the .content gutters
   (CSS-only — the shipped <main> semantics stay). */
body.landing-home main.content {
  max-width: none;
  margin: 0;
  padding: 0;
}
body.landing-home .landing-page section,
.landing-page section {
  max-width: none;
}

/* Form B content leg: the .wrap constraint is a per-section inner
   width (1100px centered, 32px side padding) applied to every
   section's CONTENT block elements — the band backgrounds are on
   the section roots and span (the lift removed the outer cap). */
.landing-page section > h1,
.landing-page section > h2,
.landing-page section > p,
.landing-page section > div,
.landing-page section > article,
.landing-page section > ol,
.landing-page section > ul,
.landing-page section > form,
.landing-page section > nav {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* §5 v3 640 responsive (later block: source order wins). */
@media (max-width: 640px) {
  .landing-newsletter form {
    flex-direction: column;
  }
  /* s28: the phone footer is ONE centered column (the wordmark and
     the centered links share the wrapped row); the group heads and
     the sep ride the same shape. */
  footer .f-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 12px;
    text-align: center;
  }
  .f-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 12px;
    text-align: center;
  }
  footer .f-links {
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
  }
  .f-links {
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
  }
  .legal {
    flex-direction: column-reverse;
    align-items: center;
    gap: 6px;
    text-align: center;
  }
  footer .legal {
    flex-direction: column-reverse;
    align-items: center;
    gap: 6px;
    text-align: center;
  }
  .journey-list {
    grid-template-columns: 1fr;
  }
}

/* Round 7 §5: the how-it-works lane badges are state pills —
   32px, the white number, the lane's own background (1 ai blue,
   2 ledger green, 3 ink), fully rounded. */
.circle-step-dot--number {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  color: var(--color-paper);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.lane-label + .circle-sequence .circle-step:first-child .circle-step-dot--number,
.circle-sequence .circle-step:nth-child(1) .circle-step-dot--number {
  background: var(--color-ai);
}
.circle-sequence .circle-step:nth-child(2) .circle-step-dot--number {
  background: var(--color-trust);
}
.circle-sequence .circle-step:nth-child(3) .circle-step-dot--number {
  background: var(--color-ink);
}

/* ── s9 round 8 (feedback fixes, the last of §1's scope) ──

Round 8 §1: the header is full-bleed — the s17 content cap lifts
   for the header only (28px pure padding to the edges, mockup
   x=28 / right edge at 28px from the viewport edge). Override the
   s17 caps AFTER the existing .top rules (higher specificity
   wins); the grid templates stay (never re-declared). */
.site-header .top {
  max-width: none;
  margin: 0;
  padding: var(--shell-bar-padding);
}

/* s28: the compact row (the phone app bar). The companion rides the
   SAME site as the amended rule, BEFORE the landing's own 640 pins
   (.landing-home .top) — equal specificity, source order decides, so
   the app pages read the compact tokens and the landing keeps its
   shipped phone row. */
@media (max-width: 640px) {
  .site-header .top {
    padding: var(--shell-bar-padding-compact);
    grid-template-columns: auto 1fr auto;
  }
}

/* Round 8 §2: the dropdown items stack — mockup: one per row in a
   230px panel. The existing panel position/border rules stay (not
   duplicated). The item chrome itself rides the `.top-menu a` rule
   (the s28 pinned scope, frontend#76) — no per-item rule lives
   here. */
.top-menu {
  display: flex;
  flex-direction: column;
  width: 230px;
  padding: 8px 0;
}

/* Round 8 §3: the circle devices sit IN-FLOW — the legacy
   (s13-era) absolute rules win on specificity inside the landing
   circle scope, so neutralize them AT that scope with the
   higher-specificity read; the svgs render at their intrinsic
   size, centered above each column. */
.landing-page .landing-circle-sequence svg,
.landing-page .circle-step svg,
.landing-page .circle-device svg {
  position: static;
  width: auto;
  max-width: 100%;
  margin: 0 auto 24px;
  display: block;
}

/* Round 8 §4: the lane pills — the shipped badge element has no
   .badge class (the markup carries .circle-step-dot--number only),
   so the round-7 pill rule targets the dot class directly: the
   lane's own background, white number, 32px, fully rounded. The
   lane color assignment is nth-child based per the seed's lane
   grammar (1 ai, 2 trust, 3 ink). */
/* The shipped badge element in the live lanes/cards markup is the
   span.badge-trust (landing/featured_products.html line 12) — it has
   NO .badge class, so the shipped .badge rule never hit it and the
   pill rendered transparent with ink text (round-8 #4). The mockup
   .badge chrome lands on the element's ACTUAL class. */
.badge-trust {
  display: inline-block;
  background: var(--color-trust-bg);
  color: var(--color-trust);
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
/* The lane pill chrome fires on the FIRST circle-step dot of each
   lane group (the lane-label-prefixed sequence, one lane = one
   pill per the lane grammar): ai / trust / ink backgrounds, white
   glyph, 32px radius pill — applied to the dot span whatever its
   state modifier (the seed lanes ride empty/thinking/done, whose
   spans are the same element the mockup pills). */
/* Round 9 (orchestrator, measured): the sequence device canon —
   the mockup's .seq/.c geometry (860px cap, bordered circles). */
.landing-page .circle-sequence {
  max-width: 860px;
  margin: 52px auto 0;
  gap: 34px;
  text-align: center;
}
/* Round 12: the devices are OUTLINE circles (border + transparent
  interior) — the filled/colored disc form is retired. Empty state:
  the border-only circle. Thinking: border ai + the 22px LED dot.
  Done: border trust + the check. */
.landing-page .circle-step-dot {
  width: 92px;
  height: 92px;
  border: 1.5px solid var(--color-ink);
  border-radius: 50%;
  background: transparent;
  margin: 0 auto;
  display: grid;
  place-items: center;
  position: relative;
}
.landing-page .circle-step-dot--thinking { border-color: var(--color-ai); }
.landing-page .circle-step-dot--done { border-color: var(--color-trust); }
/* Round 12c: the glyph sits 12px high in the circle (measured
   dy=-12 on the svg bbox vs the dot center) — the optical recenter. */
.landing-page .circle-step-dot svg { width: 40px; height: 40px; transform: translateY(12px); }
.landing-page .circle-step-dot .ia-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--color-ai); display: block; }


/* Round 9b (orchestrator): the hero/mission copy reads 701px — the
   .landing-hero-title rule ships its own 1100 cap; the mockup cap wins. */
.landing-page .landing-hero-title,
.landing-page .landing-mission-copy { max-width: 701px; margin-left: auto; margin-right: auto; }

/* Round 10c SUPERSEDED by 11f (the mockup geometry): the bar
   overlays the hero via absolute — see the 11f block above. */
/* Round 12 (owner captures 2026-10-08): the round-10d "no card" was a
   misread — the mockup DOES carry the floating NEW MISSION card over
   the photo (with the typed line, the promise row and the CTA). The
   round-10d hide is retired. */
.landing-page .landing-image-band .creator-card { display: block; }

/* ── s19 round 11: the mockup's .rv-* arrival system ── */
/* Source: seeds/landing-v3.mockup.html (verbatim rules, scoped to
   .landing-page; the seed scope is landing-only by construction). */
@media (prefers-reduced-motion: no-preference) {
html.js-arrivals .landing-page .rv-l,
html.js-arrivals .landing-page .rv-r,
html.js-arrivals .landing-page .rv-u { opacity: 0; }
/* Precedence fix (round 11b): the .in rules MUST out-rank the
   js-arrivals gate (0,3,1) — same prefix, extra class beats it. */
/* Round 11c: the hero sub reads the same 701px column as the title. */
.landing-page .landing-hero-sub { max-width: 701px; margin-left: auto; margin-right: auto; }
/* Round 12: the mission band reads CENTERED (the mockup form: kicker,
   h2 and sub all centered over the photo), and the band text keeps the
   701px column. */
.landing-page .landing-image-band {
  text-align: center;
}
.landing-page .landing-image-band .landing-kicker,
.landing-page .landing-image-band h2,
.landing-page .landing-image-band .landing-sub {
  max-width: 701px;
  margin-left: auto;
  margin-right: auto;
}
html.js-arrivals .landing-page .rv-l.in { animation: rv-in-l 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
html.js-arrivals .landing-page .rv-r.in { animation: rv-in-r 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
html.js-arrivals .landing-page .rv-u.in { animation: rv-in-u 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
}
@keyframes rv-in-l { from { opacity: 0; transform: translateX(-64px); } to { opacity: 1; transform: none; } }
@keyframes rv-in-r { from { opacity: 0; transform: translateX(64px); } to { opacity: 1; transform: none; } }
@keyframes rv-in-u { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

/* ── s19 round 11: the top-solid scroll treatment (the mockup's
   animation-timeline bar) — scoped to .landing-home. The bar paints
   paper + hairline over the first 240px as it scrolls away. The
   @supports guard leaves non-supporting browsers on the seeded
   transparent base (round-10's static position stands). Seeded `to`
   values: rgba(250,249,246,.92) + blur(8px) + hairline shadow. */
@supports (animation-timeline: scroll()) {
  .landing-home .top {
    animation: top-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0 240px;
  }
}
@keyframes top-solid {
  from { background: transparent; box-shadow: none; }
  to {
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 var(--color-line);
  }
}

/* Round 11h: the card cat chip (the mockup order: cat -> title). */
.landing-page .product-card .cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Round 12e: the mockup's responsive form (verbatim @640/@940 pins,
   landing-scoped — the mockup's own media block). */
@media (max-width: 940px) {
  .landing-page .featured-products-list { grid-template-columns: repeat(2, 1fr); }
  .landing-page .use-case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .landing-home .top { padding: 12px 18px; grid-template-columns: auto 1fr auto; }
  .landing-home .top-word { display: none; }
  .landing-page .featured-products-list,
  .landing-page .use-case-grid,
  .landing-page .values-list {
    grid-template-columns: 1fr;
  }
  .landing-page h1 { font-size: 36px; }
  .landing-page h2 { font-size: 28px; }
  .landing-page section { padding: 72px 0; }
  .landing-page .circle-sequence { gap: 16px; }
  .landing-page .circle-step-dot { width: 72px; height: 72px; }
  /* the 640 device: icons + dot scale down (the 40px svg → 30px) */
  .landing-page .circle-step-dot svg { width: 30px; height: 30px; }
}

/* ── s24 — client dashboard: the Mission|Progress table (#65,
   design source: the owner-accepted dashboard-c mock). Appended per
   the s24 fence: pinned NEW class names only, token vars, no legacy
   selector removals. ──────────────────────────────────────────── */

/* The pinned dot geometry references the mock's color shorthand
   (var(--ink) / var(--trust) / var(--ai)); the bridge binds those
   names to the token file — skin.css owns every color value, no
   literal is invented. Scoped to the dashboard surface. */
.missions-dashboard {
  --ink: var(--color-ink);
  --trust: var(--color-trust);
  --ai: var(--color-ai);
}

/* The needs-you band: the ink band + paper text (the mock's device).
   s29: the band's internals (the label, the queue list, the item
   buttons) are owned by the s29 block at the end of this file; the
   retired s24 first-paragraph and anchor rules are gone with it. */
.needs-you {
  background: var(--color-ink);
  color: var(--color-paper);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: 0 0 var(--space-lg);
}

/* Filter pills: zero-JS server-side filtering (C2.8). The active
   pill is the `on` class passed from the route (s24 Scope 3). */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0 0 var(--space-lg);
}

.filter-pills a {
  padding: var(--space-xs) var(--space-md);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-body-sm);
  color: var(--color-muted);
  text-decoration: var(--text-decoration-none);
}

.filter-pills a:hover,
.filter-pills a:focus {
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.filter-pills .on {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-paper);
}

/* State tag pills (`.tag` + variant): neutral by default, the
   machine wears blue, proof wears trust green, warn is ink. */
.tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}

.tag-machine {
  border-color: var(--color-ai);
  background: var(--color-ai-bg);
  color: var(--color-ai-deep);
}

.tag-proof {
  border-color: var(--color-trust);
  background: var(--color-trust-bg);
  color: var(--color-trust);
}

.tag-warn {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

/* The Mission|Progress table: two columns, hairline row rules. */
.mission-table {
  width: 100%;
  border: var(--border-width) solid var(--color-line);
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0 0 var(--space-lg);
}

.mission-table th {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: var(--border-width) solid var(--color-line);
}

.mission-table td {
  padding: var(--space-md);
  vertical-align: top;
}

.mission-table td:first-child {
  width: 62%;
}

.tbl-row {
  border-bottom: var(--border-width) solid var(--color-line);
}

.tbl-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  letter-spacing: var(--tracking-heading);
  color: var(--color-ink);
}

.tbl-title:hover,
.tbl-title:focus {
  color: var(--color-ai-deep);
}

.tbl-meta {
  color: var(--color-muted);
  font-size: var(--font-size-body-sm);
}

.tbl-progress {
  font-size: var(--font-size-body-sm);
  color: var(--color-muted);
  white-space: nowrap;
}

/* The milestone-dot row: dots in order, the pulse rides the
   EXISTING ia-led keyframes (the global reduced-motion rule scope-
   kills it). */
.mdots {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.mdot {
  display: block;
}

.mdot-pulse .mdot-core {
  animation: ia-led 2.8s ease-in-out infinite;
}

/* Empty state: the blank page (dashed hairline box). */
.blank-state {
  border: var(--border-width) dashed var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  color: var(--color-muted);
}

/* <640px: the rows stack (the mock's r5 cascade in intent) — the
   tr becomes the flex column, the td dissolves via display:contents
   so the Progress cell stays visible under the Mission cell. */
@media (max-width: 640px) {
  .mission-table,
  .mission-table tbody,
  .mission-table tr,
  .mission-table td {
    display: block;
  }

  .mission-table thead {
    display: none;
  }

  .mission-table td:first-child {
    width: auto;
  }

  .tbl-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    border: var(--border-width) solid var(--color-line);
    border-radius: var(--radius-md);
    margin: 0 0 var(--space-md);
  }

  .mission-table td {
    display: contents;
  }

  .tbl-progress {
    white-space: normal;
  }
}

/* ── s25 — mission detail redesign: milestone rail + Your move +
   the escrow panel (issue #66). Appended per the s25 fence: the
   pinned NEW class vocabulary only, every value rides the token
   vars (no literal hex), the ia-led pulse REUSES the s24
   .mdot-pulse rule (no new keyframes), the two-channel audit holds
   (buttons ink; blue ONLY the working band + the pulse cores;
   green ONLY the checks, the badge, the done band and the held
   figure). Scoped to the mission-detail surface. ─────────────── */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 44px;
  align-items: start;
}

.mission-main {
  min-width: 0;
}

.mission-side {
  min-width: 0;
  /* A3 (frontend#83): the mock's sticky sidebar — the shell's
     sticky bar (top:0, ~60px) clears at the mock's 86px offset;
     the grid's align-items:start keeps the column from
     stretching (a stretched sticky never sticks). */
  position: sticky;
  top: 86px;
}

/* Hero: breadcrumb, kicker, the capped-charter headline, the full
   charter paragraph, the escrow badge, the dots row + count and the
   serif budget figure ("agreed amount" once awarded+, budget
   before). */
.mission-hero {
  margin: 0 0 var(--space-lg);
}

.mission-crumb {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin: 0 0 var(--space-md);
  color: var(--color-muted);
  font-size: var(--font-size-body-sm);
}

.mission-crumb a {
  color: var(--color-muted);
  text-decoration: underline;
}

.mission-crumb a:hover,
.mission-crumb a:focus {
  color: var(--color-ink);
}

.crumb-sep {
  color: var(--color-muted);
}

.mission-kicker {
  font-size: var(--font-size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 var(--space-sm);
}

.mission-headline {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  letter-spacing: var(--tracking-heading);
  line-height: var(--line-height-heading, 1.15);
  color: var(--color-ink);
  margin: 0 0 var(--space-md);
}

.mission-charter {
  margin: 0 0 var(--space-md);
}

/* The badge: the escrow-protected pill (green channel). */
.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--color-trust-bg);
  color: var(--color-trust);
  font-size: var(--font-size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
}

.mission-hero-progress {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: 0 0 var(--space-md);
}

.mission-progress-note {
  color: var(--color-muted);
  font-size: var(--font-size-body-sm);
}

.mission-budget-figure {
  display: flex;
  flex-direction: column;
  margin: 0 0 var(--space-lg);
}

.mission-budget-label {
  font-size: var(--font-size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}

/* The serif figure: the page's one big number. */
.mission-budget-eur {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  color: var(--color-ink);
}

/* Status bands: the working band wears the machine channel (ai-bg),
   the done band the proof channel (trust-bg). */
.working-band {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-ai-bg);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: 0 0 var(--space-lg);
}

.working-band-lines {
  min-width: 0;
}

.working-band-bot {
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 var(--space-1);
}

.working-band-status {
  color: var(--color-muted);
  font-size: var(--font-size-body-sm);
  margin: 0;
}

.done-band {
  background: var(--color-trust-bg);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: 0 0 var(--space-lg);
}

.done-band-note {
  color: var(--color-ink);
  margin: var(--space-sm) 0 var(--space-md);
}

.done-band .milestone-deliverable-download {
  display: inline-block;
  margin: 0 var(--space-md) var(--space-sm) 0;
}

.mission-grid .milestone-deliverable-download {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--color-ink);
  color: var(--color-paper);
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.mission-grid .milestone-deliverable-download:hover {
  background-color: var(--color-ink-hover);
}

.mission-grid .deliverable-download-glyph {
  width: 15px;
  height: 15px;
  flex: none;
}

/* Milestone rail: the hairline spine, the s24 dots riding the line.
   Reuses the .mdot / .mdot-pulse classes — no new keyframes. */
.rail-heading {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  letter-spacing: var(--tracking-heading);
  margin: 0 0 var(--space-md);
}

.milestone-rail {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
}

.rail-row {
  position: relative;
  border-left: var(--border-width) solid var(--color-line);
  padding: 0 0 var(--space-lg) var(--space-xl);
}

.rail-row:last-child {
  border-left-color: transparent;
}

.rail-toggle {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-xs) 0 var(--space-sm);
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.rail-toggle::-webkit-details-marker {
  display: none;
}

.rail-chev {
  width: 14px;
  height: 14px;
  flex: none;
  align-self: center;
  color: var(--color-muted);
  transition: transform 0.2s ease;
}

details.rail-disclosure[open] .rail-chev {
  transform: rotate(180deg);
}

.rail-dot {
  position: absolute;
  left: -10px;
  top: calc(var(--space-lg) / 2);
  background: var(--color-paper);
  line-height: 0;
  padding: 2px 0;
}

.rail-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  letter-spacing: var(--tracking-heading);
  margin: 0 0 var(--space-1);
}

.rail-amount {
  font-family: var(--font-heading);
  color: var(--color-ink);
}

.rail-criteria {
  margin: 0 0 var(--space-sm);
  color: var(--color-muted);
}

.rail-period {
  margin: 0 0 var(--space-sm);
  color: var(--color-muted);
  font-size: var(--font-size-body-sm);
}

.rail-row[data-state="validated"] .rail-amount {
  color: var(--color-trust);
}

/* The review card (Your move): both forms server-rendered — the
   approve action as the primary ink button, the reject controls on
   paper (ghost = ink outline). The buttons ride the INK channel
   (the two-channel audit: never blue on this page). */
.mission-grid .form-submit {
  background-color: var(--color-ink);
  border: var(--border-width) solid var(--color-ink);
  color: var(--color-paper);
}

.mission-grid .btn-ghost {
  background: transparent;
  color: var(--color-ink);
}

.review-card {
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.review-card .review-approve {
  width: 100%;
}

.review-card .reject-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.review-card .reject-form .form-field {
  margin: 0;
}

.review-card .reject-button,
.review-card .reject-submit {
  width: 100%;
}

/* The sidebar: the facts card (hairline rows like the dashboard)
   and the escrow panel (the protagonist). */
.facts-card {
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.facts-ref {
  font-family: var(--font-heading);
  color: var(--color-ink);
  margin: 0 0 var(--space-sm);
}

.facts-state {
  margin: 0 0 var(--space-md);
}

.facts-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-top: var(--border-width) solid var(--color-line);
  margin: 0;
  font-size: var(--font-size-body-sm);
}

.facts-label {
  color: var(--color-muted);
}

.facts-value,
.facts-id,
.facts-escrow-link a {
  color: var(--color-ink);
  text-align: right;
  word-break: break-all;
}

.facts-id {
  font-size: var(--font-size-body-sm);
}

.facts-danger {
  border-top: var(--border-width) solid var(--color-line);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
}

/* The escrow panel: kicker + note line, then a state-specific figure. */
.escrow-panel {
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-lg) 0 0;
}

.escrow-kicker {
  font-size: var(--font-size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-trust);
  margin: 0 0 var(--space-sm);
}

.escrow-note {
  color: var(--color-muted);
  font-size: var(--font-size-body-sm);
  margin: 0 0 var(--space-md);
}

.escrow-held-figure {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  color: var(--color-trust);
  margin: 0 0 var(--space-1);
}

.escrow-held-note {
  color: var(--color-muted);
  font-size: var(--font-size-body-sm);
  margin: 0 0 var(--space-sm);
}

.escrow-released-line {
  color: var(--color-ink);
  font-size: var(--font-size-body-sm);
  margin: 0 0 var(--space-md);
}

.escrow-ledger-link {
  margin: var(--space-md) 0 0;
  font-size: var(--font-size-body-sm);
}

.escrow-ledger-link a {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: none;
}

.escrow-ledger-link a:hover {
  text-decoration: underline;
}

.escrow-done-figure {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  color: var(--color-trust);
  margin: 0 0 var(--space-1);
}

.escrow-done-note {
  color: var(--color-muted);
  font-size: var(--font-size-body-sm);
  margin: 0 0 var(--space-sm);
}

.escrow-done-held-line {
  color: var(--color-ink);
  font-size: var(--font-size-body-sm);
  margin: 0 0 var(--space-md);
}

/* Channel cards: hairline cards with the avatar disc, the meta
   line and the non-text type pill. */
.channel-card {
  display: flex;
  gap: var(--space-md);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: 0 0 var(--space-md);
  background: var(--color-paper);
}

.avatar-disc {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: var(--border-width) solid var(--color-line);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: var(--font-size-body-sm);
}

.channel-card-body {
  min-width: 0;
}

.channel-card-meta {
  color: var(--color-muted);
  font-size: var(--font-size-body-sm);
  margin: 0 0 var(--space-sm);
}

.channel-card-text {
  margin: var(--space-sm) 0 0;
}

/* The non-text type pill: neutral ink chrome (never blue — the
   machine channel stays on the band + the pulse cores). */
.typ {
  display: inline-block;
  padding: 0 var(--space-sm);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}

/* <960px: the aside stacks BELOW main (CSS only). */
@media (max-width: 959px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .mission-side {
    margin-top: var(--space-lg);
    /* A3 (frontend#83): sticky is a two-column affordance — the
       stacked mobile sidebar scrolls with the page. */
    position: static;
  }
}

/* ── s28 — shell restyle (frontend#73) ── */

/* The solid app bar (the r12 shell): sticky, the paper veil, the
   blur and the hairline shadow. NO border-bottom — the mock's
   hairline rides the shadow. The bar IS the mock's ONE element:
   base.css's outer 16px 24px padding and hairline are retired here
   (the mock's bar carries its own 12px 28px row padding on .top —
   the double inset was the shell defect). The landing's own (0,2,0)
   overrides win every property they declare; the guard below keeps
   the new blur off the floating landing bar. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  border-bottom: none;
  background: var(--color-paper-veil);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--color-line);
}

/* The preservation guard: the landing's floating bar never blurs. */
.landing-home .site-header {
  background: var(--color-paper);
  box-shadow: 0 1px 0 var(--color-line);
  backdrop-filter: none;
}

/* The menu button stays clickable above the clickaway overlay. */
.top-logo {
  position: relative;
  z-index: 60;
}

/* The dropdown items (the mock's item chrome): the static colour is
   the INK family — never the machine accent; the hover is the paper
   wash plus the machine accent. ONE rule owns the item chrome, at the
   pinned `.top-menu a` scope (the s28 spec's end state; the
   duplicated `.site-nav-link` copies folded away — frontend#76). */
.top-menu a {
  display: block;
  padding: var(--shell-menu-item-padding);
  font-size: var(--font-size-shell-menu);
  text-decoration: none;
  color: var(--color-ink);
}
.top-menu a:hover {
  background: var(--color-paper);
  color: var(--color-ai-deep);
}

/* The group heads (Menu / Client): small, uppercase, tracked, muted. */
.m-head {
  margin: 0;
  padding: 12px 24px 6px;
  font-size: var(--font-size-menu-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* The hairline between the groups. */
.sep {
  height: 1px;
  margin: var(--space-sm) 0;
  background: var(--color-line);
}

/* The logout form rides the item grammar: it is a POST form, but it
   must LOOK like the last menu item. The transparent background is
   the spec's own pinned value (the shorthand resets background-color
   to transparent — a CSS keyword, not one of the named colours). */
.top-menu .logout-form {
  margin: 0;
}
.top-menu .logout-form .logout-submit {
  background: transparent;
  color: var(--color-ink);
  border: none;
  padding: var(--shell-menu-item-padding);
  font-size: var(--font-size-shell-menu);
  font-weight: 400;
  width: 100%;
  text-align: left;
  border-radius: 0;
  cursor: pointer;
}
.top-menu .logout-form .logout-submit:hover {
  background: var(--color-paper);
  color: var(--color-ai-deep);
}

/* The footer's own wrap: full-bleed, the bar's inset. */
.site-footer-ink .content {
  max-width: none;
  margin: 0;
  padding: var(--shell-wrap-padding);
}

/* ≤640px: the compact items, the compact group heads, the compact
   sep, the wordmark-only brand row and the footer's compact wrap. */
@media (max-width: 640px) {
  .top-menu a {
    padding: var(--shell-menu-item-padding-compact);
    font-size: var(--font-size-body-sm);
  }

  .m-head {
    padding: 4px 22px 8px;
  }

  .sep {
    margin: 5px 0;
  }

  /* the h. mark hides beside the full wordmark (the two coexist
     only when far apart, i.e. desktop) */
  .f-logo {
    display: none;
  }

  .site-footer-ink .content {
    padding: var(--shell-wrap-padding-compact);
  }
}

/* The scroll guard (r11): the dropdown never grows past the viewport,
   so "Log out" stays reachable on short screens. The dvh read wins
   where the unit is supported; the vh read is the fallback. */
.top-menu {
  max-height: var(--shell-menu-max-height);
  max-height: var(--shell-menu-max-height-dynamic);
  overflow-y: auto;
}

/* ── App-family footer geometry (the 2026-10-30 parity pass) ──
   The app mock family's footer carries its own geometry
   (dashboard-c-hybrid.html lines 106-115): 44px 0 28px with the
   96px paper gap above, the 28px brand row, the 20px wordmark and
   the 20px legal rule. The landing keeps ITS family's footer
   (landing-v3's 70px 0 40px), so the values are scoped to every
   page that is not the landing. */
body:not(.landing-home) .site-footer-ink {
  padding: var(--app-footer-padding);
  margin-top: var(--app-footer-gap);
  color: var(--color-paper);
}

body:not(.landing-home) .site-footer-ink .f-top {
  margin-bottom: var(--app-f-top-margin);
}

body:not(.landing-home) .site-footer-ink .f-word {
  font-size: var(--font-size-app-f-word);
}

body:not(.landing-home) .site-footer-ink .legal {
  padding-top: var(--app-legal-padding);
  flex-wrap: wrap;
  gap: var(--app-legal-gap);
}

/* ── s29 — client dashboard r12 (frontend#74) ── */

/* The head: the kicker, the h1 and the sub line on the left, the
   wallet teaser on the right (the mock's head). Every rule below is
   scoped to the dashboard surface and reads the s29 tokens. */
.missions-dashboard .dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--dash-head-gap);
  padding: var(--dash-head-padding);
}

.missions-dashboard .kicker {
  margin: 0 0 var(--dash-kicker-gap);
  font-size: var(--font-size-body-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}

.missions-dashboard .dash-head h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--font-size-dash-h1);
  line-height: var(--line-height-dash-h1);
  color: var(--color-ink);
}

.missions-dashboard .sub {
  margin: 0;
  font-size: var(--font-size-dash-lead);
  color: var(--color-muted);
}

/* The wallet teaser: the spendable total is the headline; the
   withdrawable amount rides below it in small type (never at zero). */
.missions-dashboard .wallet {
  text-align: right;
}

.missions-dashboard .w-lbl {
  margin: 0;
  font-size: var(--font-size-dash-tag);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}

.missions-dashboard .w-sum {
  margin: var(--dash-w-sum-gap) 0 0;
  font-family: var(--font-serif);
  font-size: var(--font-size-dash-wallet-sum);
  font-weight: 700;
  font-variation-settings: "opsz" 60, "wght" 700;
  color: var(--color-ink);
}

.missions-dashboard .w-sum span {
  font-family: var(--font-sans);
  font-size: var(--font-size-dash-note);
  font-weight: 500;
  color: var(--color-muted);
}

.missions-dashboard .w-wd {
  margin: var(--space-xs) 0 0;
  font-size: var(--font-size-dash-sm);
  color: var(--color-muted);
}

.missions-dashboard .w-esc {
  margin: var(--dash-w-esc-gap) 0 0;
  font-size: var(--font-size-dash-sm);
  color: var(--color-muted);
}

.missions-dashboard .w-esc a {
  color: var(--color-ai-deep);
  font-weight: 600;
}

/* The action queue: the ink band, one item per pending action. The
   band rides the mock's own device: a flex column (R10) with the
   paper-shadow lift, its items wrapping so the buttons drop under
   the sentences on narrow widths. */
.missions-dashboard .needs-you {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--color-ink);
  color: var(--color-paper);
  border-radius: var(--radius-md);
  padding: var(--dash-band-padding);
  margin: var(--dash-band-margin);
  box-shadow: var(--shadow-2);
}

.missions-dashboard .needs-you .lbl {
  margin: 0 0 var(--dash-band-lbl-gap);
  font-size: var(--font-size-dash-tag);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-band-lbl);
}

.missions-dashboard .needs-you .nlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.missions-dashboard .needs-you .nlist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dash-item-gap);
  flex-wrap: wrap;
  padding: var(--dash-item-padding);
  border-top: var(--border-width) solid var(--color-band-sep);
}

.missions-dashboard .needs-you .nlist li:first-child {
  padding-top: 0;
  border-top: none;
}

.missions-dashboard .needs-you .nlist li:last-child {
  padding-bottom: 0;
}

.missions-dashboard .needs-you .txt {
  flex: 1;
  min-width: var(--dash-item-min-width);
}

.missions-dashboard .needs-you .txt b {
  display: block;
  margin: var(--dash-text-gap) 0 0;
  font-size: var(--font-size-dash-lead);
  font-weight: 600;
}

.missions-dashboard .needs-you .refline {
  margin: var(--dash-refline-gap) 0 0;
  font-size: var(--font-size-dash-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-band-ref);
  color: var(--color-band-ref);
}

/* The queue's buttons: paper on ink (the shipped .btn grammar with
   the band's own override). */
.missions-dashboard .needs-you .btn {
  background: var(--color-paper);
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.missions-dashboard .needs-you .btn:hover,
.missions-dashboard .needs-you .btn:focus {
  background: var(--color-paper-shade);
  color: var(--color-ink);
}

/* The tools row: the tabs on the left, the search box + the row count
   on the right (the mock's own gap is 16px; the card's 26px top
   margin below provides the tools-to-table distance). */
.missions-dashboard .ledger-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: 0;
}

.missions-dashboard .filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0;
}

.missions-dashboard .filter-pills a {
  padding: var(--dash-pill-padding);
  font-size: var(--font-size-dash-sm);
  font-weight: 600;
}

/* The tabs' hover: the machine accent, never ink-on-ink (the mock's
   .filters a:hover; the on pill keeps its paper text). */
.missions-dashboard .filter-pills a:hover,
.missions-dashboard .filter-pills a:focus {
  color: var(--color-ai-deep);
  border-color: var(--color-ai);
}

.missions-dashboard .filter-pills a.on:hover,
.missions-dashboard .filter-pills a.on:focus {
  color: var(--color-paper);
}

.missions-dashboard .tools-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--dash-tools-gap);
}

/* The search form is a plain GET form: the input joins the tools row
   (the form itself carries no box). The box is the mock's own pill
   (radius 999px) with the machine-accent focus ring. */
.missions-dashboard .msearch-form {
  display: contents;
}

.missions-dashboard .msearch {
  width: var(--dash-search-width);
  padding: var(--dash-pill-padding);
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--font-size-dash-sm);
}

.missions-dashboard .msearch:focus {
  outline: 2px solid var(--color-ai);
  outline-offset: 1px;
  border-color: var(--color-ai);
}

.missions-dashboard .msearch::placeholder {
  color: var(--color-muted);
}

.missions-dashboard .rowcount-line {
  margin: 0;
  font-size: var(--font-size-dash-note);
  color: var(--color-muted);
}

/* The ledger table: a card on the desk (surface + hairline + shadow),
   the cells padded by the s29 geometry. The mock's own 26px top
   margin separates the card from the tools row. */
.missions-dashboard .mission-table {
  width: 100%;
  margin: var(--dash-table-gap) 0 0;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.missions-dashboard .mission-table th {
  padding: var(--dash-th-padding);
  text-align: left;
  font-size: var(--font-size-dash-th);
  font-weight: 700;
  letter-spacing: var(--tracking-dash-th);
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: var(--border-width) solid var(--color-line);
}

.missions-dashboard .mission-table td {
  padding: var(--dash-cell-padding);
  vertical-align: top;
}

/* The Mission cell: the mock's td.t — 15px/600, so the clarity and
   meta lines inherit the weight; the width returns to auto so the
   Progress column keeps its pinned 220px. */
.missions-dashboard .mission-table td:first-child {
  width: auto;
  font-size: var(--font-size-dash-cell);
  font-weight: 600;
}

.missions-dashboard .tbl-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--dash-tline-gap);
  margin: 0;
}

.missions-dashboard .tbl-title {
  font-family: var(--font-sans);
  font-size: var(--font-size-dash-title);
  font-weight: 600;
  letter-spacing: normal;
  color: var(--color-ink);
}

.missions-dashboard .tbl-clarity {
  margin: var(--space-xs) 0 0;
  font-size: var(--font-size-dash-sm);
  color: var(--color-muted);
}

.missions-dashboard .mission-table .tbl-meta {
  margin: var(--dash-meta-gap) 0 0;
  font-size: var(--font-size-dash-xs);
  letter-spacing: var(--tracking-dash-meta);
  color: var(--color-muted);
}

.missions-dashboard .mission-table .cnt {
  margin: var(--dash-cnt-gap) 0 0;
  font-size: var(--font-size-dash-xs);
  color: var(--color-muted);
}

/* The Progress cell: the mock's td.prog — the 220px column with the
   4px top inset; the s24 leftovers (14px, muted, nowrap) are retired
   so the cell rides the table's own inheritance like the mock's. */
.missions-dashboard .mission-table .tbl-progress {
  width: var(--dash-prog-width);
  padding-top: var(--dash-prog-top);
  font-size: var(--font-size-body);
  color: var(--color-ink);
  white-space: normal;
}

/* The card's last row carries no bottom hairline (the mock's own
   tr:last-child rule — the card's edge is the frame). */
.missions-dashboard .mission-table tbody tr:last-child td {
  border-bottom: none;
}

.missions-dashboard .mission-table .mdots {
  gap: var(--dash-dot-gap);
}

/* The needs wash: the AI wash on every pending-action row. */
.missions-dashboard .mission-table tr.needs td {
  background: var(--color-ai-bg);
}

/* The quiet hover for the rows that need nothing. */
.missions-dashboard .mission-table tbody tr:not(.needs):hover td {
  background: var(--color-paper);
}

/* The row tag: the mock's own chip — surface-backed, 700, .1em
   tracked, 3px 10px padded; the machine and proof variants restore
   their own washes over the surface base. */
.missions-dashboard .mission-table .tag {
  font-size: var(--font-size-dash-tag);
  font-weight: 700;
  letter-spacing: var(--tracking-dash-tag);
  padding: var(--dash-tag-padding);
  background: var(--color-surface);
}

.missions-dashboard .mission-table .tag-machine {
  background: var(--color-ai-bg);
}

.missions-dashboard .mission-table .tag-proof {
  background: var(--color-trust-bg);
}

/* The legend: the five glyphs the Progress cell can carry (the
   mock's own 22px row gap, 9px item gap). */
.missions-dashboard .legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--dash-legend-gap);
  margin: var(--space-md) 0 0;
  font-size: var(--font-size-dash-note);
  color: var(--color-muted);
}

.missions-dashboard .legend .li {
  display: inline-flex;
  align-items: center;
  gap: var(--dash-legend-item-gap);
}

/* ≤640px: the compact cascade (the head, the wallet, the tools row,
   the band's padding and the table's stacked rows — the rows stay
   PLAIN hairline-separated rows INSIDE the one ledger card, the
   mock's own 640 block, not per-row cards). */
@media (max-width: 640px) {
  .missions-dashboard .dash-head h1 {
    font-size: var(--font-size-dash-h1-compact);
  }

  .missions-dashboard .wallet {
    text-align: left;
  }

  .missions-dashboard .tools-right {
    width: 100%;
  }

  .missions-dashboard .msearch {
    flex: 1 1 auto;
    width: auto;
  }

  .missions-dashboard .rowcount-line {
    flex: 1 0 100%;
  }

  .missions-dashboard .needs-you {
    padding: var(--dash-band-compact-padding);
  }

  .missions-dashboard .mission-table thead {
    display: none;
  }

  .missions-dashboard .mission-table .tbl-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: var(--dash-cell-padding);
    border: none;
    border-bottom: var(--border-width) solid var(--color-line);
    border-radius: 0;
    margin: 0;
  }

  .missions-dashboard .mission-table .tbl-row:last-child {
    border-bottom: none;
  }

  .missions-dashboard .mission-table .tbl-line {
    order: 1;
  }

  .missions-dashboard .mission-table .tbl-clarity {
    order: 2;
    margin-top: var(--dash-m-clarity);
  }

  .missions-dashboard .mission-table .mdots {
    order: 3;
    display: flex;
    margin-top: var(--dash-m-dots);
  }

  .missions-dashboard .mission-table .cnt {
    order: 4;
    margin-top: var(--dash-m-cnt);
  }

  .missions-dashboard .mission-table .tbl-meta {
    order: 5;
    margin-top: var(--dash-m-meta);
  }

  /* The needs wash survives the card cascade (the cell dissolves). */
  .missions-dashboard .mission-table tbody tr.needs {
    background: var(--color-ai-bg);
  }
}

/* The dashboard's own page frame: the mock's .wrap insets (0 32px —
   a 1036px content column inside the 1100px cap, not the shell's
   24px gutters). Scoped by the section itself, pure CSS, no
   template change. */
.content:has(> .missions-dashboard) {
  padding: var(--app-content-padding);
}
