/* ============================================================
   BelRosTech — design tokens v2 (single source of truth)
   Neutral 95% + ONE restrained blue accent. Primary = black (ink).
   ============================================================ */
:root {
  --ink-900: #0E0F13;   /* text, black primary buttons, dark sections */
  --ink-800: #1A1C22;
  --ink-600: #3A3F4B;
  --ink-500: #5A6172;   /* secondary text */
  --ink-400: #8A91A3;   /* muted / captions */
  --line:    #E8EAEE;   /* 1px hairlines */
  --surface: #FFFFFF;
  --bg:      #FCFCFD;
  --bg-alt:  #F5F6F8;

  --accent:      #1D4ED8;  /* links, icon strokes, focus, step badges */
  --accent-ink:  #1E3A8A;
  --accent-soft: #EAF0FF;

  --pos: #0F9D7A;
  --neg: #DC2626;

  --r-pill: 999px;
  --r-btn: 12px;
  --r-card: 16px;
  --r-lg: 20px;

  --sh-sm: 0 1px 2px rgba(14,15,19,.05);
  --sh-md: 0 8px 24px -10px rgba(14,15,19,.14);
  --sh-lg: 0 28px 70px -20px rgba(14,15,19,.22);

  /* vertical rhythm — EQUAL top & bottom on every section */
  --section-y: 112px;

  --ease: cubic-bezier(.2,.8,.2,1);
  --font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
/* the whole page scrolls inside this fixed, clipped layer (not the body) —
   the webview-proof way to keep a sticky header truly pinned and stop content
   from ever rendering above it on iOS/Telegram. */
.scroll-root { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior: none; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink-900);
  background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
  font-size: 16px; height: 100%; overflow: hidden;
}
/* landing is a dark composition — body dark so the sticky bar's transparent
   top and over-scroll read as part of the hero, never a white strip. */
body.lp { background: #0A0B0F; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
::selection { background: var(--accent-soft); }

/* ---- type scale ---- */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-900); }
h1 { font-size: 58px; line-height: 1.06; font-weight: 700; }
h2 { font-size: 38px; line-height: 1.1; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.body-l { font-size: 18px; line-height: 1.6; }
.muted { color: var(--ink-400); }
.sub { color: var(--ink-500); }
.accent-text { color: var(--accent); }
.grad-text { color: var(--accent); }   /* alias: single accent, no gradient */

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  font-weight: 600; letter-spacing: .01em; color: var(--ink-600);
  background: var(--surface); border: 1px solid var(--line); padding: 6px 14px;
  border-radius: var(--r-pill); box-shadow: var(--sh-sm); }
.eyebrow .gd { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---- container ---- */
.container { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }

/* ---- buttons (primary = BLACK) ---- */
.btn, .btn-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; cursor: pointer; border: none;
  color: #fff; border-radius: var(--r-btn);
  background: linear-gradient(180deg, #22252E 0%, #0E0F13 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 1px 2px rgba(0,0,0,.18), 0 10px 24px -14px rgba(0,0,0,.55);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.btn { font-size: 15.5px; height: 48px; padding: 0 22px; }
.btn-sm { font-size: 14px; height: 40px; padding: 0 16px; }
.btn:hover, .btn-sm:hover { transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 32px -14px rgba(0,0,0,.6); }
.btn:active, .btn-sm:active { transform: translateY(0) scale(.99); }
.btn.ghost, .btn-sm.ghost { background: transparent; color: var(--ink-900);
  border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover, .btn-sm.ghost:hover { background: var(--bg-alt); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.btn.on-dark, .section-dark .btn:not(.ghost) {
  background: linear-gradient(180deg, #fff 0%, #EEF1F6 100%); color: #0E0F13;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 24px -12px rgba(0,0,0,.5); }
.btn.on-dark:hover, .section-dark .btn:not(.ghost):hover { background: linear-gradient(180deg, #fff, #E7EBF2); }
.section-dark .btn.ghost { border-color: rgba(255,255,255,.18); color: #fff; }
.section-dark .btn.ghost:hover { background: rgba(255,255,255,.06); }
.btn.block { width: 100%; }
.btn.sheen { position: relative; overflow: hidden; }
.btn.sheen::before { content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease); }
.btn.sheen:hover::before { left: 150%; }

/* ---- pill / card ---- */
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px;
  font-weight: 600; color: var(--ink-800); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; }
.card { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 24px; box-shadow: var(--sh-sm); }

/* ---- Lucide icons via CSS mask (official SVGs, currentColor) ---- */
.licon { display: inline-block; width: 24px; height: 24px; color: var(--accent);
  background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }

/* ---- navigation ----
   sticky inside .scroll-root, so the header pins to the top of the scroll
   layer and content scrolls UNDER it (real frosted glass) and can never paint
   above it — the webview-proof pattern. */
.topbar { position: sticky; top: 0; z-index: 50; height: 64px; display: flex;
  align-items: center; gap: 14px; padding: 0 24px;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease, color .25s ease; }
.topbar .brand { display: flex; align-items: center; gap: 10px; color: var(--ink-900); }
.topbar .brand img { height: 24px; width: auto; }
.topbar .brand span { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 24px; margin-left: 20px; }
.nav-links a { color: var(--ink-500); font-size: 14.5px; font-weight: 500; transition: color .18s var(--ease); }
.nav-links a:hover { color: var(--ink-900); }
.topbar .spacer { flex: 1; }
.nav-badge-test { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ink-400);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px; }

/* ============================================================
   Landing sections — EQUAL vertical padding everywhere
   ============================================================ */
.section { padding-block: var(--section-y); background: var(--bg); }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.head p { color: var(--ink-500); font-size: 18px; margin: 14px auto 0; max-width: 42ch; }

/* ---- hero ---- */
.hero { position: relative; padding-top: 92px; padding-bottom: var(--section-y); overflow: clip; }
.hero::before { content: ""; position: absolute; left: 50%; top: -120px; width: 900px; height: 480px;
  transform: translateX(-50%); z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 40%, var(--accent-soft), transparent 70%); opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero .container { position: relative; z-index: 1; display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(0,0.92fr); gap: 48px; align-items: center; }
.hero h1 { margin: 22px 0 0; }
.hsub { color: var(--ink-500); font-size: 18px; line-height: 1.6; max-width: 540px; margin: 20px 0 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.works-with { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 32px;
  color: var(--ink-400); font-size: 13px; }
.works-with .lp { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 20px; min-height: 60px; box-shadow: var(--sh-sm); }
.works-with .lp img { height: 40px; width: auto; display: block; object-fit: contain; }

/* ---- chat mock ---- */
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head .av { width: 28px; height: 28px; border-radius: 8px; overflow: hidden; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.chat-head .av img { width: 28px; height: 28px; object-fit: cover; }
.chat-head .nm { font-weight: 600; font-size: 14px; }
.chat-head .st { margin-left: auto; font-size: 12px; color: var(--ink-400); }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.bubble.user { align-self: flex-end; max-width: 90%; background: var(--ink-900); color: #fff;
  font-size: 14.5px; padding: 11px 15px; border-radius: var(--r-card) var(--r-card) 4px var(--r-card); }
.bubble.bot { align-self: stretch; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 4px var(--r-card) var(--r-card) var(--r-card); padding: 18px; }
.bubble.bot h3 { font-size: 16px; margin-bottom: 12px; }
.tot { font-size: 14px; color: var(--ink-600); margin-bottom: 12px; }
.tot b { font-weight: 700; color: var(--ink-900); }
.deltas { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.dchip { font-size: 12.5px; font-weight: 600; color: var(--pos); background: rgba(15,157,122,.1);
  border-radius: var(--r-pill); padding: 3px 10px; }
.spark { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; margin-left: 2px; }
.spark i { width: 5px; border-radius: 2px; background: var(--accent); display: inline-block; }
.spark i.a { background: var(--line); }
.toplist { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px;
  font-family: var(--mono); font-size: 12.5px; line-height: 2; color: var(--ink-600); }
.toplist .ln { display: grid; grid-template-columns: 1fr auto; gap: 16px; }
.toplist .ln .v { color: var(--ink-900); font-weight: 500; }
.toplist .more { color: var(--ink-400); }
.metarow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.mchip { font-size: 11.5px; color: var(--ink-400); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 3px 10px; }

/* ---- steps (canonical grid, no overlaps) ---- */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.scard { margin: 0; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 28px; box-shadow: var(--sh-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.scard:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.scard .badge-n { width: 40px; height: 40px; border-radius: var(--r-btn);
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px; margin-bottom: 16px; }
.scard .ic { margin-bottom: 12px; display: block; }
.scard h3 { margin-bottom: 8px; }
.scard p { color: var(--ink-500); margin: 0; font-size: 15px; }

/* ---- features 2x2 ---- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; max-width: 920px; margin: 0 auto; }
.fcard { margin: 0; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px; box-shadow: var(--sh-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.fcard .ic { margin-bottom: 12px; display: block; }
.fcard h3 { font-size: 18px; margin-bottom: 8px; }
.fcard p { color: var(--ink-500); margin: 0 0 4px; font-size: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chips .c { font-size: 12.5px; color: var(--ink-800); background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 10px; }

/* ---- examples 3x2 ---- */
.examples { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.qcard { margin: 0; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 24px; box-shadow: var(--sh-sm); cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.qcard:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: rgba(29,78,216,.35); }
.qcard .qic { margin-bottom: 12px; display: block; }
.qcard .q { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-900); line-height: 1.35; }
.qcard .d { color: var(--ink-400); font-size: 13.5px; margin-top: 8px; }

/* ---- final CTA (dark) ---- */
.cta { padding-block: var(--section-y); background: var(--bg); }
.cta-inner { position: relative; overflow: hidden; background: var(--ink-900); border-radius: var(--r-lg);
  padding: 76px 30px; text-align: center; }
.cta-inner::before { content: ""; position: absolute; left: 50%; top: -45%; width: 720px; height: 480px;
  transform: translateX(-50%); background: radial-gradient(closest-side, rgba(29,78,216,.5), transparent 70%); opacity: .5; }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.72); font-size: 18px; margin: 14px auto 28px; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer .container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 32px; color: var(--ink-400); font-size: 14px; }
.footer .brand { display: inline-flex; align-items: center; gap: 8px; }
.footer .brand img { height: 20px; }
.footer .spacer { flex: 1; }

/* ============================================================
   Auth pages (login / register)
   ============================================================ */
.authwrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); padding: 48px 20px; }
.authcard { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 36px; }
.authcard h2 { font-size: 26px; }
.authcard .sub { margin: 8px 0 24px; }
.authcard label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-600); margin: 18px 0 6px; }
.authcard .field-note { color: var(--ink-400); font-weight: 400; }
.authcard input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--r-btn); font-size: 15px; background: #fff; font-family: inherit;
  transition: border-color .18s, box-shadow .18s; }
.authcard input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.authcard .btn { height: 44px; margin-top: 24px; }
.authcard .alt { margin-top: 18px; font-size: 15px; color: var(--ink-500); }
.authcard .err { color: var(--neg); margin: 0 0 4px; font-size: 14px; }

/* ============================================================
   Generic inner pages (cabinet / admin / onboarding / consent)
   ============================================================ */
.wrap { max-width: 1120px; margin: 56px auto; padding: 0 24px; }
.wrap.narrow { max-width: 460px; }
label { display: block; font-size: 13px; margin: 16px 0 6px; font-weight: 600; color: var(--ink-500); }
input[type=text], input[type=email], input[type=password], input[type=url], select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-btn);
  font-size: 15px; background: #fff; font-family: inherit; transition: border-color .18s, box-shadow .18s; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.choice { border: 1px solid var(--line); border-radius: var(--r-btn); padding: 15px 16px;
  margin: 10px 0; cursor: pointer; display: block; transition: border-color .18s, box-shadow .18s; }
.choice:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice input { margin-right: 9px; }
.mono { font-family: var(--mono); font-size: 13px; background: var(--bg-alt); padding: 3px 8px;
  border-radius: 7px; word-break: break-all; }
.badge { font-size: 12px; padding: 3px 11px; border-radius: var(--r-pill); font-weight: 600; }
.badge.active { background: rgba(15,157,122,.12); color: #047857; }
.badge.pending { background: rgba(245,158,11,.14); color: #b45309; }
.badge.suspended, .badge.revoked { background: rgba(220,38,38,.12); color: #b91c1c; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--ink-400); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.steps { display: flex; gap: 8px; margin-bottom: 22px; }
.step { flex: 1; height: 4px; border-radius: var(--r-pill); background: var(--line); }
.step.done { background: var(--accent); } .step.cur { background: var(--accent); opacity: .5; }
.note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px;
  border-radius: 0 10px 10px 0; margin: 16px 0; font-size: 14px; }
.ok { color: #047857; } .err { color: #b91c1c; }
.list-clean { list-style: none; padding: 0; }
.list-clean li { padding: 11px 0; border-bottom: 1px solid var(--line); }

/* ---- reveal on scroll (safe: no-js shows everything) ---- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  * { scroll-behavior: auto; }
}

/* ============================================================
   Responsive — 1024 / 768 / 480 (sticky header preserved:
   NO overflow-x:hidden on body; overflow handled per-component)
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .examples { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  :root { --section-y: 64px; }
  h1 { font-size: 38px; line-height: 1.08; } h2 { font-size: 28px; }
  .nav-links, .nav-badge-test { display: none; }
  .topbar { gap: 8px; padding: 0 16px; }
  .topbar .brand span { font-size: 16px; }
  .topbar .btn-sm.ghost { display: none; }   /* keep only primary CTA; «Войти» stays in footer */
  .footer .container { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer .spacer { display: none; }
  .hero { padding-top: 40px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .steps3, .features, .examples { grid-template-columns: 1fr; gap: 16px; }
  .works-with > span:first-child { flex-basis: 100%; margin-bottom: 2px; }
  .works-with { gap: 10px; }
  .works-with .lp { padding: 8px 14px; min-height: 48px; }
  .works-with .lp img { height: 30px; }
  .head { margin-bottom: 40px; }
}
@media (max-width: 480px) {
  h1 { font-size: 32px; }
  .container { padding-inline: 20px; }
  .cta-inner { padding: 52px 22px; }
}

/* ============================================================
   Authorized zone — account menu, cabinet, wizard
   ============================================================ */

/* button icons inherit the button's text color */
.btn .licon, .btn-sm .licon { color: #fff; width: 18px; height: 18px; }
.btn.ghost .licon, .btn-sm.ghost .licon { color: var(--ink-900); }
.btn.on-dark .licon { color: var(--ink-900); }

/* account menu */
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; background: transparent;
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 10px 5px 6px;
  cursor: pointer; font-family: var(--font); transition: background .18s var(--ease); }
.acct-btn:hover { background: var(--bg-alt); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink-900); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; flex: 0 0 auto; }
.acct-meta { font-size: 13px; color: var(--ink-600); max-width: 170px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.acct-btn .chev { width: 16px; height: 16px; color: var(--ink-400); }
.acct-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 244px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-md); padding: 8px; z-index: 60; }
.acct-pop[hidden] { display: none; }
.acct-id { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.acct-id b { font-size: 14px; color: var(--ink-900); }
.acct-id span { font-size: 13px; color: var(--ink-400); }
.acct-sep { height: 1px; background: var(--line); margin: 6px 0; }
.acct-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent;
  border: none; cursor: pointer; font-family: var(--font); font-size: 14px; color: var(--ink-800);
  padding: 9px 10px; border-radius: 9px; }
.acct-item:hover { background: var(--bg-alt); }
.acct-item .licon { width: 18px; height: 18px; color: var(--ink-500); }
.linklike { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }

/* page header */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
.page-head h1 { font-size: 32px; }
.page-head .sub { margin-top: 6px; }
.page-head .btn { margin-left: auto; flex: 0 0 auto; }

/* KPI row */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 40px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 20px; box-shadow: var(--sh-sm); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-top span:first-child { font-size: 13px; color: var(--ink-400); }
.kpi-ic { width: 18px; height: 18px; color: var(--accent); }
.kpi-val { font-size: 28px; font-weight: 600; color: var(--ink-900); margin-top: 10px; line-height: 1.1; }
.badge-access { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: var(--r-pill); padding: 4px 12px; }

/* connected systems */
.sysblock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sysblock-head h2 { font-size: 24px; }
.syslist { display: grid; gap: 12px; }
.sysrow { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 16px 18px; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.sysrow:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.sysmono { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex: 0 0 auto; color: #fff; }
.sysmono.ms { background: #2B57D6; } .sysmono.oc { background: #E0A100; }
.sysname { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sysname b { font-size: 15px; color: var(--ink-900); }
.sysname span { font-size: 13px; color: var(--ink-400); }
.sysrow-act { flex: 0 0 auto; }

/* empty state */
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg);
  padding: 64px 24px; text-align: center; }
.empty-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.empty-ic .licon { width: 28px; height: 28px; color: var(--accent); }
.empty h3 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--ink-500); max-width: 360px; margin: 0 auto 22px; }

/* wizard */
.wizwrap { max-width: 760px; margin: 48px auto; padding: 0 20px; }
.wizcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: 40px; }
.wizcard h1 { font-size: 28px; margin-top: 24px; }
.wizcard .sub { margin-top: 8px; }
.wsteps { display: flex; gap: 8px; }
.wstep { flex: 1; }
.wstep i { display: block; height: 4px; border-radius: var(--r-pill); background: var(--line); }
.wstep.active i { background: var(--accent); }
.wstep span { display: block; font-size: 12.5px; margin-top: 8px; color: var(--ink-400); }
.wstep.active span { color: var(--ink-900); font-weight: 600; }
.sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin: 24px 0 8px; }
.sys-card { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px;
  cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease); }
.sys-card:hover { border-color: var(--accent); }
.sys-card[aria-selected="true"] { border: 2px solid var(--accent); background: var(--accent-soft); padding: 17px; }
.sys-logo { display: flex; align-items: center; height: 40px; margin-bottom: 10px; }
.sys-logo img { height: 34px; width: auto; }
.sys-t { font-weight: 600; font-size: 16px; color: var(--ink-900); }
.sys-d { font-size: 14px; color: var(--ink-500); margin-top: 2px; }
.sys-check { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; color: var(--accent); display: none; }
.sys-card[aria-selected="true"] .sys-check { display: block; }
.wizform label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-600); margin: 18px 0 6px; }
.wizform input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-btn);
  font-size: 15px; background: #fff; font-family: inherit; transition: border-color .18s, box-shadow .18s; }
.wizform input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.helper-link { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--accent); }
.prov-fields[hidden] { display: none; }
.wizard-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.wizard-actions .btn { white-space: nowrap; }
.btn.loading { opacity: .85; }
.spin { animation: brt-spin 1s linear infinite; }
@keyframes brt-spin { to { transform: rotate(360deg); } }

/* form messages */
.form-err { background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.25); color: #b91c1c;
  border-radius: var(--r-btn); padding: 12px 14px; font-size: 14px; margin-top: 18px; }
.field-err { color: var(--neg); font-size: 13px; margin: 6px 0 0; }
.field-note { color: var(--ink-400); font-size: 13px; font-weight: 400; }

@media (max-width: 768px) {
  .page-head { flex-direction: column; }
  .page-head .btn { margin-left: 0; width: 100%; }
  .kpis { grid-template-columns: 1fr; }
  .sys-grid { grid-template-columns: 1fr; }
  .acct-meta { display: none; }
  .wizcard { padding: 26px; }
}
@media (max-width: 560px) {
  .wizard-actions { flex-direction: column; gap: 10px; }
  .wizard-actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .sysrow { flex-wrap: wrap; }
  .sysname { flex-basis: calc(100% - 54px); }
}

/* ============================================================
   v5 — VISUAL LUX  (cinematic dark -> editorial light)
   ============================================================ */
:root { --display: "Unbounded", "Inter", system-ui, sans-serif; }

/* display typography + fluid scale */
h1, h2 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.04; }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; }
.eyebrow { letter-spacing: .02em; }
[data-count], .tot b, .toplist, .kpi-val, .num { font-variant-numeric: tabular-nums; }

/* page-grain overlay */
.grain { position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* finishing touches */
::selection { background: var(--accent-soft); color: var(--accent-ink); }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
html { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* glass embossing on light cards + shine layer */
.scard, .fcard, .qcard, .kpi { box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255,255,255,.65); }
.tilt { position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease); will-change: transform; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  transition: opacity .3s var(--ease);
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.22), transparent 60%); }
.tilt:hover::after { opacity: 1; }

/* ---- dark zone tokens ---- */
.section-dark { --surface: #14161D; --line: rgba(255,255,255,.08);
  --ink-900: #F4F6FB; --ink-800: #E4E7EF; --ink-600: #C2C8D6; --ink-500: #A6ADBD; --ink-400: #6E7686;
  --accent: #3B6EF5; --accent-soft: rgba(59,110,245,.16); --bg: #0A0B0F; --bg-alt: #0E1016;
  background: #0A0B0F; color: var(--ink-900); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--ink-900); }
.section-dark .sub, .section-dark .hsub { color: var(--ink-500); }
.section-dark .eyebrow { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--ink-500); box-shadow: none; }
.section-dark .btn:not(.ghost) { background: #fff; color: #0A0B0F; }
.section-dark .btn:not(.ghost):hover { background: #fff; }
.section-dark .btn.ghost { color: #fff; border-color: rgba(255,255,255,.22); }
.section-dark .btn.ghost:hover { background: rgba(255,255,255,.06); }
.section-dark .tilt::after { background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.08), transparent 60%); }

/* ---- hero (dark, cinematic) ---- */
.lp-hero { position: relative; overflow: clip; padding-top: 48px; padding-bottom: clamp(72px, 10vw, 128px); }
.lp-hero .container { position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: -25%;
  background:
    radial-gradient(38% 46% at 18% 22%, rgba(59,110,245,.30), transparent 60%),
    radial-gradient(40% 48% at 82% 28%, rgba(124,58,237,.20), transparent 62%),
    radial-gradient(50% 50% at 62% 82%, rgba(6,182,212,.14), transparent 60%);
  filter: blur(40px); animation: meshDrift 28s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; right: -6%; top: 14%; width: 56%; height: 70%;
  background: radial-gradient(closest-side, rgba(59,110,245,.22), transparent 70%); filter: blur(30px); }
@keyframes meshDrift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-4%,3%,0) scale(1.12); } }

/* orchestrated hero entrance */
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lp-hero .anim { opacity: 0; animation: heroIn .7s cubic-bezier(.2,.8,.2,1) forwards; }
.lp-hero .d1 { animation-delay: .04s; } .lp-hero .d2 { animation-delay: .12s; }
.lp-hero .d3 { animation-delay: .20s; } .lp-hero .d4 { animation-delay: .28s; }
.lp-hero .d5 { animation-delay: .38s; }

/* dark-aware topbar over the hero (landing only, before scroll) */
/* landing navbar: dark glass over the hero, solid once scrolled past it */
.lp .topbar { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.lp .topbar .brand span { color: #fff; }
.lp .topbar .nav-links a { color: rgba(255,255,255,.9); }
.lp .topbar .nav-links a:hover { color: #fff; }
.lp .topbar .nav-badge-test { color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
/* frosted-glass plate appears on scroll (dark over the hero) */
.lp .topbar.scrolled { background: rgba(10,11,15,.6); backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: rgba(255,255,255,.1); }
.lp .topbar:not(.nav--solid) .btn-sm.ghost { background: linear-gradient(180deg, #fff 0%, #EEF1F6 100%);
  color: #0E0F13; border: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 24px -12px rgba(0,0,0,.4); }
.lp .topbar:not(.nav--solid) .btn-sm.ghost:hover { background: linear-gradient(180deg, #fff 0%, #E7EBF2 100%); color: #0E0F13; }
.lp .topbar:not(.nav--solid) .btn-sm:not(.ghost) { background: linear-gradient(180deg,#fff,#EEF1F6); color: #0E0F13;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 24px -12px rgba(0,0,0,.4); }
.lp .topbar.nav--solid { background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--line); }
.lp .topbar.nav--solid .brand span { color: var(--ink-900); }
.lp .topbar.nav--solid .nav-links a { color: var(--ink-500); }
.lp .topbar.nav--solid .nav-links a:hover { color: var(--ink-900); }
.lp .topbar.nav--solid .nav-badge-test { color: var(--ink-400); background: var(--bg-alt); border-color: var(--line); }
.lp .topbar.nav--solid .btn-sm.ghost { background: transparent; color: var(--ink-900);
  border: 1px solid rgba(14,15,19,.16); box-shadow: none; }
.lp .topbar.nav--solid .btn-sm.ghost:hover { background: var(--bg-alt); color: var(--ink-900); border-color: rgba(14,15,19,.24); }
/* clear outline for «Войти» on any light topbar (login/register/onboarding) */
.topbar .btn-sm.ghost { border-color: rgba(14,15,19,.16); color: var(--ink-900); }
.topbar .btn-sm.ghost:hover { background: var(--bg-alt); border-color: rgba(14,15,19,.24); color: var(--ink-900); }

/* ---- interactive demo ---- */
.demo { display: flex; flex-direction: column; gap: 16px; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { font-family: var(--font); font-size: 13.5px; font-weight: 500; color: var(--ink-500);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 14px; cursor: pointer; transition: .18s var(--ease); }
.qchip:hover { color: #fff; border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.07); }
.qchip[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: var(--accent-soft); }
.section-dark .chat { background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); }
.section-dark .chat-head, .section-dark .bubble.bot, .section-dark .toplist { border-color: var(--line); }
.section-dark .chat-head .av { background: rgba(255,255,255,.06); }
.section-dark .bubble.bot { background: rgba(255,255,255,.03); }
.section-dark .bubble.user { background: var(--accent); color: #fff; }
.section-dark .tot { color: var(--ink-500); } .section-dark .tot b { color: #fff; }
.section-dark .toplist { color: var(--ink-500); } .section-dark .toplist .v { color: #fff; }
.section-dark .toplist .more { color: var(--ink-400); }
.section-dark .mchip { color: var(--ink-400); background: rgba(255,255,255,.03); border-color: var(--line); }
.section-dark .chat-head .nm { color: #fff; }

/* demo animation states */
.thinking { display: inline-flex; gap: 5px; align-items: center; padding: 4px 0; }
.thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-400); animation: blink 1.3s ease-in-out infinite; }
.thinking i:nth-child(2) { animation-delay: .18s; } .thinking i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
.ln { opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.ln.in { opacity: 1; transform: none; }
.dbar-track { height: 5px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 4px; }
.dbar { height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .9s cubic-bezier(.2,.8,.2,1); }

/* upgraded dark final CTA */
.cta-inner { background: #0A0B0F; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.cta-inner::before { background: radial-gradient(closest-side, rgba(59,110,245,.42), transparent 70%); opacity: .6; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .grain { opacity: .025; }
  .lp-hero .anim { opacity: 1 !important; animation: none !important; }
  .hero-bg::before { animation: none !important; }
  .thinking i { animation: none; opacity: .6; }
  .tilt { transition: none; }
  .ln { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1024px) {
  .lp-hero { padding-top: 104px; }
}
@media (max-width: 768px) {
  .lp-hero { padding-top: 36px; }
  .demo-chips { gap: 6px; }
  .qchip { font-size: 12.5px; padding: 7px 12px; }
}

/* ---- authorized zone inherits the premium language ---- */
body:not(.lp)::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 360px; z-index: -1;
  pointer-events: none; background: radial-gradient(58% 100% at 50% -8%, var(--accent-soft), transparent 72%); opacity: .7; }
.card, .wizcard, .sysrow { box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255,255,255,.65); }
.authwrap { position: relative; }
.authwrap::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(52% 62% at 50% 0%, var(--accent-soft), transparent 70%); opacity: .85; }
.authcard { position: relative; z-index: 1; box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255,255,255,.7); }

/* ============================================================
   v6 — pixel polish to lux
   ============================================================ */

/* hero: full-height, vertically centered, 3-line title, smoother bg */
.lp-hero { min-height: calc(100vh - 64px); display: flex; align-items: center; }
.lp-hero > .container { width: 100%; }
.lp-hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.lp-hero h1 .l { display: block; }
.lp-hero h1 .nowrap { white-space: nowrap; }
.accent-text { background: linear-gradient(92deg, #4F8BFF 0%, #8A7CFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .hero-bg::before { background:
  radial-gradient(34% 42% at 16% 20%, rgba(59,110,245,.30), transparent 58%),
  radial-gradient(30% 38% at 82% 22%, rgba(124,58,237,.22), transparent 60%),
  radial-gradient(40% 44% at 64% 78%, rgba(6,182,212,.14), transparent 62%),
  radial-gradient(86% 86% at 50% 42%, transparent 58%, rgba(10,11,15,.55) 95%); }
.section-dark .works-with > span:first-child { color: rgba(255,255,255,.5); }
.section-dark .works-with .lp { background: #fff; border-color: rgba(255,255,255,.12); box-shadow: 0 8px 22px -12px rgba(0,0,0,.55); }

/* ---- dashboard shell (ЛК) ---- */
.app .topbar, .app .footer { display: none; }
.app-shell { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar { width: 240px; flex: 0 0 240px; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; z-index: 60; }
.sidebar .s-logo { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.sidebar .s-logo img { height: 24px; }
.sidebar .s-logo span { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.s-nav { display: flex; flex-direction: column; gap: 4px; }
.s-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: var(--ink-600); font-size: 14.5px; font-weight: 500; position: relative; transition: .15s var(--ease); }
.s-item .licon { width: 19px; height: 19px; color: var(--ink-400); }
.s-item:hover { background: var(--bg-alt); color: var(--ink-900); }
.s-item.active { background: var(--accent-soft); color: var(--accent); }
.s-item.active .licon { color: var(--accent); }
.s-item.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 999px 999px 0; background: var(--accent); }
.s-spacer { flex: 1; }
.s-acct { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.s-acct .s-meta { flex: 1; min-width: 0; }
.s-acct .s-meta b { font-size: 13px; color: var(--ink-900); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-acct .s-meta span { font-size: 12px; color: var(--ink-400); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-logout { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.s-logout:hover { background: var(--bg-alt); }
.s-logout .licon { width: 17px; height: 17px; color: var(--ink-500); }
.app-main { flex: 1; min-width: 0; padding: 36px clamp(20px, 4vw, 48px);
  background: radial-gradient(72% 46% at 50% -6%, var(--accent-soft), transparent 60%), var(--bg-alt); }
.app-mtop { display: none; }

/* ---- live KPI cards ---- */
.kpi { background: linear-gradient(180deg, #fff 0%, #FBFCFE 100%);
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255,255,255,.7); }
.kpi-top > span:first-child { font-size: 13px; color: var(--ink-400); }
.kpi-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; }
.kpi-ico .licon { width: 17px; height: 17px; color: var(--accent); }
.kpi-val { font-size: 32px; font-weight: 700; margin-top: 12px; line-height: 1.05; }
.kpi-foot { margin-top: 10px; font-size: 12.5px; color: var(--ink-400); display: flex; align-items: center; gap: 7px; }
.kpi-strip { height: 4px; border-radius: 999px; background: var(--accent-soft); margin-top: 12px; overflow: hidden; }
.kpi-strip i { display: block; height: 100%; width: 42%; background: var(--accent); border-radius: 999px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); position: relative; flex: 0 0 auto; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--pos);
  animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }

/* ---- empty-state skeleton preview ---- */
.skel { margin-top: 28px; }
.skel-row { display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; opacity: .55; }
.skel-logo { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); flex: 0 0 auto; }
.skel-meta { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.skel-line { height: 10px; border-radius: 999px; background: var(--bg-alt); }
.skel-line.w40 { width: 40%; } .skel-line.w24 { width: 24%; }
.skel-badge { font-size: 12px; color: var(--ink-400); background: var(--bg-alt); border-radius: 999px; padding: 4px 12px; }
.skel-cap { text-align: center; font-size: 13px; color: var(--ink-400); margin-top: 12px; }

/* ---- mobile dashboard drawer ---- */
@media (max-width: 768px) {
  .app-shell { flex-direction: column; }
  .app-mtop { display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 45; }
  .app-mtop .brand { display: flex; align-items: center; gap: 9px; color: var(--ink-900); }
  .app-mtop .brand img { height: 22px; } .app-mtop .brand span { font-weight: 700; font-size: 16px; }
  .app-burger { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
    background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .app-burger .licon { width: 20px; height: 20px; color: var(--ink-700); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%);
    transition: transform .25s var(--ease); width: 260px; flex-basis: 260px; }
  .sidebar.open { transform: none; box-shadow: var(--sh-lg); }
  .app-ov { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden;
    transition: opacity .2s, visibility .2s; z-index: 55; }
  .app-ov.show { opacity: 1; visibility: visible; }
  .app-main { padding: 22px 18px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pulse-dot::after { animation: none; opacity: 0; }
  .btn.sheen::before { display: none; }
}

/* sidebar: disabled / coming-soon item (future local AI assistant) */
.s-item.disabled { color: var(--ink-400); cursor: default; }
.s-item.disabled .licon { color: var(--ink-400); opacity: .7; }
.s-item.disabled:hover { background: transparent; color: var(--ink-400); }
.s-item .soon { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 7px; }

/* ============================================================
   mobile overflow & overlap guards
   ============================================================ */
.toplist .ln > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toplist .ln .v { flex: 0 0 auto; white-space: nowrap; }
.hero-copy, .demo, .app-main, .skel-meta, .sysname { min-width: 0; }
@media (max-width: 768px) {
  .lp-hero { min-height: auto; display: block; overflow-x: clip; }
  .lp-hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .lp-hero h1 .nowrap { white-space: normal; }
  .eyebrow { max-width: 100%; }
  .section, .section.alt, .cta, .app-main, .wizwrap { overflow-x: clip; }
  .works-with { gap: 8px; }
  .bubble.user { max-width: 100%; }
}
@media (max-width: 380px) {
  .container { padding-inline: 16px; }
  .works-with .lp { padding: 6px 10px; min-height: 44px; }
  .works-with .lp img { height: 26px; }
}
