/* Light theme only, by owner decision (7 Oct 2026). */
/* Layout: "chart room" corporate — light premium pages; one live product instrument per section; benefits first, mechanics second. */
:root {
  color-scheme: light;
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --surface-2: #EEF0F7;
  --ink: #141A2E;
  --muted: #4A5470;
  --line: #DCE0EC;
  --brand: #3F37C9;
  --brand-ink: #FFFFFF;
  --brand-soft: #E7E6FB;
  --signal: #C2410C;
  --signal-soft: #FDECE3;
  --ok: #15803D;   --ok-soft: #DCF3E4;
  --warn: #A16207; --warn-soft: #FBF0D5;
  --bad: #B91C1C;  --bad-soft: #FBE1E1;
  --crit: #7F1D1D;
  --glow: rgba(63,55,201,.14);
  --shadow: 0 1px 2px rgba(20,26,46,.06), 0 12px 32px rgba(20,26,46,.08);
  --shadow-lg: 0 2px 4px rgba(20,26,46,.05), 0 30px 70px rgba(20,26,46,.14);
  --f-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased }
img { max-width: 100% }
a { color: var(--brand) }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -0.025em }
p { margin: 0; text-wrap: pretty }
button, input, select, textarea { font: inherit; color: inherit }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px) }
.eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--signal) }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums }
.muted { color: var(--muted) }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 10px 14px; border-radius: 8px }
.skip:focus { left: 16px }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent) }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--f-display); letter-spacing: -0.02em; flex: 0 0 auto }
.nav-links { display: flex; gap: 2px }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 12px; border-radius: 8px; transition: color .2s, background-color .2s; white-space: nowrap }
.nav-links a:hover { color: var(--ink); background: var(--surface-2) }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2) }
.nav-cta { display: flex; gap: 10px; align-items: center }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg) }
.mobile-menu .wrap { display: flex; flex-direction: column; gap: 2px; padding-block: 10px 18px }
.mobile-menu a { padding: 12px 8px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 8px }
.mobile-menu a[aria-current="page"] { background: var(--surface-2) }
@media (max-width: 960px) { .nav-links, .nav-cta .btn-ghost { display: none } .menu-btn { display: inline-flex } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .2s, border-color .2s, box-shadow .2s; white-space: nowrap }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent) }
.btn-primary:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 45%, transparent) }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line) }
.btn-ghost:hover { border-color: var(--muted) }
.btn svg { transition: transform .25s }
.btn:hover svg { transform: translateX(3px) }
.link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center }
.link svg { transition: transform .25s }
.link:hover svg { transform: translateX(3px) }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap }

/* ---------- sections ---------- */
section { padding-block: clamp(64px, 9vw, 112px) }
section.tight { padding-top: 0 }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 46rem; margin-bottom: 44px }
.head.center { margin-inline: auto; text-align: center; align-items: center }
.head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; font-weight: 800 }
.head p { color: var(--muted); font-size: 1.08rem }
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 5vw, 64px); position: relative; overflow: hidden }
.page-hero::before, .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .4; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%) }
.page-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 20px; max-width: 900px; align-items: flex-start }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.05; font-weight: 800 }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 38em }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 5vw, 60px) clamp(56px, 7vw, 96px); --mx: 50%; --my: 20% }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--mx) var(--my), var(--glow), transparent 70%) }
.hero .wrap { position: relative; z-index: 1 }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; max-width: 900px; margin: 0 auto }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); text-decoration: none }
.pill b { background: var(--brand-soft); color: var(--brand); font: 600 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.02; font-weight: 800 }
.hero h1 .word { display: inline-block }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap }
.hero h1 em svg { position: absolute; left: 0; right: 0; bottom: -.1em; width: 100%; height: .28em; overflow: visible }
.hero .lede { margin-inline: auto }
.hero .cta-row { justify-content: center }

/* animated stage: inputs -> Keel -> outputs */
.stage { position: relative; margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) minmax(0, 190px); gap: clamp(28px, 5vw, 72px); align-items: center }
.flows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0 }
.flows path { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 5 }
.flows circle { fill: var(--brand) }
.flows circle.out { fill: var(--signal) }
.col { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; min-width: 0 }
.col-label { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.node { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; font-weight: 600; box-shadow: 0 1px 2px rgba(20,26,46,.04); min-width: 0 }
.node small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.3 }
.node .ico { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand) }
.node.out .ico { color: var(--signal); background: var(--signal-soft) }
.app { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0 }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); flex-wrap: wrap }
.lights { display: flex; gap: 6px }
.lights i { width: 10px; height: 10px; border-radius: 99px; background: var(--line) }
.tabs { display: flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 10px; flex-wrap: wrap }
.tabs button { border: 0; background: transparent; padding: 6px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; min-height: 32px }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20,26,46,.1) }
.sync { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--f-mono); color: var(--muted) }
.sync i { width: 7px; height: 7px; border-radius: 99px; background: var(--ok); animation: pulse 2.4s ease-in-out infinite }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent) } 50% { box-shadow: 0 0 0 6px transparent } }
.scenes { position: relative; min-height: 290px }
.scene { position: absolute; inset: 0; padding: 20px; display: flex; flex-direction: column; gap: 14px }
.scene[hidden] { display: none !important }
.scene h4 { margin: 0; font: 700 14px/1.3 var(--f-display); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.scene h4 span { font: 500 11px/1.3 var(--f-mono); color: var(--muted) }
.caption { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; min-height: 48px }
.caption b { font: 600 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 7px; border-radius: 6px; flex: 0 0 auto }
.progress-dots { margin-left: auto; display: flex; gap: 5px }
.progress-dots i { width: 18px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative }
.progress-dots i span { position: absolute; inset: 0; background: var(--brand); transform-origin: left; transform: scaleX(0) }
/* scene parts */
.mixrow { display: grid; grid-template-columns: 100px minmax(0, 1fr) 84px; gap: 12px; align-items: center; font-size: 13px }
.track { position: relative; height: 10px; background: var(--surface-2); border-radius: 99px }
.fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 99px; transform-origin: left center }
.target { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); opacity: .55 }
.note { margin-top: auto; font-size: 12.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap }
.src { font: 500 10.5px/1 var(--f-mono); color: var(--brand); background: var(--brand-soft); padding: 5px 7px; border-radius: 6px; align-self: center }
.rm { display: grid; grid-template-columns: 130px repeat(4, minmax(0, 1fr)); gap: 6px 0; font-size: 12.5px; align-items: center }
.rm .qh { font: 500 10.5px/1 var(--f-mono); color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid var(--line) }
.rm .nm { padding-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600 }
.rm .bar { height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font: 500 10.5px/1 var(--f-mono); color: var(--brand-ink); transform-origin: left center; min-width: 0; overflow: hidden }
.caprow { display: grid; grid-template-columns: 90px minmax(0, 1fr) 86px 84px; white-space: nowrap; gap: 12px; align-items: center; font-size: 13px }
.caprow .track { height: 14px }
.stat-pill { font: 600 10.5px/1 var(--f-mono); padding: 5px 7px; border-radius: 6px; text-align: center }
.stat-pill.ok { background: var(--ok-soft); color: var(--ok) } .stat-pill.warn { background: var(--warn-soft); color: var(--warn) } .stat-pill.bad { background: var(--bad-soft); color: var(--bad) }
.doc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.doc .k { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px }
.doc .k span { font-size: 11.5px; color: var(--muted) }
.doc .k b { font: 800 24px/1.1 var(--f-display); font-variant-numeric: tabular-nums }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 82px; padding: 10px 12px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px }
.chart span { flex: 1; border-radius: 4px 4px 0 0; background: var(--brand); transform-origin: bottom }
.toast { position: absolute; right: 18px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow) }
@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr }
  .flows { display: none }
  .col { flex-direction: row; flex-wrap: wrap; gap: 8px }
  .col-label { width: 100% }
  .node { padding: 8px 10px; font-size: 12.5px }
  .node small { display: none }
  .node .ico { width: 24px; height: 24px }
}
@media (max-width: 600px) {
  .scenes { min-height: 340px }
  .rm { grid-template-columns: 92px repeat(4, minmax(0, 1fr)) }
  .caprow { grid-template-columns: 70px minmax(0, 1fr) 80px }
  .caprow .stat-pill { display: none }
  .mixrow { grid-template-columns: 76px minmax(0, 1fr) 72px }
  .doc .k b { font-size: 19px }
  .sync { display: none }
}

/* ---------- benefit cards ---------- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0 }
.benefit .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center }
.benefit h3 { font-size: 19px; letter-spacing: -0.015em }
.benefit p { color: var(--muted); font-size: 15px }

/* before / after */
.ba { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden }
.ba > div { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; min-width: 0 }
.ba .before { background: var(--surface-2) }
.ba h3 { font-size: 18px; display: flex; align-items: center; gap: 10px }
.ba ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px }
.ba li { display: flex; gap: 10px; align-items: flex-start }
.ba li svg { flex: 0 0 auto; margin-top: 3px }
.ba .before li { color: var(--muted) }
.ba .before li svg { color: var(--muted) }
.ba .after li svg { color: var(--ok) }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr } }

/* ---------- how it works: pinned cards ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 5vw, 64px); align-items: start }
.flow-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px }
.flow-aside .head { margin-bottom: 0 }
.steps-nav { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); position: relative }
.steps-nav i { position: absolute; left: -2px; top: 0; width: 2px; height: 100%; background: var(--brand); transform-origin: top center; transform: scaleY(0) }
.steps-nav a { padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; display: flex; gap: 10px; align-items: baseline; transition: color .2s }
.steps-nav a span { font: 500 11px/1 var(--f-mono); color: var(--brand) }
.steps-nav a.on { color: var(--ink) }
.cards { display: flex; flex-direction: column; gap: 24px }
.fcard { position: sticky; top: calc(96px + var(--i) * 14px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 28px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; transform-origin: center top; min-height: 230px }
.tag { font: 500 12px/1 var(--f-mono); color: var(--brand); background: var(--brand-soft); padding: 6px 9px; border-radius: 999px; align-self: flex-start }
.fcard-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.fcard h3 { font-size: 22px; letter-spacing: -0.015em }
.fcard p { color: var(--muted); font-size: 15px }
.fviz, .viz { border-radius: 14px; background: var(--bg); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; min-width: 0 }
.mix { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px }
.legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px }
.legend b { font-family: var(--f-mono); font-weight: 500; color: var(--ink) }
.row { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line) }
.row em { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; color: var(--brand) }
.row em.ok { color: var(--ok) }
.gate { display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
.gate span { font: 500 11px/1 var(--f-mono); padding: 6px 8px; border-radius: 6px; background: var(--ok-soft); color: var(--ok) }
.gate span.now { background: var(--warn-soft); color: var(--warn) }
.gate span.next { background: var(--surface-2); color: var(--muted) }
.cap-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 54px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted) }
.cap-row .track { height: 12px }
.line85 { position: absolute; top: -3px; bottom: -3px; left: 85%; width: 2px; background: var(--ink); opacity: .55 }
.files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.file { aspect-ratio: .78; max-width: 100%; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 5px }
.file b { font: 600 10px/1 var(--f-mono); color: var(--brand) }
.file i { display: block; height: 4px; border-radius: 4px; background: var(--surface-2) }
.file .mini { margin-top: auto; display: flex; align-items: flex-end; gap: 3px; height: 40% }
.file .mini span { flex: 1; border-radius: 2px; background: var(--brand); transform-origin: bottom }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr }
  .flow-aside { position: static }
  .steps-nav { display: none }
  .fcard { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0 }
}

/* ---------- roles ---------- */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px }
.role { --x: 50%; --y: 0%; position: relative; isolation: isolate; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); transition: border-color .25s, box-shadow .25s; min-width: 0 }
.role p { color: var(--muted); font-size: 15px }
.role h3 { font-size: 19px }
.role .link { margin-top: auto }

/* spotlight tiles (bento + role) */
.tile { --x: 50%; --y: 0%; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: border-color .25s, box-shadow .25s; isolation: isolate }
.tile::before, .role::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--x) var(--y), var(--glow), transparent 65%) }
.tile:hover::before, .role:hover::before { opacity: 1 }
.tile:hover, .role:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow) }
.tile h3 { font-size: 20px; letter-spacing: -0.015em }
.tile p { color: var(--muted); font-size: 15px }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px }
.s4 { grid-column: span 4 } .s3 { grid-column: span 3 } .s2 { grid-column: span 2 }
@media (max-width: 900px) { .s4, .s3, .s2 { grid-column: span 6 } }
.tile .viz { margin-top: auto }

/* feature rows (product page) */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line) }
.feature:first-child { border-top: 0; padding-top: 0 }
.feature.flip > :first-child { order: 2 }
.feature-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0 }
.feature-copy h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; font-weight: 800 }
.feature-copy p { color: var(--muted) }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px }
.ticks li { display: flex; gap: 10px; align-items: flex-start }
.ticks li svg { flex: 0 0 auto; margin-top: 4px; color: var(--brand) }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0 }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 700 }
.panel-head span { font: 500 11px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em }
@media (max-width: 860px) { .feature, .feature.flip { grid-template-columns: 1fr } .feature.flip > :first-child { order: 0 } }

/* risk matrix instrument */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px }
.kpi { background: var(--surface-2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.kpi span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.kpi b { font: 700 22px/1.1 var(--f-display); font-variant-numeric: tabular-nums }
.kpi small { font: 500 10.5px/1.2 var(--f-mono); color: var(--muted) }
.inst-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px }
.matrix { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px }
.cell { aspect-ratio: 1.2; border-radius: 5px; display: flex; align-items: center; justify-content: center }
.cell.l { background: var(--ok-soft) } .cell.m { background: var(--warn-soft) } .cell.h { background: var(--bad-soft) } .cell.c { background: color-mix(in srgb, var(--bad) 28%, var(--surface)) }
.dot { width: 22px; height: 22px; border-radius: 99px; color: #fff; font: 700 10px/18px var(--f-mono); text-align: center; border: 2px solid var(--surface); cursor: pointer; padding: 0; position: relative }
.dot::after { content: ""; position: absolute; inset: -9px; border-radius: 99px }
.dot.c { background: var(--crit) } .dot.h { background: var(--bad) } .dot.m { background: var(--warn) } .dot.l { background: var(--ok) }
.dot[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--brand) }
.axis { display: flex; justify-content: space-between; font: 500 10px/1 var(--f-mono); color: var(--muted); padding-top: 6px }
.why-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg) }
.why-card strong { font-size: 13px; line-height: 1.35 }
.chips { display: flex; flex-wrap: wrap; gap: 5px }
.chip { font: 500 11px/1 var(--f-mono); padding: 5px 7px; border-radius: 6px; background: var(--surface-2); color: var(--ink) }
.chip.add { background: var(--bad-soft); color: var(--bad) }
.meta { font: 500 11px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em }
@media (max-width: 560px) { .inst-body { grid-template-columns: 1fr } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

/* chat (Ask Keel) */
.chat { display: flex; flex-direction: column; gap: 10px; font-size: 14px }
.q { align-self: flex-end; background: var(--brand); color: var(--brand-ink); padding: 9px 13px; border-radius: 14px 14px 4px 14px; max-width: 88% }
.a { background: var(--bg); border: 1px solid var(--line); padding: 12px 14px; border-radius: 14px 14px 14px 4px; display: flex; flex-direction: column; gap: 10px; max-width: 94% }
.asks { display: flex; flex-wrap: wrap; gap: 8px }
.asks span { padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px }
.numbered { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; counter-reset: n }
.numbered .benefit h3::before { counter-increment: n; content: counter(n); font: 600 12px/1 var(--f-mono); color: var(--brand); background: var(--brand-soft); border-radius: 8px; padding: 6px 8px; margin-right: 10px; vertical-align: 3px }
.proposal { display: flex; flex-direction: column; gap: 12px }
.proposal .ba2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.proposal .ba2 div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; display: flex; flex-direction: column; gap: 2px }
.proposal .ba2 span { font: 500 10.5px/1 var(--f-mono); color: var(--muted); text-transform: uppercase }

/* security */
.controls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px }
.band { background: var(--ink); color: var(--bg); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; align-items: center }
.band h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; font-weight: 800 }
.band p { color: color-mix(in srgb, var(--bg) 78%, var(--ink)) }
.band .eyebrow { color: var(--signal) }
.band .btn-ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, var(--ink)) }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: color-mix(in srgb, var(--bg) 18%, var(--ink)); border-radius: 16px; overflow: hidden }
.stat { background: var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 4px }
.stat b { font: 800 30px/1 var(--f-display); font-variant-numeric: tabular-nums }
.stat span { font-size: 13px; color: color-mix(in srgb, var(--bg) 72%, var(--ink)) }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; color: var(--muted); font-size: 14px }
.logos b { font: 600 15px/1 var(--f-display); color: var(--ink) }

/* pricing */
.price-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px }
.controls { display: flex; flex-direction: column; gap: 10px; align-items: flex-end }
.ctl-label { font-size: 13px; font-weight: 600 }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); flex-wrap: wrap }
.seg button { min-height: 40px; min-width: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; transition: color .2s, background-color .2s, box-shadow .2s }
.seg button:hover { color: var(--ink) }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20,26,46,.08), 0 2px 8px rgba(20,26,46,.06) }
.price-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); min-width: 0 }
.pcard.main { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.15fr); gap: clamp(20px, 3vw, 36px) }
.pcard .rule { background: var(--line) }
.pcol { display: flex; flex-direction: column; gap: 14px; min-width: 0 }
.badge { align-self: flex-start; font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted) }
.badge.pop { background: var(--brand); color: var(--brand-ink) }
.big { display: flex; align-items: baseline; font: 800 clamp(52px, 6vw, 68px)/1 var(--f-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums }
.big .digits { display: inline-flex; overflow: hidden; padding-block: 4px }
.big .digits span { display: inline-block }
.per { color: var(--muted); font-size: 14px; font-weight: 500 }
.total { border-radius: 14px; background: var(--bg); border: 1px solid var(--line); padding: 12px 14px; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 2px }
.total b { color: var(--ink); font: 700 20px/1.2 var(--f-display); font-variant-numeric: tabular-nums }
.feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; align-self: center }
.feat li { display: flex; gap: 10px; align-items: flex-start }
.feat li i { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin-top: 1px }
.feat li.lead { font-weight: 600 }
.feat li.lead i { background: transparent; color: var(--brand); border: 1.5px solid var(--brand) }
.ent { display: flex; flex-direction: column; gap: 14px }
.ent .feat i { background: var(--ink); color: var(--bg) }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr } }
@media (max-width: 680px) { .pcard.main { grid-template-columns: 1fr } .pcard .rule { height: 1px } .controls { align-items: flex-start } }

/* FAQ proximity accordion */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 64px); align-items: start }
.faq-wrap .head { margin-bottom: 0 }
.acc { position: relative; display: flex; flex-direction: column; gap: 2px }
.acc-pill, .acc-open { position: absolute; left: 0; right: 0; top: 0; border-radius: 14px; pointer-events: none; opacity: 0 }
.acc-pill { background: color-mix(in srgb, var(--ink) 5%, transparent) }
.acc-open { background: var(--brand-soft) }
.acc-item { position: relative; z-index: 1 }
.acc-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 16px; border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 14px; font: 600 17px/1.4 var(--f-display); color: var(--muted); transition: color .2s }
.acc-trigger:hover, .acc-trigger[aria-expanded="true"] { color: var(--ink) }
.acc-trigger svg { flex: 0 0 auto; transition: transform .35s cubic-bezier(.2,.8,.2,1) }
.acc-trigger[aria-expanded="true"] svg { transform: rotate(90deg) }
.acc-panel { overflow: hidden }
.acc-panel p { padding: 0 16px 18px; color: var(--muted); max-width: 60ch }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr } }

/* demo form */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.field.full { grid-column: 1 / -1 }
.field label { font-size: 13.5px; font-weight: 600 }
.field input, .field select, .field textarea { min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); width: 100% }
.field textarea { min-height: 100px; resize: vertical }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent }
.form-note { grid-column: 1 / -1; font-size: 13.5px; padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn) }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px }
.timeline li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px }
.timeline .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font: 600 14px/1 var(--f-mono); color: var(--brand) }
.timeline h3 { font-size: 17px; margin-bottom: 2px }
.timeline p { color: var(--muted); font-size: 15px }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr } }

/* CTA + footer */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px); position: relative; overflow: hidden }
.final h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; line-height: 1.05 }
.final .lede { text-align: center }
footer { border-top: 1px solid var(--line); padding-block: 48px 32px; color: var(--muted); font-size: 14px; margin-top: clamp(64px, 9vw, 112px) }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px }
.foot h4 { margin: 0 0 12px; font: 600 13px/1 var(--f-body); color: var(--ink) }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.foot a { color: var(--muted); text-decoration: none }
.foot a:hover { color: var(--ink) }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line) }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr } .foot > :first-child { grid-column: 1 / -1 } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } *, *::before, *::after { animation: none !important; transition: none !important } }

/* legal pages */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 2px }
.toc a { display: block; padding: 6px 8px; font-size: 14px; color: var(--muted); text-decoration: none; border-radius: 6px }
.toc a:hover { color: var(--ink); background: var(--surface-2) }
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 8px; min-width: 0 }
.prose .lsec { padding-block: 22px; border-top: 1px solid var(--line); scroll-margin-top: 90px; display: flex; flex-direction: column; gap: 12px }
.prose h2 { font-size: 1.4rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em }
.prose p, .prose li { color: var(--muted) }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px }
.prose code { font: 500 12.5px/1.4 var(--f-mono); color: var(--ink); background: var(--surface-2); padding: 2px 6px; border-radius: 5px; word-break: break-all }
.prose mark, .page-hero mark { background: var(--warn-soft); color: var(--warn); padding: 0 4px; border-radius: 4px }
.draft-note { padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn) !important; font-size: 14.5px }
.draft-note mark { background: color-mix(in srgb, var(--warn) 18%, transparent) }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface) }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top }
.tbl th { font: 600 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2) }
.tbl tr:last-child td { border-bottom: 0 }
.tbl td { color: var(--ink) }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr } .toc { position: static } }
.tbl td code { white-space: nowrap; word-break: normal }

@media (max-width: 600px) { .hero h1 em { white-space: normal } }

/* ---------- How Keel helps, Features list, Portfolio Pulse example (Nov 2026) ---------- */
.pulse-panel { margin-bottom: 16px }
.pulse { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px }
.pulse .card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.pulse .card h4 { margin: 0; font: 700 14px/1.3 var(--f-display); display: flex; justify-content: space-between; gap: 8px }
.hbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-2) }
.hbar i { display: block }
.pulse dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12.5px }
.pulse dt { color: var(--muted) } .pulse dd { margin: 0; font-family: var(--f-mono); text-align: right }
.tile .ico-s { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center }
.tile > .link { margin-top: auto }
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px }
.qgrid .role h3 { font-size: 21px; line-height: 1.2 }
.qgrid .role .ask { font: 500 12px/1.4 var(--f-mono); color: var(--signal); letter-spacing: .02em }
.who { display: flex; flex-wrap: wrap; gap: 6px }
.who span { font: 500 11.5px/1 var(--f-mono); padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted) }
.fgroup { padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); scroll-margin-top: 90px }
.fgroup:first-of-type { border-top: 0 }
.fgroup > div:first-child { display: flex; flex-direction: column; gap: 10px; align-self: start; position: sticky; top: 90px }
.fgroup h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.15; font-weight: 800 }
.fgroup > div:first-child p { color: var(--muted); font-size: 15px }
.flist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 12px }
.fitem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.fitem h3 { font-size: 15.5px; letter-spacing: -0.01em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.fitem p { color: var(--muted); font-size: 14px; line-height: 1.5 }
.fitem .new, .fitem .mod, .legend .new, .legend .mod { font: 600 10px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 5px }
.fitem .new, .legend .new { background: var(--signal-soft); color: var(--signal) }
.fitem .mod, .legend .mod { background: var(--brand-soft); color: var(--brand) }
.head p.legend { font-size: 14.5px }
.jump { display: flex; flex-wrap: wrap; gap: 8px }
.jump a { padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; text-decoration: none; color: var(--ink) }
.jump a:hover { border-color: var(--muted) }
.plain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 3vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px }
.plain h3 { font-size: 18px; margin-bottom: 10px }
.plain ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 8px }
.stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1 }
@media (max-width: 860px) { .fgroup { grid-template-columns: 1fr } .fgroup > div:first-child { position: static } }
