/* Datamart AI: shared styles for the public site and the app ("aurora" design: deep night background, violet to
   cyan light, glass surfaces). The admin console has its own styles. */
:root {
  color-scheme: dark;
  --bg: #07070d; --bg2: #0b0b16;
  --panel: #11111d; --panel2: #181829; --sunken: #0a0a13;
  --glass: rgba(255, 255, 255, .035); --glass2: rgba(255, 255, 255, .065);
  --border: rgba(255, 255, 255, .085); --border2: rgba(255, 255, 255, .14); --input: rgba(255, 255, 255, .17);
  --text: #eeeef8; --muted: #a4a6c0; --faint: #8789aa;
  --brand: #b9a8ff; --brand2: #7c3aed; --brand3: #22d3ee; --brand-bg: rgba(139, 92, 246, .16); --brand-ink: #ffffff;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 48%, #06b6d4 100%);
  --grad-btn: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --grad-text: linear-gradient(100deg, #e9d5ff 0%, #c4b5fd 30%, #a5b4fc 60%, #67e8f9 100%);
  --ok: #34d399; --red: #fb7185; --amber: #fbbf24; --blue: #93c5fd;
  --radius: 16px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 48px -28px rgba(0, 0, 0, .8);
  --glow: 0 10px 28px -10px rgba(124, 58, 237, .7);
  font-family: "Inter var", Inter, "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  background: var(--bg);
}
/* The page glow sits on its own fixed layer: background-attachment: fixed would repaint the whole screen on every scroll. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(56rem 34rem at 8% -10%, rgba(124, 58, 237, .26), transparent 62%),
    radial-gradient(48rem 30rem at 100% -6%, rgba(6, 182, 212, .16), transparent 60%),
    radial-gradient(44rem 30rem at 50% 118%, rgba(79, 70, 229, .14), transparent 60%); }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #2c2c46 transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Links inside running text are underlined, so they stand out without relying on colour (WCAG 1.4.1). */
main p a:not(.btn):not(.pill), main li a:not(.btn), main td a:not(.btn), main dd a:not(.btn) { text-decoration: underline; text-decoration-color: rgba(185, 168, 255, .55); text-decoration-thickness: 1px; text-underline-offset: 3px; }
main p a:not(.btn):not(.pill):hover, main li a:not(.btn):hover, main td a:not(.btn):hover, main dd a:not(.btn):hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 80; background: var(--brand2); color: #fff; padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Dashboard: your messages per day */
.usage-card { margin-bottom: 16px; }
.uchart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; height: 150px; padding-top: 8px; border-bottom: 1px solid var(--border); }
.uchart .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.uchart .bar { width: 100%; max-width: 30px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #a78bfa, #6d28d9); opacity: .85; }
.uchart .bar.today { background: linear-gradient(180deg, #67e8f9, #4f46e5); opacity: 1; box-shadow: 0 0 18px rgba(34, 211, 238, .35); }
.uchart small { font-size: 10px; color: var(--muted); height: 14px; white-space: nowrap; }
@media (max-width: 480px) { .uchart { gap: 2px; } }

/* The administrator's site notice (app top, status page) */
.site-notice { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(79, 70, 229, .18); border-bottom: 1px solid rgba(129, 140, 248, .35); color: #e0e7ff; font-size: 13.5px; line-height: 1.5; }
.site-notice::before { content: "ℹ"; font-weight: 800; color: #a5b4fc; }
.site-notice.warn { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .35); color: #fde68a; }
.site-notice.warn::before { content: "⚠"; color: var(--amber); }
.site-notice > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.site-notice.boxed { border: 1px solid rgba(129, 140, 248, .35); border-radius: 12px; margin-bottom: 18px; }
.site-notice.boxed.warn { border-color: rgba(251, 191, 36, .35); }
.site-notice-close { background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; padding: 2px 8px; border-radius: 6px; cursor: pointer; }
.site-notice-close:hover { background: rgba(255, 255, 255, .1); }

/* ---- Brand ---- */
.brand { display: flex; gap: 11px; align-items: center; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 19px; flex: none; box-shadow: 0 6px 20px -6px rgba(124, 58, 237, .8), 0 1px 0 rgba(255, 255, 255, .35) inset; }
.brand b { font-size: 15px; letter-spacing: -.1px; display: block; font-weight: 750; }
.brand small { font-size: 10.5px; color: var(--muted); display: block; margin-top: 1px; letter-spacing: 1.2px; font-weight: 600; }

/* ---- Buttons and form controls ---- */
.btn { border-radius: 10px; background: var(--glass2); border: 1px solid var(--border2); padding: 10px 16px; color: var(--text); font-size: 13.5px; font-weight: 650; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); text-decoration: none; color: var(--text); }
.btn.primary { background: var(--grad-btn); border-color: transparent; color: #fff; box-shadow: var(--glow), 0 1px 0 rgba(255, 255, 255, .22) inset; }
.btn.primary:hover { filter: brightness(1.14); transform: translateY(-1px); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(244, 63, 94, .12); border-color: rgba(244, 63, 94, .45); color: #fecdd3; }
.btn.danger:hover { background: rgba(244, 63, 94, .2); }
.btn.small { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn.large { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; padding: 12px; }
.btn svg, .icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.field { margin-bottom: 15px; }
.field label, .label-text { display: block; font-weight: 650; font-size: 12.5px; margin-bottom: 7px; color: #d6d7ea; }
.input { display: block; width: 100%; color: var(--text); border-radius: 10px; border: 1px solid var(--input); background: rgba(255, 255, 255, .03); padding: 11px 13px; transition: border-color .15s, box-shadow .15s, background .15s; }
.input:hover { border-color: rgba(255, 255, 255, .26); }
.input:focus-visible { outline: none; border-color: #8b5cf6; background: rgba(139, 92, 246, .06); box-shadow: 0 0 0 4px rgba(139, 92, 246, .22); }
.input::placeholder { color: #75779a; }
select.input { padding: 10px 12px; }
select option { background: #14142a; color: var(--text); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.notice { min-height: 20px; font-size: 13px; margin: 12px 0 0; color: var(--muted); }
.notice.error { color: var(--red); }
.notice.ok { color: var(--ok); }

/* ---- Cards, chips, notes, tables, code ---- */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018)); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; min-width: 0; box-shadow: var(--shadow); }
.sectionhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sectionhead h2 { font-size: 15.5px; margin: 0; letter-spacing: -.2px; }
.sectionhead span { font-size: 12px; color: var(--muted); }
.chip { font-size: 11px; font-weight: 750; border: 1px solid rgba(52, 211, 153, .35); border-radius: 99px; background: rgba(52, 211, 153, .1); color: #6ee7b7; padding: 4px 10px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.chip.warn { background: rgba(251, 191, 36, .1); color: #fcd34d; border-color: rgba(251, 191, 36, .38); }
.chip.bad { background: rgba(244, 63, 94, .1); color: #fda4af; border-color: rgba(244, 63, 94, .4); }
.chip.plain { background: var(--glass2); color: var(--muted); border-color: var(--border2); }
.chip.brand { background: var(--brand-bg); color: #d8ccff; border-color: rgba(167, 139, 250, .4); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(251, 191, 36, .12); flex: none; }
.dot.online { background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .16), 0 0 12px rgba(52, 211, 153, .6); }
.dot.offline { background: var(--red); box-shadow: 0 0 0 4px rgba(251, 113, 133, .14); }
.note { margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(167, 139, 250, .3); background: rgba(139, 92, 246, .09); border-radius: 12px; font-size: 13px; color: #ddd6fe; line-height: 1.6; }
.note.warn { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); color: #fde68a; }
.note.bad { border-color: rgba(244, 63, 94, .4); background: rgba(244, 63, 94, .08); color: #fecdd3; }
.table-scroll { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { color: var(--faint); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; padding: 9px 12px 11px; border-bottom: 1px solid var(--border2); font-weight: 750; white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--border); color: #dcdcee; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.empty { padding: 26px 12px; color: var(--muted); text-align: center; }
code { font-family: var(--mono); font-size: .9em; background: rgba(139, 92, 246, .1); border: 1px solid rgba(167, 139, 250, .2); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; color: #ddd6fe; }
pre { position: relative; background: #08080f; border: 1px solid var(--border); border-radius: 12px; padding: 15px 17px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: #dcdcf0; margin: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }
.copy-btn { position: absolute; top: 8px; right: 8px; }
pre:has(> .copy-btn) { padding-right: 84px; min-height: 46px; }
.kv { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 0; font-size: 13px; }
.kv > * { padding: 12px 0; border-bottom: 1px solid var(--border); }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ---- App shell (signed in): sidebar + main ---- */
.app { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; width: 248px; flex: none; border-right: 1px solid var(--border); background: rgba(9, 9, 18, .72); backdrop-filter: blur(18px); padding: 22px 14px; display: flex; flex-direction: column; overflow-y: auto; }
.side .brand { padding: 0 10px 24px; }
.sidenav { display: grid; gap: 3px; }
.nav { width: 100%; border: 0; background: transparent; color: var(--muted); text-align: left; border-radius: 10px; display: flex; align-items: center; gap: 11px; padding: 10px 13px; font-weight: 600; font-size: 13.5px; text-decoration: none; transition: background .15s, color .15s; }
.nav:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav[aria-current="page"] { color: #fff; background: linear-gradient(90deg, rgba(139, 92, 246, .26), rgba(99, 102, 241, .07)); box-shadow: inset 2px 0 0 #a78bfa; }
.nav[aria-current="page"] svg { color: #c4b5fd; }
.nav svg { height: 18px; width: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.side-section { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); font-weight: 750; padding: 18px 13px 6px; }
.side-bottom { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; text-transform: uppercase; }
.who-text { min-width: 0; font-size: 12px; }
.who-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.who-text span { color: var(--muted); }
.server-pill { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.main { padding: 32px clamp(18px, 4vw, 56px) 48px; width: 100%; max-width: 1280px; margin: 0 auto; min-width: 0; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 10px; color: #c4b5fd; }
.top h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -1.1px; line-height: 1.15; margin: 0 0 6px; font-weight: 780; }
.subtitle { color: var(--muted); font-size: 13.5px; margin: 0; }
.tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mobile-bar { display: none; }
.view { display: none; }
.view.active { display: block; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Dashboard ---- */
.grid { display: grid; gap: 16px; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.metrics .card { position: relative; overflow: hidden; }
.metrics .card::after { content: ""; position: absolute; inset: -40% -30% auto auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 70%); pointer-events: none; }
.metric-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.metric-value { font-size: 30px; font-weight: 780; letter-spacing: -1px; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.metric-foot { color: var(--muted); font-size: 12px; }
.meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 12px; }
.meter > span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--grad); box-shadow: 0 0 12px rgba(139, 92, 246, .6); transition: width .4s ease; }
.meter.warn > span { background: linear-gradient(90deg, #d97706, var(--amber)); box-shadow: none; }
.meter.bad > span { background: linear-gradient(90deg, #e11d48, var(--red)); box-shadow: none; }
.two-col { grid-template-columns: 1.4fr 1fr; align-items: start; margin-bottom: 16px; }
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.action { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 13px; border: 1px solid var(--border); background: var(--glass); color: var(--text); text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.action:hover { border-color: rgba(167, 139, 250, .45); text-decoration: none; color: var(--text); background: rgba(139, 92, 246, .08); transform: translateY(-2px); }
.action b { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.action b svg { color: #c4b5fd; }
.action span { color: var(--muted); font-size: 12px; }
.status-rows { display: grid; gap: 14px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--border); font-size: 13px; }
.status-row:last-child { padding-bottom: 0; border: 0; }
.status-row > span:first-child { color: var(--muted); }

/* ---- Chat ---- */
.chat { display: flex; flex-direction: column; height: calc(100vh - 80px); min-height: 480px; }
.chat-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; position: relative; }
.chat-bar select { max-width: 420px; flex: 1 1 260px; }
.chat-bar .plan-pill { margin-left: auto; }
.history-wrap { position: relative; }
@media (max-width: 760px) { /* the panel spans the chat bar instead of hanging off the button */
  .history-wrap { position: static; }
  .history-panel { left: 0; right: 0; width: auto; }
}
.history-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: min(440px, calc(100vw - 32px)); max-height: 60vh; overflow: auto; background: rgba(17, 17, 29, .96); backdrop-filter: blur(16px); border: 1px solid var(--border2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); padding: 6px; }
.history-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 8px 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.history-item { display: flex; align-items: center; gap: 4px; border-radius: 9px; }
.history-item:hover { background: rgba(255, 255, 255, .06); }
.history-item[aria-current="true"] { background: var(--brand-bg); }
.history-open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: var(--text); padding: 9px 10px; border-radius: 8px; }
.history-open b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-open span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-del { background: none; border: 0; color: var(--faint); padding: 6px 10px; border-radius: 6px; font-size: 17px; line-height: 1; }
.history-del:hover { color: var(--red); background: rgba(244, 63, 94, .12); }
.history-empty { margin: 0; padding: 14px 10px; color: var(--muted); font-size: 13px; }
.sess-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sess-row:last-child { border-bottom: 0; }
.sess-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--brand-bg); color: #c4b5fd; display: grid; place-items: center; }
.sess-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.sess-main { flex: 1; min-width: 0; font-size: 13.5px; }
.sess-main b { font-weight: 650; }
.sess-main .chip { margin-left: 4px; vertical-align: 1px; }
.sess-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.instr-on { margin-left: 2px; font-size: 10.5px; font-weight: 750; color: #fff; background: var(--grad-btn); border-radius: 99px; padding: 1px 7px; }
.instr-panel { left: auto; right: 0; } /* opens towards the left, so it stays on screen */
.instr-body { padding: 8px 8px 4px; }
.instr-body .label { display: block; font-size: 12.5px; font-weight: 650; color: #d6d7ea; margin-bottom: 6px; }
.instr-body textarea { resize: vertical; min-height: 110px; font: inherit; font-size: 13.5px; line-height: 1.5; }
.instr-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 8px 0 10px; }
.instr-use { display: flex; gap: 7px; align-items: center; cursor: pointer; color: #d6d7ea; }
.instr-use input { accent-color: #8b5cf6; }
.instr-actions { display: flex; gap: 8px; }
.instr-note { margin: 10px 0 2px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.thread { flex: 1; overflow-y: auto; padding: 4px 4px 20px; scroll-behavior: smooth; }
.empty-chat { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px 10px; }
.empty-chat h2 { color: var(--text); font-size: 24px; margin: 14px 0 6px; letter-spacing: -.6px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; max-width: 660px; }
.suggestions button { border: 1px solid var(--border2); background: var(--glass); border-radius: 99px; padding: 8px 15px; font-size: 13px; color: #dcdcee; transition: border-color .15s, background .15s; }
.suggestions button:hover { border-color: rgba(167, 139, 250, .6); background: rgba(139, 92, 246, .12); color: #fff; }
.msg { display: flex; gap: 12px; margin: 0 auto 20px; max-width: 860px; }
.msg-avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 800; }
.msg.user .msg-avatar { background: rgba(255, 255, 255, .08); color: #e0e7ff; border: 1px solid var(--border2); }
.msg.assistant .msg-avatar { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(124, 58, 237, .8); }
.msg-body { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 4px; min-height: 22px; flex-wrap: wrap; row-gap: 4px; }
.msg-head b { color: #dcdcee; font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.msg-head .btn { margin-left: auto; opacity: 0; transition: opacity .15s; }
.msg-head .btn ~ .btn { margin-left: 0; }
.retry { margin-left: 10px; vertical-align: middle; }
.msg:hover .msg-head .btn, .msg-head .btn:focus-visible { opacity: 1; }
@media (hover: none) { .msg-head .btn { opacity: 1; } }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; font-size: 14.5px; }
.msg.user .msg-text { background: linear-gradient(135deg, rgba(124, 58, 237, .32), rgba(79, 70, 229, .22)); border: 1px solid rgba(167, 139, 250, .35); border-radius: 14px 14px 14px 4px; padding: 10px 15px; display: inline-block; max-width: 100%; }
.msg-text pre { white-space: pre; margin: 10px 0; }
/* Markdown in answers (built by renderRich in index.html) */
.msg.assistant .msg-text { white-space: normal; }
.msg-text .md-p { margin: 0 0 10px; white-space: pre-wrap; }
.msg-text > :last-child, .msg-text li > :last-child, .msg-text blockquote > :last-child { margin-bottom: 0; }
.msg-text h3 { font-size: 17px; margin: 18px 0 8px; letter-spacing: -.2px; line-height: 1.35; }
.msg-text h4, .msg-text h5, .msg-text h6 { font-size: 15px; margin: 16px 0 6px; line-height: 1.35; }
.msg-text > h3:first-child, .msg-text > h4:first-child { margin-top: 0; }
.msg-text ul, .msg-text ol { margin: 0 0 10px; padding-left: 24px; }
.msg-text li { margin: 3px 0; }
.msg-text li::marker { color: #a78bfa; }
.msg-text li > ul, .msg-text li > ol { margin: 4px 0 0; }
.msg-text blockquote { margin: 0 0 10px; padding: 2px 0 2px 14px; border-left: 3px solid #7c3aed; color: #cfd0e6; }
.msg-text hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.msg-text a { color: var(--brand); text-decoration: underline; overflow-wrap: anywhere; }
.msg-text del { color: var(--muted); }
.msg-text .md-table { margin: 0 0 12px; border: 1px solid var(--border); border-radius: 12px; }
.msg-text .md-table th { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); background: var(--glass2); }
.msg-text .md-table td, .msg-text .md-table th { padding: 8px 12px; white-space: normal; }
.msg-text pre[data-lang] { padding-top: 30px; }
.msg-text pre[data-lang]::before { content: attr(data-lang); position: absolute; top: 8px; left: 16px; font-size: 11px; color: #a78bfa; font-weight: 650; }
.msg-text .error-text { color: var(--red); }
.thinking { margin: 4px 0 8px; font-size: 12.5px; color: var(--muted); }
.thinking summary { cursor: pointer; width: fit-content; }
.thinking div { white-space: pre-wrap; border-left: 2px solid rgba(167, 139, 250, .4); padding: 4px 0 4px 12px; margin-top: 6px; max-height: 260px; overflow: auto; }
.cursor::after { content: "▍"; color: #a78bfa; animation: blink 1s steps(2) infinite; margin-left: 1px; }
@keyframes blink { to { opacity: 0; } }
.composer { max-width: 860px; width: 100%; margin: 0 auto; background: rgba(17, 17, 29, .82); backdrop-filter: blur(14px); border: 1px solid var(--border2); border-radius: 16px; padding: 10px; display: flex; gap: 10px; align-items: flex-end; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: rgba(167, 139, 250, .6); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15), 0 18px 40px -20px rgba(0, 0, 0, .8); }
.composer textarea { flex: 1; resize: none; border: 0; background: transparent; color: var(--text); padding: 8px; max-height: 220px; min-height: 40px; line-height: 1.5; }
.composer textarea:focus-visible { outline: none; }
.composer-foot { max-width: 860px; margin: 8px auto 0; display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--faint); flex-wrap: wrap; }

/* ---- Sign-in screen ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth-hero { position: relative; overflow: hidden; padding: 36px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; border-right: 1px solid var(--border);
  background: radial-gradient(40rem 26rem at 0% 0%, rgba(124, 58, 237, .32), transparent 65%), radial-gradient(30rem 22rem at 100% 100%, rgba(6, 182, 212, .18), transparent 65%); }
.auth-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); pointer-events: none; }
.auth-hero > * { position: relative; }
.auth-hero h1 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -2px; line-height: 1.05; margin: 0 0 18px; max-width: 580px; font-weight: 800; }
.auth-hero .lead { color: #c6c7dc; font-size: 16.5px; max-width: 520px; margin: 0 0 30px; line-height: 1.65; }
.hero-body { margin: auto 0; padding: 40px 0; }
.features { display: grid; gap: 14px; max-width: 520px; padding: 0; margin: 0; list-style: none; }
.features li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--border); }
.feature-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-bg); color: #c4b5fd; flex: none; border: 1px solid rgba(167, 139, 250, .3); }
.features b { display: block; font-size: 14px; margin-bottom: 2px; }
.features span { color: var(--muted); font-size: 13px; }
.auth-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; }
.auth-links a { color: var(--muted); }
.auth-links a:hover { color: var(--text); }
.auth-panel { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 430px; padding: 34px 32px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--border2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .06) inset; backdrop-filter: blur(16px); }
.auth-card h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.7px; }
.auth-card .lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.auth-back:hover { color: var(--text); text-decoration: none; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: rgba(0, 0, 0, .3); border: 1px solid var(--border); padding: 4px; border-radius: 12px; margin-bottom: 22px; }
.tabs button { background: transparent; border: 0; color: var(--muted); padding: 9px; border-radius: 9px; font-weight: 650; font-size: 13px; transition: background .15s, color .15s; }
.tabs button[aria-selected="true"] { background: var(--grad-btn); color: #fff; box-shadow: var(--glow); }
.tabs.single { grid-template-columns: 1fr; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.linkish:hover { text-decoration: underline; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: #d6d7ea; margin: 0 0 14px; line-height: 1.45; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--red); }
.danger-zone { border-color: rgba(244, 63, 94, .35); }
.danger-zone h2 { color: #fda4af; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: rgba(24, 24, 41, .96); backdrop-filter: blur(14px); border: 1px solid rgba(167, 139, 250, .4); color: #ede9fe; padding: 12px 18px; border-radius: 12px; font-size: 13px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); max-width: calc(100% - 32px); }
.code-input { font-size: 24px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.row-buttons { display: flex; gap: 8px; margin-top: 10px; }
.row-buttons .btn { flex: 1; }
.fineprint { font-size: 12px; color: var(--faint); margin-top: 18px; text-align: center; }
.fineprint a { color: var(--muted); text-decoration: underline; }

/* ---- Public site: header, footer, page layouts ---- */
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px) saturate(140%); background: rgba(7, 7, 13, .72); border-bottom: 1px solid var(--border); }
.site-header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 22px; }
.site-nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; margin-left: 8px; }
.site-nav a:not(.btn) { color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 8px 11px; border-radius: 9px; transition: color .15s, background .15s; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .06); text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; }
.site-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px 72px; }
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -1.8px; line-height: 1.08; margin: 0 0 12px; font-weight: 800; }
.page-head p:not(.eyebrow) { color: var(--muted); margin: 0; font-size: 16px; max-width: 700px; line-height: 1.65; }
.page-head.center { text-align: center; }
.page-head.center p:not(.eyebrow) { margin: 0 auto; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; align-items: start; }
.toc { position: sticky; top: 86px; font-size: 13px; }
.toc b { display: block; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.toc a { display: block; color: var(--muted); padding: 5px 0 5px 12px; border-left: 1px solid var(--border2); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--text); border-left-color: #a78bfa; text-decoration: none; }
.prose { max-width: 800px; font-size: 15px; line-height: 1.75; color: #d7d8ea; }
.prose h2 { font-size: 23px; letter-spacing: -.6px; color: var(--text); margin: 48px 0 12px; padding-top: 8px; scroll-margin-top: 86px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16.5px; color: var(--text); margin: 28px 0 8px; scroll-margin-top: 86px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: #a78bfa; }
.prose table { font-size: 13px; margin: 6px 0 18px; }
.prose pre { margin: 10px 0 18px; }
.prose .table-scroll { border: 1px solid var(--border); border-radius: 12px; margin: 6px 0 18px; background: var(--glass); }
.prose .table-scroll table { margin: 0; }
/* Guide: screenshots and numbered steps */
.shot { margin: 14px 0 26px; }
.shot a { display: block; border: 1px solid var(--border2); border-radius: 14px; overflow: hidden; background: #08080f; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(139, 92, 246, .08); transition: border-color .15s, transform .2s; }
.shot a:hover { border-color: rgba(167, 139, 250, .55); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.shot.phone a { max-width: 300px; }
.prose .steps { list-style: none; padding: 0; counter-reset: step; }
.prose .steps li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 12px; min-height: 28px; }
.prose .steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(124, 58, 237, .8); }
.method { font-family: var(--mono); font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: rgba(52, 211, 153, .12); color: #6ee7b7; }
.method.post { background: rgba(139, 92, 246, .16); color: #c4b5fd; }
.tabbar { display: flex; gap: 4px; margin: 10px 0 0; flex-wrap: wrap; }
.tabbar button { border: 1px solid var(--border); border-bottom: 0; background: transparent; color: var(--muted); padding: 7px 13px; border-radius: 9px 9px 0 0; font-size: 12px; font-weight: 650; }
.tabbar button[aria-selected="true"] { background: #08080f; color: #fff; box-shadow: inset 0 2px 0 #8b5cf6; }
.tabbar + pre { border-top-left-radius: 0; margin-top: 0; }

.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(124, 58, 237, .06)); }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px 28px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 32px 48px; font-size: 13px; color: var(--faint); }
.footer-brand p { margin: 14px 0 0; max-width: 340px; color: var(--muted); line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-cols div { display: grid; gap: 9px; align-content: start; }
.footer-cols b { color: var(--text); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 4px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--border); }

/* ---- Public site: sections ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; position: relative; }
.section.tight { padding: 56px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -1.4px; line-height: 1.1; margin: 0 0 14px; font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 16px; margin: 0; line-height: 1.65; }
.section-head.left { margin-left: 0; text-align: left; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; background: rgba(139, 92, 246, .12); border: 1px solid rgba(167, 139, 250, .32); color: #ddd6fe; font-size: 12.5px; font-weight: 650; margin-bottom: 22px; }
.pill b { background: var(--grad-btn); color: #fff; border-radius: 99px; padding: 2px 9px; font-size: 11px; letter-spacing: .4px; }
.pill:hover { text-decoration: none; border-color: rgba(167, 139, 250, .6); }

/* Hero */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 70%); pointer-events: none; }
.hero-copy { position: relative; text-align: center; max-width: 900px; margin: 0 auto; animation: rise .6s ease both; }
.hero h1 { font-size: clamp(40px, 6.6vw, 80px); letter-spacing: -3px; line-height: 1.02; margin: 0 0 22px; font-weight: 850; }
.hero .lead { color: #c6c7dc; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; max-width: 680px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: 13px; display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; stroke: var(--ok); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-visual { position: relative; max-width: 1080px; margin: 64px auto 0; animation: rise .8s .1s ease both; }
.hero-visual::before { content: ""; position: absolute; inset: 8% 6% -6%; background: var(--grad); filter: blur(70px); opacity: .45; border-radius: 40px; z-index: 0; }
.browser { position: relative; z-index: 1; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: #0b0b14; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .08) inset; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .03); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a55; }
.browser-bar i:nth-child(1) { background: #fb7185; } .browser-bar i:nth-child(2) { background: #fbbf24; } .browser-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin: 0 auto; font-size: 12px; color: var(--faint); background: rgba(0, 0, 0, .3); border: 1px solid var(--border); padding: 3px 14px; border-radius: 8px; font-family: var(--mono); }
.browser img { display: block; width: 100%; height: auto; }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: rgba(17, 17, 29, .88); backdrop-filter: blur(14px); border: 1px solid var(--border2); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8); font-size: 12.5px; animation: float 6s ease-in-out infinite; }
.float-card b { display: block; font-size: 13px; }
.float-card span { color: var(--muted); }
.float-card .ficon { width: 32px; height: 32px; margin: 0; }
.float-card.one { left: -28px; top: 22%; }
.float-card.two { right: -24px; bottom: 16%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Logos and numbers */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; color: var(--faint); font-weight: 700; font-size: 15px; letter-spacing: -.2px; }
.logo-strip span { display: inline-flex; align-items: center; gap: 8px; opacity: .9; }
.logo-strip span::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); opacity: .8; }
.strip-label { text-align: center; color: var(--muted); font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; margin: 0 0 20px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 26px 22px; border-radius: 18px; background: var(--glass); border: 1px solid var(--border); text-align: center; }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -1.5px; font-weight: 850; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13px; }

/* Cards of products and features */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid var(--border); color: var(--text); overflow: hidden; transition: transform .2s, border-color .2s; }
.product-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(196, 181, 253, .7), transparent); }
.product-card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, .4); text-decoration: none; color: var(--text); }
.product-card h3 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.5px; }
.product-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.product-card .more { margin-top: auto; padding-top: 8px; color: var(--brand); font-weight: 650; font-size: 13.5px; }
.ficon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(124, 58, 237, .9), 0 1px 0 rgba(255, 255, 255, .3) inset; flex: none; }
.ficon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ficon.soft { background: var(--brand-bg); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, .3); box-shadow: none; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 24px; border-radius: 18px; background: var(--glass); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.feature:hover { border-color: rgba(167, 139, 250, .32); background: rgba(139, 92, 246, .05); }
.feature h3 { margin: 16px 0 6px; font-size: 16px; letter-spacing: -.2px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Two columns: text and a picture or code */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -1.3px; line-height: 1.12; margin: 0 0 16px; font-weight: 800; }
.split p { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin: 0 0 18px; }
.split p.eyebrow { font-size: 11px; line-height: 1.55; color: #c4b5fd; margin: 0 0 10px; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 31px; color: #dcdcee; font-size: 14.5px; line-height: 1.55; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(52, 211, 153, .14); border: 1px solid rgba(52, 211, 153, .38); box-sizing: border-box; }
.checks li::after { content: ""; position: absolute; left: 7.5px; top: 5px; width: 5px; height: 9px; border: solid #34d399; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.visual-frame { position: relative; }
.visual-frame::before { content: ""; position: absolute; inset: 10% 8% -4%; background: var(--grad); filter: blur(60px); opacity: .35; z-index: 0; border-radius: 30px; }
.visual-frame > * { position: relative; z-index: 1; }
.visual-frame img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.code-card { border-radius: 18px; border: 1px solid var(--border2); background: #08080f; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.code-card .tabbar { margin: 0; padding: 10px 12px 0; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--border); }
.code-card .tabbar button { border: 0; }
.code-card pre { border: 0; border-radius: 0; background: transparent; padding: 20px 22px; font-size: 13px; min-height: 220px; }

/* Steps */
.steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step-card { position: relative; padding: 26px; border-radius: 18px; background: var(--glass); border: 1px solid var(--border); counter-increment: s; }
.step-card::before { content: counter(s, decimal-leading-zero); display: block; font-size: 13px; font-weight: 800; letter-spacing: 1px; margin-bottom: 14px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step-card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.3px; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid var(--border); }
.plan-card.featured { border-color: transparent; background: linear-gradient(180deg, #16132a, #0f0e1c) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 30px 80px -30px rgba(124, 58, 237, .6); }
.plan-card .chip { position: absolute; top: 18px; right: 18px; }
.plan-card h2, .plan-card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.2px; }
.plan-card .plan-for { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; min-height: 42px; }
.plan-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.plan-amount b { font-size: 46px; letter-spacing: -2px; font-weight: 850; line-height: 1; }
.plan-amount span { color: var(--muted); font-size: 14px; }
.plan-sub { color: var(--faint); font-size: 12.5px; margin: 0 0 22px; }
.plan-card .checks { margin-bottom: 26px; }
.plan-card .checks li { font-size: 13.5px; }
.plan-card .btn { margin-top: auto; }

/* Questions */
.faq-list { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq-list details { border-radius: 14px; background: var(--glass); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.faq-list details[open] { border-color: rgba(167, 139, 250, .35); background: rgba(139, 92, 246, .05); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 650; font-size: 15px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--glass2); color: #c4b5fd; font-size: 18px; font-weight: 500; transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list .answer { padding: 0 20px 18px; color: var(--muted); line-height: 1.7; font-size: 14.5px; }
.faq-list .answer p { margin: 0 0 10px; } .faq-list .answer p:last-child { margin: 0; }
.faq-group { margin: 0 auto 40px; max-width: 860px; }
.faq-group h2 { font-size: 20px; letter-spacing: -.4px; margin: 0 0 14px; scroll-margin-top: 90px; }

/* Call to action */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: 64px 28px; border-radius: 28px; background: linear-gradient(135deg, rgba(124, 58, 237, .35), rgba(79, 70, 229, .22) 50%, rgba(6, 182, 212, .2)); border: 1px solid rgba(196, 181, 253, .3); }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%); mask-image: radial-gradient(ellipse at center, #000, transparent 75%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -1.4px; line-height: 1.1; margin: 0 0 14px; font-weight: 850; }
.cta-band p { color: #d6d7ea; margin: 0 auto 28px; max-width: 560px; font-size: 16px; }

/* Models */
.model-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.model-toolbar .input { max-width: 340px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--border); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 9px; font-weight: 650; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--glass2); color: #fff; box-shadow: inset 0 0 0 1px var(--border2); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.model-card { padding: 20px; border-radius: 16px; background: var(--glass); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color .2s, transform .2s; }
.model-card:hover { border-color: rgba(167, 139, 250, .38); transform: translateY(-2px); }
.model-card.default { border-color: rgba(167, 139, 250, .45); background: rgba(139, 92, 246, .07); }
.model-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.model-card h2, .model-card h3 { margin: 0; font-size: 15.5px; letter-spacing: -.2px; overflow-wrap: anywhere; }
.model-card code { font-size: 11.5px; align-self: flex-start; max-width: 100%; }
.model-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.provider { font-size: 11px; font-weight: 750; letter-spacing: .4px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--border2); color: var(--muted); white-space: nowrap; }
.provider.groq { color: #fdba74; border-color: rgba(253, 186, 116, .35); background: rgba(249, 115, 22, .08); }
.provider.openrouter { color: #93c5fd; border-color: rgba(147, 197, 253, .35); background: rgba(59, 130, 246, .08); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--border2); border-radius: 16px; }

/* Desktop app */
.download-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 22px; border-radius: 18px; background: var(--glass); border: 1px solid var(--border2); margin: 8px 0 0; }
.download-card img { width: 56px; height: 56px; border-radius: 14px; }
.download-card .dl-text { flex: 1; min-width: 200px; }
.download-card b { display: block; font-size: 15.5px; }
.download-card span { color: var(--muted); font-size: 13px; }
.req-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Who it is for: illustrated cards */
.audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.audience-card { display: flex; flex-direction: column; border-radius: 20px; background: var(--glass); border: 1px solid var(--border); overflow: hidden; color: var(--text); transition: transform .2s, border-color .2s; }
.audience-card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, .4); text-decoration: none; color: var(--text); }
.audience-card .art { background: radial-gradient(circle at 50% 60%, rgba(139, 92, 246, .16), transparent 70%), #0d0d19; border-bottom: 1px solid var(--border); }
.audience-card img { display: block; width: 100%; height: auto; aspect-ratio: 13 / 10; object-fit: cover; transition: transform .5s ease; }
.audience-card .art { position: relative; overflow: hidden; }
.audience-card .art::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(7, 7, 13, .55)); pointer-events: none; }
.audience-card:hover img { transform: scale(1.04); }
.audience-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.audience-card h3 { margin: 0; font-size: 16.5px; letter-spacing: -.3px; }
.audience-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.audience-card .more { margin-top: auto; padding-top: 10px; color: var(--brand); font-weight: 650; font-size: 13px; }
.illustration { display: block; width: 100%; height: auto; }

/* On every device: a laptop and a phone with real screenshots */
.devices { position: relative; max-width: 980px; margin: 0 auto; padding: 0 60px 30px 0; }
.devices::before { content: ""; position: absolute; inset: 12% 10% 0; background: var(--grad); filter: blur(70px); opacity: .3; border-radius: 40px; }
.laptop { position: relative; z-index: 1; }
.laptop-screen { border-radius: 16px 16px 0 0; border: 10px solid #1a1a2c; border-bottom-width: 14px; background: #0b0b14; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.laptop-screen img { display: block; width: 100%; height: auto; }
.laptop-base { height: 16px; margin: 0 -6%; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, #2a2a42, #15151f); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 18%; height: 6px; border-radius: 0 0 8px 8px; background: #0f0f18; }
.phone { position: absolute; z-index: 2; right: 0; bottom: 0; width: 24%; min-width: 150px; border-radius: 30px; border: 8px solid #1a1a2c; background: #0b0b14; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px -16px rgba(0, 0, 0, .9); }
.phone img { display: block; width: 100%; height: auto; }

/* What users say */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.testimonial { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid var(--border); margin: 0; }
.testimonial blockquote { margin: 0; color: #dcdcee; font-size: 15px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial figcaption b { display: block; font-size: 14px; }
.testimonial figcaption span { color: var(--muted); font-size: 12.5px; }
.stars { display: inline-flex; gap: 2px; color: #fbbf24; font-size: 16px; letter-spacing: 1px; line-height: 1; }
.stars .off { color: rgba(255, 255, 255, .18); }
.feedback-invite { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 36px; align-items: center; padding: 30px; border-radius: 24px; background: var(--glass); border: 1px solid var(--border2); }
.feedback-invite h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.6px; }
.feedback-invite p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.contact-options { display: grid; gap: 12px; margin-top: 8px; }
.contact-options.row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; }
.contact-option { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, background .2s; }
.contact-option:hover { border-color: rgba(167, 139, 250, .4); background: rgba(139, 92, 246, .06); text-decoration: none; color: var(--text); }
.contact-option .ficon { width: 40px; height: 40px; border-radius: 12px; }
.contact-option .ficon svg { width: 19px; height: 19px; }
.contact-option b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.contact-option span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-card { padding: 30px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--border2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.form-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
textarea.input { resize: vertical; min-height: 140px; line-height: 1.55; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* a field only robots fill in */
.sent { text-align: center; padding: 20px 6px; }
.sent .ficon { margin: 0 auto 16px; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #06b6d4); }
.sent h2 { margin: 0 0 8px; }
.sent p { color: var(--muted); margin: 0 0 18px; }

/* Rating input: five radio buttons shown as stars */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; border: 0; padding: 0; margin: 0; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 32px; line-height: 1; color: rgba(255, 255, 255, .2); cursor: pointer; padding: 2px; border-radius: 6px; transition: color .1s, transform .1s; margin: 0; font-weight: 400; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #fbbf24; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid #a78bfa; outline-offset: 2px; }
.feedback-list { display: grid; gap: 10px; }
.feedback-item { padding: 14px 16px; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); font-size: 13.5px; }
.feedback-item p { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; color: #dcdcee; }
.feedback-item .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; }

/* About */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.value { display: flex; gap: 16px; padding: 22px; border-radius: 18px; background: var(--glass); border: 1px solid var(--border); }
.value h3 { margin: 0 0 6px; font-size: 16px; }
.value p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.partner-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.partner { padding: 22px; border-radius: 18px; background: var(--glass); border: 1px solid var(--border); }
.partner b { display: block; font-size: 18px; letter-spacing: -.3px; margin-bottom: 6px; }
.partner p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* What's new: a timeline */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, #8b5cf6, #06b6d4 60%, rgba(6, 182, 212, 0)); border-radius: 2px; }
.release { position: relative; margin-bottom: 26px; padding: 24px; border-radius: 18px; background: var(--glass); border: 1px solid var(--border); }
.release::before { content: ""; position: absolute; left: -32px; top: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid #8b5cf6; box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
.release.latest { border-color: rgba(167, 139, 250, .4); background: rgba(139, 92, 246, .06); }
.release.latest::before { background: #8b5cf6; }
.release time { display: block; color: #c4b5fd; font-size: 12.5px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 6px; }
.release h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.4px; }
.release ul { margin: 0; padding-left: 20px; color: #d7d8ea; line-height: 1.7; font-size: 14.5px; }
.release li { margin-bottom: 4px; }
.release li::marker { color: #a78bfa; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; margin-right: 6px; vertical-align: 1px; }
.tag.new { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.tag.improved { background: rgba(99, 102, 241, .18); color: #c7d2fe; }
.tag.security { background: rgba(251, 191, 36, .14); color: #fcd34d; }

/* Home: a slider over a background video */
.hero-slider { position: relative; overflow: hidden; min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: center; padding: 70px 0 34px; isolation: isolate; border-bottom: 1px solid var(--border); }
.hero-video, .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 7, 13, .94) 0%, rgba(7, 7, 13, .78) 42%, rgba(7, 7, 13, .38) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 13, 0) 30%),
    radial-gradient(50rem 30rem at 0% 0%, rgba(124, 58, 237, .35), transparent 65%); }
.hero-slides { display: grid; width: 100%; }
.slide { grid-area: 1 / 1; max-width: 720px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s; }
.slide.active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform .7s ease, visibility 0s; }
.slide .slide-title { font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -2.6px; line-height: 1.03; margin: 0 0 20px; font-weight: 850; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.slide .lead { color: #dcdcee; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; margin: 0 0 30px; max-width: 620px; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.slide .hero-actions, .slide .hero-note { justify-content: flex-start; }
.slider-controls { display: flex; align-items: center; gap: 10px; margin-top: 44px; width: 100%; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { position: relative; width: 44px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.slider-dots button::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--grad); border-radius: inherit; }
.slider-dots button[aria-current="true"]::after { width: 100%; }
.hero-slider.playing .slider-dots button[aria-current="true"]::after { width: 0; animation: slideprogress var(--slide-time, 7s) linear forwards; }
@keyframes slideprogress { to { width: 100%; } }
.slider-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(8px); }
.slider-btn:hover { background: rgba(255, 255, 255, .16); }
.slider-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slider-btn .when-paused, .hero-slider.paused .slider-btn .when-playing { display: none; }
.hero-slider.paused .slider-btn .when-paused { display: block; }
.slide-count { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; margin-left: 4px; }

/* Real photos in frames */
.photo { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); object-fit: cover; }

/* What users say: a sliding row of real feedback */
.testimonial-slider { position: relative; }
.testimonial-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; }
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track .testimonial { scroll-snap-align: start; }
.testimonial-nav { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.rate-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; background: linear-gradient(135deg, rgba(124, 58, 237, .18), rgba(6, 182, 212, .08)); border-color: rgba(167, 139, 250, .35); }
.rate-card .stars { font-size: 22px; }
.rate-card div { flex: 1; min-width: 220px; }
.rate-card b { display: block; font-size: 15px; margin-bottom: 2px; }
.rate-card span.muted { font-size: 13px; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-card { display: none; }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .site-header-inner { flex-wrap: wrap; row-gap: 8px; }
  .site-nav { order: 3; width: 100%; margin: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .site-nav a:not(.btn) { white-space: nowrap; }
  .product-grid, .feature-grid, .steps-row, .plan-grid, .req-grid, .contact-grid, .values, .partner-row { grid-template-columns: 1fr; }
  .feedback-invite { grid-template-columns: 1fr; }
  .contact-options.row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonial-track { grid-auto-columns: calc((100% - 16px) / 2); }
  .feedback-invite img { max-width: 280px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .site-footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { border-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
  .hero-body { padding: 26px 0 10px; }
  .auth-hero .features, .auth-hero .auth-links { display: none; }
  .auth-card { padding: 26px 22px; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .actions { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app { display: block; }
  .side { display: none; }
  .mobile-bar { display: block; position: sticky; top: 0; z-index: 10; background: rgba(9, 9, 18, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: 10px 16px; }
  .mobile-bar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .mobile-bar nav { display: flex; gap: 4px; margin-top: 10px; overflow-x: auto; }
  .mobile-bar .nav { width: auto; padding: 8px 11px; font-size: 12px; white-space: nowrap; }
  .mobile-bar .nav svg { display: none; }
  .mobile-bar .nav[aria-current="page"] { box-shadow: none; }
  .main { padding: 20px 16px 36px; }
  .chat { height: calc(100vh - 130px); }
  .metrics { gap: 10px; }
  .card { padding: 16px; }
  .metric-value { font-size: 24px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .site-header { position: static; } /* wrapped onto rows it would hide part of the screen and the heading of every #link */
  .site-header-inner { padding: 12px 16px; }
  .site-cta .btn { padding: 7px 11px; }
  .prose h2, .prose h3, .faq-group h2 { scroll-margin-top: 16px; }
  .page-wrap { padding: 32px 16px 56px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 24px; }
  .hero h1 { letter-spacing: -1.8px; }
  .hero-visual { margin-top: 40px; }
  .stats { gap: 10px; }
  .cta-band { padding: 44px 20px; border-radius: 20px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-grid, .testimonial-grid, .form-row, .contact-options.row { grid-template-columns: 1fr; }
  .contact-grid .photo { display: none; }
  .testimonial-track { grid-auto-columns: 88%; }
  .hero-slider { min-height: 0; padding: 56px 0 28px; }
  .hero-shade { background: linear-gradient(180deg, rgba(7, 7, 13, .72) 0%, rgba(7, 7, 13, .9) 70%, var(--bg) 100%); }
  .slide .slide-title { letter-spacing: -1.6px; }
  .slider-controls { margin-top: 30px; }
  .slider-dots button { width: 30px; }
  .devices { padding-right: 28px; }
  .phone { min-width: 0; width: 30%; border-width: 5px; border-radius: 18px; }
  .form-card { padding: 22px 18px; }
  .timeline { padding-left: 26px; }
  .release::before { left: -24px; }
}
@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .stat { padding: 20px 12px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
