/* qube.kz — page styles. Tokens (--color-*, --rounded-*, --font-*) come from
   _ds/agentflow-design-system-*/tokens/*.css. Single accent: --cta. */
/* fonts.css in the design system points at dead gstatic URLs; load Inter and
   JetBrains Mono from Google Fonts (see <head>) and use them directly. */
:root { --font-sans: "Inter", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif; --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }
:root { --cta: #f54e00; --cta-active: #d04200; --tg: #229ed9; --tg-ink: #1a7fb0; --ok: #1f8a65; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: clip; background: var(--color-canvas); color: var(--color-ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.sec { padding-top: 88px; padding-bottom: 88px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--color-ink); color: #fff; padding: 8px 14px; border-radius: var(--rounded-md); }
.skip:focus { left: 16px; }
.mono, .mono-muted { font-family: var(--font-mono); font-size: 13px; }
.mono-muted { color: var(--color-muted); }
.ic { display: inline-block; width: 20px; height: 20px; flex: none; }
svg.lucide { flex: none; }
.ck { flex: none; margin-top: 2px; }

/* ---------- bands ---------- */
.band-top { border-top: 1px solid var(--color-hairline); }
.band-soft { background: var(--color-canvas-soft); border-top: 1px solid var(--color-hairline); border-bottom: 1px solid var(--color-hairline); }
.band-ink { background: var(--color-ink); color: var(--color-canvas); }

/* ---------- headings ---------- */
.head { max-width: 680px; }
.head-center { text-align: center; margin: 0 auto; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--tg-ink); letter-spacing: .4px; }
.eyebrow-warm { color: #dfa88f; }
h2, .h2 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 400; letter-spacing: -1px; line-height: 1.12; margin-top: 12px; text-wrap: balance; }
.h2-sm { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.8px; line-height: 1.15; }
.h2-xl { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -1.8px; line-height: 1.05; }
.lead { font-size: 17px; line-height: 1.55; color: var(--color-body); margin: 14px 0 0; }
.band-ink h2 { color: var(--color-canvas); }
.pill { display: inline-flex; align-items: center; background: var(--color-surface-strong); color: var(--color-ink); font-size: 11px; font-weight: 600; letter-spacing: .88px; text-transform: uppercase; border-radius: var(--rounded-pill); padding: 4px 11px; }
.pill-cta { background: var(--cta); color: #fff; padding: 4px 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--rounded-md); border: 1px solid transparent; font-family: var(--font-sans); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.btn-lg { height: 46px; padding: 0 22px; }
.btn-block { width: 100%; height: 48px; font-weight: 600; }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover, .btn-cta:active { background: var(--cta-active); }
.btn-ghost { background: #fff; color: var(--color-ink); border-color: var(--color-hairline-strong); }
.btn-ghost:hover { border-color: var(--color-ink); }
.btn-ink { background: var(--color-ink); color: #fff; }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg .ic { width: 17px; height: 17px; }
.btn-outline-light { background: transparent; color: var(--color-canvas); border-color: rgba(247,247,244,.3); }
.btn-outline-light:hover { border-color: var(--color-canvas); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn-row.center { justify-content: center; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247,247,244,.85); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--color-hairline); }
.nav-row { display: flex; align-items: center; gap: 22px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--color-ink); flex: none; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -.4px; }
.dot { color: var(--cta); }
.nav-links { display: flex; gap: 24px; flex: 1; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--color-body); text-decoration: none; }
.nav-links a:hover { color: var(--color-ink); }
.langs { display: flex; gap: 3px; margin-left: auto; }
.langs a { padding: 3px 9px; border-radius: var(--rounded-pill); font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); text-decoration: none; }
.langs a:hover { color: var(--color-ink); }
.langs a.on { background: var(--color-ink); color: #fff; }
.nav-cta { height: 38px; padding: 0 16px; font-size: 14px; }
.nav-burger { display: none; width: 40px; height: 38px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--color-hairline-strong); border-radius: var(--rounded-md); cursor: pointer; padding: 0; flex: none; color: var(--color-ink); }
.mobile-menu { border-top: 1px solid var(--color-hairline); padding: 6px 22px 16px; display: flex; flex-direction: column; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 13px 2px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--color-hairline-soft); text-decoration: none; color: var(--color-ink); }
.mobile-menu .btn { margin-top: 14px; height: 46px; font-weight: 600; }

/* header logo: CSS 3D cube that tumbles into the logo-mark pose */
.qb-logo { position: relative; display: block; width: 34px; height: 34px; flex: none; }
.qb-logo img { display: block; width: 34px; height: 34px; }
.qb-box { position: absolute; left: 6.5px; top: 7.35px; width: 21px; height: 21px; opacity: 0; pointer-events: none; }
.qb-cube { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-35.264deg) rotateY(45deg); }
.qb-face { position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 2px; border: 2.1px solid #0033a4; box-shadow: inset 0 0 0 .7px rgba(84,212,248,.55); transform: var(--tf) translateZ(10.5px); backface-visibility: hidden; display: flex; align-items: center; justify-content: center; }
.qb-face.light { background: radial-gradient(circle at 35% 30%, #eef8fe, #d2edfb 55%, #bfe0f9); border-color: #0363d5; }
.qb-face.blue { background: linear-gradient(160deg, #1aacf4, #0790ec 35%, #0363d5 75%, #0033a4); }
.qb-ube { font-weight: 700; font-size: 8px; color: #0033a4; letter-spacing: -.3px; line-height: 1; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(38px, 4.4vw, 58px); font-weight: 400; letter-spacing: -1.8px; line-height: 1.06; margin: 22px 0 0; text-wrap: balance; }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--color-body); margin: 22px 0 0; max-width: 480px; }
.hero-trust { display: flex; align-items: center; gap: 9px; margin-top: 26px; font-size: 13px; color: var(--color-muted); }

/* ---------- hero carousel (Telegram / WhatsApp / website / VPS) ---------- */
.qr { position: relative; max-width: 620px; width: 100%; margin: 0 auto; }
.qr-stage { position: relative; height: 438px; }
.qr-card { position: absolute; left: 50%; top: 30px; width: 290px; height: 400px; margin-left: -145px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-hairline-strong); border-radius: 18px; overflow: hidden; outline: 6px solid var(--color-canvas); transition: transform .9s cubic-bezier(.22,.8,.24,1), opacity .9s ease, filter .9s ease; will-change: transform; }
.qr-p0 { transform: none; opacity: 1; z-index: 4; }
.qr-p1 { transform: translateX(54%) scale(.8); opacity: .92; z-index: 3; filter: saturate(.75); cursor: pointer; }
.qr-p3 { transform: translateX(-54%) scale(.8); opacity: .92; z-index: 3; filter: saturate(.75); cursor: pointer; }
.qr-p2 { transform: translateY(-7%) scale(.64); opacity: .5; z-index: 1; filter: saturate(.5); cursor: pointer; }
.qr-card:not(.qr-p0) > * { pointer-events: none; }
.qr-still *, .qr-still *::before, .qr-still *::after { animation: none !important; }
.qr-in { animation: qd-in .3s ease-out both; }
.qr-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.qr-tab { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--color-hairline-strong); border-radius: var(--rounded-pill); background: #fff; color: var(--color-body); font-family: var(--font-sans); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.qr-tab .ic { width: 15px; height: 15px; }
.qr-tab:hover { border-color: var(--color-ink); color: var(--color-ink); }
.qr-tab.on { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.qr-cap { text-align: center; margin-top: 14px; min-height: 44px; }
.qr-capt { font-size: 15px; font-weight: 600; color: var(--color-ink); }
.qr-caps { font-size: 13.5px; line-height: 1.45; color: var(--color-muted); margin-top: 3px; }
/* chat windows inside the cards */
.qd-tghead, .qr-wahead { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--color-hairline); flex: none; }
.qd-ava { width: 32px; height: 32px; border-radius: 50%; background: var(--tg); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex: none; }
.qd-name { font-size: 13.5px; font-weight: 600; color: var(--color-ink); line-height: 1.2; }
.qd-status { font-size: 11.5px; color: var(--color-muted); line-height: 1.3; }
.qd-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 10px; background: #dfe6dc; overflow: hidden; }
.qd-b { max-width: 84%; padding: 7px 10px 6px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; color: var(--color-ink); white-space: pre-line; animation: qd-in .26s ease-out both; }
.qd-b.u { align-self: flex-end; background: #e3f7cf; border-bottom-right-radius: 4px; }
.qd-b.b { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.qd-time { display: block; text-align: right; font-size: 10px; color: var(--color-muted-soft); margin-top: 2px; }
.qd-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; align-self: flex-start; width: 84%; animation: qd-in .26s ease-out both; }
.qd-keys span { text-align: center; font-size: 11.5px; font-weight: 500; padding: 6px 0; border-radius: 8px; background: rgba(255,255,255,.62); color: var(--tg-ink); }
.qd-keys span.hit { background: var(--tg); color: #fff; }
.qd-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--color-hairline); flex: none; }
.qd-field { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--rounded-pill); background: var(--color-canvas); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.qd-field .ph { color: var(--color-muted-soft); }
.qd-send { width: 30px; height: 30px; border-radius: 50%; background: var(--tg); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.qr-wahead { background: #008069; border-bottom: none; }
.qr-wahead .qd-ava { background: #25d366; }
.qr-wahead .qd-name { color: #fff; }
.qr-wahead .qd-status { color: rgba(255,255,255,.78); }
.qr-wa .qd-msgs { background: #efeae2; }
.qr-wa .qd-b.u { background: #d9fdd3; }
.qr-wa .qd-send { background: #00a884; }
.qr-wakeys { align-self: flex-start; width: 84%; display: flex; flex-direction: column; gap: 3px; animation: qd-in .26s ease-out both; }
.qr-wakeys span { text-align: center; font-size: 12px; font-weight: 500; padding: 6px 0; border-radius: 8px; background: #fff; color: #008069; }
.qr-wakeys span.hit { background: #00a884; color: #fff; }
/* website card (qs24.kz) */
.qd-bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; background: var(--color-canvas-soft); border-bottom: 1px solid var(--color-hairline); flex: none; }
.qd-dots { display: flex; gap: 6px; flex: none; }
.qd-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--color-hairline-strong); }
.qd-url { flex: 1; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: var(--rounded-pill); background: #fff; border: 1px solid var(--color-hairline); font-family: var(--font-mono); font-size: 11px; color: var(--color-muted); white-space: nowrap; overflow: hidden; }
.qr-site { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 14px 16px 16px; background: var(--color-canvas); overflow: hidden; }
.qr-snav { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--color-hairline); }
.qr-snav b { font-size: 13px; font-weight: 700; letter-spacing: -.2px; margin-right: auto; }
.qr-snav i { display: block; width: 18px; height: 5px; border-radius: 3px; background: var(--color-hairline-strong); }
.qr-snav span { font-size: 9.5px; font-weight: 600; color: #fff; background: var(--cta); border-radius: 5px; padding: 4px 7px; white-space: nowrap; }
.qr-seye { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--color-muted); margin-top: 4px; }
.qr-sh { font-size: 20px; line-height: 1.12; letter-spacing: -.5px; color: var(--color-ink); text-wrap: balance; }
.qr-sp { font-size: 11px; line-height: 1.45; color: var(--color-body); }
.qr-sbtns { display: flex; gap: 6px; }
.qr-sbtns span { font-size: 10.5px; font-weight: 600; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.qr-sbtns .a { background: var(--cta); color: #fff; }
.qr-sbtns .b { background: #fff; color: var(--color-ink); border: 1px solid var(--color-hairline-strong); }
.qr-sstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: auto; }
.qr-sstats div { background: #fff; border: 1px solid var(--color-hairline); border-radius: 7px; padding: 7px 4px; text-align: center; }
.qr-sstats b { display: block; font-size: 13px; font-weight: 600; }
.qr-sstats span { display: block; font-size: 8.5px; line-height: 1.25; color: var(--color-muted); margin-top: 2px; }
.qr-sbadge { align-self: flex-start; font-family: var(--font-mono); font-size: 10px; background: var(--color-surface-strong); border-radius: var(--rounded-pill); padding: 3px 9px; }
/* VPS card */
.qr-srv { background: var(--color-ink); border-color: var(--color-ink); }
.qr-vps { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 0 16px 16px; font-family: var(--font-mono); font-size: 11.5px; color: #d9d7cf; }
.qr-vhead { display: flex; align-items: center; gap: 8px; margin: 0 -16px; padding: 12px 16px; border-bottom: 1px solid rgba(247,247,244,.12); color: var(--color-canvas); font-size: 12px; }
.qr-vdot { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; flex: none; }
.qr-vcmd { margin-top: 4px; color: var(--color-canvas); }
.qr-vcmd span { color: #dfa88f; }
.qr-vrow { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid rgba(247,247,244,.1); border-radius: 8px; background: rgba(247,247,244,.03); }
.qr-vrow .ok { width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; flex: none; }
.qr-vrow .k { color: var(--color-canvas); }
.qr-vrow .v { margin-left: auto; color: #9fd9bd; white-space: nowrap; }
.qr-vload { margin-top: auto; }
.qr-vlabel { font-size: 10px; color: #8f8d85; letter-spacing: .4px; text-transform: uppercase; }
.qr-vbars { display: flex; align-items: flex-end; gap: 4px; height: 42px; margin-top: 7px; }
.qr-vbars i { flex: 1; display: block; border-radius: 2px 2px 0 0; background: rgba(245,78,0,.75); transform-origin: bottom; animation: qr-bar 1.6s ease-in-out infinite alternate; }
@keyframes qr-bar { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
@keyframes qd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 16px; margin-top: 36px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--rounded-lg); padding: 24px; }
.card-xl { border-radius: var(--rounded-xl); padding: 28px; }
.card h3 { font-size: 18px; font-weight: 600; margin-top: 18px; }
.card p { font-size: 14px; line-height: 1.55; color: var(--color-body); margin: 8px 0 0; }
.ibox { width: 40px; height: 40px; flex: none; border-radius: var(--rounded-md); background: var(--color-surface-strong); display: flex; align-items: center; justify-content: center; color: var(--color-ink); }
.ibox-lg { width: 44px; height: 44px; }
.ibox .ic { width: 20px; height: 20px; }
.tint-blue { background: rgba(34,158,217,.1); color: var(--tg-ink); }
.tint-orange { background: rgba(245,78,0,.1); color: var(--cta-active); }
.tint-green { background: rgba(31,138,101,.1); color: var(--ok); }
.ic-plain { width: 22px; height: 22px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.chip { font-family: var(--font-mono); font-size: 11.5px; color: var(--color-body); border: 1px solid var(--color-hairline); background: var(--color-canvas-soft); border-radius: var(--rounded-xs); padding: 3px 8px; }
.chip-white { background: #fff; font-size: 12px; padding: 4px 10px; }
.chip-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--color-ink); background: #fff; border: 1px solid var(--color-hairline-strong); border-radius: var(--rounded-pill); padding: 7px 14px; }
.chip-pill .ck { margin: 0; width: 14px; height: 14px; }
.svc { display: flex; flex-direction: column; }
.svc h3 { font-size: 19px; }
.svc p { font-size: 14.5px; }
.svc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 500; color: var(--color-ink); text-decoration: none; }
.svc-link:hover { color: var(--cta); }
.svc-link .ic { width: 15px; height: 15px; }
.step-card { border-top: 2px solid var(--color-ink); padding: 22px; }
.step-card.last { border-top-color: var(--cta); }
.step-card h3 { font-size: 17px; margin-top: 16px; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.num { font-family: var(--font-mono); font-size: 13px; color: var(--color-muted); }
.last .num { color: var(--cta); }
.part-cta { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.part-cta span { font-size: 14px; color: var(--color-muted); max-width: 520px; line-height: 1.5; }

.strip { border-bottom: 1px solid var(--color-hairline); background: var(--color-canvas-soft); }
.strip-row { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.strip-row .chips { margin: 0; gap: 8px; }
.strip-label { font-size: 13px; color: var(--color-muted); }

.band-ink .grid { margin-top: 44px; }
.prob { display: flex; gap: 16px; padding: 24px; border: 1px solid rgba(247,247,244,.14); border-radius: var(--rounded-lg); background: rgba(247,247,244,.03); }
.prob .ibox { background: rgba(247,247,244,.08); color: #e8a58a; }
.prob h3 { font-size: 17px; font-weight: 600; margin-top: 2px; color: var(--color-canvas); }
.prob p { font-size: 14px; line-height: 1.55; color: #b8b6ad; margin: 7px 0 0; }

.sec-why .card h3 { font-size: 17px; margin-top: 14px; }
.flex-box { position: relative; overflow: hidden; margin-top: 48px; background: var(--color-canvas-soft); border: 1px solid var(--color-hairline); border-radius: var(--rounded-xl); padding: 52px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.flex-box::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--cta); }
.flex-box h2 { font-size: clamp(28px, 3.2vw, 38px); margin-top: 18px; }
.flex-box p { font-size: 17px; line-height: 1.6; color: var(--color-body); margin: 0; }
.flex-box .chips { margin-top: 20px; gap: 8px; }
.flex-box .btn { margin-top: 26px; }

/* ---------- case ---------- */
.case-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-top: 36px; }
.case { background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--rounded-xl); overflow: hidden; display: flex; flex-direction: column; }
.case-head { display: flex; align-items: center; gap: 16px; padding: 28px 28px 22px; border-bottom: 1px solid var(--color-hairline); }
.case-logo { width: 56px; height: 56px; flex: none; border-radius: var(--rounded-lg); background: var(--color-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 600; letter-spacing: -.5px; }
.case-title { flex: 1; min-width: 0; }
.case-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.case-loc { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--color-muted); margin-top: 5px; }
.case-loc .ic { width: 14px; height: 14px; }
.tag { font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: var(--rounded-pill); white-space: nowrap; }
.tag-blue { color: var(--tg-ink); background: rgba(34,158,217,.12); }
.tag-green { color: var(--ok); background: rgba(31,138,101,.1); padding: 4px 10px; }
.tag-cta { color: #fff; background: var(--cta); font-family: var(--font-sans); }
.case-body { padding: 8px 28px 24px; }
.case-part { padding-top: 18px; }
.case-part + .case-part { border-top: 1px solid var(--color-hairline-soft); margin-top: 18px; }
.case-h { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.case-h span { font-family: var(--font-mono); font-size: 12px; color: var(--tg-ink); font-weight: 400; }
.case-part p { font-size: 14px; line-height: 1.55; color: var(--color-body); margin: 8px 0 0; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.case-stats div { border: 1px solid var(--color-hairline); border-radius: var(--rounded-md); padding: 12px; background: var(--color-canvas-soft); }
.case-stats b { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--color-ink); word-break: break-word; }
.case-stats span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--color-muted); margin-top: 4px; }
.case-foot { margin-top: auto; padding: 18px 28px; background: var(--color-canvas-soft); border-top: 1px solid var(--color-hairline); display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.case-foot .ic { width: 18px; height: 18px; color: var(--cta); }
.case-next { border: 2px dashed var(--color-hairline-strong); border-radius: var(--rounded-xl); padding: 28px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.case-next .ibox { width: 44px; height: 44px; color: var(--color-muted); }
.case-next h3 { font-size: 18px; font-weight: 600; margin-top: 16px; }
.case-next p { font-size: 14px; line-height: 1.55; color: var(--color-body); margin: 8px 0 0; }
.case-next .btn { margin-top: 18px; height: 40px; font-size: 14px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.review figcaption { margin-top: 14px; font-size: 13.5px; color: var(--color-muted); }

/* ---------- how we work ---------- */
.steps { list-style: none; padding: 0; gap: 20px; margin-bottom: 0; }
.step { border-top: 2px solid var(--color-ink); padding-top: 18px; }
.step.last { border-top-color: var(--cta); }
.step h3 { font-size: 17px; font-weight: 600; margin-top: 10px; }
.step p { font-size: 14px; line-height: 1.55; color: var(--color-body); margin: 8px 0 0; }
.how-demo { margin: 28px 0 0; font-size: 15px; color: var(--color-body); }
.how-demo a { color: var(--tg-ink); font-weight: 500; }

/* ---------- demo band + booking-flow phone ---------- */
.demo-box { background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--rounded-xl); padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.demo-box .lead { font-size: 16px; max-width: 480px; }
.demo-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.flow { position: relative; width: 300px; justify-self: end; }
.flow-phone { width: 300px; border: 9px solid var(--color-ink); border-radius: 38px; overflow: hidden; background: var(--color-ink); }
.flow-screen { position: relative; aspect-ratio: 600 / 1240; border-radius: 29px; overflow: hidden; background: #dce4dd; }
.flow-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.flow-screen img.on { opacity: 1; }
.flow-handle { position: absolute; left: -40px; top: 26px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--rounded-pill); padding: 8px 14px 8px 12px; z-index: 3; outline: 4px solid var(--color-canvas); font-family: var(--font-mono); font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); flex: none; }
.flow-cap { position: absolute; left: -44px; bottom: 22px; width: 236px; background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--rounded-lg); padding: 14px 16px; z-index: 3; outline: 4px solid var(--color-canvas); }
.flow-step { font-family: var(--font-mono); font-size: 11px; color: var(--tg-ink); letter-spacing: .3px; }
.flow-title { font-size: 14px; font-weight: 600; line-height: 1.3; margin-top: 4px; }
.flow-sub { font-size: 12.5px; line-height: 1.45; color: var(--color-muted); margin-top: 3px; }
.flow-dots { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.flow-dots button { width: 7px; height: 7px; padding: 0; border: none; border-radius: var(--rounded-pill); background: var(--color-hairline-strong); cursor: pointer; transition: width .3s ease, background .3s ease; }
.flow-dots button.on { width: 20px; background: var(--tg-ink); }

/* ---------- pricing ---------- */
.ptabs { display: none; gap: 4px; margin-top: 28px; padding: 4px; background: #fff; border: 1px solid var(--color-hairline-strong); border-radius: var(--rounded-pill); }
.js .ptabs { display: inline-flex; }
.ptabs button { height: 38px; padding: 0 22px; border: none; border-radius: var(--rounded-pill); background: transparent; color: var(--color-body); font-family: var(--font-sans); font-size: 14px; font-weight: 500; cursor: pointer; }
.ptabs button.on { background: var(--color-ink); color: #fff; }
.js .ppanel:not(.on) { display: none; }
.price-h { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--color-muted); margin-top: 40px; }
.ppanel .grid { margin-top: 16px; align-items: start; }
.tier { position: relative; background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--rounded-xl); padding: 26px; display: flex; flex-direction: column; }
.tier-hot { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-canvas); }
.tier-badge { position: absolute; top: -11px; left: 26px; background: var(--cta); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; border-radius: var(--rounded-pill); padding: 4px 12px; }
.tier-name { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--color-muted); }
.tier-hot .tier-name { color: #dfa88f; }
.tier-tag { font-size: 14.5px; color: var(--color-body); margin-top: 6px; line-height: 1.4; min-height: 40px; }
.tier-hot .tier-tag { color: #b8b6ad; }
.tier-price { margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--color-hairline); }
.tier-hot .tier-price { border-bottom-color: rgba(247,247,244,.18); }
.tier-amount { font-size: 26px; font-weight: 400; letter-spacing: -.6px; }
.tier-unit { font-size: 13.5px; color: var(--color-muted); }
.tier-hot .tier-unit { color: #b8b6ad; }
.tier-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.tier-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--color-body); }
.tier-hot .tier-list li { color: #e4e2da; }
.tier-btn { margin-top: 22px; }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--color-muted); }
.note .ic { width: 16px; height: 16px; margin-top: 2px; }
.sub-box, .bundle { margin-top: 28px; background: #fff; border: 1px solid var(--color-hairline); border-left: 3px solid var(--cta); border-radius: var(--rounded-xl); padding: 26px 28px; display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 28px; align-items: center; }
.sub-box h3, .bundle-name { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sub-box p, .bundle p { font-size: 14px; line-height: 1.55; color: var(--color-body); margin: 6px 0 0; }
.sub-terms { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sub-terms div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sub-terms dt { color: var(--color-muted); }
.sub-terms dd { margin: 0; font-weight: 600; white-space: nowrap; }
.sub-terms dd span { font-weight: 400; color: var(--color-muted); }
.bundle-price s { color: var(--color-muted); }
.ptable { margin-top: 16px; background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--rounded-lg); overflow: hidden; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--color-hairline-soft); font-size: 14.5px; }
.prow:last-child { border-bottom: none; }
.prow b { font-weight: 600; white-space: nowrap; }
.prow b .tier-unit { font-weight: 400; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq-list { margin-top: 36px; border-top: 1px solid var(--color-hairline); }
.faq-list details { border-bottom: 1px solid var(--color-hairline); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-sign::before { content: "+"; font-family: var(--font-mono); font-size: 20px; font-weight: 400; color: var(--color-muted); }
.faq-list details[open] .faq-sign::before { content: "–"; }
.faq-list p { font-size: 15px; line-height: 1.6; color: var(--color-body); margin: 0; padding: 0 4px 22px; max-width: 680px; }

/* ---------- CTA band ---------- */
.cta-band { padding-top: 80px; padding-bottom: 80px; text-align: center; }
.cta-band h2 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -1.5px; line-height: 1.08; margin: 0; }
.cta-band p { font-size: 18px; line-height: 1.55; color: #b8b6ad; margin: 18px auto 0; max-width: 520px; }

/* ---------- contact ---------- */
.contact { max-width: 1100px; margin: 0 auto; padding: 72px 40px 96px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; margin-top: 48px; align-items: start; }
.form-card { padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field .opt { color: var(--color-muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 16px; background: #fff; color: var(--color-ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.4; border: 1px solid var(--color-hairline-strong); border-radius: var(--rounded-md); outline: none; }
.field input, .field select { height: 44px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cta); }
.field.bad input { border-color: var(--color-error); }
.err { font-size: 13px; color: var(--color-error); margin-top: 6px; }
.select-wrap { position: relative; }
.select-wrap select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 40px; }
.select-wrap .ic { position: absolute; right: 14px; top: 13px; width: 18px; height: 18px; color: var(--color-muted); pointer-events: none; }
.form-note { font-size: 12px; color: var(--color-muted); text-align: center; margin: 14px 0 0; }
.form-sent { text-align: center; padding: 32px 8px; }
.sent-ic { width: 56px; height: 56px; border-radius: 50%; background: rgba(31,138,101,.12); color: var(--ok); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.form-sent h3 { font-size: 24px; font-weight: 600; margin-top: 20px; }
.form-sent p { font-size: 15px; line-height: 1.55; color: var(--color-body); margin: 10px auto 0; max-width: 360px; }
.form-sent .btn { margin-top: 22px; height: 40px; font-size: 14px; }
.channels { display: flex; flex-direction: column; gap: 12px; }
.channel { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--color-hairline); border-radius: var(--rounded-lg); padding: 14px 16px; text-decoration: none; color: var(--color-ink); }
.channel:hover { border-color: var(--color-hairline-strong); }
.qr-img { width: 56px; height: 56px; flex: none; border-radius: var(--rounded-md); border: 1px solid var(--color-hairline); object-fit: cover; }
.ch-body { flex: 1; min-width: 0; }
.ch-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.ch-title .ic { width: 17px; height: 17px; }
.ic-green { color: var(--ok); }
.ic-blue { color: var(--tg-ink); }
.ch-body .mono { color: var(--color-body); margin-top: 3px; }
.ch-scan { font-size: 11px; font-family: var(--font-mono); color: var(--color-muted); white-space: nowrap; }

/* ---------- footer ---------- */
.foot { background: var(--color-canvas-soft); border-top: 1px solid var(--color-hairline); }
.foot-grid { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-co { font-size: 14px; color: var(--color-body); margin-top: 10px; }
.foot-tag { font-size: 13.5px; line-height: 1.55; color: var(--color-muted); margin: 14px 0 0; max-width: 240px; }
.foot-h { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--color-muted); }
.foot-links { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; font-size: 14px; }
.foot-links a { color: var(--color-body); text-decoration: none; }
.foot-links a:hover { color: var(--color-ink); }
.foot-legal { font-size: 12.5px; line-height: 1.6; color: var(--color-muted); }
.foot-legal { border-top: 1px solid var(--color-hairline); padding-top: 20px; padding-bottom: 20px; }
.foot-legal div + div { margin-top: 4px; }
.foot-bottom { padding-top: 20px; padding-bottom: 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--color-muted); border-top: 1px solid var(--color-hairline); }

/* ---------- chat widget ---------- */
.qw-btn { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 56px; height: 56px; border: none; border-radius: var(--rounded-lg); background: var(--cta); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qw-btn.pulse { animation: qw-bounce 3.2s ease-in-out infinite, qw-pulse-ring 3.2s ease-out infinite; }
.qw-btn .qw-close, .qw-btn[aria-expanded="true"] .qw-open { display: none; }
.qw-btn[aria-expanded="true"] .qw-close { display: block; }
.qw-panel { position: fixed; right: 20px; bottom: 88px; z-index: 900; width: 340px; max-width: calc(100vw - 40px); height: 460px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; background: var(--color-canvas); border: 1px solid var(--color-hairline); border-radius: var(--rounded-lg); overflow: hidden; }
.qw-panel[hidden] { display: none; }
.qw-head { background: var(--color-ink); color: var(--color-canvas); padding: 14px 16px; flex: none; }
.qw-title { font-size: 15px; font-weight: 600; }
.qw-sub { font-size: 12px; color: #b8b6ad; margin-top: 2px; }
.qw-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.qw-msg { max-width: 85%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; align-self: flex-start; background: #fff; border: 1px solid var(--color-hairline); }
.qw-msg.user { align-self: flex-end; background: var(--color-ink); color: #fff; border: none; }
.qw-input { display: flex; border-top: 1px solid var(--color-hairline); flex: none; background: #fff; margin: 0; }
.qw-input input { flex: 1; border: none; padding: 12px 14px; font-size: 14px; font-family: var(--font-sans); outline: none; background: transparent; color: var(--color-ink); }
.qw-input button { border: none; background: none; padding: 0 16px; cursor: pointer; color: var(--cta); display: flex; align-items: center; }
@keyframes qw-bounce { 0%, 78%, 100% { transform: translateY(0); } 86% { transform: translateY(-9px); } 92% { transform: translateY(0); } 96% { transform: translateY(-4px); } }
@keyframes qw-pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(245,78,0,.45); } 70% { box-shadow: 0 0 0 12px rgba(245,78,0,0); } 100% { box-shadow: 0 0 0 0 rgba(245,78,0,0); } }

/* ---------- scroll reveal (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) and (min-width: 901px) {
  .nav-links { gap: 12px; font-size: 13px; }
  .nav-cta { padding: 0 11px; font-size: 13px; }
}
@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .sub-box, .bundle { grid-template-columns: 1fr 1fr; }
  .sub-box .btn, .bundle .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 900px) {
  .wrap, .contact { padding-left: 22px; padding-right: 22px; }
  .sec { padding-top: 60px; padding-bottom: 60px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 52px; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .g2, .case-grid, .contact-grid, .flex-box, .demo-box { grid-template-columns: 1fr; }
  .flex-box { padding: 32px 24px; gap: 24px; }
  .demo-box { padding: 28px; }
  .flow { justify-self: center; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding-top: 60px; padding-bottom: 60px; }
}
@media (max-width: 560px) {
  .g2, .g3, .g4, .foot-grid { grid-template-columns: 1fr; }
  .sub-box, .bundle { grid-template-columns: 1fr; padding: 22px; }
  .case-head { padding: 22px 20px 18px; flex-wrap: wrap; }
  .case-body { padding: 4px 20px 20px; }
  .case-stats { grid-template-columns: 1fr; }
  .case-foot { padding: 16px 20px; }
  .form-card { padding: 22px; }
  .ptabs { display: none; }
  .js .ptabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .ptabs button { padding: 0 8px; }
  .prow { flex-direction: column; align-items: flex-start; gap: 4px; }
  .qr-stage { height: 398px; }
  .qr-card { width: 252px; height: 366px; margin-left: -126px; top: 24px; }
  .qr-p1 { transform: translateX(36%) scale(.78); }
  .qr-p3 { transform: translateX(-36%) scale(.78); }
  .qr-tab { height: 32px; padding: 0 11px; font-size: 12.5px; }
  .flow-handle { left: 0; }
  .flow-cap { left: 0; }
}
@media (max-width: 400px) {
  .flow, .flow-phone { width: 100%; max-width: 272px; }
  .flow-cap { left: 2px; width: calc(100% - 4px); max-width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .qr *, .qr *::before, .qr *::after, .qw-btn { animation: none !important; transition: none !important; }
}
.nw { white-space: nowrap; }
.g4 .tier-amount { font-size: 23px; }
