/* Kiawak — light mode: white with blue accents; dark mode: near-black with blue accents. */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root, [data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f6;
  --ink: #0e0f12;
  --ink-2: #2b2f38;
  --muted: #5a606c;
  --line: #e3e6ec;
  --line-strong: #cfd4dd;
  --accent: #2f54eb;
  --accent-ink: #ffffff;
  --accent-hover: #2445cc;
  --accent-soft: #eaf0ff;
  --accent-text: #2445cc;
  --accent-2: #00a6c8;
  --good: #0f8a5f;
  --warn: #b25e00;
  --danger: #c4314b;
  --shadow: 0 1px 2px rgba(14, 15, 18, .05), 0 8px 28px rgba(14, 15, 18, .07);
  --shadow-lg: 0 2px 6px rgba(14, 15, 18, .06), 0 24px 60px rgba(14, 15, 18, .12);
  --band: #0e0f12;
  --band-ink: #f5f5f3;
  --grid: rgba(14, 15, 18, .06);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0e0f12;
  --bg-alt: #13151a;
  --surface: #16181d;
  --surface-2: #1d2027;
  --ink: #f5f5f3;
  --ink-2: #d9dbe0;
  --muted: #a0a6b2;
  --line: #262a33;
  --line-strong: #353a45;
  --accent: #5b7bff;
  --accent-ink: #0b0d14;
  --accent-hover: #7b95ff;
  --accent-soft: #1a2148;
  --accent-text: #8ea4ff;
  --accent-2: #38d1f0;
  --good: #3fcf94;
  --warn: #f0a24a;
  --danger: #ff6b84;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .55);
  --band: #16181d;
  --band-ink: #f5f5f3;
  --grid: rgba(255, 255, 255, .05);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; transition: background-color .25s, color .25s; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, .h2, .h3 { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 600; }
h2, .h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 600; }
h3, .h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .88em; background: var(--surface-2); padding: .1em .35em; border-radius: 6px; }
.lead { font-size: 1.16rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; justify-content: center; }
.mt { margin-top: 32px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow, .narrow { max-width: 860px; }
.section { padding: 96px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.eyebrow { display: inline-block; font: 500 .8rem/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); margin-bottom: 14px; }
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); margin-right: 10px; vertical-align: 1px; }
.eyebrow-light { color: #b9c6ff; }
.eyebrow-light::before { background: #fff; }

/* Logo: dark wordmark in light mode, light wordmark in dark mode */
.logo { display: inline-block; position: relative; }
.logo img { height: 30px; width: auto; }
.logo .logo-paper { display: none; }
[data-theme="dark"] .logo .logo-ink { display: none; }
[data-theme="dark"] .logo .logo-paper { display: block; }
.logo-footer img { height: 34px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.active { background: var(--accent-soft); color: var(--accent-text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.theme-toggle .when-dark { display: none; }
[data-theme="dark"] .theme-toggle .when-light { display: none; }
[data-theme="dark"] .theme-toggle .when-dark { display: block; }
.menu-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent; font: 600 .98rem/1.2 "Inter", sans-serif; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.02rem; }
.btn-small { min-height: 38px; padding: 8px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-light { background: #fff; color: #0e0f12; }
.btn-light:hover { background: #eaf0ff; color: #0e0f12; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.card.mini { padding: 22px; }
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.service-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .2s, border-color .2s, box-shadow .2s; }
.service-card p { color: var(--muted); flex: 1; }
.service-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow-lg); color: var(--ink); }
.service-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 18px; }
.service-icon.big { width: 60px; height: 60px; border-radius: 16px; }
.service-price { font: 500 .85rem/1 "JetBrains Mono", monospace; color: var(--accent-text); }
.card-arrow { position: absolute; top: 28px; right: 26px; color: var(--muted); transition: transform .2s, color .2s; }
.service-card:hover .card-arrow { transform: translateX(4px); color: var(--accent-text); }

/* Lists */
.ticks, .ticks-light { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.ticks li, .ticks-light li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: var(--accent-text); flex-shrink: 0; margin-top: 3px; }
.ticks-light .ic { color: #b9c6ff; flex-shrink: 0; margin-top: 3px; }
.notes { color: var(--muted); font-size: .92rem; padding-left: 18px; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; font-size: .92rem; }
.chip:hover { background: var(--accent-hover); color: var(--accent-ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); pointer-events: none; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-top: 22px; }
.hl { color: var(--accent-text); position: relative; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .95rem; }
.hero-ticks li { display: flex; align-items: center; gap: 6px; }
.hero-ticks .ic { color: var(--good); }
.pilot-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); text-decoration: none; font-weight: 600; font-size: .9rem; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.pilot-pill:hover { color: var(--accent); border-color: var(--accent); }
.seats { display: inline-flex; gap: 4px; }
.seat { width: 10px; height: 10px; border-radius: 3px; background: var(--line-strong); transform: rotate(45deg); }
.seat.free { background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }

.hero-console { position: relative; padding: 0; overflow: hidden; backdrop-filter: blur(6px); background: color-mix(in srgb, var(--surface) 92%, transparent); }
.console-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.console-head .muted { margin-left: auto; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: live 1.8s infinite; flex-shrink: 0; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
.console-feed { list-style: none; margin: 0; padding: 14px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.console-feed li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); animation: feedIn .5s ease both; font-size: .93rem; }
.console-feed li .t { font: 500 .78rem/1.5 "JetBrains Mono", monospace; color: var(--muted); }
.console-feed li .k { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); grid-row: span 2; }
.console-feed li strong { font-weight: 600; }
.console-feed li.out { animation: feedOut .4s ease both; }
@keyframes feedIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes feedOut { to { opacity: 0; transform: translateY(-8px); height: 0; padding: 0; margin: -5px 0; } }
.console-wave { height: 64px; border-top: 1px solid var(--line); }
.console-wave canvas { width: 100%; height: 100%; }

/* Page hero */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 0%, var(--accent-soft), transparent 55%); }
.page-hero h1 { max-width: 900px; }

/* Interactive flow */
.flow { padding: 24px; }
.flow-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.flow-tabs button, .seg span { cursor: pointer; }
.flow-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 .93rem "Inter", sans-serif; transition: background .15s, color .15s; }
.flow-tabs button[aria-selected="true"] { background: var(--surface); color: var(--accent-text); }
.flow-svg { width: 100%; height: auto; margin: 10px 0 4px; overflow: visible; }
.flow-line { stroke: var(--line-strong); stroke-width: 3; fill: none; stroke-dasharray: 6 8; }
.flow-line-active { stroke: var(--accent); stroke-width: 4; fill: none; stroke-dasharray: 600; stroke-dashoffset: 600; stroke-linecap: round; }
.flow-node circle:first-child { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 2; transition: fill .3s, stroke .3s; }
.flow-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-origin: center; }
.flow-num { text-anchor: middle; font: 600 20px "Space Grotesk", sans-serif; fill: var(--muted); transition: fill .3s; }
.flow-node.on circle:first-child { fill: var(--accent); stroke: var(--accent); }
.flow-node.on .flow-num { fill: var(--accent-ink); }
.flow-node.on .flow-ring { animation: ring 1s ease-out; }
@keyframes ring { from { opacity: .8; transform: scale(.8); } to { opacity: 0; transform: scale(1.4); } }
.flow-dot { fill: var(--accent-2); filter: drop-shadow(0 0 6px var(--accent-2)); }
.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-steps li { padding: 14px; border-radius: 12px; border: 1px solid var(--line); opacity: .45; transition: opacity .4s, border-color .4s, background .4s; }
.flow-steps li.on { opacity: 1; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--accent-soft); }
.flow-steps strong { display: block; font-family: "Space Grotesk", sans-serif; margin-bottom: 4px; }
.flow-steps span { font-size: .92rem; color: var(--ink-2); }
.flow-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* Calculators */
.roi, .minutes { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.roi-inputs { display: grid; gap: 22px; align-content: start; }
.field-range label { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; margin-bottom: 8px; }
.field-range output { font: 600 1rem "JetBrains Mono", monospace; color: var(--accent-text); white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--fill, 50%) 100% no-repeat, var(--line); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-shadow: var(--shadow); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); cursor: grab; }
.roi-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.seg-wrap { flex-wrap: wrap; margin-bottom: 22px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: .93rem; color: var(--ink-2); transition: background .15s, color .15s; }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg-lg span { padding: 10px 22px; font-size: 1rem; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 46px; height: 26px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .2s; flex-shrink: 0; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .switch-ui { background: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 16px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi.accent { background: var(--accent); color: var(--accent-ink); }
.kpi-label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.kpi.accent .kpi-label, .kpi.accent .kpi-sub { color: inherit; opacity: .85; }
.kpi-value { font: 600 clamp(1.3rem, 2.4vw, 1.75rem)/1.15 "Space Grotesk", sans-serif; letter-spacing: -.02em; }
.kpi-sub { font-size: .8rem; color: var(--muted); }
.roi-chart { margin: 0 0 12px; }
.roi-chart svg { width: 100%; height: auto; overflow: visible; }
.roi-chart figcaption, .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.lg { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: -10px; }
.lg-save { background: var(--accent); }
.lg-cost { background: var(--muted); }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font: 500 11px "JetBrains Mono", monospace; }
.chart-save { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.chart-save-area { fill: var(--accent); opacity: .12; }
.chart-cost { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 6 5; }
.chart-break { fill: var(--accent-2); stroke: var(--surface); stroke-width: 3; }
.chart-break-label { fill: var(--ink); font: 600 12px "Inter", sans-serif; }
.meter { position: relative; height: 16px; border-radius: 999px; background: var(--surface-2); margin: 6px 0 22px; overflow: hidden; }
.meter span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width .3s; }
.meter i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); opacity: .6; }

/* Process */
.process-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.process-step { position: relative; z-index: 1; text-align: left; display: grid; gap: 4px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.process-step:hover { border-color: var(--accent); }
.process-step.active { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); font: 600 1rem "Space Grotesk", sans-serif; margin-bottom: 6px; transition: background .2s, color .2s; }
.process-step.active .step-num { background: var(--accent); color: var(--accent-ink); }
.step-title { font: 600 1.05rem "Space Grotesk", sans-serif; }
.step-time { font: 500 .78rem "JetBrains Mono", monospace; color: var(--muted); }
.process-bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.process-bar span { display: block; height: 100%; width: 25%; background: var(--accent); transition: width .4s; }
.process-panels { margin-top: 20px; }
.process-panel { padding: 24px 28px; border-radius: 16px; background: var(--accent-soft); animation: feedIn .35s ease both; }
.process-panel h3 { margin-bottom: .3em; }
.process-panel p { margin: 0; color: var(--ink-2); }

/* Pilot */
.pilot-band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.pilot-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; background: var(--accent); transform: rotate(45deg); opacity: .18; border-radius: 40px; }
.pilot-band h2, .pilot-band .lead { color: var(--band-ink); }
.pilot-band .lead { opacity: .85; }
.pilot-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.pilot-seats-big { display: grid; gap: 14px; text-align: center; }
.seat-card { padding: 22px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.3); display: grid; gap: 2px; }
.seat-card strong { font: 600 1.6rem "Space Grotesk", sans-serif; }
.seat-card.free { border: 1px solid #fff; background: rgba(91, 123, 255, .25); }
.seat-no { font: 500 .8rem "JetBrains Mono", monospace; opacity: .75; }
.pilot-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.seat-board { text-align: center; display: grid; gap: 14px; }
.seat-board-row { display: flex; justify-content: center; gap: 18px; }
.seat-xl { width: 100px; height: 100px; display: grid; place-items: center; align-content: center; border-radius: 22px; border: 2px dashed var(--line-strong); color: var(--muted); }
.seat-xl span { font: 600 2rem "Space Grotesk", sans-serif; line-height: 1; }
.seat-xl.free { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent-text); animation: pulse 2.4s infinite; }
.compare { display: grid; gap: 18px; }
.cmp-row { display: grid; grid-template-columns: 110px 1fr 110px; gap: 16px; align-items: center; }
.cmp-name { font: 600 1.05rem "Space Grotesk", sans-serif; }
.cmp-bars { display: grid; gap: 6px; }
.cmp-bar { height: 30px; width: 0; border-radius: 8px; display: flex; align-items: center; padding: 0 10px; font: 600 .82rem "JetBrains Mono", monospace; white-space: nowrap; transition: width 1.1s cubic-bezier(.2,.8,.2,1); overflow: visible; }
.cmp-bar.normal { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-strong); }
.cmp-bar.pilot { background: var(--accent); color: var(--accent-ink); }
.compare.in .cmp-bar { width: var(--w); }
.cmp-save { font: 600 .95rem "JetBrains Mono", monospace; color: var(--good); text-align: right; }

/* Pricing */
.price-toggle-row { display: flex; justify-content: center; margin-bottom: 32px; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card h2 { font-size: 1.6rem; margin-bottom: .2em; }
.price-card .ticks { flex: 1; margin-top: 18px; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.badge { position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--accent-ink); font: 600 .78rem "Inter", sans-serif; padding: 5px 12px; border-radius: 999px; }
.price-figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pf-label { font-size: .85rem; color: var(--muted); width: 100%; }
.pf-value { font: 600 2rem/1.1 "Space Grotesk", sans-serif; letter-spacing: -.02em; }
.pf-value.small-v { font-size: 1.45rem; }
.pf-old { color: var(--muted); font-size: .95rem; }
.pricing.pilot .pf-value { color: var(--accent-text); }
.configurator { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; }
.config-items { display: grid; gap: 10px; }
.cfg-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.cfg-item:hover { border-color: var(--accent); }
.cfg-item.on { border-color: var(--accent); background: var(--accent-soft); }
.cfg-item input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.cfg-item .cfg-name { flex: 1; font-weight: 500; }
.cfg-item .cfg-price { font: 500 .85rem "JetBrains Mono", monospace; color: var(--muted); text-align: right; }
.cfg-qty { display: inline-flex; align-items: center; gap: 6px; }
.cfg-qty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 700; }
.config-sum { display: grid; gap: 18px; align-content: start; }
.config-sum .kpis { grid-template-columns: 1fr 1fr; margin: 0; }
.config-bars { display: grid; gap: 8px; }
.cb { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.cb span { display: block; height: 100%; width: 0; background: var(--muted); border-radius: 999px; transition: width .35s; }
.cb-m span { background: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td:nth-child(2) { font: 600 .95rem "JetBrains Mono", monospace; white-space: nowrap; }
.price-table td:last-child { color: var(--muted); font-size: .93rem; }

/* Services detail */
.service-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.price-box { display: grid; gap: 4px; padding: 16px; border-radius: 12px; background: var(--accent-soft); }
.price-main { font: 600 1.35rem "Space Grotesk", sans-serif; color: var(--accent-text); }

/* CTA */
.cta-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 48px; border-radius: 24px; background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: 40px; top: -60px; width: 160px; height: 160px; background: rgba(255,255,255,.12); transform: rotate(45deg); border-radius: 24px; }
[data-theme="dark"] .cta-band { background: linear-gradient(135deg, #2f54eb, #1b2f8f); }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.cta-band p { color: rgba(255,255,255,.88); margin: 0; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* About */
.about-teaser { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: center; }
.portrait { width: 100%; border-radius: 24px; object-fit: cover; aspect-ratio: 1 / 1.03; box-shadow: var(--shadow-lg); }
.about-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.portrait-wrap { position: relative; }
.portrait-tag { position: absolute; left: 18px; bottom: 18px; display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); }
.portrait-tag .ic { color: var(--accent-text); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); }
.tl-when { font: 600 .85rem "JetBrains Mono", monospace; color: var(--accent-text); }
.timeline p { margin: 2px 0 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--accent); transition: transform .2s; }
.faq-plus::after { transform: rotate(90deg); }
.faq details[open] .faq-plus::after { transform: rotate(0); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-2); }

/* Forms */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .95rem; }
input, textarea, select { font: inherit; color: var(--ink); }
.field input, .field textarea, .chat-form input, .voice-type input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .chat-form input:focus, .voice-type input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.form-status { margin: 0; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--danger); }
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 24px; align-items: start; }
.contact-aside { display: grid; gap: 16px; }
.contact-aside .h3 { font-size: 1.1rem; }
.contact-aside p { color: var(--ink-2); margin-bottom: .6em; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: .93rem; }
.notice.error { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.login-section { min-height: calc(100vh - 72px - 300px); display: grid; align-items: center; }
.login-wrap { max-width: 460px; }
.login-icon { border-radius: 14px; }

/* Phone page */
.phone-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.phone-number { font-size: 1.15rem; font-weight: 600; }
.voice-demo { display: grid; gap: 14px; }
.voice-head { display: flex; align-items: center; gap: 10px; }
.voice-orb { height: 200px; border-radius: 16px; background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 70%); }
.voice-orb canvas { width: 100%; height: 100%; }
.voice-state { text-align: center; margin: 0; font-weight: 500; min-height: 3em; }
.voice-log { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.voice-log:empty { display: none; }
.voice-type { display: flex; gap: 8px; }
.callflow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.cf-node { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 .93rem "Inter", sans-serif; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.cf-node:hover { border-color: var(--accent); }
.cf-node.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cf-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font: 600 .85rem "Space Grotesk", sans-serif; }
.cf-node.active .cf-num { background: rgba(255,255,255,.22); color: inherit; }
.cf-link { width: 22px; height: 2px; background: var(--line-strong); }
.cf-detail { font-size: 1.08rem; animation: feedIn .3s ease both; }

/* Chat widget */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.chat-fab { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: 600 1rem "Inter", sans-serif; cursor: pointer; box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent); position: relative; transition: transform .2s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab-dot { position: absolute; top: 8px; left: 38px; width: 10px; height: 10px; border-radius: 50%; background: var(--good); border: 2px solid var(--accent); }
.chat[data-open="true"] .chat-fab { display: none; }
.chat-panel { position: fixed; right: 20px; bottom: 20px; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: chatIn .25s ease both; }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head > div:nth-child(2) { display: grid; flex: 1; }
.chat-avatar img { border-radius: 10px; }
.chat-status { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.chat-status .live-dot { width: 7px; height: 7px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: var(--surface-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.err { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.msg a { color: inherit; font-weight: 600; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat-suggest button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 500 .85rem "Inter", sans-serif; cursor: pointer; }
.chat-suggest button:hover { background: var(--accent-hover); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-send { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-note { margin: 0; padding: 0 14px 12px; font-size: .75rem; color: var(--muted); }

/* Admin */
.admin-hero { padding: 48px 0 40px; }
.admin-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.admin-stats .kpi-value { display: block; margin: 4px 0; }
.spark { width: 100%; height: 40px; margin-top: 8px; }
.spark rect { fill: var(--accent); }
.admin-list { display: grid; gap: 10px; }
.admin-item { padding: 0; }
.admin-item summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 16px 20px; }
.admin-item summary::-webkit-details-marker { display: none; }
.admin-item[open] summary { border-bottom: 1px solid var(--line); }
.admin-item .admin-dl, .admin-item .btn-row, .admin-item .call-log { margin: 0; padding: 16px 20px; }
.admin-item .btn-row { padding-top: 0; }
.admin-dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; }
.admin-dl dt { color: var(--muted); font-size: .9rem; }
.admin-dl dd { margin: 0; }
.pre { white-space: pre-wrap; }
.tag { font: 600 .75rem "Inter", sans-serif; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.tag-pilot { background: var(--accent); color: var(--accent-ink); }
.tag-rueckruf { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.status { font-size: .8rem; font-weight: 600; margin-left: auto; }
.status-new { color: var(--accent-text); }
.status-wip { color: var(--warn); }
.status-done { color: var(--good); }
.empty { color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; }
.checklist p { margin: 2px 0 0; }
.cl-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--warn); }
.checklist .ok .cl-dot { background: var(--good); }
.call-log .msg { margin-bottom: 8px; }
.call-log { display: flex; flex-direction: column; }

/* Legal */
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal p { color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 64px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid a:not(.logo) { display: block; color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent-text); }
.footer-brand p { color: var(--muted); max-width: 340px; margin-top: 16px; }
.footer-h { font: 500 .78rem "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .main-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-120%); transition: transform .25s; margin: 0; }
  .main-nav.open { transform: none; }
  .nav-link { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-grid, .roi, .minutes, .pilot-grid, .pilot-hero, .service-grid, .about-teaser, .about-hero, .phone-hero-grid, .configurator, .contact-grid, .two-col, .cta-band { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .process-track { grid-template-columns: 1fr 1fr; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-teaser .portrait, .about-hero .portrait { max-width: 360px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 64px; gap: 10px; }
  .main-nav { inset: 64px 0 auto 0; }
  .logo img { height: 24px; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 8px 11px; }
  .cards-3, .cards-4, .form-grid, .kpis, .footer-grid { grid-template-columns: 1fr; }
  .config-sum .kpis { grid-template-columns: 1fr 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .cta-band { padding: 32px 22px; }
  .cmp-row { grid-template-columns: 1fr; gap: 6px; }
  .cmp-save { text-align: left; }
  .chat { right: 12px; bottom: 12px; }
  .chat-fab-label { display: none; }
  .chat-fab { padding: 0 16px; }
  .chat-fab-dot { left: 30px; }
  .chat-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100dvh - 80px); }
  .cf-link { display: none; }
  .cfg-item { flex-wrap: wrap; }
  .cfg-item .cfg-name { min-width: 0; flex-basis: calc(100% - 40px); }
  .cfg-item .cfg-price { width: 100%; text-align: left; padding-left: 34px; }
  .cfg-qty { margin-left: 34px; }
  .hl { white-space: normal; }
  .seat-xl { width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
