:root{
/* Brand */
--kb-electric:#2563EB;--kb-electric-dark:#1E40AF;--kb-coral:#FF6B6B;
/* Electric tints (oklch-derived for UI states) */
--kb-electric-50:#EFF6FF;--kb-electric-100:#DBEAFE;--kb-electric-200:#BFDBFE;
--kb-coral-50:#FFF0F0;
/* Neutrals */
--kb-paper:#F7FAFC;--kb-white:#FFFFFF;--kb-slate:#1A202C;--kb-slate-muted:#4A5568;--kb-slate-light:#E2E8F0;
--kb-slate-200:#CBD5E0;--kb-slate-400:#718096;
/* Semantic */
--kb-success:#10B981;--kb-warning:#F59E0B;--kb-error:#EF4444;
--kb-success-50:#ECFDF5;--kb-warning-50:#FFFBEB;--kb-error-50:#FEF2F2;
--kb-success-700:#047857;--kb-warning-700:#B45309;--kb-error-700:#B91C1C;

/* Semantic aliases */
--color-primary:var(--kb-electric);--color-primary-hover:var(--kb-electric-dark);--color-primary-subtle:var(--kb-electric-50);
--color-accent:var(--kb-coral);
--surface-canvas:var(--kb-paper);--surface-card:var(--kb-white);--surface-hover:var(--kb-paper);--surface-selected:var(--kb-electric-50);
--surface-inverse:var(--kb-slate);
--text-high:var(--kb-slate);--text-medium:var(--kb-slate-muted);--text-on-primary:var(--kb-white);--text-link:var(--kb-electric);--text-disabled:var(--kb-slate-400);
--border-default:var(--kb-slate-light);--border-strong:var(--kb-slate-200);--border-focus:var(--kb-electric);
--status-success:var(--kb-success);--status-warning:var(--kb-warning);--status-error:var(--kb-error);--status-live:var(--kb-coral);
--gradient-data:linear-gradient(90deg,var(--kb-electric) 0%,#60A5FA 100%);
}
:root{
--font-ui:"Plus Jakarta Sans",ui-sans-serif,system-ui,sans-serif;
--font-mono:"Roboto Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
--fw-regular:400; /* @kind font */
--fw-medium:500; /* @kind font */
--fw-semibold:600; /* @kind font */
--fw-bold:700; /* @kind font */

/* H1 Display */ --type-h1-size:36px;--type-h1-lh:1.2;--type-h1-weight:700;--type-h1-tracking:-0.01em;
/* H2 Section */ --type-h2-size:24px;--type-h2-lh:1.3;--type-h2-weight:600;--type-h2-tracking:-0.01em;
/* H3 Card title */ --type-h3-size:18px;--type-h3-lh:1.4;--type-h3-weight:600;--type-h3-tracking:0;
/* Body */ --type-body-size:15px;--type-body-lh:1.5;--type-body-weight:400;
/* UI / Button */ --type-ui-size:14px;--type-ui-lh:1;--type-ui-weight:500;--type-ui-tracking:0.01em;
/* Small UI (labels, metadata) */ --type-small-size:13px;--type-small-lh:1.4;
/* Transcript */ --type-transcript-size:14px;--type-transcript-lh:1.6;--type-transcript-weight:400;
/* Timestamp */ --type-timestamp-size:12px;--type-timestamp-lh:1;--type-timestamp-weight:500;
}
:root{
/* strict 8pt grid */
--space-1:8px;--space-2:16px;--space-3:24px;--space-4:32px;--space-6:48px;--space-8:64px;
--space-half:4px; /* micro-gaps inside controls only (icon↔label) */
--gutter:24px;
--radius-control:8px;--radius-card:8px;--radius-modal:12px;--radius-pill:999px;--radius-round:50%;
--control-height:44px;--control-height-sm:36px;
--border-width:1px;--focus-ring-width:2px;
--icon-stroke:1.5;--icon-size:20px;--icon-size-sm:16px;
}
:root{
--shadow-card:0 4px 6px -1px rgba(26,32,44,0.05);
--shadow-float:0 10px 15px -3px rgba(26,32,44,0.1);
--shadow-focus:0 0 0 2px var(--kb-electric);
--duration-fast:120ms; /* @kind other */
--duration-base:180ms; /* @kind other */
--duration-slow:260ms; /* @kind other */
--ease-standard:cubic-bezier(0.2,0,0,1); /* @kind other */
--ease-out:cubic-bezier(0,0,0.2,1); /* @kind other */
--overlay-scrim:rgba(26,32,44,0.4);
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0}
body{font-family:var(--font-ui);font-size:var(--type-body-size);line-height:var(--type-body-lh);color:var(--text-high);background:var(--surface-canvas);-webkit-font-smoothing:antialiased}
a{color:var(--text-link);text-decoration:none}a:hover{color:var(--color-primary-hover);text-decoration:underline}
.kb-h1{font-size:var(--type-h1-size);line-height:var(--type-h1-lh);font-weight:700;letter-spacing:var(--type-h1-tracking);margin:0}
.kb-h2{font-size:var(--type-h2-size);line-height:var(--type-h2-lh);font-weight:600;letter-spacing:var(--type-h2-tracking);margin:0}
.kb-h3{font-size:var(--type-h3-size);line-height:var(--type-h3-lh);font-weight:600;margin:0}
.kb-body{font-size:var(--type-body-size);line-height:var(--type-body-lh)}
.kb-meta{font-size:var(--type-small-size);color:var(--text-medium)}
.kb-mono{font-family:var(--font-mono);font-size:var(--type-transcript-size);line-height:var(--type-transcript-lh)}
.kb-timestamp{font-family:var(--font-mono);font-size:12px;line-height:1;font-weight:500;color:var(--text-medium)}

@keyframes sc-shine { 
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
x-dc { display: none !important; }
html, body { height: 100%; margin: 0px; }
.scp0:hover { color: var(--kb-electric) !important; }
.scp1:hover { box-shadow: rgba(26, 32, 44, 0.1) 0px 10px 15px -3px !important; }
.scp2:hover { border-color: var(--kb-electric) !important; box-shadow: rgba(26, 32, 44, 0.1) 0px 10px 15px -3px !important; }
.scp3:hover { background: var(--kb-electric-50) !important; border-color: var(--kb-electric) !important; }
.scp4:active { transform: scale(0.98) !important; }
.scp5:hover { background: var(--kb-paper) !important; }
.scp6:focus { border-color: transparent !important; box-shadow: 0 0 0 2px var(--kb-electric) !important; }
.scp7:hover { color: var(--kb-white) !important; }
:root { --kb-electric: #2563EB; --kb-electric-dark: #1E40AF; --kb-coral: #FF6B6B; --kb-electric-50: #EFF6FF; --kb-electric-100: #DBEAFE; --kb-electric-200: #BFDBFE; --kb-coral-50: #FFF0F0; --kb-paper: #F7FAFC; --kb-white: #FFFFFF; --kb-slate: #1A202C; --kb-slate-muted: #4A5568; --kb-slate-light: #E2E8F0; --kb-slate-200: #CBD5E0; --kb-slate-400: #718096; --kb-success: #10B981; --kb-warning: #F59E0B; --kb-error: #EF4444; --kb-success-50: #ECFDF5; --kb-warning-50: #FFFBEB; --kb-error-50: #FEF2F2; --kb-success-700: #047857; --kb-warning-700: #B45309; --kb-error-700: #B91C1C; --color-primary: var(--kb-electric); --color-primary-hover: var(--kb-electric-dark); --color-primary-subtle: var(--kb-electric-50); --color-accent: var(--kb-coral); --surface-canvas: var(--kb-paper); --surface-card: var(--kb-white); --surface-hover: var(--kb-paper); --surface-selected: var(--kb-electric-50); --surface-inverse: var(--kb-slate); --text-high: var(--kb-slate); --text-medium: var(--kb-slate-muted); --text-on-primary: var(--kb-white); --text-link: var(--kb-electric); --text-disabled: var(--kb-slate-400); --border-default: var(--kb-slate-light); --border-strong: var(--kb-slate-200); --border-focus: var(--kb-electric); --status-success: var(--kb-success); --status-warning: var(--kb-warning); --status-error: var(--kb-error); --status-live: var(--kb-coral); --gradient-data: linear-gradient(90deg,var(--kb-electric) 0%,#60A5FA 100%); }
:root { --font-ui: "Plus Jakarta Sans",ui-sans-serif,system-ui,sans-serif; --font-mono: "Roboto Mono",ui-monospace,SFMono-Regular,Menlo,monospace; --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --type-h1-size: 36px; --type-h1-lh: 1.2; --type-h1-weight: 700; --type-h1-tracking: -0.01em; --type-h2-size: 24px; --type-h2-lh: 1.3; --type-h2-weight: 600; --type-h2-tracking: -0.01em; --type-h3-size: 18px; --type-h3-lh: 1.4; --type-h3-weight: 600; --type-h3-tracking: 0; --type-body-size: 15px; --type-body-lh: 1.5; --type-body-weight: 400; --type-ui-size: 14px; --type-ui-lh: 1; --type-ui-weight: 500; --type-ui-tracking: 0.01em; --type-small-size: 13px; --type-small-lh: 1.4; --type-transcript-size: 14px; --type-transcript-lh: 1.6; --type-transcript-weight: 400; --type-timestamp-size: 12px; --type-timestamp-lh: 1; --type-timestamp-weight: 500; }
:root { --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-6: 48px; --space-8: 64px; --space-half: 4px; --gutter: 24px; --radius-control: 8px; --radius-card: 8px; --radius-modal: 12px; --radius-pill: 999px; --radius-round: 50%; --control-height: 44px; --control-height-sm: 36px; --border-width: 1px; --focus-ring-width: 2px; --icon-stroke: 1.5; --icon-size: 20px; --icon-size-sm: 16px; }
:root { --shadow-card: 0 4px 6px -1px rgba(26,32,44,0.05); --shadow-float: 0 10px 15px -3px rgba(26,32,44,0.1); --shadow-focus: 0 0 0 2px var(--kb-electric); --duration-fast: 120ms; --duration-base: 180ms; --duration-slow: 260ms; --ease-standard: cubic-bezier(0.2,0,0,1); --ease-out: cubic-bezier(0,0,0.2,1); --overlay-scrim: rgba(26,32,44,0.4); }
*, ::before, ::after { box-sizing: border-box; }
html, body { margin: 0px; }
body { font-family: var(--font-ui); font-size: var(--type-body-size); line-height: var(--type-body-lh); color: var(--text-high); background: var(--surface-canvas); -webkit-font-smoothing: antialiased; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--color-primary-hover); text-decoration: underline; }
.kb-h1 { font-size: var(--type-h1-size); line-height: var(--type-h1-lh); font-weight: 700; letter-spacing: var(--type-h1-tracking); margin: 0px; }
.kb-h2 { font-size: var(--type-h2-size); line-height: var(--type-h2-lh); font-weight: 600; letter-spacing: var(--type-h2-tracking); margin: 0px; }
.kb-h3 { font-size: var(--type-h3-size); line-height: var(--type-h3-lh); font-weight: 600; margin: 0px; }
.kb-body { font-size: var(--type-body-size); line-height: var(--type-body-lh); }
.kb-meta { font-size: var(--type-small-size); color: var(--text-medium); }
.kb-mono { font-family: var(--font-mono); font-size: var(--type-transcript-size); line-height: var(--type-transcript-lh); }
.kb-timestamp { font-family: var(--font-mono); font-size: 12px; line-height: 1; font-weight: 500; color: var(--text-medium); }
html { scroll-behavior: smooth; }
body { font-kerning: normal; text-rendering: optimizelegibility; }
button { font-family: inherit; }
@keyframes kbpulse { 
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (max-width: 719px) {
  .kb-flow { flex-direction: column !important; align-items: center !important; overflow-x: visible !important; gap: 4px !important; }
  .kb-flow-item { width: 100%; max-width: 340px; flex-direction: column !important; flex: 0 0 auto !important; }
  .kb-flow-step { width: 100%; flex: 0 0 auto !important; min-width: 0px !important; }
  .kb-flow-arrow { margin-top: 0px !important; transform: rotate(90deg); }
  .kb-how-line { display: none; }
}
/* Extras on top of the frozen design: behaviour the design runtime provided (hover, focus, reveal, responsive nav). */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--kb-slate); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
/* the design's inline-styled DS buttons carried their hover in JS */
.kb-btn:hover { filter: brightness(.93); }
.kb-btn:active { transform: scale(.98) !important; }
.kb-btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--kb-electric); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { border-color: transparent !important; box-shadow: 0 0 0 2px var(--kb-electric) !important; }
/* nav links collapse under 1200px, as in the design */
/* header menu */
.kb-navlinks { display: flex; gap: 4px; font-size: 15px; font-weight: 500; white-space: nowrap; margin: 0 auto; }
.kb-navlinks a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--kb-slate-muted); text-decoration: none; transition: color 150ms; }
.kb-navlinks a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--kb-electric); transform: scaleX(0); transition: transform 200ms cubic-bezier(.2, 0, 0, 1); }
.kb-navlinks a:hover, .kb-navlinks a.on { color: var(--kb-slate); }
.kb-navlinks a:hover::after, .kb-navlinks a.on::after { transform: scaleX(1); }
@media (max-width: 899px) { .kb-navlinks { display: none !important; } }
/* idle animation (hero visual); uses translate/rotate so the design's inline transforms stay */
@keyframes kbfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes kbwiggle { 0%, 80%, 100% { rotate: 0deg; } 86% { rotate: -10deg; } 92% { rotate: 8deg; } 96% { rotate: -4deg; } }
@keyframes kbrow { 0%, 70%, 100% { background: transparent; } 8%, 30% { background: var(--kb-electric-50); } }
@keyframes kbbadge { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes kbsway { 0%, 100% { translate: 0 0; } 50% { translate: 0 2.5px; } }
[data-screen-label="Hero"] [aria-hidden="true"] > div:first-child { animation: kbfloat 4s ease-in-out infinite, kbwiggle 6s ease-in-out infinite; }
[data-screen-label="Hero"] [aria-hidden="true"] > div:last-child > div { animation: kbfloat 5s ease-in-out infinite; }
[data-screen-label="Hero"] [aria-hidden="true"] > div:last-child > div:nth-child(2) { animation-delay: -2.5s; }
[data-screen-label="Hero"] [aria-hidden="true"] > div:last-child > div:nth-child(3) { animation-delay: -1.2s; }
[data-screen-label="Hero"] [aria-hidden="true"] > div:nth-child(2) > div:nth-child(2) > div { animation: kbrow 8s ease-in-out infinite; border-radius: 8px; }
[data-screen-label="Hero"] [aria-hidden="true"] > div:nth-child(2) > div:nth-child(2) > div:nth-child(2) { animation-delay: 2s; }
[data-screen-label="Hero"] [aria-hidden="true"] > div:nth-child(2) > div:nth-child(2) > div:nth-child(3) { animation-delay: 4s; }
[data-screen-label="Hero"] [aria-hidden="true"] > div:nth-child(2) > div:nth-child(2) > div:nth-child(4) { animation-delay: 6s; }
[data-screen-label="Hero"] [aria-hidden="true"] > div:nth-child(2) > div:nth-child(2) > div:nth-child(2) > span:last-child { animation: kbbadge 2s ease-in-out infinite; }
header svg[viewBox="0 0 32 40"] rect:first-child { animation: kbsway 3s ease-in-out infinite; }
header svg[viewBox="0 0 32 40"] rect:last-child { animation: kbsway 3s ease-in-out infinite reverse; }
/* SEO demo (site.js): typing caret, rows sliding in, badge pop, status line, growing chart */
@keyframes kbblink { 50% { opacity: 0; } }
@keyframes kbin { from { opacity: 0; translate: 0 10px; } }
@keyframes kbpop { 0% { scale: .4; opacity: 0; } 70% { scale: 1.12; } 100% { scale: 1; opacity: 1; } }
@keyframes kbgrow { 0% { scale: 1 0; } 25%, 85% { scale: 1 1; } 100% { scale: 1 0; } }
.kb-caret::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--kb-electric); animation: kbblink 1s steps(1) infinite; }
.kb-seo-in { animation: kbin 360ms cubic-bezier(.2, 0, 0, 1) both; }
.kb-pop { animation: kbpop 420ms cubic-bezier(.2, 0, 0, 1) both; }
.kb-seo-status { font-size: 13px; font-weight: 600; color: var(--kb-slate-muted); min-height: 18px; padding-left: 4px; }
.kb-seo-status.done { color: var(--kb-success-700); }
/* other section demos (site.js): items wait dimmed, then light up */
.kb-dim { opacity: .3; filter: grayscale(1); }
#agent .kb-flow-step, [data-screen-label="Before and after"] [data-reveal] > div > div, #funnel [aria-hidden] > *, #ecommerce [aria-hidden] span, #ecommerce [aria-hidden] > div > div { transition: opacity 400ms, filter 400ms; }
#seo [aria-hidden="true"] > div:last-child span[style*="gradient-data"] { transform-origin: bottom; animation: kbgrow 6s cubic-bezier(.2, 0, 0, 1) infinite both; }
#seo [aria-hidden="true"] > div:last-child > div:last-child > div:nth-child(2) span { animation-delay: .1s; }
#seo [aria-hidden="true"] > div:last-child > div:last-child > div:nth-child(3) span { animation-delay: .2s; }
#seo [aria-hidden="true"] > div:last-child > div:last-child > div:nth-child(4) span { animation-delay: .3s; }
#seo [aria-hidden="true"] > div:last-child > div:last-child > div:nth-child(5) span { animation-delay: .4s; }
#seo [aria-hidden="true"] > div:last-child > div:last-child > div:nth-child(6) span { animation-delay: .5s; }
.kb-err { font-size: 13px; color: var(--kb-error-700); }
/* scroll reveal: script adds .kb-pre to off-screen blocks, then .kb-in */
.kb-pre { opacity: 0; transform: translateY(24px); }
.kb-in { transition: opacity 480ms cubic-bezier(.2, 0, 0, 1), transform 480ms cubic-bezier(.2, 0, 0, 1); }
/* home footer: links to agent pages */
.kb-footlinks { max-width: 1120px; margin: 0 auto; padding: 0 24px 28px; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; }
.kb-footlinks a { color: var(--kb-slate-200); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.kb-footlinks a:hover { color: var(--kb-paper); text-decoration: underline; }
/* agent pages */
.ap { margin: 0; background: var(--kb-paper); color: var(--kb-slate); font-family: var(--font-ui); font-size: 17px; line-height: 1.65; }
.ap-top { max-width: 820px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ap-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--kb-slate); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.ap-main { max-width: 820px; margin: 0 auto; padding: 8px 24px 48px; }
.ap-crumb { font-size: 14px; color: var(--kb-slate-muted); }
.ap-crumb a, .ap-links a, .ap-foot a { color: var(--kb-electric); }
.ap h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 16px 0 12px; }
.ap h2 { font-size: 24px; letter-spacing: -0.01em; margin: 0 0 12px; }
.ap section { margin-top: 32px; padding: 24px; background: var(--kb-white); border: 1px solid var(--kb-slate-light); border-radius: 16px; }
.ap section > :last-child { margin-bottom: 0; }
.ap ul, .ap ol { padding-left: 20px; margin: 0; } .ap li + li { margin-top: 8px; }
.ap-lead { font-size: 20px; color: var(--kb-slate-muted); margin: 0 0 20px; }
.ap blockquote { margin: 0 0 12px; padding-left: 16px; border-left: 3px solid var(--kb-coral); font-style: italic; }
.ap-stat strong { font-size: 40px; color: var(--kb-electric); margin-right: 8px; }
.ap details { border-top: 1px solid var(--kb-slate-light); padding: 12px 0; } .ap details:first-of-type { border-top: 0; }
.ap summary { cursor: pointer; font-weight: 600; } .ap details p { margin: 8px 0 0; color: var(--kb-slate-muted); }
.ap-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 8px; background: var(--kb-electric); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.ap-btn:hover { background: var(--kb-electric-dark); }
.ap-cta { background: var(--kb-electric-50) !important; border-color: var(--kb-electric-100) !important; }
.ap-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ap-foot { max-width: 820px; margin: 0 auto; padding: 24px; font-size: 14px; color: var(--kb-slate-muted); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kb-pre { opacity: 1; transform: none; }
  .kb-in { transition: none; }
  [data-screen-label="Hero"] *, header svg rect, #seo * { animation: none !important; }
}
