:root {
    --measure: 70ch;
    --shell: min(100% - 3rem, 1180px);

    /* Landing type roles. The app ramp stops at a 3rem display step because no
     * operational surface needs more; a Persuade hero does, so the landing
     * carries its own display step and then reuses the shared ramp below it. */
    --type-display: clamp(2.75rem, 6.4vw, 5rem);
    --type-section: clamp(1.875rem, 3.4vw, 3rem);
    --type-figure: clamp(1.25rem, 1.9vw, 1.75rem);
    --type-title: 1.125rem;
    --type-lede: 1.0625rem;
    --type-body: 0.9375rem;
    --type-micro: 0.75rem;
    --type-label: 0.7rem;
    --type-wordmark: 1.25rem;

    /* Glyph sizes. An icon in a line of text is a type decision, so it sits on
     * the same ramp rather than arriving as a hand-tuned rem at the call site. */
    --type-icon-xs: 1.08rem;
    --type-icon-sm: 1.15rem;
    --type-icon-md: 1.3rem;
    --type-icon-lg: 1.45rem;

    /* The allocation chart's plot area. One variable so the axis labels, the
     * gridlines and the bar heights can never disagree about where 0 and the
     * ceiling are. */
    --chart-track: 190px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Matches the fixed nav's 68px mobile / 76px desktop height. */
    scroll-padding-top: 5.25rem;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: var(--type-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--brand);
    color: var(--on-brand);
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-ui);
    text-wrap: balance;
}

a {
    color: inherit;
}

.landing-shell {
    width: var(--shell);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100%;
    z-index: 2000;
    padding: 0.75rem 1.15rem;
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--brand-ink);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus-visible {
    top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.7rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-size: var(--type-body);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}

.btn-primary {
    background: var(--brand);
    color: var(--on-brand);
}

.btn-primary:hover {
    background: var(--brand-deep);
    color: var(--on-brand);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border-color: var(--rule-strong);
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--brand-ghost);
    border-color: var(--brand);
    color: var(--brand-ink);
}

.btn-lg {
    min-height: 52px;
    padding: 0.9rem 1.55rem;
}

.site-nav {
    position: absolute;
    inset: 0 0 auto;
    z-index: 1000;
    color: var(--on-brand);
    transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}

.site-nav.is-scrolled {
    position: fixed;
    background: var(--canvas-veil);
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
}

/* Ember, not Signal: this is the wordmark, and identity is Ember's lane.
 * It was Signal here, which made the two brand marks on the page different
 * colours from each other. */
.brand__mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: var(--on-brand);
    font-size: var(--type-icon-xs);
}

.site-nav:not(.is-scrolled) .brand__mark {
    background: var(--on-brand);
    color: var(--brand-ink);
}

.brand__word {
    font-size: var(--type-wordmark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.site-nav__link,
.site-nav__signin {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-md);
    color: inherit;
    font-size: var(--type-body);
    font-weight: 600;
    text-decoration: none;
}

.site-nav__link:hover,
.site-nav__signin:hover {
    background: var(--on-brand-veil);
}

.site-nav.is-scrolled .site-nav__link:hover,
.site-nav.is-scrolled .site-nav__signin:hover {
    background: var(--brand-ghost);
}

/* The focus ring is --brand, which is 1.29:1 against the unscrolled nav's
 * backdrop: the hero band. Until the nav gains its own background, the ring has
 * to be drawn in the ink that is actually behind it. --on-brand is 11.35:1. */
.site-nav:not(.is-scrolled) :focus-visible {
    outline-color: var(--on-brand);
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.site-nav__mobile-auth {
    display: none;
}

.site-nav:not(.is-scrolled) .btn-primary {
    background: var(--on-brand);
    color: var(--brand-ink);
}

.site-nav:not(.is-scrolled) .btn-primary:hover {
    background: var(--on-brand-hover);
}

.site-nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--on-brand-veil);
    border-radius: var(--radius-md);
    background: transparent;
    color: inherit;
    font-size: var(--type-icon-md);
}

.site-nav.is-scrolled .site-nav__toggle {
    border-color: var(--rule-strong);
}

.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: var(--scrim-soft);
}

.nav-scrim[hidden] {
    display: none;
}

.hero {
    position: relative;
    padding-block: 10.5rem 0;
    background: var(--brand-band);
    color: var(--on-brand);
}

.hero__instrument {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(to right, var(--on-brand-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--on-brand-line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__title {
    max-width: 22ch;
    font-size: var(--type-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.hero__title em {
    color: var(--on-brand-hover);
    font-style: normal;
}

.hero__deck {
    max-width: 58ch;
    margin-top: 1.65rem;
    color: var(--on-brand-muted);
    font-size: var(--type-lede);
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero .btn-primary {
    background: var(--on-brand);
    color: var(--brand-ink);
}

.hero .btn-primary:hover {
    background: var(--on-brand-hover);
}

.hero .btn-ghost {
    border-color: var(--on-brand-veil);
    color: var(--on-brand);
}

.hero .btn-ghost:hover {
    background: var(--on-brand-veil);
    border-color: var(--on-brand-hover);
    color: var(--on-brand-hover);
}

/* In flow, last in the hero. It used to be position: absolute at top: 440px
 * inside a hero carrying min-height: 1160px and overflow: hidden, and the panel
 * carried its own min-height: 655px. The containing block was .hero__content, so
 * the hand-tuned top was measured from 10.5rem of padding down, not from the
 * band: the panel landed a full padding-block lower than authored and the hero
 * clipped it. Nothing here is pinned or clipped now — the only remaining
 * overflow is the panel rounding its own corners, and it bleeds off the band
 * solely because the hero has no bottom padding. */
.operations-preview {
    width: 100%;
    margin-top: clamp(3rem, 6vw, 5rem);
    overflow: hidden;
    border: 1px solid var(--on-brand-veil);
    border-bottom: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.operations-preview__topbar {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 74px;
    border-bottom: 1px solid var(--rule);
}

.preview-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 100%;
    padding-inline: 1.25rem;
    border-right: 1px solid var(--rule);
    color: var(--brand-ink);
    font-size: var(--type-title);
    font-weight: 800;
}

.preview-brand__mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: var(--on-brand);
}

.preview-heading {
    display: flex;
    flex-direction: column;
    padding-inline: 1.35rem;
}

.preview-heading strong {
    font-size: var(--type-title);
}

.preview-heading span {
    color: var(--ink-muted);
    font-size: var(--type-micro);
}

.preview-user {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-right: 1.35rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius-pill);
    color: var(--ink-2);
    font-size: var(--type-micro);
    font-weight: 700;
    white-space: nowrap;
}

.preview-user__signal {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.operations-preview__body {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
}

.preview-rail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 0.85rem;
    border-right: 1px solid var(--rule);
    background: var(--surface);
}

.preview-rail__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 42px;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-md);
    color: var(--ink-2);
    font-size: var(--type-micro);
    font-weight: 600;
}

.preview-rail__item.is-active {
    background: var(--brand-soft);
    color: var(--brand-ink);
}

.preview-workspace {
    min-width: 0;
    padding: 1.35rem;
    background: var(--canvas);
}

.preview-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.preview-summary > div,
.preview-panel {
    min-width: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.preview-summary > div {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.preview-summary > div > span {
    color: var(--ink-muted);
    font-size: var(--type-micro);
    font-weight: 600;
}

.preview-summary strong {
    margin-top: 0.35rem;
    font-family: var(--font-mono);
    font-size: var(--type-figure);
    letter-spacing: -0.03em;
}

/* An explicit role, not 0.62em of the figure: an em-relative size resolves to
 * 12.4px, a value that exists on no rung of the ramp. */
.preview-summary small {
    color: var(--ink-muted);
    font-size: var(--type-micro);
    font-weight: 400;
}

.preview-summary em {
    margin-top: 0.25rem;
    color: var(--accent-ink);
    font-size: var(--type-micro);
    font-style: normal;
}

/* "Needs evidence" is a blocking state, not a positive one, so the aside is
 * amber while the adjacent "Approved" pill is Signal. That is the severity
 * order the tokens imply. */
.preview-summary em.is-warning {
    color: var(--warn-ink);
}

.preview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.preview-panel {
    padding: 1.1rem;
}

.preview-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.preview-panel__head .preview-panel__title {
    font-size: var(--type-body);
    font-weight: 700;
}

.preview-panel__head p {
    margin-top: 0.15rem;
    color: var(--ink-muted);
    font-size: var(--type-micro);
}

/* Signal, not Ember: an approved purchase order is a positive workflow state,
 * which is the lane Signal owns. It was an Ember fill, which read as identity. */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-pill);
    background: var(--accent-wash);
    color: var(--accent-ink);
    font-size: var(--type-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.allocation-chart {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    align-items: start;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rule);
}

/* Each label is centred on its gridline rather than distributed down the column,
 * so 20k, 10k and 0 mark the same heights the bars are drawn against. */
.allocation-chart__scale {
    position: relative;
    height: var(--chart-track);
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: var(--type-label);
}

.allocation-chart__scale span {
    position: absolute;
    right: 0;
    top: calc(var(--at) * 100%);
    transform: translateY(-50%);
}

.allocation-chart__bars {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: clamp(0.75rem, 3vw, 1.5rem);
}

.allocation-chart__bars::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: var(--chart-track);
    background-image: linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
    background-size: 100% 50%;
    pointer-events: none;
}

.allocation-chart__bars > div {
    grid-row: 1 / span 2;
    display: grid;
    grid-template-rows: var(--chart-track) 2.75rem;
    align-items: end;
    justify-items: center;
}

.allocation-chart__bars div > span {
    width: min(52px, 68%);
    height: calc(var(--level) * var(--chart-track));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: var(--accent);
    transform-origin: bottom;
}

.allocation-chart__bars small {
    align-self: start;
    padding-top: 0.4rem;
    color: var(--ink-2);
    font-size: var(--type-micro);
    line-height: 1.2;
    text-align: center;
    text-wrap: balance;
}

/* The receipt that closes the chain. The levels above are 0.92 / 0.44 / 0.36 /
 * 0.28 on a 20,000 L axis — 40,000 L, the number below. They used to total
 * 45,000 L under a caption reading 40,000 L. */
.allocation-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rule);
    color: var(--ink-muted);
    font-size: var(--type-micro);
}

/* The reconciling total is the thesis of the whole panel, so it takes the
 * figure role rather than the 14px mono body it used to sit at. */
.allocation-total strong {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: var(--type-figure);
    letter-spacing: -0.02em;
}

.activity-list {
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.activity-list li {
    position: relative;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding-bottom: 1rem;
}

.activity-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 12px;
    bottom: 0;
    width: 1px;
    background: var(--rule-strong);
}

.activity-list__node {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    margin-top: 0.25rem;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--surface);
}

.activity-list .is-complete .activity-list__node {
    background: var(--accent);
}

.activity-list strong,
.activity-list small {
    display: block;
}

.activity-list strong {
    font-size: var(--type-micro);
}

.activity-list small,
.activity-list time {
    color: var(--ink-muted);
    font-size: var(--type-label);
}

.activity-list time {
    font-family: var(--font-mono);
}

/* --warn on --warn-soft measures 4.51:1 as a boundary, which clears 1.4.11's
 * 3:1 with room, and the text takes --warn-ink. The callout's edge is a control
 * the reader has to aim at, so it is not left on --rule, which reaches only
 * 3.11:1 against this wash. */
.evidence-gate {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.8rem;
    border: 1px solid var(--warn);
    border-radius: var(--radius-md);
    background: var(--warn-soft);
    color: var(--warn-ink);
}

.evidence-gate i {
    font-size: var(--type-icon-sm);
}

.evidence-gate strong,
.evidence-gate span {
    display: block;
}

.evidence-gate strong {
    font-size: var(--type-micro);
}

.evidence-gate span {
    margin-top: 0.15rem;
    font-size: var(--type-label);
    line-height: 1.45;
}

.landing-band {
    padding-block: clamp(4.5rem, 8vw, 7rem);
}

.landing-band--intro {
    padding-top: clamp(5rem, 9vw, 8rem);
}

.landing-band--sunken {
    border-block: 1px solid var(--rule);
    background: var(--surface-sunk);
}

.intro-grid,
.audience-intro,
.coverage-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

/* Capped in rem, not ch. At 3.5rem a 20ch cap resolved to 755px, so the measure
 * grew with the type size and three identically styled headings rendered at
 * three different visual weights. */
.band-heading {
    max-width: 30rem;
    font-size: var(--type-section);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.band-lede {
    max-width: var(--measure);
    color: var(--ink-2);
    font-size: var(--type-lede);
    line-height: 1.7;
}

.chain-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 4rem 0 0;
    padding: 0;
    border-block: 1px solid var(--rule);
    list-style: none;
}

.chain-flow > li {
    position: relative;
    min-width: 0;
    padding: 2rem 1.5rem 2.25rem;
    border-right: 1px solid var(--rule);
}

.chain-flow > li:last-child {
    border-right: 0;
}

/* A rule-strength tick, not a Signal dot. These beads are decoration; Signal is
 * reserved for data and positive state. */
.chain-flow > li::after {
    content: '';
    position: absolute;
    top: 2.35rem;
    right: -5px;
    z-index: 1;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rule-strong);
}

.chain-flow > li:last-child::after {
    display: none;
}

.chain-flow__index {
    display: block;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: var(--type-label);
}

.chain-flow i {
    display: block;
    margin-top: 1.4rem;
    color: var(--brand-ink);
    font-size: var(--type-icon-lg);
}

.chain-flow h3 {
    margin-top: 1rem;
    font-size: var(--type-title);
}

.chain-flow p {
    margin-top: 0.5rem;
    color: var(--ink-2);
    font-size: var(--type-body);
    line-height: 1.55;
}

.micro-label {
    display: block;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: var(--type-label);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Spans the row below the heading and lede, so all three bands place those two
 * elements identically and the cards get the full measure instead of the 0.8fr
 * column the other bands' second element occupies. */
.audience-grid {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.audience {
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.audience__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.5rem;
    font-size: var(--type-title);
}

.audience__title i,
.audience__list i {
    color: var(--brand-ink);
}

.audience__where {
    margin-top: 0.45rem;
    color: var(--ink-2);
    font-size: var(--type-body);
}

.audience__list {
    display: flex;
    flex-direction: column;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.audience__list li {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--rule);
    color: var(--ink-2);
    font-size: var(--type-body);
    line-height: 1.5;
}

.audience__list li:first-child {
    border-top: 0;
}

.coverage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 2rem;
    margin-top: 2.5rem;
}

/* The directory was 876px of desktop and 1,716px of phone, twenty-one deep, and
 * every authenticated route in it bounced to the same login wall. It is now six
 * disclosures: the surface area is still legible at a glance, the whole list is
 * one interaction away, and the section closes in a fraction of the scroll. */
.coverage__group {
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.coverage__group > summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--type-body);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.coverage__group > summary::-webkit-details-marker {
    display: none;
}

.coverage__group > summary:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: -3px;
}

.coverage__group > summary::after {
    content: '';
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ink-muted);
    border-bottom: 2px solid var(--ink-muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--dur-fast);
}

.coverage__group[open] > summary::after {
    transform: rotate(-135deg) translateY(-2px);
}

.coverage__count {
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: var(--type-label);
    font-weight: 400;
}

.coverage__group ul {
    margin: 0;
    padding: 0 0.5rem 0.5rem;
    list-style: none;
}

.coverage__group a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding-inline: 0.5rem;
    border-radius: var(--radius-md);
    color: var(--ink-2);
    font-size: var(--type-body);
    text-decoration: none;
}

.coverage__group a:hover {
    color: var(--brand-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.coverage__group i {
    color: var(--ink-muted);
}

.close {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 2rem;
    align-items: center;
    padding: clamp(2.5rem, 6vw, 4.5rem);
    border-radius: var(--radius-xl);
    background: var(--brand-band);
    color: var(--on-brand);
}

/* The closing promise is the last thing a visitor reads and it used to render at
 * the same 3.5rem as the sections above it, so the page ended without an
 * escalation. It now takes the display step, shared only with the hero. */
.close__title {
    max-width: 18ch;
    font-size: var(--type-display);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.close__text {
    max-width: 52ch;
    margin-top: 1rem;
    color: var(--on-brand-muted);
    font-size: var(--type-lede);
}

.close__actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.close .btn-primary {
    background: var(--on-brand);
    color: var(--brand-ink);
}

.close .btn-primary:hover {
    background: var(--on-brand-hover);
}

.close .btn-ghost {
    background: transparent;
    border-color: var(--on-brand-veil);
    color: var(--on-brand);
}

.close .btn-ghost:hover {
    background: var(--on-brand-veil);
    border-color: var(--on-brand-hover);
    color: var(--on-brand-hover);
}

.site-footer {
    margin-top: clamp(3rem, 6vw, 6rem);
    padding-block: 3.25rem 2rem;
    border-top: 1px solid var(--rule);
    background: var(--surface-sunk);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem 2rem;
}

.site-footer__grid h3 {
    margin-bottom: 0.8rem;
    color: var(--ink-muted);
    font-size: var(--type-micro);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__grid ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__grid a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink-2);
    font-size: var(--type-body);
    text-decoration: none;
}

.site-footer__grid a:hover {
    color: var(--brand-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer__tagline {
    max-width: 40ch;
    margin-top: 0.9rem;
    color: var(--ink-2);
    font-size: var(--type-body);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    color: var(--ink-muted);
    font-size: var(--type-body);
}

/* The phone header carried no sign-in at all and the next one was 4,717px down.
 * The nav now also carries one, and this is the persistent floor. It stops at
 * 767px on purpose: between 768 and 1023 the nav keeps its full action row, so a
 * sign-in is already fixed to the top of the viewport and a second floor would
 * be a duplicate rather than a remedy. */
.mobile-cta {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes instrument-rise {
        from { transform: translateY(22px) scale(0.985); opacity: 0.7; }
        to { transform: translateY(0) scale(1); opacity: 1; }
    }

    @keyframes bar-settle {
        from { transform: scaleY(0.08); }
        to { transform: scaleY(1); }
    }

    .operations-preview {
        animation: instrument-rise 0.85s var(--ease-out) both;
    }

    .allocation-chart__bars div > span {
        animation: bar-settle 0.75s var(--ease-out) 0.35s both;
    }
}

/* Both animations above are already gated behind no-preference, so under
 * reduce they never start and every element sits at its natural end state —
 * no blanket `*` override is needed, and none is used, because a global
 * duration kill also swallows the reduced-motion intent of anything added
 * later. The only transitions left are hover feedback, and they are named. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .site-nav,
    .coverage__group[open] > summary::after {
        transition: none;
    }
}

@media (max-width: 1023px) {
    .preview-rail {
        display: none;
    }

    .operations-preview__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .operations-preview__topbar {
        grid-template-columns: 145px minmax(0, 1fr) auto;
    }

    .preview-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .preview-grid,
    .intro-grid,
    .audience-intro,
    .coverage-heading,
    .close {
        grid-template-columns: minmax(0, 1fr);
    }

    /* The three bands collapse together, so their headings and ledes keep a
     * shared left edge at every width instead of only below 768px. */
    .coverage-heading .band-lede {
        margin-top: 1rem;
    }

    .chain-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chain-flow > li:nth-child(2) {
        border-right: 0;
    }

    .chain-flow > li:nth-child(2)::after {
        display: none;
    }

    .chain-flow > li:nth-child(-n + 2) {
        border-bottom: 1px solid var(--rule);
    }

    .site-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    :root {
        --shell: min(100% - 2rem, 1180px);
        --chart-track: 132px;
    }

    html {
        scroll-padding-top: 4.75rem;
    }

    body {
        padding-bottom: 5.25rem;
    }

    .site-nav__inner {
        min-height: 68px;
    }

    .site-nav__toggle {
        display: inline-flex;
    }

    .site-nav__links {
        display: none;
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + 0.5rem);
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.75rem;
        border: 1px solid var(--rule);
        border-radius: var(--radius-lg);
        background: var(--surface);
        color: var(--ink);
        box-shadow: var(--shadow);
    }

    .site-nav__links[data-open="true"] {
        display: flex;
    }

    .site-nav:not(.is-scrolled) .site-nav__links .site-nav__link:hover {
        background: var(--brand-ghost);
    }

    /* The header's only conversion action, present whether or not the menu is
     * open. It is hidden on wider viewports where .site-nav__actions carries it. */
    .site-nav__mobile-auth {
        display: block;
        margin-top: 0.4rem;
        padding-top: 0.55rem;
        border-top: 1px solid var(--rule);
    }

    .site-nav__mobile-auth .site-nav__signin,
    .site-nav__mobile-auth .btn {
        width: 100%;
        justify-content: center;
    }

    .site-nav__mobile-auth .site-nav__signin {
        color: var(--ink);
    }

    .site-nav__actions {
        display: none;
    }

    .hero {
        padding-top: 8.5rem;
    }

    .hero__title {
        max-width: 14ch;
    }

    .hero__actions,
    .hero__actions .btn {
        width: 100%;
    }

    .hero__actions {
        flex-direction: column;
    }

    .operations-preview {
        margin-top: 2.5rem;
    }

    .operations-preview__topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 64px;
    }

    .preview-brand {
        display: none;
    }

    .preview-heading {
        padding-inline: 1rem;
    }

    .preview-user {
        margin-right: 0.8rem;
        padding: 0.4rem 0.55rem;
    }

    .preview-workspace {
        padding: 0.7rem;
    }

    .preview-summary {
        gap: 0.5rem;
    }

    .preview-summary > div {
        padding: 0.7rem;
    }

    .preview-grid {
        display: block;
        margin-top: 0.5rem;
    }

    .preview-panel {
        padding: 0.8rem;
    }

    /* The activity panel is the only place the forecourt persona's own task —
     * capture dip reading, POD and signature at discharge — is illustrated, and
     * it used to be hidden at this width. It stays visible; the two panels
     * stack, and the chart drops to a 132px track so both still fit a screen. */
    .preview-panel--activity {
        margin-top: 0.5rem;
    }

    .allocation-chart {
        grid-template-columns: 2.5rem minmax(0, 1fr);
    }

    .allocation-chart__bars {
        gap: 0.5rem;
    }

    .allocation-total {
        flex-wrap: wrap;
        row-gap: 0.2rem;
    }

    .landing-band--intro {
        padding-top: 5rem;
    }

    .chain-flow,
    .audience-grid,
    .coverage,
    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .chain-flow > li,
    .chain-flow > li:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--rule);
    }

    .chain-flow > li:last-child {
        border-bottom: 0;
    }

    .chain-flow > li::after {
        display: none;
    }

    .close__actions .btn {
        width: 100%;
    }

    .mobile-cta {
        position: fixed;
        inset: auto 0 0;
        z-index: 900;
        display: block;
        padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--rule);
        background: var(--surface);
    }

    .mobile-cta .btn {
        width: 100%;
    }
}
