/* Pharos console. Tokens. Colour: navy top bar (#10244d), white page, cool grey surfaces, one blue accent (#1f6feb fills, #1a5fcc text links; both pass AA on white), plus reserved status colours. Deploy state is always a text label plus a shape, never colour alone. Space: a 4px base scale. Type: system sans for the UI, monospace for hostnames, versions, env names and logs. Light only. */
:root {
  --bg: #ffffff; --band: #f4f6f9; --card-top: #d9dee7; --cta: #1f6feb; --surface: #ffffff; --surface-2: #f4f6f9; --ink: #0f1b33; --muted: #4a5568; --line: #d9dee7; --line-strong: #b6bfce; --field: #7a8599;
  --nav: #10244d; --nav-ink: #ffffff; --nav-muted: #b9c6e0; --nav-accent: #8ab4ff;
  --brand: #1f6feb; --brand-ink: #ffffff; --brand-soft: #e6f0ff; --link: #1a5fcc; --focus: #1f6feb;
  --ok: #0b6b50; --ok-soft: #e2f3ee; --bad: #b42318; --bad-soft: #fdecea; --warn: #7a4a00; --warn-soft: #fff1d6; --info: #435069; --info-soft: #eaeef5;
  --chart-line: #1a5fcc; --chart-fill: rgba(31, 111, 235, 0.10); --chart-grid: #e6eaf0; --chart-text: #4a5568; --chart-limit: #b42318;
  --mix-2xx: #0b6b50; --mix-3xx: #1f6feb; --mix-4xx: #c77700; --mix-5xx: #b42318;
  --terminal: #0b1426; --terminal-ink: #dbe4f3; --terminal-muted: #93a3bf; --terminal-error: #ff9a90; --terminal-warn: #f2c26b; --terminal-ok: #5fd3a6; --terminal-info: #8ab4ff; --terminal-line: #243350;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-base: 1rem; --text-md: 1.125rem; --text-lg: 1.375rem; --text-xl: 1.625rem;
  --radius: 6px; --radius-small: 4px; --radius-large: 8px; --text-display-1: clamp(2rem, 4vw, 2.75rem); --text-display-2: clamp(1.75rem, 3.5vw, 2.25rem); --radius-pill: 6px; --shadow: none;
  --control: 2.75rem; --measure: 62ch; --col: 40rem; --wide: 78rem; --bar: 3.5rem; --gutter: clamp(var(--space-4), 3vw, var(--space-6));
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--text-base)/1.6 var(--sans); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--space-2); letter-spacing: -0.01em; }
h1 { font-size: var(--text-xl); font-weight: 700; }
h2 { font-size: var(--text-md); font-weight: 650; }
h3 { font-size: var(--text-base); font-weight: 650; }
p { margin: 0 0 var(--space-4); }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
code, pre { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.05em 0.4em; overflow-wrap: anywhere; }
pre code { background: none; border: 0; padding: 0; font: inherit; overflow-wrap: normal; }
code.copyable { user-select: all; }
.card a, .block a { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-small); }
.skip-link { position: absolute; left: var(--space-3); top: -4rem; background: var(--brand); color: var(--brand-ink); padding: var(--space-2) var(--space-4); border-radius: var(--radius-small); z-index: 10; }
.skip-link:focus { top: var(--space-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted, .note { color: var(--muted); }
.note { font-size: var(--text-sm); }
.small { font-size: var(--text-xs); }
.measure { max-width: var(--measure); }
.followup { margin-top: var(--space-4); }
.plain { list-style: none; padding: 0; }
.inline { display: inline; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.grow { flex: 1 1 auto; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.stack { display: grid; gap: var(--space-4); max-width: 30rem; }
.stack.fill { max-width: none; }
.stack > .button, .stack > button { justify-self: start; }

/* Buttons: one filled button per page is the main action. Others are outlined. A destructive action is red and outlined. */
.button, button.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control); background: var(--cta); color: var(--brand-ink); border: 1px solid transparent; border-radius: var(--radius-small); padding: var(--space-2) var(--space-4); font: 600 var(--text-sm)/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: filter 0.12s, background 0.12s; }
.button:hover { filter: brightness(1.1); }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--field); }
.button.secondary:hover { background: var(--surface-2); filter: none; }
.button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.button.danger:hover { background: var(--bad-soft); filter: none; }
.button.large { min-height: 3rem; padding: var(--space-3) var(--space-5); font-size: var(--text-base); }
.button.small { min-height: 2.75rem; padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }
.button:active { transform: translateY(1px); filter: brightness(0.95); }
button.button[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
button.link:hover, .ranges a:hover, .faq summary:hover { color: var(--brand); }
.choice:hover { border-color: var(--brand); }
button.button[disabled] { background: var(--line); color: var(--muted); border-color: transparent; cursor: not-allowed; filter: none; }
button.link { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 0.18em; }
button.link.danger { color: var(--bad); }

/* Brand mark: a small status light */
.brand { display: inline-flex; align-items: center; gap: var(--space-2); font: 680 var(--text-md)/1 var(--sans); letter-spacing: -0.02em; color: var(--nav-ink); text-decoration: none; }
.brand .logo { flex: none; } .logo .tower { fill: var(--nav-ink); } .logo .lamp { fill: var(--nav-accent); } .logo .beam { fill: none; stroke: var(--nav-accent); stroke-width: 1.6; stroke-linecap: round; }

/* Top bar: dark navy, full width, on every page. Focus rings are light so they show on navy. */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--nav); color: var(--nav-ink); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--bar); }
.topbar :focus-visible { outline-color: var(--nav-accent); }
.topbar a:not(.button) { color: var(--nav-ink); }
.topbar .account { display: flex; align-items: center; gap: var(--space-4); font-size: var(--text-sm); color: var(--nav-muted); min-width: 0; }
.topbar .account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar button.link { color: var(--nav-ink); }

/* Chips: status of a thing (chip) and severity of a finding (sev) share one shape */
.chip, .sev, .deploy-head h2 { display: inline-flex; align-items: center; gap: var(--space-2); padding: 0.15rem var(--space-3) 0.15rem 0.6rem; border-radius: var(--radius-small); font-size: var(--text-xs); font-weight: 650; line-height: 1.4; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; margin: 0; }
.chip::before, .deploy-head h2::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.sev { padding-left: var(--space-3); }
.chip.running, .deploy.running .deploy-head h2 { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.building, .deploy.building .deploy-head h2 { background: var(--brand-soft); color: var(--link); border-color: transparent; }
/* Shapes as well as words: running is a disc, building a ring, failed a square, waiting a diamond. */
.chip.building::before, .deploy.building .deploy-head h2::before { background: none; box-shadow: inset 0 0 0 2px currentColor; }
.chip.failed::before, .chip.suspended::before, .deploy.failed .deploy-head h2::before { border-radius: 1px; }
.chip.waiting::before, .chip.queued::before, .deploy.queued .deploy-head h2::before, .deploy.waiting .deploy-head h2::before { border-radius: 1px; transform: rotate(45deg); }
.chip.building::before { animation: pulse 1.4s ease-in-out infinite; }
.chip.failed, .chip.suspended, .deploy.failed .deploy-head h2 { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.waiting, .chip.queued, .deploy.queued .deploy-head h2, .deploy.waiting .deploy-head h2 { background: var(--info-soft); color: var(--info); border-color: transparent; }
.sev.high { background: var(--bad-soft); color: var(--bad); border-color: transparent; } .sev.medium { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .sev.low { background: var(--info-soft); color: var(--info); border-color: transparent; }
.sev.info, .sev.zero { background: var(--surface-2); color: var(--muted); }
@keyframes pulse { 50% { opacity: 0.25; } }
.dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--line-strong); flex: none; }
.dot.running { background: var(--ok); } .dot.building { background: transparent; box-shadow: inset 0 0 0 2px var(--brand); } .dot.failed { background: var(--bad); border-radius: 1px; } .dot.queued, .dot.waiting { background: var(--info); border-radius: 1px; transform: rotate(45deg); }

/* Notices: a message, a banner and an alert list share one shape (soft fill, 4px rule) */
.message, .banner, .alerts { margin: 0 0 var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-small); background: var(--info-soft); color: var(--ink); border-left: 4px solid var(--info); font-size: var(--text-sm); }
.message.error, .banner.late, .alerts.error { background: var(--bad-soft); border-left-color: var(--bad); }
.message.success { background: var(--ok-soft); border-left-color: var(--ok); }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); background: var(--brand-soft); border-left-color: var(--brand); }
.banner.card { background: var(--warn-soft); border-color: transparent; border-left-color: var(--warn); }
.banner form.inline { margin: 0; }
.alerts { background: var(--warn-soft); border-left-color: var(--warn); }
.alerts h2 { font-size: var(--text-base); }
.alerts ul { margin: 0; padding-left: var(--space-4); }
.error { color: var(--bad); font-size: var(--text-sm); }

/* Forms: label above, control, then help, then error. One control height. */
.field { display: grid; gap: var(--space-1); margin: 0; }
.field label { font-weight: 600; font-size: var(--text-sm); }
input, select, textarea { width: 100%; min-height: var(--control); font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--field); border-radius: var(--radius-small); padding: var(--space-2) var(--space-3); }
textarea { min-height: 0; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--brand); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.field.check label { display: flex; align-items: flex-start; gap: var(--space-3); font-weight: 500; }
.field.check input[type=checkbox], .field.check input[type=radio] { margin-top: 0.3rem; flex: none; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-4); }
.filters input, .filters select { width: auto; flex: 1 1 12rem; }
progress { width: 100%; max-width: 28rem; height: 0.6rem; display: block; appearance: none; border: 0; border-radius: var(--radius-pill); overflow: hidden; background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--brand); }
progress::-moz-progress-bar { background: var(--brand); }
.choices { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-3); min-width: 0; }
.choice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border: 1px solid var(--field); border-radius: var(--radius-small); background: var(--surface); cursor: pointer; font-weight: 500; }
.choice input { margin-top: 0.3rem; flex: none; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Surfaces. A card is a box and is only for a group of actions or one hero item. A block is an unboxed section with a rule above it. */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); }
.card > :last-child { margin-bottom: 0; }
.block, .panel { max-width: var(--col); padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.block > :last-child, .panel > :last-child { margin-bottom: 0; }
table + h3, .table-wrap + h3 { margin-top: var(--space-6); }
td .button, td button { white-space: nowrap; }
.content > p.muted { max-width: var(--col); } /* intro lines under the tabs share the column measure of the blocks below */
.block.wide { max-width: none; }
.block.danger-zone { border-top: 2px solid var(--bad); }
.block.danger-zone h2 { color: var(--bad); }
.page-head + .block, .tabs + .block, .page-head + .panel, .tabs + .panel { border-top: 0; padding-top: 0; }
form + p, form + .note { margin-top: var(--space-3); }
.empty { background: var(--surface); border: 1px dashed var(--field); border-radius: var(--radius); padding: var(--space-6); max-width: 42rem; }
.empty h2 { font-size: var(--text-lg); }
.empty > :last-child { margin-bottom: 0; }

/* Tables: rules, not boxes. Numbers align right. */
.table-wrap { overflow-x: auto; border-block: 1px solid var(--line); margin: 0 0 var(--space-4); }
table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: var(--text-xs); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td a { font-weight: 600; }
td pre { max-height: 10rem; }
pre { white-space: pre-wrap; margin: 0; max-height: 18rem; overflow: auto; background: var(--terminal); color: var(--terminal-ink); padding: var(--space-3) var(--space-4); border-radius: var(--radius-small); line-height: 1.5; }
dl.kv, .facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-6); margin: 0 0 var(--space-4); }
dl.kv dt, .facts dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 600; } .facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
details { margin: var(--space-2) 0; }
summary { cursor: pointer; font-weight: 600; padding: var(--space-1) 0; }
.how { display: grid; gap: var(--space-2); padding-left: var(--space-5); margin: 0 0 var(--space-4); }

/* Marketing and sign in pages. */
.wrap { max-width: 76rem; margin: 0 auto; padding-inline: clamp(var(--space-4), 4vw, 2.5rem); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--bar); }
.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav a:not(.button) { color: var(--nav-ink); text-decoration: none; font-weight: 550; display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-nav a:not(.button):hover { text-decoration: underline; }
.site-nav .button { min-height: 2.75rem; }
.site-nav .button:not(.secondary) { background: var(--cta); border-color: var(--nav-accent); }
.site-footer { padding-block: var(--space-7) var(--space-8); }
.site-footer .inner { border-top: 1px solid var(--line); padding-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-5); justify-content: space-between; color: var(--muted); font-size: var(--text-xs); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.band { background: var(--band); }
.lp-section { padding-block: clamp(var(--space-6), 5vw, var(--space-7)); }
.lp-section.tight { padding-block: clamp(var(--space-5), 4vw, var(--space-7)) clamp(var(--space-7), 6vw, var(--space-8)); }
.lp-section h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: var(--space-2); }
.lp-section .sub { color: var(--muted); max-width: var(--measure); margin-bottom: var(--space-6); font-size: var(--text-base); line-height: 1.55; }

.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(var(--space-5), 5vw, var(--space-8)); align-items: start; padding-block: clamp(var(--space-5), 4vw, var(--space-7)); }
.hero h1 { font-size: var(--text-display-1); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; margin-bottom: var(--space-5); }
.hero .lede { font-size: var(--text-md); line-height: 1.55; color: var(--muted); max-width: var(--measure); margin-bottom: var(--space-5); }
.hero .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); margin-bottom: var(--space-2); }
.hero .fine { margin: var(--space-2) 0 0; font-size: var(--text-xs); color: var(--muted); max-width: var(--measure); }
.text-link { font-weight: 600; }

.safety { border-block: 1px solid var(--line); background: var(--surface); }
.safety p { margin: 0; padding: var(--space-4) 0 var(--space-4) var(--space-4); border-left: 2px solid var(--ok); font-weight: 550; max-width: var(--measure); }

.preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-large); padding: var(--space-5); display: grid; gap: var(--space-4); margin: 0; }
.preview-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.preview-head strong { font-size: var(--text-md); }
.example-tag { margin-left: auto; font: var(--text-xs) var(--mono); color: var(--muted); }
.preview-address { font: var(--text-xs) var(--mono); color: var(--muted); }
.preview .sparkline { width: 100%; height: auto; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.preview-stats div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-small); padding: var(--space-2) var(--space-3); }
.preview-stats b { display: block; font-size: var(--text-base); }
.preview-stats span { font-size: var(--text-xs); color: var(--muted); }
.verdict { margin: 0; padding: var(--space-2) var(--space-4); border-radius: var(--radius-small); background: var(--ok-soft); color: var(--ok); font-weight: 650; font-size: var(--text-sm); }

/* A rail is a sequence: the home page story and the deploy progress both use it. */
.rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rail li { position: relative; padding: 0 0 var(--space-4) var(--space-6); color: var(--muted); font-size: var(--text-sm); }
.rail li:last-child { padding-bottom: 0; }
.rail li::before { content: ""; position: absolute; left: 6px; top: 5px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--field); background: var(--surface); z-index: 1; }
.rail li::after { content: ""; position: absolute; left: 11px; top: 19px; bottom: -3px; width: 2px; background: var(--line); }
.rail li:last-child::after { display: none; }
.rail li.done { color: var(--ink); }
.rail li.done::before { background: var(--ok); border-color: var(--ok); }
.rail li.done::after { background: var(--ok); }
.rail li.current { color: var(--ink); font-weight: 650; }
.rail li.current::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.rail li.failed { color: var(--bad); font-weight: 650; }
.rail li.failed::before { background: var(--bad); border-color: var(--bad); }
.rail li.failed::after { background: var(--bad); }
.rail small { display: block; font-weight: 400; color: var(--muted); font-size: var(--text-xs); }
.rail.story li { animation: settle 0.45s ease both; animation-delay: calc(var(--n, 0) * 0.4s + 0.3s); }
.rail.story li::before { animation: dot-on 0.45s ease both; animation-delay: calc(var(--n, 0) * 0.4s + 0.3s); }
.rail.story li:nth-child(2) { --n: 1; } .rail.story li:nth-child(3) { --n: 2; } .rail.story li:nth-child(4) { --n: 3; } .rail.story li:nth-child(5) { --n: 4; }
.verdict.story { animation: settle 0.5s ease both; animation-delay: 2.4s; }
@keyframes settle { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes dot-on { from { background: var(--surface); border-color: var(--field); box-shadow: none; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(var(--space-4), 3vw, var(--space-7)); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; padding-top: var(--space-4); border-top: 1px solid var(--line-strong); }
.steps li::before { content: counter(step) "."; font: 650 var(--text-sm) var(--mono); color: var(--link); display: block; margin-bottom: var(--space-1); }
.steps h3 { font-size: var(--text-md); }
.steps p { color: var(--muted); margin: 0; max-width: var(--measure); }

.pillar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--space-5), 5vw, var(--space-8)); align-items: center; }
.pillar p { color: var(--muted); font-size: var(--text-md); line-height: 1.55; max-width: var(--measure); }
.terminal { background: var(--terminal); color: var(--terminal-ink); border: 1px solid var(--terminal-line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); font: var(--text-sm)/1.7 var(--mono); overflow-x: auto; margin: 0; max-width: 100%; }
.terminal div { white-space: pre; }
.terminal .ok { color: var(--terminal-ok); } .terminal .warn { color: var(--terminal-warn); } .terminal .bad { color: var(--terminal-error); } .terminal .dim { color: var(--terminal-muted); }
.terminal-label { font-size: var(--text-xs); color: var(--muted); margin: var(--space-2) 0 0; }

.features { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-5) var(--space-6); }
.feature { border-top: 1px solid var(--line-strong); padding: var(--space-4) 0 0; display: grid; gap: var(--space-2); align-content: start; }
.feature.large { grid-column: span 3; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-5) var(--space-7); align-items: center; }
.feature h3 { font-size: var(--text-md); margin: 0; }
.feature p { margin: 0; color: var(--muted); max-width: var(--measure); }
.feature .terminal { margin-top: var(--space-2); font-size: var(--text-xs); }
.mini-rail { display: flex; align-items: center; gap: var(--space-2); font: 600 var(--text-xs) var(--sans); flex-wrap: wrap; }
.mini-rail span { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border-radius: var(--radius-small); border: 1px solid var(--line); background: var(--surface-2); }
.mini-rail .bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.mini-rail .ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.mini-rail i { color: var(--muted); font-style: normal; }

.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.trust li { padding-left: var(--space-4); border-left: 2px solid var(--line-strong); font-weight: 600; }
.trust span { display: block; font: var(--text-xs) var(--mono); color: var(--muted); margin-top: 2px; }

.price-line { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-2); flex-wrap: wrap; }
.price-line b { white-space: nowrap; font: 650 var(--text-display-1) var(--sans); letter-spacing: -0.02em; }
.price-line span { color: var(--muted); }
.plan { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-large); padding: clamp(var(--space-5), 3vw, var(--space-7)); box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-5) clamp(var(--space-5), 5vw, var(--space-8)); margin-top: var(--space-5); }
.plan h2, .plan h3 { margin-bottom: var(--space-2); }
.plan .checks { margin: 0; }
.plan .why { grid-column: 1 / -1; margin: 0; padding: var(--space-4); border-radius: var(--radius-small); background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: var(--text-sm); }
.plan .why b { color: var(--ink); }
.checks { list-style: none; padding: 0; margin: var(--space-4) 0 var(--space-5); display: grid; gap: var(--space-4); }
.checks li { position: relative; padding-left: var(--space-6); }
.checks li::before { content: "+"; position: absolute; left: 0; top: 0; font: 700 var(--text-base)/1.6 var(--mono); color: var(--ok); }
.after-plan { margin: 0 0 var(--space-8); }

.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); margin: 0; padding: var(--space-1) 0; }
.faq summary { padding: var(--space-4) 0; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 var(--text-lg)/1 var(--mono); color: var(--muted); transition: transform 0.2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); max-width: var(--measure); }

.roadmap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-7); list-style: none; padding: 0; margin: 0; }
.roadmap li { display: flex; gap: var(--space-4); align-items: baseline; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.roadmap .label { font-size: var(--text-xs); font-weight: 600; color: var(--muted); min-width: 4.5rem; }

.page-title { font-size: var(--text-display-2); font-weight: 700; letter-spacing: -0.015em; padding-top: var(--space-5); }
.auth { max-width: 26rem; margin: var(--space-6) 0 var(--space-8); }
.auth h1 { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-4); }
.auth .card { padding: var(--space-5); box-shadow: var(--shadow); }
.auth .stack { max-width: none; }
.auth .button { width: 100%; min-height: 2.75rem; }
.legal { max-width: 46rem; padding: var(--space-5) 0 var(--space-7); }
.legal h1 { font-size: var(--text-display-2); font-weight: 700; letter-spacing: -0.015em; margin-bottom: var(--space-2); }
.legal h2 { font-size: var(--text-lg); margin: var(--space-6) 0 var(--space-2); }
.legal h3 { font-size: var(--text-base); margin: var(--space-4) 0 var(--space-1); }
.legal p, .legal li { line-height: 1.65; margin-bottom: var(--space-3); }
.legal ul, .legal ol { padding-left: var(--space-5); margin-bottom: var(--space-3); }
.legal table { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; font-size: var(--text-sm); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); }
.legal .summary { border: 1px solid var(--line); border-left: 4px solid var(--cta); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: var(--space-4) 0; }
.legal .summary p, .legal .summary li { margin-bottom: var(--space-1); }

/* Dashboard shell: sidebar, then one content column. Page order: head (title, status, main action), tabs, status, details. */
.shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: calc(100dvh - var(--bar)); }
.sidebar { position: sticky; top: var(--bar); align-self: start; height: calc(100dvh - var(--bar)); background: var(--surface-2); border-right: 1px solid var(--line); padding: var(--space-4); overflow-y: auto; }
.sidebar nav { display: grid; gap: var(--space-1); }
.applist { display: grid; gap: var(--space-1); }
.sidebar .group { font: 600 var(--text-xs) var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: var(--space-4) var(--space-3) var(--space-1); }
.sidebar a.item { display: flex; align-items: center; gap: var(--space-3); min-height: 2.75rem; padding: var(--space-2) var(--space-3); border-radius: var(--radius-small); color: var(--ink); text-decoration: none; font-weight: 550; font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar a.item:hover { background: var(--line); }
.sidebar a.item[aria-current] { background: var(--surface); border-left: 3px solid var(--brand); border-radius: 0 var(--radius-small) var(--radius-small) 0; padding-left: calc(var(--space-3) - 3px); }
.content { padding: var(--space-5) var(--gutter) var(--space-8); min-width: 0; max-width: var(--wide); width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.page-head h1 { margin-bottom: var(--space-1); }
.page-head > div > p:last-child { margin-bottom: 0; }
.crumbs { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-1); }
.crumbs a { color: var(--muted); }
.app-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.app-title h1 { margin: 0; }
.app-address { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); }
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 var(--space-6); padding: 0; }
.tabs a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--space-3); color: var(--muted); text-decoration: none; font-weight: 600; font-size: var(--text-sm); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--brand); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--space-4); }
.app-card { display: grid; gap: var(--space-2); text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4) var(--space-5); transition: border-color 0.12s; }
.app-card:hover { border-color: var(--brand); background: var(--surface-2); }
.app-card strong { font-size: var(--text-md); }
.app-card .meta { color: var(--muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
.section-title { font-size: var(--text-lg); margin: var(--space-7) 0 var(--space-3); }
.content > h2 { margin: var(--space-6) 0 var(--space-3); }
.content > h3 { margin: var(--space-6) 0 var(--space-3); }
.narrow { max-width: var(--col); margin-bottom: var(--space-5); }

/* Deploy progress: the one hero item on an app page. It carries the state in its left rule. */
.deploy-status { margin-bottom: var(--space-6); }
.deploy-logs:not(:empty) { margin-bottom: var(--space-6); }
.deploy-status.card { display: grid; gap: var(--space-4); border-left: 4px solid var(--line-strong); }
.deploy-status.running { border-left-color: var(--ok); } .deploy-status.failed { border-left-color: var(--bad); } .deploy-status.building { border-left-color: var(--brand); } .deploy-status.queued, .deploy-status.waiting { border-left-color: var(--info); }
.deploy-status .rail { grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.deploy-status .rail li { padding: var(--space-5) 0 0; font-size: var(--text-sm); }
.deploy-status .rail li::before { left: 0; top: 0; }
.deploy-status .rail li::after { left: 0.9rem; right: calc(var(--space-2) * -1); top: 0.33rem; bottom: auto; width: auto; height: 2px; display: block; }
.deploy-status .rail li:last-child::after { display: none; }

/* Summary sections on the overview have no box. A small title, then facts. */
.security, .launch { margin-bottom: var(--space-6); }
.security h2, .launch h2 { font-size: var(--text-md); }
.security h3 { font-size: var(--text-sm); color: var(--muted); margin: var(--space-4) 0 var(--space-1); }
.counts { display: flex; align-items: center; gap: var(--space-3); font-weight: 650; margin: 0 0 var(--space-2); }
.counts::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--info); }
.counts.has-high::before { background: var(--bad); } .counts.has-medium::before { background: var(--warn); }

/* Charts: unboxed, one rule above each, small muted label */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--space-5) var(--space-6); margin-bottom: var(--space-6); }
.chart-card { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.chart-card h2 { font-size: var(--text-sm); color: var(--muted); font-weight: 600; margin-bottom: var(--space-1); }
.chart-card .big { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 var(--space-2); }
.chart-card .big .muted { font-size: var(--text-base); font-weight: 400; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .series { stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--chart-fill); stroke: none; }
.chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart .limit { stroke: var(--chart-limit); stroke-width: 1.25; }
.chart text { font: 11px var(--sans); fill: var(--chart-text); }
.chart .limit-label { fill: var(--chart-limit); }
.chart .dot { fill: var(--chart-line); stroke: var(--surface); stroke-width: 2; }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: var(--chart-line); fill-opacity: 0.25; }
.empty-chart { max-height: 4.5rem; } .empty-chart text { font-size: 13px; }
.ranges { display: inline-flex; gap: var(--space-1); padding: var(--space-1); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 var(--space-4); }
.ranges a, .ranges strong { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--space-3); border-radius: var(--radius-small); font-size: var(--text-sm); text-decoration: none; color: var(--muted); font-weight: 600; }
.ranges strong { background: var(--brand); color: var(--brand-ink); }
.mix-bar { display: flex; gap: 2px; height: 0.9rem; border-radius: var(--radius-pill); overflow: hidden; background: var(--line); margin: var(--space-3) 0; }
.mix-bar svg { display: block; width: 100%; height: 100%; }
.mix-bar rect.s2xx { fill: var(--mix-2xx); } .mix-bar rect.s3xx { fill: var(--mix-3xx); } .mix-bar rect.s4xx { fill: var(--mix-4xx); } .mix-bar rect.s5xx { fill: var(--mix-5xx); }
.s2xx { background: var(--mix-2xx); } .s3xx { background: var(--mix-3xx); } .s4xx { background: var(--mix-4xx); } .s5xx { background: var(--mix-5xx); }
.mix-legend { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1) var(--space-4); font-size: var(--text-sm); }
.mix-legend li { display: flex; align-items: center; gap: var(--space-2); }
.mix-legend i { width: 0.7rem; height: 0.7rem; border-radius: 3px; flex: none; }
.mix-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.latency { display: flex; flex-wrap: wrap; gap: var(--space-5); font-size: var(--text-sm); color: var(--muted); margin: 0; }
.latency b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Logs */
.logpanel { background: var(--terminal); color: var(--terminal-ink); border-radius: var(--radius); overflow-x: auto; font: var(--text-sm)/1.55 var(--mono); }
.logpanel table { background: transparent; font-size: inherit; width: 100%; }
.logpanel td { border: 0; padding: 0.12rem var(--space-4); color: inherit; }
.logpanel tbody tr:hover td { background: transparent; }
.logpanel tr:first-child td { padding-top: var(--space-3); } .logpanel tr:last-child td { padding-bottom: var(--space-3); }
.logpanel td:first-child, .logpanel td.time { color: var(--terminal-muted); white-space: nowrap; }
.logpanel code { background: none; border: 0; padding: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.logpanel tr.error code { color: var(--terminal-error); } .logpanel tr.warn code { color: var(--terminal-warn); }
.logpanel th { background: transparent; color: var(--terminal-muted); border-bottom: 1px solid var(--terminal-line); }
.logpanel td.stderr { color: var(--terminal-warn); }
.status { font-weight: 650; }
.status.s2xx { color: var(--terminal-ok); background: none; } .status.s3xx { color: var(--terminal-info); background: none; } .status.s4xx { color: var(--terminal-warn); background: none; } .status.s5xx { color: var(--terminal-error); background: none; }
.pager { display: flex; gap: var(--space-4); align-items: center; color: var(--muted); font-size: var(--text-sm); margin: var(--space-4) 0 0; }

/* Findings, deploys, files */
.findings { font-size: var(--text-sm); margin: var(--space-2) 0 var(--space-4); }
.findings td, .findings th { text-align: left; vertical-align: top; }
.deploy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-4); }
.deploy.newest { background: none; border: 0; padding: 0; margin-top: calc(-1 * var(--space-2)); }
.deploy-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-2); }
.file { position: relative; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); padding: 0 var(--space-4); margin: var(--space-3) 0; }
.file pre { margin-bottom: var(--space-4); }
.copy { position: absolute; right: var(--space-3); top: var(--space-2); }
.actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--space-4); align-items: start; margin-bottom: var(--space-4); }
.ci-grid { display: grid; gap: var(--space-5); max-width: 46rem; margin-bottom: var(--space-6); }
.ci-grid > * { min-width: 0; }
.ci-findings { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.ci-findings li { overflow-wrap: anywhere; }
.ci-form { display: grid; gap: var(--space-4); justify-items: start; }
.ci-form .choices { width: 100%; }
.workflow pre { max-height: none; overflow-wrap: anywhere; }
#bind-code code { font-size: var(--text-md); padding: var(--space-2) var(--space-3); user-select: all; }
.qr svg { display: block; background: #fff; padding: var(--space-4); border-radius: var(--radius); } /* segno's svg has width and height but no viewBox: never size it in CSS, that crops the code */
.pillar > *, .hero > *, .plan > *, .feature > *, .steps > * { min-width: 0; }
.spark-area { fill: var(--chart-fill); } .spark-line { fill: none; stroke: var(--chart-line); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; } .spark-axis { stroke: var(--line-strong); } .spark-dot { fill: var(--chart-line); stroke: var(--surface); stroke-width: 2; }

/* Responsive */
@media (max-width: 62rem) {
  .hero, .pillar, .plan { grid-template-columns: 1fr; }
  .steps, .roadmap { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature.large { grid-column: span 2; grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 52rem) {
  .shell { grid-template-columns: 1fr; align-content: start; } /* short pages must not stretch the header row */
  .sidebar { position: static; height: auto; padding: var(--space-2) var(--space-4) 0; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-1); }
  .sidebar nav .group { display: none; }
  .sidebar nav .applist { display: contents; }
  .sidebar a.item { flex: none; max-width: 100%; min-height: 2.75rem; }
  .sidebar a.item[aria-current] { border-left: 0; border-bottom: 3px solid var(--brand); border-radius: 0; padding-left: var(--space-3); padding-bottom: calc(var(--space-2) - 3px); }
  .topbar .account span { display: none; }
  .deploy-status .rail { grid-template-columns: 1fr 1fr; row-gap: var(--space-4); }
  .deploy-status .rail li:nth-child(2n)::after { display: none; }
  .site-nav { gap: var(--space-4); font-size: var(--text-sm); }
  .findings, .findings tbody { display: block; } .findings tr:first-child { display: none; }
  .findings tr { display: block; margin: 0 0 var(--space-3); padding: var(--space-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); }
  .findings td { display: block; padding: var(--space-1) 0; border: 0; } .findings td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; }
  .page-head > .actions, .page-head > div + .actions { width: 100%; }
}
@media (max-width: 40rem) {
  .features, .trust { grid-template-columns: 1fr; }
  .feature.large { grid-column: span 1; }
  .facts, dl.kv { grid-template-columns: 1fr; gap: 0; } .facts dd, dl.kv dd { margin-bottom: var(--space-3); }
  .button, button.button { min-height: 2.75rem; }
  input, select { min-height: 2.75rem; }
  .tabs a { padding: 0 var(--space-2); }
  th, td { padding-inline: var(--space-2); }
  .actions .button { flex: 1 1 auto; }
  .site-header { flex-wrap: wrap; }
}
@media (max-width: 30rem) {
  .hero .cta-row .button { width: 100%; min-height: 3rem; }
  .preview { padding: var(--space-4); }
  .preview-stats { gap: var(--space-1); }
  .preview-stats div { padding: var(--space-2); }
  .preview-stats b { font-size: var(--text-sm); }
  .site-nav { gap: var(--space-3); }
  .content { padding-top: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Blog: each post is a card; the post page is a 70ch column */
.legal.blog { max-width: none; }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-5); }
.blog-entry { display: flex; flex-direction: column; gap: var(--space-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4) var(--space-5); }
.blog-entry:hover { border-color: var(--field); }
.blog-entry h2, .blog-entry h3 { margin: 0; font-size: var(--text-md); line-height: 1.3; }
.blog-entry h2 a, .blog-entry h3 a { color: var(--ink); text-decoration: none; }
.blog-entry h2 a:hover, .blog-entry h3 a:hover { color: var(--link); text-decoration: underline; }
.blog-entry p { margin: 0; }
.blog-entry .blurb { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-entry .read { margin-top: auto; font-weight: 600; font-size: var(--text-sm); display: inline-flex; align-items: center; min-height: 2.75rem; }
.blog-grid.small { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: var(--space-3); }
.blog-post { max-width: 70ch; }
.blog-post .post-head { padding-bottom: var(--space-4); margin-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.blog-post .post-head h1 { margin-bottom: var(--space-2); }
.blog-post .post-head .note { margin: 0; }
.blog-post h2 { margin-top: var(--space-6); }
.blog-post h3 { margin: var(--space-4) 0 var(--space-2); }
.blog-post pre { max-height: none; margin: var(--space-3) 0 var(--space-4); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); }
.blog-post p code, .blog-post li code { background: var(--surface-2); }
.blog-post .summary { margin-top: var(--space-6); }
.blog-post .crumbs { font-size: var(--text-sm); margin-bottom: var(--space-3); }
.more-posts { margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid var(--line); max-width: none; }
.more-posts .blog-entry { padding: var(--space-3) var(--space-4); }
.more-posts .blog-entry h3 { font-size: var(--text-base); margin: 0; }
@media (max-width: 52rem) { .blog-grid, .blog-grid.small { grid-template-columns: 1fr; } }

/* Touch targets: every link, button and label that people press is at least 44px tall. */
.site-nav .button.small { font-size: var(--text-sm); }
.site-footer nav a, .crumbs a, .page-head p.muted a, .banner a, td a, .card .note a, .topbar .account a, button.link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer nav { gap: 0 var(--space-5); }
.field.check label { align-items: center; min-height: 2.75rem; }
.field.check input[type=checkbox], .field.check input[type=radio] { margin-top: 0; }
.choice { align-items: center; min-height: 2.75rem; }
.choice input { margin-top: 0; }
.stack .field-label { display: grid; gap: var(--space-1); font-weight: 600; font-size: var(--text-sm); }
.site-footer nav a, .crumbs a, .page-head p.muted a, .banner a, td a, .card .note a, .topbar .account a, button.link, .ranges a, .ranges strong { min-width: 2.75rem; justify-content: center; }
.brand, .skip-link { min-height: 2.75rem; }
.skip-link { display: inline-flex; align-items: center; }
.followup a, .note a { display: inline-block; padding-block: 0.25rem; }
summary { display: flex; align-items: center; min-height: 2.75rem; }
input[type="checkbox"], input[type="radio"] { width: 1.25rem; height: 1.25rem; }
.field.check label a { padding: 0.9rem 0.4rem; margin-inline: -0.4rem; }
.text-link, .site-nav a:not(.button) { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; }
.crumbs a, .page-head p.muted a, td a { justify-content: flex-start; }

/* Staff fleet page: summary strip and the amber chip */
.fleet-summary { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); margin: 0 0 var(--space-6); }
.fleet-summary dt { color: var(--muted); font-size: var(--text-xs); } .fleet-summary dd { margin: 0; font-weight: 650; font-size: var(--text-md); }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.topbar-in.wrap { max-width: none; padding-inline: var(--space-4); }

/* Public pages: colour bands, a layered console mock in the hero, alternating feature rows */
.mono { font-family: var(--mono); font-size: 0.92em; }
.band-navy { background: var(--nav); color: var(--nav-ink); }
.band-navy :focus-visible { outline-color: var(--nav-accent); }
.band-navy .lede, .band-navy .fine, .band-navy .cta-band p { color: var(--nav-muted); }
.band-navy .fine a, .band-navy .text-link { color: var(--nav-accent); }
.band-navy .button { border-color: var(--nav-accent); }
.band-navy .hero { padding-block: clamp(var(--space-6), 5vw, var(--space-8)); }
.band-navy .hero h1 { color: var(--nav-ink); }
.stage { display: grid; min-width: 0; }
.stage .mock { margin-left: clamp(var(--space-4), 6vw, var(--space-7)); border-bottom: 0; border-radius: var(--radius-large) var(--radius-large) 0 0; }
.stage .preview { margin-top: calc(-1 * var(--space-2)); color: var(--ink); }
.stage .preview .preview-address { color: var(--muted); }
.mock { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-large); overflow: hidden; min-width: 0; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-4); background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.mock table { font-size: var(--text-xs); }
.mock dl.kv { padding: var(--space-3) var(--space-4); margin: 0; gap: var(--space-2) var(--space-4); }
.mock dl.kv dd { font-weight: 500; overflow-wrap: anywhere; }
.numbers { background: var(--band); border-bottom: 1px solid var(--line); }
.numbers dl { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-7); margin: 0; padding-block: var(--space-5); }
.numbers dt { color: var(--muted); font-size: var(--text-xs); }
.numbers dd { margin: 0; font: 700 var(--text-lg)/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.numbers dd span { font-size: var(--text-sm); font-weight: 400; color: var(--muted); }
.safety { background: var(--surface); }
.row-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-5) clamp(var(--space-5), 6vw, var(--space-8)); align-items: center; padding-block: var(--space-6); border-top: 1px solid var(--line); }
.row-feature.flip > :first-child { order: 2; }
.row-feature > * { min-width: 0; }
.row-feature h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.row-feature p { color: var(--muted); max-width: var(--measure); }
.row-feature .terminal { font-size: var(--text-xs); }
.cta-band .wrap { padding-block: clamp(var(--space-6), 5vw, var(--space-7)); }
.cta-band h2 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.cta-band .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); }
.auth-split { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 28rem); gap: var(--space-6) clamp(var(--space-5), 8vw, var(--space-8)); align-items: start; }
.auth-split .auth { margin-right: 0; }
.auth-side { margin-top: var(--space-6); }
@media (max-width: 62rem) { .row-feature, .auth-split { grid-template-columns: 1fr; } .row-feature.flip > :first-child { order: 0; } .auth-side { margin-top: 0; } }
@media (max-width: 40rem) { .stage .mock { margin-left: 0; } }
.auth-side .note { margin-top: var(--space-3); }

/* Features, short check lists, and the topbar current page */
.checks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-6); margin-top: 0; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-7); margin: 0; }
.spec dt { font-weight: 700; margin-bottom: var(--space-1); }
.spec dd { margin: 0; color: var(--muted); max-width: var(--measure); }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.lp-section .actions { margin-top: var(--space-4); gap: var(--space-5); }
@media (max-width: 52rem) { .checks.two, .spec { grid-template-columns: 1fr; } }

/* Tidy up */
.band-navy .hero { align-items: center; }
.plan.single, section.plan[aria-labelledby] { grid-template-columns: minmax(0, 1fr); max-width: 32rem; padding: var(--space-5); }
.lp-section h2 + .checks { margin-top: var(--space-4); }
.site-nav { flex-wrap: wrap; row-gap: 0; } .site-nav a { white-space: nowrap; }
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: var(--space-4) var(--space-6); align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-large); padding: var(--space-5); }
.teaser h2 { margin-bottom: var(--space-1); }
.teaser .price-line { margin: 0; }
.teaser .checks { margin: 0; gap: var(--space-2); }
.teaser .actions { margin: 0; }
.trust.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust.three span { font: var(--text-sm)/1.5 var(--sans); }
@media (max-width: 62rem) { .teaser, .trust.three { grid-template-columns: 1fr; } }
/* Public header on a phone: the logo on the first row, the links on a second row spread across the width */
@media (max-width: 40rem) {
  .site-header { padding-block: var(--space-2); row-gap: 0; }
  .site-nav { flex: 1 1 100%; justify-content: space-between; flex-wrap: nowrap; gap: var(--space-1); font-size: var(--text-xs); }
  .site-nav a:not(.button) { min-width: 0; }
  .site-nav .button.small { padding-inline: var(--space-3); font-size: var(--text-xs); min-height: 2.5rem; }
}
