/* ============================================================================
 * landing.css — landing-only layer ON TOP of the app design tokens
 * (css/tokens.css). Everything is var(--token)-driven so the page stays
 * consistent in ANY theme; the default is capture (dark minty), same as the app.
 * Prefix: .ld-*  (no collisions with the SPA component classes).
 * Design goal (operator direction): the WHOLE page carries the hero's energy —
 * a living bento of feature tiles, real Telegram-phone + browser mockups, bold
 * accents and motion (count-up numbers, growing bars, sliding-in delivery,
 * a model marquee).
 * ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.ld-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* keyword accents (operator: «нужны акценты») */
.hl { color: var(--primary); }
.ld-tile p b, .ld-ch-copy p b, .ld-pr p b, .ld-control-copy p b, .ld-sec-sub b, .ld-hero-sub b, .ld-cta p b {
  color: var(--text); font-weight: var(--fw-semibold); }

/* ---- buttons (landing flavour of .btn) ----------------------------------- */
.ld-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--pill); padding: 11px 22px;
  font-size: 14.5px; font-weight: var(--fw-semibold); cursor: pointer; white-space: nowrap;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast); }
.ld-btn:hover { transform: translateY(-1px); }
.ld-btn:active { transform: translateY(0); }
.ld-btn.cta { background: var(--cta); color: var(--on-cta); box-shadow: var(--glow); }
.ld-btn.cta:hover { box-shadow: var(--glow), var(--sh-sm); }
.ld-btn.ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.ld-btn.ghost:hover { background: var(--surface-2); }
.ld-btn.sm { padding: 8px 16px; font-size: 13.5px; }
.ld-btn.lg { padding: 14px 28px; font-size: 15.5px; }
.ld-btn.busy { opacity: .6; pointer-events: none; }

/* ---- sticky nav ----------------------------------------------------------- */
.ld-nav { position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); }
.ld-nav-in { max-width: 1180px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 22px; }
.ld-brand { display: inline-flex; align-items: center; gap: 10px; }
/* logo tile: the brand SVG is transparent → white background so it always reads */
.ld-logo { width: 34px; height: 34px; border-radius: 10px; background: #fff; box-shadow: var(--sh-sm);
  display: grid; place-items: center; }
.ld-logo img { display: block; }
.ld-logo.sm { width: 28px; height: 28px; border-radius: 8px; }
.ld-logo.sm img { width: 20px; height: 20px; }
.ld-brand-t { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 16.5px; letter-spacing: -.01em; }
.ld-links { display: flex; gap: 4px; margin-left: 8px; }
.ld-links a { padding: 8px 12px; border-radius: var(--pill); font-size: 14px; color: var(--text-2); transition: var(--t-fast); }
.ld-links a:hover { color: var(--text); background: var(--surface-2); }
.ld-nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* language toggle — visible segmented RU|EN */
.ld-lang { display: inline-flex; border: 1px solid var(--border-2); border-radius: var(--pill); padding: 3px; background: var(--surface); }
.ld-lang button { border: 0; background: transparent; color: var(--muted); font-size: 12.5px;
  font-weight: var(--fw-semibold); padding: 5px 11px; border-radius: var(--pill); cursor: pointer; transition: var(--t-fast); }
.ld-lang button.on { background: var(--primary); color: var(--on-primary); }
.ld-lang button:not(.on):hover { color: var(--text); }

/* ---- hero ------------------------------------------------------------------ */
.ld-hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.ld-hero-glow { position: absolute; inset: -40% -20% auto; height: 130%; pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 30%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
    radial-gradient(30% 38% at 78% 22%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.ld-hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.ld-eyebrow { display: inline-block; font-size: 12.5px; font-weight: var(--fw-semibold); letter-spacing: .8px;
  text-transform: uppercase; color: var(--primary); background: var(--primary-weak);
  padding: 6px 14px; border-radius: var(--pill); margin-bottom: 20px; }
.ld-hero h1 { font-family: var(--font-display); font-weight: var(--fw-bold); letter-spacing: -.025em;
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; }
.ld-hero-sub { margin-top: 20px; font-size: 16.5px; line-height: 1.65; color: var(--text-2); max-width: 540px; }
.ld-hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.ld-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.ld-hbadge { font-size: 12.5px; font-weight: var(--fw-medium); color: var(--text-2);
  border: 1px solid var(--border-2); border-radius: var(--pill); padding: 6px 12px; background: color-mix(in srgb, var(--surface) 60%, transparent); }

/* ---- the simulation player (the visual language of the live chat) --------- */
.ld-hero-player { min-width: 0; }
.ld-player { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden; display: flex; flex-direction: column; height: 480px; }
.ld-player-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border); flex: none; }
.ld-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--primary-weak); color: var(--primary);
  display: grid; place-items: center; font-size: 11.5px; font-weight: var(--fw-bold); }
.ld-player-t { font-weight: var(--fw-semibold); font-size: 14px; }
.ld-player-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.ld-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ld-pulse 1.3s ease-in-out infinite; }
@keyframes ld-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .35; } }
.ld-player-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 13px; scrollbar-width: thin; }
.ld-player-input { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 8px 8px 8px 15px;
  border: 1px solid var(--border-2); border-radius: var(--r-lg); background: var(--surface-2); flex: none; }
.ld-player-ph { flex: 1; font-size: 13.5px; color: var(--muted); user-select: none; }
.ld-player-send { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--cta); color: var(--on-cta); display: grid; place-items: center; transition: var(--t-fast); }
.ld-player-send:hover { transform: scale(1.06); }
.ld-player-send svg { width: 16px; height: 16px; }

/* chat pieces inside the player — mirrors the SPA chat (bubble / run / msg) */
.ld-row { display: flex; gap: 9px; align-items: flex-start; animation: ld-in .3s var(--ease); }
.ld-row.user { flex-direction: row-reverse; }
@keyframes ld-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ld-bubble { max-width: 84%; padding: 10px 14px; border-radius: var(--r-lg); font-size: 13.5px; line-height: 1.5; }
.ld-bubble.user { background: var(--primary); color: var(--on-primary); border-top-right-radius: var(--r-xs); }
.ld-answer { font-size: 13.5px; line-height: 1.62; color: var(--text); word-break: break-word; white-space: pre-wrap; min-width: 0; }
.ld-answer b { font-weight: var(--fw-semibold); }
.ld-caret { display: inline-block; width: 7px; height: 14px; margin-left: 1px; vertical-align: -2px;
  background: var(--primary); border-radius: 2px; animation: ld-blink .8s step-end infinite; }
@keyframes ld-blink { 50% { opacity: 0; } }

/* run-steps timeline — dot + label + ticking seconds, same as the live run UI */
.ld-run { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; padding-top: 5px; }
.ld-step, .ld-sum { display: flex; align-items: center; gap: 9px; font-size: 12.5px; line-height: 1.55; color: var(--text-2); padding: 2px 0; animation: ld-in .25s var(--ease); }
.ld-step .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-2); flex: none; transition: background .2s ease; }
.ld-step .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-step .sec, .ld-sum .sec { margin-left: auto; padding-left: 12px; font-size: 11px; color: var(--muted); opacity: .8; font-variant-numeric: tabular-nums; }
.ld-step.active { color: var(--text); }
.ld-step.active .dot { background: var(--primary); animation: ld-pulse 1.15s ease-in-out infinite; }
.ld-step.done { color: var(--muted); opacity: .68; }
.ld-sum { color: var(--text); font-weight: var(--fw-medium); cursor: pointer; }
.ld-sum .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.ld-steps.collapsed { display: none; }
.ld-steps { display: flex; flex-direction: column; gap: 2px; }

/* typing dots */
.ld-typing { display: inline-flex; padding: 6px 0; }
.ld-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin: 0 2px; animation: ld-blinkdots 1.2s infinite; }
.ld-typing span:nth-child(2) { animation-delay: .2s; } .ld-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ld-blinkdots { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* rich extras rendered after an answer */
.ld-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; max-width: 360px; }
.ld-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; animation: ld-in .3s var(--ease); }
.ld-stat .v { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 16.5px; letter-spacing: -.02em; }
.ld-stat .v small { font-size: 11px; font-weight: var(--fw-semibold); color: var(--ok); margin-left: 5px; }
.ld-stat .k { font-size: 11px; color: var(--muted); margin-top: 1px; }
.ld-pdf { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 14px; margin-top: 10px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; animation: ld-in .3s var(--ease); cursor: default; }
.ld-pdf .ic { width: 30px; height: 30px; border-radius: var(--r-xs); background: var(--danger-weak); color: var(--danger);
  display: grid; place-items: center; font-size: 10px; font-weight: var(--fw-bold); flex: none; }
.ld-pdf .nm { font-weight: var(--fw-medium); }
.ld-pdf .mt { font-size: 11px; color: var(--muted); }
.ld-tree { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.ld-node { display: flex; align-items: center; gap: 9px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 9px 12px; font-size: 12.5px; animation: ld-in .3s var(--ease); }
.ld-node.lvl2 { margin-left: 18px; } .ld-node.lvl3 { margin-left: 36px; }
.ld-node .nm { font-weight: var(--fw-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-paused { margin-left: auto; flex: none; font-size: 10px; font-weight: var(--fw-bold); letter-spacing: .5px;
  color: var(--warn); background: var(--warn-weak); border-radius: var(--pill); padding: 3px 8px; }
.ld-sched { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; animation: ld-in .3s var(--ease); }
.ld-sched .on { font-size: 10px; font-weight: var(--fw-bold); letter-spacing: .5px; color: var(--ok);
  background: var(--ok-weak); border-radius: var(--pill); padding: 3px 8px; }

/* scenario chips under the player */
.ld-scenarios { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.ld-scn { border: 1px solid var(--border-2); background: transparent; color: var(--text-2); cursor: pointer;
  border-radius: var(--pill); padding: 7px 14px; font-size: 12.5px; font-weight: var(--fw-medium); transition: var(--t-fast); }
.ld-scn:hover { color: var(--text); background: var(--surface-2); }
.ld-scn.on { background: var(--primary); border-color: transparent; color: var(--on-primary); }

/* ---- sections -------------------------------------------------------------- */
.ld-section { padding: 96px 0; position: relative; }
.ld-section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ld-sec-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.ld-sec-kicker { font-size: 12.5px; font-weight: var(--fw-semibold); letter-spacing: .8px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px; }
.ld-sec-head h2 { font-family: var(--font-display); font-weight: var(--fw-bold); letter-spacing: -.02em;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; }
.ld-sec-sub { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* ---- FEATURES — bento of living tiles ------------------------------------- */
.ld-bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 16px; }
.ld-tile { position: relative; overflow: hidden; grid-column: span 2;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.ld-tile:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--border-2); }
.ld-tile.big { grid-column: span 4; grid-row: span 2; }
.ld-tile-body h3 { font-size: 17px; font-weight: var(--fw-semibold); letter-spacing: -.01em; margin-bottom: 7px; }
.ld-tile.big .ld-tile-body h3 { font-size: clamp(20px, 2vw, 26px); }
.ld-tile-body p { font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.ld-tile.big .ld-tile-body p { font-size: 15px; max-width: 460px; }
.ld-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: var(--fw-semibold);
  color: var(--primary); margin-bottom: 12px; }
.ld-tag-badge { font-size: 9.5px; font-weight: var(--fw-bold); letter-spacing: .4px; color: var(--on-primary);
  background: var(--primary); border-radius: var(--pill); padding: 3px 8px; margin-left: 2px; }

/* big analytics tile — growing bars + count-up stats (fills the tall tile) */
.ld-analytics { margin-top: 20px; display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.ld-tile.big .ld-analytics { flex: 1; align-items: flex-end; }
.ld-tile.big .ld-bars { height: 100%; min-height: 140px; }
.ld-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; flex: 1; min-width: 180px; }
.ld-bars i { flex: 1; border-radius: 5px 5px 0 0; height: var(--h);
  background: color-mix(in srgb, var(--primary) 42%, var(--surface-3)); transition: height 1s var(--ease) .2s; }
.ld-bars i:last-child { background: var(--primary); box-shadow: var(--glow); }
html.js .ld-tile.reveal:not(.in) .ld-bars i { height: 8%; }
.ld-counts { display: flex; gap: 26px; padding-bottom: 4px; }
.ld-c .v { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -.02em; display: block; line-height: 1.1; }
.ld-c .v em { font-style: normal; font-size: 12px; color: var(--ok); font-weight: var(--fw-semibold); }
.ld-c .k { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* small tile mini-visuals */
.ld-mini { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 14px; display: flex; align-items: center; gap: 12px; min-height: 78px; }
.ld-mini.col { flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; }
.ld-mini.row { justify-content: flex-start; }
.ld-vnode { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-2);
  background: var(--surface-3); border-radius: 8px; padding: 5px 9px; max-width: 100%; white-space: nowrap; }
.ld-vnode.l2 { margin-left: 16px; } .ld-vnode.l3 { margin-left: 32px; }
.ld-vpaused { font-size: 8.5px; font-weight: var(--fw-bold); letter-spacing: .4px; color: var(--warn);
  background: var(--warn-weak); border-radius: var(--pill); padding: 2px 6px; }
.ld-vnode .ld-vpaused { margin-left: auto; }
.ld-vchip { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-2);
  background: var(--surface-3); border-radius: 8px; padding: 6px 10px; max-width: 100%; white-space: nowrap; }
.ld-vchip.ok { color: var(--ok); }
.ld-von { font-size: 8.5px; font-weight: var(--fw-bold); letter-spacing: .4px; color: var(--ok);
  background: var(--ok-weak); border-radius: var(--pill); padding: 2px 6px; margin-left: auto; }
.ld-vchip.pdf .ic { font-size: 8px; font-weight: 800; background: var(--danger-weak); color: var(--danger);
  border-radius: 4px; padding: 3px 5px; }
/* the "delivered" chip slides in once the tile reveals */
.ld-vchip.slide { transition: opacity .5s var(--ease) .5s, transform .5s var(--ease) .5s; }
html.js .ld-tile.reveal:not(.in) .ld-vchip.slide { opacity: 0; transform: translateY(8px); }
.ld-vtable { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 100%; }
.ld-vtable i, .ld-vtable b { height: 16px; border-radius: 5px; background: var(--surface-3); }
.ld-vtable b { background: color-mix(in srgb, var(--primary) 26%, var(--surface-3)); }
.ld-vtable .ld-vfill { display: flex; align-items: center; justify-content: center; font-size: 9px;
  font-weight: var(--fw-bold); color: var(--on-primary); background: var(--primary); }
.ld-vimg { width: 54px; height: 54px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 40%, var(--surface-3)), color-mix(in srgb, var(--accent) 38%, var(--surface-3))); }

/* ---- CHANNELS — 3 equal device/tool mockups (copy on top, mockup below) --- */
.ld-ch3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.ld-ch-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 24px 4px; overflow: hidden; }
.ld-ch-copy { max-width: 340px; }
.ld-ch-head { display: flex; align-items: center; justify-content: center; gap: 11px; margin-bottom: 12px; }
.ld-ch-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ld-ch-ico svg { width: 21px; height: 21px; }
.ld-ch-ico.tg { background: color-mix(in srgb, #2AABEE 18%, var(--surface-2)); color: #2AABEE; }
.ld-ch-ico.web { background: var(--primary-weak); color: var(--primary); }
.ld-ch-ico.cn { background: color-mix(in srgb, var(--accent) 20%, var(--surface-2)); color: var(--accent); }
.ld-ch-head h3 { font-size: 18.5px; font-weight: var(--fw-bold); font-family: var(--font-display); letter-spacing: -.01em; }
.ld-ch-copy p { font-size: 13.5px; }

/* connector (ChatGPT/Claude) mockup — a compact chat with a tool call */
.ld-cnbox { width: 100%; margin-top: auto; }
.ld-cn-scr { border: 1px solid var(--border-2); border-radius: 16px 16px 0 0; border-bottom: 0; overflow: hidden;
  background: var(--bg-2); box-shadow: var(--sh-lg); text-align: left; }
.ld-cn-top { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.ld-cn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.ld-cn-name { font-size: 12px; font-weight: var(--fw-semibold); color: var(--text-2); }
.ld-cn-body { padding: 14px 13px 18px; display: flex; flex-direction: column; gap: 9px; }
.ld-cn-msg { max-width: 88%; padding: 8px 11px; border-radius: 13px; font-size: 12px; line-height: 1.45; }
.ld-cn-msg.out { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 5px; }
.ld-cn-msg.in { align-self: flex-start; background: var(--surface); color: var(--text); border-bottom-left-radius: 5px; }
.ld-cn-tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border-2); font-size: 11.5px; color: var(--text-2); }
.ld-cn-tool b { color: var(--text); font-weight: var(--fw-semibold); }
.ld-cn-plug { font-size: 12px; }
.ld-cn-ok { color: var(--ok); font-weight: var(--fw-bold); }

/* legacy 2-up (kept harmless) */
.ld-ch2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ld-ch-copy p { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.ld-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ld-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: var(--fw-medium);
  color: var(--text-2); border: 1px solid var(--border-2); border-radius: var(--pill); padding: 6px 12px; background: var(--surface-2); }
.ld-pill.big { font-size: 13.5px; padding: 9px 15px; color: var(--text); }

/* phone mockup */
.ld-phone { width: 224px; flex: none; margin-top: auto; border-radius: 30px; padding: 9px; background: var(--surface-3);
  border: 1px solid var(--border-2); box-shadow: var(--sh-lg); }
.ld-phone-scr { border-radius: 22px; overflow: hidden; background: var(--bg-2); display: flex; flex-direction: column; height: 340px; }
.ld-tg-top { display: flex; align-items: center; gap: 9px; padding: 12px 13px; background: var(--surface); border-bottom: 1px solid var(--border); }
.ld-tg-av { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center; font-weight: var(--fw-bold); font-size: 13px; flex: none; }
.ld-tg-name { font-size: 13px; font-weight: var(--fw-semibold); }
.ld-tg-on { font-size: 10.5px; color: var(--ok); }
.ld-tg-body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.ld-tg-msg { max-width: 82%; padding: 8px 11px; border-radius: 14px; font-size: 11.5px; line-height: 1.45; animation: ld-in .4s var(--ease); }
.ld-tg-msg.out { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 5px; }
.ld-tg-msg.in { align-self: flex-start; background: var(--surface); color: var(--text); border-bottom-left-radius: 5px; }
.ld-tg-doc { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--border); }
.ld-tg-doc b { font-size: 11px; font-weight: var(--fw-semibold); display: block; }
.ld-tg-doc i { font-size: 10px; font-style: normal; color: var(--muted); }
.ld-tg-pdf { font-size: 8px; font-weight: 800; background: var(--danger-weak); color: var(--danger); border-radius: 5px; padding: 6px 6px; flex: none; }
.ld-tg-doc.slide { transition: opacity .55s var(--ease) .6s, transform .55s var(--ease) .6s; }
html.js .ld-ch-card.reveal:not(.in) .ld-tg-doc.slide { opacity: 0; transform: translateY(10px) scale(.96); }
.ld-tg-input { padding: 9px 13px; background: var(--surface); border-top: 1px solid var(--border);
  font-size: 11px; color: var(--muted); }

/* browser mockup */
.ld-browser { width: 100%; max-width: 330px; flex: none; margin-top: auto; border-radius: 14px 14px 0 0; overflow: hidden;
  border: 1px solid var(--border-2); border-bottom: 0; background: var(--surface); box-shadow: var(--sh-lg); }
.ld-br-bar { display: flex; align-items: center; gap: 6px; padding: 10px 13px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.ld-br-bar .d { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); flex: none; }
.ld-br-url { margin-left: 10px; font-size: 10.5px; color: var(--muted); background: var(--surface); border-radius: var(--pill);
  padding: 4px 12px; flex: 1; text-align: center; }
.ld-br-scr { display: flex; height: 232px; }
.ld-br-rail { width: 46px; flex: none; background: var(--bg-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; }
.ld-br-rail i { width: 20px; height: 20px; border-radius: 7px; background: var(--surface-3); }
.ld-br-rail i:first-child { background: var(--primary); }
.ld-br-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ld-br-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ld-br-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 11px; }
.ld-br-tile .v { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 17px; letter-spacing: -.02em; display: block; }
.ld-br-tile .k { font-size: 10px; color: var(--muted); margin-top: 2px; }
.ld-br-chat { display: flex; align-items: center; gap: 9px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 11px 13px; font-size: 12px; color: var(--text-2); margin-top: auto; }
.ld-br-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; animation: ld-pulse 1.15s ease-in-out infinite; }

/* ---- CONTROL — "it does, you decide" -------------------------------------- */
.ld-control { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 48px;
  position: relative; overflow: hidden; box-shadow: var(--sh); }
.ld-control::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 80% at 90% 10%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%); }
.ld-control-copy { position: relative; }
.ld-control-copy .ld-sec-kicker { text-align: left; }
.ld-control-copy h2 { font-family: var(--font-display); font-weight: var(--fw-bold); letter-spacing: -.02em;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.12; }
.ld-control-copy p { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); max-width: 480px; }
.ld-control-pills { display: flex; flex-direction: column; gap: 9px; margin-top: 24px; align-items: flex-start; }
.ld-approve { position: relative; display: grid; place-items: center; }
.ld-approve-card { width: 100%; max-width: 320px; background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 9px; }
.ld-approve-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ld-approve-top .ld-vpaused { margin: 0; }
.ld-approve-t { font-size: 13.5px; font-weight: var(--fw-semibold); }
.ld-approve .ld-vnode { background: var(--surface-3); }
.ld-approve-go { width: 100%; margin-top: 10px; pointer-events: none; }
.ld-approve-hint { text-align: center; font-size: 11.5px; color: var(--muted); }

/* ---- PROVIDERS ------------------------------------------------------------- */
.ld-pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ld-pr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px;
  transition: transform var(--t), box-shadow var(--t); }
.ld-pr:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.ld-pr-marks { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ld-mark { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 13px; letter-spacing: -.01em;
  border: 1px solid var(--border-2); border-radius: var(--pill); padding: 6px 13px; background: var(--surface-2); }
.ld-pr h3 { font-size: 16.5px; font-weight: var(--fw-semibold); margin-bottom: 8px; letter-spacing: -.01em; }
.ld-pr p { font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
/* live model marquee */
.ld-marquee { margin-top: 28px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ld-marquee-track { display: inline-flex; gap: 10px; white-space: nowrap; animation: ld-marquee 26s linear infinite; }
.ld-marquee-track span { flex: none; font-size: 12.5px; font-weight: var(--fw-medium); color: var(--muted);
  border: 1px dashed var(--border-2); border-radius: var(--pill); padding: 7px 15px; }
.ld-marquee-track span.more { color: var(--primary); border-color: var(--primary); border-style: solid; }
@keyframes ld-marquee { to { transform: translateX(-50%); } }
.ld-marquee:hover .ld-marquee-track { animation-play-state: paused; }

/* ---- PRICING --------------------------------------------------------------- */
.ld-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.ld-price { position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 26px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.ld-price:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.ld-price.popular { border-color: var(--primary); box-shadow: var(--glow), var(--sh); }
.ld-price-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: .5px; text-transform: uppercase;
  color: var(--on-primary); background: var(--primary); border-radius: var(--pill); padding: 5px 14px; }
.ld-price-name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 17px; letter-spacing: -.01em; }
.ld-price-cost { display: flex; align-items: baseline; gap: 3px; margin: 14px 0 4px; min-height: 48px; }
.ld-price-cost .cur { font-size: 22px; font-weight: var(--fw-semibold); color: var(--text-2); align-self: flex-start; margin-top: 6px; }
.ld-price-cost .amt { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 46px; letter-spacing: -.03em; line-height: 1; }
.ld-price-cost .amt.sm { font-size: 32px; }
.ld-price-cost .per { font-size: 14px; color: var(--muted); }
.ld-price-feats { list-style: none; padding: 0; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.ld-price-feats li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.ld-price-feats li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: var(--fw-bold); }
.ld-price .ld-btn { width: 100%; margin-top: auto; }
.ld-price-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 26px; }

/* ---- final CTA ------------------------------------------------------------- */
.ld-cta { position: relative; overflow: hidden; text-align: center; padding: 76px 32px;
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh); }
.ld-cta-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%); }
.ld-cta h2 { position: relative; font-family: var(--font-display); font-weight: var(--fw-bold); letter-spacing: -.02em;
  font-size: clamp(28px, 3.6vw, 42px); }
.ld-cta p { position: relative; margin: 14px auto 0; max-width: 480px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.ld-cta-actions { position: relative; display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---- CONNECT form ---------------------------------------------------------- */
.ld-connect { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: center; }
.ld-connect-copy .ld-sec-kicker { text-align: left; }
.ld-connect-copy h2 { font-family: var(--font-display); font-weight: var(--fw-bold); letter-spacing: -.02em;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.12; }
.ld-connect-copy p { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); max-width: 440px; }
.ld-connect-hint { display: flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 14px; color: var(--text-2); }
.ld-connect-hint a { color: var(--primary); font-weight: var(--fw-semibold); }
.ld-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--sh); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ld-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: var(--fw-medium); color: var(--text-2); }
.ld-field.full { grid-column: 1 / -1; }
.ld-field em { font-style: normal; color: var(--muted); font-weight: var(--fw-regular); }
.ld-field input, .ld-field textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 11px 13px; transition: var(--t-fast); resize: vertical; }
.ld-field input::placeholder, .ld-field textarea::placeholder { color: var(--muted); }
.ld-field input:focus, .ld-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); background: var(--surface); }
.ld-field.invalid input, .ld-field.invalid textarea { border-color: var(--danger); }
.ld-form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 2px; }
.ld-form-note { font-size: 12px; color: var(--muted); }
.ld-form-msg { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.5; display: none; padding: 11px 14px; border-radius: var(--r-sm); }
.ld-form-msg.show { display: block; }
.ld-form-msg.ok { display: block; background: var(--ok-weak); color: var(--ok); }
.ld-form-msg.err { display: block; background: var(--danger-weak); color: var(--danger); }

/* ---- footer ---------------------------------------------------------------- */
.ld-footer { border-top: 1px solid var(--border); padding: 40px 0 34px; }
.ld-footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ld-footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.ld-footer-t { color: var(--muted); font-size: 13px; line-height: 1.55; }
.ld-footer-mail { color: var(--primary); font-size: 13.5px; font-weight: var(--fw-semibold); }
.ld-footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ld-footer-links a { color: var(--text-2); font-size: 13.5px; transition: var(--t-fast); }
.ld-footer-links a:hover { color: var(--text); }
.ld-footer-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---- reveal-on-scroll (progressive enhancement — content visible w/o JS) --- */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .ld-row, .ld-step, .ld-sum, .ld-stat, .ld-pdf, .ld-node, .ld-sched, .ld-tg-msg { animation: none; }
  .ld-marquee-track { animation: none; }
  .ld-bars i, .ld-vchip.slide, .ld-tg-doc.slide { transition: none; }
}

/* ---- responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .ld-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ld-hero-copy { text-align: center; }
  .ld-hero-sub { margin-left: auto; margin-right: auto; }
  .ld-hero-actions, .ld-hero-badges { justify-content: center; }
  .ld-tile.big { grid-column: span 6; grid-row: span 1; }
  .ld-tile { grid-column: span 3; }
  .ld-ch3 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .ld-pr-grid { grid-template-columns: 1fr; }
  .ld-connect { grid-template-columns: 1fr; gap: 28px; }
  .ld-connect-copy { text-align: center; }
  .ld-connect-copy .ld-sec-kicker { text-align: center; }
  .ld-connect-copy p { margin-left: auto; margin-right: auto; }
  .ld-connect-hint { justify-content: center; }
  .ld-control { grid-template-columns: 1fr; gap: 30px; padding: 36px; text-align: center; }
  .ld-control-copy .ld-sec-kicker { text-align: center; }
  .ld-control-copy p { margin-left: auto; margin-right: auto; }
  .ld-control-pills { align-items: center; }
}
@media (max-width: 700px) {
  .ld-links { display: none; }
  .ld-nav-cta .ghost { display: none; }
  .ld-hero { padding: 52px 0 56px; }
  .ld-section { padding: 68px 0; }
  .ld-bento { grid-template-columns: 1fr; }
  .ld-tile, .ld-tile.big { grid-column: span 1; }
  .ld-price-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .ld-analytics { gap: 18px; } .ld-counts { gap: 18px; }
  .ld-player { height: 440px; }
  .ld-form { grid-template-columns: 1fr; }
  .ld-footer-top { flex-direction: column; gap: 24px; }
}
