/* Sendocket landing system, Nov 2026, docket redesign (Nov 28). Paper docket + teal stamp: one typeface (Manrope) with Geist Mono for code and docket numbers, one accent, flat bordered surfaces, dark blue for the docket, the final call to action, the auth panel and the hovered price card. */
/* Critique: one authored motion (the tagline reveal); everything else is state feedback, apart from the interactive layer added Nov 12 at the owner's request (see Interactive layer below). Elevation is border or shadow, never both; controls 8px, cards 16px, pills 999px. */
/* Waivers: the index FAQ (8 questions, FAQPage schema) is kept outside the word budget; docs, legal and blog pages keep their reference copy; the 1-2-3 in How it works is kept because the order is the workflow. */

/* DESIGN NOTES: palette tokens and their intended use.
   --paper  #ffffff / dark #0F2740   page background
   --surface #ffffff / dark #16334F  cards, menus, the Ctrl K palette
   --ink    #111827 / dark #EEF3F1   headings and body text
   --muted  #4b5563 / dark #B4C4CE   secondary text (ledes, notes, captions)
   --faint  #6b7280 / dark #9DB2BE   tertiary text and disabled hints only
   --accent #0f5f6e                  the one accent: primary buttons, links, active states
   --link   = accent / dark #9fd3dd  text-coloured accent on the current background
   --dark   #1B4A78                  dark blue: docket, footer, auth panel, hovered price card
   --hero-muted #d1d5db              secondary text on the dark blue surfaces
   --focus-dark #9fd3dd              focus rings and highlights on dark surfaces
   --line / --line-strong            1px borders; elevation is border or shadow, never both
   --danger, --flow-*                status and flow-diagram colours only, never decoration
   Contrast, WCAG AA normal text (4.5:1), checked Nov 10 2026:
   --muted on white 7.56, dark muted #B4C4CE on #1B4A78 5.11 (on #0F2740 8.47, on #16334F 7.24),
   accent on white 7.29, --hero-muted on #1B4A78 6.20. All pass.
   Type: one family. Every heading, body line, button and table is Manrope (400/600/700,
   headings 700 at -0.02em); code and docket numbers use Geist Mono. Both load from Google Fonts. */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #0e1a2b;
  --muted: #4a5868;
  --faint: #66727f;
  --wash: #f4f7f9;
  --code-bg: #0e1a2b;
  --ok: #15803d;
  --h1-from: #0e1a2b;
  --h1-to: #4f6378;
  --dark: #1B4A78;
  --dark-raised: rgba(255, 255, 255, .08);
  --dark-line: rgba(255, 255, 255, .18);
  --hero-ink: #ffffff;
  --hero-muted: #d1d5db;
  --accent: #0f5f6e;
  --accent-hover: #0d4f5c;
  --accent-soft: #F2F5F6;
  --line: #e1e6eb;
  --line-strong: #c9d2da;
  --field-bg: #F7FAFB;
  --focus-light: #0f5f6e;
  --focus-dark: #9fd3dd;
  /* Derived roles: text accent and the hero's own button pair. */
  --link: var(--accent);
  --focus: var(--focus-light);
  --hero-bg: var(--paper);
  --hero-text: var(--ink);
  --solid-bg: var(--ink);
  --solid-text: #ffffff;
  --danger: #b91c1c;
  /* Flow diagram arrows, one colour per kind of path. */
  --flow-check: var(--link);
  --flow-trap: #b45309;
  --flow-stop: var(--danger);
  --flow-deliver: #4338ca;
  --flow-reply: #15803d;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* The dark blue version. Scripts set data-theme; with scripts off the page stays light. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F2740;
  --surface: #16334F;
  --ink: #EEF3F1;
  --muted: #B4C4CE;
  --faint: #9DB2BE;
  --accent-soft: #1A3B5C;
  --wash: #0c2136;
  --code-bg: #0a1c2e;
  --ok: #6ee7a0;
  --h1-from: #ffffff;
  --h1-to: #9b9b9b;
  --line: #27486A;
  --line-strong: #36608A;
  --field-bg: #12304A;
  --link: #9fd3dd;
  --focus: var(--focus-dark);
  --hero-bg: var(--paper);
  --hero-text: var(--ink);
  --solid-bg: #ffffff;
  --solid-text: var(--dark);
  --danger: #fca5a5;
  --flow-trap: #fcd34d;
  --flow-deliver: #a5b4fc;
  --flow-reply: #86efac;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: 80px; }
body {
  margin: 0;
  padding-top: 64px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  /* Manrope joins "fl" and "fi" into one glyph by default; keep the letters apart. */
  font-variant-ligatures: no-common-ligatures;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
body.bare { padding-top: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; text-wrap: balance; }
/* Headlines: Manrope 700, tightened a little. */
h1, h2, .h1, .h2 { font-weight: 700; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
em { font-style: normal; font-weight: 600; }
a { color: inherit; }
.link, .prose a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
code, pre, .mono { font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--focus-dark); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-strong); }
.skip:focus { top: 12px; }

.wrap { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 816px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section.moment { padding-top: 128px; padding-bottom: 128px; }
.section.wash { background: var(--wash); }
.lede { margin-top: 16px; max-width: 680px; font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.h1 { font-size: clamp(36px, 5vw, 48px); }
.h2 { font-size: clamp(28px, 3.4vw, 36px); }
.h3 { font-size: 20px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* Lucide symbols draw with stroke="currentColor"; colour an icon with `color`. */
.icon { width: 20px; height: 20px; flex: none; fill: none; }
.icon-sm { width: 14px; height: 14px; flex: none; fill: none; vertical-align: -2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.5;
  padding: 8px 12px; border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .6; transform: none; cursor: wait; }
.btn-sm { font-size: 14px; padding: 6px 12px; }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-solid { background: var(--solid-bg); color: var(--solid-text); }
.btn-outline { background: transparent; color: var(--hero-text); border-color: var(--hero-text); }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Cards, pills, fields */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.tag { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tag-live { border-color: var(--link); color: var(--link); }
.tag-planned { border-color: var(--line-strong); color: var(--muted); }
.field {
  width: 100%; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--field-bg);
  color: var(--ink); padding: 8px 12px; font: inherit; font-size: 16px;
}
.field::placeholder { color: var(--faint); }
.field:focus-visible { border-color: var(--focus); }
textarea.field { resize: vertical; min-height: 88px; }
label.label, .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.error { color: var(--danger); font-size: 14px; font-weight: 600; }
.success { color: var(--link); font-weight: 600; }

/* Header */
header.site { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
/* Header spans the full window (Nov 12, owner request): logo flush left, actions flush right,
   page links centred between them. A 16px edge keeps focus rings and the logo off the glass. */
.nav { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 24px; height: 64px; padding: 0 16px; }
.nav > .brand { grid-column: 1; justify-self: start; }
.nav > .navlinks { grid-column: 2; }
.nav > .nav-right { grid-column: 3; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.brand img { height: 40px; width: auto; }
/* Header lockup (and the same lockup atop the auth pages): 48px mark, 20px wordmark. */
header.site .brand, .auth-main > .brand { gap: 10px; }
header.site .brand img, .auth-main > .brand img { height: 48px; }
header.site .brand span, .auth-main > .brand span { font-size: 20px; }
/* Tablet widths show the full nav and are already tight, so the header keeps
   the previous 40px / 16px lockup there; phones hide the nav and have room. */
@media (min-width: 761px) and (max-width: 1020px) {
  header.site .brand { gap: 8px; }
  header.site .brand img { height: 40px; }
  header.site .brand span { font-size: inherit; }
}
.navlinks { display: flex; gap: 24px; font-weight: 600; }
.navlinks a { text-decoration: none; color: var(--muted); }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.nav-right .signin { font-weight: 600; text-decoration: none; }
.jump { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 6px 4px; }
.jump:hover { color: var(--ink); }
.kbd { font-family: ui-monospace, Menlo, monospace; font-size: 12px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 6px; color: var(--muted); }
.theme-toggle { width: 40px; height: 40px; flex: none; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color 300ms var(--ease), color 300ms var(--ease); }
.theme-toggle:hover { border-color: var(--link); color: var(--link); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu { display: none; position: relative; }
.menu > summary { list-style: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 48px; width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; display: grid; }
.menu-panel a { padding: 12px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.menu-panel a:hover { background: var(--accent-soft); }

/* Hero (white in the light version, dark blue in the dark one) */
.hero { background: var(--hero-bg); color: var(--hero-text); transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 60px); line-height: 1.05; max-width: 680px; }
.hero h1 .accent { color: var(--link); }
.hero .lede { font-size: 18px; color: var(--muted); }
.hero .meta { margin-top: 24px; font-size: 14px; color: var(--muted); }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.demo { background: #ffffff; color: #111827; border: 1px solid #E2E8EB; border-radius: 16px; padding: 24px; }
.demo .label { color: #111827; }
.demo .field { background: #F7FAFB; border-color: #C7D2D8; color: #111827; }
.demo .demo-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: #4b5563; }
.demo form > * + * { margin-top: 12px; }
.demo .count { font-size: 12px; color: #4b5563; text-align: right; margin-top: 4px; }
.demo .note { font-size: 14px; color: #4b5563; }

/* Ledgers: hairline rows, no boxes */
.ledger { margin-top: 32px; border-top: 1px solid var(--ink); }
.ledger-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger-row .icon { color: var(--link); align-self: start; margin-top: 4px; }
.ledger-row .aside { grid-column: 3; font-size: 14px; color: var(--muted); }
.list-2 { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.list-2 > * { padding: 24px 0; border-top: 1px solid var(--line); }
.list-2 h3 { font-size: 20px; }
.list-2 p { margin-top: 8px; color: var(--muted); }

/* Tagline reveal: visible by default; JS dims it first, then reveals word by word. */
.reveal-line { margin: 0 auto; max-width: 680px; text-align: center; font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; line-height: 1.15; color: var(--ink); }
.reveal-armed .reveal-word { color: color-mix(in srgb, var(--ink) 30%, transparent); transition: color 300ms var(--ease); }
.reveal-armed .reveal-word.is-on { color: var(--ink); }

/* Steps, code, diagram */
.steps { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; list-style: none; }
.steps .num { font-size: 24px; font-weight: 700; color: var(--link); }
.steps h3 { margin-top: 8px; font-size: 20px; }
.steps p { margin-top: 8px; color: var(--muted); }
.codebar { margin-top: 24px; background: var(--dark); color: #e5e7eb; border-radius: 8px; overflow: hidden; }
.codebar .tabs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px 8px 0; border-bottom: 1px solid var(--dark-line); }
.codebar [role="tab"] { background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: #d1d5db; padding: 6px 12px; border-radius: 8px 8px 0 0; cursor: pointer; }
.codebar [role="tab"][aria-selected="true"] { background: rgba(255, 255, 255, .14); color: #ffffff; }
.codebar pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.codebar :focus-visible { outline-color: var(--focus-dark); }
/* Dark version: the code panel sits on the page's own blue (#0F2740) with a
   hairline border, instead of the neutral gray that read as a foreign box.
   The selected tab and the copy button use the surface blue. */
:root[data-theme="dark"] .codebar { background: var(--paper); border: 1px solid var(--line); }
:root[data-theme="dark"] .codebar .tabs { border-bottom-color: var(--line); }
:root[data-theme="dark"] .codebar [role="tab"][aria-selected="true"],
:root[data-theme="dark"] .codebar .copy { background: var(--surface); }
.keybox { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: end; }
.keybox .preview { grid-column: 1 / -1; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

.diagram-card { margin-top: 32px; }
.diagram-scroll { overflow-x: auto; }
.diagram { display: block; min-width: 760px; width: 100%; height: auto; }
.diagram .box { fill: var(--accent-soft); stroke: var(--line-strong); stroke-width: 1; transition: fill 300ms var(--ease), stroke 300ms var(--ease); }
.diagram .t { fill: var(--ink); font: 600 14px "Manrope", system-ui, sans-serif; }
.diagram .s { fill: var(--muted); font: 400 12px "Manrope", system-ui, sans-serif; }
.diagram .edge { stroke: var(--faint); stroke-width: 1.5; fill: none; }
.diagram .head { fill: var(--faint); }
.diagram .node { cursor: pointer; }
.diagram .node:focus { outline: none; }
.diagram .node:focus-visible .box, .diagram .node.sel .box { stroke: var(--link); stroke-width: 2; }
.diagram .node.lit .box { fill: var(--accent); stroke: var(--accent); }
.diagram .node.lit .t, .diagram .node.lit .s { fill: #ffffff; }
.diagram-controls { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.progress { flex: 1; min-width: 140px; height: 8px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 300ms linear; }
.diagram-detail { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); min-height: 72px; }
.diagram-detail p { margin-top: 4px; color: var(--muted); }
.diagram.flow { min-width: 900px; }
.diagram .lane { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.diagram .lane-label { font-weight: 600; }
.diagram .node.planned .box { fill: none; stroke-dasharray: 6 4; }
.flow-list { margin: 16px 0 0; padding-left: 24px; display: grid; gap: 12px; color: var(--ink); }
.flow-list .muted { display: block; }

/* Docket demo (dark blue surface) */
.docket { margin-top: 32px; background: var(--dark); color: var(--hero-ink); border-radius: 16px; overflow: hidden; }
.docket-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--dark-line); }
.docket-head h3 { font-size: 20px; }
.docket-head .tools { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.docket .field, .docket select { background: var(--dark-raised); border: 1px solid var(--dark-line); color: #ffffff; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; }
.docket select option { color: #111827; background: #ffffff; }
.docket .btn-secondary { background: transparent; color: #ffffff; border-color: var(--dark-line); }
.docket table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.docket th { text-align: left; font-weight: 600; color: var(--hero-muted); padding: 12px 24px 8px; }
.docket td { padding: 12px 24px; border-top: 1px solid var(--dark-line); vertical-align: top; color: var(--hero-muted); }
.docket td:first-child { color: #ffffff; font-weight: 600; }
.docket .rowbtn { background: none; border: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-align: left; }
.docket .detail td { background: var(--dark-raised); }
.docket-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 24px; border-top: 1px solid var(--dark-line); font-size: 14px; color: var(--hero-muted); }
.docket :focus-visible { outline-color: var(--focus-dark); }

/* Pricing */
.price-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.price-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-card { display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: background-color 350ms var(--ease), color 350ms var(--ease), border-color 350ms var(--ease), transform 350ms var(--ease); }
.price-card.featured { border-color: var(--accent); }
.price-card .who, .price-card .note, .price-card li { color: var(--muted); transition: color 350ms var(--ease); }
.price-card .amount { margin-top: 8px; font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-card .amount small { font-size: 16px; font-weight: 400; color: var(--muted); }
.price-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.price-card li { display: flex; gap: 8px; align-items: baseline; }
.price-card .icon-sm { color: var(--link); }
.price-card .actions { margin-top: auto; padding-top: 24px; }
.price-card .pop { align-self: flex-start; margin-bottom: 8px; }
.price-card:hover, .price-card:focus-within { background: var(--dark); color: #ffffff; border-color: var(--dark); }
.price-card:hover .who, .price-card:hover .note, .price-card:hover li, .price-card:hover .amount small,
.price-card:focus-within .who, .price-card:focus-within .note, .price-card:focus-within li, .price-card:focus-within .amount small { color: var(--hero-muted); }
.price-card:hover .icon-sm, .price-card:focus-within .icon-sm, .price-card:hover .tag, .price-card:focus-within .tag { color: var(--focus-dark); border-color: var(--focus-dark); }
.price-card:hover .btn-secondary, .price-card:focus-within .btn-secondary { background: transparent; color: #ffffff; border-color: #ffffff; }
.price-card:focus-within :focus-visible { outline-color: var(--focus-dark); }
.price-card.featured:hover, .price-card.featured:focus-within { border-color: var(--accent); }

.calc { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; }
.calc label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.calc output { color: var(--link); font-weight: 700; font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; cursor: pointer; }
.calc .hint { font-size: 14px; color: var(--muted); }
.calc-result { background: var(--dark); color: #ffffff; border-radius: 16px; padding: 24px; }
.calc-result .big { margin-top: 8px; font-size: 32px; font-weight: 700; }
.calc-result p { margin-top: 8px; color: var(--hero-muted); font-size: 14px; }
.calc-result .tag { color: #ffffff; border-color: var(--focus-dark); }
.meter { margin-top: 12px; height: 8px; background: var(--dark-line); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--focus-dark); transition: width 300ms var(--ease); }

/* FAQ and details */
.faq { margin-top: 32px; display: grid; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 8px; border-radius: 8px; }
.faq details:first-child { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
summary { cursor: pointer; font-weight: 600; }
details > p, details > div { margin-top: 8px; color: var(--muted); }
.cta-band { text-align: center; padding: 48px 24px; }

/* Tables (plans) */
.table-wrap { position: relative; margin-top: 32px; overflow-x: auto; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; font-variant-numeric: tabular-nums; }
table.cmp th, table.cmp td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
table.cmp th { font-weight: 700; }
table.cmp tr.group th { background: var(--accent-soft); }
table.cmp .icon-sm { color: var(--link); margin-right: 4px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; }
.seg button { border: 0; background: none; font: inherit; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #ffffff; }

/* Docs layout (plugins, help) */
.docs-bar { border-bottom: 1px solid var(--line); }
.docs-bar .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 64px; }
.docs-nav { font-size: 14px; font-weight: 600; display: grid; gap: 8px; align-content: start; }
.docs-nav a { text-decoration: none; }
.docs-nav a[aria-current="page"] { color: var(--link); }
.plugin-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.plugin-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.plugin-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: start; padding: 8px 0; color: var(--muted); }
.plugin-list strong { color: var(--ink); }
.star { background: none; border: 1px solid var(--line-strong); border-radius: 999px; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; color: var(--faint); padding: 0; }
.star[aria-pressed="true"] { color: var(--link); border-color: var(--link); }
.plugin-detail { grid-column: 1 / -1; margin-top: 4px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--field-bg); font-size: 14px; }
.toolbar { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.toolbar select { border: 1px solid var(--line-strong); background: var(--field-bg); color: var(--ink); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.tester-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.tester-steps li { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; color: var(--muted); }
.tester-steps .st { width: 24px; height: 24px; flex: none; border-radius: 999px; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.tester-steps li.pass { color: var(--ink); border-color: var(--link); }
.tester-steps li.pass .st { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.tester-steps li.fail { color: var(--ink); border-color: var(--danger); }
.tester-steps li.fail .st { border-color: var(--danger); color: var(--danger); }
.tester-steps li.skip { color: var(--muted); border-style: dashed; }

/* Blog */
.masthead { background: var(--accent); color: #ffffff; border-radius: 16px; display: flex; align-items: center; justify-content: center; padding: 32px; text-align: center; min-height: 200px; }
.masthead h2 { font-size: 36px; line-height: 1.15; }
.post { padding-top: 32px; border-top: 1px solid var(--line); }
.post h2 { font-size: 24px; color: var(--link); }
.post .date { margin-top: 8px; font-size: 14px; color: var(--faint); }
.post .body { margin-top: 16px; color: var(--muted); }
.post summary { color: var(--link); }
.post-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Legal */
.toc { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.toc a:hover { color: var(--link); border-color: var(--link); }
.prose h2 { margin-top: 32px; font-size: 24px; }
.prose p { margin-top: 8px; color: var(--muted); }

/* Auth */
.auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 100vh; }
.auth-main { padding: 32px 48px 48px; }
.auth-main form { margin-top: 32px; max-width: 576px; display: grid; gap: 16px; }
.auth-aside { background: var(--dark); color: #ffffff; padding: 48px; }
.auth-aside .feat { display: flex; gap: 16px; }
.auth-aside .feat + .feat { margin-top: 32px; }
.auth-aside .feat .icon { width: 28px; height: 28px; color: var(--focus-dark); }
.auth-aside p { color: var(--hero-muted); }
.auth-aside a { color: #ffffff; font-weight: 600; }
.pw { position: relative; }
.pw .field { padding-right: 64px; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.strength { margin-top: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.strength i { height: 6px; border-radius: 999px; background: var(--line); }
.strength i.on { background: var(--accent); }
.pw-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; font-size: 14px; color: var(--muted); }
.pw-checks li.ok { color: var(--link); font-weight: 600; }

/* Footer */
footer.site { background: var(--paper); color: var(--muted); border-top: 1px solid var(--line); }
footer.site .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
footer.site h3 { font-size: 14px; color: var(--ink); }
footer.site ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }
footer.site .brand { color: var(--ink); }
footer.site .brand img { height: 40px; }
footer.site .base { padding-bottom: 32px; font-size: 14px; }
footer.site .base p + p { margin-top: 4px; }
footer.site .base { border-top: 1px solid var(--line); padding-top: 24px; }
footer.site .base a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Quick navigation palette and back to top */
.palette { position: fixed; inset: 0; z-index: 120; background: rgba(15, 39, 64, .55); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.palette-box { width: min(600px, 100%); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.palette-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 16px 24px; font: inherit; font-size: 18px; }
.palette-box input:focus { outline: none; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: 320px; overflow: auto; }
.palette-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.palette-list a small { color: var(--muted); }
.palette-list a.sel, .palette-list a:hover { background: var(--accent-soft); }
.backtop { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }

/* 404 */
.notfound { text-align: center; padding: 96px 16px; }
.notfound .lede { margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .price-grid.three { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  footer.site .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .navlinks, .nav-right .signin, .nav-right .btn, .jump { display: none; }
  .menu { display: block; }
  .nav { gap: 12px; padding: 0 16px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .section.moment { padding-top: 64px; padding-bottom: 64px; }
  .hero-grid { padding-top: 40px; padding-bottom: 48px; }
  .grid-2, .grid-3, .steps, .list-2, .price-grid, .docs { grid-template-columns: minmax(0, 1fr); }
  .ledger-row { grid-template-columns: 28px minmax(0, 1fr); }
  .ledger-row .aside, .ledger-row p { grid-column: 2; }
  .docket th:nth-child(3), .docket td:nth-child(3) { display: none; }
  /* The docket table scrolls sideways inside its panel instead of clipping the last columns. */
  .docket table { display: block; overflow-x: auto; }
  .docket td, .docket .sortbtn { padding-left: 16px; padding-right: 16px; }
  .docket th { padding-left: 16px; padding-right: 16px; }
  .docket th[aria-sort] { padding: 0; }
  .docket tr.detail td { padding: 0 16px; }
  .docket-head .tools { margin-left: 0; }
  .auth-main, .auth-aside { padding: 32px 16px; }
  .pw-checks { grid-template-columns: minmax(0, 1fr); }
  .keybox { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  body, .hero, .btn, .price-card, .price-card *, .theme-toggle, .diagram .box, .progress i, .meter i { transition: opacity 300ms var(--ease) !important; }
  .btn:hover, .btn:active { transform: none; }
  .reveal-armed .reveal-word { color: var(--ink); transition: none; }
}

/* Smooth motion and feedback (Nov 8 follow-up: "interactive and smooth") */
html { scroll-behavior: smooth; }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.motion .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
.card, .steps > li, .list-2 > *, .faq details, .ledger-row, .post { transition: transform 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease); }
.card:hover, .steps > li:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.price-card:hover, .price-card:focus-within { transform: translateY(-2px); }
.ledger-row .icon { transition: transform 300ms var(--ease); }
.ledger-row:hover .icon { transform: translateX(4px); }
details { interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow: hidden; transition: block-size 300ms var(--ease), content-visibility 300ms allow-discrete; }
details[open]::details-content { block-size: auto; }
.faq summary, .topic summary { display: flex; justify-content: space-between; gap: 16px; list-style: none; }
.faq summary::-webkit-details-marker, .topic summary::-webkit-details-marker { display: none; }
.faq summary::after, .topic summary::after { content: "+"; color: var(--link); font-weight: 700; transition: transform 300ms var(--ease); }
.faq details[open] summary::after, .topic details[open] summary::after { transform: rotate(45deg); }
a, .btn-link { transition: color 300ms var(--ease); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 130; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 8px; transition: opacity 300ms var(--ease), transform 300ms var(--ease); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.demo-head .demo-badge { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0f5f6e; background: #E6F0F2; border: 1px solid #B9D3D8; border-radius: 999px; padding: 2px 10px; }
.demo .demo-sub { margin-top: 4px; font-size: 14px; color: #4b5563; }
.demo-reply { padding: 4px 0; }
.demo-reply:not([hidden]) > * { animation: fx-in 300ms var(--ease) both; }
.demo-reply > :nth-child(2) { animation-delay: 60ms; }
.demo-reply > :nth-child(3) { animation-delay: 120ms; }
.demo-reply > :nth-child(n+4) { animation-delay: 180ms; }
.demo-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.demo-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; color: #0f5f6e; border: 1px solid #0f5f6e; border-radius: 999px; padding: 2px 8px; }
.demo-status code { font-size: 12px; color: #4b5563; }
.demo-reply h3 { margin-top: 12px; font-size: 20px; line-height: 1.3; color: #111827; outline: none; overflow-wrap: anywhere; }
.demo-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.demo-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #4b5563; }
.demo-steps strong { color: #111827; }
.demo-steps .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #0f5f6e; }
.demo-steps .link { color: #0f5f6e; font-weight: 600; white-space: nowrap; }
.demo-foot { margin-top: 16px; font-size: 14px; color: #4b5563; }
.demo-reply .btn { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .demo-reply:not([hidden]) > * { animation: none; } }
.docket tr.fresh td { background: rgba(255, 255, 255, .12); }
.docket td .who { display: block; font-weight: 400; font-size: 12px; color: var(--hero-muted); }
.docket .tag { color: #ffffff; border-color: var(--focus-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.codebar .copy { margin-left: auto; background: rgba(255, 255, 255, .14); color: #ffffff; border: 0; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; padding: 4px 12px; cursor: pointer; align-self: center; margin-bottom: 6px; }
.finder { margin: 24px auto 0; max-width: 420px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .steps > li:hover, .faq details:hover, .price-card:hover, .price-card:focus-within, .ledger-row:hover .icon { transform: none; }
  details::details-content { transition: none; }
  .toast { transition: opacity 300ms var(--ease); transform: translate(-50%, 0); }
  .scroll-progress { display: none; }
}

/* Flow explorer (How it works). Pick a scenario, then watch one submission
   travel the diagram. State is set directly; motion only illustrates it. */
.diagram-card:hover { transform: none; }
.fx-top { display: grid; gap: 12px; }
.fx-sticky { position: sticky; top: 64px; z-index: 5; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); margin: 16px -24px; padding: 12px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fx-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.fx-scen { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.fx-scen .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 16px; transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease); }
.fx-scen .chip:hover { border-color: var(--ink); color: var(--ink); }
.fx-scen .chip:active { transform: scale(.97); }
.fx-scen .chip[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.fx-transport { display: flex; align-items: center; gap: 8px; }
.fx-ibtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; transition: border-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease); }
.fx-ibtn:hover:not(:disabled) { border-color: var(--link); color: var(--link); }
.fx-ibtn:active:not(:disabled) { transform: scale(.94); }
.fx-ibtn:disabled { opacity: .45; cursor: default; }
.fx-play { min-width: 104px; height: 40px; }
.fx-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; padding: 2px; gap: 2px; }
.fx-seg button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 4px 12px; border-radius: 6px; cursor: pointer; min-height: 32px; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.fx-seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fx-status { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.fx-status strong { color: var(--ink); }
.fx-meter { flex: 0 0 96px; height: 6px; border-radius: 999px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.fx-meter i { display: block; height: 100%; width: 100%; background: var(--link); transform-origin: 0 50%; transform: scaleX(0); transition: transform 300ms var(--ease); }
.fx-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; border: 1px solid var(--line-strong); color: var(--ink); white-space: nowrap; }
.fx-code.ok { border-color: var(--link); color: var(--link); }
.fx-code.err { border-color: var(--danger); color: var(--danger); }
.fx-summary { font-size: 14px; color: var(--muted); max-width: 820px; }

/* Diagram states */
.diagram .node { transition: opacity 300ms var(--ease); }
.diagram .node .box { transition: fill 300ms var(--ease), stroke 300ms var(--ease), stroke-width 300ms var(--ease); }
.diagram .node .t, .diagram .node .s { transition: fill 300ms var(--ease); }
.diagram .edge { transition: stroke 300ms var(--ease), opacity 300ms var(--ease), stroke-width 300ms var(--ease); }
.fx-on .diagram .node.is-off .box { fill: var(--surface); stroke: var(--line); }
.fx-on .diagram .node.is-off .t { fill: var(--muted); }
.fx-on .diagram .node.is-off .s { fill: var(--faint); }
.fx-on .diagram .edge.is-off { opacity: .35; }
.diagram .node.is-pass .box, .diagram .node.is-visited .box { stroke: var(--link); stroke-width: 2; }
.diagram .node.is-skip .box { stroke-dasharray: 5 4; }
.diagram .node.is-stop .box { stroke: var(--danger); stroke-width: 2; }
.diagram .node.is-active .box { fill: var(--accent); stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 6px 16px rgba(15, 95, 110, .35)); }
.diagram .node.is-active .t, .diagram .node.is-active .s { fill: #ffffff; }
:root[data-theme="dark"] .diagram .node.is-active .box { stroke: var(--focus-dark); }
.diagram .edge.is-done, .diagram .edge.is-live { stroke-width: 2.5; opacity: 1; }
.diagram .edge.is-hot { stroke-width: 3; opacity: 1; }
.diagram .edge[data-kind="check"] { stroke: var(--flow-check); }
.diagram .edge[data-kind="trap"] { stroke: var(--flow-trap); }
.diagram .edge[data-kind="stop"] { stroke: var(--flow-stop); }
.diagram .edge[data-kind="deliver"] { stroke: var(--flow-deliver); }
.diagram .edge[data-kind="reply"] { stroke: var(--flow-reply); }
.diagram .head-check { fill: var(--flow-check); }
.diagram .head-trap { fill: var(--flow-trap); }
.diagram .head-stop { fill: var(--flow-stop); }
.diagram .head-deliver { fill: var(--flow-deliver); }
.diagram .head-reply { fill: var(--flow-reply); }
.fx-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.fx-legend li { display: flex; align-items: center; gap: 8px; }
.fx-legend i { width: 20px; height: 0; border-top: 3px solid currentColor; border-radius: 2px; }
.fx-legend [data-kind="check"] i { color: var(--flow-check); }
.fx-legend [data-kind="trap"] i { color: var(--flow-trap); }
.fx-legend [data-kind="stop"] i { color: var(--flow-stop); }
.fx-legend [data-kind="deliver"] i { color: var(--flow-deliver); }
.fx-legend [data-kind="reply"] i { color: var(--flow-reply); }
@media (max-width: 760px) { .fx-legend { display: none; } }
.diagram .badge { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: opacity 300ms var(--ease), transform 300ms var(--ease); pointer-events: none; }
.diagram .badge circle { fill: var(--link); }
.diagram .badge use { color: var(--paper); }
.diagram .node.is-stop .badge circle { fill: var(--danger); }
.diagram .node.is-skip .badge circle { fill: var(--faint); }
.diagram .node.is-pass .badge, .diagram .node.is-stop .badge, .diagram .node.is-skip .badge { opacity: 1; transform: scale(1); }
.diagram .packet { pointer-events: none; transition: opacity 300ms var(--ease); }
.diagram .packet .core { fill: var(--link); stroke: var(--paper); stroke-width: 2; }
.diagram .packet .halo { fill: var(--link); opacity: .22; transform-box: fill-box; transform-origin: center; }
.diagram .packet.moving .halo { animation: fx-breathe 900ms ease-in-out infinite alternate; }
.diagram .packet.gone { opacity: 0; }
.diagram .ring { fill: none; stroke: var(--danger); stroke-width: 2; opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: center; }
.diagram .ring.ok { stroke: var(--link); }
.diagram .ring.go { animation: fx-ring 900ms var(--ease) 1; }
@keyframes fx-breathe { from { transform: scale(.8); } to { transform: scale(1.25); } }
@keyframes fx-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }

/* Steps rail, detail and inspector */
.fx-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fx-steps button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 4px 12px 4px 4px; min-height: 32px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color 300ms var(--ease), color 300ms var(--ease), background-color 300ms var(--ease); }
.fx-steps button:hover { border-color: var(--line-strong); color: var(--ink); }
.fx-steps .n { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--accent-soft); color: var(--ink); font-size: 12px; flex: none; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.fx-steps .n .icon-sm { vertical-align: 0; width: 12px; height: 12px; }
.fx-steps .sub { display: none; }
.fx-steps [data-state="pass"] .n, .fx-steps [data-state="visited"] .n { background: var(--link); color: var(--paper); }
.fx-steps [data-state="stop"] .n { background: var(--danger); color: var(--paper); }
.fx-steps [data-state="skip"] .n { background: var(--faint); color: var(--paper); }
.fx-steps [aria-current="step"] { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.fx-steps [aria-current="step"] .n { background: var(--accent); color: #ffffff; }
.fx-steps [aria-current="step"][data-state="stop"] .n { background: var(--danger); color: var(--paper); }
.fx-steps [aria-current="step"][data-state="pass"] .n { background: var(--link); color: var(--paper); }
:root[data-theme="dark"] .fx-steps [aria-current="step"] { border-color: var(--focus-dark); }
.fx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; margin-top: 24px; align-items: start; }
.fx-detail { min-height: 140px; padding-top: 4px; }
.fx-detail .h3 { margin-top: 4px; }
.fx-detail p { margin-top: 8px; color: var(--muted); }
.fx-detail .btn-link { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }
.fx-swap { animation: fx-in 300ms var(--ease) 1; }
@keyframes fx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fx-inspect { background: var(--dark); color: #ffffff; border-radius: 16px; padding: 24px; display: grid; gap: 16px; }
.fx-inspect h3 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hero-muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fx-inspect pre { margin: 8px 0 0; padding: 12px 16px; background: rgba(0, 0, 0, .22); border: 1px solid var(--dark-line); border-radius: 8px; font-size: 14px; line-height: 1.6; color: #e5eef3; white-space: pre-wrap; overflow-wrap: anywhere; }
.fx-inspect .wait { margin-top: 8px; font-size: 14px; color: var(--hero-muted); }
.fx-inspect .fx-code { color: #ffffff; border-color: var(--dark-line); text-transform: none; letter-spacing: 0; }
.fx-inspect .fx-code.ok { color: var(--focus-dark); border-color: var(--focus-dark); }
.fx-inspect .fx-code.err { color: #fca5a5; border-color: #fca5a5; }
.fx-inspect :focus-visible { outline-color: var(--focus-dark); }
.fx-inspect .fx-seg { border-color: var(--dark-line); }
.fx-inspect .fx-seg button { color: var(--hero-muted); }
.fx-inspect .fx-seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: #ffffff; box-shadow: inset 0 0 0 1px var(--dark-line); }
.fx-out { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-out li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--hero-muted); background: var(--dark-raised); border-radius: 8px; padding: 8px 12px; }
.fx-out li strong { display: block; color: #ffffff; font-size: 14px; }
.fx-out .mark { width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; flex: none; margin-top: 1px; background: rgba(255, 255, 255, .14); color: #ffffff; }
.fx-out .yes .mark { background: var(--focus-dark); color: var(--dark); }
.fx-out .no .mark { background: #fca5a5; color: var(--dark); }
.fx-out .mark .icon-sm { width: 12px; height: 12px; vertical-align: 0; }
.fx-reveal { animation: fx-in 300ms var(--ease) 1; }
.fx-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--focus-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-transform: none; letter-spacing: 0; }

@media (max-width: 760px) {
  .card.diagram-card { padding: 24px 16px; }
  .fx-sticky { margin: 16px -16px; padding: 10px 16px; }
  .fx-scen { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 32px), transparent); }
  .fx-scen::-webkit-scrollbar { display: none; }
  .fx-scen .chip { flex: none; scroll-snap-align: start; scroll-margin-left: 16px; font-size: 14px; padding: 4px 12px; min-height: 36px; gap: 4px; }
  .fx-ibtn { width: 36px; height: 36px; }
  .fx-play { height: 36px; }
  .fx-row { gap: 8px; }
  .fx-transport { gap: 6px; }
  .fx-play { min-width: 84px; padding: 4px 10px; }
  .fx-status { flex-basis: 100%; font-size: 14px; }
  .fx-on .diagram-scroll { display: none; }
  .fx-on .fx-steps { flex-direction: column; flex-wrap: nowrap; gap: 0; margin-top: 0; }
  .fx-on .fx-steps li { position: relative; }
  .fx-on .fx-steps li + li::before { content: ""; position: absolute; left: 15px; top: -6px; height: 12px; width: 2px; background: var(--line-strong); }
  .fx-on .fx-steps button { width: 100%; border-radius: 12px; padding: 8px 12px 8px 4px; align-items: flex-start; text-align: left; margin: 6px 0; }
  .fx-on .fx-steps .sub { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
  .fx-grid, .fx-out { grid-template-columns: minmax(0, 1fr); }
  .fx-meter { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .diagram .node, .diagram .node .box, .diagram .edge, .diagram .badge, .fx-meter i { transition: none; }
  .diagram .badge { transform: none; }
  .diagram .packet.moving .halo, .diagram .ring.go, .fx-swap, .fx-reveal { animation: none; }
  .fx-scen .chip:active, .fx-ibtn:active:not(:disabled) { transform: none; }
}

/* Site-wide polish (Nov 9): page-to-page transitions, a settled header,
   section tracking in the tables of contents, and value changes that ease. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  header.site { view-transition-name: site-header; }
  footer.site { view-transition-name: site-footer; }
  ::view-transition-old(root) { animation: 160ms cubic-bezier(.4, 0, 1, 1) both vt-out; }
  ::view-transition-new(root) { animation: 240ms var(--ease) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
header.site { transition: box-shadow 300ms var(--ease), background-color 300ms var(--ease); }
header.site.scrolled { box-shadow: 0 4px 16px rgba(15, 39, 64, .06); }
:root[data-theme="dark"] header.site.scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, .24); }
.toc a { transition: color 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease); }
.toc a[aria-current="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
html:has(.toc.is-sticky) { scroll-padding-top: 160px; }
.toc.is-sticky { position: sticky; top: 72px; z-index: 4; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); padding: 8px 0; }
.seg button { transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.tick { animation: tick 300ms var(--ease) 1; display: inline-block; }
@keyframes tick { from { opacity: 0; transform: translateY(-40%); } to { opacity: 1; transform: none; } }
.tester-steps li.pass, .tester-steps li.fail, .tester-steps li.skip { animation: fx-in 300ms var(--ease) 1; }
table.cmp tbody tr { transition: background-color 200ms var(--ease); }
table.cmp tbody tr:not(.group):hover { background: var(--accent-soft); }
@media (max-width: 760px) {
  html:has(.toc.is-sticky) { scroll-padding-top: 128px; }
  .toc.is-sticky { top: 64px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 8px 16px; }
  .toc.is-sticky::-webkit-scrollbar { display: none; }
  .toc.is-sticky a, .toc.is-sticky span { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tick, .tester-steps li.pass, .tester-steps li.fail, .tester-steps li.skip { animation: none; }
}

/* Docket, pricing and calculator interactions (Nov 9). */
.docket tbody tr:not(.detail) { transition: background-color 200ms var(--ease); }
.docket tbody tr:not(.detail):hover { background: var(--dark-raised); }
.docket th[aria-sort] { padding: 0; }
.docket .sortbtn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer; padding: 12px 24px 8px; border-radius: 6px; transition: color 200ms var(--ease); }
.docket .sortbtn:hover, .docket th[aria-sort="ascending"] .sortbtn, .docket th[aria-sort="descending"] .sortbtn { color: #ffffff; }
.docket .sortbtn .icon-sm { opacity: .35; transition: transform 300ms var(--ease), opacity 200ms var(--ease); transform: rotate(90deg); }
.docket th[aria-sort="ascending"] .sortbtn .icon-sm { opacity: 1; transform: rotate(-90deg); }
.docket th[aria-sort="descending"] .sortbtn .icon-sm { opacity: 1; transform: rotate(90deg); }
.docket .rowbtn { display: inline-flex; align-items: center; gap: 6px; }
.docket .rowbtn .icon-sm { transition: transform 300ms var(--ease); }
.docket .rowbtn[aria-expanded="true"] .icon-sm { transform: rotate(90deg); }
.docket mark { background: rgba(159, 211, 221, .28); color: #ffffff; border-radius: 3px; padding: 0 1px; }
.docket tr.detail td { padding: 0 24px; border-top: 0; background: var(--dark-raised); }
.docket .detail-wrap { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 300ms var(--ease), visibility 0s 300ms; }
.docket .detail-wrap.open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 300ms var(--ease), visibility 0s; }
.docket .detail-wrap > div { overflow: hidden; }
.docket .detail-wrap dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; padding: 12px 0 16px; }
.docket .detail-wrap dt { color: var(--hero-muted); font-weight: 600; }
.docket .detail-wrap dd { margin: 0; color: #ffffff; overflow-wrap: anywhere; }
.docket tr.fresh td { animation: fresh-row 1600ms var(--ease) 1; }
@keyframes fresh-row { from { background: rgba(159, 211, 221, .35); } }
.docket-meter { display: inline-block; width: 64px; height: 4px; margin-left: 8px; vertical-align: middle; border-radius: 999px; background: var(--dark-line); overflow: hidden; }
.docket-meter i { display: block; height: 100%; background: var(--focus-dark); transition: width 300ms var(--ease); }

.price-card li .icon-sm.planned { color: var(--faint); }
.price-card:hover li .icon-sm.planned, .price-card:focus-within li .icon-sm.planned { color: var(--hero-muted); }
.price-card.is-match, .card.row.is-match { outline: 2px solid var(--link); outline-offset: -1px; }
.price-card .match-tag, .card.row .match-tag { margin-left: 8px; vertical-align: middle; color: var(--link); border-color: var(--link); animation: fx-in 300ms var(--ease) 1; }

.calc input[type="range"] { --p: 0%; -webkit-appearance: none; appearance: none; background: transparent; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--range-fill) var(--p), var(--line-strong) var(--p)); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--range-fill); box-shadow: 0 2px 6px rgba(15, 39, 64, .2); transition: transform 150ms var(--ease); }
.calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line-strong); }
.calc input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--range-fill); }
.calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--range-fill); box-shadow: 0 2px 6px rgba(15, 39, 64, .2); transition: transform 150ms var(--ease); }
.calc input[type="range"]:active::-moz-range-thumb { transform: scale(1.15); }
.calc-marks { position: relative; height: 18px; margin: -4px 11px 0; font-size: 12px; color: var(--muted); }
.calc-marks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.calc-marks span::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 5px; background: var(--line-strong); }
.calc-marks span:first-child { transform: none; }
.calc-marks span:first-child::before { left: 0; }
.meter i.is-near { background: #fcd34d; }
.calc-result { transition: box-shadow 300ms var(--ease); }
.calc-result.bump { animation: calc-bump 300ms var(--ease) 1; }
@keyframes calc-bump { 30% { box-shadow: 0 0 0 4px rgba(159, 211, 221, .45); } }
:root { --range-fill: var(--accent); }
:root[data-theme="dark"] { --range-fill: var(--link); }

@media (prefers-reduced-motion: reduce) {
  .docket .detail-wrap, .docket .detail-wrap.open { transition: none; }
  .docket tr.fresh td, .calc-result.bump, .price-card .match-tag { animation: none; }
  .price-card:hover { transform: none; }
}

/* Visual upgrade (Nov 10): background texture, then four micro-interactions.
   Everything here uses the existing palette and switches off under reduced motion. */

/* Background texture: removed in the Nov 28 redesign. Backgrounds are flat. */

/* 1. Primary buttons: the Nov 10 sheen and glow were removed in the Nov 12
   refinement; the 2px lift and colour change carry the hover. */

/* 2. Help setup checker: a step that passes swaps its number for a check
   that draws in, short stroke first, then the long one. */
.tester-steps li.pass .st { position: relative; color: transparent; }
.tester-steps li.pass .st::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #ffffff; border-width: 0 2px 2px 0; transform: rotate(45deg); animation: check-draw 300ms var(--ease) 60ms both; }
@keyframes check-draw {
  0% { clip-path: inset(calc(100% - 2px) 100% 0 0); }
  45% { clip-path: inset(calc(100% - 2px) 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* 3. Demo form: a spinner beside "Filing in your docket…" while it files. */
.btn.is-busy::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #ffffff; animation: btn-spin 700ms linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* 4. Theme switch: the main surfaces and text ease between light and dark
   (body and the hero already do). */
footer.site, .menu-panel, .field, .tester-steps li, .palette-box, .lede, .muted, .faint, .navlinks a, .prose p, .steps p { transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .tester-steps li.pass .st::after, .btn.is-busy::before { animation: none; }
  footer.site, .menu-panel, .field, .tester-steps li, .palette-box, .lede, .muted, .faint, .navlinks a, .prose p, .steps p { transition: none; }
}

/* Refinement (Nov 12): with reduced motion nothing moves. State changes land at
   once, and every animation (the busy spinner included) stops on its first frame. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Interactive layer (Nov 12, owner request: "make the boxes interactive, the
   arrows like neuron links, and the background react to the pointer").
   All of it is added by site.js and none of it runs under reduced motion. */

/* 1. Information boxes: a light follows the pointer inside the box; a click
      marks the box and ripples from where it landed. */
.ix-box { position: relative; isolation: isolate; overflow: hidden; cursor: pointer; }
.ix-box::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(260px circle at var(--ix-x, 50%) var(--ix-y, 50%), color-mix(in srgb, var(--link) 16%, transparent), transparent 70%); transition: opacity 300ms var(--ease); }
.ix-box:hover::before, .ix-box.ix-on::before { opacity: 1; }
.card.ix-on, .faq details.ix-on, .price-card.ix-on { outline: 2px solid var(--link); outline-offset: -1px; }
.ledger-row.ix-on h3, .list-2 > .ix-on h3 { color: var(--link); }
.ix-ripple { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--link) 35%, transparent); animation: ix-ripple 650ms var(--ease) forwards; }
@keyframes ix-ripple { to { transform: scale(32); opacity: 0; } }

/* 2. Neuron links: a pulse of light keeps travelling along every diagram
      arrow and flickers as it goes. It dims with a line the flow explorer
      has set aside. */
.diagram .edge-pulse { fill: none; stroke: var(--link); stroke-width: 3; stroke-linecap: round; stroke-dasharray: calc(var(--pdash, 7) * 1px) calc(var(--plen, 100) * 1px); stroke-dashoffset: calc((var(--plen, 100) + var(--pdash, 7)) * 1px); pointer-events: none; filter: drop-shadow(0 0 3px var(--link)); animation: neuron-travel 2400ms linear infinite, neuron-flicker 1200ms ease-in-out infinite alternate; transition: opacity 300ms var(--ease); }
/* One full period (line length plus pulse) per cycle, so every pulse crosses its whole line. */
@keyframes neuron-travel { from { stroke-dashoffset: calc((var(--plen, 100) + var(--pdash, 7)) * 1px); } to { stroke-dashoffset: 0; } }
@keyframes neuron-flicker { from { stroke-opacity: .35; } to { stroke-opacity: 1; } }
.fx-on .diagram .edge.is-off + .edge-pulse { opacity: .12; }

/* 3. The page answers the pointer: a soft light follows the mouse and every
      click sends a ring out. One fixed layer under the header, never clickable. */
.ix-glow { position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--gx, -999px) var(--gy, -999px), color-mix(in srgb, var(--link) 14%, transparent), transparent 65%); transition: opacity 300ms var(--ease); }
.ix-glow.on { opacity: 1; }
:root[data-theme="dark"] .ix-glow { mix-blend-mode: screen; background: radial-gradient(420px circle at var(--gx, -999px) var(--gy, -999px), color-mix(in srgb, var(--link) 22%, transparent), transparent 65%); }
.ix-wave { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2px solid var(--link); pointer-events: none; animation: ix-wave 850ms var(--ease) forwards; }
@keyframes ix-wave { from { transform: scale(.2); opacity: .7; } to { transform: scale(9); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ix-box::before, .diagram .edge-pulse, .ix-glow { display: none; }
}

/* Flush left (Nov 12, owner request: "all the words flushed to the left").
   Every page's content column starts at the same 16px edge as the header logo
   instead of sitting centred, and blocks that were centred read from the left.
   Columns keep their maximum widths so lines stay a readable length. */
.wrap { margin-left: 0; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.center, .cta-band, .notfound, .reveal-line { text-align: left; }
.center .lede, .notfound .lede, .reveal-line, .finder { margin-left: 0; margin-right: auto; }
.masthead { justify-content: flex-start; text-align: left; }
.notfound { padding-left: 16px; padding-right: 16px; }

/* Docket redesign (Nov 28, owner request after the competitor review).
   The home page shows the product working: a form files a numbered entry
   into the docket. Shared pieces first, then the home page blocks. Sizes
   sit on the Tailwind scale, spacing on the 4/8 ladder, radius 16 outside
   and 8 inside. */
.eyebrow { font: 600 12px/16px "Geist Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--link); }
.head { display: grid; gap: 16px; max-width: 680px; margin-bottom: 48px; }
.head .lede { margin-top: 0; }
.h2 { font-size: 36px; line-height: 40px; }
.hero h1 { font-size: 60px; line-height: 1; letter-spacing: -.03em; background: linear-gradient(90deg, var(--h1-from), var(--h1-to)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px; }
.hero .wrap { max-width: 1232px; }
.hero-grid { align-items: start; padding-top: 80px; padding-bottom: 96px; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; }
.hero .eyebrow + h1 { margin-top: 16px; }
.hero .lede { margin-top: 24px; }
.hero-ctas { align-items: center; gap: 16px; }
.proof { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 20px; color: var(--muted); }
.proof span { display: inline-flex; align-items: center; gap: 8px; }
.proof .icon-sm { color: var(--ok); vertical-align: 0; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.pill.free { border-color: var(--ok); color: var(--ok); }
.pill.pro { border-color: var(--link); color: var(--link); }

/* Hero stage: the intake form above the docket it files into. */
.stage { display: grid; gap: 16px; }
.intake { box-shadow: 0 24px 48px -24px rgba(14, 26, 43, .18); }
.card.intake:hover { transform: none; }
.intake-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.intake-head p { font-weight: 700; }
.intake .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.intake .fields .full { grid-column: 1 / -1; }
.intake .label { margin-bottom: 4px; }
.intake textarea.field { min-height: 72px; }
.intake .btn { width: 100%; margin-top: 16px; }
.intake .error { margin-top: 8px; }
.filed { background: var(--dark); color: #ffffff; border-radius: 16px; padding: 8px; border: 1px solid rgba(255, 255, 255, .16); }
:root[data-theme="dark"] .filed { background: var(--surface); border-color: var(--line); }
.filed-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 8px; }
.filed-top h3 { font-size: 16px; line-height: 24px; }
.filed-top span { font-size: 14px; color: var(--hero-muted); }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, .07); }
.entry .no { font: 500 12px/16px "Geist Mono", ui-monospace, monospace; color: var(--hero-muted); }
.entry .who { min-width: 0; }
.entry .who b, .entry .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry .who b { font-size: 14px; line-height: 20px; }
.entry .who span { font-size: 12px; line-height: 16px; color: var(--hero-muted); }
.stamp { font: 600 12px/16px "Geist Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--focus-dark); border: 1px solid currentColor; border-radius: 4px; padding: 2px 8px; transform: rotate(-4deg); }
.entry.new { animation: file-in 700ms var(--ease) both; }
.entry.new .stamp { animation: stamp-in 500ms 400ms var(--ease) both; }
@keyframes file-in { from { opacity: 0; transform: translateY(-16px); } }
@keyframes stamp-in { from { opacity: 0; transform: rotate(-4deg) scale(1.6); } }
.trail { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 12px; font-size: 12px; line-height: 16px; color: var(--hero-muted); }
.trail span { display: inline-flex; align-items: center; gap: 4px; }
.trail .icon-sm { color: #6ee7a0; vertical-align: 0; }
.filed :focus-visible { outline-color: var(--focus-dark); }

/* Setup: words on the left, the endpoint and code on the right. */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split .lede { margin-top: 16px; }
.split .keybox { margin-top: 0; }
.stackrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.stackrow li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 600; background: var(--surface); }
.split .codebar { background: var(--code-bg); border-radius: 16px; border: 1px solid var(--line); }
.codebar .t { color: #f0b37e; } .codebar .s { color: #9fd3dd; } .codebar .c { color: #8aa0b4; }

/* What happens after submit: each card shows a small piece of the product. */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card.feat { padding: 8px; display: grid; grid-template-rows: auto 1fr; }
.card.feat:hover { box-shadow: 0 24px 48px -32px rgba(14, 26, 43, .3); }
.mock { background: var(--wash); border-radius: 8px; padding: 16px; min-height: 168px; display: grid; align-content: center; gap: 8px; font-size: 12px; line-height: 16px; overflow: hidden; }
.feat-body { padding: 16px 16px 12px; display: grid; gap: 8px; align-content: start; }
.feat-body .row { justify-content: space-between; flex-wrap: nowrap; }
.card.feat h3 { font-size: 18px; line-height: 28px; }
.card.feat p { color: var(--muted); }
.m-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 4px; }
.m-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.m-dim { color: var(--faint); }
.m-tag { padding: 0 8px; border-radius: 999px; font-weight: 600; border: 1px solid currentColor; }
.m-ok { color: var(--ok); }
.m-warn { color: #b45309; }
:root[data-theme="dark"] .m-warn { color: #fbbf6a; }
.m-bar { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-family: "Geist Mono", ui-monospace, monospace; }
.m-dots { display: flex; gap: 4px; }
.m-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); }
.m-code { background: var(--code-bg); color: #e6edf3; border-radius: 8px; padding: 12px; font-family: "Geist Mono", ui-monospace, monospace; white-space: pre; overflow: hidden; }

/* How it works and the roadmap. */
.steps .num { font: 600 12px/16px "Geist Mono", ui-monospace, monospace; color: var(--link); }
.roadmap { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.roadmap li { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 12px; display: grid; gap: 4px; }
.roadmap b { font-size: 14px; line-height: 20px; }
.roadmap span { font-size: 12px; line-height: 16px; color: var(--faint); }

/* Trust facts. */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.facts > div { display: grid; gap: 8px; align-content: start; }
.facts .icon { color: var(--link); }
.facts p { color: var(--muted); font-size: 14px; line-height: 20px; }

/* FAQ with the heading beside the answers. */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.faq-grid .faq { margin-top: 0; }
.faq-grid .h2 { margin-top: 16px; }

/* The closing call to action: flat docket blue. */
.cta-final { background: var(--dark); color: #ffffff; border-radius: 16px; padding: 64px 48px; display: grid; gap: 16px; justify-items: start; }
:root[data-theme="dark"] .cta-final { background: var(--surface); border: 1px solid var(--line); }
.cta-final p { color: var(--hero-muted); font-size: 18px; line-height: 28px; }
.cta-final .btn { background: #ffffff; color: var(--dark); margin-top: 16px; }
.cta-final .btn:hover { background: #e7f1f3; }
.cta-final :focus-visible { outline-color: var(--focus-dark); }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .split, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section.moment { padding-top: 80px; padding-bottom: 80px; }
  .hero-grid { padding-top: 48px; padding-bottom: 64px; gap: 48px; }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .h2 { font-size: 30px; line-height: 36px; }
  .feat-grid, .roadmap, .facts, .intake .fields { grid-template-columns: minmax(0, 1fr); }
  .cta-final { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .entry.new, .entry.new .stamp { animation: none; }
}
