/* ================= Tokens ================= */
:root {
  /* lime system (Figma «YouRoute») — legacy names kept so components inherit */
  --lime: #C8EF09;
  --lime-600: #B4D800;
  --lime-100: #EEFABF;
  --lime-50: #F7FDE0;
  --lime-ink: #5A6E00;
  --orange: #FF6A1A;
  --orange-100: #FFDCC6;
  --orange-50: #FFF1E8;
  --blue: #12172A;
  --blue-600: #000000;
  --blue-50: #F7FDE0;
  --blue-100: #E2F5A0;
  --teal: #8DB000;
  --teal-700: #5A6E00;
  --teal-50: #EEFABF;
  --amber: #FF6A1A;
  --amber-700: #C24A07;
  --amber-50: #FFF1E8;
  --red: #E5484D;
  --red-700: #C2292E;
  --red-50: #FDECEC;
  --ink: #12172A;
  --ink-2: #454C63;
  --slate: #667089;
  --line: #E7EAF1;
  --white: #FFFFFF;
  --mist: #F5F7FB;
  --page: #FAFAFA;

  --r-btn: 10px;
  --r-card: 20px;
  --r-win: 20px;
  --shadow: 0 4px 12px rgba(26, 20, 51, .04), 0 1px 2px rgba(10, 13, 20, .03);
  --shadow-lg: 0 1px 2px rgba(10, 13, 20, .04), 0 24px 60px rgba(18, 23, 42, .10);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
  --gutter: 24px;
  --section-y: 120px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 72px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-btn);
}
.skip:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section.mist { background: var(--mist); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .lead { margin-top: 16px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
h1 { font-size: 64px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 650; }
h2 { font-size: 44px; line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.3; }
h4 { font-size: 17px; line-height: 1.35; }
.lead { font-size: 20px; color: var(--slate); line-height: 1.55; }
.muted { color: var(--slate); }
.small { font-size: 14px; }
.center { text-align: center; margin-top: 48px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-btn);
  font-size: 16px; font-weight: 550; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s, color .2s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(47, 91, 234, .3), inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.btn-secondary:hover { border-color: #CBD2DF; color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn-lg { min-height: 50px; padding: 0 24px; }
.btn-text { color: var(--ink); font-weight: 550; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.btn-text:hover { color: var(--blue); }
.arrow { transition: transform .2s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .7; cursor: progress; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  font-size: 14px; color: var(--slate); font-weight: 500;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.soon {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--amber-50); color: var(--amber-700); vertical-align: 2px; margin-left: 6px;
}
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em; padding: 3px 8px; border-radius: 6px;
  background: var(--mist); color: var(--slate); border: 1px solid var(--line); white-space: nowrap;
}

/* ================= Announcement / lang bars ================= */
.announce { background: var(--ink); color: #E2E8F0; font-size: 14px; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; position: relative; padding-right: 48px; text-align: center; }
.announce a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.announce .pill { font-family: var(--mono); font-size: 11px; background: rgba(20, 184, 166, .2); color: #5EEAD4; padding: 2px 8px; border-radius: 999px; }
.bar-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; font-size: 20px; width: 32px; height: 32px; border-radius: 8px; line-height: 1; }
.bar-close:hover { background: rgba(255, 255, 255, .1); }
.langbar { background: var(--blue-50); color: var(--ink); font-size: 14px; border-bottom: 1px solid var(--blue-100); }
.langbar .container { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 44px; position: relative; padding-right: 48px; flex-wrap: wrap; }
.langbar button.link { background: none; border: 0; color: var(--blue); font-weight: 600; padding: 4px; }
.langbar .bar-close { color: var(--slate); }
.langbar .bar-close:hover { background: rgba(15, 23, 42, .06); }

/* ================= Header ================= */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.header.scrolled {
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .25s var(--ease); }
.header.scrolled .header-inner { height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; font-size: 19px; letter-spacing: -0.02em; flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo b { color: var(--blue); font-weight: 650; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav a { white-space: nowrap; color: var(--slate); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: rgba(15, 23, 42, .04); }
.nav a.active { color: var(--blue); background: var(--blue-50); }
.ext::after { content: "↗"; font-size: .8em; margin-left: 3px; opacity: .7; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 2px; background: #fff; }
.lang-switch button { border: 0; background: none; font-size: 12.5px; font-weight: 600; padding: 5px 8px; border-radius: 7px; color: var(--slate); font-family: var(--mono); min-width: 34px; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-btn); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .25s, top .25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; padding: 12px var(--gutter) 24px; box-shadow: var(--shadow); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.mobile-menu .mm-actions { display: grid; gap: 10px; margin-top: 18px; }
.mobile-menu .mm-actions .btn { width: 100%; }
.mobile-menu .lang-switch { justify-self: start; }

/* ================= 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: 48px 48px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero-bg .rl { fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-opacity: .16; }
.hero-bg .rl.flow { stroke-opacity: .55; stroke-dasharray: 6 260; animation: flow 6s linear infinite; }
.hero-bg .rn { fill: #fff; stroke: var(--blue); stroke-opacity: .35; stroke-width: 1.2; }
.hero-bg .rn.src { fill: var(--blue); fill-opacity: .25; }
@keyframes flow { from { stroke-dashoffset: 266; } to { stroke-dashoffset: 0; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-copy h1 { margin: 22px 0 22px; }
.hero-copy h1 .accent { color: var(--blue); }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.micro { margin-top: 16px; font-size: 14px; color: var(--slate); }
.micro::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 6px; }

.code-caption { font-size: 14px; color: var(--slate); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.code-caption::before { content: ""; width: 18px; height: 1px; background: var(--slate); opacity: .5; }
.window { background: #fff; border: 1px solid var(--line); border-radius: var(--r-win); box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 12px; padding: 0 12px; height: 46px; border-bottom: 1px solid var(--line); background: var(--mist); }
.dots { display: flex; gap: 6px; flex-shrink: 0; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #DDE1E8; }
.code-tabs { display: flex; gap: 2px; flex: 1; }
.code-tabs button, .seg button {
  border: 0; background: none; font-size: 13px; font-weight: 550; color: var(--slate);
  padding: 6px 10px; border-radius: 7px; transition: background .2s, color .2s;
}
.code-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.copy-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 13px; padding: 5px 10px; display: inline-flex; gap: 6px; align-items: center; color: var(--slate); }
.copy-btn:hover { color: var(--ink); }
.copy-btn.ok { color: var(--teal-700); border-color: var(--teal); }
.code {
  margin: 0; padding: 18px 0; font-size: 13.5px; line-height: 1.7; overflow-x: auto; color: #24292F; min-height: 300px;
  -webkit-overflow-scrolling: touch;
}
.code .ln { display: block; padding: 0 20px 0 0; white-space: pre; }
.code .ln::before { content: attr(data-n); display: inline-block; width: 40px; padding-right: 14px; text-align: right; color: #B4BBC8; user-select: none; }
.code .ln.hl { background: var(--blue-50); box-shadow: inset 3px 0 0 var(--blue); }
.code .ln.hl::after { content: "← changed"; font-size: 11px; color: var(--blue); margin-left: 14px; font-family: var(--font); font-weight: 600; }
html[lang="ru"] .code .ln.hl::after { content: "← изменено"; }
.tk-k { color: #CF222E; }
.tk-s { color: #0A3069; }
.tk-c { color: #8C959F; font-style: italic; }
.tk-f { color: #8250DF; }
.tk-n { color: #0550AE; }
.response { border-top: 1px solid var(--line); background: #FBFCFD; padding: 14px 20px; font-family: var(--mono); font-size: 12.5px; min-height: 148px; }
.response .r-head { display: flex; align-items: center; gap: 8px; color: var(--slate); margin-bottom: 8px; }
.response .r-head .live { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.response .r-row { display: grid; grid-template-columns: 84px 1fr; gap: 8px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; line-height: 1.75; }
.response .r-row.show { opacity: 1; transform: none; }
.response .r-key { color: #8C959F; }
.response .r-val { color: var(--ink); }
.response .r-val .ok { color: var(--teal-700); font-weight: 600; }
.response .r-val .err { color: var(--red-700); font-weight: 600; }
.response .r-val .fb { background: var(--teal-50); color: var(--teal-700); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.response .r-val .cost { color: var(--blue); font-weight: 600; }

.providers { position: relative; margin-top: 64px; display: flex; align-items: center; gap: 28px; }
.providers-label { font-size: 13px; color: var(--slate); white-space: nowrap; font-weight: 500; flex-shrink: 0; }
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.prov { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; color: #8A93A3; letter-spacing: -0.01em; transition: color .25s; white-space: nowrap; filter: grayscale(1); }
.prov i { width: 18px; height: 18px; border-radius: 5px; background: currentColor; opacity: .85; display: inline-block; }
.prov:hover { color: var(--c, var(--ink)); filter: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================= How it works ================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow); }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--blue); background: var(--blue-50); padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.icon { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue); background: #fff; }
.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 16px; }
.step code { font-size: .9em; background: var(--mist); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--ink); }

.router { margin-top: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 20px 24px 22px; }
.router-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.router-title { font-weight: 600; font-size: 16px; }
.seg { display: inline-flex; background: var(--mist); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { font-size: 14px; padding: 7px 14px; border-radius: 8px; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 0 0 1px var(--line); }
.router-stage { margin-top: 12px; overflow-x: auto; }
.router-svg { width: 100%; min-width: 640px; height: auto; }
.router-svg .n-box { fill: #fff; stroke: var(--line); stroke-width: 1.2; transition: fill .3s, stroke .3s; }
.router-svg .n-yr { fill: var(--blue-50); stroke: var(--blue); stroke-width: 1.5; }
.router-svg .n-t { font: 600 15px var(--font); fill: var(--ink); }
.router-svg .n-s { font: 500 12px var(--mono); fill: var(--slate); }
.router-svg .chip { fill: #fff; stroke: var(--blue-100); transition: fill .3s, stroke .3s; }
.router-svg .chip-t { font: 500 11px var(--mono); fill: var(--blue); }
.router-svg .chip.hit { fill: var(--teal-50); stroke: var(--teal); }
.router-svg .chip.hit + .chip-t { fill: var(--teal-700); }
.router-svg .path { fill: none; stroke: var(--line); stroke-width: 2; transition: stroke .3s; }
.router-svg .path.on { stroke: var(--blue); stroke-dasharray: 6 6; animation: dash 0.8s linear infinite; }
.router-svg .path.back { stroke: var(--teal); stroke-dasharray: 6 6; animation: dash 0.8s linear infinite reverse; }
.router-svg .path.dead { stroke: var(--red); stroke-opacity: .5; stroke-dasharray: 3 5; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.router-svg .node.down .n-box { fill: var(--red-50); stroke: var(--red); }
.router-svg .node.ok .n-box { fill: var(--teal-50); stroke: var(--teal); }
.router-svg .node.fallback .n-box { stroke-dasharray: 5 4; }
.router-svg .status { opacity: 0; transition: opacity .3s; }
.router-svg .status rect { rx: 8; }
.router-svg .node.down .status.s-down, .router-svg .node.ok .status.s-ok { opacity: 1; }
.router-svg .s-down rect { fill: var(--red); }
.router-svg .s-ok rect { fill: var(--teal); }
.router-svg .status text { font: 600 11px var(--mono); fill: #fff; }
.router-svg .packet { filter: drop-shadow(0 0 6px rgba(47, 91, 234, .55)); }
.router-caption { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; color: var(--ink); min-height: 28px; text-align: center; flex-wrap: wrap; }
.router-caption .cap { font-family: var(--mono); font-size: 14px; transition: opacity .3s; }

/* ================= Features ================= */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pillar .icon { width: 48px; height: 48px; border-radius: 13px; margin-bottom: 24px; }
.pillar .icon svg { width: 24px; height: 24px; }
.pillar.p2 .icon { color: var(--teal); }
.pillar.p3 .icon { color: var(--amber-700); }
.pillar .kicker { font-family: var(--mono); font-size: 12px; color: var(--slate); margin-bottom: 6px; }
.pillar p.desc { color: var(--slate); font-size: 16px; margin: 10px 0 22px; }
.checks { display: grid; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px dashed var(--line); }
.checks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.checks li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--teal-50)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin-top: var(--gutter); }
.extra { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.extra .icon { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 14px; color: var(--ink); }
.extra .icon svg { width: 18px; height: 18px; }
.extra h4 { margin-bottom: 6px; }
.extra p { font-size: 14px; color: var(--slate); line-height: 1.55; }

/* ================= Dashboard preview ================= */
.dash-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.dash-tabs { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 96px; }
.dash-tab {
  text-align: left; background: none; border: 1px solid transparent; border-radius: 12px; padding: 16px 18px;
  position: relative; overflow: hidden; transition: background .2s, border-color .2s;
}
.dash-tab:hover { background: var(--mist); }
.dash-tab[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.dash-tab .dt-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; color: var(--slate); }
.dash-tab[aria-selected="true"] .dt-title { color: var(--ink); }
.dash-tab .dt-title svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dash-tab[aria-selected="true"] .dt-title svg { color: var(--blue); }
.dash-tab .dt-desc { font-size: 14px; color: var(--slate); margin-top: 6px; line-height: 1.5; display: none; padding-left: 28px; }
.dash-tab[aria-selected="true"] .dt-desc { display: block; }
.dash-tab .dt-prog { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--blue); width: 0; }
.dash-tab[aria-selected="true"] .dt-prog.run { animation: prog 6s linear forwards; }
@keyframes prog { to { width: 100%; } }

.browser { background: #fff; border: 1px solid var(--line); border-radius: var(--r-win); box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; background: var(--mist); border-bottom: 1px solid var(--line); }
.url { flex: 1; max-width: 360px; margin: 0 auto; height: 26px; background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; color: var(--slate); display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--mono); overflow: hidden; white-space: nowrap; }
.url svg { width: 11px; height: 11px; flex-shrink: 0; }
.sample { font-size: 11px; font-weight: 600; color: var(--amber-700); background: var(--amber-50); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.app { display: grid; grid-template-columns: 172px 1fr; min-height: 470px; font-size: 13px; }
.app-side { border-right: 1px solid var(--line); padding: 14px 10px; background: #FCFCFD; }
.app-ws { display: flex; align-items: center; gap: 8px; padding: 6px 8px 14px; font-weight: 600; font-size: 13px; }
.app-ws i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(120deg, var(--blue), var(--teal)); display: inline-block; }
.app-nav { display: grid; gap: 2px; }
.app-nav span { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; color: var(--slate); font-size: 12.5px; }
.app-nav span svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-nav span.on { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.app-bal { margin-top: 18px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.app-bal .k { font-size: 11px; color: var(--slate); }
.app-bal .v { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.app-main { padding: 18px 20px; min-width: 0; position: relative; }
.screen { display: none; animation: fadeIn .35s var(--ease); }
.screen.on { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.scr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.scr-head h5 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.scr-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { text-align: left; font-weight: 500; color: var(--slate); padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 11.5px; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid #F0F2F6; white-space: nowrap; }
.tbl td.m { font-family: var(--mono); font-size: 11.5px; }
.tbl tr.fb td { background: #F3FBFA; }
.st { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.st.ok { background: var(--teal-50); color: var(--teal-700); }
.st.fb { background: var(--blue-50); color: var(--blue); }
.st.err { background: var(--red-50); color: var(--red-700); }
.st.cache { background: #F1EEFD; color: #6D4AD8; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.tile .k { font-size: 11.5px; color: var(--slate); }
.tile .v { font-family: var(--mono); font-size: 19px; font-weight: 600; margin-top: 4px; letter-spacing: -0.02em; }
.tile .d { font-size: 11px; color: var(--teal-700); margin-top: 2px; }
.tile .d.warn { color: var(--amber-700); }
.chart-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.chart-card .cc-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--slate); margin-bottom: 8px; gap: 8px; flex-wrap: wrap; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.usage-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.toplist { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.toplist .tl-h { font-size: 12px; color: var(--slate); margin-bottom: 6px; }
.toplist .tl-r { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; }
.toplist .tl-r .mono { font-size: 11.5px; }
.budget-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.bcard { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.bcard .b-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.bcard .b-name { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.bcard .b-sub { font-size: 11.5px; color: var(--slate); margin-top: 2px; }
.bcard .b-amt { margin-top: 16px; display: flex; align-items: baseline; gap: 6px; }
.bcard .b-amt .v { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.bcard .b-amt .of { color: var(--slate); font-size: 12.5px; }
.bar { height: 8px; background: var(--mist); border-radius: 99px; margin-top: 10px; position: relative; overflow: visible; border: 1px solid var(--line); }
.bar > i { position: absolute; left: 0; top: -1px; bottom: -1px; border-radius: 99px; background: var(--blue); }
.bar .mark { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); opacity: .25; }
.bar-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--slate); margin-top: 6px; font-family: var(--mono); }
.rules { margin-top: 16px; display: grid; gap: 8px; }
.rule { display: flex; align-items: center; gap: 10px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.rule .pct { font-family: var(--mono); font-weight: 600; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.rule .pct.a { background: var(--amber-50); color: var(--amber-700); }
.rule .pct.r { background: var(--red-50); color: var(--red-700); }
.rule .arrow-r { color: var(--slate); }
.mini-keys { display: grid; gap: 10px; }
.mini-key { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mini-key .mk-top { display: flex; justify-content: space-between; font-size: 12px; }
.mini-key .mk-top .mono { font-weight: 600; }
.mini-key .bar { height: 6px; margin-top: 8px; }
.alert-row { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; font-size: 12px; background: var(--amber-50); border: 1px solid #FBDDA7; color: #7C4A06; padding: 9px 11px; border-radius: 10px; }
.pg-prompt { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.pg-prompt .k { font-size: 11px; color: var(--slate); font-family: var(--mono); flex-shrink: 0; }
.pg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pg-col { border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.pg-col .pg-h { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--mist); font-family: var(--mono); font-size: 12px; font-weight: 600; gap: 6px; }
.pg-col .pg-b { padding: 12px; font-size: 12.5px; line-height: 1.6; color: #334155; flex: 1; }
.pg-col .pg-m { display: flex; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--slate); flex-wrap: wrap; }
.pg-col .pg-m b { color: var(--ink); font-weight: 600; }
.pg-col.win .pg-m .cheap { color: var(--teal-700); }
.cursor { display: inline-block; width: 7px; height: 14px; background: var(--blue); vertical-align: -2px; animation: pulse 1s infinite; }

/* ================= Models ================= */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-bottom: 40px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 26px; }
.stat .s-v { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.stat .s-k { color: var(--slate); font-size: 15px; margin-top: 6px; }
.mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.catalog-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 440px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--slate); fill: none; stroke: currentColor; stroke-width: 1.6; }
.search input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 0 14px 0 42px; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; color: var(--slate); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: var(--mist); }
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.model { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; transition: border-color .2s, box-shadow .2s, transform .2s; display: flex; flex-direction: column; gap: 14px; }
.model:hover { border-color: #CDD5E3; box-shadow: var(--shadow); transform: translateY(-2px); }
.model .m-top { display: flex; gap: 10px; align-items: center; }
.model .m-logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.model .m-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.model .m-prov { font-size: 12.5px; color: var(--slate); }
.model .m-id { font-family: var(--mono); font-size: 11.5px; color: var(--slate); background: var(--mist); border-radius: 6px; padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model dl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 0; }
.model dt { font-size: 11px; color: var(--slate); }
.model dd { margin: 2px 0 0; font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.empty { text-align: center; padding: 40px; color: var(--slate); border: 1px dashed var(--line); border-radius: var(--r-card); background: #fff; }

/* ================= Pricing ================= */
.formula { display: flex; align-items: stretch; justify-content: center; gap: 16px; flex-wrap: wrap; }
.f-term { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 28px; text-align: center; min-width: 210px; box-shadow: var(--shadow); }
.f-term .f-k { font-size: 14px; color: var(--slate); }
.f-term .f-v { font-size: 30px; font-weight: 650; letter-spacing: -0.02em; margin-top: 4px; }
.f-term.yr { border-color: var(--blue-100); background: var(--blue-50); }
.f-term.yr .f-v { color: var(--blue); }
.f-term.total { background: var(--ink); border-color: var(--ink); }
.f-term.total .f-k { color: #94A3B8; }
.f-term.total .f-v { color: #fff; }
.f-op { display: grid; place-items: center; font-size: 30px; color: var(--slate); font-weight: 300; }
.formula-note { text-align: center; color: var(--slate); margin-top: 20px; font-size: 16px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; margin-top: 56px; align-items: center; }
.ppoints { display: grid; gap: 18px; }
.ppoint { display: flex; gap: 16px; }
.ppoint .icon { flex-shrink: 0; }
.ppoint h4 { margin-bottom: 4px; }
.ppoint p { font-size: 15px; color: var(--slate); }
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-lg); }
.calc label { font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.calc .spend { font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.range { width: 100%; margin: 22px 0 6px; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--blue) var(--p, 30%), var(--line) var(--p, 30%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); box-shadow: 0 2px 6px rgba(47, 91, 234, .3); cursor: grab; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); cursor: grab; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--blue-100); }
.range-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--slate); }
.calc-out { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; }
.calc-out .row { display: flex; justify-content: space-between; font-size: 15px; }
.calc-out .row .mono { font-weight: 600; }
.calc-out .row.total { font-size: 18px; font-weight: 650; padding-top: 10px; border-top: 1px dashed var(--line); }
.calc-out .row.total .mono { color: var(--blue); }
.calc-note { font-size: 12.5px; color: var(--slate); margin-top: 14px; }
.teams-line { margin-top: 40px; text-align: center; color: var(--slate); font-size: 16px; padding: 16px 20px; border: 1px dashed var(--line); border-radius: var(--r-card); }
.teams-line a { font-weight: 600; }

/* ================= FAQ ================= */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.qa.open { border-color: #D3DAE6; box-shadow: var(--shadow); }
.qa h3 { font-size: 17px; }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: 0; padding: 20px 22px; text-align: left; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; border-radius: 14px; }
.qa .plus { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; position: relative; transition: transform .3s var(--ease), background .2s; }
.qa .plus::before, .qa .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.qa .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.qa.open .plus { background: var(--ink); border-color: var(--ink); }
.qa.open .plus::before, .qa.open .plus::after { background: #fff; }
.qa.open .plus::after { transform: translate(-50%, -50%) rotate(0); }
.qa-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.qa.open .qa-body { grid-template-rows: 1fr; }
.qa-body > div { overflow: hidden; }
.qa-body p { padding: 0 22px 22px; color: var(--slate); font-size: 16px; }
.qa-body code { font-size: .9em; background: var(--mist); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; color: var(--ink); }

/* ================= CTA & forms ================= */
.cta-section { position: relative; padding: var(--section-y) 0; overflow: hidden;
  background: linear-gradient(120deg, #E8EEFD 0%, #EEF4FB 45%, #E3F6F3 100%); }
.cta-section::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(47, 91, 234, .12) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%); }
.cta-section .section-head { position: relative; }
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 640px) 320px; gap: 48px; justify-content: center; align-items: start; }
.form-card { background: #fff; border-radius: 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 30px 60px rgba(30, 50, 120, .12); border: 1px solid rgba(229, 232, 239, .8); overflow: hidden; }
.form-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); background: var(--mist); }
.form-tabs button { border: 0; background: none; padding: 16px; font-weight: 600; font-size: 15px; color: var(--slate); position: relative; min-height: 54px; }
.form-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.form-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); }
.form-tabs.single { grid-template-columns: 1fr; }
form.lead { padding: 28px; display: grid; gap: 18px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field > .flabel { font-size: 14px; font-weight: 600; }
.field .req { color: var(--red); margin-left: 2px; }
.field .opt { color: var(--slate); font-weight: 400; font-size: 13px; margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 10px 14px; background: #fff; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field select { -webkit-appearance: none; appearance: none; padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6475' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/16px no-repeat; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field.invalid input:focus, .field.invalid select:focus { box-shadow: 0 0 0 4px var(--red-50); }
.f-err { font-size: 13px; color: var(--red-700); min-height: 0; }
.f-warn { font-size: 13px; color: var(--amber-700); }
.f-count { font-size: 12px; color: var(--slate); text-align: right; font-family: var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-cb { position: relative; }
.chip-cb input { position: absolute; opacity: 0; pointer-events: none; }
.chip-cb span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .2s; background: #fff; user-select: none; }
.chip-cb input:checked + span { background: var(--blue-50); border-color: var(--blue); color: var(--blue); font-weight: 600; }
.chip-cb input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--slate); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.submit { width: 100%; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.net-err { background: var(--red-50); border: 1px solid #F7C5C7; color: var(--red-700); font-size: 14px; padding: 10px 12px; border-radius: 10px; }
.form-note { font-size: 12.5px; color: var(--slate); text-align: center; }
.success { padding: 48px 32px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.success .ok-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-50); display: grid; place-items: center; color: var(--teal-700); }
.success .ok-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.success h3 { font-size: 24px; }
.success p { color: var(--slate); max-width: 380px; }
.success .btn { margin-top: 8px; }
.cal-ph { width: 100%; border: 1px dashed var(--line); border-radius: 12px; padding: 16px; font-size: 14px; color: var(--slate); background: var(--mist); }
.cta-aside { padding-top: 8px; }
.cta-aside h3 { font-size: 18px; margin-bottom: 18px; }
.next-steps { display: grid; gap: 18px; counter-reset: n; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: 15px; color: var(--slate); line-height: 1.5; }
.next-steps li::before { counter-increment: n; content: counter(n); width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--blue); }
.next-steps b { color: var(--ink); display: block; font-weight: 600; }
.aside-login { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(15, 23, 42, .1); }
.aside-login p { font-size: 14px; color: var(--slate); margin-bottom: 10px; }

/* ================= Footer ================= */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: 15px; }
.f-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.f-brand p { color: var(--slate); margin: 14px 0 20px; max-width: 260px; }
.f-brand .f-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.f-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); font-weight: 600; margin-bottom: 16px; font-family: var(--mono); }
.f-col ul { display: grid; gap: 10px; }
.f-col a { color: var(--ink); font-size: 15px; }
.f-col a:hover { color: var(--blue); }
.f-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--slate); font-size: 14px; }
.f-bottom .right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.socials { display: flex; gap: 6px; }
.socials a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--slate); border: 1px solid var(--line); }
.socials a:hover { color: var(--ink); border-color: #CBD2DF; }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.cookie-link { background: none; border: 0; color: var(--slate); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; padding: 0; }

/* ================= Cookie banner ================= */
.cookie { position: fixed; z-index: 150; left: 20px; bottom: 20px; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 20px; font-size: 14px; animation: fadeIn .35s var(--ease); }
.cookie h4 { font-size: 16px; margin-bottom: 6px; }
.cookie p { color: var(--slate); line-height: 1.5; }
.cookie .c-btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.cookie .c-btns .btn { min-height: 40px; font-size: 14px; padding: 0 14px; }
.cookie .c-prefs { margin-top: 14px; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.cookie .c-pref { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cookie .c-pref small { display: block; color: var(--slate); font-size: 12.5px; }
.switch { position: relative; width: 40px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 300; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ================= Reveal ================= */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ================= Legal / 404 pages ================= */
.doc { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.doc h1 { font-size: 44px; margin-bottom: 8px; }
.doc .updated { color: var(--slate); font-size: 14px; margin-bottom: 32px; font-family: var(--mono); }
.doc h2 { font-size: 24px; margin: 36px 0 12px; }
.doc p, .doc li { color: #334155; font-size: 17px; margin-bottom: 12px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc .note { background: var(--amber-50); border: 1px solid #FBDDA7; color: #7C4A06; border-radius: 12px; padding: 14px 16px; font-size: 15px; margin-bottom: 28px; }
.nf { min-height: calc(100vh - 64px); display: grid; place-items: center; text-align: center; padding: 48px var(--gutter); position: relative; overflow: hidden; }
.nf .code404 { font-family: var(--mono); font-size: 15px; color: var(--red-700); background: var(--red-50); padding: 4px 12px; border-radius: 999px; display: inline-block; margin-bottom: 20px; }
.nf h1 { font-size: 52px; margin-bottom: 14px; }
.nf p { color: var(--slate); max-width: 460px; margin: 0 auto 28px; }

/* ================= Responsive ================= */
@media (max-width: 1279px) {
  :root { --section-y: 104px; }
  .nav a { padding: 8px 9px; font-size: 14.5px; }
  .header-inner { gap: 16px; }
  h1 { font-size: 56px; }
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-grid { grid-template-columns: 260px 1fr; gap: 28px; }
  .cta-grid { grid-template-columns: minmax(0, 600px) 280px; gap: 36px; }
}
@media (max-width: 1179px) {
  .nav, .header-actions .btn-text, .header-actions > .lang-switch { display: none; }
  .burger { display: block; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 1023px) {
  :root { --section-y: 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 720px; }
  h1 { font-size: 52px; }
  h2 { font-size: 38px; }
  .steps, .pillars { grid-template-columns: 1fr 1fr; }
  .extras { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .model-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; gap: 20px; }
  .dash-tabs { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .dash-tabs::-webkit-scrollbar { display: none; }
  .dash-tab { flex-shrink: 0; padding: 10px 16px; border-radius: 999px; border-color: var(--line); background: #fff; }
  .dash-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); box-shadow: none; }
  .dash-tab[aria-selected="true"] .dt-title, .dash-tab[aria-selected="true"] .dt-title svg { color: #fff; }
  .dash-tab .dt-desc, .dash-tab[aria-selected="true"] .dt-desc { display: none; }
  .dash-tab .dt-prog { display: none; }
  .dash-caption { display: block !important; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: minmax(0, 640px); }
  .cta-aside { display: grid; grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  :root { --section-y: 72px; --gutter: 16px; }
  body { font-size: 16px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 20px; }
  .lead { font-size: 17px; }
  .section-head { margin-bottom: 36px; }
  .header-actions > .btn-primary { display: none; }
  .hero { padding: 40px 0 40px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .code { font-size: 12.5px; min-height: 0; }
  .code .ln.hl::after { display: none; }
  .providers { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 44px; }
  .providers-label { text-align: center; }
  .steps, .pillars, .extras { grid-template-columns: 1fr; }
  .router { padding: 16px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 8px 8px; font-size: 13px; }
  .stats { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 14px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:last-child { grid-column: 1 / -1; }
  .usage-bottom, .budget-grid, .pg-cols { grid-template-columns: 1fr; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
  .tbl td { border: 0; padding: 2px 0; }
  .tbl td[data-c="time"], .tbl td[data-c="lat"] { display: none; }
  .tbl td[data-c="model"] { font-weight: 600; }
  .tbl td[data-c="status"], .tbl td[data-c="cost"] { text-align: right; }
  .tbl td[data-c="prov"], .tbl td[data-c="tok"] { color: var(--slate); }
  .formula { flex-direction: column; align-items: stretch; gap: 8px; }
  .f-term { min-width: 0; padding: 16px; }
  .f-term .f-v { font-size: 24px; }
  .f-op { font-size: 22px; }
  .calc { padding: 20px; }
  .f-row { grid-template-columns: 1fr; }
  form.lead { padding: 20px; }
  .form-tabs button { font-size: 14px; padding: 12px 8px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .center .btn { width: 100%; }
  .qa button { padding: 16px 18px; font-size: 16px; }
  .qa-body p { padding: 0 18px 18px; }
  .announce .container { font-size: 13px; justify-content: flex-start; text-align: left; }
}

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 14px; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* grid children must be allowed to shrink (code blocks, tables) */
.hero-grid > *, .dash-grid > *, .pricing-grid > *, .cta-grid > *, .steps > *, .pillars > *, .model-grid > * { min-width: 0; }
@media (max-width: 767px) {
  .window-bar { gap: 8px; padding: 0 8px; }
  .window-bar .dots { display: none; }
  .code-tabs button { padding: 6px 8px; }
  .copy-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .copy-btn { padding: 6px 8px; flex-shrink: 0; }
}

/* =====================================================================
   LIME LAYER — Figma «YouRoute» look (ink + lime, Geist, 20px cards)
   ===================================================================== */
body { background: var(--page); font-feature-settings: "ss01", "cv11"; }
h1 { font-weight: 600; letter-spacing: -0.035em; }
h2 { letter-spacing: -0.03em; }
.section { background: transparent; }
.section.mist { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
a { color: var(--ink); }
a:hover { color: var(--lime-ink); }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline-color: var(--ink); }

.eyebrow { color: var(--lime-ink); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 0 3px var(--lime-100); }

/* buttons */
.btn-primary { background: var(--lime); color: var(--ink); border-color: #B8DC00; box-shadow: 0 1px 2px rgba(90, 110, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .45); font-weight: 600; }
.btn-primary:hover { background: #D4F53A; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-secondary { border-color: var(--line); }
.btn-text:hover { color: var(--lime-ink); }
.spinner { border-color: rgba(18, 23, 42, .25); border-top-color: var(--ink); }

/* badge / pills */
.badge .dot { background: var(--lime); box-shadow: 0 0 0 3px var(--lime-100); animation: pulse 1.8s infinite; }
.announce .pill { background: var(--lime); color: var(--ink); font-weight: 600; }
.langbar { background: var(--lime-50); border-bottom-color: var(--lime-100); }
.langbar button.link { color: var(--ink); text-decoration: underline; }

/* logo — R¹ in a dark square with a lime glow */
.logo { gap: 10px; font-size: 18px; font-weight: 600; }
.logo b { color: inherit; font-weight: 600; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 100% 0%, rgba(200, 239, 9, .55) 0%, rgba(200, 239, 9, 0) 55%), #12172A; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.logo-mark img { width: 16px; height: auto; }

/* header */
.header.scrolled { background: rgba(250, 250, 250, .82); }
.header.scrolled .header-inner { height: 60px; }
.nav a { color: var(--ink-2); }
.nav a.active { color: var(--ink); background: var(--lime-100); }

/* hero */
.hero { padding: 80px 0 40px; }
.hero::before { opacity: .35; }
.hero-bg .rl { stroke: var(--ink); stroke-opacity: .08; }
.hero-bg .rl.flow { stroke: #9CC400; stroke-opacity: .9; }
.hero-bg .rn { stroke: var(--ink); stroke-opacity: .18; }
.hero-bg .rn.src { fill: var(--lime); fill-opacity: 1; stroke: #9CC400; }
.hero-copy h1 .accent { color: var(--ink); background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.micro::before { color: var(--lime-ink); }
.code .ln.hl { background: var(--lime-50); box-shadow: inset 3px 0 0 var(--lime); }
.code .ln.hl::after { color: var(--lime-ink); }
.response .r-val .cost { color: var(--ink); background: var(--lime-100); padding: 1px 6px; border-radius: 5px; }
.response .r-val .fb { background: var(--orange-50); color: #C24A07; }
.response .r-head .live { background: #9CC400; }
.copy-btn.ok { color: var(--lime-ink); border-color: var(--lime); }

/* logo marquee */
.providers { margin-top: 72px; }
.marquee-track { gap: 40px; align-items: center; }
.prov { gap: 10px; color: var(--ink); font-size: 17px; font-weight: 600; filter: grayscale(1); opacity: .62; transition: filter .25s, opacity .25s; }
.prov img { width: 22px; height: 22px; object-fit: contain; }
.prov:hover { filter: none; opacity: 1; }

/* how-it-works */
.step-num { color: var(--ink); background: var(--lime); }
.icon { color: var(--ink); border-color: var(--line); background: #fff; }
.pillar .icon { background: var(--lime-50); border-color: var(--lime-100); }
.pillar.p2 .icon { color: var(--ink); }
.pillar.p3 .icon { color: var(--ink); background: var(--orange-50); border-color: var(--orange-100); }
.checks li::before { background-color: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312172A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.router-svg .n-yr { fill: var(--ink); stroke: var(--ink); }
.router-svg #n-yr .n-t { fill: #fff; }
.router-svg .chip { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .16); }
.router-svg .chip-t { fill: #C9CEDB; }
.router-svg .chip.hit { fill: var(--lime); stroke: var(--lime); }
.router-svg .chip.hit + .chip-t { fill: var(--ink); }
.router-svg .path.on { stroke: var(--ink); }
.router-svg .path.back { stroke: #9CC400; }
.router-svg .node.ok .n-box { fill: var(--lime-50); stroke: #9CC400; }
.router-svg .s-ok rect { fill: var(--lime); }
.router-svg .s-ok text { fill: var(--ink); }
.router-svg .packet { filter: drop-shadow(0 0 8px rgba(200, 239, 9, .9)); }
.router-svg .p-logo { opacity: .9; }
.seg button[aria-selected="true"] { box-shadow: 0 1px 2px rgba(18, 23, 42, .08), 0 0 0 1px var(--line); }

/* dashboard preview (app chrome mirrors the product) */
.dash-tab[aria-selected="true"] .dt-title svg { color: var(--ink); }
.dash-tab .dt-prog { background: var(--lime); height: 3px; }
.browser { border-radius: var(--r-win); }
.app-side { background: #FAFAFA; }
.app-ws i { background: radial-gradient(120% 120% at 100% 0%, rgba(200, 239, 9, .6), transparent 55%), var(--ink); border-radius: 6px; }
.app-nav span.on { background: #fff; color: var(--ink); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.st.ok { background: var(--lime-100); color: var(--lime-ink); }
.st.fb { background: var(--orange-50); color: #C24A07; }
.st.cache { background: var(--mist); color: var(--ink-2); }
.tbl tr.fb td { background: #FFFAF6; }
.tbl td .plogo { display: inline-flex; align-items: center; gap: 6px; }
.tbl td .plogo img { width: 14px; height: 14px; }
.tile .d { color: var(--lime-ink); }
.tile .d.warn { color: #C24A07; }
.bar > i { background: var(--lime); }
.cursor { background: var(--lime); }
.pg-col.win { border-color: #C9E36A; }
.pg-col.win .pg-m .cheap { color: var(--lime-ink); }
.pg-col .pg-h img { width: 14px; height: 14px; }
.pg-col .pg-h > span:first-child { display: inline-flex; align-items: center; gap: 6px; }

/* models */
.model .m-logo { background: var(--mist) !important; border: 1px solid var(--line); }
.model .m-logo img { width: 18px; height: 18px; }
.model:hover { border-color: #C9E36A; }
.search input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--lime-100); }

/* pricing */
.f-term.yr { background: var(--lime); border-color: var(--lime); }
.f-term.yr .f-k { color: var(--ink-2); }
.f-term.yr .f-v { color: var(--ink); }
.range { background: linear-gradient(90deg, var(--ink) var(--p, 30%), var(--line) var(--p, 30%)); }
.range::-webkit-slider-thumb { background: var(--lime); border: 2px solid var(--ink); box-shadow: 0 2px 8px rgba(18, 23, 42, .25); }
.range::-moz-range-thumb { background: var(--lime); border: 2px solid var(--ink); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--lime-100); }
.calc-out .row.total .mono { color: var(--ink); background: var(--lime); padding: 0 8px; border-radius: 6px; }
.pay { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--slate); }
.pay-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-logos span { height: 30px; min-width: 46px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; background: #fff; }
.pay-logos img { height: 15px; width: auto; }

/* FAQ / forms */
.qa.open { border-color: #C9E36A; }
.qa.open .plus { background: var(--lime); border-color: var(--lime); }
.qa.open .plus::before, .qa.open .plus::after { background: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--lime-100); }
.chip-cb input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.check input { accent-color: var(--ink); }
.switch input:checked + span { background: var(--ink); }
.form-tabs button[aria-selected="true"]::after { background: var(--lime); height: 3px; }
.success .ok-ic { background: var(--lime); color: var(--ink); }

/* CTA — dark with lime glow */
.cta-section { background: var(--ink); color: #fff; }
.cta-section::before { background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); }
.cta-section::after { content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -420px; pointer-events: none;
  background: radial-gradient(circle, rgba(200, 239, 9, .32) 0%, rgba(200, 239, 9, 0) 60%); }
.cta-section .section-head .lead, .cta-aside, .next-steps li { color: #A9B0C2; }
.cta-section h2, .cta-aside h3, .next-steps b { color: #fff; }
.next-steps li::before { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--lime); }
.aside-login { border-top-color: rgba(255, 255, 255, .12); }
.aside-login p { color: #A9B0C2; }
.cta-grid, .form-card { position: relative; z-index: 1; }
.form-card { box-shadow: 0 30px 80px rgba(0, 0, 0, .35); border: 0; color: var(--ink); }

/* footer */
.footer { background: #fff; }
.f-col a:hover { color: var(--lime-ink); }
.socials a:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* ---------------- Product shot (Overview screen, EN) ---------------- */
.shot-wrap { position: relative; margin-top: 64px; }
.shot-wrap::before { content: ""; position: absolute; left: 10%; right: 10%; top: 8%; height: 70%; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(200, 239, 9, .45), rgba(200, 239, 9, 0) 65%); filter: blur(30px); }
.shot { position: relative; z-index: 1; display: grid; grid-template-columns: 216px 1fr; gap: 0; padding: 12px 12px 12px 0; background: #FAFAFA;
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); font-size: 13px; color: var(--ink); text-align: left; overflow: hidden; }
.sh-side { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.sh-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 2px 8px 14px; }
.sh-brand .logo-mark { width: 26px; height: 26px; border-radius: 7px; }
.sh-brand .logo-mark img { width: 13px; }
.sh-grp { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); padding: 12px 8px 4px; }
.sh-item { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; color: var(--ink); font-size: 12.5px; }
.sh-item img { width: 15px; height: 15px; opacity: .85; }
.sh-item.on { background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--line); font-weight: 600; }
.sh-main { background: #fff; border-radius: 20px; border: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.sh-head { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.sh-sel, .sh-search { height: 34px; border: 1px solid var(--line); border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--ink); font-size: 12.5px; white-space: nowrap; }
.sh-sel img, .sh-search img { width: 14px; height: 14px; opacity: .7; }
.sh-search { flex: 1; max-width: 300px; color: var(--slate); }
.sh-search kbd { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--slate); }
.sh-bal { margin-left: auto; text-align: right; line-height: 1.15; }
.sh-bal small { display: block; font-size: 10.5px; color: var(--slate); }
.sh-bal b { font-size: 14px; font-weight: 600; }
.sh-btn { height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; display: inline-flex; align-items: center; font-weight: 500; font-size: 12.5px; white-space: nowrap; }
.sh-btn.lime { background: var(--lime); border-color: #B8DC00; font-weight: 600; }
.sh-av { width: 32px; height: 32px; border-radius: 50%; background: var(--mist); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.sh-body { padding: 24px; display: grid; gap: 20px; }
.sh-title h4 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.sh-title p { font-size: 13px; color: var(--slate); margin-top: 2px; }
.sh-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); background: #fff; min-width: 0; }
.sh-card h5 { margin: 0 0 12px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sh-card h5 small { font-size: 11.5px; color: var(--slate); font-weight: 400; }
.sh-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sh-kpi .k { font-size: 12px; color: var(--slate); }
.sh-kpi .v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.sh-kpi .d { font-size: 11.5px; color: var(--ink-2); }
.sh-kpi .d.up { color: var(--lime-ink); }
.sh-row { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.sh-bars { display: flex; align-items: flex-end; gap: 4px; height: 128px; }
.sh-bars i { flex: 1; background: var(--lime-100); border-radius: 3px 3px 1px 1px; transform-origin: bottom; animation: grow .8s var(--ease) both; }
.sh-bars i.now { background: var(--lime); box-shadow: 0 0 0 1px #9CC400 inset; }
@keyframes grow { from { transform: scaleY(.05); } }
.sh-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--slate); margin-top: 8px; }
.sh-attn { display: grid; gap: 10px; }
.sh-attn div { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; }
.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.pill.l { background: var(--lime-100); color: var(--lime-ink); }
.pill.o { background: var(--orange-50); color: #C24A07; }
.pill.g { background: var(--mist); color: var(--ink-2); }
.sh-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sh-tbl th { text-align: left; font-weight: 500; color: var(--slate); padding: 8px 10px; background: var(--mist); }
.sh-tbl th:first-child { border-radius: 8px 0 0 8px; } .sh-tbl th:last-child { border-radius: 0 8px 8px 0; }
.sh-tbl td { padding: 9px 10px; border-bottom: 1px solid #F0F2F6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sh-tbl tr:last-child td { border-bottom: 0; }
.sh-tbl td .m { display: inline-flex; align-items: center; gap: 7px; }
.sh-tbl td .m img { width: 14px; height: 14px; }
.sh-tbl tr.new td { animation: rowIn .6s var(--ease); background: var(--lime-50); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } }
.sh-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--lime-ink); font-weight: 500; }
.sh-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9CC400; animation: pulse 1.4s infinite; }

/* ---------------- Integrations ---------------- */
.int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.int-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow); }
.int-card h3 { font-size: 18px; margin-bottom: 6px; }
.int-card > p { font-size: 15px; color: var(--slate); margin-bottom: 18px; }
.int-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.int-logos span { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; background: #fff; transition: border-color .2s, background .2s; }
.int-logos span:hover { border-color: #C9E36A; background: var(--lime-50); }
.int-logos img { width: 18px; height: 18px; flex-shrink: 0; object-fit: contain; }
.int-note { margin-top: 28px; text-align: center; color: var(--slate); font-size: 15px; }

@media (max-width: 1023px) {
  .shot { grid-template-columns: 1fr; padding: 10px; }
  .sh-side { display: none; }
  .sh-kpis { grid-template-columns: 1fr 1fr; }
  .sh-row { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: 1fr; }
  .int-logos { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .shot-wrap { margin-top: 40px; }
  .sh-head { padding: 0 12px; height: 54px; }
  .sh-search, .sh-sel, .sh-head .sh-btn:not(.lime), .sh-av { display: none; }
  .sh-body { padding: 14px; gap: 14px; }
  .sh-kpi .v { font-size: 18px; }
  .sh-tbl th:nth-child(3), .sh-tbl td:nth-child(3) { display: none; }
  .int-logos { grid-template-columns: 1fr 1fr; }
  .cta-section::after { width: 500px; height: 500px; right: -200px; top: -240px; }
}
.shot > *, .sh-row > *, .int-grid > * { min-width: 0; }
.int-logos { grid-template-columns: 1fr 1fr; }
.int-logos span { text-overflow: ellipsis; }
.pay-logos span { height: 34px; min-width: 58px; }
.pay-logos img { height: 20px; max-width: 44px; object-fit: contain; }
@media (max-width: 1023px) { .int-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .int-logos { grid-template-columns: 1fr 1fr; } }
.pay-logos img { height: 26px; max-width: 48px; } .pay-logos img[alt="Stripe"] { height: 16px; }
@media (max-width: 767px) { .tbl tr.fb { background: #FFFAF6; border-color: var(--orange-100); } .tbl tr.fb td { background: transparent; } }
@media (max-width: 1023px) { .dash-tab[aria-selected="true"] .dt-title svg { color: var(--lime); } }

/* =====================================================================
   v3 — no large dark surfaces; bright lime sign-up block; footer lang dropdown
   ===================================================================== */
/* pricing formula: white → soft lime → bright lime */
.f-term.yr { background: var(--lime-100); border-color: #DCF28A; }
.f-term.total { background: var(--lime); border-color: #B8DC00; }
.f-term.total .f-k { color: var(--ink-2); }
.f-term.total .f-v { color: var(--ink); }

/* routing node: light lime instead of ink */
.router-svg .n-yr { fill: var(--lime-50); stroke: #9CC400; }
.router-svg #n-yr .n-t { fill: var(--ink); }
.router-svg .chip { fill: #fff; stroke: #DCF28A; }
.router-svg .chip-t { fill: var(--lime-ink); }

/* mobile dashboard tabs: lime pill instead of ink */
@media (max-width: 1023px) {
  .dash-tab[aria-selected="true"] { background: var(--lime); border-color: var(--lime); }
  .dash-tab[aria-selected="true"] .dt-title, .dash-tab[aria-selected="true"] .dt-title svg { color: var(--ink); }
}

/* sign-up: bright lime block with white form card */
.cta-section { background: linear-gradient(135deg, #D7F63C 0%, #C8EF09 45%, #B6E000 100%); color: var(--ink); }
.cta-section::before { background-image: radial-gradient(rgba(18, 23, 42, .09) 1px, transparent 1px); }
.cta-section::after { background: radial-gradient(circle, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 60%); }
.cta-section h2, .cta-aside h3, .next-steps b { color: var(--ink); }
.cta-section .section-head .lead, .cta-aside, .next-steps li, .aside-login p { color: #3E4A12; }
.next-steps li::before { background: rgba(255, 255, 255, .7); border-color: rgba(18, 23, 42, .12); color: var(--ink); }
.aside-login { border-top-color: rgba(18, 23, 42, .14); }
.form-card { box-shadow: 0 24px 60px rgba(70, 90, 0, .25); }
.cta-section .form-tabs button[aria-selected="true"]::after { background: var(--ink); }

/* footer language dropdown */
.lang-select { position: relative; display: inline-flex; align-items: center; }
.lang-select svg { position: absolute; left: 10px; width: 15px; height: 15px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; pointer-events: none; }
.lang-select select { -webkit-appearance: none; appearance: none; height: 36px; padding: 0 32px 0 32px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667089' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center/14px no-repeat; cursor: pointer; }
.lang-select select:hover { border-color: #CDD3DF; }
.lang-select select:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--lime-100); }

/* header: fewer items now — keep nav centered */
.nav a { font-size: 15px; padding: 8px 14px; }
@media (max-width: 1179px) { .nav { display: none; } }
@media (min-width: 900px) and (max-width: 1179px) { .nav { display: flex; } .burger { display: none; } .header-actions .btn-text { display: inline-flex; } }

/* stub pages */
.page-hero { min-height: calc(100vh - 68px - 90px); display: grid; align-items: center; padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; left: 50%; top: 10%; width: 900px; height: 500px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(200, 239, 9, .35), rgba(200, 239, 9, 0) 65%); filter: blur(20px); }
.page-hero .container { position: relative; }
.page-hero h1 { margin: 16px auto 18px; max-width: 900px; }
.page-hero .lead { max-width: 640px; margin: 0 auto; }
.soon-pill { display: inline-flex; margin-top: 28px; height: 30px; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--lime-100); color: var(--lime-ink); font-size: 13px; font-weight: 600; }
.footer-mini { padding: 24px 0; }
.footer-mini .f-bottom { margin: 0 auto; padding: 0 var(--gutter); border: 0; }
.nav a.active { color: var(--ink); background: var(--lime-100); }
@media (max-width: 899px) { .subpage .nav { display: none; } .subpage .header-actions .btn-text { display: none; } }

/* =====================================================================
   Performance: lighter effects, paused off-screen animation, lazy rendering
   ===================================================================== */
/* any animation inside an off-screen block stops (JS toggles .paused) */
.paused, .paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
/* big blurred glows → plain soft gradients (filter: blur repaints a huge layer) */
.shot-wrap::before, .page-hero::before { filter: none; }
.shot-wrap::before { background: radial-gradient(ellipse at center, rgba(200, 239, 9, .32), rgba(200, 239, 9, 0) 70%); }
/* calmer hero lines */
.hero-bg .rl.flow { animation-duration: 9s; }
/* lighter sticky header blur */
.header.scrolled { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(250, 250, 250, .9); }
/* small pulses: slower, opacity only */
.badge .dot, .sh-live::before, .response .r-head .live { animation-duration: 2.4s; }
/* skip layout/paint of below-the-fold sections until they approach the viewport */
#features, #models, #integrations, #pricing, #faq, .footer { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
/* marquee & bars run on the compositor */
.marquee-track { will-change: transform; }
@media (max-width: 767px) {
  /* phones: no background route animation, no live marquee */
  .hero-bg .rl.flow { display: none; }
  .marquee-track { animation-duration: 60s; }
}

/* =====================================================================
   v4 — mobile cards for live requests, vertical router, contact form,
   lime slider, cookie modal on phones
   ===================================================================== */
/* contact form head (replaces tabs) */
.form-head { padding: 22px 24px 0; }
.form-head h3 { font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.form-head p { margin-top: 4px; color: var(--slate); font-size: 14.5px; line-height: 1.5; }

/* calculator: lime track, light thumb */
.range { background: linear-gradient(90deg, var(--lime) var(--p, 30%), var(--line) var(--p, 30%)); }
.range::-webkit-slider-thumb { background: #fff; border: 2px solid #9CC400; box-shadow: 0 2px 10px rgba(156, 196, 0, .45); }
.range::-moz-range-thumb { background: #fff; border: 2px solid #9CC400; box-shadow: 0 2px 10px rgba(156, 196, 0, .45); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--lime-100); }
.calc label { flex-wrap: nowrap; }
.calc label > span { white-space: nowrap; }

/* logo glyph is a 3x PNG now */
.logo-mark img { width: 16px; height: auto; image-rendering: auto; }
.sh-brand .logo-mark img { width: 13px; }


@media (max-width: 767px) {
  /* live requests → cards */
  .sh-tbl, .sh-tbl tbody { display: block; }
  .sh-tbl thead { display: none; }
  .sh-tbl tbody { display: grid; gap: 8px; }
  .sh-tbl tr { display: grid; grid-template-columns: auto 1fr auto; column-gap: 10px; row-gap: 4px; align-items: center;
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
  .sh-tbl tr.new { background: var(--lime-50); animation: rowIn .6s var(--ease); }
  .sh-tbl tr:nth-child(n+4) { display: none; }
  .sh-tbl td { padding: 0; border: 0 !important; background: none !important; animation: none !important; min-width: 0; }
  .sh-tbl td:nth-child(2) { grid-column: 1 / 3; grid-row: 1; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
  .sh-tbl td:nth-child(5) { grid-column: 3; grid-row: 1; justify-self: end; font-family: var(--mono); font-weight: 600; }
  .sh-tbl td:nth-child(1) { grid-column: 1; grid-row: 2; font-family: var(--mono); font-size: 11.5px; color: var(--slate); }
  .sh-tbl td:nth-child(4) { grid-column: 2; grid-row: 2; font-size: 11.5px; color: var(--slate); overflow: hidden; text-overflow: ellipsis; }
  .sh-tbl td:nth-child(4)::after { content: " tok"; }
  .sh-tbl td:nth-child(6) { grid-column: 3; grid-row: 2; justify-self: end; }
  .sh-tbl td:nth-child(3) { display: none; }

  /* contact form: no side column on phones */
  .cta-aside { display: none !important; }
  .form-head { padding: 18px 18px 0; }

}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* router on phones: vertical layout (JS swaps geometry), no horizontal scroll */
.router-svg.vertical { min-width: 0; max-width: 420px; display: block; margin: 0 auto; }
@media (max-width: 600px) { .router-stage { overflow: visible; } }

/* =====================================================================
   v5 — mobile clean-up, burger overlay, cookie bottom sheet
   ===================================================================== */
/* burger menu: panel under the header over a blurred page */
.mobile-menu { position: fixed; left: 0; right: 0; bottom: 0; top: 60px; z-index: 90; border: 0; box-shadow: none; padding: 10px 12px;
  background: rgba(18, 23, 42, .22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: fadeIn .2s ease; }
.mobile-menu[hidden] { display: none; }
.mobile-menu .mm-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 6px 18px 18px;
  box-shadow: 0 24px 60px rgba(18, 23, 42, .18); animation: mmIn .25s var(--ease); }
.mobile-menu nav a:last-child { border-bottom: 0; }
html.menu-open, html.menu-open body { overflow: hidden; }
@keyframes mmIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
  /* hero: two buttons in one row */
  .hero-ctas { flex-direction: row; gap: 10px; }
  .hero-ctas .btn { flex: 1 1 0; width: auto; min-width: 0; padding: 0 12px; font-size: 15px; white-space: nowrap; }

  /* blocks we don't show on phones */
  .hide-m { display: none !important; }

  /* cookie: bottom sheet */
  .cookie { left: 0; right: 0; bottom: 0; top: auto; transform: none; max-width: none; border-radius: 20px 20px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(18, 23, 42, .14); animation: sheetIn .3s var(--ease); }
  .cookie .c-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cookie .c-btns .btn { width: 100%; justify-content: center; }
  .cookie .c-btns .btn-text { grid-column: 1 / -1; justify-content: center; min-height: 40px; }
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
