/* Speakeys website — single stylesheet, no framework. */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f6f4ef;
  --paper-2: #efece5;
  --surface: #ffffff;
  --ink: #0e1726;
  --ink-2: #4a5465;
  --ink-3: #646b78;
  --ink-4: #9aa0aa; /* decorative only */
  --line: #e2ded5;
  --line-2: #d6d1c6;
  --navy: #13213b;
  --navy-2: #1c2f52;
  --blue: #2c5fbf;
  --blue-soft: #d7e3f8;
  --ai: #c8552a;
  --ai-soft: #f6e2d8;
  --ai-text: #a3431c;
  --rec: #e5484d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(14, 23, 38, 0.04), 0 12px 32px -12px rgba(14, 23, 38, 0.18);
  --shadow-lg: 0 2px 0 rgba(14, 23, 38, 0.03), 0 40px 80px -30px rgba(14, 23, 38, 0.35);
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sym: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Apple Symbols', 'Segoe UI Symbol', 'DejaVu Sans', sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.lead { text-wrap: pretty; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue-soft); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sym { font-family: var(--sym); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 500; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-dark { background: var(--navy); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 16px -8px rgba(19,33,59,.6); }
.btn-dark:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); background: rgba(255,255,255,.6); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ---------- Language hint ---------- */
.lang-hint { background: var(--navy); color: #dfe6f3; font-size: 14px; }
.lang-hint-inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; position: relative; padding-right: 36px; }
.lang-hint a { color: #fff; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; text-underline-offset: 3px; }
.lang-hint a svg { width: 15px; height: 15px; }
.lang-hint-close { position: absolute; right: 0; top: 50%; translate: 0 -50%; background: none; border: 0; color: #9fb0cc; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,244,239,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 20px; letter-spacing: -0.03em; }
.brand .mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 30px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); transition: color .15s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; }
.lang-switch > * { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--ink-3); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch [aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14,23,38,.08); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 96px; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.55); font-size: 14px; color: var(--ink-2); margin-bottom: 28px; }
.badge-mark { width: 22px; height: 22px; }
h1 { font-size: clamp(44px, 7.4vw, 98px); letter-spacing: -0.05em; line-height: 0.96; }
.h1-line { display: block; }
.h1-accent { color: var(--blue); }
.hero .lead { margin-top: 28px; max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.hero-meta li { display: inline-flex; align-items: center; gap: 22px; }
.hero-meta li + li::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); margin-left: -12px; margin-right: -10px; }

/* ---------- Demo stage ---------- */
.stage {
  position: relative; margin-top: 56px; border-radius: 26px; overflow: hidden;
  aspect-ratio: 16 / 9.4; min-height: 520px;
  background:
    radial-gradient(120% 90% at 15% 0%, #3a5f97 0%, transparent 55%),
    radial-gradient(100% 80% at 100% 100%, #c97b55 0%, transparent 50%),
    linear-gradient(160deg, #1d2f50 0%, #2b4774 45%, #6d7f97 100%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.stage::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.stage-menubar { position: absolute; inset: 0 0 auto; height: 30px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; background: rgba(20,28,45,.35); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: rgba(255,255,255,.92); font-size: 13px; }
.smb-left, .smb-right { display: flex; align-items: center; gap: 18px; }
.smb-app { display: grid; place-items: center; width: 26px; height: 20px; border-radius: 5px; transition: background-color .2s; }
.smb-app svg { width: 17px; height: 17px; }
.smb-app.is-active { background: rgba(255,255,255,.22); }

.mail {
  position: absolute; left: 50%; top: 13%; translate: -50% 0;
  width: min(640px, 82%); background: var(--surface); border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 30px 60px -20px rgba(0,0,0,.5);
  font-size: 15px;
}
.mail-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: #f3f2ef; border-bottom: 1px solid #e6e4df; }
.mail-bar b { margin-left: auto; margin-right: auto; translate: -26px 0; font-weight: 600; font-size: 13px; color: #555; }
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl-r { background: #ff5f57; } .tl-y { background: #febc2e; } .tl-g { background: #28c840; }
.mail-field { padding: 9px 20px; border-bottom: 1px solid #eeece8; color: var(--ink); font-size: 14px; }
.mail-field span { color: var(--ink-3); margin-right: 8px; }
.mail-body { padding: 18px 20px 24px; min-height: 168px; line-height: 1.6; color: var(--ink); }
.mail-text mark { background: #b3d1ff; color: inherit; border-radius: 2px; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--blue); vertical-align: -0.2em; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
.caret-static { animation: none; margin-right: 8px; }
@keyframes blink { 50% { opacity: 0; } }

.speech {
  position: absolute; left: 4%; bottom: calc(7% + 80px); width: min(300px, 26%);
  background: rgba(255,255,255,.96); border-radius: 16px 16px 16px 4px; padding: 12px 16px 14px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.45);
  opacity: 0; translate: 0 8px; transition: opacity .3s, translate .3s;
}
.speech.is-visible { opacity: 1; translate: 0 0; }
.speech-label { display: flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.speech-label svg { width: 14px; height: 14px; }
.speech-text { font-size: 15px; line-height: 1.45; color: var(--ink); }
.speech.is-ai .speech-label { color: var(--ai-text); }

.demo-keys { position: absolute; left: 4%; bottom: 7%; display: flex; gap: 10px; }
.dk {
  width: 68px; height: 62px; border-radius: 10px; display: flex; flex-direction: column; justify-content: space-between; padding: 7px 9px;
  background: linear-gradient(#fbfbfa, #ecebe8); color: #3c4250;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.35), 0 3px 0 #b9b7b1, 0 6px 14px -4px rgba(0,0,0,.4);
  transition: translate .12s, box-shadow .12s, background .12s, color .12s;
}
.dk .sym { font-size: 19px; line-height: 1; align-self: flex-end; }
.dk small { font-size: 11px; color: inherit; opacity: .75; }
.dk.is-down { translate: 0 3px; box-shadow: 0 0 0 .5px rgba(0,0,0,.35), 0 0 0 #b9b7b1, 0 2px 6px -2px rgba(0,0,0,.4); }
.dk[data-demo-key="dict"].is-down { background: linear-gradient(#3b6ccc, var(--blue)); color: #fff; }
.dk[data-demo-key="ai"].is-down { background: linear-gradient(#d86a3e, var(--ai)); color: #fff; }

.hud {
  position: absolute; left: 50%; bottom: 8%; translate: -50% 12px;
  display: flex; align-items: center; gap: 10px; height: 44px; min-width: 240px; padding: 0 16px;
  background: rgba(28,30,36,.82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: #fff; border-radius: 14px; font-size: 13px; font-weight: 500;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.12), 0 16px 32px -12px rgba(0,0,0,.6);
  opacity: 0; transition: opacity .25s, translate .25s;
}
.hud.is-visible { opacity: 1; translate: -50% 0; }
.hud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); flex: none; }
.hud.is-ai .hud-dot { background: none; width: auto; height: auto; }
.hud.is-ai .hud-dot::before { content: '✦'; font-family: var(--sym); color: #ffb08a; font-size: 13px; }
.hud.is-busy .hud-dot { background: none; border: 1.5px solid rgba(255,255,255,.35); border-top-color: #fff; width: 12px; height: 12px; animation: spin .8s linear infinite; }
.hud-label { white-space: nowrap; }
.hud-level { flex: 1; min-width: 70px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.hud-level i { display: block; height: 100%; width: 6%; border-radius: 3px; background: #fff; transition: width .09s linear; }
.hud.is-busy .hud-level, .hud.is-busy-text .hud-level { display: none; }
.hud.is-busy { justify-content: center; }
.hud-level-low i { width: 8%; }
.hud-static { position: static; translate: none; opacity: 1; display: inline-flex; }
@keyframes spin { to { rotate: 360deg; } }

.demo-controls { position: absolute; right: 4%; bottom: 7%; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(14,20,34,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.seg-btn { position: relative; overflow: hidden; border: 0; background: transparent; color: rgba(255,255,255,.78); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.seg-btn[aria-selected="true"] { background: rgba(255,255,255,.95); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 128px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head-left { margin: 0; text-align: left; }
.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 20px; }
h2 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.04em; }
.section-head .lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }

/* ---------- Keyboard ---------- */
.keyboard { max-width: 900px; margin: 0 auto; padding: 22px 22px 52px; border-radius: 22px; background: #d9d6cf; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.06); }
.kb-row { display: flex; gap: 8px; height: 76px; }
.kc {
  position: relative; flex: 1 0 0; min-width: 0; border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(#fdfcfa, #f1efea); color: #5a606b;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.18), 0 2px 0 #bdb9b0;
}
.kc-sym { font-size: 18px; line-height: 1; align-self: flex-end; }
.kc-sub { font-size: 11.5px; letter-spacing: .01em; }
.kc-fn .kc-sym { font-family: var(--font); font-size: 13px; align-self: flex-start; }
.kc-cmd { flex-grow: 1.3; }
.kc-space { flex-grow: 5.2; }
.kc-ai { background: linear-gradient(#d9673b, var(--ai)); color: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 2px 0 #8f3a1b, 0 10px 24px -8px rgba(200,85,42,.6); }
.kc-dict { background: linear-gradient(#3d6fd0, var(--blue)); color: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 2px 0 #1b3f86, 0 10px 24px -8px rgba(44,95,191,.6); }
.kc-ralt { background: repeating-linear-gradient(-45deg, #f4f2ee 0 6px, #ebe8e2 6px 12px); color: var(--ink-4); }
.kc-arrows { flex: 2.6 0 0; display: flex; gap: 6px; align-items: flex-end; }
.kc-arrow { height: 36px; padding: 0; display: grid; place-items: center; font-size: 9px; }
.kc-ud { flex: 1 0 0; display: flex; flex-direction: column; gap: 4px; height: 100%; }
.kc-ud .kc-arrow { height: auto; flex: 1; }
.kc-tag { position: absolute; left: 50%; top: calc(100% + 14px); translate: -50% 0; white-space: nowrap; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.kc-ai .kc-tag { color: var(--ai-text); }
.kc-dict .kc-tag { color: var(--blue); }

.key-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 40px auto 0; }
.key-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.key-card-key { display: inline-block; font: 500 13px/1 var(--mono); letter-spacing: .04em; padding: 7px 10px; border-radius: 8px; margin-bottom: 18px; }
.key-card-dict .key-card-key { color: var(--blue); background: var(--blue-soft); }
.key-card-ai .key-card-key { color: var(--ai-text); background: var(--ai-soft); }
.key-card h3 { margin-bottom: 10px; }
.key-card p:last-child { color: var(--ink-2); }
.key-notes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 6px 4px 0; font-size: 15px; color: var(--ink-2); }
.key-notes li { display: flex; gap: 10px; align-items: flex-start; }
.key-notes svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--blue); }

/* ---------- AI examples ---------- */
.ai-demo { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.seg-light { background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; justify-content: center; border-radius: 22px; }
.seg-light .seg-btn { color: var(--ink-2); }
.seg-light .seg-btn:hover { color: var(--ink); }
.seg-light .seg-btn[aria-selected="true"] { background: var(--navy); color: #fff; }
.ai-panel { width: 100%; margin-top: 36px; }
.ai-panel:not([hidden]) { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; translate: 0 8px; } }
.ai-say { display: flex; align-items: center; gap: 16px; justify-content: center; margin-bottom: 28px; }
.ai-say-label { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ai-text); background: var(--ai-soft); padding: 7px 10px; border-radius: 8px; flex: none; }
.ai-say-label svg { width: 14px; height: 14px; }
.ai-say p { font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -0.02em; font-weight: 500; }
.ai-cols { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 16px; align-items: stretch; }
.ai-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 30px; }
.ai-after { border-color: transparent; box-shadow: var(--shadow), 0 0 0 1.5px var(--navy); }
.ai-card-label { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.ai-text { white-space: pre-line; font-size: 16.5px; line-height: 1.65; }
.ai-before .ai-text { color: var(--ink-2); }
.ai-text mark { background: var(--blue-soft); color: inherit; padding: 1px 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ai-empty { color: var(--ink-3) !important; font-style: italic; display: flex; align-items: center; }
.ai-arrow { display: grid; place-items: center; color: var(--ink-3); }
.ai-arrow svg { width: 26px; height: 26px; }

/* ---------- Apps ---------- */
.section-apps { padding-bottom: 112px; }
.app-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; max-width: 1040px; margin: 0 auto; }
.app-grid li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 6px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: #5f646e; transition: color .2s, border-color .2s, translate .2s; }
.app-grid li:hover { color: var(--ink); border-color: var(--line-2); translate: 0 -2px; }
.app-grid svg { width: 28px; height: 28px; }
.app-grid span { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.app-note { text-align: center; margin-top: 32px; color: var(--ink-3); font-size: 15px; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 30px; display: flex; flex-direction: column; }
.feature-visual { height: 228px; border-radius: 12px; background: var(--paper); margin-bottom: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; overflow: hidden; }
.feature h3, .feature p { padding: 0 14px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: 16px; }

.mini-menu { width: min(100%, 290px); background: rgba(255,255,255,.96); border-radius: 10px; padding: 5px; font-size: 13px; box-shadow: 0 0 0 .5px rgba(0,0,0,.14), 0 10px 28px -10px rgba(14,23,38,.3); }
.mm-row { display: flex; align-items: center; gap: 4px; padding: 4px 8px 4px 2px; border-radius: 5px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.mm-row > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.mm-check { width: 16px; flex: none; text-align: center; font-size: 12px; }
.mm-row.is-dim { color: var(--ink-4); }
.mm-row.is-hl { background: var(--blue); color: #fff; }
.mm-k { margin-left: auto; color: var(--ink-3); }
.mm-sep { height: 1px; background: #e6e4df; margin: 4px 8px; }
.menubar-mini { width: min(100%, 290px); display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 4px 10px; font-size: 12px; color: var(--ink-2); background: rgba(255,255,255,.7); border-radius: 7px; }
.mb-wave { display: grid; place-items: center; background: rgba(14,23,38,.1); border-radius: 4px; padding: 1px 4px; color: var(--ink); }
.mb-wave svg { width: 15px; height: 15px; }

.code-card { width: min(100%, 300px); background: var(--navy); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 28px -10px rgba(14,23,38,.5); }
.code-bar { display: flex; align-items: center; gap: 6px; padding: 9px 10px; background: rgba(255,255,255,.06); }
.code-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.code-bar em { font: normal 11.5px var(--mono); color: rgba(255,255,255,.55); margin-left: 8px; }
.code-card pre { margin: 0; padding: 12px 14px 14px; font: 12.5px/1.65 var(--mono); color: #e7ecf5; white-space: pre; overflow: hidden; }
.c-com { color: #7d8ba3; }
.c-bad { color: #ffab8e; text-decoration: line-through; text-decoration-color: rgba(255,171,142,.5); }
.c-op { color: #7d8ba3; }
.c-good { color: #8fd3a8; }

.filter-card { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.filter-card .hud { min-width: 220px; }
.filter-out { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); padding: 0 !important; }
.filter-out span { font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ai-text); background: var(--ai-soft); padding: 5px 7px; border-radius: 6px; }

/* ---------- Privacy ---------- */
.section-dark { background: var(--navy); color: #fff; }
.section-dark .eyebrow { color: #8fb1f0; }
.section-dark .lead { color: #b9c4d8; }
.privacy-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; gap: 18px 14px; align-items: center; }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); text-align: center; }
.flow-node svg { width: 30px; height: 30px; color: #cfe0ff; margin-bottom: 6px; }
.flow-node span { font-weight: 600; }
.flow-node small { font: 12px var(--mono); color: #8e9bb3; }
.flow-line { position: relative; width: 90px; height: 2px; background: repeating-linear-gradient(90deg, #8fb1f0 0 6px, transparent 6px 11px); background-size: 22px 2px; animation: flow 1s linear infinite; }
.flow-line::after { content: ''; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid #8fb1f0; border-right: 0; }
.flow-line span { position: absolute; left: 50%; top: -24px; translate: -50% 0; font: 11.5px var(--mono); color: #8fb1f0; }
@keyframes flow { to { background-position: 22px 0; } }
.flow-none { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 12px; padding: 14px; border-style: dashed; background: transparent; }
.flow-none svg { width: 22px; height: 22px; margin: 0; color: #8e9bb3; }
.flow-none span { font-weight: 500; color: #b9c4d8; }
.privacy-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 80px; padding-top: 48px; border-top: 1px solid rgba(255,255,255,.12); }
.privacy-items h3 { font-size: 19px; margin-bottom: 10px; }
.privacy-items p { color: #b9c4d8; font-size: 16px; }
.eu-card { margin-top: 56px; padding: 32px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.eu-head { display: flex; gap: 20px; align-items: flex-start; }
.eu-mark { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #1f3a8a; color: #ffd84d; }
.eu-mark svg { width: 34px; height: 34px; }
.eu-head h3 { font-size: 21px; margin-bottom: 8px; }
.eu-head p { color: #b9c4d8; font-size: 16px; max-width: 820px; }
.eu-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; margin: 28px 0 22px; }
.eu-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #dfe6f3; }
.eu-points svg { width: 18px; height: 18px; flex: none; color: #8fb1f0; margin-top: 2px; }
.section-dark .eu-more { color: #cfe0ff; }
.privacy-engine { margin-top: 48px; font-size: 14.5px; color: #8e9bb3; max-width: 820px; }
.privacy-engine a { color: #cfe0ff; display: inline-flex; align-items: center; gap: 4px; text-underline-offset: 3px; white-space: nowrap; }
.privacy-engine svg { width: 15px; height: 15px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: flex; flex-direction: column; }
.plan-lifetime { border-color: transparent; box-shadow: var(--shadow), 0 0 0 1.5px var(--navy); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-top h3 { font-size: 20px; }
.plan-badge { font: 500 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 6px 9px; border-radius: 7px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.plan-price span { font-size: 52px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.plan-price small { color: var(--ink-3); font-size: 15px; }
.plan-note { color: var(--ink-3); font-size: 14.5px; margin-top: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan .checks { flex: 1; margin: 24px 0 30px; }
.checks { display: grid; gap: 12px; align-content: start; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 2px; }
.plans-smallprint { text-align: center; max-width: 720px; margin: 24px auto 0; color: var(--ink-3); font-size: 14.5px; }
.plans-smallprint a, .eu-more { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 500; text-underline-offset: 3px; white-space: nowrap; }
.plans-smallprint svg, .eu-more svg { width: 15px; height: 15px; }
.team-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 880px; margin: 40px auto 0; padding: 26px 30px; border: 1px solid var(--line-2); border-radius: 18px; }
.team-strip h3 { font-size: 18px; margin-bottom: 6px; }
.team-strip p { color: var(--ink-2); font-size: 15.5px; }
.requirements { text-align: center; margin-top: 32px; color: var(--ink-3); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: 110px; }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list details:first-child { border-top: 1px solid var(--line-2); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 18.5px; font-weight: 500; letter-spacing: -0.015em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 1.6px; background: var(--ink-2); border-radius: 1px; transition: rotate .2s; }
.faq-icon::after { rotate: 90deg; }
details[open] .faq-icon::after { rotate: 0deg; }
.faq-list details p { padding: 0 48px 26px 0; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.final { padding: 140px 0; text-align: center; }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-mark { width: 76px; height: 76px; margin-bottom: 32px; filter: drop-shadow(0 16px 24px rgba(19,33,59,.3)); }
.final h2 { max-width: 14ch; margin-bottom: 36px; font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.045em; }
.final p { margin-top: 16px; color: var(--ink-3); font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { margin-top: 14px; color: var(--ink-3); }
.footer-cols { display: flex; gap: 80px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { color: var(--ink-2); text-decoration: none; }
.footer-cols a:hover { color: var(--ink); }
.footer-title { font-weight: 600; margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }


/* ---------- Docs ---------- */
.docs-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.docs-hero h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.045em; }
.docs-hero .lead { margin-top: 18px; max-width: 640px; font-size: 19px; color: var(--ink-2); }
.cta-row-left { justify-content: flex-start; margin-top: 30px; }
.btn svg { flex: none; }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; padding: 48px 0 112px; align-items: start; }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; font-size: 14.5px; padding-right: 8px; }
.toc-group + .toc-group { margin-top: 22px; }
.toc-title { font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.toc a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { background: var(--paper-2); color: var(--ink); }
.toc a.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.doc-body { max-width: 760px; }
.doc-section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.doc-section h2 { position: relative; font-size: 30px; letter-spacing: -0.03em; margin-bottom: 20px; }
.doc-section h3 { font-size: 18px; margin: 28px 0 10px; }
.anchor { position: absolute; left: -26px; color: var(--ink-4); text-decoration: none; opacity: 0; transition: opacity .15s; }
.doc-section h2:hover .anchor { opacity: 1; }
.doc-body p, .doc-body li, .doc-body dd { color: var(--ink-2); line-height: 1.7; }
.doc-body p + p, .doc-body p + ul, .doc-body ul + p, .doc-body ol + p, .doc-body pre + p, .doc-body p + pre, .doc-body table + p { margin-top: 14px; }
.doc-body a { color: var(--blue); text-underline-offset: 3px; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body ul { list-style: disc; padding-left: 22px; margin: 12px 0; }
.doc-body ul li + li { margin-top: 6px; }
.doc-body ul.examples { list-style: none; padding: 0; display: grid; gap: 8px; }
.doc-body ul.examples li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--ink); }
.steps { counter-reset: step; margin: 16px 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.steps > li { counter-increment: step; position: relative; padding-left: 42px; min-width: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font); background: var(--navy); color: #fff; }
kbd { display: inline-block; min-width: 1.7em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface); font: 500 .86em/1.5 var(--sym); color: var(--ink); text-align: center; }
.ui { font-weight: 600; color: var(--ink); white-space: nowrap; }
.doc-body code { font: .88em/1.5 var(--mono); background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; color: var(--ink); }
.doc-body pre { max-width: 100%; margin: 14px 0; padding: 16px 18px; background: var(--navy); border-radius: 12px; overflow-x: auto; }
.doc-body pre code { background: none; border: 0; padding: 0; color: #e7ecf5; font-size: 13.5px; line-height: 1.7; white-space: pre; }
.doc-body pre .c-com { color: #7d8ba3; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-body th { font-weight: 600; color: var(--ink); background: var(--paper-2); }
.callout { margin: 18px 0; padding: 16px 18px; border-radius: 12px; background: var(--blue-soft); border: 1px solid #c2d4f3; }
.callout p { color: #22324f !important; }
.faq-dl dt { font-weight: 600; color: var(--ink); margin-top: 18px; }
.faq-dl dt:first-child { margin-top: 0; }
.faq-dl dd { margin: 6px 0 0; }
.doc-help { margin-top: 8px; font-size: 15px; }


/* ---------- Legal pages ---------- */
.legal-wrap { max-width: 820px; padding: 56px 0 112px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; }
.legal-meta { margin-top: 12px; color: var(--ink-3); font-size: 15px; }
.legal-draft { margin-bottom: 28px; padding: 12px 16px; border-radius: 12px; background: var(--ai-soft); color: var(--ai-text); font-weight: 500; font-size: 15px; }
.legal-summary { margin-top: 32px; padding: 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.legal-summary-title { font-weight: 600; margin-bottom: 10px; }
.legal-summary ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.legal-toc { margin: 32px 0 8px; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line); }
.legal-toc ol { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; font-size: 14.5px; }
.legal-toc li { break-inside: avoid; padding: 3px 0; }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }
.legal-section { padding-top: 40px; scroll-margin-top: 90px; }
.legal-section h2 { font-size: 23px; letter-spacing: -0.02em; margin-bottom: 14px; }
.legal-body ol { padding-left: 22px; display: grid; gap: 8px; margin: 10px 0; }
.legal-body ol ol { margin-top: 8px; }
.legal-body ul.defs { list-style: none; padding: 0; display: grid; gap: 10px; }
.legal-body table { font-size: 14.5px; }
.legal-body td { vertical-align: top; color: var(--ink-2); }
.legal-form { padding: 22px 24px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface); }
.legal-form p + p { margin-top: 10px; }
.footer-legal { width: 100%; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .app-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .eu-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 22px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .nav { display: none; }
  .section { padding: 96px 0; }
  .stage { aspect-ratio: auto; height: 600px; }
  .speech { left: 50%; translate: -50% 8px; bottom: 26%; width: min(88%, 380px); border-radius: 16px; }
  .speech.is-visible { translate: -50% 0; }
  .demo-keys { bottom: 12%; }
  .hud { bottom: 12%; }
  .demo-controls { right: 50%; translate: 50% 0; bottom: 3%; }
  .privacy-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-grid .section-head { position: static; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
  .toc { position: static; max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .toc-group + .toc-group { margin-top: 0; }
  .privacy-items { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .key-notes { grid-template-columns: 1fr; gap: 12px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .team-strip { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .header-inner { height: 60px; }
  .lang-switch { font-size: 12px; }
  .hero { padding: 48px 0 72px; }
  .hero-meta li + li::before { display: none; }
  .hero-meta { gap: 4px 16px; }
  .h1-seg { display: block; }
  :lang(pl) .h1-seg { display: inline; }
  .stage { margin-top: 48px; height: 620px; border-radius: 20px; }
  .feature-visual { height: 200px; }
  .kc-ai .kc-tag { left: 0; translate: none; }
  .kc-dict .kc-tag { left: auto; right: 0; translate: none; }
  .smb-left span { display: none; }
  .demo-keys { display: none; }
  .mail { width: 92%; top: 11%; font-size: 14px; }
  .mail-body { min-height: 150px; padding: 14px 16px 18px; font-size: 14px; }
  .mail-field { padding: 8px 16px; font-size: 13px; }
  .key-cards { grid-template-columns: 1fr; }
  .keyboard { padding: 12px; border-radius: 16px; overflow: hidden; }
  .kb-row { height: 58px; gap: 5px; }
  .kc { padding: 5px 6px; border-radius: 7px; }
  .kc-sub { display: none; }
  .kc-fn, .kc-arrows { display: none; }
  .kc:nth-child(2) { display: none; }
  .keyboard { padding-bottom: 44px; }
  .kc-tag { font-size: 12px; top: calc(100% + 11px); }
  .ai-cols { grid-template-columns: 1fr; }
  .ai-arrow { rotate: 90deg; height: 28px; }
  .ai-say { flex-direction: column; gap: 12px; text-align: center; }
  .seg-light .seg-btn { padding: 7px 12px; font-size: 13.5px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: 1fr; justify-items: stretch; }
  .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .app-grid li { padding: 14px 4px 10px; }
  .eu-card { padding: 24px; }
  .eu-head { flex-direction: column; }
  .eu-points { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 26px; }
  .plan-price span { font-size: 44px; }
  .flow-line { width: 2px; height: 44px; justify-self: center; background: repeating-linear-gradient(180deg, #8fb1f0 0 6px, transparent 6px 11px); animation: none; }
  .flow-line::after { right: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-top: 7px solid #8fb1f0; border-bottom: 0; }
  .flow-line span { top: 50%; left: 18px; translate: 0 -50%; }
  .faq-list summary { font-size: 17px; }
  .faq-list details p { padding-right: 0; }
  .footer-cols { gap: 48px; }
  .final { padding: 104px 0; }
  .toc { grid-template-columns: minmax(0, 1fr); }
  .legal-toc ol { columns: 1; }
  .legal-body table, .legal-body thead, .legal-body tbody, .legal-body tr, .legal-body td, .legal-body th { display: block; }
  .legal-body thead { display: none; }
  .legal-body tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal-body td { border: 0; padding: 3px 0; }
  .legal-body td:first-child { font-weight: 600; color: var(--ink); }
  .doc-section h2 { font-size: 25px; }
  .anchor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
