/* SSHKipper landing. Page tokens: dark by default, light under html.light (the theme button). Replicas of app screens live in app.css. */
:root {
  color-scheme: light;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --bg: #fbfbfa; --bg2: #f3f3f1; --card: #ffffff;
  --ink: #0f1320; --ink2: #5b6170; --ink3: #646977; --line: rgba(15, 19, 32, .1);
  --accent: #3D8BFF; --accentInk: #1f6ee8; --ring: #3D8BFF; --ok: #2fa84f;
  --accentFill: #1f6ee8;   /* a filled accent under white text: 4.7:1 (the accent itself gives 3.3) */
  --gutter: 28px;
  --lift: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(10, 20, 45, .35);
}
:root:not(.light) { color-scheme: dark; --bg: #0a0b10; --bg2: #11131a; --card: #14161e; --ink: #eceef4; --ink2: #959bab; --ink3: #868b9a;
        --line: rgba(255, 255, 255, .09); --accentInk: #78b0ff; --ring: #5a9dff;
        --lift: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 100px -40px rgba(0, 0, 0, .9); }
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; overflow-x: clip; }
.kpage { font-family: var(--sans); font-size: 17px; line-height: 1.55; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01'; }
.kpage a { color: inherit; text-decoration: none; }
.kpage :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.kpage h1, .kpage h2, .kpage h3 { text-wrap: balance; }
.kpage p { text-wrap: pretty; }
.kpage img { max-width: 100%; }
.kpage code { font: 500 .88em/1 var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.kpage .app code { padding: 0; background: none; box-shadow: none; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; line-height: inherit; font-weight: inherit; }
.k-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg) !important; padding: 8px 12px; border-radius: 8px; }
.k-skip:focus { left: 8px; }

/* ---------- Navigation ---------- */
.k-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: 60px;
  padding: 0 max(var(--gutter), calc((100vw - 1200px) / 2)); background: color-mix(in oklab, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.k-nav.stuck { border-bottom-color: var(--line); }
.k-brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 16px; letter-spacing: -.01em; }
.k-brand img { display: block; }
.k-nav nav { display: flex; gap: 2px; flex: 1; justify-content: center; font-size: 14px; }
.k-nav nav a { padding: 6px 11px; border-radius: 99px; transition: color .2s, background .2s; white-space: nowrap; }
.k-nav nav a.cur { color: var(--ink); background: color-mix(in oklab, var(--ink) 7%, transparent); }
.k-nav nav a { color: var(--ink2); }
.k-nav nav a:hover { color: var(--ink); }
/* the mark for the theme on */
.th-l, html.light .th-d { display: none !important; }
html.light .th-l { display: inline-block !important; }
/* the theme button: a plain square, its one icon set by site.js (no `all: unset` — WebKit then sizes it from its text) */
.k-theme { -webkit-appearance: none; appearance: none; box-sizing: border-box; flex: 0 0 32px; align-self: center; width: 32px; height: 32px;
  margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; font: inherit; line-height: 0; cursor: pointer;
  display: inline-grid; place-items: center; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); transition: color .2s; }
.k-theme:hover { color: var(--ink); }
.k-theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.k-theme .ms { display: block; width: 18px; height: 18px; font-size: 18px; line-height: 18px; }
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--ink); color: var(--bg) !important; font-weight: 600; font-size: 16px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease, background .15s; }
.k-btn:hover { opacity: .9; }
.k-btn.off { opacity: .45; cursor: default; pointer-events: none; }
.k-btn:active { transform: scale(.98); }
.k-btn .apple { display: block; width: 18px; height: 18px; margin-top: -3px; fill: currentColor; flex: none; }
.k-btn.sm { height: 36px; padding: 0 15px; border-radius: 10px; font-size: 14.5px; }
.k-btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
.k-btn.ghost:hover { opacity: 1; background: var(--bg2); }
.k-btn .ms { font-size: 18px; color: var(--ink2); }
.k-sub-col { display: flex; flex-direction: column; gap: 18px; }
.k-story-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.k-story-cta .k-btn .ms { color: inherit; }

/* ---------- Hero ---------- */
.k-hero { max-width: 1280px; margin: 0 auto; padding: 28px var(--gutter) 40px; text-align: center; }
.k-helm { color: var(--ink); display: flex; flex-direction: column; align-items: center; min-height: 96px; margin-bottom: 18px; }
.k-helm-static { display: block; }
.js .k-helm-static { display: none; }
.k-helm-art { position: relative; }
.k-helm pre { margin: 0; font-family: var(--mono); font-size: clamp(3.8px, .44vw, 6.2px); line-height: 1; letter-spacing: 0; white-space: pre; font-weight: 600; }
.k-helm .blue { color: #3D8BFF; position: absolute; inset: 0; }
.k-helm .sea { color: var(--accent); opacity: .55; margin-top: .6em; }
.k-hero .k-h1 { margin: 0 auto; max-width: 1040px; font-size: clamp(36px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; }
.k-lead { max-width: 700px; text-wrap: pretty; margin: 22px auto 0; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; color: var(--ink2); }
/* the hero's h1 is the sentence under the motto (search engines read what the product is); it looks like the lead */
.k-hero h1.k-lead { font-weight: 400; letter-spacing: normal; text-wrap: pretty; }
.k-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.k-meta { margin: 16px 0 0; font-size: 13.5px; color: var(--ink3); }
.k-req { margin: 8px 0 0; font-size: 12.5px; color: var(--ink3); }

.k-stage { position: relative; z-index: 2; margin: 60px auto 0; max-width: 1180px; }
.k-glow { position: absolute; inset: 8% 4% -6%; z-index: 0; border-radius: 50%; filter: blur(70px); opacity: .55;
  background: radial-gradient(closest-side at 30% 45%, rgba(61, 139, 255, .55), transparent),
              radial-gradient(closest-side at 72% 60%, rgba(47, 181, 201, .45), transparent); }
:where(html:not(.light)) .k-glow { opacity: .4; }
.k-hero-win { --ar: 1180 / 600; position: relative; z-index: 1; border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 50px 100px -40px rgba(10, 20, 45, .45), 0 18px 40px -24px rgba(10, 20, 45, .3); }
:where(html:not(.light)) .k-hero-win { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 60px 120px -40px rgba(0, 0, 0, .95); }

.k-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 72px auto 0; max-width: 1100px; scroll-margin-top: 90px; }
.k-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px; border-radius: 99px; font-size: 14.5px;
  color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, color .15s; white-space: nowrap; }
.k-chip:hover { color: var(--ink); background: var(--bg2); }
.k-chip .ms { font-size: 18px; color: var(--accentInk); }

/* ---------- Section headings ---------- */
.k-h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; }
.k-h2-sub { margin: 14px 0 0; max-width: 680px; font-size: 18px; color: var(--ink2); }

/* ---------- Before → after ---------- */
.k-ba-wrap { max-width: 1240px; margin: 0 auto; padding: 160px var(--gutter) 0; }
.k-bas { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.kb-card { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 22px; border-radius: 20px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s, transform .25s; }
.kb-card:hover { box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 45%, var(--line)), 0 24px 50px -30px rgba(10, 20, 45, .35); }
.kb-head { display: flex; align-items: center; gap: 12px; }
.kb-head .k-ba-i { width: 34px; height: 34px; border-radius: 10px; }
.kb-head .k-ba-i .ms { font-size: 19px; }
.kb-head b { font-size: 16px; font-weight: 620; letter-spacing: -.01em; }
.kb-more { margin-left: auto; display: inline-flex; align-items: center; font-size: 14px; color: var(--ink3); transition: color .25s; }
.kb-more .ms { font-size: 19px; transition: transform .25s; }
.kb-card:hover .kb-more { color: var(--accentInk); } .kb-card:hover .kb-more .ms { transform: translateX(3px); }
.k-ba-i { display: inline-flex; align-items: center; justify-content: center; background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accentInk); }
.kb-pair { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); gap: 0 8px; }
.kb-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kb-to { display: flex; align-items: center; justify-content: center; height: 170px; color: var(--ink3); }
.kb-to .ms { font-size: 20px; transition: transform .3s, color .3s; }
.kb-card:hover .kb-to .ms { transform: translateX(3px); color: var(--ok); }
.kb-cap { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink2); }
.kb-cap.now { color: var(--ink); font-weight: 560; }
@media (max-width: 1100px) { .k-bas { grid-template-columns: minmax(0, 1fr); max-width: 760px; } }
/* With the script: one card at a time under a row of topics, the six stacked in one cell (the tallest sets the height) */
.kb-nav { display: none; }
.js .kb-nav { display: flex; gap: 6px; margin: 32px -4px 0; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.js .kb-nav::-webkit-scrollbar { display: none; }
.kb-tabs { display: contents; }
.kb-tab { -webkit-appearance: none; appearance: none; position: relative; overflow: hidden; flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; margin: 0; padding: 0 16px 0 12px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 15px; font-weight: 560;
  color: var(--ink2); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: color .2s, background .2s; }
.kb-tab .ms { font-size: 19px; color: var(--ink3); transition: color .2s; }
.kb-tab:hover { color: var(--ink); }
.kb-tab.on { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 45%, var(--line)); }
.kb-tab.on .ms { color: var(--accentInk); }
.kb-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.kb-tab .k-bar { top: auto; bottom: 0; left: 12px; right: 12px; }
.kb-tab.on.run .k-bar i { width: 0; animation: k-fill var(--dur, 7s) linear forwards; }
.kb-tab:not(.run) .k-bar i { width: 0; }
.js .k-bas { display: grid; grid-template-columns: minmax(0, 1fr); max-width: none; margin-top: 14px; }
.js .k-bas .kb-card { grid-area: 1 / 1; transition: opacity .45s ease, visibility .45s, box-shadow .25s; }
.js .k-bas .kb-card:not(.on) { opacity: 0 !important; visibility: hidden; pointer-events: none; }
/* the topic is in the tab and «More» at the row's end: the card is just the pair */
.js .k-bas .kb-head { display: none; }
.js .k-bas .kb-card { padding: 22px 24px 24px; }
@media (min-width: 961px) { .js .k-bas .kb-pair { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); } }
.kb-go { flex: none; margin-left: auto; display: inline-flex; align-items: center; padding: 0 4px 0 12px; font-size: 14.5px; color: var(--ink3); transition: color .2s; }
.kb-go .ms { font-size: 19px; transition: transform .2s; }
.kb-go:hover { color: var(--accentInk); } .kb-go:hover .ms { transform: translateX(3px); }
@media (max-width: 640px) { .kb-go { display: none; } }

/* the two scenes: what you do by hand, and the app doing it — parts (.kb-a) come in one by one when the card is picked */
.kb-pane { --red: #c4351f; position: relative; height: 300px; overflow: hidden; border-radius: 14px; padding: 38px 18px 16px; font-size: 13.5px; line-height: 1.45; }
:where(html:not(.light)) .kb-pane { --red: #ff8a75; }
.kb-pane > em { position: absolute; left: 18px; top: 13px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kb-pane.was { background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); }
.kb-pane.was > em { color: var(--red); }
.kb-pane.now { background: color-mix(in oklab, var(--ok) 6%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ok) 30%, transparent); color: var(--ink); }
.kb-pane.now > em { color: var(--ok); }
:where(html:not(.light)) .kb-pane.now > em { color: #5fd07f; }
.kb-pane code { font: 500 12px/1.4 var(--mono); padding: 0; background: none; box-shadow: none; }
@keyframes kb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.js .k-bas .kb-a { opacity: 0; }
.js .k-bas .kb-card.play .kb-a { animation: kb-in .45s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms) both; }
.kb-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; height: 100%; }
.kb-split.w { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* terminal text */
.kb-term { font: 12.5px/1.65 var(--mono); min-width: 0; }
.kb-term p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-term i { font-style: normal; color: var(--ink3); }
.kb-term b { color: var(--ink); font-weight: 500; }
.kb-term .r, .kb-term .r * { color: var(--red); } .kb-term .d { color: var(--ink3); }
.kb-cur { display: inline-block; width: 7px; height: 14px; vertical-align: -3px; background: var(--ink3) !important; animation: kb-blink 1.1s steps(1) infinite; }
@keyframes kb-blink { 50% { opacity: 0; } }
.kb-clock { display: inline-flex !important; align-items: center; gap: 4px; margin-bottom: 4px !important; padding: 1px 8px 1px 5px; border-radius: 99px; font-family: inherit;
  color: var(--red); background: color-mix(in oklab, var(--red) 12%, transparent); }
.kb-clock .ms { font-size: 14px; }
.kb-tabs2 { display: flex; gap: 4px; margin-bottom: 6px !important; }
.kb-tabs2 span { padding: 1px 9px; border-radius: 6px; font-size: 11px; background: color-mix(in oklab, var(--ink) 6%, transparent); }
.kb-tabs2 span.on { background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--ink); }
.kb-badge { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--red); background: color-mix(in oklab, #e5533d 13%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in oklab, #e5533d 32%, transparent); }
.kb-badge .ms { font-size: 16px; }
.kb-sticky { align-self: end; width: 168px; margin-bottom: 34px; padding: 9px 11px; transform: rotate(-3deg); font: 500 12px/1.5 var(--mono); color: #4a3d00;
  background: #ffe27a; border-radius: 2px; box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .45); }
.js .k-bas .kb-card.play .kb-sticky.kb-a { animation-name: kb-stick; }
@keyframes kb-stick { from { opacity: 0; transform: rotate(-8deg) translateY(-10px); } to { opacity: 1; transform: rotate(-3deg); } }
/* small windows: a chat, a browser, a pile of terminals */
.kb-win { min-width: 0; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -18px rgba(0, 0, 0, .5); }
.kb-wt { flex: none; display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; font-size: 11.5px; color: var(--ink3);
  background: color-mix(in oklab, var(--ink) 4%, var(--card)); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.kb-wt .a-lights i { width: 8px; height: 8px; }
.kb-win.brw .kb-wt span { flex: 1; text-align: center; padding: 1px 8px; border-radius: 5px; background: color-mix(in oklab, var(--ink) 7%, transparent); font-family: var(--mono); font-size: 11px; }
.kb-win.chat { align-self: center; }
.kb-win.chat { padding-bottom: 4px; }
.kb-msg { width: fit-content; max-width: calc(100% - 20px); }
.kb-msg.kb-me { margin-left: auto; }
.kb-msg code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
/* a window in the «before» stops above the badge in the corner */
.kb-pane.was .kb-win.brw, .kb-pane.was .kb-win.kb-tw { margin-bottom: 36px; }
.kb-split.ag { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.kb-msg { margin: 10px; padding: 9px 11px; border-radius: 12px 12px 3px 12px; background: var(--accent); color: #fff; font-size: 12.5px; }
.kb-msg code { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 6px; background: rgba(0, 0, 0, .25); color: #e8eefc; }
.kb-msg code b { color: #fff; background: #d6402b; padding: 0 3px; border-radius: 3px; font-weight: 600; }
.kb-err { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px; text-align: center; color: var(--ink3); font-size: 12px; }
.kb-err .ms { font-size: 30px; color: var(--ink3); } .kb-err b { color: var(--ink); font-size: 14px; }
.kb-stack { position: relative; height: 100%; }
.kb-win.kb-pile { position: absolute; width: 62%; height: 120px; }
.kb-win.kb-pile .kb-term { padding: 6px 10px; font-size: 11.5px; }
.kb-win.kb-pile:nth-child(1) { left: 0; top: 0; } .kb-win.kb-pile:nth-child(2) { left: 9%; top: 22px; } .kb-win.kb-pile:nth-child(3) { left: 18%; top: 44px; }
.kb-win.kb-pile:nth-child(4) { left: 27%; top: 66px; } .kb-win.kb-pile:nth-child(5) { left: 36%; top: 88px; }
.kb-win.kb-pile .r { color: var(--red); }
/* the phone with three codes */
.kb-phone { width: 148px; align-self: start; padding: 12px 10px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 0 0 5px color-mix(in oklab, var(--ink) 7%, transparent); }
.kb-ph-h { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; font-size: 11px; font-weight: 600; color: var(--ink2); }
.kb-ph-h .ms { font-size: 15px; color: var(--accentInk); }
.kb-otp { display: flex; flex-direction: column; padding: 5px 2px; border-top: 1px solid var(--line); }
.kb-otp span { font-size: 10.5px; color: var(--ink3); } .kb-otp b { font: 600 17px/1.2 var(--mono); color: var(--accentInk); letter-spacing: .04em; }
.kb-ph-t { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 10.5px; color: var(--ink3); }
.kb-ph-t i { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(var(--accent) 40%, color-mix(in oklab, var(--ink) 12%, transparent) 0); }
/* the route: this Mac → two bastions → the server, each hop answered */
.kb-route { display: flex; align-items: flex-start; margin: 6px 0 22px; }
.kb-hop { flex: 0 1 116px; min-width: 62px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.kb-hi { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--card);
  box-shadow: 0 0 0 1px var(--line); color: var(--accentInk); }
.kb-hi .ms { font-size: 24px; } .kb-hi .kb-lg { width: 24px; height: 24px; }
.kb-hop:not(.me) .kb-hi { box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--ok) 55%, transparent); }
.kb-hop b { max-width: 100%; font: 600 12.5px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.kb-hop em { display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-size: 11.5px; color: var(--ok); }
.kb-hop.me em { color: var(--ink3); }
.kb-hop em .ms { font-size: 14px; }
.kb-ln { flex: 1 1 10px; height: 2px; margin-top: 23px; border-radius: 2px; background: var(--ok); transform-origin: 0 50%; }
.js .k-bas .kb-card.play .kb-ln.kb-a { animation-name: kb-grow; }
@keyframes kb-grow { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: none; } }
.kb-prompt { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 9px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); font: 12.5px var(--mono); }
.kb-prompt span { color: #34c759; }
.kb-okline { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--ok); }
.kb-same { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 12px; font-size: 12.5px; color: var(--ink); }
.kb-same .ms { font-size: 16px; color: var(--accentInk); } .kb-same span { color: var(--ink3); } .kb-same em { font-style: normal; color: var(--ink2); }
.kb-okline i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 22%, transparent); }
/* the agent */
.kb-ah { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13.5px; white-space: nowrap; }
.kb-ah .ms { font-size: 18px; color: var(--accentInk); } .kb-ah.db .ms { color: #e8873a; }
.kb-ah span { color: var(--ink3); overflow: hidden; text-overflow: ellipsis; }
.kb-mode { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; color: var(--ink2) !important;
  background: color-mix(in oklab, var(--ink) 7%, transparent); }
.kb-mode .ms { font-size: 14px; color: var(--ink2); }
.kb-st { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; white-space: nowrap; }
.kb-st > .ms { font-size: 16px; color: var(--ok); }
.kb-st > span:not(.kb-mask) { width: 92px; flex: none; color: var(--ink2); }
.kb-st code { color: var(--ink); }
.kb-mask { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font: 11.5px var(--mono); color: var(--ink3); }
.kb-mask b { color: var(--ok); font-weight: 500; } .kb-mask .ms { font-size: 14px; color: var(--ok); }
.kb-say { margin: 8px 0 10px; font-size: 13px; color: var(--ink); }
.kb-ask { display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 12px; border-radius: 11px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.kb-ask code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.kb-yes, .kb-no { flex: none; padding: 4px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; }
.kb-yes { background: var(--accent); color: #fff; box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent); }
.kb-no { color: var(--ink2); background: color-mix(in oklab, var(--ink) 7%, transparent); }
.js .k-bas .kb-card.play .kb-yes { animation: kb-pulse 1.6s ease-out 3.4s 2; }
@keyframes kb-pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
/* the database: words → SQL → a table */
.kb-ask.in { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--accent) 45%, transparent); font-size: 13px; }
.kb-ask.in > .ms { font-size: 17px; color: var(--accentInk); } .kb-ask.in > span:not(.ms) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-ask.in i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.kb-ask.in i .ms { font-size: 16px; }
.kb-sql { margin: 10px 2px; font: 12px/1.55 var(--mono); color: var(--ink2); }
.kb-sql b { font-weight: 600; color: #b5338a; }
:where(html:not(.light)) .kb-sql b { color: #f07ac8; }
.kb-tbl { border-radius: 9px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--card); }
.kb-th, .kb-tr { display: grid; grid-template-columns: 120px 64px minmax(0, 1fr); align-items: center; gap: 10px; padding: 4px 12px; font-size: 12.5px; }
.kb-th { font: 600 11px var(--mono); color: var(--ink3); border-bottom: 1px solid var(--line); }
.kb-tr b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kb-th b { text-align: right; font-weight: 600; }
.kb-tr i { height: 7px; width: var(--w); border-radius: 4px; background: color-mix(in oklab, var(--accent) 70%, transparent); transform-origin: 0 50%; }
.js .k-bas .kb-card.play .kb-tr i { animation: kb-grow .6s cubic-bezier(.2, .7, .2, 1) calc(var(--d) + 150ms) both; }
/* the services page */
.kb-seg { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 10px; border-radius: 9px; background: color-mix(in oklab, var(--ink) 6%, transparent); font-size: 12px; white-space: nowrap; max-width: 100%; overflow: hidden; }
.kb-seg span { padding: 3px 10px; border-radius: 6px; color: var(--ink2); } .kb-seg span.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.kb-prob { margin: 0 0 10px; font-size: 12.5px; color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-prob b { color: var(--ink); font-weight: 600; }
.kb-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kb-tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.kb-tile em { font-style: normal; font-size: 11.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-tile b { font-size: 19px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-tile.bad b { color: var(--red); }
.kb-spark { position: absolute; right: 8px; bottom: 10px; width: 44px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.5; }
.kb-bars { display: flex; align-items: flex-end; gap: 4px; height: 66px; margin-top: 10px; padding: 8px 10px 0; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.kb-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: color-mix(in oklab, #34c759 75%, transparent); transform-origin: 50% 100%; }
.kb-bars i.r { background: linear-gradient(to top, color-mix(in oklab, #34c759 75%, transparent) 60%, #e5533d 0); }
.js .k-bas .kb-card.play .kb-bars i { animation: kb-rise .5s ease calc(1700ms + var(--k, 0) * 30ms) both; }
@keyframes kb-rise { from { transform: scaleY(0); } }
/* tunnels */
.kb-tuns { min-width: 0; }
.kb-tun { display: flex; align-items: center; gap: 9px; padding: 9px 2px; font-size: 13px; border-top: 1px solid var(--line); white-space: nowrap; }
.kb-tun img, .kb-ti { width: 20px; height: 20px; flex: none; }
.kb-ti { display: inline-flex; align-items: center; justify-content: center; color: var(--ink3); } .kb-ti .ms { font-size: 18px; }
.kb-tun > span:not(.kb-tg):not(.kb-ti) { margin-left: auto; font: 11.5px var(--mono); color: var(--ink3); overflow: hidden; text-overflow: ellipsis; }
.kb-tg { flex: none; width: 30px; height: 18px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 18%, transparent); position: relative; }
.kb-tg i { position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.kb-tg.go { background: var(--ok); } .kb-tg.go i { left: 14px; }
.js .k-bas .kb-card.play .kb-tg.go { animation: kb-tgbg .3s ease var(--d) both; } .js .k-bas .kb-card.play .kb-tg.go i { animation: kb-tgk .3s ease var(--d) both; }
@keyframes kb-tgbg { from { background: color-mix(in oklab, var(--ink) 18%, transparent); } }
@keyframes kb-tgk { from { left: 2px; } }
.kb-gf { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px; background: #111217; color: #d8d9da; }
.kb-gfh { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; } .kb-gfh img { width: 16px; height: 16px; }
.kb-gfs { display: flex; gap: 6px; } .kb-gfs span { flex: 1; padding: 5px 8px; border-radius: 4px; background: #181b1f; }
.kb-gfs em { display: block; font-style: normal; font-size: 10px; color: #8e8e8e; } .kb-gfs b { font-size: 17px; font-weight: 500; color: #73bf69; } .kb-gfs b.y { color: #fade2a; }
.kb-gf svg { flex: 1; width: 100%; min-height: 40px; } .kb-gf .a { fill: rgba(115, 191, 105, .2); } .kb-gf .l { fill: none; stroke: #73bf69; stroke-width: 1; vector-effect: non-scaling-stroke; }
/* automations */
.kb-flow { display: flex; align-items: center; margin: 8px 0 18px; }
.kb-fl { flex: 1 1 10px; height: 2px; min-width: 8px; background: var(--ok); transform-origin: 0 50%; }
.js .k-bas .kb-card.play .kb-fl { animation: kb-grow .4s ease var(--d) both; }
.kb-blk { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 8px 11px; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--ok) 55%, transparent); }
.kb-blk span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.kb-blk .ms { font-size: 17px; color: var(--accentInk); }
.kb-blk em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ok); white-space: nowrap; }
.js .k-bas .kb-card.play .kb-blk { animation: kb-lit .5s ease var(--d) both; }
@keyframes kb-lit { from { box-shadow: 0 0 0 1px var(--line); } }
.js .k-bas .kb-card.play .kb-blk em { animation: kb-in .4s ease calc(var(--d) + 200ms) both; }
.kb-toast { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -16px rgba(0, 0, 0, .55); }
.kb-tgi { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #2aa3de; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.kb-tgi .ms { font-size: 17px; transform: translateX(1px); }
.kb-toast > span:last-child { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; color: var(--ink2); }
.kb-toast b { font-size: 13px; color: var(--ink); font-weight: 600; }
/* typed by hand: digits one by one; the phone's code runs out and changes under your fingers */
.js .k-bas .kb-card.play .kb-ch { animation-name: kb-key; animation-duration: .12s; }
@keyframes kb-key { from { opacity: 0; } to { opacity: 1; } }
.kb-term b.kb-ch { color: var(--ink); font-weight: 500; }
.kb-otp.hot { position: relative; }
.kb-otp b.kb-old, .kb-otp b.kb-new { grid-area: 2 / 1; }
.kb-otp.hot { display: grid; grid-template-columns: minmax(0, 1fr); }
.kb-otp.hot span { grid-area: 1 / 1; }
.kb-new { color: var(--ok) !important; }
.js .k-bas .kb-new { opacity: 0; }
.js .k-bas .kb-card.play .kb-old { animation: kb-gone .25s ease var(--d) both; }
.js .k-bas .kb-card.play .kb-new { animation: kb-key .25s ease var(--d) both; }
@keyframes kb-gone { to { opacity: 0; transform: translateY(-4px); } }
.kb-timer { grid-area: 3 / 1; display: block; height: 3px; margin-top: 4px; border-radius: 2px; background: #e5533d; transform-origin: 0 50%; }
.js .k-bas .kb-card.play .kb-timer { animation: kb-run 2.7s linear var(--d) both; }
@keyframes kb-run { from { transform: scaleX(1); background: #e8a33a; } to { transform: scaleX(0); background: #e5533d; } }
:where(.kb-card) .kb-new { display: block; }
.js .k-bas .kb-card:not(.play) .kb-new { display: none; }
/* the chat and its tip */
.kb-msg.kb-bot { margin-top: 0; border-radius: 12px 12px 12px 3px; background: color-mix(in oklab, var(--ink) 8%, var(--card)); color: var(--ink); }
.kb-msg.kb-bot code { background: color-mix(in oklab, var(--ink) 10%, transparent); color: var(--ink); }
.kb-split.ag .kb-bot code { white-space: normal; }   /* the chat's two-command tip wraps instead of hiding -v */
.kb-host { display: inline-block; margin-bottom: 4px !important; padding: 1px 8px; border-radius: 99px; font-family: inherit; font-size: 11.5px;
  color: var(--red); background: color-mix(in oklab, var(--red) 12%, transparent); }
.kb-host b { color: inherit; }
.kb-st em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink2); }
.kb-card2 { margin-top: 10px; padding: 8px; border-radius: 12px; background: color-mix(in oklab, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.kb-card2 .kb-ask { box-shadow: 0 0 0 1px var(--line); }
.kb-card2 p { display: flex; gap: 6px; margin: 8px 4px 0; font-size: 12.5px; color: var(--ink2); }
.kb-card2 p .ms { flex: none; font-size: 16px; color: var(--ok); }
/* «don't close»: the terminal's title, and the browser that dies with it */
.kb-win.kb-tw .kb-term { padding: 8px 10px; }
.kb-dont { color: #fff; background: #d6402b; padding: 0 5px; border-radius: 4px; font-weight: 700; letter-spacing: .03em; }
.kb-win.kb-tw .kb-wt span { overflow: hidden; text-overflow: ellipsis; }
.kb-win.brw { position: relative; }
.kb-gfold { position: absolute; inset: 26px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #111217; color: #d8d9da; font-size: 12px; }
.kb-gfold .ms { font-size: 30px; color: #f46800; } .kb-gfold b { font-size: 14px; } .kb-gfold span { color: #8e8e8e; }
.js .k-bas .kb-gfold { opacity: 0; }
.js .k-bas .kb-card.play .kb-gfold { animation: kb-flash 1.8s ease var(--d) both; }
@keyframes kb-flash { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }
.kb-sticky s { opacity: .55; }
/* tablets: «before» above «after», each across the card */
@media (max-width: 960px) {
  .js .k-bas .kb-pair { grid-template-columns: minmax(0, 1fr); }
  .js .k-bas .kb-to { height: 30px; } .js .k-bas .kb-to .ms { transform: rotate(90deg); }
}
/* phones: the scenes stack and drop their side pieces */
@media (max-width: 640px) {
  .kb-pane { height: auto; min-height: 210px; padding: 34px 12px 14px; font-size: 12.5px; }
  .kb-pane > em { left: 12px; }
  .kb-split, .kb-split.w { grid-template-columns: minmax(0, 1fr); }
  .kb-phone, .kb-win.chat, .kb-win.brw, .kb-sticky { display: none; }
  .kb-badge { position: static; margin-top: 10px; }
  .kb-pane.was { display: flex; flex-direction: column; align-items: flex-start; }
  .kb-stack { height: 196px; width: 100%; } .kb-win.kb-pile { width: 78%; }
  .kb-hop { flex-basis: 64px; } .kb-hi { width: 38px; height: 38px; } .kb-hop b { font-size: 10.5px; } .kb-hop em { font-size: 10px; }
  .kb-ln { margin-top: 19px; }
  .kb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-flow { flex-wrap: wrap; gap: 8px; } .kb-fl { display: none; }
  .kb-th, .kb-tr { grid-template-columns: 90px 50px minmax(0, 1fr); }
  .kb-st > span:not(.kb-mask) { width: auto; } .kb-mask, .kb-st em { display: none; }
}
/* shell text stays as typed: no => / >= ligatures (after the `font` shorthands, which reset them) */
.kb-pane, .kb-pane * { font-variant-ligatures: none; font-feature-settings: 'calt' 0, 'liga' 0; }

/* ---------- Camera over a replica ---------- */
.k-cam { position: relative; overflow: hidden; aspect-ratio: var(--ar, 4 / 3); background: var(--bg2); }
.k-cam > .app { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-shadow: none; border-radius: 0; }
.k-cam.moving > .app { transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
/* A phone's card (site.js Cam.card, moved frame by frame): the piece of the replica lifted out, its shadow drawn behind the clipped replica */
.k-card { position: absolute; z-index: 0; display: none; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 1px var(--line), 0 22px 44px -22px rgba(10, 20, 45, .45); }
.k-card.on { display: block; }
.k-cam > .app { z-index: 1; }
/* …and the whole window in miniature above it, with the piece framed and a beam down to the card */
.k-mini, .k-beam { display: none; }
.k-mini-win { position: absolute; overflow: hidden; border-radius: 5px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(10, 20, 45, .4); }
.k-mini-win > .app { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-shadow: none; border-radius: 0; pointer-events: none; }
.k-mini-win * { animation: none !important; transition: none !important; }
.k-view { position: absolute; border-radius: 3px; box-shadow: 0 0 0 1.5px var(--ring), 0 0 0 4px color-mix(in oklab, var(--ring) 25%, transparent);
  background: color-mix(in oklab, var(--ring) 10%, transparent); }
.k-beam { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in oklab, var(--ring) 16%, transparent), color-mix(in oklab, var(--ring) 4%, transparent)); }
.k-screen { position: relative; overflow: hidden; aspect-ratio: var(--ar, 4 / 3); border-radius: 22px; background: var(--bg2); box-shadow: var(--lift); }
.k-screen > .k-cam { position: absolute; inset: 0; aspect-ratio: auto; opacity: 0; transition: opacity .5s ease; }
.k-screen > .k-cam.on { opacity: 1; z-index: 1; }
.k-ring { position: absolute; z-index: 5; pointer-events: none; border-radius: 9px; opacity: 0;
  box-shadow: 0 0 0 2px var(--ring), 0 0 0 7px color-mix(in oklab, var(--ring) 22%, transparent), 0 0 0 4000px rgba(10, 14, 28, .1);
  transition: left .6s ease, top .6s ease, width .6s ease, height .6s ease, opacity .4s ease; }
:where(html:not(.light)) .k-ring { box-shadow: 0 0 0 2px var(--ring), 0 0 0 7px color-mix(in oklab, var(--ring) 28%, transparent), 0 0 0 4000px rgba(0, 0, 0, .42); }
.k-ring.on { opacity: 1; }
.k-tap { position: absolute; z-index: 6; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: color-mix(in oklab, var(--ring) 35%, transparent); box-shadow: 0 0 0 2px var(--ring); }
.k-tap.go { animation: k-tap 1.1s ease-out 2; }
@keyframes k-tap { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(2.1); } }

/* ---------- Stories: the headline, the steps as tabs, the screen across the whole width ---------- */
.k-story { max-width: 1240px; margin: 0 auto; padding: 150px var(--gutter) 0; display: flex; flex-direction: column; }
.k-story-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; }
.k-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 14.5px; font-weight: 600; color: var(--accentInk); }
.k-eyebrow .ms { font-size: 19px; }
.k-num { font-variant-numeric: tabular-nums; color: var(--ink3); font-weight: 600; margin-right: 4px; padding-right: 12px; border-right: 1px solid var(--line); }
.k-story h2 { margin: 0; font-size: clamp(32px, 3.8vw, 50px); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; }
.k-sub { margin: 0; font-size: 17.5px; line-height: 1.55; color: var(--ink2); }
.k-stagecard { margin-top: 44px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.k-stagecard .k-story-vis { position: relative; }
/* width stated: with only the ratio, the height cap would narrow the stage too (max-height transfers through aspect-ratio) */
.k-stagecard .k-screen { --ar: var(--sar, 2 / 1); width: 100%; border-radius: 0; box-shadow: none; max-height: max(320px, calc(100svh - 250px)); }
.k-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.k-steps li { display: flex; border-left: 1px solid var(--line); }
.k-steps li.r0 { border-left: 0; } .k-steps li.r2 { border-top: 1px solid var(--line); }
.k-step { all: unset; box-sizing: border-box; position: relative; width: 100%; cursor: pointer; display: grid; grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px; padding: 18px 20px 20px; transition: background .3s; }
.k-step:hover { background: color-mix(in oklab, var(--ink) 3%, transparent); }
.k-step:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.k-n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  color: var(--ink3); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.k-st b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 26px; color: var(--ink2); transition: color .3s; }
.k-st span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ink3); transition: color .3s; }
.k-step.on { background: color-mix(in oklab, var(--accent) 6%, transparent); }
.k-step.on .k-n { background: var(--accentFill); color: #fff; box-shadow: none; }
.k-step.on .k-st b { color: var(--ink); }
.k-step.on .k-st span { color: var(--ink2); }
.k-bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; }
.k-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.k-step.on .k-bar i { width: 100%; }
.k-step.on.run .k-bar i { width: 0; animation: k-fill var(--dur, 5s) linear forwards; }
@keyframes k-fill { to { width: 100%; } }
/* A block of its own (databases): a tinted panel, the engines it speaks */
.k-story.k-block { padding-top: 80px; margin-top: 80px; border-top: 1px solid var(--line); }
.k-story.k-block:first-of-type { border-top: 0; }
.k-engines { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--ec, 6), minmax(0, 1fr)); gap: 26px 28px; }
.k-engines li { display: flex; flex-direction: column; gap: 4px; }
.k-engines .lg { display: flex; gap: 8px; height: 28px; margin-bottom: 6px; align-items: center; }
.k-engines img { width: 28px; height: 28px; }
.k-engines .lg .ms { font-size: 26px; color: var(--accentInk); }
:where(html:not(.light)) .k-engines img.mono { filter: invert(1); }
/* a narrow screen of its own (a popover, the AI panel) floats in the middle of the stage */
/* a window floats with rounded corners: at its edges the camera leaves a margin past it */
.k-stagecard .k-cam > .app { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.k-story .k-cam > .app.modes, .k-story .k-cam > .app.aipanel, .k-story .k-cam > .app.frag, .k-story .k-cam > .app.sheet { border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px -20px rgba(10, 20, 45, .35); }
.k-engines h3 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.k-engines span { font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
:where(html:not(.light)) .k-engines img[src$="sqlite.svg"], :where(html:not(.light)) .k-engines img[src$="mysql.svg"] { filter: brightness(1.9) saturate(.8); }
@media (max-width: 1100px) { .k-engines { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .k-story.k-block { padding-top: 55px; margin-top: 55px; } }
@media (max-width: 640px) { .k-engines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.k-sub b { color: var(--ink); font-weight: 600; }
/* Extensions and modules (drawn by the site, not a copy of the app): an extension is a package of contributions, a module
   the simplest one — a server service; then the two side by side. */
.k-xmap { --mod: #8a3fd1; margin-top: 40px; display: grid; gap: 20px; }
:root:not(.light) .k-xmap { --mod: #c792ff; }
.k-xext { padding: 22px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.k-xhd { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.k-xic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--accentInk); }
.k-xic .ms { font-size: 24px; }
.k-xhd b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.k-xhd div > span { display: block; font-size: 14.5px; color: var(--ink2); }
.k-xin, .k-xt { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.k-xin { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.k-xt { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k-xin > li, .k-xt > li { display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 15px; border-radius: 14px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.k-xin > li > .ms, .k-xt > li > .ms { font-size: 22px; color: var(--accentInk); margin-bottom: 6px; }
.k-xin b, .k-xt b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.k-xin li span, .k-xt li span { font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.k-xin > li.k-xmod { grid-column: span 3; padding: 12px; gap: 0; background: color-mix(in oklab, var(--mod) 7%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--mod) 45%, transparent); }
.k-xmh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 2px 4px 12px; }
.k-xmh .ms { font-size: 20px; color: var(--mod); align-self: center; }
.k-xmh b { font-size: 16px; color: var(--mod); }
.k-xmh span { font-size: 13.5px; color: var(--ink2); }
.k-xmod .k-xt > li > .ms { color: var(--mod); }
@media (min-width: 1101px) { .k-xin > li:nth-child(2), .k-xin > li:nth-child(3) { align-self: end; margin-bottom: 12px; } }
.k-xcmp { border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.k-xcr { display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1fr); }
.k-xcr > span { padding: 12px 20px; font-size: 14.5px; line-height: 1.5; color: var(--ink2); border-top: 1px solid var(--line); }
.k-xcr > span:first-child { color: var(--ink); font-weight: 600; }
.k-xcr > span:nth-child(2) { background: color-mix(in oklab, var(--mod) 5%, transparent); }
.k-xcr.hd > span { border-top: 0; display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 650; color: var(--ink); }
.k-xcr.hd .ms { font-size: 20px; color: var(--accentInk); } .k-xcr.hd > span:nth-child(2) .ms { color: var(--mod); }
@media (max-width: 1100px) {
  .k-xin { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .k-xext { padding: 16px 14px; border-radius: 18px; }
  .k-xhd { align-items: flex-start; }
  .k-xin, .k-xt { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .k-xin > li.k-xmod { grid-column: auto; padding: 10px; }
  .k-xin > li:not(.k-xmod), .k-xt > li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 1px 12px; padding: 11px 12px; }
  .k-xin > li > .ms, .k-xt > li > .ms { grid-row: span 2; margin: 1px 0 0; font-size: 21px; }
  .k-xcr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .k-xcr > span { padding: 10px 14px; font-size: 13.5px; }
  .k-xcr > span:first-child { grid-column: 1 / -1; padding-bottom: 0; background: none; }
  .k-xcr > span:not(:first-child) { border-top: 0; }
  .k-xcr.hd > span:first-child { display: none; }
  .k-xcr.hd > span { font-size: 14.5px; }
}
/* the labels an installed extension carries in Settings → Extensions (the library's one — soon) */
.k-proofs .k-tchips { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.k-tchips em { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 7px; border-radius: 99px; font-style: normal; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.k-proofs .k-tchips .ms { grid-row: auto; margin: 0; font-size: 15px; color: inherit; align-self: auto; }
.k-tchips .y { color: #8a6200; background: color-mix(in oklab, #d6a21b 20%, transparent); }
.k-tchips .v { color: #23803d; background: color-mix(in oklab, #34c759 16%, transparent); }
:root:not(.light) .k-tchips .y { color: #ffd60a; } :root:not(.light) .k-tchips .v { color: #5fd07f; }
.k-tchips i { font-style: normal; font-weight: 500; margin-left: 4px; padding-left: 7px; border-left: 1px solid color-mix(in oklab, currentColor 45%, transparent); }

/* The path card over the screen (bastions, step 2): an explanation drawn by the site, not part of the app. */
.k-hops { position: absolute; left: 50%; bottom: 26px; z-index: 3; display: flex; align-items: center; width: max-content; max-width: calc(100% - 32px);
  padding: 12px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -20px rgba(10, 20, 45, .4);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.k-hops.on { opacity: 1; transform: translate(-50%, 0); }
.k-hop { position: relative; display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 7px; border-radius: 11px; }
.k-hop > .ms { width: 30px; height: 30px; border-radius: 50%; font-size: 17px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg2); color: var(--ink2); transition: background .3s, color .3s; }
.k-hop b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.k-hop em { display: block; font-style: normal; font-size: 12px; color: var(--ink2); white-space: nowrap; }
.k-ok { position: absolute; left: 27px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.k-ok .ms { font-size: 12px; font-variation-settings: 'wght' 700; }
.k-hop.lit > .ms { background: color-mix(in oklab, var(--accent) 16%, transparent); color: var(--accentInk); }
.k-hop.lit .k-ok { transform: scale(1); }
.k-link { flex: 0 0 18px; height: 2px; background: var(--line); }
@media (max-width: 1100px) { .k-hop em { display: none; } }

.k-proofs { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.k-proofs li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; align-content: start; }
.k-proofs .ms { grid-row: span 2; font-size: 21px; color: var(--accentInk); align-self: start; margin-top: 1px; }
.k-proofs h3 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.k-proofs span { font-size: 14.5px; color: var(--ink2); line-height: 1.5; }

/* ---------- Pricing ---------- */
.k-pricing { max-width: 1200px; margin: 0 auto; padding: 160px var(--gutter) 0; text-align: center; }
.k-pricing .k-h2-sub { margin-left: auto; margin-right: auto; }
.k-pr-mark { margin-bottom: 18px; } .k-pr-mark img { display: inline-block; }
/* «Бесплатно — до пяти серверов» under «Встаньте за штурвал»: the offer, a step below the call */
.k-pr-title { margin: 14px 0 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.k-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; text-align: left; }
.k-plan { display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.k-plan.full { box-shadow: inset 0 0 0 1.5px var(--accent), 0 30px 60px -30px color-mix(in oklab, var(--accent) 45%, transparent); }
.k-plan h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink2); }
.k-plan.full h3 { color: var(--accentInk); }
.k-plan h3 { display: flex; align-items: center; gap: 10px; }
.k-plan-badge { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #fff; background: var(--accent); }
@media (max-width: 1100px) { .k-plans { grid-template-columns: minmax(0, 1fr); max-width: 600px; margin-left: auto; margin-right: auto; } }
.k-pay-note { margin: 18px auto 0; max-width: 560px; font-size: 14px; color: var(--ink3); }
.k-price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.k-price strong { font-size: 38px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.k-price span { font-size: 15px; color: var(--ink2); }
.k-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15.5px; }
.k-plan li { display: flex; gap: 10px; align-items: flex-start; }
.k-plan li .ms { font-size: 19px; color: var(--ok); margin-top: 2px; }
.k-plan .k-btn { margin-top: auto; align-self: stretch; }
.k-plan.full .k-btn { background: var(--accentFill); color: #fff !important; }
.k-small { margin: -6px 0 0; font-size: 13.5px; color: var(--ink3); text-align: center; }
/* the paid plans' buttons line up although their notes differ in length */
@media (min-width: 1101px) { .k-plan .k-small { min-height: 4.4em; } }
.k-always { margin: 22px auto 0; max-width: 760px; font-size: 14.5px; color: var(--ink2); text-wrap: balance; }
/* inline, so the lock sits before the first line of centred, wrapped text, not at the box's edge */
.k-always .ms { font-size: 18px; color: var(--accentInk); vertical-align: -4px; margin-right: 6px; }

/* ---------- Questions ---------- */
.k-faq { max-width: 860px; margin: 0 auto; padding: 160px var(--gutter) 0; }
.k-qs { margin-top: 32px; border-top: 1px solid var(--line); }
.k-q { border-bottom: 1px solid var(--line); }
.k-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px;
  font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.k-q summary::-webkit-details-marker { display: none; }
.k-q summary .ms { font-size: 22px; color: var(--ink2); transition: transform .25s; }
.k-q[open] summary .ms { transform: rotate(180deg); }
.k-q p { margin: -4px 4px 22px; font-size: 16px; color: var(--ink2); max-width: 720px; }

/* ---------- The end ---------- */

/* ---------- Footer ---------- */
.k-foot { max-width: 1200px; margin: 0 auto; padding: 56px var(--gutter) 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; color: var(--ink2); }
.k-foot a:hover { color: var(--ink); }
@media (max-width: 640px) { .k-foot a { padding: 11px 0; } }   /* a 44-point tap target */
.k-foot .k-brand { color: var(--ink); margin-right: auto; }
.k-foot p { flex-basis: 100%; margin: 8px 0 0; font-size: 13px; color: var(--ink3); }

/* ---------- Narrow screens ---------- */
/* Tablets, phones and short laptop screens: the steps as one row that scrolls sideways (the current one is brought into
   view by site.js), so the picture and the step it shows fit on one screen */
@media (max-width: 960px), (max-height: 1000px) {
  .k-steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .k-steps::-webkit-scrollbar { display: none; }
  .k-steps li, .k-steps li.r0, .k-steps li.r2, .k-steps li.t0, .k-steps li.t2 { flex: 0 0 min(78%, 340px); scroll-snap-align: start; border-top: 0; border-left: 1px solid var(--line); }
  .k-steps li:first-child { border-left: 0; }
  /* more steps to the right: the row fades out at its edge */
  .k-steps.more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
}
@media (max-width: 640px) { .k-steps li, .k-steps li.r0, .k-steps li.r2, .k-steps li.t0, .k-steps li.t2 { flex-basis: 86%; } }
@media (max-width: 1100px) {
  .k-steps { grid-template-columns: repeat(var(--tc, 3), minmax(0, 1fr)); }
  .k-steps li, .k-steps li.r0, .k-steps li.r2 { border-left: 1px solid var(--line); border-top: 0; }
  .k-steps li.t0 { border-left: 0; } .k-steps li.t2 { border-top: 1px solid var(--line); }
  .k-nav nav a { padding: 6px 8px; }
}
/* tablets: «Features» and «Pricing» stay in the bar beside the theme and download */
@media (max-width: 900px) { .k-nav nav a:not(:first-child):not([href$="#pricing"]) { display: none; } .k-nav { gap: 14px; } }
@media (max-width: 960px) {
  .k-story { padding-top: 110px; }
  .k-story-head { grid-template-columns: minmax(0, 1fr); }
  .k-stagecard { margin-top: 28px; }
  .k-stagecard .k-screen { --ar: 3 / 2; }
  .k-stagecard .k-screen { max-height: max(300px, calc(100svh - 250px)); }
  .k-proofs { grid-template-columns: minmax(0, 1fr); margin-top: 32px; gap: 18px; }
}
@media (max-width: 640px) {
  /* a phone keeps two section links; the header download goes — a Mac DMG is no use here, the hero and pricing still offer it */
  .k-nav { gap: 10px; }
  .k-nav nav { justify-content: flex-end; font-size: 13.5px; }
  .k-nav nav a { padding: 6px 7px; }
  .k-nav nav a[href$="#security"], .k-nav nav a[href$="#faq"] { display: none; }
  .k-nav > .k-btn.sm { display: none; }
  .k-hero { padding-top: 28px; }
  .k-stage { margin-top: 44px; }
  .k-hero-win { --ar: 4 / 3; }
  .k-ctas .k-btn { width: 100%; }
  .k-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 44px calc(-1 * var(--gutter)) 0;
    padding: 2px var(--gutter); }
  .k-chips::-webkit-scrollbar { display: none; }
  .k-chip { flex: none; }
  .k-ba-wrap, .k-pricing, .k-faq { padding-top: 110px; }
  .kb-card { padding: 16px 14px 18px; }
  .kb-pair { grid-template-columns: minmax(0, 1fr); }
  .kb-to { height: 30px; } .kb-to .ms { transform: rotate(90deg); } .kb-card:hover .kb-to .ms { transform: rotate(90deg); }
  .k-stagecard { border-radius: 18px; }
  /* the picture: the window in miniature, then the step's piece as a card (site.js) */
  .k-stagecard .k-story-vis { background: var(--bg2); padding-top: 16px; }
  .k-mini { display: block; position: relative; z-index: 1; height: clamp(84px, 14svh, 112px); margin: 0 16px; }
  .k-beam { display: block; }
  .k-stagecard .k-screen { z-index: 1; margin-top: 14px; aspect-ratio: auto; max-height: none; height: var(--mh, clamp(240px, calc(100svh - 430px), 470px)); background: transparent; }
  .k-stagecard .k-screen > .k-cam { background: transparent; }
  .k-hops { bottom: 12px; padding: 10px 8px; max-width: calc(100% - 20px); }
  .k-hop { flex-direction: column; gap: 5px; padding: 0 2px; } .k-hop b { font-size: 11px; }
  .k-ok { left: calc(50% + 6px); top: -4px; } .k-link { flex: 1 1 6px; min-width: 4px; margin-bottom: 18px; }
  .k-foot .k-brand { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .k-cam.moving > .app, .k-ring, .k-step.on.run .k-bar i, .k-screen > .k-cam, .k-hops { transition: none !important; }
  .k-tap.go, .kb-cur { animation: none; }
  /* scenes jump to their last frame: what fades out stays gone (the expired code, the flash over the error) */
  .js .k-bas .kb-card.play * { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* ---------- Motion: things come in as you reach them ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 70ms); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .k-stagecard.rv { transform: translateY(36px) scale(.985); }
  .js .k-stagecard.rv.in { transform: none; }
  .k-hero > * { animation: k-rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .k-hero > .k-helm { animation-delay: 0s; } .k-hero > .k-h1 { animation-delay: .08s; } .k-hero > .k-lead { animation-delay: .16s; }
  .k-hero > .k-req { animation-delay: .32s; }
  .k-hero > .k-ctas { animation-delay: .24s; } .k-hero > .k-meta { animation-delay: .3s; } .k-hero > .k-stage { animation-delay: .38s; animation-duration: 1.3s; }
  .k-hero > .k-chips { animation-delay: .6s; }
  .k-glow { animation: k-breathe 9s ease-in-out infinite alternate; }
  .k-screen > .k-cam { transition: opacity .55s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transform: scale(.975); }
  .k-screen > .k-cam.on { transform: none; }
}
@keyframes k-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes k-breathe { from { transform: scale(1) translateY(0); opacity: .45; } to { transform: scale(1.06) translateY(-12px); opacity: .6; } }

/* Visually hidden, read by screen readers */
.k-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 404 */
.k-404 { max-width: 560px; margin: 0 auto; padding: 18vh var(--gutter, 24px) 80px; text-align: center; }
.k-404-n { margin: 22px 0 0; font: 600 14px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .2em; color: var(--ink3); }
.k-404 h1 { margin: 14px 0 0; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.035em; line-height: 1.08; }
.k-404 h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.k-404 p { margin: 14px 0 0; color: var(--ink2); font-size: 17px; }
.k-404 .k-btn { margin-top: 12px; }
.k-404 section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }

/* The live hero: a hint under the window (only where demo.js runs) */
.k-live { display: none; margin: 70px auto -24px; font-size: 13.5px; color: var(--ink2); align-items: center; justify-content: center; gap: 7px; }
.k-live .ms { font-size: 18px; color: var(--accent); }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .js .k-live { display: flex; } }

/* «Before → after»: the plate under a code prompt (TerminalCodePlate), in the card's terms */
.kb-pl { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 6px; padding: 6px 6px 6px 10px; border-radius: 10px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 2px 8px rgba(0, 0, 0, .18); font-family: Inter, system-ui, sans-serif; white-space: nowrap; }
.kb-pli .ms { font-size: 17px; color: #6e6ad8; transform: scaleX(-1); display: inline-block; }
.kb-plt b { display: block; font-size: 12px; font-weight: 600; color: var(--ink); } .kb-plt em { font-style: normal; font-size: 10.5px; color: var(--ink2); }
.kb-plb { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; border-radius: 11px; background: #3b82f7; color: #fff; font-size: 11.5px; font-weight: 600; }
.kb-plb i { font-style: normal; opacity: .65; font-weight: 500; color: #fff !important; }
.kb-term .g { color: var(--green, #34c759); }

/* ---------- Marketing pass (2026-11-06) ---------- */
/* the end: one more call after the questions */
.k-final { max-width: 1200px; margin: 0 auto; padding: 140px var(--gutter) 0; }
.k-final-in { padding: 56px 28px 50px; border-radius: 26px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%), var(--card);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 30%, var(--line)); }
.k-final .k-h2-sub { margin-left: auto; margin-right: auto; }
.k-final .k-ctas { margin-top: 26px; }
.k-final .k-req { margin-top: 14px; }

/* /features/ and /privacy/ */
.k-doc { display: block; }
.k-dochead { max-width: 1240px; margin: 0 auto; padding: 72px var(--gutter) 0; text-align: center; }
.k-dochead h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -.045em; }
.k-dochead .k-chips { margin-top: 40px; }
.k-fsec { max-width: 1240px; margin: 0 auto; padding: 110px var(--gutter) 0; scroll-margin-top: 30px; }
.k-fsec + .k-fsec { margin-top: 0; }
.k-fsec h2 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.035em; max-width: 900px; }
.k-fsec .k-sub { margin-top: 16px; max-width: 820px; }
.k-fsec .k-proofs { padding-top: 32px; border-top: 1px solid var(--line); }
.k-fsec-go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.k-fsec-go .k-btn.sm:not(.ghost) .ms { color: inherit; }
.k-pvs { max-width: 820px; margin: 0 auto; padding: 56px var(--gutter) 0; display: grid; gap: 14px; }
.k-pv { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 26px 28px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.k-pv > .ms { font-size: 24px; color: var(--accentInk); }
.k-pv h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.k-pv p { margin: 6px 0 0; font-size: 16px; color: var(--ink2); }
.k-pv-more { margin: 18px 0 0; text-align: center; font-size: 14.5px; color: var(--ink2); }
.k-pv-more a, .k-q p a { color: var(--accentInk) !important; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .k-final { padding-top: 100px; }
  .k-final-in { padding: 40px 18px 36px; }
  .k-final .k-btn { width: 100%; }
  .k-pv { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; gap: 8px; }
  .k-fsec { padding-top: 80px; }
}

/* The section bar (2026-11-18): under the header while you read the sections, the one on screen marked; site.js shows it */
.k-secbar { position: fixed; top: 60px; left: 0; right: 0; z-index: 49; display: flex; justify-content: center; height: 46px;
  background: color-mix(in oklab, var(--bg) 80%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
  transition: opacity .25s, transform .25s, visibility 0s .25s; }
.k-secbar.on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s, transform .25s; }
.k-secbar-in { display: flex; align-items: center; gap: 2px; max-width: 100%; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.k-secbar-in::-webkit-scrollbar { display: none; }
.k-secbar a { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 11px; border-radius: 99px; font-size: 13.5px;
  color: var(--ink2); white-space: nowrap; transition: color .2s, background .2s; }
.k-secbar a .ms { font-size: 17px; color: var(--ink3); transition: color .2s; }
.k-secbar a:hover { color: var(--ink); }
.k-secbar a.cur { color: var(--ink); background: color-mix(in oklab, var(--ink) 7%, transparent); }
.k-secbar a.cur .ms { color: var(--accentInk); }
.secbar-on .k-nav.stuck { border-bottom-color: transparent; }
html.secbar-on { scroll-padding-top: 122px; }
@media (max-width: 640px) { .k-secbar { height: 44px; } .k-secbar a { padding: 6px 10px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .k-secbar, .k-secbar.on { transition: none; } }

/* Phones (2026-11-18, the user): no window replicas — at this width they are too small to read. The hero keeps its
   text and buttons, «Sound familiar?» its two captions, each section its text, its steps as a numbered list and its points. */
@media (max-width: 640px) {
  .k-stage, .k-live, .k-story-vis, .kb-pane, .kb-to { display: none !important; }
  .k-hero .k-chips { margin-top: 36px; }
  .kb-pair { gap: 14px; }
  .kb-cap::before { content: attr(data-l); display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #e5534b; }
  .kb-cap.now::before { color: var(--ok); }
  .k-stagecard { margin-top: 26px; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .k-steps { display: block; border-top: 0; -webkit-mask-image: none !important; mask-image: none !important; }
  .k-steps li, .k-steps li.r0, .k-steps li.r2, .k-steps li.t0, .k-steps li.t2 { border: 0; }
  .k-step { cursor: default; pointer-events: none; padding: 9px 0; }
  .k-step .k-bar { display: none; }
  .k-step.on { background: none; }
  .k-step.on .k-n { background: none; color: var(--ink3); box-shadow: inset 0 0 0 1px var(--line); }
  .k-step .k-st b { color: var(--ink); }
  .k-step .k-st span { color: var(--ink2); }
}
