/* Finance Controller: site styles.
   Layout concept: a calm, wide editorial column for words; the product itself, drawn as live-looking screens,
   carries the visual weight. Ledger green for trust, amber reserved for what waits on a person. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f5f7f5;
  --surface: #ffffff;
  --sunk: #edf1ee;
  --ink: #101b16;
  --muted: #56655d;
  --line: #d9e1dc;
  --green: #1c5b45;
  --green-ink: #ffffff;
  --green-soft: #e1eee7;
  --amber: #b97d0c;
  --amber-soft: #fbf0d9;
  --red: #b4432f;
  --red-soft: #f8e5e0;
  --slate: #7a8a92;
  --band: #10241c;
  --band-ink: #e8f1ec;
  --band-muted: #9fb7aa;
  --shadow: 0 1px 2px rgb(16 27 22 / .06), 0 12px 32px -12px rgb(16 27 22 / .18);
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  --radius: 10px;
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1310; --surface: #131d19; --sunk: #0f1814; --ink: #e5eee9; --muted: #95a59c; --line: #24332c;
    --green: #5cc199; --green-ink: #07130e; --green-soft: #16302a; --amber: #e5b04a; --amber-soft: #33270f;
    --red: #e88a75; --red-soft: #3a1d17; --slate: #8a9aa2; --band: #081410; --band-ink: #e5eee9; --band-muted: #8fa89b;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -16px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1310; --surface: #131d19; --sunk: #0f1814; --ink: #e5eee9; --muted: #95a59c; --line: #24332c;
  --green: #5cc199; --green-ink: #07130e; --green-soft: #16302a; --amber: #e5b04a; --amber-soft: #33270f;
  --red: #e88a75; --red-soft: #3a1d17; --slate: #8a9aa2; --band: #081410; --band-ink: #e5eee9; --band-muted: #8fa89b;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -16px rgb(0 0 0 / .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--green); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.measure { max-width: 40rem; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.eyebrow { font: 500 .75rem/1 var(--font-data); text-transform: uppercase; letter-spacing: .12em; color: var(--green); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.5rem; }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 700 1.125rem/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: .45rem .7rem; font: inherit; font-size: .875rem; cursor: pointer; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem max(20px, env(safe-area-inset-right, 0px)) 1rem max(20px, env(safe-area-inset-left, 0px)); }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .75rem; justify-content: center; }
  .site-head.open .nav { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 8px; font: 600 .9375rem/1 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--green); }
.nav .btn-primary { color: var(--green-ink); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* markers */
.mk { display: inline-flex; align-items: center; gap: .4em; font: 500 .6875rem/1 var(--font-data); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; vertical-align: .12em; }
.mk::before { content: ""; width: .55em; height: .55em; border-radius: 50%; flex: none; }
.mk.live { color: var(--green); }
.mk.live::before { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.mk.early { color: var(--amber); }
.mk.early::before { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.mk.coming::before { border: 1.5px solid var(--slate); }
.mk-key { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: var(--step--1); color: var(--muted); }
.mk-key span.mk { margin-right: .35rem; }
.mks { display: inline-flex; flex-wrap: wrap; gap: .35rem .9rem; }

/* sections */
section { padding-block: clamp(3.5rem, 7vw, 6rem); }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 2.5rem; max-width: 46rem; }
.hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { max-width: 34rem; }
.page-hero { padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); max-width: 18ch; }
.page-hero .lede { max-width: 42rem; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; align-items: center; padding-block: 1rem; font-size: var(--step--1); color: var(--muted); }
.strip b { color: var(--ink); font-weight: 600; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.card p { color: var(--muted); }
.card .mks { margin-top: auto; padding-top: .4rem; }
.verb { font: 500 .75rem/1 var(--font-data); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 920px) { .split { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }

.prose { display: flex; flex-direction: column; gap: 1rem; max-width: 40rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); }
ul.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .85rem; }
ul.list li { padding-left: 1.4rem; position: relative; color: var(--muted); }
ul.list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: 2px; background: var(--green); }
ul.list li strong { color: var(--ink); }

/* dark band */
.band { background: var(--band); color: var(--band-ink); border-top: 0; }
.band + section { border-top: 0; }
.band .lede, .band p { color: var(--band-muted); }
.band .eyebrow { color: var(--amber); }
.band .btn-ghost { background: transparent; color: var(--band-ink); border-color: color-mix(in srgb, var(--band-ink) 30%, transparent); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.t th, table.t td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font: 500 .6875rem/1.2 var(--font-data); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--sunk); }
table.t tr:last-child td { border-bottom: 0; }
table.t td:first-child { font-weight: 600; white-space: nowrap; }
table.t td p { color: var(--muted); }
table.t .mks { flex-direction: column; gap: .45rem; }
@media (max-width: 620px) {
  table.t thead { display: none; }
  table.t, table.t tbody, table.t tr, table.t td { display: block; width: 100%; }
  table.t tr { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; }
  table.t tr:last-child { border-bottom: 0; }
  table.t td { padding: 0; border: 0; white-space: normal; }
}

/* steps (real sequence) */
.steps { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1.25rem; padding-block: 1.75rem; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-n { font: 500 .8125rem/1 var(--font-data); color: var(--green); border: 1px solid var(--line); border-radius: 50%; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; background: var(--surface); }
.step-body { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.step-body p { color: var(--muted); max-width: 44rem; }

/* offers */
.offer { padding: 2rem; gap: 1rem; }
.offer h3 { font-size: var(--step-2); }
.offer .for { color: var(--ink); font-weight: 500; }
.offer.service { background: var(--band); color: var(--band-ink); border-color: var(--band); }
.offer.service p, .offer.service li { color: var(--band-muted); }
.offer.service li strong, .offer.service .for { color: var(--band-ink); }
.offer.service .btn-ghost { background: transparent; color: var(--band-ink); border-color: color-mix(in srgb, var(--band-ink) 30%, transparent); }
.offer .actions { margin-top: auto; padding-top: .5rem; }

/* form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem; width: 100%; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .9375rem; grid-column: 1 / -1; }
.check input { margin-top: .3rem; accent-color: var(--green); }
.form .note { grid-column: 1 / -1; font-size: .875rem; color: var(--muted); }
.form .btn { justify-self: start; }
.form-done { grid-column: 1 / -1; background: var(--green-soft); color: var(--ink); border-radius: 8px; padding: 1rem 1.1rem; }
@media (max-width: 620px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: .9375rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: baseline; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.site-foot a { color: var(--muted); }
.draft-note { font: 500 .75rem/1.4 var(--font-data); color: var(--amber); letter-spacing: .04em; }

/* ---------- product screens ---------- */
.screen { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font-size: .8125rem; line-height: 1.45; min-width: 0; }
.screen-bar { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; border-bottom: 1px solid var(--line); background: var(--sunk); }
.screen-bar .dots { display: flex; gap: 5px; }
.screen-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.screen-title { font-weight: 600; font-size: .8125rem; }
.screen-bar .mk { margin-left: auto; }
.co { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-weight: 500; font-size: .75rem; }
.co::after { content: "▾"; font-size: .6rem; color: var(--muted); }
.screen-body { padding: 1rem; display: flex; flex-direction: column; gap: .85rem; }
.screen-cols { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); }
.side { border-right: 1px solid var(--line); padding: .85rem .6rem; display: flex; flex-direction: column; gap: .15rem; background: var(--sunk); }
.side span { padding: .35rem .55rem; border-radius: 6px; color: var(--muted); display: flex; justify-content: space-between; gap: .4rem; white-space: nowrap; }
.side span.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.side span em { font-style: normal; font: 500 .6875rem/1.4 var(--font-data); color: var(--amber); }
.side .grp { font: 500 .625rem/1 var(--font-data); text-transform: uppercase; letter-spacing: .1em; color: var(--slate); padding: .8rem .55rem .3rem; }
@media (max-width: 620px) { .screen-cols { grid-template-columns: minmax(0, 1fr); } .side { display: none; } }
.s-h { font-weight: 600; font-size: .875rem; display: flex; align-items: baseline; gap: .5rem; justify-content: space-between; flex-wrap: wrap; }
.s-h small { font-weight: 400; color: var(--muted); font-size: .75rem; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.kpi b { font: 500 .9375rem/1.25 var(--font-data); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi span { color: var(--muted); font-size: .6875rem; }
@media (max-width: 460px) { .kpis { grid-template-columns: minmax(0, 1fr); } }
.rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .8rem; padding: .6rem .75rem; border-top: 1px solid var(--line); align-items: center; }
.row:first-child { border-top: 0; }
.row .sub { color: var(--muted); font-size: .75rem; grid-column: 1; }
.row .amt { font: 500 .8125rem/1 var(--font-data); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.row .act { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: .35rem; align-items: center; }
.pill { display: inline-flex; align-items: center; padding: .18rem .5rem; border-radius: 999px; font: 500 .6875rem/1.3 var(--font-body); white-space: nowrap; }
.pill.hold { background: var(--amber-soft); color: var(--amber); }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.risk { background: var(--red-soft); color: var(--red); }
.pill.quiet { background: var(--sunk); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.mini-btn { font: 600 .6875rem/1 var(--font-body); padding: .4rem .6rem; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); white-space: nowrap; }
.mini-btn.go { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.agent-band { border-radius: 8px; background: var(--green-soft); padding: .65rem .75rem; display: flex; gap: .6rem; align-items: flex-start; }
.agent-dot { width: 22px; height: 22px; border-radius: 6px; background: var(--green); color: var(--green-ink); display: grid; place-items: center; font: 600 .625rem/1 var(--font-data); flex: none; }
.mono { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* bill on hold */
.bill { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: .9rem; }
.doc { border: 1px solid var(--line); border-radius: 6px; background: var(--bg); padding: .8rem; font-size: .6875rem; display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.doc .ln { height: 6px; border-radius: 3px; background: var(--line); }
.doc .hl { outline: 1.5px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
.fields { display: flex; flex-direction: column; gap: .35rem; }
.fields div { display: flex; justify-content: space-between; gap: .6rem; border-bottom: 1px dashed var(--line); padding-bottom: .3rem; }
.fields div span:first-child { color: var(--muted); }
.checks { display: flex; flex-direction: column; gap: .3rem; }
.checks div { display: flex; gap: .5rem; align-items: baseline; }
.checks .y::before { content: "✓"; color: var(--green); font-weight: 700; }
.checks .n::before { content: "!"; color: var(--amber); font-weight: 700; width: .6rem; text-align: center; }
@media (max-width: 520px) { .bill { grid-template-columns: minmax(0, 1fr); } }

/* thread and timeline */
.thread { display: flex; flex-direction: column; gap: .6rem; }
.msg { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .75rem; display: flex; flex-direction: column; gap: .3rem; max-width: 92%; }
.msg.out { align-self: flex-end; background: var(--green-soft); border-color: transparent; }
.msg .who { font-size: .6875rem; color: var(--muted); display: flex; gap: .5rem; justify-content: space-between; }
.file { display: inline-flex; gap: .4rem; align-items: center; font: 500 .6875rem/1 var(--font-data); padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); align-self: flex-start; }
.tl { display: flex; flex-direction: column; gap: 0; }
.tl div { display: grid; grid-template-columns: 4.2rem 14px minmax(0, 1fr); gap: .6rem; align-items: start; padding-bottom: .65rem; position: relative; }
.tl time { font: 400 .6875rem/1.5 var(--font-data); color: var(--muted); }
.tl i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-top: .3rem; box-shadow: 0 0 0 3px var(--green-soft); }
.tl i.a { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }

/* ageing bars */
.bars { display: flex; flex-direction: column; gap: .5rem; }
.bar { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 5.5rem; gap: .6rem; align-items: center; font-size: .75rem; }
.bar .track { height: 10px; border-radius: 5px; background: var(--sunk); overflow: hidden; }
.bar .fill { height: 100%; background: var(--green); border-radius: 5px; }
.bar .fill.w { background: var(--amber); }
.bar .fill.r { background: var(--red); }
.bar span:last-child { text-align: right; font-family: var(--font-data); font-variant-numeric: tabular-nums; }

/* module map tiles inside a screen */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .65rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.tile b { font-weight: 600; font-size: .75rem; }
.tile .n { font: 500 1.05rem/1 var(--font-data); }
.tile.off { opacity: .55; border-style: dashed; }
@media (max-width: 460px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* connector app */
.conn { display: flex; flex-direction: column; gap: .7rem; }
.conn .status { display: flex; align-items: center; gap: .6rem; padding: .7rem; border-radius: 8px; background: var(--green-soft); }
.conn .status b { color: var(--green); }

/* before chaos */
.chaos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.chaos > div { border: 1px dashed var(--line); border-radius: 8px; padding: .6rem; display: flex; flex-direction: column; gap: .35rem; font-size: .6875rem; color: var(--muted); min-width: 0; }
.chaos .tag { font: 500 .625rem/1 var(--font-data); text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.gap-line { text-align: center; font: 500 .6875rem/1 var(--font-data); color: var(--red); letter-spacing: .08em; padding: .2rem 0; }
@media (max-width: 460px) { .chaos { grid-template-columns: minmax(0, 1fr); } }

/* end-state diagram */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr) auto minmax(0, 1fr); gap: .75rem; align-items: center; }
.flow .col { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.flow .node { border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; background: var(--surface); font-size: .8125rem; }
.flow .core { border: 1.5px solid var(--green); background: var(--green-soft); border-radius: 10px; padding: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.flow .core .agents { display: flex; flex-wrap: wrap; gap: .35rem; }
.flow .core .agents span { font-size: .6875rem; padding: .2rem .45rem; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); }
.flow .arrow { color: var(--green); font: 500 1.1rem/1 var(--font-data); }
.flow .person { border-color: var(--amber); background: var(--amber-soft); }
@media (max-width: 760px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow .arrow { transform: rotate(90deg); justify-self: center; } }

.screen-cap { font-size: .8125rem; color: var(--muted); margin-top: .75rem; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.shot { display: flex; flex-direction: column; min-width: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero .screen { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both .1s; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}

/* ---------- v0.2: header actions, gate, pricing, sign-up ---------- */
.nav-cta { display: flex; gap: .6rem; align-items: center; }
.nav .btn-ghost { color: var(--ink); }
@media (max-width: 1060px) and (min-width: 921px) { .nav { gap: .9rem; } .nav a { font-size: .875rem; } }
@media (max-width: 920px) { .nav-cta { padding-top: .9rem; } .nav-cta .btn { flex: 1; justify-content: center; border-bottom: 1px solid transparent; } }

body.gated .site-head, body.gated .site-foot, body.gated::before { display: none; }
.soon { min-height: 100vh; min-height: 100dvh; display: flex; padding-block: 0; background:
  radial-gradient(60rem 30rem at 85% 10%, var(--green-soft), transparent 60%), var(--bg); }
.soon-inner { display: flex; flex-direction: column; gap: clamp(2.5rem, 7vh, 4rem); width: 100%; padding-block: 3rem; }
.soon-brand { font-size: 1.25rem; margin-bottom: auto; }
.soon-foot { margin-top: auto; }
.soon-brand .brand-mark { width: 32px; height: 32px; }
.soon-copy h1 { max-width: 14ch; }
.soon-copy .lede { max-width: 34rem; }
.soon-access { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.soon-foot { font-size: .875rem; }
.access-form { max-width: 26rem; grid-template-columns: minmax(0, 1fr); box-shadow: var(--shadow); }
.access-h { font-size: var(--step-2); margin-bottom: .4rem; }
.code-input { font-family: var(--font-data) !important; font-size: 1.35rem !important; letter-spacing: .5em; text-align: center; }

.sim { display: flex; gap: .6rem; align-items: baseline; font-size: .8125rem; color: var(--muted); }
.sim span { flex: none; font: 500 .625rem/1 var(--font-data); text-transform: uppercase; letter-spacing: .1em; color: var(--amber); background: var(--amber-soft); padding: .3rem .45rem; border-radius: 4px; }
.full { grid-column: 1 / -1; }

section.tight-top { padding-top: 0; border-top: 0; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
@media (max-width: 920px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 34rem; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.plan-head { display: flex; flex-direction: column; gap: .5rem; }
.plan-head h2 { font-size: var(--step-3); }
.plan-head p { color: var(--muted); }
.plan-price { font: 500 .8125rem/1.3 var(--font-data); color: var(--muted); border-block: 1px solid var(--line); padding-block: .8rem; }
.plan .list { flex: 1; }
.plan .btn { justify-content: center; }
.plan.featured { border: 2px solid var(--green); box-shadow: var(--shadow); position: relative; }
.plan.featured::before { content: "Most teams start here"; position: absolute; top: -.75rem; left: 1.5rem; background: var(--green); color: var(--green-ink); font: 500 .6875rem/1 var(--font-data); letter-spacing: .06em; padding: .35rem .6rem; border-radius: 999px; }
table.compare td:not(:first-child) { color: var(--muted); }
table.compare td:first-child { white-space: normal; }
table.compare td:first-child .mk { margin-left: .35rem; }
table.compare tr.grp td { background: var(--sunk); font: 500 .6875rem/1 var(--font-data); text-transform: uppercase; letter-spacing: .1em; color: var(--green); padding-block: .7rem; }
@media (max-width: 620px) {
  table.compare tr.grp { padding-block: .6rem; background: var(--sunk); }
  table.compare td:not(:first-child)::before { font: 500 .625rem/1 var(--font-data); text-transform: uppercase; letter-spacing: .08em; color: var(--slate); display: inline-block; width: 6.5rem; }
  table.compare td:nth-child(2)::before { content: "Essentials"; }
  table.compare td:nth-child(3)::before { content: "Growth"; }
  table.compare td:nth-child(4)::before { content: "Enterprise"; }
  table.compare tr.grp td::before { content: none; }
}

.signup-sec { padding-block: clamp(2rem, 5vw, 4rem); }
.signup { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .signup { grid-template-columns: minmax(0, 1fr); } }
.signup-side { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5.5rem); }
@media (max-width: 860px) { .signup-side { position: static; } .progress { display: none; } }
.plan-pick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.plan-pick h2 { font-size: var(--step-2); }
.plan-pick a { font-size: .875rem; }
.progress { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; counter-reset: p; }
.progress li { counter-increment: p; display: flex; gap: .7rem; align-items: center; padding: .45rem 0; color: var(--muted); font-size: .9375rem; }
.progress li::before { content: counter(p); width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 500 .75rem/1 var(--font-data); background: var(--surface); flex: none; }
.progress li.now { color: var(--ink); font-weight: 600; }
.progress li.now::before { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.progress li.done::before { content: "✓"; background: var(--green); border-color: var(--green); color: var(--green-ink); }
.signup-main { min-width: 0; max-width: 40rem; }
.wiz { display: flex; flex-direction: column; gap: 1.5rem; }
.wiz[hidden] { display: none; }
.wiz-head { display: flex; flex-direction: column; gap: .5rem; }
.wiz-head h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.choices { border: 0; padding: 0; margin: 0; gap: .55rem; }
.choices legend { font-size: .875rem; font-weight: 500; margin-bottom: .6rem; padding: 0; }
.hint { background: var(--amber-soft); border-radius: 8px; padding: .8rem 1rem; font-size: .9375rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; cursor: pointer; }
.summary { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; }
.summary > div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.summary > div:first-child { border-top: 0; }
.summary span { color: var(--muted); }
.summary b { font-weight: 600; text-align: right; }
label.inline { font-weight: 400; margin-left: .6rem; display: inline-flex; gap: .35rem; align-items: center; }
label.inline input { accent-color: var(--green); }
.card-mock { border: 1px dashed var(--line); border-radius: 8px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .5rem; background: var(--sunk); }
.card-mock-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
ol.setup { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-reset: s; }
ol.setup li { counter-increment: s; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .3rem 1rem; padding: 1.1rem 1.25rem; border-top: 1px solid var(--line); align-items: start; }
ol.setup li:first-child { border-top: 0; }
ol.setup li::before { content: counter(s); grid-row: 1 / span 3; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 500 .75rem/1 var(--font-data); color: var(--muted); }
ol.setup li.done::before { content: "✓"; background: var(--green); border-color: var(--green); color: var(--green-ink); }
ol.setup li.done b { color: var(--muted); }
ol.setup li > * { grid-column: 2; }
ol.setup li .btn { justify-self: start; margin-top: .5rem; }
.choices .check input { width: auto; flex: none; }
.choices .check { font-weight: 400; }
ol.setup li b .mk, .wiz-head .mk { margin-left: .45rem; }
.custom-plan { margin-top: 1.25rem; display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px dashed var(--line); border-radius: 14px; padding: 1.4rem 1.75rem; background: var(--surface); }
.custom-plan > div { display: flex; flex-direction: column; gap: .35rem; min-width: 0; flex: 1 1 22rem; }
.custom-plan p { color: var(--muted); }
