/* ============================================================================
   Landing page — layout only.
   Every colour, size, space and duration comes from tokens.css. Nothing here
   introduces a new palette value; where a raw number appears it is a layout
   decision (grid columns, connector heights), not a design token.
   ========================================================================== */

/* ------------------------------------------------------------------ shell */

html {
    scroll-behavior: smooth;
    /* Clears the sticky bar plus a breath, so an anchored heading is not
       welded to the underside of the nav. */
    scroll-padding-top: calc(60px + var(--sp-5));
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    overflow-x: hidden;
}

.wrap {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* The icon sprite is markup, not layout. */
.sprite {
    display: none;
}

.skip {
    position: absolute;
    left: var(--sp-4);
    top: calc(var(--sp-4) * -8);
    z-index: 30;
    background: var(--c-signal);
    color: #fff;
    font-size: var(--t-caption);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-md);
    transition: top var(--dur-fast) var(--ease-relay);
}

.skip:focus {
    top: var(--sp-4);
}

/* -------------------------------------------------------------------- nav */

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--c-paper) 82%, transparent);
    backdrop-filter: saturate(1.6) blur(12px);
    -webkit-backdrop-filter: saturate(1.6) blur(12px);
    border-bottom: 1px solid transparent;
    transition:
        border-color var(--dur-base) var(--ease-relay),
        box-shadow var(--dur-base) var(--ease-relay);
}

/* The seam only appears once the page has moved — at rest the bar is part of
   the paper rather than a bar sitting on it. */
.nav-bar.is-stuck {
    border-bottom-color: var(--border-hairline);
    box-shadow: 0 1px 20px -12px rgba(20, 24, 28, 0.5);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    height: 60px;
}

.nav__mark {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    text-decoration: none;
    white-space: nowrap;
}

/* The mark is the product's own logo, so it is drawn rather than set: the
   height is fixed and the width follows the artwork's own proportions. */
.nav__logo {
    display: block;
    height: 34px;
    width: auto;
}

/* The footer sits on the dark band, where the light lockup's deep-teal half
   would read at roughly 1.3:1. */
.nav__logo--inverse {
    height: 32px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-left: auto;
}

.nav__links a {
    position: relative;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    font-size: var(--t-caption);
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition:
        color var(--dur-fast) var(--ease-relay),
        background-color var(--dur-fast) var(--ease-relay);
}

.nav__links a:hover {
    color: var(--text-primary);
    background: rgba(20, 24, 28, 0.05);
}

/* The section you are actually in gets the lamp, not a colour change. */
.nav__links a.is-current {
    color: var(--text-primary);
}

.nav__links a.is-current::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: var(--r-pill);
    background: var(--c-signal);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-left: var(--sp-2);
}

.nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    cursor: pointer;
}

.nav__toggle-close {
    display: none;
}

[aria-expanded='true'] .nav__toggle-open {
    display: none;
}

[aria-expanded='true'] .nav__toggle-close {
    display: block;
}

@media (max-width: 1000px) {
    .nav__toggle {
        display: inline-flex;
    }

    .nav__actions {
        margin-left: auto;
    }

    /* Drops out of the bar and becomes a sheet under it. */
    .nav__links {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 20;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: var(--sp-2) var(--gutter) var(--sp-4);
        background: var(--surface-raised);
        border-bottom: 1px solid var(--border-hairline);
        box-shadow: var(--shadow-card);
        /* Collapsed by default; opened by [data-nav].is-open. */
        display: none;
    }

    .nav-bar.is-open .nav__links {
        display: flex;
    }

    .nav__links a {
        padding: var(--sp-3) var(--sp-2);
        font-size: var(--t-body-s);
        border-bottom: 1px solid var(--border-hairline);
        border-radius: 0;
    }

    .nav__links a:last-child {
        border-bottom: 0;
    }

    .nav__links a.is-current::after {
        left: auto;
        right: var(--sp-2);
        bottom: 50%;
        transform: translateY(50%);
    }
}

/* --------------------------------------------------------------- sections */

/* Section rhythm is deliberately shorter than the first draft's. On a page
   this text-heavy, 6rem of paper between two ideas stops reading as calm and
   starts reading as unfinished. */
.section {
    position: relative;
    padding-block: clamp(var(--sp-7), 5.5vw, 5rem);
}

.section--hero {
    padding-block: clamp(var(--sp-6), 5vw, 4.5rem) clamp(var(--sp-6), 4vw, var(--sp-8));
}

/* The three pains sit directly under the capability strip and lead into the
   channels section, so they take the tightest band on the page — and a seam,
   because both neighbours are the same paper. */
.section--tight {
    padding-block: clamp(var(--sp-6), 4.5vw, var(--sp-7));
    border-bottom: 1px solid var(--border-hairline);
}

.section--card {
    background: var(--surface-raised);
    border-block: 1px solid var(--border-hairline);
}

.section--sunk {
    background: var(--surface-sunk);
    border-block: 1px solid var(--border-hairline);
}

.section--inverse {
    background: var(--surface-inverse);
}

.section--demo {
    background: var(--surface-lift);
    border-top: 1px solid var(--border-hairline);
}

/* Section head: title on the left, the lede beside it rather than under it.
   Stacked, the lede left a dead half-page of paper on every section. */
.sechead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: end;
    gap: clamp(var(--sp-5), 4vw, var(--sp-8));
    margin-bottom: clamp(var(--sp-5), 3vw, var(--sp-6));
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--border-hairline);
}

.sechead__title {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.sechead__lede {
    color: var(--text-secondary);
    max-width: 46ch;
}

.on-inverse .sechead {
    border-bottom-color: var(--border-inverse);
}

.on-inverse .sechead__lede,
.on-inverse .section__lede {
    color: var(--c-steel-dim);
}

.section__lede {
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .sechead {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }
}

/* ------------------------------------------------------------------- hero */

/* A faint engineering grid, fading out downward. It gives the hero a ground
   without adding an image request or a second colour. */
.section--hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(20, 24, 28, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(20, 24, 28, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(var(--sp-6), 5vw, var(--sp-8));
    align-items: center;
}

.hero__copy {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin: 0;
    color: var(--text-secondary);
}

/* The three channel marks read as one group, so they get one seam between
   them and the words. */
.eyebrow .icon + .icon {
    margin-left: calc(var(--sp-1) * -1);
}

.eyebrow .t-label {
    margin-left: var(--sp-2);
    padding-left: var(--sp-3);
    border-left: 1px solid var(--border-hairline);
}

.hero__lede {
    color: var(--text-secondary);
    max-width: 54ch;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-2);
}

.hero__note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin: 0;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ------------------------------------------------------------------ patch
   The signature element: four incoming lines converge on one bus and come out
   as a single customer card. It is the product's whole mechanic in one panel,
   and it carries no personal data — only the fields the system fills in.
   ------------------------------------------------------------------------ */

.patch {
    background: var(--surface-raised);
    border: 1px solid var(--border-hairline);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-raised);
    padding-bottom: var(--sp-5);
}

.patch__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-3) var(--sp-5);
    background: var(--surface-lift);
    border-bottom: 1px solid var(--border-hairline);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.patch__live {
    width: 6px;
    height: 6px;
    border-radius: var(--r-pill);
    background: var(--c-signal);
    box-shadow: var(--glow-signal);
}

.jacks {
    list-style: none;
    margin: 0;
    padding: var(--sp-5);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-3);
}

.jack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-3) var(--sp-2);
    border: 1px solid var(--border-hairline);
    border-radius: var(--r-md);
    background: var(--surface-base);
    color: var(--text-secondary);
}

/* Each jack drops a line into the bus below. */
.jack::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: var(--sp-5);
    background: var(--border-strong);
}

.jack__tag {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
}

.jack__name {
    margin-top: var(--sp-1);
    font-size: var(--t-caption);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
}

/* The bus: the four drop-lines land on one horizontal rail, the rail carries a
   lit junction, and a single line continues down into the card. The caption
   sits on that line like a label on a wire. */
.rail {
    position: relative;
    height: var(--sp-8);
}

/* Spans from the centre of the first jack to the centre of the last one:
   half a column inset, where a column is (inner width - 3 gaps) / 4. */
.rail::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(var(--sp-5) + (100% - 2 * var(--sp-5) - 3 * var(--sp-3)) / 8);
    right: calc(var(--sp-5) + (100% - 2 * var(--sp-5) - 3 * var(--sp-3)) / 8);
    height: 1px;
    background: var(--border-strong);
}

/* One line leaves the junction and goes down into the card. */
.rail::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--border-strong);
}

/* The lamp sits on the junction itself — where the four lines meet. */
.rail__lamp {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: var(--r-pill);
    background: var(--c-signal);
    box-shadow: var(--glow-signal);
}

/* Interrupts the vertical line, so it reads as a label on the wire. The stacking
   order has to be said out loud: ::after is generated after this element, so
   without a z-index the wire painted straight through the sentence instead of
   stopping at its edges. */
.rail__note {
    z-index: 1;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 2 * var(--sp-5));
    padding-inline: var(--sp-3);
    background: var(--surface-raised);
    text-align: center;
    white-space: nowrap;
}

.outcard {
    margin: 0 var(--sp-5);
    border: 1px solid var(--border-hairline);
    border-radius: var(--r-md);
    border-top: 2px solid var(--c-graphite);
    background: var(--surface-base);
}

.outcard__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-hairline);
}

.outcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    border-top: 1px solid var(--border-hairline);
}

.outcard__wait {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--c-signal-ink);
}

.outcard__wait .t-caption {
    color: inherit;
}

.outcard__clock {
    font-size: var(--t-body-l);
    color: var(--c-signal-ink);
}

/* Field rows, shared by the customer card and the call record. */
.fields {
    margin: 0;
    padding: var(--sp-2) var(--sp-4);
}

.field {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: var(--sp-3);
    padding-block: var(--sp-2);
}

.field + .field {
    border-top: 1px solid color-mix(in srgb, var(--border-hairline) 55%, transparent);
}

.field dt {
    margin: 0;
}

.field dd {
    margin: 0;
    font-size: var(--t-body-s);
}

/* A closing line under a list, in the section's own voice rather than a new
   heading — used where a list needs one sentence of context after it. */
.section__after {
    margin-top: var(--sp-5);
    max-width: 62ch;
    color: var(--text-secondary);
}

/* Who answers when you write. */
.who {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border-hairline);
}

/* A team mark, not a face: the sentence beside it is about the company, and a
   portrait would promise one specific person answering. */
.who__face {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-pill);
    background: var(--c-brand);
    color: #fff;
    /* Also correct if this is ever swapped for a photo. */
    object-fit: cover;
}

.who__text {
    margin: 0;
    color: var(--text-secondary);
}

.who__text strong {
    color: var(--text-primary);
}

/* Language switch: a link, not a control — there are two languages, and the
   one you are not reading is the one worth showing. */
.nav__lang {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--border-hairline);
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    text-decoration: none;
    transition:
        border-color var(--dur-fast) var(--ease-relay),
        color var(--dur-fast) var(--ease-relay);
}

.nav__lang:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

/* ── Not found ────────────────────────────────────────────────────────────
   One column, centred, no nav bar: a visitor who landed here took a wrong turn
   and needs a way back, not the whole menu again.
   ====================================================================== */

.page-404 {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.oops {
    padding-block: var(--sp-8);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
}

.oops__mark img {
    display: block;
    height: 34px;
    width: auto;
    margin-bottom: var(--sp-5);
}

.oops__code {
    font-family: var(--font-mono);
    color: var(--c-signal-ink);
}

.oops__lede {
    max-width: 46ch;
    color: var(--text-secondary);
}

.oops__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-3);
    margin-top: var(--sp-2);
}

.oops__alt,
.oops__help {
    color: var(--text-secondary);
}

.oops__alt {
    margin-top: var(--sp-5);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border-hairline);
    width: min(100%, 46ch);
}

/* ── The patch panel as a loop ────────────────────────────────────────────
   Everything below is scoped to `.patch.is-demo`, a class only landing.js adds.
   With no script — or with reduced motion — the panel keeps the finished state
   that is in the HTML: every field filled, one line waiting, clock at 00:07.
   The animation is therefore additive, never something to recover from.
   ====================================================================== */

.patch.is-demo .jack {
    transition:
        border-color var(--dur-base) var(--ease-relay),
        color var(--dur-base) var(--ease-relay),
        box-shadow var(--dur-base) var(--ease-relay),
        background-color var(--dur-base) var(--ease-relay);
}

.patch.is-demo .jack.is-live {
    border-color: var(--c-signal);
    background: var(--surface-raised);
    box-shadow: var(--glow-signal);
}

.patch.is-demo .jack.is-live .jack__name {
    color: var(--c-signal-ink);
}

/* The drop-line is drawn downward as the line comes in, so the eye is carried
   from the channel to the bus instead of being asked to infer the path. */
.patch.is-demo .jack.is-live::after {
    background: var(--c-signal);
    animation: jack-drop var(--dur-base) var(--ease-relay) both;
}

@keyframes jack-drop {
    from {
        height: 0;
    }
    to {
        height: var(--sp-5);
    }
}

/* Idle until a line actually arrives — a lamp that is always lit says nothing. */
.patch.is-demo .rail__lamp,
.patch.is-demo .patch__live {
    background: var(--border-strong);
    box-shadow: none;
    transition:
        background-color var(--dur-fast) var(--ease-relay),
        box-shadow var(--dur-fast) var(--ease-relay);
}

.patch.is-demo .rail__lamp.is-live,
.patch.is-demo .patch__live.is-live {
    background: var(--c-signal);
    box-shadow: var(--glow-signal);
}

/* Card rows arrive one at a time: the claim is that the system fills the card
   in, so showing it already filled would be showing the wrong thing. */
.patch.is-demo .field {
    opacity: 0.25;
    transition:
        opacity var(--dur-base) var(--ease-relay),
        transform var(--dur-base) var(--ease-relay);
}

.patch.is-demo .field dd {
    opacity: 0;
    transform: translateY(3px);
    transition:
        opacity var(--dur-base) var(--ease-relay),
        transform var(--dur-base) var(--ease-relay);
}

.patch.is-demo .field.is-set {
    opacity: 1;
}

.patch.is-demo .field.is-set dd {
    opacity: 1;
    transform: none;
}

/* Waiting → answered. Same row, two states, one colour change. */
.demo-ico--done {
    display: none;
}

.patch.is-demo .outcard__wait,
.patch.is-demo .outcard__clock {
    transition: color var(--dur-base) var(--ease-relay);
}

.patch.is-demo [data-foot].is-idle .outcard__wait,
.patch.is-demo [data-foot].is-idle .outcard__clock {
    color: var(--text-secondary);
    opacity: 0.5;
}

.patch.is-demo [data-foot].is-answered .outcard__wait,
.patch.is-demo [data-foot].is-answered .outcard__clock {
    color: var(--c-patch-ink);
}

.patch.is-demo [data-foot].is-answered .demo-ico--wait {
    display: none;
}

.patch.is-demo [data-foot].is-answered .demo-ico--done {
    display: inline-block;
}

/* Too narrow for four side-by-side jacks: drop the wiring, keep the order. */
@media (max-width: 520px) {
    .jacks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--sp-2);
        padding-bottom: 0;
    }

    .jack::after,
    .rail::before,
    .rail::after,
    .rail__lamp {
        display: none;
    }

    .rail {
        height: auto;
        padding: var(--sp-4) var(--sp-5);
    }

    .rail__note {
        position: static;
        transform: none;
        display: block;
        max-width: none;
        padding-inline: 0;
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .field {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
}

/* ------------------------------------------------------------------ strip
   A single line of what the system connects to, directly under the hero —
   the answer to "does it do my channels" without a scroll.
   ------------------------------------------------------------------------ */

.strip {
    background: var(--surface-raised);
    border-block: 1px solid var(--border-hairline);
}

.strip__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4) var(--sp-6);
    padding-block: var(--sp-4);
}

.strip__item {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--t-caption);
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
}

.strip__item .icon {
    color: var(--c-patch-ink);
}

@media (max-width: 720px) {
    .strip__inner {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ------------------------------------------------------------------ pains */

.pains {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-5);
}

.pain {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding-top: var(--sp-4);
    border-top: 2px solid var(--c-graphite);
}

.pain__n {
    font-size: var(--t-caption);
    letter-spacing: var(--tr-label);
    color: var(--c-signal-ink);
}

/* The answer to the problem above it. `margin-top: auto` pins all three to the
   same baseline however uneven the paragraphs are, so the row reads as three
   problems each with a way out rather than three complaints. */
.pain__fix {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    margin-top: auto;
    padding-top: var(--sp-4);
    font-size: var(--t-caption);
    font-weight: var(--fw-semibold);
    color: var(--c-brand-deep);
    text-decoration: none;
}

.pain__fix .icon {
    transition: transform var(--dur-fast) var(--ease-relay);
}

.pain__fix:hover .icon {
    transform: translateX(3px);
}

@media (max-width: 860px) {
    .pains {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------- channels */

.channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5);
}

.chan {
    display: flex;
    flex-direction: column;
    background: var(--surface-raised);
    border: 1px solid var(--border-hairline);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.chan__head {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-5);
    border-bottom: 1px solid var(--border-hairline);
}

.chan__titles {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    min-width: 0;
}

.chan__tag {
    color: var(--text-secondary);
}

/* A numbered-free ordered read: each item is a step, marked by a short rule. */
.steps-list {
    list-style: none;
    margin: 0;
    padding: var(--sp-2) var(--sp-5) var(--sp-5);
}

.steps-list li {
    position: relative;
    padding-left: var(--sp-5);
    padding-block: var(--sp-3);
    font-size: var(--t-body-s);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-hairline);
}

.steps-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.steps-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(var(--sp-3) + 0.62em);
    width: 12px;
    height: 1px;
    background: var(--c-patch);
}

.steps-list strong {
    color: var(--text-primary);
    font-weight: var(--fw-semibold);
}

@media (max-width: 860px) {
    .channels {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ------------------------------------------------------------------- flow
   Five fixed steps. Read as one continuous run with a marker on each stop,
   rather than five columns of ragged text divided by rules.
   ------------------------------------------------------------------------ */

/* Columns follow the number of steps rather than a fixed five: the run of steps
   is used twice with different lengths, and pinning it to five left the shorter
   list squeezed into four fifths of the page with a dead column beside it. */
.flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: var(--sp-5);
}

.flow__step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding-top: calc(var(--sp-6) + var(--sp-2));
}

/* The run itself: each step draws the segment reaching the next marker, so the
   line stops at step 05 instead of trailing off past it. */
.flow__step::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 0;
    right: calc(var(--sp-5) * -1);
    height: 1px;
    background: var(--border-hairline);
}

.flow__step:last-child::before {
    display: none;
}

.flow__mark {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--text-primary);
    background: var(--surface-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
}

.flow__n {
    font-size: var(--t-caption);
    letter-spacing: var(--tr-label);
    color: var(--c-signal-ink);
}

@media (max-width: 1040px) {
    .flow {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--sp-6) var(--sp-5);
    }

    /* Two-up wraps, so a run through the markers would lie. Keep the markers,
       drop the wire. */
    .flow__step::before {
        display: none;
    }
}

@media (max-width: 620px) {
    .flow {
        grid-auto-flow: row;
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------------------------------------------------------------- measure
   Two-up: copy on the left, one instrument card on the right.
   ------------------------------------------------------------------------ */

.measure {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(var(--sp-6), 5vw, var(--sp-8));
    align-items: center;
}

.measure__copy {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.ticks {
    list-style: none;
    margin: var(--sp-2) 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.ticks li {
    position: relative;
    padding-left: var(--sp-5);
    font-size: var(--t-body-s);
    color: var(--text-secondary);
}

.ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 12px;
    height: 1px;
    background: var(--c-patch);
}

@media (max-width: 900px) {
    .measure {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------- callcard */

.callcard {
    background: var(--surface-base);
    border: 1px solid var(--border-hairline);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.callcard__head,
.callcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface-lift);
}

.callcard__title {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--text-secondary);
}

.callcard__head {
    border-bottom: 1px solid var(--border-hairline);
}

.callcard__foot {
    border-top: 1px solid var(--border-hairline);
}

/* A recording exists — drawn, not played. Fixed bars, no animation. */
.wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 20px;
    flex: 1;
}

.wave i {
    flex: 1;
    background: var(--c-patch);
    border-radius: 1px;
    height: 25%;
}

.wave i:nth-child(3n) {
    height: 60%;
}

.wave i:nth-child(4n) {
    height: 95%;
}

.wave i:nth-child(5n) {
    height: 40%;
}

.wave i:nth-child(7n) {
    height: 75%;
}

.wave i:nth-child(11n) {
    height: 100%;
}

/* ----------------------------------------------------------------- switch
   The AI section's two positions: the line stays on the machine, or it is
   thrown to a person. Both columns are the same shape so the reader compares
   them directly.
   ------------------------------------------------------------------------ */

.switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5);
}

.switch__col {
    background: var(--surface-raised);
    border: 1px solid var(--border-hairline);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    box-shadow: var(--shadow-card);
}

.switch__col--auto {
    border-top: 2px solid var(--c-patch);
}

.switch__col--human {
    border-top: 2px solid var(--c-signal);
}

.switch__head {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
}

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

.plain-list li {
    font-size: var(--t-body-s);
    color: var(--text-secondary);
    padding-block: var(--sp-3);
    border-bottom: 1px solid var(--border-hairline);
}

.plain-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-5);
    margin-top: var(--sp-6);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border-hairline);
}

.notes strong {
    color: var(--text-primary);
    font-weight: var(--fw-semibold);
}

@media (max-width: 860px) {
    .switch,
    .notes {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ------------------------------------------------------------------ cards */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-5);
}

.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-5);
    background: var(--surface-base);
    border: 1px solid var(--border-hairline);
    border-radius: var(--r-lg);
    transition:
        border-color var(--dur-fast) var(--ease-relay),
        box-shadow var(--dur-fast) var(--ease-relay);
}

.card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card);
}

.card .ichip {
    margin-bottom: var(--sp-1);
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ------------------------------------------------------------------ facts */

.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-5);
}

.fact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border-inverse);
}

@media (max-width: 900px) {
    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .facts {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* -------------------------------------------------------------------- faq
   Native <details>: no script, correct keyboard and screen-reader behaviour.
   ------------------------------------------------------------------------ */

.faq {
    border-top: 1px solid var(--border-hairline);
}

.qa {
    border-bottom: 1px solid var(--border-hairline);
}

.qa summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
    padding-block: var(--sp-5);
    font-family: var(--font-display);
    font-size: var(--t-heading);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    letter-spacing: -0.015em;
    cursor: pointer;
    list-style: none;
    transition: color var(--dur-fast) var(--ease-relay);
}

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

.qa summary:hover {
    color: var(--c-signal-ink);
}

.qa__sign {
    color: var(--text-secondary);
    transition: transform var(--dur-base) var(--ease-relay);
}

.qa[open] .qa__sign {
    transform: rotate(45deg);
    color: var(--c-signal-ink);
}

.qa__body {
    padding-bottom: var(--sp-5);
    max-width: var(--measure);
}

@media (max-width: 560px) {
    .qa summary {
        gap: var(--sp-4);
        font-size: var(--t-body);
    }
}

/* -------------------------------------------------------------------- cta */

.cta {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(var(--sp-6), 5vw, var(--sp-8));
    align-items: center;
}

.cta__copy {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.cta__lede {
    color: var(--text-secondary);
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-2);
}

.cta__points {
    list-style: none;
    margin: 0;
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    background: var(--surface-raised);
    border: 1px solid var(--border-hairline);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
}

.cta__points li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: var(--t-body-s);
    color: var(--text-secondary);
}

.cta__points .icon {
    margin-top: 0.15em;
    color: var(--c-patch-ink);
}

@media (max-width: 900px) {
    .cta {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ----------------------------------------------------------------- footer */

.footer {
    background: var(--surface-inverse);
    color: var(--text-inverse);
}

.footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
    gap: var(--sp-6);
    padding-block: var(--sp-7) var(--sp-6);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    max-width: 34ch;
}

.footer__brand .t-caption {
    color: var(--c-steel-dim);
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-2) var(--sp-5);
    align-content: start;
}

.footer__links a {
    font-size: var(--t-caption);
    color: var(--c-steel-dim);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-relay);
}

.footer__links a:hover {
    color: var(--text-inverse);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--sp-1);
    text-align: right;
}

.footer__phone {
    font-size: var(--t-body-l);
    color: var(--text-inverse);
    text-decoration: none;
    white-space: nowrap;
}

.footer__phone:hover {
    color: var(--c-signal);
}

.footer__mail {
    font-size: var(--t-caption);
    color: var(--c-steel-dim);
    text-decoration: none;
    /* An address must never be broken mid-word by a narrow column. */
    overflow-wrap: anywhere;
    transition: color var(--dur-fast) var(--ease-relay);
}

.footer__mail:hover {
    color: var(--text-inverse);
}

.footer__contact .t-caption {
    color: var(--c-steel-dim);
}

/* <address> is italic by default and would fight the phone readout above it.
   The cap is wide enough to keep street and city on one line at desktop; it
   still wraps once the footer stacks. */
.footer__address {
    font-style: normal;
    max-width: 34ch;
}

.footer__base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding-block: var(--sp-4);
    border-top: 1px solid var(--border-inverse);
}

/* Copyright and build credit travel together on the left; they wrap as a pair
   rather than one drifting to the far side of the row. */
.footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2) var(--sp-5);
}

.footer__credit {
    position: relative;
}

.footer__credit::before {
    content: '';
    position: absolute;
    left: calc(var(--sp-5) / -2);
    top: 50%;
    width: 1px;
    height: 12px;
    transform: translateY(-50%);
    background: var(--border-inverse);
}

.footer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2) var(--sp-5);
}

.footer__base .t-caption,
.footer__base a {
    color: var(--c-steel-dim);
    text-decoration: none;
}

/* The document you are already reading is not a link worth chasing. */
.footer__meta a[aria-current='page'] {
    color: var(--text-inverse);
}

.footer__base a:hover {
    color: var(--text-inverse);
}

/* Focus rings on the dark footer need the light outline. */
.footer :where(a):focus-visible {
    outline-color: var(--c-signal);
}

@media (max-width: 860px) {
    .footer__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-5);
    }

    .footer__contact {
        align-items: flex-start;
        text-align: left;
    }
}

/* ----------------------------------------------------------------- reveal
   One shared entrance: content lifts a few pixels as its block arrives. It is
   not decoration — it marks where one section ends and the next begins on a
   long page. Off entirely under reduced motion, and never applied before the
   script has confirmed it can observe (so nothing can stay hidden).
   ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
    .js-reveal [data-reveal] {
        opacity: 0;
        transform: translateY(12px);
        transition:
            opacity 520ms var(--ease-out),
            transform 520ms var(--ease-out);
    }

    .js-reveal [data-reveal].is-in {
        opacity: 1;
        transform: none;
    }
}
