/* Applyomat. Shared by the app and the legal pages.
   Tokens follow the "Executive Precision" system: porcelain canvas, deep teal ink, one ochre accent, 4px controls, 8px cards.
   Fonts are self-hosted (SIL Open Font License, see /fonts/OFL-*.txt), so no request goes to Google. */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/newsreader-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); }

:root {
  --bg: #F8FAFA;
  --surface: #FFFFFF;
  --well: #F0F4F4;
  --ink: #0B131E;
  --text: #1F2937;
  --muted: #5C6773;
  --line: rgba(15, 76, 92, 0.12);
  --line-in: rgba(15, 76, 92, 0.16);
  --primary: #0A3641;
  --primary-hi: #0F4C5C;
  --on-primary: #FFFFFF;
  --accent: #D97706;
  --accent-ink: #904D00;
  --accent-ink-hi: #7A4100;
  --accent-bg: rgba(217, 119, 6, 0.10);
  --accent-line: rgba(217, 119, 6, 0.28);
  --ok: #1F7A5C;
  --ok-bg: rgba(31, 122, 92, 0.10);
  --err: #BA1A1A;
  --err-bg: rgba(186, 26, 26, 0.07);
  --sh1: 0 1px 3px rgba(11, 19, 30, 0.04);
  --sh2: 0 12px 28px -4px rgba(11, 19, 30, 0.07);
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: max(32px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--f-sans); font-size: 15px; line-height: 24px; -webkit-font-smoothing: antialiased; }
.wrap { max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(672px + 2 * var(--gutter)); }
.mid { max-width: calc(976px + 2 * var(--gutter)); }
h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.5rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
h4 { font-family: var(--f-sans); font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); margin: 0; }
p { margin: 0; }
a { color: var(--primary-hi); text-underline-offset: 3px; }
.eyebrow { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-hi); }
.lead { font-size: 17px; line-height: 28px; color: var(--text); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 20px; }
.mono { font-family: var(--f-mono); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-sans); font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; text-decoration: none; }
.mark { width: 26px; height: 26px; color: var(--primary); flex: none; }
.links { display: flex; gap: 4px; }
.links button { background: none; border: 0; color: var(--text); font-weight: 500; font-size: 14px; letter-spacing: 0; padding: 8px 12px; }
.links button:hover { background: var(--well); }
.hright { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hslot { display: none; }
body[data-screen="s-landing"] .hs-landing, body[data-screen="s-run"] .hs-run, body[data-screen="s-done"] .hs-done { display: flex; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; border: 1px solid var(--accent-line); background: var(--accent-bg); color: var(--accent-ink); white-space: nowrap; }
.chip.ok { border-color: rgba(31, 122, 92, 0.3); background: var(--ok-bg); color: var(--ok); }
.chip.plain { border-color: var(--line-in); background: var(--surface); color: var(--primary-hi); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip:not(.ok) .dot.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 24px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-block: 28px; font-size: 13px; color: var(--muted); }
.foot-in .logo { font-size: 17px; }
.foot-l { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.foot-note { font-size: 12px; line-height: 16px; }
.foot-r { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-r a { color: var(--text); font-weight: 500; text-decoration: none; }
.foot-r a:hover { color: var(--ink); text-decoration: underline; }

/* Buttons and inputs */
button, .btn { font: inherit; font-weight: 600; font-size: 14px; letter-spacing: 0.01em; cursor: pointer; border-radius: 4px; padding: 11px 22px; border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button:hover, .btn:hover { background: var(--primary-hi); border-color: var(--primary-hi); }
button.cta { background: var(--accent-ink); border-color: var(--accent-ink); }
button.cta:hover { background: var(--accent-ink-hi); border-color: var(--accent-ink-hi); }
button.secondary, .btn.secondary { background: var(--surface); color: var(--primary); border-color: var(--line-in); }
button.secondary:hover, .btn.secondary:hover { background: var(--well); border-color: var(--primary); }
button.ghost { background: transparent; border-color: transparent; color: var(--ink); padding-inline: 14px; }
button.ghost:hover { background: var(--well); }
button.sm, .btn.sm { padding: 7px 14px; font-size: 13px; }
button:disabled { opacity: 0.5; cursor: default; }
button.secondary:disabled:hover { background: var(--surface); border-color: var(--line-in); }
.lbl { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); margin-bottom: 6px; }
.lbl span { font-weight: 400; color: var(--muted); }
.lbl .req { color: var(--accent-ink); font-weight: 600; }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--well);
  border: 1px solid var(--line-in); border-radius: 4px; padding: 11px 14px;
}
input::placeholder, textarea::placeholder { color: var(--text); opacity: 0.45; }
input[type=text]:focus, input[type=email]:focus, textarea:focus { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); outline: none; }
textarea { resize: vertical; min-height: 96px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; box-shadow: var(--sh1); }
.card.featured { border-top: 3px solid var(--accent); box-shadow: var(--sh2); }
.err { color: var(--err); font-size: 13px; line-height: 20px; min-height: 20px; margin: 4px 0 8px; }
.cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

section { display: block; }
.page { padding-block: 48px 72px; display: flex; flex-direction: column; gap: 32px; }

/* Landing */
.band { padding-block: 72px; }
.band.white { background: var(--surface); border-block: 1px solid var(--line); }
.band.hero-band { padding-block: 56px 80px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px 64px; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; padding-top: 16px; }
.hero-copy .chip { align-self: flex-start; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; font-weight: 500; color: var(--text); padding: 14px 16px; margin: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li:first-child { color: var(--accent-ink); }
.trust .ic { width: 16px; height: 16px; }
.preview { border: 1px solid var(--line); border-radius: 8px; background: var(--well); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.preview-h { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.preview-h span:last-child { color: var(--muted); font-family: var(--f-mono); font-weight: 400; }
.preview-r { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 12px; line-height: 18px; color: var(--ink); }
.preview-r span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-r em { font-style: normal; color: var(--accent-ink); white-space: nowrap; }
.form-h { display: flex; flex-direction: column; gap: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.form-grid .wide { grid-column: 1 / -1; }
.loc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.loc input { padding-inline: 12px; }
.loc .sub { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border: 1px dashed rgba(15, 76, 92, 0.32); border-radius: 4px; background: var(--well); padding: 22px 12px; color: var(--muted); font-size: 13px; }
.drop:hover, .drop:focus-within, .drop.over { border-color: var(--primary); background: var(--surface); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .ic { width: 22px; height: 22px; color: var(--primary); margin-bottom: 4px; }
.drop strong { color: var(--ink); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.drop u { color: var(--accent-ink); text-underline-offset: 2px; }
.form-note { margin-top: 14px; text-align: center; }
.sect-h { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.sect-h .chip { align-self: flex-start; }
.sect-h.center { align-items: center; text-align: center; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.how .card { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.how-top { display: flex; justify-content: space-between; align-items: center; }
.stepno { font-family: var(--f-mono); font-weight: 500; font-size: 17px; color: var(--accent-ink); }
.icbox { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; color: var(--primary); flex: none; }
.how h4 { margin-top: 8px; }
.how-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.faq { max-width: 736px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--sh1); }
summary { cursor: pointer; font-weight: 600; font-size: 16px; color: var(--ink); padding: 18px 20px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary .ic { transition: transform 0.2s ease; color: var(--muted); }
details[open] summary .ic { transform: rotate(180deg); }
details p { padding: 0 20px 18px; }

/* Live run: stepper, progress, stats, then the agent log and the inbox side by side */
.runhead { display: flex; flex-direction: column; gap: 10px; }
.runhead .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent-ink); }
.stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.stepper li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.si { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--well); border: 1px solid var(--line-in); }
.si .ic { width: 16px; height: 16px; color: #fff; stroke-width: 2.4; display: none; }
.stepper .n { display: block; font-size: 11px; line-height: 14px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.stepper .lab { display: block; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li.done .si { background: var(--primary); border-color: var(--primary); }
.stepper li.done .si .ic { display: block; }
.stepper li.done .lab, .stepper li.done .n { color: var(--ink); }
.stepper li.active { border: 2px solid var(--ink); padding: 13px 15px; box-shadow: var(--sh2); }
.stepper li.active .si { background: rgba(10, 54, 65, 0.1); border-color: rgba(10, 54, 65, 0.25); }
.stepper li.active .si::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); animation: pulse 1.6s ease-in-out infinite; }
.stepper li.active .n { color: var(--accent-ink); }
.stepper li.active .n::after { content: " · Running"; }
.stepper li.active .lab { color: var(--ink); }
.progress { display: flex; flex-direction: column; gap: 16px; padding-block: 20px; }
.progress .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.progress .row > span:first-child { display: flex; align-items: baseline; gap: 12px; font-size: 17px; font-weight: 500; color: var(--ink); }
.progress .row b { font-family: var(--f-serif); font-weight: 400; font-size: 36px; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.eta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.eta .ic { width: 16px; height: 16px; }
.track { height: 8px; background: var(--well); border-radius: 4px; overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 4px; transition: width 0.6s ease; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; }
.stats > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; border-left: 1px solid var(--line); min-width: 0; }
.stats > div:first-child { border-left: 0; }
.stats .eyebrow { color: var(--text); font-weight: 500; letter-spacing: 0.06em; }
.stats b { color: var(--ink); font-family: var(--f-serif); font-weight: 400; font-size: 30px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stats b small { font-family: var(--f-sans); font-size: 14px; color: var(--muted); }
.stats .zero b { color: var(--accent-ink); }
.stats .bump b { animation: bump 0.6s ease-out; }
@keyframes bump { 30% { color: var(--accent); transform: translateY(-2px); } }
.live { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.panel { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: 560px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; min-height: 52px; border-bottom: 1px solid var(--line); background: var(--well); }
.panel-head h4 { display: flex; align-items: center; gap: 10px; font-size: 16px; min-width: 0; }
.panel-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--well); font-size: 12px; color: var(--muted); min-width: 0; }
.panel-foot span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livetag { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; color: var(--ok); background: var(--ok-bg); border: 1px solid rgba(31, 122, 92, 0.3); border-radius: 3px; padding: 1px 6px; }
.unread-n { font-family: var(--f-sans); font-size: 12px; font-weight: 600; color: #fff; background: var(--accent-ink); border-radius: 10px; padding: 1px 8px; }
.ticker { flex: 1; overflow-y: auto; padding: 6px 18px 10px; font-family: var(--f-mono); font-size: 12.5px; line-height: 20px; }
.trow { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); animation: rowin 0.35s ease-out; }
@keyframes rowin { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.ts { color: var(--muted); flex: none; }
.tag { flex: none; font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--line-in); background: var(--well); color: var(--primary-hi); min-width: 80px; text-align: center; }
.tag.t-success { background: var(--ok-bg); border-color: rgba(31, 122, 92, 0.3); color: var(--ok); }
.tag.t-dispatch, .tag.t-tailor { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent-ink); }
.tmsg { color: var(--ink); flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.inbox { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.list { flex: 1; overflow-y: auto; }
.reader { flex: 1; overflow-y: auto; padding: 20px 24px 24px; min-width: 0; display: none; flex-direction: column; gap: 14px; }
.inbox[data-view="read"] .list { display: none; }
.inbox[data-view="read"] .reader { display: flex; }
.empty { color: var(--muted); text-align: center; padding: 64px 24px; max-width: 34ch; margin: 0 auto; }
.empty .ic { width: 28px; height: 28px; display: block; margin: 0 auto 10px; color: var(--line-in); stroke: var(--muted); opacity: 0.6; }
.mail { display: block; width: 100%; text-align: left; background: none; color: var(--text); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 18px; font-weight: 400; font-size: 14px; letter-spacing: 0; }
.mail:hover { background: var(--well); border-color: var(--line); }
.mail .m1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.mail .from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mail .when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mail .subj { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.mail .prev { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail.unread .from, .mail.unread .subj { font-weight: 600; }
.mail.unread .from::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px; }
.mail.fresh { animation: fresh 1.8s ease-out; }
@keyframes fresh { from { background: var(--accent-bg); } to { background: transparent; } }
.mail .lbl-tag { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 3px; padding: 0 5px; margin-right: 6px; vertical-align: 1px; }
.lbl-tag.good { color: var(--ok); background: var(--ok-bg); }
.lbl-tag.bad { color: var(--err); background: var(--err-bg); }
.reader h3 { font-size: 24px; }
.reader .meta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.reader .body { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.reader .sim { font-family: var(--f-mono); font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.back { align-self: flex-start; }
.toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; display: none; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 20px; padding: 10px 16px; font-size: 13px; box-shadow: var(--sh2); max-width: calc(100vw - 32px); }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast.on { display: inline-flex; animation: rowin 0.3s ease-out; }

/* Results and reveal */
.success { display: flex; flex-direction: column; gap: 18px; }
.success .chip { align-self: flex-start; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.metrics .card { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.metrics .eyebrow { color: var(--text); font-weight: 500; }
.metrics .v { font-family: var(--f-serif); font-size: 36px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.metrics .zero { border-color: var(--accent-line); }
.metrics .zero .v { color: var(--accent-ink); }
.reveal { position: relative; padding: 40px; border: 1px solid var(--line); border-top: 3px solid var(--accent); box-shadow: var(--sh2); display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 24px; }
.reveal.in { animation: revealIn 0.5s ease-out; }
@keyframes revealIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.stamp { align-self: flex-start; font-family: var(--f-mono); font-weight: 500; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--err); border: 2px solid var(--err); border-radius: 4px; padding: 4px 12px; transform: rotate(-3deg); }
.reveal.in .stamp { animation: stamp 0.45s 0.25s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-3deg) scale(2.2); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }
.reveal p { font-size: 17px; line-height: 28px; max-width: 62ch; color: var(--ink); }
.reality { margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.reality > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 16px; border-top: 1px solid var(--line); }
.reality > div:first-child { border-top: 0; background: var(--well); }
.reality span { color: var(--text); }
.reality b { font-family: var(--f-serif); font-weight: 400; font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reality em { font-style: normal; font-size: 13px; color: var(--muted); }
.share { display: flex; flex-direction: column; gap: 12px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row a, .share-row button { font-size: 13px; padding: 8px 14px; }
.share-row .li { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.share-row .li:hover { background: #004182; border-color: #004182; }
.share-row .ic { width: 16px; height: 16px; }
.share-row .fill { fill: currentColor; stroke: none; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

/* Feedback and end */
.fbhead { display: flex; flex-direction: column; gap: 10px; }
.fbhead .chip { align-self: flex-start; }
.fb { display: flex; flex-direction: column; gap: 28px; padding: 40px; }
.q { display: flex; flex-direction: column; }
.q .lbl { font-size: 15px; margin-bottom: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.fb .cta-row { padding-top: 24px; border-top: 1px solid var(--line); }
.out { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.dev { position: fixed; right: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 40; }
.dev button { padding: 8px 12px; font-size: 13px; }

/* Legal pages */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.5rem; margin-top: 24px; }
.prose h3 { font-size: 1.1rem; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose .box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; }
.todo { background: #FFF3C4; color: #5C3D00; padding: 0 4px; border-radius: 3px; }

@media (max-width: 1080px) {
  .stepper .n::after { content: none !important; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-top: 0; }
  .how { grid-template-columns: 1fr; }
  .stepper li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .live { grid-template-columns: minmax(0, 1fr); }
  .panel { height: 440px; }
  .panel.log { height: 300px; }
  #inboxCard { order: -1; }
}
@media (max-width: 720px) {
  :root { --gutter: max(16px, env(safe-area-inset-left, 0px)); }
  .page { padding-block: 32px 56px; gap: 22px; }
  .band { padding-block: 48px; }
  .band.hero-band { padding-block: 32px 48px; }
  .sect-h { margin-bottom: 28px; }
  body[data-screen] .links, body[data-screen] .cta-sm, .hide-sm { display: none; }
  .form-grid, .loc { grid-template-columns: 1fr; }
  .featured { padding: 20px; }
  .stepper { gap: 6px; }
  .stepper li, .stepper li.active { align-items: center; text-align: center; padding: 10px 4px; gap: 6px; }
  .stepper li.active { padding: 9px 3px; }
  .stepper .n { display: none; }
  .stepper .lab { font-size: 12px; line-height: 16px; }
  .si { width: 24px; height: 24px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats > div { padding: 10px 12px; }
  .stats > div:nth-child(4) { border-left: 0; }
  .stats > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .stats b { font-size: 24px; }
  .stats .eyebrow { font-size: 10px; letter-spacing: 0.04em; }
  .trow { flex-wrap: wrap; gap: 2px 10px; }
  .tmsg { flex-basis: 100%; }
  .ticker { padding-inline: 14px; }
  .reader { padding: 16px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics .card:last-child { grid-column: 1 / -1; }
  .metrics .v { font-size: 30px; }
  .reveal, .fb { padding: 24px 20px; }
  .reveal p { font-size: 16px; line-height: 26px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
