:root { color-scheme:light; --bg:#f4f3f7; --surface:#fff; --text:#27232f; --muted:#6d6678; --line:#e4e0ea; --accent:#70539b; --tint:#eee8f5; --glass:rgba(255,255,255,.82); --hero:#292334; --heroText:#fff; --green:#c7e4a8; --good:#386448; --warning:#92521f; --shadow:0 12px 40px #2720390a; }
* { box-sizing:border-box; }
body { margin:0; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; background:radial-gradient(ellipse at 10% 70%,#e6deef 0,transparent 58%),var(--bg); color:var(--text); min-height:100vh; display:flex; justify-content:center; gap:9vw; padding:40px 30px; }
body.dark { color-scheme:dark; --bg:#18161d; --surface:#26232d; --text:#f4eff9; --muted:#b7afc3; --line:#40394b; --accent:#d1b4f4; --tint:#3b304b; --glass:rgba(38,35,45,.88); --hero:#e1d6ef; --heroText:#272132; --good:#a8d7b6; --warning:#efbb8c; --shadow:0 12px 40px #0002; background:radial-gradient(ellipse at 10% 70%,#34263f 0,transparent 58%),var(--bg); }
button,input,textarea,select { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button,a,select { touch-action:manipulation; }
button { cursor:pointer; color:inherit; }
button { border:0; }
a { color:inherit; text-decoration:none; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
button:disabled { cursor:default; opacity:.65; }
svg { display:block; }
.intro { width:390px; padding:30px 0; display:flex; flex-direction:column; justify-content:space-between; height:min(860px,92vh); position:sticky; top:40px; }
.wordmark { font-size:29px; letter-spacing:1px; font-weight:350; }
.wordmark span { font-weight:750; }
.brand i,.wordmark i { display:inline-block; background:#a27fca; width:7px; height:7px; border-radius:50%; margin-left:5px; }
.intro h1 { font-size:58px; line-height:1.04; letter-spacing:-3px; font-weight:500; margin:23px 0; }
.eyebrow { font-size:12px; font-weight:650; letter-spacing:1.5px; }
.intro-copy { font-size:18px; line-height:1.7; color:var(--muted); }
.intro-bottom p { font-size:13px; line-height:1.6; color:var(--muted); }
.pill,.tag { display:inline-block; font-size:12px; padding:6px 10px; border-radius:40px; background:var(--tint); color:var(--accent); font-weight:550; }
.workspace { width:440px; min-width:0; }
.demo-controls { display:flex; gap:10px; align-items:center; margin-bottom:15px; font-size:13px; }
.demo-controls label { color:var(--muted); }
select { min-width:0; flex:1; border:1px solid var(--line); background:var(--surface); color:var(--text); padding:10px; border-radius:12px; font-size:14px; }
.icon-btn { width:44px; height:44px; flex-shrink:0; display:grid; place-items:center; background:var(--surface); border-radius:50%; }
.phone { position:relative; border:1px solid var(--line); border-radius:30px; background:var(--bg); box-shadow:0 30px 100px #30264015; overflow:clip; min-height:790px; }
.topbar { height:70px; padding:0 22px; display:flex; align-items:center; gap:12px; position:sticky; top:0; z-index:8; border-bottom:1px solid var(--line); }
.brand { font-size:18px; letter-spacing:.5px; white-space:nowrap; }
#scope { margin-left:auto; font-size:12px; color:var(--muted); }
.avatar { border-radius:50%; background:var(--tint); color:var(--accent); width:34px; height:34px; flex-shrink:0; font-weight:600; }
.glass { background:var(--glass); backdrop-filter:blur(22px) saturate(140%); -webkit-backdrop-filter:blur(22px) saturate(140%); box-shadow:inset 0 1px 0 #ffffff60,0 6px 20px #00000005; }
main { padding:24px 20px 112px; min-height:690px; }
main:focus { outline:none; }
.page-title { font-size:29px; line-height:1.17; font-weight:650; letter-spacing:-1px; margin:12px 0 8px; }
.subtitle { color:var(--muted); font-size:14px; line-height:1.5; margin:0 0 22px; }
.date { display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--muted); }
.date .tag { padding:4px 8px; font-size:11px; }
.hero { border-radius:24px; padding:23px; background:var(--hero); color:var(--heroText); position:relative; overflow:hidden; margin:20px 0; }
.hero:after { content:''; pointer-events:none; position:absolute; right:-60px; top:-80px; width:220px; height:220px; border-radius:50%; border:35px solid #a48fbe15; }
.hero .muted { color:inherit; opacity:.76; }
.hero .big { font-size:40px; font-weight:600; letter-spacing:-1.8px; margin:12px 0 5px; }
.hero .big small { font-size:27px; }
.hero .tag { color:#253321; background:var(--green); }
.hero-top { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:14px; }
.hero-foot { display:flex; justify-content:space-between; gap:10px; border-top:1px solid #a997bb50; padding-top:14px; margin-top:17px; font-size:13px; }
.spark { width:100%; height:58px; margin:12px 0 0; }
.section-head { display:flex; justify-content:space-between; align-items:center; margin:25px 0 12px; }
h2 { font-size:18px; letter-spacing:-.3px; margin:0; }
h3 { font-size:16px; margin:0 0 7px; }
.muted { color:var(--muted); }
.small { font-size:13px; line-height:1.5; }
.text-btn { background:transparent; color:var(--accent); padding:10px 0 10px 10px; font-size:14px; }
.card { border-radius:20px; padding:18px; border:1px solid var(--line); background:var(--surface); box-shadow:var(--shadow); margin:10px 0; }
button.card { text-align:left; width:100%; display:block; }
.card:hover { border-color:#b3a5c7; }
.row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.row.start { align-items:flex-start; }
.row p { margin:6px 0 0; }
.metric { font-size:24px; letter-spacing:-.8px; font-weight:600; }
.track { height:6px; border-radius:9px; background:var(--line); margin:15px 0 10px; overflow:hidden; }
.track span { display:block; height:100%; background:#a689c3; border-radius:9px; }
.warning { color:var(--warning); }
.good { color:var(--good); }
.card-icon { background:var(--tint); color:var(--accent); border-radius:13px; height:44px; width:44px; display:grid; place-items:center; flex-shrink:0; }
.action-row { display:flex; align-items:center; gap:14px; }
.action-row>div:nth-child(2) { flex:1; }
.chevron { color:var(--muted); flex-shrink:0; }
.ai-card { display:flex!important; align-items:center; gap:14px; background:linear-gradient(120deg,var(--tint),var(--surface)); border-color:#b49ace65; }
.ai-card .card-icon { color:var(--heroText); background:var(--hero); }
.ai-card p { margin:5px 0 0; font-size:13px; color:var(--muted); }
.bottom-nav { position:fixed; bottom:22px; z-index:10; width:398px; margin-left:20px; border:1px solid #a89ab640; display:flex; padding:8px 6px; border-radius:24px; }
.bottom-nav a { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:48px; gap:5px; border-radius:16px; color:var(--muted); font-size:14px; }
.bottom-nav a.active { color:var(--accent); background:var(--tint); }
.demo-footer { color:var(--muted); font-size:11px; text-align:center; margin:14px 0 85px; }
.demo-footer button { color:var(--accent); padding:8px 0; background:none; font-size:11px; }
.back { display:inline-flex; gap:6px; align-items:center; margin:-8px 0 12px; padding:8px 0; background:none; font-size:14px; color:var(--muted); }
.filters { border:1px solid var(--line); border-radius:18px; display:flex; padding:5px; gap:4px; margin:18px 0; }
.filters button { flex:1; padding:10px 4px; font-size:13px; border-radius:13px; background:none; }
.filters button.active { background:var(--surface); color:var(--accent); box-shadow:0 2px 6px #0000000c; font-weight:600; }
.primary,.secondary { display:inline-flex; align-items:center; justify-content:center; gap:7px; width:100%; max-width:100%; min-width:0; padding:10px 14px; border-radius:22px; min-height:44px; font-size:14px; line-height:20px; font-weight:550; text-align:center; overflow-wrap:anywhere; margin-top:12px; }
.primary svg,.secondary svg { flex-shrink:0; }
.primary { color:var(--heroText); background:var(--hero); }
.secondary { color:var(--accent); background:var(--tint); }
.primary.inline,.secondary.inline { width:auto; }
.note { border-left:3px solid #ae93cc; padding:2px 0 2px 12px; font-size:13px; line-height:1.65; color:var(--muted); margin:18px 0; }
.stat-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:16px 0; }
.stat-grid .card { margin:0; }
.stat-grid .metric { margin:8px 0 3px; }
.list-row { padding:15px 0; border-bottom:1px solid var(--line); font-size:14px; line-height:1.5; }
.list-row:last-child { border:0; }
.list-row strong { text-align:right; }
.timeline { display:flex; gap:14px; align-items:flex-start; }
.time { font-size:20px; font-weight:600; letter-spacing:-.5px; min-width:58px; padding-top:3px; }
.time small { display:block; color:var(--muted); font-size:12px; margin-top:5px; font-weight:400; }
.timeline-content { border-left:2px solid #af92ce; padding-left:14px; flex:1; }
.timeline-content p { margin:6px 0; }
.empty { padding:30px 15px; text-align:center; }
.empty svg { margin:0 auto 15px; }
.attachment { border:1px dashed #aa96bd; background:var(--tint); padding:25px 16px; border-radius:18px; text-align:center; margin:15px 0; }
.attachment svg { margin:0 auto 12px; }
.attachment input { width:100%; font-size:13px; margin-top:15px; }
.photo-preview { width:100%; max-height:220px; object-fit:contain; border-radius:14px; background:var(--surface); margin:12px 0; }
textarea,input[type=text] { width:100%; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--text); padding:12px; font-size:16px; resize:vertical; }
textarea { min-height:78px; }
label.field { display:block; font-size:14px; margin:20px 0 8px; }
.chat-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.chat-head .page-title { margin:3px 0 6px; }
.messages { display:flex; flex-direction:column; gap:15px; padding:8px 0 18px; }
.message { width:94%; border-radius:19px 19px 19px 5px; padding:16px; background:var(--surface); border:1px solid var(--line); font-size:15px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.message.user { margin-left:auto; width:88%; background:var(--tint); border:0; border-radius:19px 19px 5px 19px; }
.message small { display:block; font-size:11px; color:var(--muted); margin-bottom:8px; white-space:normal; }
.message.pending { color:var(--muted); }
.suggestions { display:flex; flex-direction:column; gap:7px; }
.suggestions button { font-size:13px; text-align:left; color:var(--accent); border:1px solid var(--line); background:var(--surface); border-radius:13px; padding:12px; }
.composer { margin:15px 0; }
.composer-row { display:flex; gap:8px; }
.composer-row button { margin:0; width:auto; }
.composer textarea { min-height:70px; margin-bottom:8px; }
.channel-notice { padding:11px; background:var(--tint); color:var(--accent); border-radius:12px; font-size:12px; line-height:1.5; }
.receipt { border-radius:16px; padding:15px; background:var(--tint); margin:12px 0 0; font-size:14px; }
.receipt h3 { line-height:1.4; }
#toast { position:fixed; z-index:30; bottom:105px; left:50%; transform:translateX(-50%); width:max-content; max-width:90vw; background:var(--hero); color:var(--heroText); padding:13px 20px; border-radius:14px; font-size:14px; box-shadow:0 8px 30px #0002; display:none; }
#toast.show { display:block; }
.toggle-line { display:flex; align-items:center; justify-content:space-between; font-size:14px; gap:15px; margin:15px 0; }
.toggle-line input { width:20px; height:20px; accent-color:var(--accent); }
.reduce .glass { backdrop-filter:none; -webkit-backdrop-filter:none; background:var(--surface); }
.reduce * { scroll-behavior:auto; }
.telegram .message.user { background:var(--tint); }
.telegram .messages { background-image:radial-gradient(var(--line) 1px,transparent 1px); background-size:18px 18px; padding:14px 8px; border-radius:18px; }
@media (min-width:761px) { .phone { min-height:830px; }
}
@media (max-width:1000px) { body { gap:5vw; padding:24px 18px; }
.intro { width:300px; }
.intro h1 { font-size:45px; }
}
@media (max-width:760px) { body { padding:0; background:var(--bg); display:block; }
.intro { display:none; }
.workspace { width:100%; max-width:520px; margin:auto; }
.demo-controls { padding:9px 16px; margin:0; border-bottom:1px solid var(--line); gap:8px; }
.demo-controls label { font-size:11px; }
.demo-controls select { padding:9px; }
.demo-controls .icon-btn { width:38px; height:38px; }
.phone { border:0; border-radius:0; overflow:visible; box-shadow:none; min-height:calc(100dvh - 60px); }
.topbar { height:62px; padding:0 20px; }
main { padding-top:22px; min-height:calc(100dvh - 150px); }
.bottom-nav { bottom:max(12px,env(safe-area-inset-bottom)); width:calc(100% - 32px); max-width:488px; margin-left:16px; }
.demo-footer { margin-bottom:100px; }
}
@media (max-width:360px) { main { padding-left:15px; padding-right:15px; }
.page-title { font-size:27px; }
.hero { padding:18px; }
.hero .big { font-size:36px; }
.card { padding:15px; }
#scope { font-size:11px; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; }
}

.composer-row button { display:flex; align-items:center; justify-content:center; gap:7px; }
