/* EntryLab — marketing homepage. Tokens from entrylab-design-system/src/tokens.css. Mobile-first. */
:root {
  --canvas: #0F1113; --surface: #18191C; --surface-2: #23262A; --frame: #0B0C0E; --panel: #121417;
  --border: rgba(255,255,255,0.08); --border-strong: rgba(255,255,255,0.14);
  --text: #F7F7F8; --text-2: #C9CCD0; --text-3: #A8A8A8; --muted: #6B6F74;
  --lime: #D1FE17; --on-lime: #0F1113; --red: #FF6B6B; --blue-num: #8CB4FF;
  --tg-bg: #0E1621; --tg-head: #17212B; --tg-in: #182533; --tg-out: #2B5278; --tg-accent: #2AABEE; --tg-meta: #6D7F8F;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --max: 1200px; --gutter: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; color: var(--lime); text-transform: uppercase; }
.eyebrow .pro { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--lime); color: var(--on-lime); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(36px, 8vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(30px, 5.2vw, 52px); line-height: 1.06; }
h1 b, h2 b { font-weight: 800; }
.sub { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; max-width: 60ch; }
.section { padding: 88px 0 0; }
.section.center { text-align: center; }
.section.center .sub { margin-left: auto; margin-right: auto; }
.section-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.section.center .section-head { align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform 200ms ease, background 200ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--lime); color: var(--on-lime); }
.btn.ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn.lg { height: 52px; padding: 0 28px; font-size: 16px; }
.note { font-size: 13px; color: var(--muted); }
.caption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.frame { border-radius: 20px; border: 1px solid var(--border-strong); background: var(--frame); overflow: hidden; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--lime); text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.lime { color: var(--lime); }
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 500ms ease, transform 500ms ease; }
  .reveal.pending { opacity: 0; transform: translateY(12px); }
}

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(15,17,19,0.86); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.brand b { font-weight: 700; } .brand span { color: var(--text-3); }
.nav-links { display: none; gap: 28px; font-size: 14px; font-weight: 500; color: var(--text-3); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-right .signin { display: none; font-size: 14px; font-weight: 500; color: var(--text-3); }
.nav .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.menu-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.menu { display: none; border-top: 1px solid var(--border); background: var(--canvas); }
.menu.open { display: block; }
.menu a { display: block; padding: 16px var(--gutter); border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 500; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-right .signin { display: inline; } .menu-btn, .menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 0; text-align: center; overflow: hidden; }
.hero .glow { position: absolute; left: 50%; top: 260px; width: 900px; max-width: 140vw; height: 600px; transform: translateX(-50%); background: radial-gradient(circle at center, rgba(209,254,23,0.10) 0, rgba(209,254,23,0) 62%); pointer-events: none; }
.hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin-top: 18px; max-width: 980px; }
.hero .sub { max-width: 720px; font-size: clamp(16px, 2.2vw, 19px); }
.hero .cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; width: 100%; }
.hero .cta .btn { width: 100%; max-width: 360px; }
.proof { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 26px; padding: 12px 18px 12px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: #131517; }
.avatars { display: flex; align-items: center; }
.avatars span { width: 32px; height: 32px; border-radius: 16px; border: 2px solid #131517; display: inline-flex; align-items: center; justify-content: center; }
.avatars span + span { margin-left: -8px; }
.avatars .count { font-family: var(--mono); height: 26px; width: auto; padding: 0 8px; border-radius: 13px; background: var(--surface-2); font-size: 10px; font-weight: 600; margin-left: -6px; }
.stars { display: flex; gap: 3px; }
.proof .sep { width: 1px; height: 22px; background: var(--border-strong); display: none; }
.proof .text { font-size: 15px; color: var(--text-3); }
.proof .text b { color: var(--text); font-weight: 600; }
@media (min-width: 640px) { .proof { flex-wrap: nowrap; gap: 18px; padding: 0 22px 0 12px; height: 56px; } .proof .sep { display: block; } }
@media (max-width: 639px) { .proof { flex-wrap: nowrap; gap: 14px; padding: 0 18px 0 10px; height: 48px; margin-top: 22px; } .proof .text { display: none; } .proof .sep { display: block; } }
.hero-shot { position: relative; width: 100%; max-width: 1100px; margin: 44px auto 0; }
.hero-shot .frame { padding: 6px; border-radius: 16px; box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
.hero-shot .frame img { border-radius: 11px; width: 100%; height: auto; }
.signal-card { display: none; position: absolute; left: -40px; bottom: 36px; width: 340px; background: var(--tg-head); border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 28px 56px rgba(0,0,0,0.5); text-align: left; transform: rotate(-2deg); flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .signal-card { display: flex; } .hero-shot .frame { padding: 10px; border-radius: 24px; } .hero-shot .frame img { border-radius: 16px; } .hero { padding-top: 96px; } .hero .cta .btn { width: auto; } }
.tg-head { display: flex; align-items: center; gap: 10px; }
.tg-avatar { width: 26px; height: 26px; border-radius: 13px; background: var(--tg-accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tg-name { font-size: 13px; font-weight: 600; }
.pair { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.chip { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--on-lime); background: var(--lime); border-radius: 6px; padding: 3px 7px; }
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-family: var(--mono); font-size: 11px; color: #A8B4BF; }
.levels b { font-weight: 500; color: #fff; } .levels .sl { color: var(--red); } .levels .tp { color: var(--lime); }
.tg-time { display: flex; justify-content: flex-end; gap: 8px; font-size: 11px; color: var(--tg-meta); }

/* ---------- Full team ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.chips span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 14px; color: var(--text-2); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 44px; text-align: left; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.step .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; }
.step .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: 0; margin-top: 6px; }
.step p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-3); }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); margin-top: 64px; } .step { grid-template-columns: 1fr; } }

/* ---------- Two-column feature (engine / moderator) ---------- */
.two { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 64px; } .two.wide-right { grid-template-columns: 5fr 6fr; gap: 72px; } }
.engine-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 280px; overflow: hidden; }
.engine-visual .glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle at center, rgba(209,254,23,0.14) 0, rgba(209,254,23,0) 62%); }
.engine-visual img { position: relative; width: min(60vw, 340px); }
.engine-line { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); margin-top: 18px; }

/* ---------- Channel section ---------- */
.channel-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 44px; align-items: center; justify-items: center; }
.phone { width: min(100%, 320px); border-radius: 44px; background: var(--frame); border: 1px solid var(--border-strong); padding: 12px; box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
.phone .screen { border-radius: 34px; background: var(--tg-bg); overflow: hidden; }
.phone .head { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; background: var(--tg-head); border-bottom: 1px solid rgba(255,255,255,0.06); }
.phone .head .tg-avatar { width: 32px; height: 32px; border-radius: 16px; }
.phone .head small { display: block; font-size: 11px; color: var(--tg-meta); }
.posts { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.post { background: var(--tg-in); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.4; }
.receipt { font-family: var(--mono); background: var(--frame); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.receipt .row { display: flex; justify-content: space-between; }
.receipt .dim { color: var(--tg-meta); }
.side-cards { display: grid; grid-template-columns: 1fr; gap: 16px; width: 100%; }
.side-cards .card h3 { font-size: 16px; font-weight: 600; letter-spacing: 0; margin-top: 8px; }
.side-cards .card p { margin: 6px 0 0; font-size: 14px; color: var(--text-3); }
@media (min-width: 640px) { .side-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .channel-grid { grid-template-columns: 300px 320px 300px; gap: 48px; justify-content: center; } .side-cards { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- BotLab ---------- */
.botlab { margin-top: 44px; }
.editor-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--panel); }
.editor-bar i { width: 10px; height: 10px; border-radius: 5px; background: #2A2D31; }
.editor-bar .file { margin-left: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-bar .pill { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--lime); border: 1px solid rgba(209,254,23,0.5); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.editor { display: grid; grid-template-columns: 1fr; }
.chat { padding: 18px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--border); }
.chat .examples { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chat .examples::-webkit-scrollbar { display: none; }
.chat .examples span { flex: none; font-size: 12px; color: var(--text-3); border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.bubble { max-width: 92%; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: #D6EBFF; color: #0F1113; border: 0; border-radius: 14px 14px 4px 14px; }
.bubble.bot { align-self: flex-start; background: var(--surface); border: 1px solid rgba(209,254,23,0.22); border-radius: 14px 14px 14px 4px; color: var(--text-2); }
.bubble.bot::before { content: 'BotLab'; display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--lime); text-transform: uppercase; margin-bottom: 6px; }
.typing { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; padding: 4px 2px; background: none; border: 0; }
.typing .dots { display: none; }
.typing .spark { width: 8px; height: 8px; border-radius: 4px; background: var(--lime); animation: spark 1.4s ease-in-out infinite; flex: none; }
@keyframes spark { 0%, 100% { transform: scale(0.7); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }
.typing .status { font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; color: #8A9099; background: linear-gradient(90deg, #8A9099 0%, #8A9099 35%, #F7F7F8 50%, #8A9099 65%, #8A9099 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 2.4s linear infinite; white-space: nowrap; }
@keyframes shimmer { 0% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .typing .status { animation: none; -webkit-text-fill-color: #8A9099; } .typing .spark { animation: none; } } }
.typing i { width: 7px; height: 7px; border-radius: 4px; background: var(--text-2); animation: typing 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; opacity: .6; } }
.chat .input { margin-top: auto; display: flex; gap: 8px; }
.chat .input .field { flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--canvas); display: flex; align-items: center; padding: 0 14px; font-size: 14px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat .input .send { height: 44px; padding: 0 16px; border-radius: 12px; background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); font-size: 14px; font-weight: 600; display: flex; align-items: center; }
.code-pane { display: flex; flex-direction: column; min-width: 0; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.12em; }
.code-pane pre { margin: 0; padding: 18px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--text-2); background: var(--frame); overflow-x: auto; }
.code-pane pre .ln { color: #3A3F45; } .code-pane pre .kw { color: var(--lime); } .code-pane pre .n { color: var(--blue-num); } .code-pane pre .s { color: var(--text); }
.backtest { border-top: 1px solid var(--border); background: var(--panel); }
.bt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.bt-row .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.windows { display: flex; gap: 6px; }
.windows span { font-family: var(--mono); font-size: 11px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-3); }
.windows span.on { border-color: var(--lime); color: var(--lime); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; width: 100%; }
.stats div { min-width: 0; }
.stats .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); white-space: nowrap; }
.stats .v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .stats { width: auto; margin-left: auto; grid-template-columns: repeat(4, 110px); } }
.bt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 18px; }
.bt-actions .check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.bt-actions .check i { width: 14px; height: 14px; border-radius: 4px; background: var(--lime); border: 1px solid rgba(255,255,255,0.3); }
.bt-actions .disc { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.bt-actions .buttons { display: flex; gap: 8px; margin-left: auto; }
.bt-actions .buttons span { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 600; display: flex; align-items: center; white-space: nowrap; border: 1px solid var(--border-strong); }
.bt-actions .buttons span.go { background: var(--lime); color: var(--on-lime); border-color: transparent; }
@media (min-width: 900px) { .editor { grid-template-columns: 400px 1fr; } .chat { border-bottom: 0; border-right: 1px solid var(--border); min-height: 520px; } .chat .examples { flex-wrap: wrap; overflow: visible; } }
.points { display: grid; grid-template-columns: 1fr; gap: 0 48px; margin-top: 36px; text-align: left; }
.point { padding: 20px 0; border-top: 1px solid var(--border); }
.point h3 { font-size: 17px; font-weight: 600; letter-spacing: 0; margin-top: 6px; }
.point p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-3); }
@media (min-width: 700px) { .points { grid-template-columns: 1fr 1fr; } }

/* ---------- Marketplace ---------- */
.market { margin-top: 44px; padding: 16px; display: flex; flex-direction: column; gap: 16px; background: var(--canvas); }
.filters { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters span { flex: none; font-size: 13px; color: var(--text-2); border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 16px; white-space: nowrap; }
.filters span.on { background: var(--lime); color: var(--on-lime); font-weight: 600; border-color: transparent; }
.filters .rank { display: none; margin-left: auto; font-size: 12px; color: var(--muted); }
@media (min-width: 1024px) { .market { padding: 20px 24px 24px; } .filters .rank { display: inline; } }
.bots { display: grid; grid-template-columns: 1fr; gap: 16px; text-align: left; }
@media (min-width: 700px) { .bots { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .bots { grid-template-columns: repeat(3, 1fr); } }
.bot { border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bot .top { display: flex; gap: 12px; align-items: flex-start; }
.bot .av { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex: none; }
.bot .name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 17px; font-weight: 600; }
.bot .name small { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--text-3); background: var(--surface-2); border-radius: 999px; padding: 3px 7px; }
.bot .meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.bot .meta b { font-weight: 600; background: rgba(255,255,255,0.05); border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 9px; }
.bot .by { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.bot .by i { width: 16px; height: 16px; border-radius: 8px; background: var(--lime); color: var(--on-lime); font-style: normal; font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.bot .by b { color: var(--text); font-weight: 600; }
.perf { display: grid; grid-template-columns: 1fr 78px; gap: 14px; align-items: center; }
.perf .k { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.perf .k b { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--lime); }
.perf svg.spark { width: 100%; height: 56px; margin-top: 6px; }
.ring { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ring .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.ring small { font-size: 11px; color: var(--muted); }
.bot .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.bot .grid .k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; }
.bot .grid .v { font-size: 13px; font-weight: 600; margin-top: 3px; }
.bot .actions { display: flex; justify-content: flex-end; gap: 8px; }
.bot .actions span { height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 600; display: flex; align-items: center; border: 1px solid var(--border-strong); white-space: nowrap; }
.bot .actions span.go { background: var(--lime); color: var(--on-lime); border-color: transparent; }

/* ---------- Moderator feed ---------- */
.mod-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.mod-list div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; font-size: 15px; color: var(--text-3); }
.voices { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.voice { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 13px; }
.voice i { width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; }
.voice.on { border-color: var(--lime); }
.voice.ghost { border-style: dashed; color: var(--muted); }
.feed { display: flex; flex-direction: column; gap: 12px; }
.feed .day { display: flex; justify-content: center; }
.feed .day span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--tg-meta); background: rgba(255,255,255,0.05); border-radius: 999px; padding: 4px 10px; }
.fpost { display: grid; grid-template-columns: 1fr; gap: 6px; }
.fpost .tag { order: -1; }
.fpost .body { background: var(--tg-head); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; }
@media (min-width: 900px) { .fpost { grid-template-columns: 1fr 96px; gap: 14px; align-items: start; } .fpost .tag { order: 0; padding-top: 14px; white-space: nowrap; } }

/* ---------- Closer ---------- */
.casefile { margin-top: 40px; display: grid; grid-template-columns: 1fr; border-radius: 24px; background: var(--panel); }
.transcript { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--border); }
.line { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; }
.line .t { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 10px; }
.line .msg { max-width: 92%; padding: 10px 14px; font-size: 14px; line-height: 1.4; }
.line.in .msg { justify-self: start; background: var(--tg-in); border-radius: 14px 14px 14px 4px; }
.line.out .msg { justify-self: end; background: var(--tg-out); border-radius: 14px 14px 4px 14px; }
.linkchip { font-family: var(--mono); font-size: 12px; background: rgba(255,255,255,0.14); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.rail { padding: 20px 18px; display: flex; flex-direction: column; }
.rail .who { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 12px; }
.states { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.state { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 600; }
.state i { width: 10px; height: 10px; border-radius: 5px; background: var(--lime); }
.state.last i { box-shadow: 0 0 12px rgba(209,254,23,0.7); }
.state small { font-family: var(--mono); font-size: 10px; color: var(--muted); font-weight: 400; }
.stamp { margin-top: 18px; align-self: flex-start; font-family: var(--mono); background: var(--canvas); color: var(--lime); border-radius: 999px; padding: 10px 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; }
.rail .rules { margin-top: 18px; font-family: var(--mono); font-size: 11px; line-height: 1.8; color: var(--muted); }
@media (min-width: 900px) { .casefile { grid-template-columns: 62fr 38fr; } .transcript { padding: 24px 28px; border-bottom: 0; border-right: 1px solid var(--border); } .rail { padding: 24px 28px; } .states { grid-template-columns: 1fr; gap: 0; } .state { flex-direction: row; text-align: left; gap: 12px; padding: 10px 0; font-size: 14px; } .state small { margin-left: auto; font-size: 11px; } .line { grid-template-columns: 52px 1fr; gap: 12px; } .line .msg { max-width: 86%; } }
.money { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--text-2); }
@media (min-width: 900px) { .money { flex-direction: row; gap: 16px; align-items: baseline; } }

/* ---------- Dashboard ---------- */
.dash { margin-top: 44px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.dash .frame { padding: 6px; }
.dash .frame img { border-radius: 12px; width: 100%; height: auto; }
.dash .side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (min-width: 900px) { .dash { grid-template-columns: 2fr 1fr; } .dash .side { grid-template-columns: 1fr; } }

/* ---------- Plans ---------- */
.plans { width: 100%; max-width: 900px; margin: 44px auto 0; display: grid; grid-template-columns: 40fr 30fr 30fr; background: var(--panel); text-align: left; }
.plans > div { padding: 0 14px; min-height: 56px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 14px; }
.plans .h { min-height: 54px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--text-3); justify-content: center; text-align: center; }
.plans .c { justify-content: center; text-align: center; color: var(--text-2); }
.plans .p { justify-content: center; text-align: center; background: #16181B; }
.plans .h.p { border-top: 2px solid var(--lime); color: var(--lime); }
.plans .lock { color: var(--muted); }
@media (min-width: 700px) { .plans > div { padding: 0 24px; min-height: 64px; font-size: 17px; } .plans .h { font-size: 11px; } }

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: 1fr; gap: 20px; width: 100%; max-width: 900px; margin: 44px auto 0; text-align: left; }
.price { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.price.pro { border-top: 2px solid var(--lime); order: -1; }
.price .plan { display: flex; justify-content: space-between; align-items: center; }
.price .popular { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--on-lime); background: var(--lime); border-radius: 999px; padding: 4px 8px; }
.price h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.price .who { font-size: 15px; color: var(--text-3); margin-top: 4px; }
.price .amount { display: flex; align-items: baseline; gap: 6px; }
.price .amount b { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }
.price .amount span { font-size: 15px; color: var(--text-3); }
.price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-2); }
.price ul li.off { color: var(--muted); }
.price .btn { width: 100%; }
.price .under { font-size: 13px; color: var(--muted); text-align: center; margin-top: -6px; }
@media (min-width: 700px) { .prices { grid-template-columns: 1fr 1fr; gap: 24px; } .price.pro { order: 0; } .price { padding: 32px; } }
.stripe-note { margin: 22px auto 0; font-size: 14px; color: var(--muted); max-width: 620px; }

/* ---------- FAQ ---------- */
.faq { width: 100%; max-width: 820px; margin: 36px auto 0; text-align: left; }
.faq details { border-top: 1px solid var(--border-strong); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; font-weight: 600; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .a { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--text-3); }

/* ---------- Final CTA ---------- */
.final { position: relative; padding: 96px 0 96px; text-align: center; overflow: hidden; }
.final .glow { position: absolute; left: 50%; top: 20px; width: 800px; max-width: 140vw; height: 400px; transform: translateX(-50%); background: radial-gradient(circle at center, rgba(209,254,23,0.10) 0, rgba(209,254,23,0) 62%); pointer-events: none; }
.final .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final h2 { font-size: clamp(34px, 6vw, 60px); }
.final p { margin: 0; font-size: 17px; color: var(--text-2); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.fcols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fcols .brandcol { grid-column: 1 / -1; }
.fcols .brandcol p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.fcols .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 10px; }
.fcols a { display: block; font-size: 14px; color: var(--text-3); padding: 6px 0; }
.fcols a:hover { color: var(--text); }
.legal { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; line-height: 1.6; color: var(--muted); }
@media (min-width: 700px) { .fcols { grid-template-columns: 2fr 1fr 1fr 1fr; } .fcols .brandcol { grid-column: auto; } .legal { flex-direction: row; justify-content: space-between; gap: 32px; } .legal p { max-width: 820px; margin: 0; } }

/* ---------- Mobile fixes (2026-09-09) ---------- */
.frame.botlab, .frame.market, .casefile, .plans, .prices, .faq, .points, .steps, .side-cards, .feed, .phone { text-align: left; }
.code-pane pre, .code-head, .chat { text-align: left; }
.editor > * { min-width: 0; }
.chat .examples { min-width: 0; }
@media (max-width: 479px) {
  .bot .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .perf { grid-template-columns: 1fr 70px; }
  .hero-shot { width: calc(100% + 8px); }
}

/* ---------- Mobile refinements (2026-09-09, round 2) ---------- */
.rail-compact { display: none; }
.stats-compact { display: none; }
@media (max-width: 899px) {
  .m-hide { display: none !important; }
  .line .msg { font-size: 13px; padding: 9px 12px; }
  .rail-compact { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
  .rail-compact span { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); margin-right: 6px; }
  .states { display: none; }
  .code-pane pre { max-height: 262px; overflow-y: hidden; position: relative; }
  .code-pane { position: relative; }
  .code-pane::after { content: ""; position: absolute; left: 0; right: 0; top: 262px; height: 0; }
  .code-pane pre::after { content: ""; position: sticky; display: block; bottom: 0; height: 48px; margin-top: -48px; background: linear-gradient(to bottom, rgba(11,12,14,0), #0B0C0E); pointer-events: none; }
  .stats { display: none; }
  .stats-compact { display: block; width: 100%; font-family: var(--mono); font-size: 11px; letter-spacing: 0; white-space: nowrap; color: var(--text-3); }
  .bt-row { gap: 10px 14px; }
  .bt-actions .check { display: none; }
  .bt-actions .disc { display: none; }
  .bt-actions .buttons { margin-left: 0; width: 100%; }
  .bt-actions .buttons span { flex: 1; justify-content: center; }
}
@media (min-width: 900px) { .dash .side { grid-template-columns: 1fr; } }

/* Consent card (Europe): injected by t.js */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; padding: 16px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.consent p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.consent-actions { display: flex; gap: 10px; }
.consent .btn { height: 40px; padding: 0 16px; font-size: 14px; }
@media (min-width: 640px) { .consent { left: auto; right: 24px; bottom: 24px; max-width: 400px; } }
