/*
 * AppsForMyCar public site, v3 "Centre line" (docs/site-v3-design.md). Loaded instead of the built
 * site.css while SITE_V3 is on. Plain CSS, no build step.
 *
 * Colour is contextual: every component reads --bg --fg --muted --hair --link, and a lane (or the
 * dark theme) re-points them. Contrast of every pair: docs/site-v3-contrast.txt.
 */

@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url("archivo-variable-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url("archivo-variable.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light dark;
    --chalk: #ffffff;
    --fog: #eef1f4;
    --ink: #14181d;
    --slate: #4a5360;
    --rule: #c9d0d8;
    --kowhai: #ffc629;
    --on-kowhai: #14181d;
    --harbour: #0b4f9e;
    --tar: #14181d;
    --on-tar: #ffffff;
    --tar-muted: #b4bdc8;
    --tar-rule: #3a434f;
    --tar-link: #9ccaff;
    --ok: #0f6b43;
    --warn: #8a5200;
    --bad: #b3261e;
    --field: #ffffff;

    --bg: var(--chalk);
    --fg: var(--ink);
    --muted: var(--slate);
    --hair: var(--rule);
    --link: var(--harbour);

    --side: clamp(16px, 4vw, 48px);
    --gap: 24px;
    --air: clamp(4.5rem, 9vw, 7rem);
    --font: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root {
        --chalk: #0e1217;
        --fog: #171c23;
        --ink: #eef1f4;
        --slate: #a9b3bf;
        --rule: #313a46;
        --harbour: #8cc2ff;
        --tar: #1d242d;
        --on-tar: #eef1f4;
        --tar-muted: #a9b3bf;
        --tar-rule: #3a434f;
        --tar-link: #9ccaff;
        --ok: #6fdca5;
        --warn: #ffc978;
        --bad: #ff9a8f;
        --field: #0e1217;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-stretch: 100%;
    font-variant-numeric: tabular-nums;
    overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }
strong, b { font-weight: 700; }
small { font-size: .875rem; }

h1, h2, h3 { font-stretch: 118%; font-weight: 750; line-height: 1.05; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.6vw, 4.5rem); font-stretch: 125%; font-weight: 800; line-height: .98; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; font-stretch: 108%; font-weight: 700; line-height: 1.2; letter-spacing: 0; }

.wrap { width: 100%; max-width: calc(1320px + 2 * var(--side)); margin-inline: auto; padding-inline: var(--side); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--side); top: -4rem; z-index: 50; background: var(--kowhai); color: var(--on-kowhai); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: .5rem; }
.draft-banner { background: var(--kowhai); color: var(--on-kowhai); padding: .5rem var(--side); font-weight: 600; margin: 0 0 1.5rem; }
body > .draft-banner { margin: 0; text-align: center; }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; max-width: 38em; }
.figure { font-stretch: 112%; font-weight: 750; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .7rem 1.4rem;
    border: 2px solid var(--fg); border-radius: 4px;
    background: transparent; color: var(--fg);
    font: inherit; font-weight: 700; font-stretch: 108%; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn-primary { background: var(--kowhai); border-color: var(--kowhai); color: var(--on-kowhai); }
.btn-primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- A state: a square of colour beside its word (never colour alone) ---------- */
.state { display: inline-flex; align-items: baseline; gap: .5em; font-weight: 600; white-space: nowrap; }
.state::before { content: ""; width: .7em; height: .7em; flex: none; background: var(--ok); }
.state[data-state="next"]::before { background: transparent; box-shadow: inset 0 0 0 3px var(--warn); }
.state[data-state="soon"]::before { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.state[data-state="off"]::before { background: var(--muted); }
/* The older views that keep their own markup under v3 (legal pages, campaign pages) use .tag. */
.tag { display: inline-block; padding: .05em .5em; border: 1px solid var(--fg); border-radius: 3px; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.tag-coming, .tag-plain { border-color: var(--hair); color: var(--muted); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 3px solid var(--fg); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.mark { display: inline-flex; align-items: center; gap: .6rem; color: var(--fg); text-decoration: none; font-stretch: 125%; font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; white-space: nowrap; }
.mark-dash { width: 1.6rem; height: .5rem; background: var(--kowhai); flex: none; }
.mark img { display: block; max-height: 2.25rem; width: auto; }
.top-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.top-nav > a:not(.btn) { color: var(--fg); text-decoration: none; font-weight: 600; padding: .5rem .7rem; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.top-nav > a:not(.btn):hover, .top-nav > a[aria-current="page"] { border-bottom-color: var(--kowhai); }
.top-nav .btn { min-height: 40px; padding: .4rem 1rem; margin-left: .5rem; }
.top-back { margin-left: auto; font-weight: 600; }
.menu { display: none; margin-left: auto; }
.menu > summary { list-style: none; cursor: pointer; font-weight: 700; font-stretch: 108%; padding: .55rem 1rem; border: 2px solid var(--fg); border-radius: 4px; min-height: 44px; display: flex; align-items: center; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--fg); color: var(--bg); }
.menu-sheet { position: fixed; inset: calc(4.25rem + 3px) 0 0 0; background: var(--bg); padding: 1.25rem var(--side) 2rem; overflow-y: auto; display: flex; flex-direction: column; }
.menu-sheet > a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--hair); color: var(--fg); text-decoration: none; font-stretch: 118%; font-weight: 750; font-size: 1.625rem; line-height: 1.15; }
.menu-sheet .actions { margin-top: 1.5rem; flex-direction: column; }
.menu-sheet .actions .btn { width: 100%; }
@media (max-width: 960px) {
    .top-nav { display: none; }
    .menu { display: block; }
}

/* ---------- Lanes ---------- */
.lane { background: var(--bg); color: var(--fg); padding-block: var(--air); border-top: 3px solid var(--fg); }
.lane > .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2rem; align-items: start; }
.lane > .wrap > * { grid-column: 1 / -1; min-width: 0; }
.lane > .wrap > .kerb { grid-column: 1 / span 4; position: sticky; top: 6.5rem; }
.lane > .wrap > .way { grid-column: 5 / -1; }
.lane > .wrap > .half { grid-column: span 6; }
.kerb > * + * { margin-top: 1rem; }
.kerb p { color: var(--muted); max-width: 30em; }
.lane--fog { --bg: var(--fog); --field: var(--chalk); }
.lane--tar { --bg: var(--tar); --fg: var(--on-tar); --muted: var(--tar-muted); --hair: var(--tar-rule); --link: var(--tar-link); --ok: #6fdca5; --warn: #ffc978; --bad: #ff9a8f; --field: #0e1217; border-top-color: var(--tar); }
.lane--kowhai { --bg: var(--kowhai); --fg: #14181d; --muted: #3d3410; --hair: #14181d; --link: #14181d; --field: #ffffff; --ok: #0a4d30; --bad: #8c1a14; border-top-color: #14181d; color-scheme: light; }
.lane--flush { border-top: 0; }
@media (max-width: 900px) {
    .lane > .wrap > .kerb, .lane > .wrap > .way, .lane > .wrap > .half { grid-column: 1 / -1; position: static; }
}

/* ---------- Ruled rows: the list grammar used everywhere instead of cards ---------- */
.rows { border-top: 1px solid var(--hair); }
.rows > * { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); row-gap: .25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.rows > * > :first-child { font-weight: 700; font-stretch: 108%; }
.rows--3 > * { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; }
.rows dd, .rows p { color: var(--muted); }
.rows .state, .rows a { color: var(--fg); }
.rows a { color: var(--link); }
@media (max-width: 640px) {
    .rows > *, .rows--3 > * { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Home: hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero-where { font-weight: 600; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.hero-where::before { content: ""; width: 2.5rem; height: 3px; background: var(--fg); }
.hero h1 { font-size: clamp(2.5rem, 8.2vw, 7.25rem); line-height: .95; max-width: 13em; overflow-wrap: break-word; }
/* The centre line: the names of the apps that work today travel along it. */
.line { margin-block: clamp(2rem, 5vw, 3.5rem) 0; overflow: hidden; position: relative; padding-bottom: 1.4rem; }
.line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--kowhai) 0 72px, transparent 72px 120px); }
.line-track { display: flex; width: max-content; animation: line-travel 70s linear infinite; }
.line:hover .line-track, .line:focus-within .line-track { animation-play-state: paused; }
.line-track ul { display: flex; flex: none; }
.line-track li { display: flex; align-items: center; white-space: nowrap; font-stretch: 125%; font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.2; padding-right: 1.25rem; }
.line-track li::after { content: ""; width: .5rem; height: .5rem; background: var(--fg); margin-left: 1.25rem; }
.line-track a { color: var(--fg); text-decoration: none; }
.line-track a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--kowhai); }
@keyframes line-travel { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .line-track { animation: none; flex-wrap: wrap; width: auto; }
    .line-track ul { flex-wrap: wrap; row-gap: .25rem; }
    .line-track ul[aria-hidden="true"] { display: none; }
}
.hero-under { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gap); padding-block: clamp(2rem, 5vw, 3.5rem) var(--air); }
.hero-say { grid-column: 1 / span 7; }
.hero-say > * + * { margin-top: 1.25rem; }
.hero-price { color: var(--muted); max-width: 38em; }
.hero-index { grid-column: 9 / -1; }
.hero-index h2 { font-size: 1.25rem; font-stretch: 108%; letter-spacing: 0; padding-bottom: .75rem; border-bottom: 3px solid var(--fg); }
.hero-index li a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--hair); color: var(--fg); text-decoration: none; font-weight: 600; }
.hero-index li a:hover span:first-child { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--kowhai); }
.hero-index li a span:last-child { color: var(--muted); font-weight: 400; white-space: nowrap; }
.hero-index p { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
@media (max-width: 900px) {
    .hero-say, .hero-index { grid-column: 1 / -1; }
}

/* ---------- Home: what you get (a story you switch through; no script) ---------- */
.story-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--hair); margin-top: 1.5rem; }
.story input { position: absolute; opacity: 0; pointer-events: none; }
.story-tabs label { display: flex; align-items: center; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--hair); font-weight: 700; font-stretch: 108%; cursor: pointer; }
.story-tabs label::before { content: ""; width: 0; height: .5rem; background: var(--kowhai); transition: width .18s ease-out; }
.story-tabs label:hover::before { width: .75rem; }
.story-panel > * + * { margin-top: 1rem; }
.story-panel h3 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-stretch: 118%; font-weight: 750; line-height: 1.08; }
.story-panel p { max-width: 36em; font-size: 1.125rem; }
.story-panel + .story-panel { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--hair); }
@supports selector(:has(*)) {
    .story .story-panel { display: none; margin-top: 0; padding-top: 0; border-top: 0; }
    .story:has(#story-apps:checked) [data-panel="apps"],
    .story:has(#story-camera:checked) [data-panel="camera"],
    .story:has(#story-lock:checked) [data-panel="lock"],
    .story:has(#story-gauge:checked) [data-panel="gauge"],
    .story:has(#story-book:checked) [data-panel="book"],
    .story:has(#story-send:checked) [data-panel="send"] { display: block; }
    .story:has(#story-apps:checked) label[for="story-apps"]::before,
    .story:has(#story-camera:checked) label[for="story-camera"]::before,
    .story:has(#story-lock:checked) label[for="story-lock"]::before,
    .story:has(#story-gauge:checked) label[for="story-gauge"]::before,
    .story:has(#story-book:checked) label[for="story-book"]::before,
    .story:has(#story-send:checked) label[for="story-send"]::before { width: 2rem; }
    .story:has(input:focus-visible) .story-tabs { outline: 3px solid var(--link); outline-offset: 4px; }
    .story-panel { min-height: 15rem; }
}
@supports not selector(:has(*)) { .story-tabs { display: none; } }
.story-more { margin-top: 2rem; }
@media (max-width: 900px) {
    .story-tabs { flex-direction: row; flex-wrap: wrap; gap: .5rem; border-top: 0; }
    .story-tabs label { border: 2px solid var(--fg); border-radius: 4px; padding: .45rem .8rem; min-height: 44px; }
    .story-tabs label::before { display: none; }
    @supports selector(:has(*)) {
        .story:has(#story-apps:checked) label[for="story-apps"],
        .story:has(#story-camera:checked) label[for="story-camera"],
        .story:has(#story-lock:checked) label[for="story-lock"],
        .story:has(#story-gauge:checked) label[for="story-gauge"],
        .story:has(#story-book:checked) label[for="story-book"],
        .story:has(#story-send:checked) label[for="story-send"] { background: var(--kowhai); border-color: var(--kowhai); color: var(--on-kowhai); }
        .story-panel { min-height: 0; }
    }
}

/* ---------- Home: the catalogue ---------- */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.filter input { position: absolute; opacity: 0; pointer-events: none; }
.filter label { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem; border: 2px solid var(--fg); border-radius: 4px; font-weight: 600; cursor: pointer; }
.filter input:checked + label { background: var(--fg); color: var(--bg); }
.filter input:focus-visible + label { outline: 3px solid var(--link); outline-offset: 3px; }
.shelf { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); column-gap: var(--gap); row-gap: .75rem; padding: 1.5rem 0; border-top: 3px solid var(--fg); scroll-margin-top: 6rem; }
.shelf-head p { color: var(--muted); margin-top: .4rem; font-size: 1rem; }
.shelf ul { columns: 2; column-gap: var(--gap); }
.shelf li { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--hair); break-inside: avoid; }
.shelf-app { display: flex; gap: .6rem; align-items: flex-start; min-width: 0; }
.shelf-app img { flex: none; margin-top: .2rem; border-radius: 4px; }
.shelf-app a { color: var(--fg); font-weight: 700; text-decoration: none; }
.shelf-app a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--kowhai); }
.shelf-app small { display: block; color: var(--muted); line-height: 1.4; }
.shelf li > .state, .shelf li > .stars { font-size: .875rem; flex: none; }
.stars { color: var(--fg); letter-spacing: .05em; white-space: nowrap; }
.cat-notes { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 3px solid var(--fg); color: var(--muted); }
.cat-notes p + p { margin-top: .5rem; }
@media (max-width: 760px) {
    .shelf { grid-template-columns: minmax(0, 1fr); }
    .shelf ul { columns: 1; }
}
/* The filter: which states show. Not-working apps only when asked for; a shelf with nothing to show goes. */
.shelf li[data-status="not_working"] { display: none; }
@supports selector(:has(*)) {
    .cat:has(#app-filter-not_working:checked) .shelf li[data-status="not_working"] { display: flex; }
    .cat:has(#app-filter-tested:checked) .shelf li:not([data-status="tested"]),
    .cat:has(#app-filter-testing:checked) .shelf li:not([data-status="testing"]),
    .cat:has(#app-filter-not_working:checked) .shelf li:not([data-status="not_working"]) { display: none; }
    .cat:has(#app-filter-all:checked) .shelf:not(:has(li:not([data-status="not_working"]))),
    .cat:has(#app-filter-tested:checked) .shelf:not(:has(li[data-status="tested"])),
    .cat:has(#app-filter-testing:checked) .shelf:not(:has(li[data-status="testing"])),
    .cat:has(#app-filter-not_working:checked) .shelf:not(:has(li[data-status="not_working"])) { display: none; }
}
@supports not selector(:has(*)) { .filter { display: none; } }

/* ---------- Stops on the line: a real sequence (how it works, install steps) ---------- */
.stops { counter-reset: stop; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); position: relative; padding-top: 2.75rem; }
.stops::before { content: ""; position: absolute; left: 0; right: 0; top: .9rem; height: 6px; background: repeating-linear-gradient(90deg, var(--kowhai) 0 40px, transparent 40px 64px); }
.stops > li { counter-increment: stop; position: relative; }
.stops > li::before { content: counter(stop); position: absolute; top: -2.75rem; left: 0; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; background: var(--fg); color: var(--bg); font-stretch: 112%; font-weight: 800; }
.stops h3 { margin-bottom: .5rem; }
.stops p { color: var(--muted); }
.stops--down { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 3.5rem; row-gap: 1.5rem; }
.stops--down::before { left: .9rem; right: auto; top: 0; bottom: 0; width: 6px; height: auto; background: repeating-linear-gradient(180deg, var(--kowhai) 0 24px, transparent 24px 40px); }
.stops--down > li::before { top: 0; left: -3.5rem; }
.stops--down > li { min-height: 2.25rem; padding-top: .25rem; }
.stops--down p, .stops--down > li { color: var(--fg); }
@media (max-width: 900px) {
    .stops { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 3.5rem; row-gap: 1.75rem; }
    .stops::before { left: .9rem; right: auto; top: 0; bottom: 0; width: 6px; height: auto; background: repeating-linear-gradient(180deg, var(--kowhai) 0 24px, transparent 24px 40px); }
    .stops > li::before { top: 0; left: -3.5rem; }
    .stops > li { min-height: 2.25rem; }
}

/* ---------- Cars, areas ---------- */
.cars > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 6fr); column-gap: var(--gap); row-gap: .2rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--hair); }
.cars > li:first-child { border-top: 3px solid var(--fg); }
.car-name { font-stretch: 125%; font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.1; letter-spacing: -.01em; }
.cars small { color: var(--muted); font-size: 1rem; }
@media (max-width: 640px) { .cars > li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Logbook example ---------- */
.ledger { overflow-x: auto; }
.ledger table, .plain-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ledger caption { text-align: left; color: var(--muted); padding-bottom: .5rem; font-size: .875rem; }
.ledger th, .ledger td, .plain-table th, .plain-table td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--hair); vertical-align: baseline; }
.ledger thead th, .plain-table thead th { border-bottom: 3px solid var(--fg); font-weight: 700; }
.ledger .num { text-align: right; padding-right: 1.25rem; }
.ledger tbody tr:last-child td { border-bottom: 0; font-weight: 700; }
.points > li { padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.points > li:first-child { border-top: 1px solid var(--hair); }
.points .state { font-size: .875rem; display: flex; margin-bottom: .2rem; color: var(--muted); }
.points span.text { color: var(--muted); }
.ticks > li { padding: .45rem 0 .45rem 1.75rem; position: relative; }
.ticks > li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 1rem; height: 4px; background: var(--kowhai); }

/* ---------- Price ---------- */
.price-big { font-stretch: 125%; font-weight: 800; font-size: clamp(2rem, 5.5vw, 4.25rem); line-height: 1; letter-spacing: -.02em; }
.price-sign { border-top: 8px solid var(--kowhai); padding-top: 1.25rem; }
.price-sign > * + * { margin-top: .5rem; }
.price-sign p:not(.price-big) { color: var(--muted); }
.stack > * + * { margin-top: 1rem; }
.stack > h3 { margin-top: 2.25rem; }
.stack .note { color: var(--muted); font-size: .875rem; }

/* ---------- Later ---------- */
.later { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.later > li { padding: 1.1rem 0; border-top: 1px solid var(--hair); }
.later p { color: var(--muted); margin-top: .3rem; }
@media (max-width: 640px) { .later { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Questions ---------- */
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-of-type { border-top: 3px solid var(--fg); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; padding: 1.1rem 0; font-weight: 700; font-stretch: 108%; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > :not(summary) { max-width: 40em; padding-bottom: 1.25rem; color: var(--muted); }
.faq details > p + p { margin-top: -.5rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; max-width: 44rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem var(--gap); }
@media (max-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .4rem; align-content: start; }
.field > label, .form legend { font-weight: 700; }
.form legend { margin-bottom: .6rem; }
.hint { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="url"], .form select, .form textarea {
    width: 100%; min-height: 48px; padding: .65rem .8rem;
    border: 2px solid var(--fg); border-radius: 4px;
    background: var(--field); color: var(--fg);
    font: inherit; font-size: 1rem;
}
.lane--kowhai .form input, .lane--kowhai .form select, .lane--kowhai .form textarea { color: #14181d; }
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.form [aria-invalid="true"] { border-color: var(--bad); }
.field-error { color: var(--bad); font-weight: 600; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem var(--gap); }
@media (max-width: 520px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: .7rem; align-items: flex-start; padding: .35rem 0; cursor: pointer; }
.check input { width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; flex: none; accent-color: var(--fg); }
.notice { color: var(--muted); font-size: .875rem; }
.trap { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.success { border-left: 8px solid var(--ok); padding: .5rem 0 .5rem 1.25rem; }
.success > * + * { margin-top: .5rem; }
.form .btn { justify-self: start; }
.lane--kowhai .btn-primary { background: #14181d; border-color: #14181d; color: #ffffff; }
.lane--kowhai .btn-primary:hover { background: #ffffff; color: #14181d; }

/* ---------- Page head (every page but home) ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.page-head > .wrap > * + * { margin-top: 1.25rem; }
.page-head p { max-width: 40em; }
.crumbs { font-weight: 600; display: flex; flex-wrap: wrap; gap: .5rem; }
.crumbs a { color: var(--fg); }
.eyebrow { font-weight: 600; color: var(--muted); }
.jump { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.jump a { padding: .6rem 0; border-bottom: 1px solid var(--hair); color: var(--fg); text-decoration: none; font-weight: 600; }
.jump a:hover { box-shadow: inset 4px 0 0 var(--kowhai); padding-left: .75rem; }
@media (max-width: 900px) { .jump { flex-direction: row; flex-wrap: wrap; gap: .25rem 1.25rem; border: 0; } .jump a { border: 0; text-decoration: underline; padding: .35rem 0; } }

/* ---------- Features ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) minmax(5.5rem, auto); column-gap: var(--gap); row-gap: .25rem; padding: 1rem 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.feature:first-child { border-top: 3px solid var(--fg); }
.feature h3 { font-size: 1.0625rem; }
.feature p { color: var(--muted); }
.feature-for { display: flex; flex-direction: column; gap: .15rem; font-size: .875rem; align-items: flex-start; }
.feature-for .who { color: var(--muted); }
.feature-for .who--fleet { color: var(--fg); font-weight: 700; box-shadow: inset 0 -.5em 0 var(--kowhai); }
.lane--tar .feature-for .who--fleet, .lane--fog .feature-for .who--fleet { box-shadow: none; text-decoration: underline; text-decoration-color: var(--kowhai); text-decoration-thickness: 4px; }
@media (max-width: 760px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature-for { flex-direction: row; gap: 1rem; } }
@media (prefers-color-scheme: dark) { .feature-for .who--fleet { box-shadow: none; text-decoration: underline; text-decoration-color: var(--kowhai); text-decoration-thickness: 4px; } }

/* ---------- App page ---------- */
.app-head { display: flex; gap: 1.5rem; align-items: flex-start; }
.app-head img { flex: none; border-radius: 8px; margin-top: .4rem; }
.app-head h1 + p { margin-top: 1rem; font-size: 1.25rem; max-width: 30em; }
.app-head .state { margin-top: 1.25rem; font-size: 1.125rem; }
.facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .2rem var(--gap); padding: .8rem 0; border-bottom: 1px solid var(--hair); }
.facts > div:first-child { border-top: 3px solid var(--fg); }
.facts dt { font-weight: 700; }
.facts dd small { display: block; color: var(--muted); }
.related { columns: 2; column-gap: var(--gap); }
.related li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--hair); break-inside: avoid; }
.related a { color: var(--fg); font-weight: 700; }
@media (max-width: 640px) { .related { columns: 1; } }

/* ---------- What's new: days on the line ---------- */
.days { position: relative; padding-left: 3rem; }
.days::before { content: ""; position: absolute; left: .55rem; top: .5rem; bottom: 0; width: 6px; background: repeating-linear-gradient(180deg, var(--kowhai) 0 24px, transparent 24px 40px); }
.day { position: relative; padding-bottom: 2.5rem; }
.day::before { content: ""; position: absolute; left: -3rem; top: .35rem; width: 1.5rem; height: 1.5rem; background: var(--fg); }
.day h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); display: flex; flex-wrap: wrap; gap: .75rem; align-items: baseline; }
.day h2 .state { font-size: .875rem; font-stretch: 100%; letter-spacing: 0; }
.day-items { margin-top: .75rem; border-top: 1px solid var(--hair); }
.day-items > li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .25rem var(--gap); padding: .85rem 0; border-bottom: 1px solid var(--hair); }
.day-items .area { font-weight: 700; }
.day-items .version { color: var(--muted); font-size: .875rem; }
.day-items p { max-width: 42em; }
@media (max-width: 640px) { .day-items > li { grid-template-columns: minmax(0, 1fr); } .days { padding-left: 2.25rem; } .day::before { left: -2.25rem; width: 1.25rem; height: 1.25rem; } .days::before { left: .4rem; } }

/* ---------- Guides ---------- */
.guide-list { counter-reset: g; border-top: 3px solid var(--fg); }
.guide-list a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: .25rem var(--gap); padding: 1.25rem 0; border-bottom: 1px solid var(--hair); color: var(--fg); text-decoration: none; }
.guide-list a:hover .guide-title { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--kowhai); }
.guide-title { font-stretch: 112%; font-weight: 750; font-size: 1.25rem; line-height: 1.2; }
.guide-summary { color: var(--muted); }
@media (max-width: 640px) { .guide-list a { grid-template-columns: minmax(0, 1fr); } }

/* Long-form text: a guide's body, the legal pages, the stick instructions, campaign text. */
.prose, .guide-body { max-width: 44rem; }
.prose > * + *, .guide-body > * + * { margin-top: 1rem; }
.prose h1 { margin-bottom: 1.5rem; }
.prose h2, .guide-body h2 { font-size: 1.5rem; font-stretch: 112%; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hair); }
.prose h3, .guide-body h3 { margin-top: 1.75rem; }
.prose ul, .guide-body ul { list-style: square; padding-left: 1.25rem; }
.prose ol, .guide-body ol { list-style: decimal; padding-left: 1.5rem; }
.prose li + li, .guide-body li + li { margin-top: .4rem; }
.prose li::marker, .guide-body li::marker { font-weight: 700; }
.prose table, .guide-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td, .guide-body th, .guide-body td { text-align: left; padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.guide-body img { display: block; border: 1px solid var(--hair); }
.guide-body code, .prose code { font-family: inherit; font-weight: 700; }
.guide-needs { border-left: 8px solid var(--kowhai); padding: .25rem 0 .25rem 1rem; }
.guide, .prose, .lp { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--air); }
.wrap > .prose, .wrap.guide { padding-inline: var(--side); }
.wrap > .prose { padding-inline: 0; }
.guide-head { margin-bottom: 2rem; }
.guide-head > * + * { margin-top: 1rem; }
.guide-head p { max-width: 40em; color: var(--muted); font-size: 1.125rem; }
.guide-more { margin-top: 3rem; padding-top: 1.5rem; border-top: 3px solid var(--fg); max-width: 44rem; }
.guide-more h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.guide-more li { padding: .5rem 0; border-bottom: 1px solid var(--hair); }
.guides-help { margin-top: 2rem; color: var(--muted); }

/* ---------- Landing pages (register, campaign): the form rides beside the story ---------- */
.lp-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem var(--gap); align-items: start; }
.lp-grid > * { grid-column: 1 / span 7; min-width: 0; }
.lp-grid > .lp-form { grid-column: 9 / -1; grid-row: 1 / span 6; position: sticky; top: 6rem; }
@media (max-width: 960px) { .lp-grid > *, .lp-grid > .lp-form { grid-column: 1 / -1; grid-row: auto; position: static; } }
.lp-hero > * + * { margin-top: 1.25rem; }
.lp-soon, .lp-small { color: var(--muted); }
.lp-small { font-size: .875rem; margin-top: .75rem; }
.lp-label { font-size: 1.25rem; font-stretch: 108%; font-weight: 700; letter-spacing: 0; padding-bottom: .6rem; border-bottom: 3px solid var(--fg); margin-bottom: 0; }
.lp-card { background: var(--kowhai); color: #14181d; padding: 1.5rem; --fg: #14181d; --muted: #3d3410; --link: #14181d; --field: #ffffff; --bad: #8c1a14; --ok: #0a4d30; color-scheme: light; }
.lp-card input, .lp-card select, .lp-card textarea { color: #14181d; }
.lp-card h2 { font-size: 1.75rem; }
.lp-card .btn-primary { background: #14181d; border-color: #14181d; color: #ffffff; width: 100%; }
.lp-card .btn-primary:hover { background: #ffffff; color: #14181d; }
.lp-card a { color: #14181d; }
.lp-thanks { background: var(--fog); padding: 1.5rem; border-left: 8px solid var(--ok); }
.lp-other[hidden] { display: none; }
.benefits > li { padding: 1.1rem 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: .25rem var(--gap); }
.benefits > li:first-child { border-top: 3px solid var(--fg); }
.benefits h2 { font-size: 1.125rem; font-stretch: 108%; letter-spacing: 0; line-height: 1.25; }
.benefits p { color: var(--muted); }
@media (max-width: 640px) { .benefits > li { grid-template-columns: minmax(0, 1fr); } }
.cp-preview { background: var(--fog); padding-block: .75rem; margin-bottom: 1.5rem; }
.cp-block + .cp-block { margin-top: 2.5rem; }
.cp-block > * + * { margin-top: 1rem; }
.cp-h { font-size: 1.75rem; }
.cp-features { list-style: none; }
.cp-features li { padding: .7rem 0 .7rem 1.75rem; border-bottom: 1px solid var(--hair); position: relative; }
.cp-features li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 1rem; height: 4px; background: var(--kowhai); }
.cp-image { display: block; width: 100%; }
.cp-quote { border-left: 8px solid var(--kowhai); padding-left: 1.25rem; font-size: 1.25rem; }
.cp-offer { border: 3px solid var(--fg); padding: 1.25rem; }
.cp-faq details { border-bottom: 1px solid var(--hair); padding: .8rem 0; }
.cp-faq summary { font-weight: 700; cursor: pointer; }

/* ---------- Contact ---------- */
.alt > li { padding: .8rem 0; border-bottom: 1px solid var(--hair); }
.alt > li:first-child { border-top: 1px solid var(--hair); }

/* ---------- Footer ---------- */
.foot { --bg: var(--tar); --fg: var(--on-tar); --muted: var(--tar-muted); --hair: var(--tar-rule); --link: var(--on-tar); background: var(--bg); color: var(--fg); padding-block: clamp(3rem, 7vw, 5.5rem) 2.5rem; }
.foot-mark { font-stretch: 125%; font-weight: 800; font-size: min(8.4vw, 8.5rem); line-height: .9; letter-spacing: -.03em; white-space: nowrap; padding-bottom: 1.75rem; position: relative; }
.foot-mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--kowhai) 0 72px, transparent 72px 120px); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem var(--gap); margin-top: 2.5rem; }
.foot-cols h2 { font-size: 1rem; font-stretch: 108%; letter-spacing: 0; margin-bottom: .6rem; color: var(--muted); font-weight: 600; }
.foot-cols li { padding: .3rem 0; }
.foot-cols a { color: var(--fg); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.foot-cols a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--kowhai); }
.foot-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hair); color: var(--muted); font-size: .875rem; max-width: 60em; }
.foot-legal a { color: var(--fg); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.empty { color: var(--muted); padding: 2rem 0; }

/* ---------- Feature groups (features page) ---------- */
.feature-group { scroll-margin-top: 6rem; }
.feature-group + .feature-group { margin-top: 4.5rem; }
.feature-group-intro { color: var(--muted); margin: .75rem 0 1.5rem; max-width: 40em; }
.features-more { margin-top: 3rem; padding-top: 1.5rem; border-top: 3px solid var(--fg); max-width: 44rem; }
.page-head + .lane { padding-top: clamp(2.5rem, 5vw, 4rem); }
