/* Magnum's site. The app's own type (Goeist, as in its window), its Light theme inks (aluminium,
   espresso, signal orange, periwinkle) and its dots: the halftone cup and sun, and the dot numerals
   of a display. One sheet for every page: the kit first (bar, buttons, footer, forms), then the
   homepage's sections, then the pages the release and scripts/early-access.mjs write. */

@font-face {
    font-family: "Goeist";
    src: url("/fonts/Goeist-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Goeist";
    src: url("/fonts/Goeist-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Goeist";
    src: url("/fonts/Goeist-SemiBold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Goeist Mono";
    src: url("/fonts/GoeistMono-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --alu: #F1F1F4;
    --alu-hi: #F8F8FA;
    --alu-lo: #E6E6EB;
    --sheet: #FFFFFF;
    --ink: #2A1810;
    --ink-2: #5E4E47;
    --ink-3: #75665F;
    --line: #D9D9E0;
    --line-soft: #E4E4EA;
    --signal: #FF3D00;
    --signal-ink: #C42E00;
    --peri: #8F8EE8;
    --peri-soft: #C9C8F8;
    --go: #1F9D55;
    --ghost: rgba(42, 24, 16, 0.07);

    /* a tile's ground: each of the app's inks, thinned */
    --tone-peri: #D9D8FB;
    --tone-peach: #FFD5C6;
    --tone-sage: #CDE7D3;
    --tone-amber: #F8E2A8;

    /* the night ground (the run's board, the closing, the footer) and what's written on it */
    --night: #1E110B;
    --night-2: #2E1C13;
    --night-line: rgba(241, 241, 244, 0.12);
    --on-night: #F1F1F4;
    --on-night-2: #BDAFA8;

    --sans: "Goeist", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Goeist Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --wrap: 1200px;
    --gutter: 16px;
    --pitch: min(13px, calc((100vw - 2 * var(--gutter)) / 74));
    --radius-plate: 16px;
    --radius-tile: 28px;
    --shadow-plate: 0 1px 2px rgba(42, 24, 16, 0.06), 0 12px 32px -12px rgba(42, 24, 16, 0.18);
    --shadow-card: 0 1px 2px rgba(42, 24, 16, 0.08), 0 6px 16px -8px rgba(42, 24, 16, 0.16);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
    :root { --gutter: 32px; }
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--alu);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

code, kbd {
    font-family: var(--mono);
    font-size: 0.86em;
    background: var(--alu-lo);
    border-radius: 6px;
    padding: 0.1em 0.35em;
}

::selection { background: var(--peri-soft); color: var(--ink); }

:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
    border-radius: 8px;
}

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

.skip {
    position: absolute;
    left: var(--gutter);
    top: -60px;
    z-index: 20;
    background: var(--ink);
    color: var(--alu);
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- type ---------- */

h1 {
    font-size: clamp(44px, 7.4vw, 96px);
    line-height: 0.98;
    font-weight: 600;
    letter-spacing: -0.045em;
    text-wrap: balance;
}
h2 {
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
h3 {
    font-size: 21px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.lede {
    max-width: 34em;
    margin-top: clamp(20px, 2.6vw, 28px);
    font-size: clamp(18px, 1.7vw, 21px);
    line-height: 1.5;
    color: var(--ink-2);
    text-wrap: pretty;
}
.head { max-width: 44em; }
.head p, .split-text p {
    margin-top: 18px;
    font-size: clamp(17px, 1.5vw, 19px);
    color: var(--ink-2);
    max-width: 34em;
    text-wrap: pretty;
}
.split-text p + p { margin-top: 14px; }
.head a, .split-text p a, .spec span a { color: var(--ink); text-underline-offset: 3px; }

/* a line icon: drawn with the ink it sits in */
.ic-stroke, .ic-stroke use { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- dots: the app's dot letters (scripts/dots.mjs) ---------- */

.dots { display: block; height: auto; overflow: visible; }
.dots pattern circle { fill: var(--ghost); }
.dots-lit { stroke: currentColor; }

/* a page title in dot letters (the Guide and the Changelog, written by the release) */
.display { color: var(--ink); line-height: 0; }
.display .dots {
    width: calc(var(--cols) * var(--pitch));
    max-width: 100%;
}
.display .dots + .dots { margin-top: calc(var(--pitch) * 2.4); }

/* ---------- top bar ---------- */

.top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(241, 241, 244, 0.82);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.top.is-scrolled { border-bottom-color: var(--line); }

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    text-decoration: none;
    color: var(--ink);
}
.brand-mark { width: 30px; height: 30px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}
.nav-link:hover { color: var(--ink); background: var(--alu-lo); }
.nav-link[aria-current="page"] { color: var(--ink); background: var(--alu-lo); }
.nav-install {
    margin-left: 10px;
    padding: 0 18px;
    background: var(--ink);
    color: var(--alu-hi);
    font-weight: 600;
}
.nav-install:hover, .nav-install[aria-current="page"] { background: #45291C; color: #fff; }

@media (max-width: 980px) {
    .nav-optional { display: none; }
}
@media (max-width: 420px) {
    .nav-install { padding: 0 14px; margin-left: 4px; }
    .brand { font-size: 18px; }
}

/* ---------- buttons ---------- */

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    font: 600 16.5px/1 var(--sans);
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: default; }
/* a page's main button: espresso, as the bar's and the app's own actions, with the signal as one
   small lamp before its words (the person, 2026-11-18: orange under dark text "is not inviting") */
.btn-go { background: var(--ink); color: var(--alu-hi); }
.btn-go::before {
    content: "";
    width: 9px; height: 9px;
    flex: none;
    border-radius: 50%;
    background: var(--signal);
}
.btn-go:hover { background: #45291C; }
/* the admit page's small buttons go without the lamp */
.adm-buttons .btn-go::before { content: none; }
.btn-quiet { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { background: var(--alu-hi); box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.btn .btn-time { font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }

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

.hero { padding-top: clamp(40px, 7vw, 88px); }

/* the homepage's: centred over the window, the sun rising behind it */
.hero-home { padding-top: clamp(36px, 6vw, 72px); text-align: center; overflow: hidden; }
.hero-home .lede { max-width: 37em; margin-left: auto; margin-right: auto; }
.hero-home .cta { justify-content: center; }

.avail {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 14px;
    padding: 5px 16px 5px 5px;
    margin-bottom: clamp(24px, 3.4vw, 36px);
    border-radius: 999px;
    background: var(--sheet);
    box-shadow: inset 0 0 0 1px var(--line-soft);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
}
.avail:hover { box-shadow: inset 0 0 0 1px var(--line); }
.avail-tag {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--alu-hi);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.avail-os { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 420px) {
    .avail { gap: 4px 10px; padding-right: 12px; font-size: 13px; }
    .avail-tag { padding: 4px 9px; font-size: 12px; }
    .avail-os { gap: 4px; }
}
.avail-os svg { width: 14px; height: 14px; fill: var(--ink); color: var(--ink); }
.avail-os .ic-stroke { fill: none; }

/* an agent's name with its mark, inline in a sentence */
.agent { white-space: nowrap; color: var(--ink); font-weight: 500; }
.agent svg {
    display: inline-block;
    width: 0.88em; height: 0.88em;
    margin-right: 0.28em;
    vertical-align: -0.08em;
    fill: currentColor;
}
.agent .mark-claude { fill: #D97757; }

.hero-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    margin-top: 20px;
    font-size: 15px;
    color: var(--ink-2);
}
.backed {
    color: var(--ink-2);
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 3px;
}
.backed:hover { color: var(--ink); text-decoration: underline; }
.backed-mark { display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; fill: #D97757; }

.hero-stage {
    /* the sun's width; the part of it that shows above the window, and room over that */
    --sun: min(760px, 92vw);
    position: relative;
    margin-top: calc(var(--sun) * 0.23 + 32px);
    padding-bottom: clamp(48px, 7vw, 96px);
}
/* the mark's sun, in its dots, half risen behind the window */
.hero-sun {
    position: absolute;
    left: 50%;
    top: 0;
    width: var(--sun);
    aspect-ratio: 1;
    transform: translate(-50%, -23%);
    background: url("/media/sun.svg") center / contain no-repeat;
    pointer-events: none;
}
.hero-shot { position: relative; margin: 0 auto; }
.hero-shot img, .fleet-shot img {
    width: 100%;
    filter: drop-shadow(0 2px 3px rgba(42, 24, 16, 0.14)) drop-shadow(0 30px 50px rgba(42, 24, 16, 0.22));
}

@media (prefers-reduced-motion: no-preference) {
    /* The page's one moment: the sun comes up behind the window as the page opens. */
    .hero-sun { animation: sunrise 1.2s var(--ease) 0.1s both; }
}
/* It starts behind the window, so a page whose clock never runs still shows the window. */
@keyframes sunrise {
    from { transform: translate(-50%, 6%); }
    to { transform: translate(-50%, -23%); }
}

/* a page's hero with no capture under it (teams, early access) */
.hero-plain { padding-bottom: clamp(56px, 8vw, 96px); }

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

main > section:not(.hero) { padding: clamp(64px, 9vw, 120px) 0; }

.plate {
    margin: 0;
    border-radius: var(--radius-plate);
    background: var(--sheet);
    box-shadow: var(--shadow-plate);
    overflow: hidden;
}
.plate img { width: 100%; }

.split { display: grid; gap: 40px; }
@media (min-width: 960px) {
    .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
}

/* ---------- the run: a real one, on a display's night ground ---------- */

main > section.run { padding-top: 0; }
.run-board {
    display: grid;
    gap: 40px;
    padding: clamp(24px, 4.4vw, 56px);
    border-radius: clamp(24px, 3vw, 40px);
    background: var(--night);
    color: var(--on-night);
}
@media (min-width: 1000px) {
    .run-board { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
}
.run-text h2 { font-size: clamp(30px, 3.6vw, 46px); }
.run-text p { margin-top: 18px; color: var(--on-night-2); max-width: 30em; }

/* its numbers, lit as a display lights them */
.readout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--night-line);
}
@media (min-width: 560px) {
    .readout { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}
.readout li { display: grid; gap: 12px; align-content: start; }
.readout .dots { height: 35px; width: auto; color: #FF6A33; }
.readout .dots pattern circle { fill: rgba(241, 241, 244, 0.08); }
.readout span { font-size: 14px; color: var(--on-night-2); }

.film {
    position: relative;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 0 1px var(--night-line);
}
.film-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-play {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 0 14px;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--alu);
    color: var(--ink);
    font: 600 16px/1 var(--sans);
    cursor: pointer;
    transition: background-color 0.15s;
}
.film-play svg { width: 22px; height: 22px; fill: var(--signal); }
.film-time { font-weight: 400; font-variant-numeric: tabular-nums; opacity: 0.72; }
.film-play:hover { background: #fff; }

/* ---------- what Magnum does: tiles, each with a small drawing of the thing ---------- */

.bento {
    display: grid;
    gap: 16px;
    margin-top: clamp(36px, 5vw, 56px);
}
@media (min-width: 680px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile-4 { grid-column: span 2; }
}
@media (min-width: 1040px) {
    .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .tile-2 { grid-column: span 2; }
    .tile-3 { grid-column: span 3; }
    .tile-4 { grid-column: span 4; }
}
.tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--radius-tile);
    background: var(--sheet);
    overflow: hidden;
}
.tile-art {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    min-height: 248px;
    padding: 28px 28px 8px;
}
.tile-text { padding: 20px 28px 28px; }
@media (min-width: 680px) {
    /* a row's titles on one line, whatever their paragraphs' lengths (up to four lines) */
    .tile-text { min-height: 178px; }
}
/* a drawing that runs off the tile's floor (the phone) */
.tile-art.is-flush { align-items: end; padding-bottom: 0; overflow: hidden; }
.tile-text p {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-2);
    max-width: 36em;
    text-wrap: pretty;
}
.tone-peri { background: var(--tone-peri); }
.tone-peach { background: var(--tone-peach); }
.tone-sage { background: var(--tone-sage); }
.tone-amber { background: var(--tone-amber); }
.tone-night { background: var(--night); color: var(--on-night); }
.tone-night .tile-text p { color: var(--on-night-2); }
/* on a tinted ground the quiet ink is the ground's own, darkened */
.tone-peri .tile-text p, .tone-peach .tile-text p, .tone-sage .tile-text p, .tone-amber .tile-text p { color: rgba(42, 24, 16, 0.78); }

/* a drawing's card: a piece of the app's window, redrawn small */
.card {
    width: 100%;
    max-width: 460px;
    border-radius: 16px;
    background: var(--sheet);
    box-shadow: var(--shadow-card);
    font-size: 14.5px;
    line-height: 1.35;
    text-align: left;
}
.lamp {
    display: inline-block;
    width: 8px; height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--go);
}
.lamp-ask { background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 61, 0, 0.16); }
.lamp-idle { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--alu-lo);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
}

/* a lead and its workers */
.swarm { max-width: 520px; }
.swarm-lead {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--line-soft);
}
.swarm-lead span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swarm-workers { padding: 6px 16px 4px 20px; }
.swarm-workers li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0 9px 22px;
}
/* the branch each worker hangs from */
.swarm-workers li::before {
    content: "";
    position: absolute;
    left: 0; top: -9px;
    width: 14px; height: calc(50% + 9px);
    border-left: 1.5px solid var(--line);
    border-bottom: 1.5px solid var(--line);
    border-bottom-left-radius: 8px;
}
.swarm-workers li span:nth-child(1) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swarm-workers .landed { color: #177A42; font-weight: 600; font-size: 13.5px; }
.swarm-end {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-2);
    font-size: 13.5px;
}
.swarm-end b { font-weight: 600; color: var(--ink); }

/* the agents */
.agents-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 330px;
}
.agents-cloud li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 15px 0 12px;
    border-radius: 999px;
    background: var(--alu);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}
.agents-cloud svg { width: 16px; height: 16px; flex: none; fill: var(--ink); }
.agents-cloud .mark-claude { fill: #D97757; }
.agents-cloud .is-auto { background: var(--ink); color: var(--alu-hi); }
.agents-cloud .is-auto svg { fill: var(--signal); }

/* the night: what happened while the app was shut */
.timeline { width: 100%; max-width: 380px; text-align: left; }
.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 9px 0 9px 24px;
    font-size: 14.5px;
    line-height: 1.4;
}
.timeline li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 15px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ink-3);
}
.timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 27px;
    bottom: -11px;
    border-left: 2px dotted var(--line);
}
.timeline li.is-done::before { background: var(--go); }
.timeline li.is-asking::before { background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 61, 0, 0.2); }
.timeline time { font-variant-numeric: tabular-nums; font-weight: 600; }
.timeline span { color: var(--ink-2); }
.tone-night .timeline li::before { background: var(--on-night-2); }
.tone-night .timeline li.is-done::before { background: #3CCB7F; }
.tone-night .timeline li.is-asking::before { background: var(--signal); }
.tone-night .timeline li:not(:last-child)::after { border-left-color: rgba(241, 241, 244, 0.22); }
.tone-night .timeline span { color: var(--on-night-2); }

/* the machines */
.machines-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 620px;
}
@media (min-width: 560px) {
    .machines-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.machines-row li {
    display: grid;
    gap: 14px;
    padding: 16px 14px;
    border-radius: 16px;
    background: var(--sheet);
    box-shadow: var(--shadow-card);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
}
.machines-row svg { width: 22px; height: 22px; fill: var(--ink); }
.machines-row .ic-stroke { fill: none; }
.machines-row span { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--ink-2); }

/* an ask, with its two keys */
.ask { max-width: 400px; padding: 16px; }
.ask-from { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.ask-what { margin-top: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.ask-cmd {
    display: block;
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    background: var(--alu);
    font-size: 13px;
}
.ask-keys { display: flex; gap: 8px; margin-top: 14px; }
.ask-keys span {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border-radius: 999px;
    font-weight: 600;
    background: var(--alu-lo);
}
.ask-keys span:first-child { background: var(--ink); color: var(--alu-hi); }
.ask-keys kbd { background: none; padding: 0; font-size: 12.5px; opacity: 0.7; }

/* the phone: the same ask on a lock screen */
.phone {
    width: 250px;
    padding: 14px 12px 0;
    border-radius: 38px 38px 0 0;
    background: var(--ink);
    box-shadow: 0 20px 40px -20px rgba(42, 24, 16, 0.5);
}
.phone-screen {
    padding: 12px 10px 22px;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(180deg, #3A2318, #5A3220 60%, #B4491F);
    color: var(--on-night);
    text-align: center;
}
.phone-island { width: 72px; height: 20px; margin: 0 auto; border-radius: 999px; background: #000; }
.phone-clock { margin-top: 18px; font-size: 46px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.phone-note {
    margin-top: 20px;
    padding: 11px 12px;
    border-radius: 16px;
    background: rgba(241, 241, 244, 0.92);
    color: var(--ink);
    font-size: 12.5px;
    line-height: 1.35;
    text-align: left;
}
.phone-note b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.phone-note b img { width: 16px; height: 16px; }
.phone-note p { margin-top: 4px; color: var(--ink-2); }
.phone-keys { display: flex; gap: 6px; margin-top: 9px; }
.phone-keys span {
    flex: 1;
    padding: 7px 0;
    border-radius: 999px;
    background: rgba(42, 24, 16, 0.1);
    font-weight: 600;
    text-align: center;
}
.phone-keys span:first-child { background: var(--ink); color: var(--alu-hi); }

/* an automation: its steps, top to bottom */
.flow { max-width: 380px; padding: 6px 16px; }
.flow-name { padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.flow li {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}
.flow li + li { border-top: 1px dashed var(--line); }
.flow li svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow li b { font-weight: 600; }
.flow li span { color: var(--ink-2); }

/* run, then ship */
.ship { max-width: 400px; padding: 16px; display: grid; gap: 14px; }
.ship-bar { display: flex; gap: 8px; }
.ship-bar span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 14px 0 11px;
    border-radius: 999px;
    background: var(--alu-lo);
    font-weight: 600;
}
.ship-bar span.is-on { background: var(--ink); color: var(--alu-hi); }
.ship-bar svg { width: 14px; height: 14px; fill: currentColor; }
.ship-steps { display: grid; gap: 9px; }
.ship-steps li { display: flex; align-items: center; gap: 10px; }
.ship-steps li span:last-child { margin-left: auto; font-size: 13px; color: var(--ink-2); }
.ship-steps .tick {
    width: 18px; height: 18px;
    flex: none;
    border-radius: 50%;
    background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.ship-steps .hold { background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 61, 0, 0.16); background-image: none; }

/* ---------- the Factory ---------- */

.fleet-shot { margin: clamp(36px, 5vw, 56px) 0 0; }
.trio {
    display: grid;
    gap: 28px 48px;
    margin-top: clamp(36px, 5vw, 56px);
}
@media (min-width: 840px) {
    .trio { grid-template-columns: repeat(3, 1fr); }
}
.trio p, .box-grid p {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-2);
}

/* the glue: what the app does around the agents, one line each */
.glue-list {
    display: grid;
    gap: 0 48px;
    margin-top: clamp(32px, 4.4vw, 48px);
}
@media (min-width: 720px) { .glue-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .glue-list { grid-template-columns: repeat(3, 1fr); } }
.glue-list li {
    position: relative;
    padding: 13px 0 13px 24px;
    border-top: 1px solid var(--line);
    font-size: 15.5px;
    line-height: 1.4;
}
.glue-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: calc(13px + 0.7em - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--go);
}

/* ---------- free, and native ---------- */

.free-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
    .free-grid { grid-template-columns: 5fr 6fr; gap: 72px; }
}
.price { color: var(--ink); }
.price .dots { width: min(100%, 330px); height: auto; }
.price .dots-lit { stroke: var(--signal); }
.free-text h2 { margin-top: clamp(28px, 4vw, 44px); }
.free-text p { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 30em; }
.free-text .cta { margin-top: 28px; }

.spec-table { border-top: 1px solid var(--line); }
.spec {
    display: grid;
    grid-template-columns: minmax(110px, 2fr) 5fr;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
}
.spec span:first-child { color: var(--ink-3); }
.spec span:last-child { color: var(--ink); font-weight: 500; }
.spec-plate {
    padding: 8px clamp(20px, 3vw, 32px);
    border-radius: var(--radius-tile);
    background: var(--sheet);
}
.spec-plate .spec-table { border-top: 0; }
.spec-plate .spec:last-child { border-bottom: 0; }

/* ---------- teams ---------- */

.teams-grid {
    display: grid;
    gap: 16px;
    margin-top: clamp(36px, 5vw, 56px);
}
@media (min-width: 840px) {
    .teams-grid { grid-template-columns: repeat(3, 1fr); }
}
.team-card {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 28px;
    border-radius: var(--radius-tile);
}
.team-card svg { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.team-card h3 { margin-top: auto; padding-top: 40px; font-size: 26px; letter-spacing: -0.03em; }
.team-card p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: rgba(42, 24, 16, 0.78); }
@media (min-width: 840px) {
    /* the three titles on one line: room for the longest paragraph (four lines) under each */
    .team-card p { min-height: 6em; }
}
.teams .cta { margin-top: 28px; }

/* ---------- compare ---------- */

.compare-note { font-size: 15px !important; color: var(--ink-3) !important; }
.vs-grid {
    display: grid;
    gap: 16px;
    margin-top: clamp(36px, 5vw, 56px);
}
@media (min-width: 640px) { .vs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .vs-grid { grid-template-columns: repeat(4, 1fr); } }
.vs {
    padding: 22px;
    border-radius: 22px;
    background: var(--sheet);
    scroll-margin-top: 96px;
}
.vs h3 { font-size: 19px; }
.vs h3 a { text-decoration: none; }
.vs h3 a:hover { color: var(--signal-ink); text-decoration: underline; text-underline-offset: 3px; }
.vs p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.vs-us { background: var(--night); color: var(--on-night); }
.vs-us h3 { display: flex; align-items: center; gap: 9px; }
.vs-us h3 img { width: 24px; height: 24px; }
.vs-us p { color: var(--on-night-2); }

/* ---------- questions ---------- */

.faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) {
    .faq-grid { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
    .faq-grid .head { position: sticky; top: 104px; }
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    position: relative;
    display: block;
    padding: 20px 44px 20px 0;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.015em;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--signal-ink); }
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 12px; height: 12px;
    margin-top: -6px;
    background:
        linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
    transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    padding: 0 44px 22px 0;
    color: var(--ink-2);
    max-width: 40em;
}
.faq-item p a { color: var(--ink); text-underline-offset: 3px; }
.faq-more { margin-top: 18px; font-size: 16px; }

/* ---------- closing: Magnum's cup in dots, on the night ground ---------- */

main > section.closing {
    padding: 0;
    background: var(--night);
    color: var(--on-night);
    border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0;
    overflow: hidden;
}
.closing > .wrap {
    padding-top: clamp(56px, 8vw, 104px);
    padding-bottom: clamp(48px, 7vw, 88px);
}
.closing-grid {
    display: grid;
    gap: 16px;
    align-items: center;
}
@media (min-width: 900px) {
    .closing-grid { grid-template-columns: 7fr 5fr; gap: 48px; }
}
.closing h2 { font-size: clamp(38px, 5.6vw, 76px); letter-spacing: -0.045em; line-height: 0.98; }
.closing p { margin-top: 20px; max-width: 30em; font-size: clamp(17px, 1.5vw, 19px); color: var(--on-night-2); }
.closing .cta { margin-top: 32px; }
/* on the night ground the main button is the light one */
.closing .btn-go { background: var(--alu); color: var(--ink); }
.closing .btn-go:hover { background: #fff; }
.closing .btn-quiet { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1px rgba(241, 241, 244, 0.28); }
.closing .btn-quiet:hover { background: rgba(241, 241, 244, 0.08); box-shadow: inset 0 0 0 1px rgba(241, 241, 244, 0.5); }
.closing-mark { width: min(100%, 420px); margin: 0 auto; }
.closing-mark img { width: 100%; }

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

.foot {
    padding: clamp(48px, 6vw, 72px) 0 28px;
    background: var(--night);
    color: var(--on-night);
    font-size: 15px;
}
/* under a closing the night ground runs on, with a line between; under anything else it starts
   here, with the closing's rounded shoulders */
main:has(> .closing:last-child) + .foot { border-top: 1px solid var(--night-line); }
main:not(:has(> .closing:last-child)) + .foot { border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0; }
.foot-grid { display: grid; gap: 40px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 720px) {
    .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
    .foot-grid { grid-template-columns: minmax(0, 4.6fr) repeat(4, minmax(0, 2fr)); gap: 32px; }
    .foot-brand { grid-column: auto; padding-right: 40px; }
}
.foot .brand { color: var(--on-night); }
.foot-say {
    margin-top: 22px;
    max-width: 17em;
    font-size: clamp(21px, 2vw, 25px);
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.foot-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-weight: 600;
    color: var(--on-night);
    text-decoration: underline;
    text-decoration-color: var(--signal);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.foot-cta:hover { color: #fff; }
.foot-social { display: flex; gap: 6px; margin-top: 26px; margin-left: -9px; }
.foot-social a {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    color: var(--on-night-2);
    transition: background-color 0.15s, color 0.15s;
}
.foot-social a:hover { color: var(--on-night); background: rgba(241, 241, 244, 0.1); }
.foot-social svg { width: 17px; height: 17px; fill: currentColor; }
.foot-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--on-night-2);
}
.foot-col ul { margin-top: 14px; display: grid; gap: 10px; }
.foot-col a { color: var(--on-night); text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.foot-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 32px;
    margin-top: clamp(40px, 6vw, 72px);
    padding-top: 22px;
    border-top: 1px solid var(--night-line);
    font-size: 13.5px;
    color: var(--on-night-2);
}
.foot-base a { color: var(--on-night); text-decoration: none; }
.foot-base a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-status { display: inline-flex; align-items: center; gap: 9px; }
.foot-status .lamp { background: #3CCB7F; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

/* ---------- a page of prose (privacy, not found) ---------- */

.prose { max-width: 44em; padding-bottom: clamp(64px, 9vw, 120px); }
.prose h1 { font-size: clamp(40px, 5.6vw, 68px); }
.prose h2 { margin-top: 48px; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.025em; line-height: 1.15; }
.prose h3 { margin-top: 28px; }
.prose p, .prose ul, .prose ol { margin-top: 14px; color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--ink-3); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-underline-offset: 3px; }
.prose a:hover { color: var(--signal-ink); }
.prose .lede { margin-top: 20px; }
.prose .faq-list { margin-top: 20px; }
.prose .faq-item p { margin-top: 0; }

/* the privacy page: its commitments, a card each */
main > section.privacy { padding-top: 0; }
.privacy-section + .privacy-section { margin-top: clamp(48px, 6vw, 72px); }
.privacy-section { scroll-margin-top: 96px; }
.privacy-section h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.privacy-list { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) {
    .privacy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.privacy-item { padding: 22px 24px 24px; border-radius: 22px; background: var(--sheet); }
.privacy-item h3 { font-size: 18px; }
.privacy-item p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.privacy-item a, .privacy-section > p a { color: var(--ink); text-underline-offset: 3px; }
.privacy-section > p { margin-top: 14px; color: var(--ink-2); max-width: 40em; }
.privacy-section .faq-list { margin-top: 24px; }

/* ---------- a run's numbers, in type (the request page) ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 24px;
    margin-top: 28px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stats li { display: grid; gap: 6px; }
.stats b {
    font: 600 clamp(30px, 3.4vw, 40px)/1 var(--sans);
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.stats span { font-size: 14px; color: var(--ink-3); }

/* ---------- the install block (the page an admitted person's link opens) ---------- */

.get { margin-top: 32px; }
.get-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}
.os {
    display: inline-flex;
    padding: 4px;
    gap: 2px;
    border-radius: 999px;
    background: var(--alu-lo);
}
.os-tab {
    font: 500 15px/1 var(--sans);
    color: var(--ink-2);
    background: transparent;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    min-height: 40px;
    cursor: pointer;
}
.os-tab:hover { color: var(--ink); }
.os-tab[aria-pressed="true"] {
    background: var(--sheet);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(42, 24, 16, 0.12);
}
.cmd {
    display: flex;
    align-items: center;
    flex: 1 1 420px;
    max-width: 720px;
    min-width: 0;
    border-radius: 999px;
    background: var(--sheet);
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 4px 4px 4px 22px;
}
.cmd-text {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    background: none;
    padding: 0;
    font-size: 15px;
    color: var(--ink);
}
.cmd-text::-webkit-scrollbar { display: none; }
.cmd-text::before { content: "$ "; color: var(--ink-3); }
.copy {
    flex: none;
    margin-left: 12px;
    min-height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--alu-hi);
    font: 600 15px/1 var(--sans);
    cursor: pointer;
}
.copy:hover { background: #45291C; }
.get-note {
    margin-top: 14px;
    font-size: 15px;
    color: var(--ink-2);
}
.get-note a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.get-note a:hover { color: var(--signal-ink); }

/* ---------- the request page ---------- */

.access { padding-bottom: clamp(72px, 10vw, 128px); }
.access h1 { font-size: clamp(44px, 6.4vw, 80px); }
.access-grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
    .access-grid { grid-template-columns: 6fr 5fr; gap: 72px; align-items: start; }
}
.access .stats { max-width: 440px; margin-top: 36px; }
.access .trio { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 40px); }
.access .trio a { color: var(--ink); text-underline-offset: 3px; }
.form {
    display: grid;
    gap: 26px;
    padding: clamp(22px, 3vw, 32px);
    border-radius: var(--radius-tile);
    background: var(--sheet);
    box-shadow: var(--shadow-plate);
}
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
}
.field .hint { font-weight: 400; color: var(--ink-3); }
.input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--alu-hi);
    font: 400 16px/1.4 var(--sans);
    color: var(--ink);
}
textarea.input { min-height: 84px; resize: vertical; }
.input:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pick span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--alu-lo);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
}
.pick input:checked + span { background: var(--ink); color: var(--alu-hi); }
.pick input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.form[hidden] { display: none; }
.field-site { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 15px; color: var(--signal-ink); }
.form .btn { width: 100%; }
.form-note { font-size: 14px; color: var(--ink-3); }
.form-note a { color: var(--ink-2); text-underline-offset: 3px; }
.form-done h2 { font-size: 26px; letter-spacing: -0.025em; }
.form-done p { margin-top: 12px; color: var(--ink-2); }

/* ---------- the admit page: requests, each with its answers and what can be done with it ---------- */

.adm-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; }
.adm-counts { margin-top: 12px; font: 400 15px/1.4 var(--mono); color: var(--ink-2); }
.adm-head { margin-top: clamp(36px, 5vw, 56px); font-size: 18px; letter-spacing: -0.005em; }
.adm-list { margin-top: 14px; border-top: 1px solid var(--line); }
.adm-row {
    display: grid;
    gap: 14px 40px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 96px;
}
@media (min-width: 840px) {
    .adm-row { grid-template-columns: 1fr minmax(320px, 440px); align-items: start; }
}
.adm-row:target { background: var(--alu-hi); box-shadow: -16px 0 0 var(--alu-hi), 16px 0 0 var(--alu-hi); }
.adm-who { display: grid; gap: 4px; min-width: 0; }
.adm-who b { font-weight: 600; overflow-wrap: anywhere; }
.adm-who span, .adm-state { font-size: 15px; color: var(--ink-2); }
.adm-note { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.adm-act { display: grid; gap: 10px; min-width: 0; }
.adm-link { display: block; padding: 8px 10px; overflow-wrap: anywhere; font-size: 13.5px; user-select: all; }
.adm-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.adm-buttons .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.adm-remove {
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: 500 15px/1 var(--sans);
    color: var(--ink-3);
    cursor: pointer;
}
.adm-remove:hover { color: var(--signal-ink); background: var(--alu-lo); }
