/* Airlok — professional, simple, serious. White page, neutral UI greys, one green for proven. */
:root {
  --bg: #ffffff;
  --bg-2: #f7f7f8;
  --bg-3: #f0f0f2;
  --line: #e6e7ea;
  --line-2: #d4d6db;
  --text: #0f1115;
  --text-2: #4b5160;
  --text-3: #80869a;
  --green: #0f7a5a;
  --green-bg: #e8f4ef;
  --red: #c2362c;
  --red-bg: #fbecea;
  --amber: #a86500;
  --amber-bg: #fdf3df;
  --blue: #2457d6;
  --blue-bg: #e9effc;
  --shadow: 0 1px 2px rgba(15, 17, 21, 0.04), 0 8px 24px -12px rgba(15, 17, 21, 0.12);
  --shadow-lg: 0 1px 2px rgba(15, 17, 21, 0.04), 0 30px 80px -30px rgba(15, 17, 21, 0.25);
  --nav-h: 60px;
  --col: 1120px;
  --wide: 1280px;
  --r: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.55; font-feature-settings: "cv11", "ss01"; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 16ch; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -0.028em; max-width: 24ch; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.012em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--col), 100% - 32px); margin-inline: auto; }
.wrap-wide { width: min(var(--wide), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); color: var(--text); padding: 8px 12px; z-index: 20; border-radius: 8px; }
.skip:focus { left: 16px; }
.sub { margin-top: 16px; color: var(--text-2); font-size: 1.125rem; line-height: 1.5; max-width: 60ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; background: var(--text); color: #fff; font: inherit; font-size: 0.9375rem; font-weight: 500; text-decoration: none; border: 0; border-radius: 10px; cursor: pointer; transition: background 0.15s var(--ease); }
.btn:hover { background: #000; }
.btn-big { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-small { min-height: 34px; padding: 0 14px; font-size: 0.875rem; }
.btn-ghost { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link { font-weight: 500; text-decoration: none; color: var(--text-2); transition: color 0.15s var(--ease); }
.link:hover { color: var(--text); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }
.mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; text-decoration: none; }
.mark svg { width: 22px; height: 22px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mark .mark-box, .app-brand .mark-box { fill: var(--text); }
.mark .mark-check, .app-brand .mark-check { stroke: #fff; stroke-width: 2.4; }
nav { display: flex; align-items: center; gap: 28px; font-size: 0.875rem; font-weight: 500; }
nav a:not(.btn) { text-decoration: none; color: var(--text-2); transition: color 0.15s var(--ease); }
nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 900px) { nav a:not(.btn) { display: none; } }

/* Section rhythm */
.read, .decline, .output, .how, .pricing, .security, .demo { padding-block: clamp(72px, 8vw, 120px); }

/* Hero */
.hero { padding-top: clamp(56px, 7vw, 104px); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; }
.lede { color: var(--text-2); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; max-width: 42ch; }
.hero-actions { grid-column: 1 / -1; margin-top: 10px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* The console */
.app { margin-top: clamp(44px, 5vw, 72px); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 0.8125rem; color: var(--text); }
.app-bar { display: flex; align-items: center; gap: 14px; padding: 9px 16px; border-bottom: 1px solid var(--line); color: var(--text-3); background: var(--bg); }
.app-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; padding-right: 14px; border-right: 1px solid var(--line); }
.app-brand svg { width: 16px; height: 16px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.app-crumb { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.app-crumb i { font-style: normal; color: var(--line-2); }
.app-crumb b { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.app-right { margin-left: auto; white-space: nowrap; }
.avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); color: var(--text-2); font-size: 0.625rem; font-weight: 600; flex: none; }
.stage { background: linear-gradient(var(--bg) 0 clamp(160px, 16vw, 220px), var(--bg-2) clamp(160px, 16vw, 220px)); padding-bottom: 8px; }
.app-body { display: grid; grid-template-columns: 248px minmax(0, 1fr) 336px; min-height: 620px; }

.queue { border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--bg); }
.q-head, .q-foot { display: flex; justify-content: space-between; padding: 12px 16px; color: var(--text-3); font-size: 0.75rem; }
.q-head { border-bottom: 1px solid var(--line); }
.q-foot { margin-top: auto; border-top: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.q-foot b { color: var(--text); font-weight: 600; }
.queue ul { list-style: none; margin: 0; padding: 6px 0; }
.q-row { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; padding: 10px 16px; border-left: 2px solid transparent; }
.q-row.is-open { background: var(--bg-2); border-left-color: var(--text); }
.q-name { font-weight: 500; }
.q-sub { grid-row: 2; color: var(--text-3); font-size: 0.75rem; }
.q-pill { grid-row: 1 / span 2; align-self: center; font-size: 0.6875rem; font-weight: 500; padding: 3px 8px; border-radius: 6px; background: var(--bg-3); color: var(--text-2); white-space: nowrap; }
.q-pill.is-ok { color: var(--green); background: var(--green-bg); }
.q-pill.is-bad { color: var(--red); background: var(--red-bg); }
.q-pill.is-warn { color: var(--amber); background: var(--amber-bg); }
.q-pill-flip { position: relative; overflow: hidden; }
.q-pill-flip .pill-b { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); background: var(--green-bg); opacity: 0; transition: opacity 0.25s var(--ease); }
.js .app.routed .q-pill-flip .pill-b { opacity: 1; }

.doc { display: flex; flex-direction: column; background: var(--bg-3); min-width: 0; }
.doc-tabs { display: flex; gap: 20px; padding: 10px 20px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 0.75rem; background: var(--bg); }
.doc-tabs .is-on { color: var(--text); font-weight: 500; box-shadow: inset 0 -2px 0 var(--text); padding-bottom: 10px; margin-bottom: -10px; }
.pageframe { flex: 1; display: grid; place-items: start center; padding: 24px 24px 0; overflow: hidden; min-width: 0; }
.page {
  position: relative; width: min(600px, 100%); background: #fff; color: var(--text); border: 1px solid var(--line); border-bottom: 0; border-radius: 4px 4px 0 0;
  box-shadow: 0 1px 2px rgba(15, 17, 21, 0.06); padding: 28px 30px 0; font-size: 0.75rem; line-height: 1.4; overflow: hidden; max-height: 100%;
}
.page-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 16px; }
.bank { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.875rem; letter-spacing: -0.01em; color: #24324a; }
.bank i { width: 18px; height: 18px; border-radius: 4px; background: #24324a; }
.page-meta { text-align: right; color: var(--text-3); }
.page-acct { font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--text); }
.page-acct b { letter-spacing: 0.04em; }
.page-cols, .prow { display: grid; grid-template-columns: 3.6em minmax(0, 1fr) 6.5em 6.5em; gap: 1.2em; white-space: nowrap; }
.prow span:nth-child(2), .page-cols span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.page-cols { padding: 8px 0 6px; color: var(--text-3); font-size: 0.6875rem; border-bottom: 1px solid var(--line); }
.page-cols span:nth-child(n+3), .prow em { text-align: right; }
.prow { position: relative; padding: 0.46em 0; border-bottom: 1px solid var(--line); }
.prow span:first-child { color: var(--text-3); }
.prow em { font-style: normal; }
.prow em:last-child { font-weight: 500; }
.page-more { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(240, 240, 242, 0), var(--bg-3)); pointer-events: none; }
.reader { position: absolute; left: 0; right: 0; height: 1.45em; top: 0; background: var(--green-bg); border-block: 1px solid var(--green); opacity: 0; pointer-events: none; }
.doc-foot { display: flex; gap: 18px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.75rem; background: var(--bg); }
.doc-tag { display: inline-flex; align-items: center; gap: 6px; }
.doc-tag::before { content: ""; width: 9px; height: 9px; border-radius: 2px; }
.doc-tag-xfer::before { background: var(--blue); }
.doc-tag-mca::before { background: var(--red); }

.panel { border-left: 1px solid var(--line); padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.p-head { display: flex; justify-content: space-between; align-items: center; color: var(--text-3); font-size: 0.75rem; }
.p-status { position: relative; font-weight: 500; }
.p-status .st-b { position: absolute; right: 0; top: 0; color: var(--green); opacity: 0; transition: opacity 0.25s var(--ease); }
.js .app.proven .p-status .st-a { opacity: 0; }
.js .app.proven .p-status .st-b { opacity: 1; }
.ledger { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; font-weight: 400; padding: 7px 0; color: var(--text-2); }
.ledger th small { color: var(--text-3); margin-left: 6px; font-size: 0.6875rem; }
.ledger td { text-align: right; padding: 7px 0; font-weight: 500; white-space: nowrap; }
.ledger tr.sum th, .ledger tr.sum td { font-weight: 600; font-size: 0.9375rem; color: var(--text); padding-top: 10px; background: linear-gradient(var(--text), var(--text)) top left / 100% 1px no-repeat; }
.ledger tr.printed th, .ledger tr.printed td { color: var(--text-3); font-weight: 400; padding-top: 2px; }
.verdict { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--green); background: var(--green-bg); border-radius: 8px; font-weight: 600; font-size: 0.8125rem; }
.check { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.m { text-align: center; font-size: 0.6875rem; font-weight: 500; padding: 5px 0; border-radius: 4px; background: var(--bg-3); color: var(--text-3); }
.m.is-done { color: var(--green); background: var(--green-bg); }
.js .app.proven .m-now { color: var(--green); background: var(--green-bg); }
.scrub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.scrub dt { color: var(--text-3); font-size: 0.6875rem; }
.scrub dd { margin: 2px 0 0; font-weight: 600; font-size: 0.875rem; }
.pos { border-top: 1px solid var(--line); padding-top: 10px; }
.pos-h, .rules-mini::before { font-size: 0.6875rem; color: var(--text-3); margin-bottom: 4px; }
.pos-r { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 5px 0; font-size: 0.75rem; }
.pos-r span:nth-child(2) { color: var(--text-3); }
.pos-r b { font-weight: 600; }
.rules-mini { border-top: 1px solid var(--line); padding-top: 10px; }
.rules-mini::before { content: "Rules"; display: block; }
.rm { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 0.75rem; color: var(--text-2); }
.rm i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; }
.rm i::after { content: ""; position: absolute; left: 3px; top: 4.5px; width: 6px; height: 3px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg); opacity: 0; }
.route { margin-top: auto; padding: 10px 12px; border-radius: 8px; background: var(--bg-2); font-weight: 500; font-size: 0.8125rem; position: relative; min-height: 40px; display: grid; align-items: center; color: var(--text-2); }
.route-b { position: absolute; inset: 0; padding: 10px 12px; display: grid; align-items: center; color: var(--green); background: var(--green-bg); border-radius: 8px; opacity: 0; transition: opacity 0.25s var(--ease); font-weight: 600; }
.app-cap { margin-top: 20px; text-align: center; color: var(--text-3); font-size: 0.875rem; }

/* Console behaviour: the page is read, the ledger posts, the month proves, rules pass, the deal routes. */
.js .app.reading .reader { animation: readdown 2.2s linear forwards; }
@keyframes readdown { 0% { top: 27%; opacity: 1; } 90% { opacity: 1; } 100% { top: 92%; opacity: 0; } }
.js .app .prow em:last-child { transition: color 0.2s var(--ease); }
.js .app.reading .prow em:last-child { animation: markok 0.2s var(--ease) forwards; animation-delay: calc(0.35s + var(--i) * 0.12s); }
@keyframes markok { to { color: var(--green); } }
.js .app.reading .prow.is-mca { animation: tint 0.2s var(--ease) forwards; animation-delay: calc(0.35s + var(--i) * 0.12s); }
.js .app.reading .prow.is-xfer { animation: tintx 0.2s var(--ease) forwards; animation-delay: calc(0.35s + var(--i) * 0.12s); }
@keyframes tint { to { background: var(--red-bg); } }
@keyframes tintx { to { background: var(--blue-bg); } }
.js .app tr.post td { opacity: 0; transition: opacity 0.35s var(--ease); transition-delay: calc(var(--i) * 0.12s); }
.js .app.posted tr.post td { opacity: 1; }
.js .app tr.sum th, .js .app tr.sum td { background-size: 0 1px; transition: background-size 0.4s var(--ease); }
.js .app.ruled tr.sum th, .js .app.ruled tr.sum td { background-size: 100% 1px; }
.js .app tr.sum td { opacity: 0; transition: opacity 0.3s var(--ease), background-size 0.4s var(--ease); }
.js .app.tallied tr.sum td { opacity: 1; }
.js .app tr.printed td { opacity: 0; transition: opacity 0.3s var(--ease); }
.js .app.printed tr.printed td { opacity: 1; }
.js .app .verdict { opacity: 0; transition: opacity 0.3s var(--ease); }
.js .app.proven .verdict { opacity: 1; }
.js .app .scrub, .js .app .pos-r { opacity: 0; transition: opacity 0.4s var(--ease); }
.js .app.scrubbed .scrub { opacity: 1; }
.js .app.scrubbed .pos-r { opacity: 1; transition-delay: calc(0.15s + var(--i) * 0.08s); }
.js .app.checked .rm i { animation: tick 0.2s var(--ease) forwards; animation-delay: calc(var(--i) * 0.12s); }
.js .app.checked .rm i::after { animation: tickmark 0.15s var(--ease) forwards; animation-delay: calc(0.1s + var(--i) * 0.12s); }
@keyframes tick { to { background: var(--green); border-color: var(--green); } }
@keyframes tickmark { to { opacity: 1; } }
.js .app.routed .route-b { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .app *, .js .app *::after { animation: none !important; transition: none !important; }
  .js .app .reader { display: none; }
  .js .app tr.post td, .js .app tr.sum td, .js .app tr.printed td, .js .app .verdict, .js .app .scrub, .js .app .pos-r, .js .app .route-b, .js .app .q-pill-flip .pill-b, .js .app .p-status .st-b { opacity: 1 !important; }
  .js .app .p-status .st-a { opacity: 0; }
  .js .app tr.sum th, .js .app tr.sum td { background-size: 100% 1px !important; }
  .js .app .rm i { background: var(--green); border-color: var(--green); }
  .js .app .rm i::after { opacity: 1; }
  .js .app .m-now { color: var(--green); background: var(--green-bg); }
  .js .app .prow em:last-child { color: var(--green); }
}

/* Facts */
.facts { padding-block: clamp(56px, 6vw, 88px); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 48px; }
.facts b { display: block; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.035em; font-weight: 600; }
.facts span { display: block; margin-top: 12px; color: var(--text-2); line-height: 1.5; max-width: 32ch; font-size: 1rem; }

/* Reads the page */
.read-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px 72px; align-items: center; }
.read-copy > p { margin-top: 18px; font-size: 1.0625rem; color: var(--text-2); max-width: 50ch; }
.read-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; color: var(--text-2); max-width: 50ch; }
.read-list b { color: var(--text); font-weight: 600; }
.zoom-page { background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; font-size: clamp(0.8125rem, 1vw, 0.9375rem); box-shadow: var(--shadow-lg); }
.zrow { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) 6.4em 6.4em; gap: 1em; align-items: center; padding: 0.6em 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.zrow:last-child { border-bottom: 0; }
.zrow span:first-child { color: var(--text-3); }
.zrow span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.zrow em { font-style: normal; text-align: right; }
.zrow-h { color: var(--text-3); font-size: 0.78em; }
.zrow-h span:nth-child(n+3) { text-align: right; }
.zrow .ok { color: var(--green); font-weight: 600; }
.tag-mca, .tag-xfer { display: inline-block; padding: 1px 7px; border-radius: 5px; }
.tag-mca { background: var(--red-bg); color: var(--red); }
.tag-xfer { background: var(--blue-bg); color: var(--blue); }
.zoom-notes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.zn { font-size: 0.8125rem; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 8px; }
.zn::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.zn-1::before { background: var(--green); }
.zn-2::before { background: var(--red); }
.zn-3::before { background: var(--blue); }

/* Auto-decline */
.decline { background: var(--bg-2); border-block: 1px solid var(--line); }
.funnel { margin-top: 48px; display: grid; grid-template-columns: 1fr 1.1fr 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.f-col { padding: 20px 24px 24px; }
.f-col + .f-col { border-left: 1px solid var(--line); }
.f-rules { background: var(--bg-2); }
.f-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--text-2); font-size: 0.875rem; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.f-h b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.f-h-bad b { color: var(--red); }
.f-h-ok b { color: var(--green); }
.f-h-warn b { color: var(--amber); }
.f-out .f-h + .f-list { margin-bottom: 22px; }
.f-list { list-style: none; margin: 0; padding: 0; }
.f-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.f-list em { font-style: normal; color: var(--text-3); white-space: nowrap; }
.f-rulelist em { color: var(--text); font-weight: 600; }
.f-bad em { color: var(--red); }
.f-ok em { color: var(--green); }
.f-warn em { color: var(--amber); }
.f-note { margin-top: 16px; color: var(--text-2); font-size: 0.875rem; line-height: 1.5; }

/* Into your CRM */
.card { margin-top: 44px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card-head strong { display: block; font-weight: 600; font-size: 1.0625rem; }
.card-head span:not(.pill) { color: var(--text-2); font-size: 0.875rem; }
.pill { color: var(--green); background: var(--green-bg); font-weight: 500; font-size: 0.8125rem; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.analysis { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 720px; }
.analysis th, .analysis td { padding: 11px 14px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.analysis th:first-child, .analysis td:first-child { text-align: left; padding-left: 24px; }
.analysis th:last-child, .analysis td:last-child { padding-right: 24px; }
.analysis thead th { color: var(--text-3); font-weight: 500; font-size: 0.8125rem; background: var(--bg-2); }
.analysis tbody th { font-weight: 500; }
.analysis td.ok { color: var(--green); font-weight: 500; }
.analysis tfoot th, .analysis tfoot td { font-weight: 600; border-bottom: 0; background: var(--bg-2); }
.positions { padding: 18px 24px 22px; border-top: 1px solid var(--line); }
.positions h3 { font-size: 0.875rem; color: var(--text-2); font-weight: 500; }
.positions ul { list-style: none; margin: 8px 0 0; padding: 0; }
.positions li { display: grid; grid-template-columns: minmax(140px, 1.2fr) 0.6fr 0.7fr 1.6fr; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.positions li:first-child { border-top: 0; }
.funder, .amt { font-weight: 500; }
.cad, .first { color: var(--text-3); }
.pos-sum { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 0.9375rem; color: var(--text-2); }
.pos-sum b { color: var(--text); font-weight: 600; }

/* How */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.steps li { padding: 24px; display: grid; gap: 10px; align-content: start; }
.steps li + li { border-left: 1px solid var(--line); }
.steps .n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-3); font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.steps p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }

/* Pricing */
.pricing { background: var(--bg-2); border-block: 1px solid var(--line); }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.offer { display: grid; align-content: start; padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: var(--shadow); }
.offer-run { border-color: var(--text); }
.offer h3 { font-weight: 500; font-size: 0.9375rem; color: var(--text-2); }
.price { margin-top: 10px; font-size: clamp(1.875rem, 3.2vw, 2.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .unit { color: var(--text-2); font-size: 0.5em; font-weight: 500; letter-spacing: -0.01em; }
.rows { list-style: none; margin: 26px 0 28px; padding: 0; }
.rows li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--text-2); line-height: 1.5; font-size: 0.9375rem; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.offer .btn { justify-self: start; }
.plan-notes { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--text-2); max-width: 60ch; font-size: 0.9375rem; }

/* Security */
.sec-grid, .demo-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 80px; align-items: start; }
.sec-list { list-style: none; margin: 0; padding: 0; }
.sec-list li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--text-2); line-height: 1.55; max-width: 60ch; font-size: 1rem; }
.sec-list li:last-child { border-bottom: 1px solid var(--line); }
.sec-list strong { display: block; color: var(--text); font-weight: 600; font-size: 1.0625rem; margin-bottom: 2px; }

/* Demo */
.demo { background: var(--bg-2); border-top: 1px solid var(--line); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--bg); padding: 28px; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
label { font-size: 0.875rem; font-weight: 500; }
.opt { color: var(--text-3); font-weight: 400; }
input, select, textarea { font: inherit; font-size: 0.9375rem; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; min-height: 42px; width: 100%; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
textarea { padding: 10px 12px; resize: vertical; min-height: 88px; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
input:hover, select:hover, textarea:hover { border-color: var(--text-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--text); box-shadow: 0 0 0 3px rgba(15, 17, 21, 0.08); }
[aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-size: 0.8125rem; min-height: 1.3em; line-height: 1.3; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 2px; }
.form-status { font-weight: 500; font-size: 0.9rem; }
.form-status.ok { color: var(--green); }
.form-status.bad { color: var(--red); }

/* Footer */
.foot { padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.875rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 1100px) {
  .app-body { grid-template-columns: 220px minmax(0, 1fr); }
  .panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
  .route { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero-copy, .read-grid, .sec-grid, .demo-grid { grid-template-columns: 1fr; gap: 24px; }
  .funnel { grid-template-columns: 1fr; }
  .f-col + .f-col { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .queue { display: none; }
  .panel { grid-template-columns: 1fr; }
  .pageframe { padding: 16px 16px 0; }
  .page { font-size: 0.625rem; padding: 18px 16px 0; width: 100%; }
  .page-cols, .prow { grid-template-columns: 3.2em minmax(0, 1fr) 5.4em 5.4em; gap: 0.8em; }
  .app-right, .app-crumb { display: none; }
  .app-brand { border-right: 0; }
  .avatar { margin-left: auto; }
  .doc-tabs { gap: 14px; padding-inline: 14px; }
  .doc-foot { flex-wrap: wrap; gap: 10px; padding-inline: 14px; }
  .offers, .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  form { grid-template-columns: 1fr; padding: 20px 16px; }
  .positions li { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .positions .first { grid-column: 1 / -1; }
  .card-head { flex-wrap: wrap; padding: 16px; }
  .analysis th:first-child, .analysis td:first-child { padding-left: 16px; }
}

/* Login: company code picks the workspace */
.login-page { background: var(--bg-2); min-height: 100vh; }
.login-main { display: grid; place-items: start center; padding: clamp(48px, 12vh, 120px) 16px 64px; }
.login-card { width: min(400px, 100%); }
.login-card h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.login-lede { color: var(--text-2); margin: 0 0 20px; }
.login-form { grid-template-columns: 1fr; gap: 14px; }
.login-form input { text-transform: uppercase; letter-spacing: 0.04em; }
.login-form .btn { width: 100%; }
.login-form .btn:disabled { opacity: 0.6; cursor: progress; }
.login-form .form-status:empty { display: none; }
.login-foot { color: var(--text-2); font-size: 0.9rem; margin-top: 18px; text-align: center; }
.login-foot a { color: var(--text); font-weight: 500; }
