/* =====================================================================
   AiPlagProChecker design system
   Midnight + electric lime, geometric type, square-ish corners.
   ===================================================================== */
:root {
  --night: #0B1022;
  --night-2: #131A35;
  --night-3: #1D2546;
  --night-line: #2A3358;
  --lime: #C8F560;
  --lime-2: #B4E43F;
  --lime-ink: #142000;
  --violet: #8B7CFF;
  --violet-soft: #ECE9FF;
  --coral: #FF7A59;
  --coral-soft: #FFE8E1;
  --bg: #F3F5FA;
  --surface: #FFFFFF;
  --ink: #10142A;
  --ink-2: #4A5170;
  --muted: #7A809B;
  --line: #E1E5F0;
  --line-2: #CDD3E3;
  --ok: #12A150;
  --ok-soft: #E2F6EA;
  --warn: #B87A00;
  --warn-soft: #FFF3D6;
  --bad: #E5484D;
  --bad-soft: #FDE7E8;
  --r: 6px;
  --r-lg: 10px;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, Menlo, monospace;
  --shadow: 0 1px 0 rgba(16, 20, 42, .04), 0 8px 24px -12px rgba(16, 20, 42, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 15.5px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(16, 20, 42, .3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 0 rgba(200, 245, 96, .0); }
.btn-lime:hover { background: var(--lime-2); border-color: var(--lime-2); box-shadow: 0 6px 18px -6px rgba(180, 228, 63, .7); }
.btn-ink { background: var(--night); border-color: var(--night); color: #fff; }
.btn-ink:hover { background: var(--night-3); border-color: var(--night-3); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-danger { color: var(--bad); border-color: #F3C3C5; }
.btn-danger:hover { border-color: var(--bad); background: var(--bad-soft); }
.btn-danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger-solid:hover { background: #C93439; border-color: #C93439; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); border: 1px solid transparent; background: transparent; cursor: pointer; color: inherit; text-decoration: none; }
.icon-btn:hover { background: rgba(16, 20, 42, .06); }
.icon-btn.del { color: var(--muted); }
.icon-btn.del:hover { color: var(--bad); background: var(--bad-soft); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.logo-word b { color: var(--lime); font-weight: 700; }
.on-light .logo-word b { color: #6E9A00; }

/* ---------- pills / alerts / flashes ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--bg); color: var(--ink-2); white-space: nowrap; border: 1px solid var(--line); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill-wait { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill-bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill-off { color: var(--muted); }
.pill-test { background: var(--violet-soft); color: #5B4BE0; border-color: transparent; }
.flashes { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { padding: 12px 16px; border-radius: var(--r); font-weight: 600; font-size: 14.5px; border-left: 4px solid; background: var(--surface); box-shadow: var(--shadow); }
.flash.success { border-color: var(--ok); }
.flash.error { border-color: var(--bad); color: #A9262B; }
.flash.warning { border-color: var(--warn); }
.flash.info { border-color: var(--violet); }
.alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: var(--r-lg); margin-bottom: 18px; border: 1px solid; flex-wrap: wrap; }
.alert b { display: block; font-family: var(--display); font-size: 16px; }
.alert span { color: var(--ink-2); font-size: 14.5px; }
.alert-warn { background: var(--warn-soft); border-color: #F2DA9A; }
.alert-ok { background: var(--ok-soft); border-color: #B5E5C8; }
.alert-promo { background: var(--night); border-color: var(--night); color: #fff; }
.alert-promo span { color: #B9C0DC; }
.alert-promo b { color: var(--lime); }
.alert-info { background: var(--violet-soft); border-color: #D3CCFF; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label, .lbl { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.input { width: 100%; min-height: 44px; padding: 10px 13px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 124, 255, .18); }
.input:disabled { background: var(--bg); color: var(--muted); }
textarea.input { resize: vertical; min-height: 80px; }
.input.mono { font-family: var(--mono); font-size: 13.5px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.hint code, .code { font-family: var(--mono); font-size: 12.5px; background: var(--bg); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; cursor: pointer; font-size: 14.5px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--night); flex: none; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.radio-card { flex: 1 1 160px; border: 1.5px solid var(--line-2); border-radius: var(--r-lg); padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.radio-card input { margin-top: 4px; accent-color: var(--night); }
.radio-card b { display: block; font-family: var(--display); }
.radio-card small { color: var(--muted); font-size: 12.5px; }
.radio-card:has(input:checked) { border-color: var(--night); background: #FAFBFE; box-shadow: inset 0 0 0 1px var(--night); }
.keyline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-top: 6px; flex-wrap: wrap; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + i { background: var(--night); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--lime); }

/* =====================================================================
   PUBLIC SITE
   ===================================================================== */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(11, 16, 34, .92); backdrop-filter: blur(12px); color: #fff; border-bottom: 1px solid var(--night-line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.lnk { padding: 8px 12px; border-radius: var(--r); text-decoration: none; color: #C9CEE4; font-weight: 600; font-size: 14.5px; }
.nav-links a.lnk:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-links .btn { margin-left: 6px; }

.hero { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(139, 124, 255, .35), transparent 65%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 22px 96px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--lime); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 18px 0 20px; line-height: 1.02; letter-spacing: -.035em; }
.hero h1 .hl { color: var(--lime); position: relative; white-space: nowrap; }
.hero .lede { font-size: 18px; color: #B9C0DC; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero-cta .btn { min-height: 52px; padding: 0 24px; font-size: 15.5px; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: #B9C0DC; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { color: var(--lime); width: 18px; height: 18px; }

/* the scanner illustration */
.scanner { position: relative; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 14px; padding: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.scan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12px; color: #8C93B5; padding-bottom: 14px; border-bottom: 1px dashed var(--night-line); }
.scan-head .dots { display: flex; gap: 6px; }
.scan-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--night-line); }
.scan-head .dots i:first-child { background: var(--lime); }
.scan-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 16px; }
.scan-doc { position: relative; background: #F7F8FC; border-radius: 8px; padding: 18px 16px; overflow: hidden; min-height: 240px; }
.scan-doc .ln { height: 7px; border-radius: 3px; background: #DCE0EC; margin-bottom: 9px; }
.scan-doc .ln.t { height: 11px; width: 62%; background: #B8BED3; margin-bottom: 16px; }
.scan-doc .ln.s { background: rgba(255, 122, 89, .55); }
.scan-doc .ln.a { background: rgba(139, 124, 255, .55); }
.scan-beam { position: absolute; left: 0; right: 0; height: 46px; top: -46px; background: linear-gradient(180deg, transparent, rgba(200, 245, 96, .45) 85%, var(--lime)); animation: beam 3.6s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes beam { 0% { top: -46px; } 70% { top: 100%; } 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .scan-beam { animation: none; display: none; } html { scroll-behavior: auto; } }
.scan-side { display: flex; flex-direction: column; gap: 12px; }
.gauge { background: var(--night-3); border-radius: 8px; padding: 14px; }
.gauge .lab { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 11.5px; color: #8C93B5; text-transform: uppercase; letter-spacing: .06em; }
.gauge .val { font-family: var(--display); font-size: 34px; font-weight: 700; color: #fff; line-height: 1.1; margin: 6px 0 10px; }
.gauge .bar { height: 6px; border-radius: 3px; background: var(--night); overflow: hidden; }
.gauge .bar u { display: block; height: 100%; border-radius: 3px; }
.gauge.sim .bar u { background: var(--coral); width: 7%; }
.gauge.ai .bar u { background: var(--violet); width: 12%; }
.gauge.sim .val small { color: var(--coral); }
.gauge.ai .val small { color: var(--violet); }
.gauge .val small { font-size: 14px; margin-left: 4px; }
.scan-src { font-family: var(--mono); font-size: 11.5px; color: #8C93B5; display: grid; gap: 6px; }
.scan-src div { display: flex; justify-content: space-between; gap: 8px; }
.scan-src em { font-style: normal; color: #fff; }
.scan-foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--night-line); display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11.5px; color: #8C93B5; gap: 10px; flex-wrap: wrap; }
.scan-foot .ok { color: var(--lime); }

.ticker { background: var(--lime); color: var(--lime-ink); overflow: hidden; border-top: 1px solid #A8D23A; border-bottom: 1px solid #A8D23A; }
.ticker-track { display: flex; gap: 40px; padding: 13px 0; width: max-content; animation: slide 38s linear infinite; font-family: var(--mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ticker-track span { display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; }
.ticker-track span::after { content: "\2726"; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.sec { padding: 96px 0; }
.sec-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-dark { background: var(--night); color: #fff; }
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 30px; margin-bottom: 48px; align-items: start; }
.sec-head .num { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 2px solid var(--ink); }
.sec-dark .sec-head .num { color: #8C93B5; border-color: var(--lime); }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.sec-head p { color: var(--ink-2); font-size: 17px; margin-top: 12px; max-width: 640px; }
.sec-dark .sec-head p { color: #B9C0DC; }

.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.split-card { padding: 36px; position: relative; }
.split-card + .split-card { border-left: 1px solid var(--line); }
.split-card .tagline { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.split-card.sim .tagline { color: #D9512F; }
.split-card.ai .tagline { color: #5B4BE0; }
.split-card h3 { font-size: 28px; margin: 10px 0 12px; }
.split-card p { color: var(--ink-2); }
.split-card .big { font-family: var(--display); font-size: 92px; font-weight: 700; line-height: 1; letter-spacing: -.05em; margin: 24px 0 8px; }
.split-card.sim .big { color: var(--coral); }
.split-card.ai .big { color: var(--violet); }
.ticks { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14.5px; }
.ticks svg { width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.sec-dark .ticks svg { color: var(--lime); }
.both-note { margin-top: 18px; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.calc { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 14px; overflow: hidden; border: 1px solid var(--night-line); }
.calc-in { padding: 38px; background: var(--night-2); }
.calc-out { padding: 38px; background: var(--lime); color: var(--lime-ink); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.calc .price-tag { font-family: var(--display); font-size: 70px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.calc .price-tag small { font-size: 18px; font-family: var(--mono); letter-spacing: 0; color: #B9C0DC; margin-left: 6px; }
.calc-range { margin: 34px 0 10px; }
.calc-range label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: #B9C0DC; margin-bottom: 14px; }
.calc-range label b { color: #fff; font-size: 15px; }
.calc input[type=range] { width: 100%; accent-color: var(--lime); height: 28px; }
.calc .scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: #6F7698; }
.calc-out .lab { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.calc-out .total { font-family: var(--display); font-size: 64px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-top: 6px; }
.calc-out .local { font-family: var(--mono); font-size: 13px; margin-top: 8px; opacity: .8; }
.calc-out .get { font-weight: 700; margin-top: 10px; }
.calc-out .btn { background: var(--night); color: #fff; border-color: var(--night); min-height: 50px; }
.calc-out .btn:hover { background: var(--night-3); }
.calc-notes { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 13.5px; color: #B9C0DC; }
.calc-notes span { display: inline-flex; gap: 8px; align-items: center; }
.calc-notes svg { color: var(--lime); width: 16px; height: 16px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line-2); }
.steps li { counter-increment: s; padding: 28px 26px 0 0; position: relative; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); background: var(--lime); padding: 3px 8px; border-radius: 4px; position: absolute; top: -13px; left: 0; }
.steps h3 { font-size: 21px; margin: 10px 0 8px; }
.steps p { color: var(--ink-2); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--night); color: var(--lime); margin-bottom: 18px; }
.tile .ic svg { width: 21px; height: 21px; }
.tile h3 { font-size: 18px; margin-bottom: 8px; }
.tile p { color: var(--ink-2); font-size: 14.5px; }

.lockup { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lock { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 12px; padding: 24px; display: flex; gap: 16px; }
.lock svg { color: var(--lime); width: 24px; height: 24px; margin-top: 2px; }
.lock b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 4px; }
.lock span { color: #B9C0DC; font-size: 14.5px; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 20px; }
.faq details[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font-family: var(--display); font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--bg); transition: transform .2s; }
.faq details[open] summary::after { content: "\2212"; background: var(--lime); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

.final { position: relative; overflow: hidden; background: var(--night); color: #fff; border-radius: 18px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.final::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(200, 245, 96, .12); }
.final h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 560px; }
.final p { color: #B9C0DC; margin-top: 10px; }
.final .btn { position: relative; z-index: 1; min-height: 52px; padding: 0 26px; }

.foot { background: var(--night); color: #B9C0DC; padding: 64px 0 30px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.foot .logo { color: #fff; margin-bottom: 14px; }
.foot h4 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #6F7698; margin-bottom: 14px; font-weight: 600; }
.foot .links { display: grid; gap: 9px; }
.foot .links a { text-decoration: none; overflow-wrap: anywhere; }
.foot .links a:hover { color: var(--lime); }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #6F7698; }
.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; border-radius: 99px; min-height: 52px; padding: 0 20px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }

/* auth pages */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--night); color: #fff; padding: 64px 56px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.auth-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 40px 40px; }
.auth-art > * { position: relative; }
.auth-art h2 { font-size: 38px; margin: 18px 0 16px; max-width: 420px; }
.auth-art p { color: #B9C0DC; max-width: 420px; }
.auth-art .ticks { margin-top: 28px; }
.auth-art .ticks li { color: #fff; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 22px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 32px; margin-bottom: 8px; }
.auth-box .lede { color: var(--ink-2); margin-bottom: 26px; }
.auth-alt { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--ink-2); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; font-family: var(--mono); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.g-btn svg { width: 18px; height: 18px; }

/* text pages */
.doc { max-width: 780px; margin: 0 auto; padding: 64px 22px 90px; }
.doc h1 { font-size: clamp(32px, 4vw, 46px); }
.doc .upd { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 10px 0 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.doc h2 { font-size: 21px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink-2); margin-bottom: 10px; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--ink); font-weight: 700; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--lime-2); padding: 16px 18px; border-radius: var(--r); margin: 0 0 18px; color: var(--ink); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 10px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.contact-card svg { width: 26px; height: 26px; padding: 5px; background: var(--night); color: var(--lime); border-radius: 7px; margin-bottom: 8px; }
.contact-card b { font-family: var(--display); }
.contact-card a { overflow-wrap: anywhere; font-weight: 600; }
.oops { text-align: center; padding: 120px 22px; }
.oops h1 { font-size: 110px; font-family: var(--mono); letter-spacing: -.05em; }
.oops h1 span { color: var(--violet); }

/* =====================================================================
   SIGNED-IN APP (customers and console)
   ===================================================================== */
body.app { background: var(--bg); }
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--night); color: #C9CEE4; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px; border-right: 1px solid var(--night-line); }
.side .logo { color: #fff; padding: 0 8px 24px; }
.side .logo-word { font-size: 17px; }
.side-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #5E6588; padding: 0 10px 8px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: 14.5px; position: relative; }
.side-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side-nav a.on { background: var(--night-3); color: #fff; }
.side-nav a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lime); }
.side-nav a.on svg { color: var(--lime); }
.badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 99px; background: var(--night-line); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; font-family: var(--mono); }
.badge.hot { background: var(--coral); }
.badge.live { background: var(--ok); }
.side-box { margin-top: 22px; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 10px; padding: 14px; }
.side-box .lab { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #6F7698; }
.side-box .n { font-family: var(--display); font-size: 34px; font-weight: 700; color: #fff; line-height: 1.1; }
.side-box .n small { font-size: 14px; color: #8C93B5; font-family: var(--body); font-weight: 600; margin-left: 4px; }
.side-box .btn { margin-top: 10px; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--night-line); display: flex; align-items: center; gap: 10px; }
.side-foot .who { flex: 1; min-width: 0; line-height: 1.3; }
.side-foot .who b { display: block; color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who small { font-size: 12px; color: #8C93B5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.side-foot .icon-btn { color: #C9CEE4; }
.side-foot .icon-btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 8px; background: var(--lime); color: var(--lime-ink); display: inline-grid; place-items: center; font-family: var(--display); font-weight: 700; flex: none; text-decoration: none; }
.pip { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.mobilebar { display: none; }
.tabbar { display: none; }
.work { min-width: 0; padding: 30px 36px 40px; }
.work-in { max-width: 1180px; }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.work-head .crumb { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.work-head h1 { font-size: 32px; overflow-wrap: anywhere; }
.work-head .sub { color: var(--ink-2); margin-top: 6px; max-width: 720px; }
.work-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.work-acts form { display: contents; }
.app-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.app-foot a { text-decoration: none; }
.app-foot a:hover { color: var(--ink); }
.mode-chip { font-family: var(--mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 4px; }
.mode-chip.test { background: var(--violet-soft); color: #5B4BE0; }
.mode-chip.live { background: var(--ok-soft); color: var(--ok); }
.side .mode-chip { display: inline-block; margin: 0 10px 14px; }
.side .mode-chip.test { background: rgba(139, 124, 255, .18); color: #C1B9FF; }
.side .mode-chip.live { background: rgba(18, 161, 80, .2); color: #7CE0A6; }

.nudge { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 18px; flex-wrap: wrap; }
.nudge .sw-ic { flex: none; }
.nudge > div:nth-child(2) { flex: 1 1 260px; }
.nudge b { display: block; font-family: var(--display); }
.nudge span { color: var(--ink-2); font-size: 14px; }
.nudge .acts { display: flex; gap: 8px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h2 { font-size: 17px; display: flex; align-items: center; gap: 9px; margin-right: auto; }
.card-head h2 svg { width: 18px; height: 18px; color: var(--ink-2); }
.card-body { padding: 20px; }
.card.danger-zone { border-color: #F3C3C5; }
.card.danger-zone .card-head { background: #FFF8F8; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cols-even { grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 18px; align-content: start; }
.narrow { max-width: 760px; }
.sticky { position: sticky; top: 20px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; position: relative; }
.kpi span { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kpi b { display: block; font-family: var(--display); font-size: 32px; line-height: 1.15; margin-top: 4px; }
.kpi a { position: absolute; top: 14px; right: 14px; font-size: 12.5px; font-weight: 700; }
.kpi.hi { background: var(--night); border-color: var(--night); color: #fff; }
.kpi.hi span { color: #8C93B5; }
.kpi.hi b { color: var(--lime); }
.kpi.hi a { color: var(--lime); }

.list-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 4px; font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--night); color: #fff; }
.search { position: relative; flex: 1 1 220px; max-width: 340px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search .input { padding-left: 36px; min-height: 38px; }
.rows { list-style: none; }
.row { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.rows .row:last-child { border-bottom: 0; }
.row:hover { background: #FAFBFD; }
.row-head { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 10px; padding-bottom: 10px; background: #FAFBFD; }
.cons .row { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.6fr) auto; }
.cell-k { display: none; }
.filecell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.filecell > div { min-width: 0; }
.filecell b { display: block; overflow-wrap: anywhere; font-size: 14.5px; }
.filecell small { display: block; color: var(--muted); font-size: 12.5px; }
.ext { flex: none; width: 42px; height: 48px; border-radius: 6px 12px 6px 6px; background: var(--night); color: var(--lime); font-family: var(--mono); font-size: 10.5px; font-weight: 700; display: grid; place-items: end center; padding-bottom: 7px; }
.score { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--display); font-size: 20px; font-weight: 700; }
.score small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.score.sim { color: #D9512F; }
.score.ai { color: #5B4BE0; }
.acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.acts form { display: inline-flex; }
.rlink { display: inline-flex; border-radius: var(--r); overflow: hidden; border: 1px solid; font-size: 13px; font-weight: 700; }
.rlink a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; text-decoration: none; }
.rlink a + a { border-left: 1px solid; padding: 6px 8px; }
.rlink svg { width: 16px; height: 16px; }
.rlink.sim { border-color: #FFC9B9; color: #C2401F; background: var(--coral-soft); }
.rlink.sim a + a { border-color: #FFC9B9; }
.rlink.ai { border-color: #D3CCFF; color: #4B3BD0; background: var(--violet-soft); }
.rlink.ai a + a { border-color: #D3CCFF; }
.rlink a:hover { background: rgba(255, 255, 255, .5); }
.nomatch { display: none; padding: 30px; text-align: center; color: var(--muted); }
.empty { text-align: center; padding: 56px 22px; }
.empty .ic { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px; background: var(--night); color: var(--lime); display: grid; place-items: center; }
.empty .ic svg { width: 26px; height: 26px; }
.empty h3 { font-size: 21px; margin-bottom: 6px; }
.empty p { color: var(--ink-2); margin-bottom: 18px; }
.seen { display: grid; gap: 2px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.seen i { font-style: normal; font-weight: 700; }
.seen i.v { color: #5B4BE0; }
.seen i.d { color: var(--ok); }
.seen i.n { color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 10px 16px; background: #FAFBFD; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.xscroll { overflow-x: auto; }
.kv { display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.kv span { color: var(--muted); flex: none; }
.kv b { text-align: right; overflow-wrap: anywhere; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.evt { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: flex-start; }
.evt:last-child { border-bottom: 0; }
.evt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.evt-i { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.evt-i svg { width: 16px; height: 16px; }
.evt-i.v { background: var(--violet-soft); color: #5B4BE0; }
.evt-i.d { background: var(--ok-soft); color: var(--ok); }
.people { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px; }
.person { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 14px 10px 10px; text-decoration: none; background: var(--surface); }
.person:hover { border-color: var(--ink); }
.person b { display: block; font-size: 14px; }
.presence { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); vertical-align: middle; }
.presence .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.presence.here .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(18, 161, 80, .18); }
.presence.idle .dot { background: #F0B429; }
.presence.here .pl { color: var(--ok); font-weight: 700; }
.presence .pt { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.presence .pd { font-size: 12px; }

/* send a file */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; border: 2px dashed var(--line-2); border-radius: 12px; padding: 44px 20px; cursor: pointer; background: repeating-linear-gradient(-45deg, #FAFBFD, #FAFBFD 10px, #F5F7FB 10px, #F5F7FB 20px); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--night); background: #F1FADC; }
.drop .ic { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: var(--night); color: var(--lime); margin-bottom: 8px; }
.drop .ic svg { width: 24px; height: 24px; }
.drop b { font-family: var(--display); font-size: 19px; }
.drop span { color: var(--ink-2); font-size: 14px; }
.drop u { font-weight: 700; }
.drop input { display: none; }
.picked { display: grid; gap: 8px; margin-top: 14px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.pick .ext { width: 34px; height: 40px; font-size: 9.5px; padding-bottom: 5px; }
.pick .nm { flex: 1; min-width: 0; }
.pick .nm b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.pick .nm small { color: var(--muted); font-size: 12.5px; }
.pick.skip { opacity: .55; }
.pick.skip small { color: var(--bad); }
.shortfall { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-top: 14px; border-radius: var(--r); background: var(--warn-soft); font-size: 14px; flex-wrap: wrap; }
.next-list { list-style: none; counter-reset: n; display: grid; gap: 16px; }
.next-list li { counter-increment: n; display: flex; gap: 14px; }
.next-list li::before { content: counter(n); flex: none; width: 28px; height: 28px; border-radius: 6px; background: var(--lime); color: var(--lime-ink); font-family: var(--mono); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.next-list b { display: block; font-family: var(--display); }
.next-list span { color: var(--ink-2); font-size: 14px; }

/* buy slots */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-bottom: 24px; }
.pack { position: relative; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: var(--r-lg); padding: 16px 10px 12px; cursor: pointer; text-align: center; display: grid; gap: 2px; transition: border-color .15s, transform .12s; }
.pack:hover { border-color: var(--ink); transform: translateY(-1px); }
.pack.on { border-color: var(--night); background: var(--night); color: #fff; }
.pack b { font-family: var(--display); font-size: 28px; line-height: 1; }
.pack span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.pack.on span { color: var(--lime); }
.pack em { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 800; background: var(--lime); color: var(--lime-ink); padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.pack i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ok); }
.pack.on i { color: var(--lime); }
.qty { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stepper { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.stepper button { width: 46px; border: 0; background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.stepper button:hover { background: var(--line); }
.stepper input { width: 84px; text-align: center; border: 0; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); font-family: var(--display); font-size: 22px; font-weight: 700; min-height: 48px; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.promo { margin-top: 22px; border-top: 1px dashed var(--line-2); padding-top: 16px; }
.promo summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.promo-row { display: flex; gap: 8px; margin-top: 12px; }
.promo-msg { font-size: 13.5px; margin-top: 8px; min-height: 1px; }
.promo-msg.ok { color: var(--ok); font-weight: 700; }
.promo-msg.err { color: var(--bad); font-weight: 600; }
.summary { padding: 0; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 20px; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.summary .line span { color: var(--ink-2); }
.summary .line.get { background: #F6FBEA; }
.summary .tot { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px; background: var(--night); color: #fff; }
.summary .tot span { font-family: var(--mono); text-transform: uppercase; font-size: 12px; letter-spacing: .1em; color: #8C93B5; }
.summary .tot b { font-family: var(--display); font-size: 34px; color: var(--lime); }
.summary .payarea { padding: 18px 20px 20px; }
.summary .local { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-align: center; margin-bottom: 14px; }
.cardrow { display: flex; justify-content: center; gap: 6px; margin: 14px 0 8px; flex-wrap: wrap; }
.cardrow span { font-family: var(--mono); font-size: 10.5px; font-weight: 700; border: 1px solid var(--line-2); padding: 3px 7px; border-radius: 4px; color: var(--ink-2); }
.secure { text-align: center; font-size: 12.5px; color: var(--muted); }

/* notifications */
.sw-row { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sw-row.off .sw-t { opacity: .6; }
.sw-ic { width: 38px; height: 38px; border-radius: 9px; background: var(--night); color: var(--lime); display: grid; place-items: center; flex: none; }
.sw-ic svg { width: 18px; height: 18px; }
.sw-t { flex: 1; min-width: 0; }
.sw-t b { display: flex; align-items: center; gap: 8px; font-family: var(--display); }
.sw-t > span { color: var(--ink-2); font-size: 14px; display: block; }
.saved { font-family: var(--mono); font-size: 11px; color: var(--ok); opacity: 0; transition: opacity .2s; font-weight: 600; }
.saved.show { opacity: 1; }
.devbox { margin: 0 20px 20px; padding: 16px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.devbox-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.devbox-top small { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.ddot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.ddot.ok { background: var(--ok); }
.ddot.bad { background: var(--bad); }
.devbox p { color: var(--ink-2); font-size: 14px; margin: 6px 0 12px; }
.devbox .acts { justify-content: flex-start; }
.devmsg { font-size: 13.5px; margin-top: 8px; font-weight: 600; }
.devbox details { margin-top: 12px; font-size: 13.5px; }
.devbox summary { cursor: pointer; font-weight: 700; }
.devbox details ul { padding-left: 18px; margin-top: 8px; display: grid; gap: 6px; color: var(--ink-2); }

/* confirm dialog */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(11, 16, 34, .6); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border-radius: 12px; padding: 26px; max-width: 420px; width: 100%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); border-top: 4px solid var(--bad); }
.modal-box h3 { font-size: 21px; margin-bottom: 8px; }
.modal-box p { color: var(--ink-2); margin-bottom: 16px; }
.modal-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* console toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 12px; background: var(--night); color: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55); animation: pop .25s ease-out; border: 1px solid var(--night-line); }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } }
.toast-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--night-3); color: var(--lime); }
.toast-ic svg { width: 17px; height: 17px; }
.toast-help .toast-ic { color: var(--coral); }
.toast-t { flex: 1; min-width: 0; font-size: 13.5px; }
.toast-t b { display: block; font-family: var(--display); font-size: 14.5px; }
.toast-t span, .toast-t q { color: #B9C0DC; display: block; overflow-wrap: anywhere; }
.toast-acts { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.toast-acts .btn:not(.btn-lime) { background: transparent; color: #fff; border-color: var(--night-line); }
.toast-mute { background: none; border: 0; color: #8C93B5; font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.toast-x { background: none; border: 0; color: #8C93B5; cursor: pointer; align-self: flex-start; width: 24px; height: 24px; padding: 0; }
.toast-x svg { width: 16px; height: 16px; }

/* console messages (inbox) */
.ib { display: grid; grid-template-columns: 330px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; min-height: 520px; }
.ib-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ib-tools { padding: 12px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.ib-tools .search { max-width: none; }
.ib-list { overflow-y: auto; flex: 1; }
.ib-none { padding: 30px 18px; text-align: center; color: var(--muted); font-size: 14px; }
.ib-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.ib-item:hover { background: #FAFBFD; }
.ib-item.on { background: #F2F9E2; box-shadow: inset 3px 0 0 var(--lime-2); }
.ib-item.unread b { font-weight: 800; }
.ib-av { position: relative; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; flex: none; }
.ib-av i { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: var(--line-2); }
.ib-av i.here { background: var(--ok); }
.ib-av i.idle { background: #F0B429; }
.ib-mid { flex: 1; min-width: 0; }
.ib-top { display: flex; gap: 6px; align-items: center; }
.ib-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ib-top time { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; font-family: var(--mono); }
.kind { font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; flex: none; }
.kind.v { background: var(--warn-soft); color: var(--warn); }
.kind.c { background: var(--violet-soft); color: #5B4BE0; }
.kind.x { background: var(--bg); color: var(--muted); }
.ib-last { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.ib-last span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ib-n { background: var(--coral); color: #fff; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 0 7px; }
.ib-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ib-blank { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px; color: var(--ink-2); }
.ib-blank h3 { color: var(--ink); margin-bottom: 8px; }
.ib-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ib-back { display: none; }
.ib-who { flex: 1; min-width: 0; }
.ib-who b { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ib-who a { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ib-acts { display: flex; gap: 6px; align-items: center; }
.ib-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 16px; font-size: 12.5px; color: var(--muted); background: #FAFBFD; border-bottom: 1px solid var(--line); }
.ib-facts b { color: var(--ink); }
.ib-feed { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.ib-day, .cw-day { align-self: center; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 99px; margin: 8px 0; }
.ib-sys, .cw-sys { align-self: center; font-size: 12.5px; color: var(--muted); text-align: center; max-width: 85%; }
.ib-msg { max-width: 76%; align-self: flex-start; }
.ib-msg.me { align-self: flex-end; text-align: right; }
.ib-bub, .cw-bub { display: inline-block; text-align: left; padding: 10px 14px; border-radius: 12px 12px 12px 3px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.ib-msg.me .ib-bub { background: var(--night); color: #fff; border-color: var(--night); border-radius: 12px 12px 3px 12px; }
.ib-msg.me .ib-bub a { color: var(--lime); }
.ib-meta, .cw-meta { font-size: 11.5px; color: var(--muted); margin: 3px 4px 4px; }
.ib-typing { padding: 0 16px; font-size: 12.5px; color: var(--muted); min-height: 18px; background: var(--bg); }
.ib-canned { display: flex; gap: 6px; padding: 10px 16px 0; overflow-x: auto; }
.ib-canned button { flex: none; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.ib-canned button:hover { border-color: var(--ink); }
.ib-write, .cw-write { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px; }
.ib-write textarea, .cw-write textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; min-height: 44px; max-height: 160px; outline: none; background: var(--surface); }
.ib-write textarea:focus, .cw-write textarea:focus { border-color: var(--violet); }
.send-btn { width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.send-btn:disabled { background: var(--line); color: var(--muted); cursor: default; }
.send-btn svg { width: 20px; height: 20px; }
.ib-hint { padding: 0 16px 12px; font-size: 12.5px; color: var(--muted); }
.ib-hint .err { color: var(--bad); font-weight: 700; }

/* =====================================================================
   HELP CHAT WIDGET
   ===================================================================== */
.cw { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-size: 14.5px; }
.cw-launch { display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; background: var(--night); color: #fff; border-radius: 16px; padding: 8px 18px 8px 8px; box-shadow: 0 14px 34px -12px rgba(11, 16, 34, .7); position: relative; transition: transform .15s; }
.cw-launch:hover { transform: translateY(-2px); }
.cw-launch .face { position: relative; width: 42px; height: 42px; border-radius: 12px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; }
.cw-launch .face svg { width: 22px; height: 22px; }
.cw-launch .live { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); border: 2px solid var(--night); }
.cw-launch.on .live { background: #3BE07F; }
.cw-launch .lt { display: grid; text-align: left; line-height: 1.2; }
.cw-launch .lt b { font-family: var(--display); }
.cw-launch .lt small { color: #B9C0DC; font-size: 12px; }
.cw-launch .n { position: absolute; top: -6px; left: -6px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 800; border-radius: 99px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }
.cw-launch.tucked { display: none; }
.cw-launch.mini { padding: 8px; }
.cw-launch.mini .lt { display: none; }
.cw-peek { position: relative; max-width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 14px 34px 14px 16px; box-shadow: var(--shadow); cursor: pointer; }
.cw-peek b { font-family: var(--display); display: block; margin-bottom: 2px; }
.cw-peek p { color: var(--ink-2); font-size: 13.5px; }
.cw-peek-x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.cw-panel { width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100vh - 110px)); background: var(--surface); border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(11, 16, 34, .55); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.cw-head { position: relative; display: flex; align-items: center; gap: 6px; padding: 16px 12px 16px 18px; background: var(--night); color: #fff; }
.cw-head .grow { flex: 1; min-width: 0; }
.cw-head h2 { font-size: 17px; }
.cw-head .st { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #B9C0DC; }
.cw-head .st i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.cw-head .st.on i { background: #3BE07F; }
.cw-hb { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.cw-hb:hover { background: rgba(255, 255, 255, .1); }
.cw-hb svg { width: 18px; height: 18px; }
.cw-menu { position: absolute; right: 10px; top: 56px; z-index: 3; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 240px; }
.cw-menu button, .cw-menu a { text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.cw-menu button:hover, .cw-menu a:hover { background: var(--bg); }
.cw-menu em { font-style: normal; font-weight: 800; color: var(--ok); }
.cw-menu em.off { color: var(--muted); }
.cw-feed { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.cw-m { align-self: flex-start; max-width: 84%; }
.cw-m.me { align-self: flex-end; text-align: right; }
.cw-m.me .cw-bub { background: var(--night); color: #fff; border-color: var(--night); border-radius: 12px 12px 3px 12px; }
.cw-m.me .cw-bub a { color: var(--lime); }
.cw-m.joined .cw-meta { display: none; }
.cw-m.sending { opacity: .6; }
.cw-m.failed .cw-bub { border-color: var(--bad); }
.cw-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.cw-topics button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: 13px; cursor: pointer; font-weight: 600; }
.cw-topics button:hover { border-color: var(--night); background: #F2F9E2; }
.cw-dots { display: inline-flex; gap: 4px; }
.cw-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.cw-dots i:nth-child(2) { animation-delay: .2s; }
.cw-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.cw-id { padding: 12px 16px 0; border-top: 1px solid var(--line); }
.cw-id p { font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.cw-id-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.cw-id .input { min-height: 38px; padding: 8px 10px; font-size: 14px; }
.cw-id .input.bad { border-color: var(--bad); }
.cw-trap { position: absolute; left: -9999px; }
.cw-err { color: var(--bad); font-size: 12.5px; font-weight: 600; padding: 0 16px; }
.cw-write { border-top: 1px solid var(--line); padding: 10px 12px; }
.cw-foot { font-size: 11.5px; color: var(--muted); text-align: center; padding: 0 12px 10px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .cols, .cols-even { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 56px 22px 64px; gap: 40px; }
  .sec { padding: 68px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .split, .calc, .lockup, .faq { grid-template-columns: 1fr; }
  .split-card + .split-card { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; border-top: 0; gap: 28px; }
  .steps li { border-top: 1px solid var(--line-2); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .contact-cards { grid-template-columns: 1fr; }
  .wide-only { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobilebar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; background: var(--night); color: #fff; padding: 10px 14px; }
  .mobilebar .logo { margin-right: auto; color: #fff; }
  .mobilebar .logo-word { font-size: 16px; }
  .mobilebar .icon-btn { color: #fff; position: relative; }
  .mobilebar .bal { font-family: var(--mono); font-size: 12.5px; font-weight: 700; background: var(--night-3); color: var(--lime); padding: 5px 10px; border-radius: 6px; text-decoration: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--night); border-top: 1px solid var(--night-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar.scroll { overflow-x: auto; }
  .tabbar a { flex: 1 0 auto; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; color: #8C93B5; text-decoration: none; font-size: 11px; font-weight: 700; position: relative; border-radius: 8px; }
  .tabbar a.on { color: var(--lime); background: var(--night-3); }
  .tabbar .badge { position: absolute; top: 0; right: 8px; margin: 0; min-width: 18px; height: 17px; font-size: 10px; padding: 0 5px; }
  body.app { padding-bottom: 76px; }
  .work { padding: 22px 16px 30px; }
  .work-head h1 { font-size: 26px; }
  .toasts { bottom: 86px; }
  .cw { bottom: 86px; }
  body:not(.app) .cw { bottom: 16px; }
  .ib { grid-template-columns: 1fr; }
  .ib.reading .ib-side { display: none; }
  .ib:not(.reading) .ib-main { display: none; }
  .ib-back { display: inline-grid; }
  .ib-feed { min-height: 50vh; }
}
@media (max-width: 760px) {
  .nav-in { height: 60px; }
  .nav-links a.lnk:not(.keep) { display: none; }
  .logo-word { font-size: 17px; }
  .hero h1 { font-size: 38px; }
  .scan-body { grid-template-columns: 1fr; }
  .scan-doc { min-height: 150px; }
  .split-card, .calc-in, .calc-out { padding: 26px; }
  .split-card .big { font-size: 70px; }
  .calc .price-tag { font-size: 54px; }
  .tiles { grid-template-columns: 1fr; }
  .final { padding: 34px 26px; }
  .foot-grid { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .row, .cons .row { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .row > .filecell, .row > .acts { grid-column: 1 / -1; }
  .row > .acts { justify-content: flex-start; }
  .row-head { display: none; }
  .cell-k { display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .list-tools { padding: 12px; }
  .search { max-width: none; }
  .hide-narrow { display: none; }
  .cw-launch .lt { display: none; }
  .cw-launch { padding: 8px; }
  .cw { right: 14px; }
  .cw-panel { height: calc(100vh - 120px); }
  .wa-fab span { display: none; }
  .wa-fab { padding: 0 15px; }
}
