/* Kavro website — shared styles (landing, account pages, dashboard). */

@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url('../assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url('../assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #0b0c0e;
  --bg-1: #0f1012;
  --surface: #141518;
  --surface-2: #1a1b1f;
  --surface-3: #232429;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --line-3: rgba(255, 255, 255, .18);
  --text: #e8e8eb;
  --text-2: #a1a1aa;
  --muted: #71717a;
  --accent: #00e0b8;
  --accent-ink: #022a22;
  --accent-soft: rgba(0, 224, 184, .1);
  --accent-line: rgba(0, 224, 184, .42);
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --orange: #fb923c;
  --pink: #f472b6;
  --danger: #f43f5e;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.6 var(--font);
  font-feature-settings: 'cv11', 'ss01', 'ss03'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
::selection { background: rgba(0, 224, 184, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }
.dim { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -40px; z-index: 100; padding: 6px 10px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r); font-weight: 600; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ buttons, small parts */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 550; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--line-3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #2debc8; border-color: #2debc8; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.danger { color: #fda4af; border-color: rgba(244, 63, 94, .35); background: rgba(244, 63, 94, .06); }
.btn.danger:hover { background: rgba(244, 63, 94, .12); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .arrow { transition: transform .15s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface); font: 500 11.5px var(--mono); color: var(--text-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { color: var(--accent); font-weight: 500; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2); background: rgba(255, 255, 255, .02); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 4px; font: 500 11px var(--mono); letter-spacing: .03em; border: 1px solid var(--line-2); color: var(--text-2); }
.chip.pro { color: var(--accent); border-color: var(--accent-line); }
.chip.free { color: var(--orange); border-color: rgba(251, 146, 60, .45); }
.chip.warn { color: var(--orange); border-color: rgba(251, 146, 60, .45); background: rgba(251, 146, 60, .08); }
.chip .icon { width: 12px; height: 12px; margin-right: 3px; vertical-align: -1px; }
.notice.warn { border-style: solid; border-color: rgba(251, 146, 60, .45); color: var(--text-2); }
.notice.warn .icon { color: var(--orange); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .2s var(--ease), border-color .2s var(--ease); }
.site-header.scrolled { background: rgba(11, 12, 14, .82); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; letter-spacing: -.01em; }
.brand img { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 6px 10px; border-radius: var(--r); font-size: 14px; color: var(--text-2); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 38px; height: 38px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); align-items: center; justify-content: center; margin-left: auto; }
@media (max-width: 880px) {
  .nav-links, .nav-actions .btn.ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions { margin-left: 0; }
  .site-header.open { background: var(--bg); }
  .site-header.open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 8px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-header.open .nav-links a { padding: 10px 0; font-size: 16px; }
}
@media (max-width: 520px) { .nav-actions .btn.primary { display: none; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: 56px; align-items: center; }
.hero h1 { margin-top: 22px; font-size: clamp(38px, 5.4vw, 62px); font-weight: 650; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 20px; max-width: 520px; font-size: 17.5px; line-height: 1.6; color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; font-size: 13px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--accent); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 48px; } }

/* live demo frame */
.demo { position: relative; }
.demo-frame { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-1); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.demo-bar .lights { display: flex; gap: 6px; }
.demo-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.demo-tabs { display: flex; gap: 2px; margin: 0 auto; padding: 2px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); }
.demo-tabs button { height: 24px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12.5px; }
.demo-tabs button:hover { color: var(--text); }
.demo-tabs button.on { background: var(--surface-3); color: var(--text); }
.demo-live { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); color: var(--accent); letter-spacing: .05em; }
.demo-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.demo-stage {
  position: relative; display: grid; place-items: center; padding: 28px; min-height: 380px;
  background-color: #08090a; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 16px 16px;
}
.demo-stage canvas { border-radius: 8px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); outline: none; }
.demo-foot { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); font-size: 12.5px; color: var(--muted); }
.demo-foot .grow { flex: 1; }
.themes { display: flex; gap: 6px; }
.themes button { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); padding: 0; background: var(--c); transition: transform .12s, box-shadow .12s; }
.themes button:hover { transform: scale(1.12); }
.themes button.on { box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 3px var(--text-2); }
.demo-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 5px 10px; border-radius: 99px; background: rgba(20, 21, 24, .9); border: 1px solid var(--line-2); font-size: 12px; color: var(--text-2); white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.demo-hint.hide { opacity: 0; }
@media (max-width: 560px) { .demo-stage { padding: 14px; min-height: 260px; } .demo-tabs button { padding: 0 7px; } .demo-bar .lights { display: none; } .demo-foot .hide-sm { display: none; } }

/* ------------------------------------------------------------------ facts strip */
.facts { border-block: 1px solid var(--line); background: var(--bg-1); }
.facts .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.fact { padding: 22px 20px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact span { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .facts .wrap { grid-template-columns: repeat(2, 1fr); } .fact { border-left: 0; padding-left: 0; } .fact:last-child { grid-column: span 2; } }

/* ------------------------------------------------------------------ sections */
section.block { padding: 112px 0 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 44px; }
.sec-head h2 { margin-top: 14px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; max-width: 560px; }
.sec-head p { color: var(--text-2); font-size: 16.5px; max-width: 520px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } section.block { padding-top: 80px; } }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.step { position: relative; padding: 26px 26px 28px; background: var(--bg-1); border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step .num { font: 500 12px var(--mono); color: var(--muted); }
.step h3 { margin-top: 18px; font-size: 18px; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }
.step .keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step { border-left: 0; border-top: 1px solid var(--line); } .step:first-child { border-top: 0; } }

/* product tour */
.tour { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-list { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 90px; }
.tour-item { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid transparent; border-radius: var(--r-lg); background: transparent; transition: background .15s, border-color .15s; }
.tour-item:hover { background: rgba(255, 255, 255, .025); }
.tour-item b { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.tour-item b span { font: 500 11.5px var(--mono); color: var(--muted); }
.tour-item p { margin-top: 6px; font-size: 13.5px; color: var(--muted); display: none; }
.tour-item.on { background: var(--surface); border-color: var(--line-2); }
.tour-item.on b { color: var(--text); }
.tour-item.on b span { color: var(--accent); }
.tour-item.on p { display: block; color: var(--text-2); }
.tour-item .bar { height: 2px; margin-top: 12px; border-radius: 2px; background: var(--line); overflow: hidden; display: none; }
.tour-item.on .bar { display: block; }
.tour-item .bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.tour-item.on.playing .bar i { animation: fill var(--t, 7s) linear forwards; }
@keyframes fill { to { width: 100%; } }
.tour-view { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-1); aspect-ratio: 1440 / 900; box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9); }
.tour-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .45s var(--ease); }
.tour-view img.on { opacity: 1; }
@media (max-width: 980px) {
  .tour { grid-template-columns: 1fr; }
  .tour-list { position: static; flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .tour-list::-webkit-scrollbar { display: none; }
  .tour-item { flex: none; padding: 8px 12px; }
  .tour-item p, .tour-item .bar { display: none !important; }
}

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 26px 26px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.feature:hover { background: rgba(255, 255, 255, .015); }
.feature .ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); color: var(--accent); }
.feature .ico svg { width: 17px; height: 17px; }
.feature h3 { margin-top: 18px; font-size: 16px; }
.feature p { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.feature ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.feature li { font: 500 11.5px var(--mono); color: var(--muted); padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* languages + generated code */
.code-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 28px; align-items: stretch; }
.langs { display: flex; flex-direction: column; gap: 10px; }
.lang { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); text-align: left; transition: border-color .15s, background .15s; }
.lang:hover { border-color: var(--line-2); }
.lang.on { border-color: var(--accent-line); background: var(--surface); }
.lang .badge { width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; font: 600 13px var(--mono); border: 1px solid var(--line-2); background: var(--surface-2); }
.lang b { font-size: 15px; }
.lang p { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.lang .stack { margin-top: 4px; font: 500 11.5px var(--mono); color: var(--muted); }
.codebox { display: flex; flex-direction: column; min-height: 460px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #0a0b0c; overflow: hidden; }
.codebox-head { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); font: 500 12px var(--mono); color: var(--text-2); }
.codebox-head .grow { flex: 1; }
.codebox pre { flex: 1; margin: 0; padding: 16px 0; overflow: auto; font: 400 12.5px/1.65 var(--mono); color: #c9c9cf; tab-size: 4; max-height: 520px; }
.codebox code { display: block; counter-reset: ln; }
.codebox .ln { display: block; padding: 0 18px 0 0; white-space: pre; }
.codebox .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 42px; padding-right: 16px; text-align: right; color: #3f4046; user-select: none; }
.tk-c { color: #6b6f78; font-style: italic; }
.tk-s { color: #8bd5a8; }
.tk-n { color: #f0b67f; }
.tk-k { color: #c49bff; }
.tk-f { color: #7cc7ff; }
.tk-p { color: #6b6f78; }
.copy { height: 26px; padding: 0 9px; border-radius: 4px; border: 1px solid var(--line-2); background: transparent; font: 500 11.5px var(--mono); color: var(--text-2); }
.copy:hover { color: var(--text); border-color: var(--line-3); }
@media (max-width: 980px) { .code-grid { grid-template-columns: 1fr; } }

/* ---- Kavro AI section: picture of the AI tab */
.aiw { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-1); overflow: hidden; box-shadow: 0 50px 120px -60px rgba(0, 0, 0, .95); position: relative; }
.aiw::before { content: ''; position: absolute; inset: -30% auto auto 30%; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(139, 92, 246, .12), transparent); pointer-events: none; }
.aiw-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); position: relative; }
.aiw-bar .grow { flex: 1; }
.aiw-dots { display: flex; gap: 6px; }
.aiw-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.aiw-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); }
.aiw-tabs span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 5px; font-size: 12.5px; color: var(--muted); }
.aiw-tabs span.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); font-weight: 600; }
.aiw-tabs .icon { width: 13px; height: 13px; }
.aiw-body { display: grid; grid-template-columns: 190px minmax(0, 1fr) 250px; min-height: 380px; position: relative; }
.aiw-sessions { display: flex; flex-direction: column; gap: 3px; padding: 12px 10px; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .012); }
.aiw-new { display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 8px; padding: 7px; border-radius: var(--r); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2); }
.aiw-new .icon { width: 13px; height: 13px; }
.aiw-s { display: flex; flex-direction: column; padding: 7px 9px; border-radius: var(--r); font-size: 12.5px; color: var(--text-2); }
.aiw-s b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aiw-s small { font-size: 11px; color: var(--muted); margin-top: 1px; }
.aiw-s.on { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.aiw-chat { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px; min-width: 0; }
.aiw-modes { display: flex; gap: 2px; padding: 3px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); align-self: flex-start; }
.aiw-modes span { padding: 3px 14px; border-radius: 5px; font-size: 12px; color: var(--muted); }
.aiw-modes span.on { background: var(--surface-3); color: var(--text); }
.aiw-you { align-self: flex-end; max-width: 86%; margin: 0; padding: 10px 12px; border-radius: 10px 10px 2px 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 13.5px; }
.aiw-live, .aiw-answer { max-width: 92%; padding: 11px 12px; border-radius: 10px 10px 10px 2px; background: var(--surface); border: 1px solid var(--line); }
.aiw-status { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.aiw-status .grow { flex: 1; }
.aiw-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: aiw-spin .8s linear infinite; flex: none; }
@keyframes aiw-spin { to { transform: rotate(360deg); } }
.aiw-time { font: 500 11.5px var(--mono); color: var(--muted); }
.aiw-think { margin: 8px 0 0; padding: 8px 10px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.aiw-thought { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.aiw-thought .icon { width: 11px; height: 11px; color: var(--violet); }
.aiw-answer p { margin: 6px 0 0; font-size: 13.5px; }
.aiw-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font: 500 11.5px var(--mono); color: var(--muted); }
.aiw-actions .grow { flex: 1; }
.aiw-btn { padding: 4px 11px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); font: 600 12px var(--font); }
.aiw-btn.ghost { background: transparent; color: var(--text-2); border: 1px solid var(--line-2); }
.aiw-input { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; }
.aiw-side { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; border-left: 1px solid var(--line); background: rgba(255, 255, 255, .012); }
.aiw-prev { position: relative; height: 128px; border-radius: var(--r); background: #15121f; border: 1px solid var(--line); overflow: hidden; transition: background .6s var(--ease); }
.aiw-prev i { position: absolute; left: 8px; top: 8px; bottom: 8px; width: 38%; border-radius: 6px; background: linear-gradient(160deg, var(--accent), var(--blue)); transition: background .6s var(--ease); }
.aiw-prev span { position: absolute; left: 50%; right: 10px; border-radius: 3px; background: rgba(255, 255, 255, .08); transition: background .6s var(--ease), border-radius .6s var(--ease); }
.aiw-prev .l1 { top: 18px; height: 7px; right: 26%; background: rgba(255, 255, 255, .5); }
.aiw-prev .l2 { top: 31px; height: 4px; right: 18%; }
.aiw-prev .f1 { top: 46px; height: 13px; }
.aiw-prev .f2 { top: 64px; height: 13px; }
.aiw-prev .sw { top: 84px; height: 7px; width: 18px; right: auto; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.aiw-prev .bt { top: 100px; height: 15px; background: linear-gradient(90deg, var(--accent), var(--blue)); }
/* the change is applied: the preview turns purple */
.aiw.applied .aiw-prev { background: #1a1029; }
.aiw.applied .aiw-prev i { background: linear-gradient(160deg, #a855f7, #6d28d9); }
.aiw.applied .aiw-prev .bt { background: linear-gradient(90deg, #a855f7, #7c3aed); border-radius: 8px; }
.aiw.applied .aiw-prev .sw { background: #a855f7; }
.aiw-opt { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.aiw-opt b { font-weight: 500; font-size: 12.5px; color: var(--text); }
.aiw-opt b.toggle { width: 26px; height: 15px; border-radius: 8px; background: var(--accent); position: relative; }
.aiw-opt b.toggle::after { content: ''; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent-ink); }
/* step-by-step playback */
.aiw.play .aiw-answer { display: none; }
.aiw.play.done .aiw-answer { display: block; animation: aiw-in .4s var(--ease); }
.aiw.play.done .aiw-live { display: none; }
@keyframes aiw-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ai-features { margin-top: 28px; }
.ai-providers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.ai-providers span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 12px var(--mono); color: var(--text-2); }
.ai-providers span em { font-style: normal; font-size: 10.5px; color: var(--accent); padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); }
@media (max-width: 980px) { .aiw-body { grid-template-columns: minmax(0, 1fr) 210px; } .aiw-sessions { display: none; } }
@media (max-width: 640px) { .aiw-body { grid-template-columns: 1fr; } .aiw-side { display: none; } .aiw-tabs span { padding: 4px 9px; } }

/* build pipeline */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pipe { padding: 22px; border-left: 1px solid var(--line); background: var(--bg-1); }
.pipe:first-child { border-left: 0; }
.pipe .k { font: 500 11.5px var(--mono); color: var(--muted); }
.pipe b { display: block; margin-top: 10px; font-size: 15px; }
.pipe p { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }
.pipe code { font: 500 12px var(--mono); color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 860px) { .pipeline { grid-template-columns: 1fr 1fr; } .pipe:nth-child(3) { border-left: 0; } .pipe:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { position: relative; padding: 28px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-1); display: flex; flex-direction: column; }
.plan.pro { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(0, 224, 184, .05), transparent 40%), var(--bg-1); }
.plan .name { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 16px; }
.plan .price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }
.plan .price b { font-size: 40px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .desc { margin-top: 8px; color: var(--text-2); font-size: 14px; min-height: 44px; }
.plan ul { margin: 22px 0 26px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); flex: none; }
.plan li.no { color: var(--muted); }
.plan li.no svg { color: var(--muted); }
.plan .btn { margin-top: auto; }
.compare-toggle { margin-top: 18px; }
.compare { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: none; }
.compare.open { display: block; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--surface); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 150px; }
.compare tr:last-child td { border-bottom: 0; }
.compare td { color: var(--text-2); }
.compare .y { color: var(--accent); }
.compare .n { color: #52525b; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .compare td:not(:first-child), .compare th:not(:first-child) { width: 90px; } }

/* faq */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 16px; font-weight: 550; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; flex: none; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq details p { padding: 0 40px 22px 0; color: var(--text-2); font-size: 15px; }
.faq code { font: 500 13px var(--mono); color: var(--text); }

/* closing call to action */
.cta { margin-top: 120px; padding: 64px 0; border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 120% at 50% 0%, rgba(0, 224, 184, .07), transparent 70%); text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.cta p { margin: 14px auto 0; max-width: 520px; color: var(--text-2); font-size: 16.5px; }
.cta .hero-cta { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-grid a:hover { color: var(--text); }
.foot-grid .slogan { margin-top: 14px; max-width: 260px; }
.foot-contact { margin-top: 12px; max-width: 260px; font-size: 13px; }
.foot-contact b { font: 500 13px var(--mono); color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } .foot-bottom { flex-direction: column; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .demo-live i, .tour-item.on.playing .bar i { animation: none; }
}

/* ------------------------------------------------------------------ account pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; display: flex; flex-direction: column; padding: 28px 48px 40px; border-right: 1px solid var(--line); background: var(--bg-1); overflow: hidden; }
.auth-side::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); opacity: .5; pointer-events: none; }
.auth-side > * { position: relative; }
.auth-side .quote { margin-top: auto; max-width: 440px; }
.auth-side .quote h2 { font-size: 30px; letter-spacing: -.03em; }
.auth-side .quote p { margin-top: 14px; color: var(--text-2); }
.auth-side .shot { margin-top: 34px; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.auth-side .shot img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; object-position: top left; }
.auth-main { display: flex; flex-direction: column; padding: 28px 48px 40px; }
.auth-main .top { display: flex; justify-content: flex-end; gap: 8px; font-size: 14px; color: var(--muted); align-items: center; }
.auth-main .top a { color: var(--text); }
.auth-form { width: min(100%, 380px); margin: auto; padding: 40px 0; }
.auth-form h1 { font-size: 28px; letter-spacing: -.03em; }
.auth-form > p { margin-top: 8px; color: var(--text-2); }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field .label { font-size: 13.5px; font-weight: 550; color: var(--text); display: flex; justify-content: space-between; }
.field label a { font-weight: 450; color: var(--text-2); }
.field label a:hover { color: var(--accent); }
.input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-1);
  font-size: 14.5px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #55565c; }
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.invalid { border-color: rgba(244, 63, 94, .7); }
.pw { position: relative; }
.pw .input { padding-right: 44px; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); border-radius: var(--r); display: grid; place-items: center; }
.pw button:hover { color: var(--text); }
.hint { font-size: 12.5px; color: var(--muted); }
.err { font-size: 12.5px; color: #fda4af; min-height: 0; }
.form-error { display: none; gap: 8px; padding: 10px 12px; border-radius: var(--r); border: 1px solid rgba(244, 63, 94, .35); background: rgba(244, 63, 94, .07); color: #fecdd3; font-size: 13.5px; }
.form-error.show { display: flex; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.strength i { height: 3px; border-radius: 2px; background: var(--surface-3); transition: background .2s; }
.strength[data-s="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-s="2"] i:nth-child(-n+2) { background: var(--orange); }
.strength[data-s="3"] i:nth-child(-n+3) { background: #facc15; }
.strength[data-s="4"] i { background: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { appearance: none; width: 16px; height: 16px; margin: 2px 0 0; flex: none; border-radius: 4px; border: 1px solid var(--line-3); background: var(--bg-1); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 8px; height: 4px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.divider { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(2, 42, 34, .3); border-top-color: var(--accent-ink); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r); border: 1px dashed var(--line-3); color: var(--muted); font-size: 12.5px; }
.notice svg { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.demo-creds { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-creds button { height: 26px; padding: 0 9px; border-radius: 4px; border: 1px solid var(--line-2); background: transparent; font: 500 11.5px var(--mono); color: var(--text-2); }
.demo-creds button:hover { border-color: var(--accent-line); color: var(--text); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-main { padding: 20px; } }

/* ------------------------------------------------------------------ dashboard */
.dash { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.dash-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--bg-1); }
.dash-side .brand { padding: 4px 8px 18px; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r); color: var(--text-2); font-size: 14px; transition: background .15s, color .15s; }
.dash-nav a svg { width: 17px; height: 17px; }
.dash-nav a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.dash-nav a.on { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.dash-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-weight: 600; font-size: 13px; color: var(--text); border: 1px solid var(--line-2); }
.dash-user .who { min-width: 0; flex: 1; }
.dash-user .who b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user .who span { font-size: 12px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: var(--r); border: 0; background: transparent; color: var(--muted); }
.icon-btn:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.dash-main { min-width: 0; padding: 0 40px 64px; }
.dash-top { display: flex; align-items: center; gap: 14px; height: 64px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.dash-top h1 { font-size: 18px; letter-spacing: -.01em; }
.dash-top .grow { flex: 1; }
.dash-menu { display: none; }
.view { display: none; flex-direction: column; gap: 20px; max-width: 1040px; }
.view.on { display: flex; }
.view > h2 { font-size: 26px; letter-spacing: -.03em; }
.view > .sub { color: var(--text-2); margin-top: -12px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); min-width: 0; }
.card.wide { grid-column: span 2; }
.card.full { grid-column: 1 / -1; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 14.5px; font-weight: 600; }
.card-head .grow { flex: 1; }
.card .label { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card .big { margin-top: 8px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card p { color: var(--text-2); font-size: 14px; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.license-key { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: #0a0b0c; font: 500 15px var(--mono); letter-spacing: .06em; }
.license-key .grow { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td b { color: var(--text); font-weight: 550; }
.table .r { text-align: right; }
.table-wrap { overflow-x: auto; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.status.off i { background: var(--muted); }
.empty { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-grid .card form { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.danger-zone { border-color: rgba(244, 63, 94, .3); }
.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.site-toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface-2); font-size: 13.5px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .9); animation: toastIn .25s var(--ease); }
.site-toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.site-toast.error i { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } }
.modal-back { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 8, .7); backdrop-filter: blur(4px); }
.modal { width: min(100%, 440px); padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }
.modal h3 { font-size: 18px; }
.modal p { margin-top: 8px; color: var(--text-2); font-size: 14px; }
.modal .row { justify-content: flex-end; margin-top: 22px; }
@media (max-width: 1080px) { .cards { grid-template-columns: 1fr 1fr; } .card.wide { grid-column: 1 / -1; } .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: fixed; z-index: 60; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .dash.menu-open .dash-side { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, .7); }
  .dash-menu { display: inline-grid; }
  .dash-main { padding: 0 18px 48px; }
  .cards { grid-template-columns: 1fr; }
}
.perks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks .icon { width: 16px; height: 16px; color: var(--accent); }

/* dashboard parts */
[hidden] { display: none !important; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: var(--accent); }
.dash-help { display: flex; flex-direction: column; gap: 2px; margin: auto 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dash-help a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: var(--r); color: var(--muted); font-size: 13px; }
.dash-help a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.dash-help .icon { width: 15px; height: 15px; }
.dash-user { margin-top: 0; }
.dash-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(5, 6, 8, .6); }
.cards.two { grid-template-columns: 1fr 1fr; }
.empty .icon { width: 26px; height: 26px; margin: 0 auto 10px; color: var(--line-3); }

.upgrade { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; border-color: var(--accent-line); background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(0, 224, 184, .08), transparent 60%), var(--bg-1); }
.upgrade h3 { margin-top: 12px; font-size: 20px; letter-spacing: -.02em; }
.upgrade p { margin-top: 6px; }
.upgrade .perks { margin-top: 16px; font-size: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.upgrade-buy { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding-left: 28px; border-left: 1px solid var(--line); }
.upgrade-buy .price b { display: block; font-size: 34px; font-weight: 650; letter-spacing: -.03em; }
.upgrade-buy .price span { font-size: 13px; color: var(--muted); }
.upgrade-buy .hint { text-align: center; }

.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps-list li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.steps-list li:first-child { border-top: 0; padding-top: 2px; }
.steps-list .tick { width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 50%; border: 1px solid var(--line-3); display: grid; place-items: center; }
.steps-list .tick .icon { width: 12px; height: 12px; stroke-width: 2.6; }
.steps-list li.done .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps-list div > b { display: block; font-size: 14px; font-weight: 550; }
.steps-list li.done div > b { color: var(--text-2); }
.steps-list div > span { display: block; font-size: 13px; color: var(--muted); }
.steps-list div > span b { color: var(--text-2); font-weight: 550; }

.table.kv td { padding: 10px 0; }
.table.kv td:first-child { width: 160px; color: var(--muted); font-size: 13.5px; }
.how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 14px; }
.how li::marker { color: var(--muted); font: 500 12px var(--mono); }
.how b { color: var(--text); font-weight: 550; }

.release-main { display: flex; align-items: center; gap: 16px; }
.release-main img { width: 48px; height: 48px; padding: 9px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.release-main .grow { flex: 1; min-width: 0; }
.release-main h3 { font-size: 18px; display: flex; align-items: center; }
.release-main p { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.release .notes { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.hash { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 8px 8px 12px; border-radius: var(--r); background: #0a0b0c; border: 1px solid var(--line); }
.hash code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-2); }
.spec { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.spec li:first-child { border-top: 0; padding-top: 0; }
.spec span { color: var(--muted); }
.spec b { font-weight: 500; text-align: right; }
.device { display: flex; align-items: center; gap: 12px; }
.device > .icon { width: 34px; height: 34px; padding: 8px; border-radius: var(--r); background: var(--surface-2); color: var(--text-2); }
.device span { display: block; font-size: 12.5px; color: var(--muted); }
.plan-now { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan-now b { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; }
@media (max-width: 1080px) { .upgrade { grid-template-columns: 1fr; } .upgrade-buy { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 760px) {
  .cards.two, .upgrade .perks { grid-template-columns: 1fr; }
  .plan-now { grid-template-columns: 1fr 1fr; }
  .release-main { flex-wrap: wrap; }
  .release-main .btn { width: 100%; }
  .table.kv td:first-child { width: 120px; }
  .dash-top .btn[data-download-top] { display: none; }
}
@media (max-width: 620px) { .table .col-sm-hide { display: none; } }
@media (max-width: 620px) { .device > .icon { display: none; } }
.auth.single { grid-template-columns: 1fr; }
.verify-bar { align-items: center; margin-bottom: 24px; max-width: 1040px; border-style: solid; border-color: rgba(251, 146, 60, .35); background: rgba(251, 146, 60, .05); color: var(--text-2); font-size: 13.5px; }
.verify-bar .icon { color: var(--orange); margin-top: 0; }
.verify-bar .grow { flex: 1; }
.verify-bar b { color: var(--text); font-weight: 550; }
/* "confirm your email" reminder: inside the sticky header on the landing page, sticky in the dashboard */
.verify-strip { background: #1b140c; border-bottom: 1px solid rgba(251, 146, 60, .3); color: var(--text-2); font-size: 13.5px; }
.verify-strip .wrap { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; }
.verify-strip .icon { color: var(--orange); }
.verify-strip .grow { flex: 1; }
.verify-strip b { color: var(--text); font-weight: 550; }
.verify-bar { position: sticky; top: 12px; z-index: 20; background: #1b140c; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8); }
@media (max-width: 560px) { .verify-strip .hide-xs { display: none; } }

/* ------------------------------------------------------------------ admin */
.cards.four { grid-template-columns: repeat(4, 1fr); }
.small { font-size: 12.5px; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.code-input { font-size: 26px; letter-spacing: .4em; text-align: center; height: 56px; }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.search { position: relative; flex: 1; min-width: 200px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.search .input { padding-left: 36px; }
.upload form { display: flex; flex-direction: column; gap: 14px; }
.drop { display: flex; align-items: center; gap: 14px; padding: 22px; border: 1px dashed var(--line-3); border-radius: var(--r-lg); cursor: pointer; color: var(--text-2); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent-line); background: var(--accent-soft); }
.drop.has { border-style: solid; }
.drop .icon { width: 22px; height: 22px; color: var(--accent); }
.drop b { color: var(--text); }
.upload-row { display: flex; gap: 12px; }
.upload-row .field:first-child { width: 140px; flex: none; }
.upload-row .grow { flex: 1; }
.progress { display: flex; align-items: center; gap: 12px; }
.progress .meter { flex: 1; margin: 0; }
.notes-cell { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev { font-size: 12px; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); }
.ev-bad { color: #fda4af; background: rgba(244, 63, 94, .08); }
.ev-admin { color: var(--accent); background: var(--accent-soft); }
.users-table tr[data-id] { cursor: pointer; }
.users-table tr[data-id]:hover td { background: rgba(255, 255, 255, .02); }
.users-table .avatar { width: 30px; height: 30px; font-size: 12px; }
.user-modal { width: min(100%, 620px); max-height: calc(100vh - 40px); overflow-y: auto; }
.user-modal h4 { margin-top: 22px; margin-bottom: 8px; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.user-modal .spec b { display: inline-flex; align-items: center; gap: 6px; }
.user-modal .spec .icon-btn { width: 24px; height: 24px; }
.user-modal .chips { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.user-actions { margin-top: 18px; gap: 8px; }
.user-activity .table { font-size: 13px; }
.seg { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r); width: fit-content; }
.seg label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 4px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.seg input { accent-color: var(--accent); }
.seg label:has(input:checked) { background: var(--surface-3); color: var(--text); }
.ann-preview .announce { border-radius: var(--r); border: 1px solid var(--line-2); }

/* announcement strip (website + preview in admin) */
.announce { background: #0f1a24; border-bottom: 1px solid rgba(59, 130, 246, .3); color: var(--text-2); font-size: 13.5px; }
.announce.warning { background: #1b140c; border-bottom-color: rgba(251, 146, 60, .3); }
.announce .wrap { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 0; }
.announce .icon { color: var(--blue); width: 15px; height: 15px; }
.announce.warning .icon { color: var(--orange); }
.ann-preview .announce .wrap { width: auto; padding: 8px 14px; }
@media (max-width: 1080px) { .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards.four { grid-template-columns: 1fr; } .upload-row { flex-direction: column; } .upload-row .field:first-child { width: auto; } }
.user-modal > .row:first-child { justify-content: flex-start; margin-top: 0; align-items: center; }
.user-modal .grow { flex: 1; min-width: 0; }
.user-modal .user-actions { justify-content: flex-start; }
.redeem { display: flex; gap: 10px; margin-top: 14px; }
.redeem .input { flex: 1; min-width: 0; letter-spacing: .03em; }
@media (max-width: 560px) { .redeem { flex-direction: column; } }
/* admin: license keys */
.gen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.gen-grid .span2 { grid-column: span 2; }
.gen-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.gen-foot .form-error { margin-right: auto; }
.gen-done { margin-top: 16px; padding: 14px; border: 1px solid var(--accent-line); border-radius: var(--r-lg); background: var(--accent-soft); display: flex; flex-direction: column; gap: 10px; }
.gen-done .row { gap: 10px; }
.gen-done textarea { font-size: 13px; letter-spacing: .02em; background: var(--bg); }
.key-copy { border: 0; background: none; padding: 0; color: var(--text); font-size: 12.5px; letter-spacing: .02em; text-align: left; cursor: copy; }
.key-copy:hover { color: var(--accent); }
.keys-table td { vertical-align: top; }
#key-tabs label { white-space: nowrap; }
@media (max-width: 900px) { .gen-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gen-grid { grid-template-columns: 1fr; } .gen-grid .span2 { grid-column: auto; } }

/* announcement pinned across the whole top of the page (js/announce.js sets --ann-h) */
.announce.global { position: sticky; top: 0; z-index: 80; font-size: 14px; color: var(--text); }
.announce.global .wrap { min-height: 46px; }
.announce.global .icon-btn { width: 28px; height: 28px; color: var(--text-2); }
.announce.global .grow { flex: 1; }
.announce.info.global { background: #0e2135; border-bottom-color: rgba(59, 130, 246, .45); }
.announce.warning.global { background: #2a1a08; border-bottom-color: rgba(251, 146, 60, .5); }
.site-header { top: var(--ann-h, 0px); }
.dash-side { top: var(--ann-h, 0px); height: calc(100vh - var(--ann-h, 0px)); }

/* ------------------------------------------------------------------ terms / privacy */
.legal { padding: 56px 0 96px; }
.legal-head { max-width: 760px; }
.legal-head h1 { margin-top: 14px; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.035em; }
.legal-head .lead { margin-top: 14px; color: var(--text-2); font-size: 17px; }
.legal-meta { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.legal-meta a { color: var(--text-2); }
.legal-meta a:hover { color: var(--accent); }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 56px; margin-top: 44px; align-items: start; }
.legal-toc { position: sticky; top: calc(88px + var(--ann-h, 0px)); display: flex; flex-direction: column; gap: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.legal-toc ol a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; color: var(--muted); transition: color .15s, border-color .15s; }
.legal-toc ol a:hover { color: var(--text); }
.legal-toc ol a.on { color: var(--text); border-left-color: var(--accent); }
.legal-toc .label { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.legal-body { font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
.legal-body section { padding-top: 8px; margin-top: 40px; scroll-margin-top: calc(80px + var(--ann-h, 0px)); }
.legal-body section:first-of-type { margin-top: 32px; }
.legal-body h2 { font-size: 21px; color: var(--text); letter-spacing: -.02em; margin-bottom: 12px; }
.legal-body h3 { font-size: 15.5px; color: var(--text); margin: 20px 0 6px; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p { margin-top: 12px; }
.legal-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.legal-body li::marker { color: var(--accent); }
.legal-body b { color: var(--text); font-weight: 600; }
.legal-body a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.legal-body a:not(.btn):hover { text-decoration-color: var(--accent); }
.legal-summary { padding: 22px 24px; border: 1px solid var(--accent-line); border-radius: var(--r-lg); background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(0, 224, 184, .07), transparent 60%), var(--bg-1); }
.legal-summary ul { list-style: none; padding: 0; gap: 10px; }
.legal-summary li { position: relative; padding-left: 26px; color: var(--text-2); }
.legal-summary li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.legal-summary p { margin-top: 14px; font-size: 13px; color: var(--muted); }
.legal-table { margin-top: 6px; font-size: 14px; }
.legal-table td { vertical-align: top; line-height: 1.55; }
.legal-table td:first-child { min-width: 200px; }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .05); }
@media (max-width: 980px) {
  .legal-grid { grid-template-columns: 1fr; gap: 0; }
  .legal-toc { position: static; margin-top: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); }
  .legal-toc .btn { display: none; }
}
@media (max-width: 620px) { .legal { padding-top: 32px; } .legal-table td:first-child { min-width: 140px; } }
/* ------------------------------------------------------------------ docs (kavro.pro/docs, docs.kavro.pro) */
.docs .legal-grid > * { min-width: 0; } /* long code lines scroll inside their box instead of widening the page */
.doc-brand-tag { margin-left: 4px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 11px var(--mono); color: var(--muted); }
.doc-search { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); }
.doc-search .icon { width: 14px; height: 14px; color: var(--muted); flex: none; }
.doc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 13.5px var(--font); }
.doc-search:focus-within { border-color: var(--accent-line); }
.doc-toc .label { margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.doc-toc .label .chip { font-size: 9.5px; }
.doc-toc [hidden] { display: none !important; }
.doc-noresult { font-size: 13px; color: var(--muted); }
.doc-body section[hidden] { display: none; }
.doc-body code { font: 500 .88em var(--mono); color: var(--text); padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.doc-body .kbd { font-size: 12px; }
.doc-steps { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc-steps li::marker { color: var(--accent); font: 600 .9em var(--mono); }
.doc-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--bg-1); font-size: 14.5px; }
.doc-note .icon { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 4px; }
.doc-table { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.doc-table th { text-align: left; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-1); }
.doc-table th, .doc-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td:first-child { color: var(--text); white-space: nowrap; }
.doc-table .chip { font-size: 9.5px; margin-left: 4px; }
.doc-keys td:last-child { text-align: right; white-space: nowrap; }
.doc-code { margin-top: 14px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-1); overflow: hidden; }
.doc-code-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); font: 500 11.5px var(--mono); color: var(--muted); }
.doc-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.doc-code pre code { padding: 0; border: 0; background: none; font-size: 13px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 620px) { .doc-table td:first-child { white-space: normal; } .doc-keys td:last-child { white-space: normal; text-align: left; } }
