/* skirl.app — one stylesheet for every page except the docs additions (docs.css).
   Tokens, type and shape are Skirl's own (the app's tokens.css): two themes,
   2–6 px corners, hairlines, no gradients, no shadows. */

/* ------------------------------------------------------------ fonts (self-hosted) */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url('/assets/fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url('/assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800; src: url('/assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800; src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------ tokens */
:root {
  color-scheme: dark;
  --ground: #0d0f12; --panel: #14171c; --raised: #1b1f26;
  --line: #262b33; --line-soft: #1e2229; --outline: #3a414c;
  --text: #ece8e1; --text-2: #c9c5bd; --muted: #a7adb7; --dim: #8a919c;
  --accent-fill: #ffb224; --accent-text: #ffb224; --accent-line: #ffb224; --accent-hover: #ffc95c;
  --urgent-fill: #ff6b4a; --urgent-text: #ff6b4a; --urgent-tint: #1a1513; --urgent-border: #3a2a24;
  --ok: #7cc4ff; --ink: #0d0f12;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 40px);
  --gap: clamp(72px, 9vw, 128px);
}
/* The light values appear twice (explicit choice, and "follow the system"), as in the app. */
:root[data-theme='light'] {
  color-scheme: light;
  --ground: #ffffff; --panel: #f6f6f4; --raised: #e9e9e5;
  --line: #e2e2dd; --line-soft: #eeeeea; --outline: #c9c9c3;
  --text: #15171a; --text-2: #3a3e45; --muted: #565b64; --dim: #646972;
  --accent-text: #9a5b00; --accent-line: #c77a00; --accent-hover: #7a4700;
  --urgent-text: #c2331a; --urgent-tint: #fff4f0; --urgent-border: #f3cfc4;
  --ok: #0b6bcb; --ink: #15171a;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --ground: #ffffff; --panel: #f6f6f4; --raised: #e9e9e5;
    --line: #e2e2dd; --line-soft: #eeeeea; --outline: #c9c9c3;
    --text: #15171a; --text-2: #3a3e45; --muted: #565b64; --dim: #646972;
    --accent-text: #9a5b00; --accent-line: #c77a00; --accent-hover: #7a4700;
    --urgent-text: #c2331a; --urgent-tint: #fff4f0; --urgent-border: #f3cfc4;
    --ok: #0b6bcb; --ink: #15171a;
  }
}
/* Screenshots come in both themes; show the one that matches. */
.only-light { display: none; }
:root[data-theme='light'] .only-dark { display: none; }
:root[data-theme='light'] .only-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .only-dark { display: none; }
  :root:not([data-theme='dark']) .only-light { display: block; }
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.7vw, 48px); letter-spacing: -0.03em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
code, pre, kbd, output { font-family: var(--font-mono); }
code { font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent-fill); color: #0d0f12; }
[hidden] { display: none !important; }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 14px; background: var(--accent-fill); color: #0d0f12; font-weight: 600; border-radius: 4px; }
.skip:focus { top: 12px; }
.sq { display: inline-block; width: 0.62em; height: 0.62em; background: var(--accent-fill); flex: none; }
.fine { font-size: 13.5px; color: var(--dim); max-width: 80ch; }
.fine a { color: var(--muted); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 60ch; }
.more { font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ------------------------------------------------------------ buttons, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 0 16px; border: 1px solid var(--outline); border-radius: 4px; background: transparent; color: var(--text); font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--text); color: var(--text); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 13.5px; }
.btn-accent { background: var(--accent-fill); border-color: var(--accent-fill); color: #0d0f12; }
.btn-accent:hover { background: #ffc95c; border-color: #ffc95c; color: #0d0f12; }
.btn-quiet { border-color: transparent; color: var(--muted); font-weight: 500; }
.btn-quiet:hover { border-color: transparent; color: var(--text); }
.btn-danger:hover { border-color: var(--urgent-fill); color: var(--urgent-text); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; border-radius: 4px; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line); }

input[type='text'], input[type='email'], input[type='password'], input[type='search'], input[type='number'], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--outline); border-radius: 4px; background: var(--ground); color: var(--text); font: 400 16px/1.4 var(--font-body);
}
textarea { min-height: 140px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 0; border-color: var(--accent-line); }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--dim); font-size: 13.5px; margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.5em; margin: 0; font-size: 14.5px; color: var(--muted); }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--urgent-text); }
.form-msg.ok::before { content: '✓  '; }
.form-msg.err::before { content: '✕  '; }
.stack-form { display: grid; gap: 14px; align-content: start; }
.stack-form label { margin-bottom: -8px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.inline-form .form-msg, .inline-form .ts { grid-column: 1 / -1; }
.ts:empty { display: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.seg button { border: 0; background: none; color: var(--muted); font: 500 13.5px/1 var(--font-body); padding: 9px 12px; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--raised); color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--font-mono); letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.mark:hover { color: var(--text); }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 12px; border-radius: 4px; color: var(--muted); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav a[aria-current='page'] { color: var(--text); background: var(--raised); }
.top-actions { display: flex; align-items: center; gap: 6px; }
.menu-btn { display: none; }
@media (max-width: 1020px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px var(--pad) 16px; background: var(--ground); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .top-actions { margin-left: auto; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 620px) { .top-gh { display: none; } }
@media (max-width: 420px) { .top-cta { padding: 0 12px; font-size: 14px; } }

/* ------------------------------------------------------------ hero */
.hero { padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 96px); }
.hero-title { font-size: clamp(46px, 9.4vw, 148px); line-height: 0.92; letter-spacing: -0.055em; }
.hero-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: end; margin-top: clamp(28px, 3.5vw, 48px); }
.hero-sub .lead { margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .hero-sub { grid-template-columns: 1fr; } }

/* The demo: a message leaves a script, reaches Skirl, lands on devices. */
.demo { margin-top: clamp(40px, 5vw, 72px); border: 1px solid var(--line); border-radius: 6px; background: var(--panel); overflow: hidden; }
.demo-wire { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); font: 500 12.5px/1 var(--font-mono); color: var(--dim); }
.wire { position: relative; flex: 1; height: 1px; background: var(--outline); }
.wire b { position: absolute; top: -4px; left: 0; width: 9px; height: 9px; background: var(--accent-fill); opacity: 0; }
.demo.sending .wire b { animation: travel 0.55s cubic-bezier(0.5, 0, 0.3, 1) both; }
.demo.sending .wire + span + .wire b { animation-delay: 0.5s; }
@keyframes travel { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 9px); opacity: 0; } }
.demo-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.25fr) minmax(0, 0.95fr); }
.demo-cols > * { min-width: 0; }
.demo-cols > * + * { border-left: 1px solid var(--line); }
.demo-send { padding: 20px; display: grid; gap: 16px; align-content: start; }
.demo-note { margin: 0; font-size: 13.5px; color: var(--muted); }
.term { padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--ground); font: 400 13.5px/2.05 var(--font-mono); color: var(--text-2); }
.term-line { display: flex; align-items: baseline; margin: 0; font-weight: 400; font-size: inherit; white-space: nowrap; }
.term-in { padding-left: 2ch; }
.term-dim { color: var(--dim); margin-right: 1ch; }
.term input, .term select { flex: 1; min-width: 0; width: auto; min-height: 0; padding: 0 2px; border: 0; border-bottom: 1px dashed var(--outline); border-radius: 0; background: none; color: var(--accent-text); font: inherit; line-height: 1.5; }
.term select { flex: none; padding-right: 4px; }
.term output { color: var(--accent-text); }
.demo-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; }
.prio { display: flex; gap: 6px; margin: 0; padding: 0; border: 0; }
.prio legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.prio label { margin: 0; cursor: pointer; }
.prio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.prio span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--outline); border-radius: 3px; font: 600 14px/1 var(--font-mono); color: var(--muted); }
.prio label:nth-of-type(4) span { border-color: var(--accent-line); color: var(--accent-text); }
.prio label:nth-of-type(5) span { border-color: var(--urgent-fill); color: var(--urgent-text); }
.prio input:checked + span { background: var(--text); border-color: var(--text); color: var(--ground); }
.prio label:nth-of-type(4) input:checked + span { background: var(--accent-fill); border-color: var(--accent-fill); color: #0d0f12; }
.prio label:nth-of-type(5) input:checked + span { background: var(--urgent-fill); border-color: var(--urgent-fill); color: #0d0f12; }
.prio input:focus-visible + span { outline: 2px solid var(--accent-line); outline-offset: 2px; }

.demo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.demo-h { font: 700 20px/1 var(--font-heading); letter-spacing: -0.02em; }
.demo-count { font-size: 13px; color: var(--muted); }
.msgs { list-style: none; margin: 0; padding: 0; }
.msg { display: grid; grid-template-columns: 44px 24px minmax(0, 1fr); gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.msg:last-child { border-bottom: 0; }
.msg p { margin: 0; }
.msg-time { font: 400 12.5px/1.7 var(--font-mono); color: var(--dim); }
.msg-meta { font-size: 12.5px; color: var(--muted); }
.topic { font-family: var(--font-mono); margin-right: 6px; }
.msg-title { font: 600 15.5px/1.35 var(--font-heading); margin-top: 2px !important; overflow-wrap: anywhere; }
.msg-body { font-size: 14px; color: var(--muted); margin-top: 2px !important; overflow-wrap: anywhere; }
.msg.read .msg-title { font-weight: 500; color: var(--text-2); }
.msg.urgent { background: var(--urgent-tint); box-shadow: inset 0 0 0 1px var(--urgent-border); }
.msg.urgent .topic { color: var(--urgent-text); }
.msg.new { animation: arrive 0.45s ease-out both; }
@keyframes arrive { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.p { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--outline); border-radius: 2px; font: 500 12px/1 var(--font-mono); color: var(--muted); flex: none; }
.p4 { border-color: var(--accent-line); color: var(--accent-text); }
.p5 { background: var(--urgent-fill); border-color: var(--urgent-fill); color: #0d0f12; font-weight: 700; }

.demo-devices { display: flex; flex-direction: column; }
.toast { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin: 16px 20px 0; padding: 12px 14px; border: 1px solid var(--outline); border-radius: 6px; background: var(--raised); animation: arrive 0.35s ease-out both; }
.toast .sq { width: 14px; height: 14px; margin-top: 3px; }
.toast p { margin: 0; overflow-wrap: anywhere; }
.toast-app { font: 500 11.5px/1.4 var(--font-mono); color: var(--dim); display: flex; justify-content: space-between; }
.toast-title { font-weight: 600; font-size: 14.5px; }
.toast-body { font-size: 13.5px; color: var(--muted); }
.deliveries { list-style: none; margin: 0; padding: 8px 20px 0; }
.deliveries li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); animation: arrive 0.3s ease-out both; }
.deliveries li:last-child { border-bottom: 0; }
.deliveries svg { margin-top: 2px; }
.dl-name { font-weight: 600; font-size: 14.5px; }
.dl-why { display: block; font-size: 13px; color: var(--muted); }
.dl-note { display: block; font-size: 12.5px; color: var(--dim); }
.i-ok { color: var(--ok); } .i-warn { color: var(--accent-text); } .i-bad { color: var(--urgent-text); }
.demo-hint { margin: auto 20px 18px; padding-top: 14px; font-size: 13px; color: var(--dim); }
@media (max-width: 1060px) {
  .demo-cols { grid-template-columns: 1fr; }
  .demo-cols > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .demo-wire span:nth-child(3), .demo-wire .wire:nth-child(4) { display: none; }
}
@media (max-width: 480px) { .term { font-size: 12px; padding: 12px; } .term-in { padding-left: 1ch; } }
@media (prefers-reduced-motion: reduce) { .demo.sending .wire b, .msg.new, .toast, .deliveries li { animation: none; } }
.compat { margin: 28px 0 0; max-width: 96ch; font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------ sections */
.band { padding: var(--gap) 0; border-top: 1px solid var(--line); }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.band-head p { margin: 0; color: var(--text-2); font-size: 17px; max-width: 58ch; }
@media (max-width: 860px) { .band-head { grid-template-columns: 1fr; } }

.versus { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 15.5px; }
.versus th, .versus td { padding: 16px 20px 16px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.versus thead th { border-top: 0; padding-bottom: 12px; font: 600 14px/1.2 var(--font-body); color: var(--muted); }
.versus thead th:last-child { color: var(--text); font: 700 17px/1 var(--font-mono); }
.versus thead .sq { margin-right: 9px; }
.versus tbody th { width: 23%; font-weight: 600; }
.versus td { width: 34%; color: var(--muted); }
.versus td:last-child { width: 43%; color: var(--text); padding-left: 20px; border-left: 1px solid var(--line); }
.versus thead th:last-child { padding-left: 20px; }
.versus + .fine, .table-wrap + .fine { margin-top: 20px; }

.feature { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.feature { overflow-x: clip; }
.feature-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(40px, 5vw, 80px); align-items: center; }
.feature-row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.feature-row.flip > :first-child { order: 2; }
.feature-text h2 { margin-bottom: 24px; }
.feature-text p { color: var(--text-2); max-width: 54ch; }
.feature-text p:last-child { margin-bottom: 0; }
/* A window onto the real screen, near full size, running off the edge of the page. */
.shot { --w: 150%; --x: -27%; --y: 0%; margin: 0 calc(-1 * (max(0px, (100vw - 1280px) / 2) + var(--pad))) 0 0; border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; overflow: hidden; background: var(--ground); aspect-ratio: 7 / 5; }
.shot img { width: var(--w); max-width: none; margin-left: var(--x); margin-top: var(--y); }
.shot-wizard { --x: -64%; --y: -9%; }
.senders { list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.senders li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.senders a { display: block; padding: 12px 14px; font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.senders a:hover { background: var(--raised); color: var(--text); }
.phones { display: flex; justify-content: center; gap: clamp(16px, 3vw, 36px); }
.phone { margin: 0; width: min(46%, 300px); border: 1px solid var(--outline); border-radius: 26px; overflow: hidden; background: var(--panel); }
.phone:last-child { margin-top: 56px; }
.phone img { width: 100%; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip > :first-child { order: 0; }
  .shot { --w: 250%; --x: -44%; --y: 0%; margin: 0; border-right: 1px solid var(--line); border-radius: 6px; aspect-ratio: 4 / 3; }
  .shot-wizard { --x: -112%; --y: -14%; }
  .senders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row.flip { grid-template-columns: 1fr; }
}

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact h3 { margin-bottom: 10px; }
.fact p { color: var(--muted); font-size: 15px; }
.fact a { margin-top: auto; font-size: 14.5px; font-weight: 600; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } }
.measured { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; margin: 64px 0 20px; }
.measured dt { font: 700 clamp(22px, 2.2vw, 28px)/1.1 var(--font-heading); letter-spacing: -0.02em; }
.measured dd { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .measured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.selfhost { padding: var(--gap) 0; border-top: 1px solid var(--line); background: var(--panel); }
.selfhost-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.selfhost-text h2 { margin-bottom: 24px; }
.selfhost-text > p { color: var(--text-2); max-width: 52ch; }
.steps { list-style: none; margin: 28px 0 32px; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.steps .p { width: 28px; height: 28px; font-size: 13px; }
.steps .p4 { background: var(--accent-fill); border-color: var(--accent-fill); color: #0d0f12; font-weight: 700; }
.steps strong { color: var(--text); }
.selfhost-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.code { position: relative; border: 1px solid var(--line); border-radius: 4px; background: var(--ground); }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font-size: 14px; line-height: 1.75; color: var(--text); }
.code .copy { position: absolute; top: 10px; right: 10px; min-height: 30px; padding: 0 10px; border: 1px solid var(--outline); border-radius: 4px; background: var(--panel); color: var(--text); font: 600 12.5px/1 var(--font-body); cursor: pointer; }
.code .copy:hover { border-color: var(--text); }
.code-after { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }
.notice { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--accent-fill); border-radius: 4px; background: var(--raised); }
.notice p { font-size: 15px; color: var(--text-2); }
@media (max-width: 900px) { .selfhost-row { grid-template-columns: 1fr; } }

.cloud { padding: var(--gap) 0; border-top: 1px solid var(--line); }
.cloud-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.cloud h2 { font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.045em; line-height: 0.96; margin-bottom: 28px; }
.cloud-row > div p { color: var(--text-2); font-size: 17px; max-width: 56ch; }
@media (max-width: 900px) { .cloud-row { grid-template-columns: 1fr; } }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px clamp(40px, 6vw, 96px); }
.two h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 16px; }
.two > div > p { color: var(--text-2); max-width: 50ch; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.feed { list-style: none; margin: 24px 0; padding: 0; border-top: 1px solid var(--line); }
.feed li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.feed a { color: var(--text); font-weight: 600; text-decoration: none; }
.feed a:hover { color: var(--accent-hover); text-decoration: underline; }
.feed-meta { display: block; margin-top: 2px; font-size: 13.5px; color: var(--dim); }
.feed-empty { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------ footer */
.foot { padding: 72px 0 40px; border-top: 1px solid var(--line); background: var(--panel); }
.foot-word { max-width: 60ch; margin-bottom: 56px; }
.foot-entry { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.foot-head { font: 700 clamp(44px, 6vw, 72px)/1 var(--font-mono); letter-spacing: -0.04em; }
.foot-say, .foot-kind { font-size: 16px; color: var(--muted); }
.foot-kind { font-style: italic; }
.foot-def { font: 500 clamp(18px, 1.8vw, 22px)/1.45 var(--font-heading); color: var(--text-2); margin: 0; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.foot-cols a { display: block; padding: 5px 0; color: var(--muted); font-size: 14.5px; text-decoration: none; }
.foot-cols a:hover { color: var(--text); }
.foot-title { margin: 0 0 10px; font-size: 14.5px; font-weight: 600; }
.foot-legal { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ inner pages */
.page-head { padding: clamp(48px, 6vw, 88px) 0 clamp(28px, 3vw, 44px); }
.page-head h1 { font-size: clamp(40px, 6.4vw, 88px); letter-spacing: -0.045em; line-height: 0.96; }
.page-head .lead { margin: 24px 0 0; }
.page-body { padding-bottom: var(--gap); }
.prose { max-width: 74ch; color: var(--text-2); }
.prose h1 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -0.035em; color: var(--text); margin-bottom: 24px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; color: var(--text); margin: 48px 0 14px; }
.prose h3 { font-size: 19px; color: var(--text); margin: 32px 0 10px; }
.prose strong { color: var(--text); }
.prose li { margin-bottom: 6px; }
.prose ul, .prose ol { padding-left: 22px; }

.panel { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.panel-pad { padding: clamp(20px, 3vw, 32px); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button, .tabs a { padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer; }
.tabs button:hover, .tabs a:hover { color: var(--text); }
.tabs [aria-selected='true'], .tabs [aria-current='true'] { color: var(--text); border-bottom-color: var(--accent-fill); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--outline); border-radius: 3px; font: 500 12px/1.3 var(--font-mono); color: var(--muted); white-space: nowrap; }
.chip-accent { border-color: var(--accent-line); color: var(--accent-text); }
.chip-ok { border-color: var(--ok); color: var(--ok); }
.chip-urgent { border-color: var(--urgent-fill); color: var(--urgent-text); }
.chip-team { background: var(--accent-fill); border-color: var(--accent-fill); color: #0d0f12; font-weight: 700; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--outline); border-radius: 6px; }
.empty strong { display: block; color: var(--text); font: 700 20px/1.3 var(--font-heading); margin-bottom: 6px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* cloud page */
.cloud-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.cloud-points { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.cloud-points li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.cloud-points strong { display: block; color: var(--text); }
.cloud-card [role='tabpanel'] { padding: clamp(20px, 3vw, 32px); }
.cloud-card .tabs { padding: 0 clamp(8px, 2vw, 16px); }
@media (max-width: 900px) { .cloud-page { grid-template-columns: 1fr; } }

/* community */
.threads { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.thread { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.thread-title { font: 600 18px/1.3 var(--font-heading); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.thread-title:hover { color: var(--accent-hover); text-decoration: underline; }
.thread-meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; color: var(--dim); }
.thread-count { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; font: 500 13px/1.3 var(--font-mono); color: var(--muted); }
.thread-count b { display: block; font-size: 18px; color: var(--text); }
.composer { margin-bottom: 32px; }
.composer form { display: grid; gap: 16px; }
.composer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.post { padding: 24px 0; border-top: 1px solid var(--line); }
.post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; font-size: 14px; color: var(--dim); }
.post-head strong { color: var(--text); font-size: 15px; }
.post-body { color: var(--text-2); max-width: 78ch; overflow-wrap: anywhere; }
.post-body p { white-space: pre-wrap; }
.post-body pre { padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.post-body code { padding: 1px 5px; border-radius: 3px; background: var(--raised); }
.post-body pre code { padding: 0; background: none; }
.post.team { border-left: 3px solid var(--accent-fill); padding-left: 20px; }
.post.is-hidden { opacity: 0.55; }
.post-admin { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thread-h1 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.035em; line-height: 1.04; overflow-wrap: anywhere; }
.crumb { display: inline-block; margin-bottom: 20px; font-size: 14.5px; color: var(--muted); }

/* roadmap */
.stage { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 48px; padding: 36px 0; border-top: 1px solid var(--line); }
.stage h2 { font-size: 26px; letter-spacing: -0.02em; }
.stage-note { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.stage-items { list-style: none; margin: 0; padding: 0; }
.stage-items li { padding: 0 0 24px; }
.stage-items li + li { padding-top: 24px; border-top: 1px solid var(--line-soft); }
.stage-items h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.stage-items p { margin: 0; color: var(--text-2); max-width: 70ch; white-space: pre-wrap; }
.stage.building { border-top: 2px solid var(--accent-fill); }
@media (max-width: 800px) { .stage { grid-template-columns: 1fr; } }
.suggest { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; padding-top: 56px; border-top: 1px solid var(--line); }
.suggest h2 { margin-bottom: 16px; }
@media (max-width: 900px) { .suggest { grid-template-columns: 1fr; } }
.ideas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.idea { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.vote { display: grid; place-items: center; align-content: center; gap: 2px; width: 56px; height: 56px; border: 1px solid var(--outline); border-radius: 4px; background: none; color: var(--text); font: 700 17px/1 var(--font-mono); cursor: pointer; }
.vote small { font: 500 10.5px/1 var(--font-body); color: var(--muted); }
.vote:hover { border-color: var(--text); }
.vote[aria-pressed='true'] { background: var(--accent-fill); border-color: var(--accent-fill); color: #0d0f12; }
.vote[aria-pressed='true'] small { color: #0d0f12; }
.idea h3 { font-size: 17px; margin-bottom: 4px; overflow-wrap: anywhere; }
.idea p { margin: 0 0 6px; font-size: 15px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.idea-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--dim); }
.idea-answer { margin-top: 8px !important; padding-left: 12px; border-left: 2px solid var(--accent-fill); font-size: 14.5px !important; }

/* admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.admin-table th, .admin-table td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.admin-table th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.admin-table td.actions { white-space: nowrap; text-align: right; padding-right: 0; }
.admin-table .btn { margin-left: 4px; }
.admin-table select { min-height: 32px; padding: 4px 8px; font-size: 13.5px; width: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 40px; }
.stat { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat b { display: block; font: 700 32px/1 var(--font-heading); }
.stat span { font-size: 13.5px; color: var(--muted); }
.admin-section { margin-bottom: 48px; }
.admin-section > h2 { font-size: 24px; margin-bottom: 16px; }
.admin-login { max-width: 420px; }

/* small things used on the inner pages */
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; color: var(--text-2); margin: 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent-fill); }
.notice-line { margin: 0; padding: 14px 16px; border-left: 3px solid var(--accent-fill); background: var(--raised); border-radius: 4px; font-size: 15px; color: var(--text-2); }
.linklike { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.composer h2 { font-size: 24px; }
.cloud-page h2 { font-size: 26px; }
@media (min-width: 901px) and (max-width: 1180px) { .senders { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  /* The comparison reads as one block per row on a phone. */
  .versus { min-width: 0; }
  .versus thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .versus tr, .versus tbody th, .versus td { display: block; width: auto; }
  .versus tr { padding: 18px 0; border-top: 1px solid var(--line); }
  .versus tbody th { padding: 0 0 10px; border: 0; font-size: 17px; }
  .versus td, .versus td:last-child { width: auto; padding: 4px 0 4px 96px; border: 0; position: relative; }
  .versus td::before { content: attr(data-l); position: absolute; left: 0; top: 5px; font: 500 12.5px/1.5 var(--font-mono); color: var(--dim); }
  .versus td:last-child::before { color: var(--accent-text); }
}
.foot-cols .seg button { padding: 9px 9px; font-size: 13px; }
.stack-form .grid-2 label { margin-bottom: 6px; }
.admin-table textarea { min-height: 64px; margin-top: 6px; font-size: 14.5px; }
.admin-table input[type='text'], .admin-table input[type='number'] { min-height: 36px; padding: 6px 10px; font-size: 14.5px; }
