/* Aimpoint marketing site. Tokens mirror the app's "Calm Ledger" (app DESIGN.md). */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --brand: #2f6fed;
  --sel-wash: #e8effd;
  --sel-ink: #1d5fd6;
  --ink: #171717;
  --ink-inv: #fafafa;
  --paper: #ffffff;
  --side: #f7f7f5;
  --stone: #f3f3f1;
  --hover: #f1f1ef;
  --line: #ececea;
  --stroke: #e2e2df;
  --muted: #5c5c5c;
  --faint: #737373;
  --live: #fff6d6;
  --live-line: #f0d98a;
  --issue: #e5484d;
  --feature: #18794e;
  --task: #8b8d98;
  /* section tints from the product palette, light only */
  --tint-blue: #f4f7fe;
  --code-bg: #0f0f0f;
  --code-ink: #ededed;
  --code-dim: #8a8a8a;
  --code-str: #9dbdff;
  --shadow-win: 0 1px 2px rgba(0,0,0,.04), 0 24px 48px -16px rgba(23,23,23,.16);
  --radius-row: 9px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
  --page: min(1240px, 100% - 2 * var(--gutter));
  --gutter: clamp(20px, 4vw, 64px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3b7cff;
    --sel-wash: #14233f;
    --sel-ink: #9dbdff;
    --ink: #ededed;
    --ink-inv: #0a0a0a;
    --paper: #0a0a0a;
    --side: #111111;
    --stone: #1a1a1a;
    --hover: #171717;
    --line: #1f1f1f;
    --stroke: #2a2a2a;
    --muted: #a1a1a1;
    --faint: #8a8a8a;
    --live: #2a2310;
    --live-line: #5c4a14;
    --issue: #ff6166;
    --feature: #3dd68c;
    --tint-blue: #0c1220;
    --code-bg: #141414;
    --shadow-win: 0 1px 2px rgba(0,0,0,.4), 0 24px 48px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--sel-wash); color: var(--sel-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-color: var(--stroke) transparent; scrollbar-width: thin; }
.mono, code, kbd, pre { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: var(--page); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--ink-inv); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s var(--ease-out); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--ink-inv); }
.btn-primary:hover { background: color-mix(in oklab, var(--ink) 86%, var(--paper)); }
.btn-outline { background: var(--paper); border-color: var(--stroke); }
.btn-outline:hover { background: var(--hover); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.btn svg { width: 16px; height: 16px; }
.kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid var(--stroke); border-radius: 4px; font: 500 11px/1 var(--mono); color: var(--faint); background: var(--paper); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--side) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; text-decoration: none; margin-right: auto; }
.brand svg { width: 26px; height: 26px; }
.mark-bg { fill: var(--ink); }
.mark-line { fill: none; stroke: var(--paper); }
.mark-dots { fill: var(--paper); stroke: none; }
.top nav { display: flex; gap: 26px; font-size: 14.5px; color: var(--muted); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top .gh { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--muted); text-decoration: none; }
.top .gh:hover { color: var(--ink); }
.top .gh svg { width: 17px; height: 17px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--side); overflow: hidden; padding: clamp(40px, 7vh, 88px) 0 0; isolation: isolate; }
.hero .tray { display: none; }
.hero::before { /* ledger rows: the list's own 40px + 4px rhythm, faint, behind the hero only */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 43px, color-mix(in oklab, var(--line) 70%, transparent) 43px 44px);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); align-items: start; }
.hero-copy { grid-column: 1; }
.hero h1 { grid-column: 1 / -1; margin: 0 0 clamp(28px, 3.4vw, 44px); font-size: clamp(44px, 6.1vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 600; max-width: 15.5ch; }
.nowrap { white-space: nowrap; }
@media (min-width: 1180px) { .hero h1 { max-width: none; } }
.hero h1 .accent { color: var(--brand); }
.hero .lede { margin: 0; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--muted); max-width: 34ch; text-wrap: pretty; }
.offer { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.offer .plan-cta .arrow { margin-left: auto; }
.plan-cta { display: flex; align-items: center; gap: 16px; border-radius: 13px; padding: 14px 18px; text-decoration: none; border: 1px solid var(--stroke); background: var(--paper); transition: transform .2s var(--ease-out), box-shadow .2s, background-color .2s; }
.plan-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.3); }
.plan-cta .price { font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.plan-cta .price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: inherit; opacity: .7; }
.plan-cta .what { font-size: 13.5px; line-height: 1.4; }
.plan-cta .what b { display: block; font-weight: 600; font-size: 14.5px; }
.plan-cta .what span { color: var(--muted); }
.plan-cta.primary { background: var(--ink); color: var(--ink-inv); border-color: var(--ink); }
.plan-cta.primary .what span { color: color-mix(in oklab, var(--ink-inv) 68%, var(--ink)); }
.plan-cta .arrow { width: 18px; height: 18px; margin-left: 4px; transition: transform .2s var(--ease-out); }
.plan-cta:hover .arrow { transform: translateX(3px); }
.clone { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.clone code { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; color: var(--ink); font-size: 12.5px; }
.copy { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--muted); }
.copy:hover { color: var(--ink); background: var(--hover); }
.copy svg { width: 14px; height: 14px; }
.copy[data-done] { color: var(--feature); }

.hero-stage { position: relative; grid-column: 2; grid-row: 2; height: clamp(440px, 41vw, 590px); margin-right: calc((min(1240px, 100vw - 2 * var(--gutter)) - 100vw) / 2); }
.hero-stage .win { border-top-right-radius: 0; border-right: 0; }
.hero-note { margin: 18px 0 0; font-size: 12.5px; color: var(--faint); max-width: 330px; line-height: 1.5; }

/* ---------- app window (real HTML recreation) ---------- */
.win { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px 14px 0 0; border-bottom: 0; box-shadow: var(--shadow-win); overflow: hidden; display: grid; grid-template-columns: 216px minmax(0, 1fr); height: 100%; font-size: 14px; line-height: 1.4; }
.win-side { background: var(--side); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; min-width: 0; }
.win-side .org { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 4px 8px 12px; }
.win-side .org i { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--stroke); border-radius: 5px; font: 600 11px/1 var(--sans); font-style: normal; background: var(--paper); }
.nav-i { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 7px; color: var(--ink); white-space: nowrap; }
.nav-i svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.nav-i .n { margin-left: auto; font: 12px var(--mono); color: var(--faint); }
.nav-i .badge { margin-left: auto; min-width: 18px; height: 18px; border-radius: 9px; background: #2f6fed; color: #fff; font: 600 11px/18px var(--sans); text-align: center; padding: 0 5px; }
.nav-i.on { background: var(--sel-wash); color: var(--sel-ink); }
.nav-i.on .n { color: var(--sel-ink); }
.nav-h { font-size: 12px; color: var(--faint); padding: 14px 8px 4px; }
.pdot { width: 9px; height: 9px; border-radius: 2.5px; flex: none; }
.win-main { display: flex; flex-direction: column; min-width: 0; position: relative; }
.win-bar { height: 52px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 18px 0 22px; flex: none; }
.win-bar b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.win-bar .cnt { font: 12px var(--mono); color: var(--faint); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; font-size: 12.5px; color: var(--muted); }
.seg span { padding: 1px 9px; border-radius: 999px; }
.seg span.on { background: var(--ink); color: var(--paper); }
.win-bar .newt { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 11px; border-radius: 9px; background: var(--ink); color: var(--ink-inv); font-size: 13.5px; font-weight: 500; }
.win-bar .newt .kbd { background: color-mix(in oklab, var(--ink-inv) 14%, var(--ink)); color: color-mix(in oklab, var(--ink-inv) 70%, var(--ink)); border-color: transparent; }
.win-list { position: relative; padding: 6px 14px 40px; overflow: hidden; flex: 1; }
.grp { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px; font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.grp .n { font: 400 12px var(--mono); color: var(--faint); }
.grp svg.ring { width: 14px; height: 14px; }
.row { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--radius-row); margin-bottom: 4px; white-space: nowrap; transition: background-color .7s, box-shadow .7s; }
.row .t { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.row .meta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.row .key { font: 12px var(--mono); color: var(--faint); width: 58px; text-align: right; }
.row.live { background: var(--live); box-shadow: inset 0 0 0 1px var(--live-line); }
.row.sel { background: var(--sel-wash); }
.row.enter { animation: rowIn .6s var(--ease-out) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 5px; background: var(--stone); color: var(--muted); font-size: 12px; }
.chip svg { width: 12px; height: 12px; }
.chip .sq { width: 6px; height: 6px; border-radius: 1.5px; }
.chip.who { background: transparent; padding: 0; gap: 6px; color: var(--muted); }
.ring { width: 18px; height: 18px; flex: none; overflow: visible; }
.working .spin { transform-origin: 50% 50%; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.prio { width: 14px; height: 14px; flex: none; }
.av { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font: 600 8.5px/1 var(--sans); flex: none; }
.bot { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; flex: none; }
.bot svg { width: 15px; height: 15px; }
.bot.lg { width: 28px; height: 28px; border-radius: 8px; }
.bot.lg svg { width: 20px; height: 20px; }
.av.lg { width: 28px; height: 28px; font-size: 11px; }
.tray { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; border-top: 1px solid var(--line); background: var(--side); display: flex; align-items: center; gap: 14px; padding: 0 12px; font-size: 12.5px; color: var(--muted); }
.tray .tb { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.tray .tb .bot { width: 16px; height: 16px; border-radius: 5px; }
.tray .tb .bot svg { width: 12px; height: 12px; }
.tray .tb small { font: 12px var(--mono); color: var(--faint); }

/* ---------- sections ---------- */
section.band { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.band.tint-blue { background: var(--tint-blue); }
.band.stone { background: var(--side); }
h2.big { margin: 0; font-size: clamp(36px, 5.2vw, 72px); line-height: 1; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; max-width: 16ch; }
h2.big .accent { color: var(--brand); }
.band p.copy-l { margin: 22px 0 0; font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.55; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.25; font-weight: 600; margin: 0; }

/* Bots */
.bots-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: 56px; align-items: start; }
.pane { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-win); padding: 22px 26px 26px; min-height: 560px; }
.pane .pk { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--faint); }
.pane h3.pt { display: flex; gap: 10px; align-items: flex-start; font-size: 22px; margin: 14px 0 14px; }
.pane h3.pt .ring { width: 22px; height: 22px; margin-top: 3px; }
.working-note { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 8px 12px; font-size: 13px; color: var(--muted); }
.working-note .stop { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid var(--stroke); border-radius: 8px; font-size: 12.5px; color: var(--ink); background: var(--paper); }
.props { display: grid; grid-template-columns: 96px 1fr; row-gap: 10px; margin: 18px 0 6px; font-size: 13.5px; color: var(--muted); }
.props > span:nth-child(even) { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.thread { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: grid; grid-template-columns: 28px 1fr; gap: 10px; transition: opacity .5s, transform .5s var(--ease-out); }
.msg .bubble { background: var(--side); border-radius: 10px; padding: 8px 12px; font-size: 14px; line-height: 1.5; }
.msg .who { font-size: 12.5px; color: var(--faint); margin-bottom: 2px; }
.msg .who b { color: var(--ink); font-weight: 600; }
.msg .mention { color: var(--sel-ink); background: var(--sel-wash); border-radius: 4px; padding: 0 3px; }
.msg.pending { opacity: 0; transform: translateY(6px); }
.act-line { font-size: 12.5px; color: var(--faint); display: flex; align-items: center; gap: 8px; padding-left: 38px; transition: opacity .5s; }
.act-line.pending { opacity: 0; }
.typing::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--faint); margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

.roster { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.roster li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; }
.roster li:hover { background: color-mix(in oklab, var(--paper) 60%, transparent); }
.roster .nm { font-weight: 600; font-size: 14.5px; }
.roster .nm small { font-weight: 400; color: var(--faint); font-size: 12.5px; margin-left: 6px; }
.roster .ds { font-size: 13px; color: var(--muted); line-height: 1.4; }
.roster .be { font: 12px var(--mono); color: var(--muted); border: 1px solid var(--stroke); border-radius: 6px; padding: 2px 7px; background: var(--paper); }
.side-h { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px 12px; }
.code-wrap { position: relative; margin-top: 26px; }
.code-wrap > .copy { position: absolute; top: 10px; right: 10px; z-index: 1; background: transparent; border-color: #2a2a2a; color: #a1a1a1; }
.code-wrap > .copy:hover { background: #1f1f1f; color: #fff; }
.code { position: relative; margin: 0; padding-right: 52px !important; background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 16px 18px; font-size: 12.5px; line-height: 1.65; overflow-x: auto; }
.code .c { color: var(--code-dim); } .code .s { color: var(--code-str); }
.code .copy { position: absolute; top: 10px; right: 10px; background: transparent; border-color: #2a2a2a; color: #a1a1a1; }
.code .copy:hover { background: #1f1f1f; color: #fff; }
.fine { font-size: 13px; color: var(--faint); margin-top: 10px; line-height: 1.5; }

/* Flows */
.flows-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.flows-copy h2.big { max-width: 11ch; }
.flows-copy .ft-card { margin-top: 40px; }
.ft-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-win); padding: 16px 20px 18px; }
.ft-label { font-size: 12px; color: var(--faint); margin-bottom: 6px; }
.ft-card .row { margin: 0 -10px; }
.ft-now { display: grid; grid-template-columns: 48px 1fr; row-gap: 6px; font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.ft-now > span:nth-child(even) { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ft-now b { color: var(--ink); font-weight: 600; }
.ft-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ft-actions .btn[disabled] { opacity: .4; cursor: default; }
.ft-card .hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.textbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.textbtn:hover { color: var(--ink); }
.wait-note { margin: 28px 0 0; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.wait-note b { color: var(--ink); }
.wait-note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ink); }

.flow-panel { background: var(--side); border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
.fp-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px; }
.fp-head b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.fp-head span { font-size: 12.5px; color: var(--faint); }
.fp-head .textbtn { margin-left: auto; }
.fp-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--paper); border: 1px solid var(--line); flex: none; }
.fp-ic svg { width: 17px; height: 17px; }
.fsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fstep { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 14px 16px 14px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.fstep::before { content: ""; position: absolute; left: 28px; top: 44px; bottom: -6px; width: 2px; background: var(--stroke); z-index: 1; }
.fstep:last-child::before { display: none; }
.fstep.passed::before { background: var(--ink); }
.fnode { position: relative; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--stroke); font: 500 12px var(--mono); color: var(--faint); transition: all .35s var(--ease-out); }
.fnode svg { width: 14px; height: 14px; }
.fstep.passed .fnode { background: var(--ink); border-color: var(--ink); color: var(--ink-inv); }
.fstep.current { background: var(--sel-wash); border-color: color-mix(in oklab, var(--brand) 35%, transparent); box-shadow: 0 10px 24px -16px color-mix(in oklab, var(--brand) 60%, transparent); }
.fstep.current .fnode { border-color: var(--brand); color: var(--brand); background: var(--paper); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 16%, transparent); }
.fstep.passed .fname { color: var(--muted); }
.fhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 30px; }
.fname { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; margin-right: auto; }
.fstat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.fowner { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; height: 26px; padding: 0 9px 0 4px; border-radius: 999px; background: var(--side); border: 1px solid var(--line); }
.fowner.none { padding-left: 9px; color: var(--faint); }
.fstep.current .fowner { background: var(--paper); }
.fins { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.fnote { margin: 8px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; animation: rowIn .45s var(--ease-out) both; }
.fnote b { color: var(--ink); font-weight: 600; }
.fnote time { font: 11.5px var(--mono); color: var(--faint); white-space: nowrap; }
.fnote.live { color: var(--sel-ink); }
.yours { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 500; }

/* Any workflow */
.scen { display: flex; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.scen button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--paper); cursor: pointer; font-size: 14px; color: var(--muted); transition: background-color .15s, color .15s; }
.scen button[aria-pressed="true"] { background: var(--ink); color: var(--ink-inv); border-color: var(--ink); }
.scen-wrap { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.scen-win { height: 600px; }
.scen-win .win { border-radius: 14px; border-bottom: 1px solid var(--line); grid-template-columns: 190px minmax(0, 1fr); }
.scen-win .win-list .row.enter { animation: rowIn .4s var(--ease-out) both; }
.flow-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-win); padding: 18px 14px 14px; }
.flow-card .sc-h { padding: 0 4px; }
.mflow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mflow li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 8px 8px; border-radius: 10px; transition: background-color .35s; }
.mflow li::before { content: ""; position: absolute; left: 18px; top: 32px; bottom: -8px; width: 2px; background: var(--stroke); }
.mflow li:last-child::before { display: none; }
.mflow li.passed::before { background: var(--ink); }
.mflow .mn { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--stroke); background: var(--paper); font: 500 10.5px var(--mono); color: var(--faint); margin-top: 1px; transition: all .3s; }
.mflow .mn svg { width: 11px; height: 11px; }
.mflow li.passed .mn { background: var(--ink); border-color: var(--ink); color: var(--ink-inv); }
.mflow li.current { background: var(--sel-wash); }
.mflow li.current .mn { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 16%, transparent); }
.mflow .mt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mflow .mt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: auto; }
.mflow .mo { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; flex: none; }
.mflow .mo .bot, .mflow .mo .av { width: 18px; height: 18px; }
.mflow .ms { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); margin-top: 2px; }
.mflow .mi { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 3px; display: none; }
.mflow li.current .mi { display: block; }
.agent-note { margin: 22px 0 0; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); line-height: 1.55; max-width: 78ch; }
.agent-note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ink); }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-win); padding: 18px 18px 16px; }
.sc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.sc-h b { font-size: 15px; }
.sc-h span { font-size: 12.5px; color: var(--faint); }
.sc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sc-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; height: 38px; padding: 0 8px; border-radius: 8px; font-size: 14px; animation: rowIn .4s var(--ease-out) both; }
.sc-list li:hover { background: var(--hover); }
.sc-list .sw { width: 10px; height: 10px; border-radius: 3px; justify-self: center; }
.sc-list .stage { font: 11.5px var(--mono); color: var(--muted); background: var(--stone); border-radius: 5px; padding: 2px 6px; }
.sc-foot { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.5; }
.col { background: color-mix(in oklab, var(--paper) 70%, transparent); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 180px; }
.col .grp { margin: 0 0 6px; padding: 0 4px; height: 28px; }
.col .card { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; font-size: 13px; line-height: 1.35; margin-bottom: 6px; animation: rowIn .45s var(--ease-out) both; }
.col .card .k { font: 11.5px var(--mono); color: var(--faint); display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.forms-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 96px; align-items: start; }
.forms-copy { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 8px; }
.forms-copy h3 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -.035em; line-height: 1.05; }
.forms-copy p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.pform { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-win); }
.pform h4 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.pform .intro { margin: 8px 0 18px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.pform fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.pform legend, .pform label { font-size: 14px; font-weight: 500; display: block; margin-bottom: 6px; }
.pform label small { color: var(--faint); font-weight: 400; margin-left: 4px; }
.pform .types { display: grid; gap: 8px; }
.pform .types label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--stroke); border-radius: 10px; padding: 10px 12px; font-weight: 500; cursor: pointer; margin: 0; }
.pform .types label:has(input:checked) { border-color: var(--ink); background: var(--stone); }
.pform .types input { accent-color: var(--ink); margin-top: 4px; }
.pform .types small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin: 0; }
.pform input[type=text], .pform input[type=email], .pform textarea { width: 100%; border: 1px solid var(--stroke); border-radius: 9px; padding: 8px 11px; font: inherit; font-size: 14.5px; background: transparent; color: var(--ink); margin-bottom: 14px; }
.pform textarea { min-height: 84px; resize: vertical; }
.pform input:focus, .pform textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.pform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pform .send { width: 100%; justify-content: center; }
.pform .pby { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); margin-top: 14px; }
.pform .pby svg { width: 14px; height: 14px; }
.pform .demo-tag { font-size: 12px; color: var(--faint); margin-top: 8px; text-align: center; }
.pform .err { color: var(--issue); font-size: 13px; margin: -8px 0 12px; }
.desk { align-self: start; height: 520px; position: sticky; top: 96px; }
.desk .win { border-radius: 14px; border-bottom: 1px solid var(--line); grid-template-columns: 190px minmax(0, 1fr); }

/* Screens viewer */
.viewer { margin-top: 48px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; white-space: nowrap; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 12px; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.shot { margin: 28px 0 0; }
.shot .frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-win); background: var(--paper); }
.shot .frame.phone { max-width: 390px; margin-inline: auto; border-radius: 28px; }
.shot .frame.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 0; box-shadow: none; background: none; max-width: 820px; margin-inline: auto; gap: 24px; }
.shot .frame.duo img { border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-win); }
.shot figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 70ch; }
.shot figcaption b { color: var(--ink); font-weight: 600; }

/* Details */
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; margin-top: 56px; }
.details div { border-top: 1px solid var(--line); padding-top: 18px; }
.details h3 { font-size: 16px; display: flex; gap: 10px; align-items: center; }
.details h3 svg { width: 18px; height: 18px; color: var(--muted); }
.details p { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-win); }
.pricing > div { padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; }
.pricing > div + div { border-left: 1px solid var(--line); }
.pricing .tier { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pricing .tier .chip { height: 20px; font-size: 11.5px; }
.pricing .amt { font-size: clamp(48px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: 1; margin: 18px 0 6px; }
.pricing .amt small { font-size: 16px; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-left: 6px; }
.pricing .per { font-size: 14.5px; color: var(--muted); }
.pricing ul { list-style: none; padding: 0; margin: 26px 0 30px; display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.pricing li { display: flex; gap: 10px; align-items: flex-start; }
.pricing li svg { width: 16px; height: 16px; margin-top: 4px; flex: none; color: var(--feature); }
.pricing .go { margin-top: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.license { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 72ch; line-height: 1.55; }

/* FAQ */
.faq { margin-top: 40px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 17px; font-weight: 500; display: flex; justify-content: space-between; gap: 20px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease-out); flex: none; margin-top: 4px; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 68ch; }

/* Closing */
.close { text-align: left; }
.close .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.close .acts { display: flex; gap: 10px; flex-wrap: wrap; }
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13.5px; color: var(--faint); background: var(--side); }
footer .wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
footer .brand { font-size: 14.5px; margin-right: 0; color: var(--ink); }
footer .brand svg { width: 22px; height: 22px; }
footer nav { display: flex; gap: 22px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { grid-column: 1; grid-row: auto; margin: 44px 0 0; height: 520px; }
  .bots-grid, .flows-grid { grid-template-columns: minmax(0, 1fr); }
  .flows-copy h2.big { max-width: 16ch; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scen-wrap { grid-template-columns: minmax(0, 1fr); }
  .forms-grid { grid-template-columns: minmax(0, 1fr); }
  .forms-copy { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pform { max-width: 520px; }
  .desk { height: 480px; position: static; }
}
@media (max-width: 860px) {
  .top nav { display: none; }
  .hero-stage { height: 440px; }
  .win { grid-template-columns: minmax(0, 1fr); }
  .win-side { display: none; }
  .desk .win, .scen-win .win { grid-template-columns: minmax(0, 1fr); }
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .pricing > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .shot .frame.duo { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top .gh span { display: none; }
  .top .wrap { gap: 16px; }
  .plan-cta { width: 100%; }
  .clone code { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .scen-win { height: 480px; }
  .pane { padding: 18px; min-height: 0; }
  .props { grid-template-columns: 84px 1fr; }
  .roster li { grid-template-columns: 28px 1fr; }
  .roster .be { grid-column: 2; justify-self: start; }
  .row .key { display: none; }
  footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .working .spin { animation: none; }
}

/* App windows adapt to their own width, like the app's list does */
.win-main, .ft-card { container-type: inline-size; }
@container (max-width: 600px) { .row .meta .chip:not(.keep):not(.form) { display: none; } }
@container (max-width: 470px) { .row .meta .chip.form, .row .meta .prio { display: none; } .row .key { width: auto; } }
@container (max-width: 380px) { .row .meta .chip.keep { display: none; } }
@container (max-width: 520px) { .win-bar .seg, .win-bar .newt .kbd { display: none; } .win-bar { padding: 0 12px 0 16px; } .win-list { padding-inline: 8px; } }
@media (max-width: 600px) { .fstep { grid-template-columns: 26px minmax(0,1fr); gap: 10px; padding: 12px; } .fnode { width: 26px; height: 26px; } .fstep::before { left: 24px; top: 40px; } .fins { display: none; } .fstep.current .fins { display: block; } }
