/* ============================================================
   Quantom — landing page
   Dark, minimal, Apple-ish. Inter Tight single-family.
   ============================================================ */

:root {
  --bg:         #07070a;
  --bg-2:       #0c0c10;
  --ink:        #f5f5f7;
  --ink-dim:    #b7b7bf;
  --ink-muted:  #7a7a85;
  --ink-faint:  #45454d;
  --line:       rgba(255, 255, 255, 0.08);
  --line-2:     rgba(255, 255, 255, 0.14);
  --surface:    rgba(255, 255, 255, 0.025);
  --surface-2:  rgba(255, 255, 255, 0.05);
  --accent:     #5ea9ff;         /* ticker blue per spec */
  --accent-2:   #7cc2ff;
  --accent-dim: rgba(94, 169, 255, 0.16);
  --pos:        #4ade80;
  --neg:        #f87171;
  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  22px;
  --easing:     cubic-bezier(.2, .7, .2, 1);
  --font:       "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono:       "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* Reserve the scrollbar gutter so opening a modal (which sets
     body { overflow: hidden }) doesn't shift the page by ~15px. */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.55;
}

button { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-dim); color: var(--ink); }

/* ---------- Ambient FX ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/></svg>");
}
.halo {
  position: fixed; top: -30vh; left: 50%; transform: translateX(-50%);
  width: 90vw; height: 70vh; pointer-events: none; z-index: 0;
  background: radial-gradient(45% 50% at 50% 40%, rgba(255,255,255,0.035), transparent 72%);
  filter: blur(20px);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 16px;
  transform: translate(-50%, 24px);
  z-index: 90;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 24px);
  width: 720px;
  padding: 10px 12px 10px 18px;
  background: rgba(13, 13, 18, 0.92);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 18px 50px -22px rgba(0,0,0,0.95);
  opacity: 0;
  transition: opacity .2s var(--easing), transform .25s var(--easing);
}
.cookie-banner.is-open { opacity: 1; transform: translate(-50%, 0); }
.cookie-banner.is-leaving { opacity: 0; transform: translate(-50%, 12px); }
.cookie-banner-text {
  margin: 0; flex: 1 1 auto;
  font-size: 13px; line-height: 1.5; color: var(--ink-dim);
}
.cookie-banner-text a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.18); text-underline-offset: 2px; }
.cookie-banner-text a:hover { text-decoration-color: var(--ink); }
.cookie-banner-btn {
  flex: 0 0 auto;
  background: var(--ink); color: #0a0a0c; border: 0;
  padding: 8px 14px; border-radius: 10px;
  font-weight: 500; font-size: 13px; cursor: pointer;
  transition: opacity .15s;
}
.cookie-banner-btn:hover { opacity: 0.9; }
.cookie-banner-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 540px) {
  .cookie-banner { flex-direction: column; align-items: stretch; bottom: 8px; }
  .cookie-banner-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity .15s; transform: translate(-50%, 0); }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  background: rgba(7,7,10,0.6);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em; min-width: 0;
}
.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex: none;
}
.brand-logo--nav { height: 29px; max-width: 185px; }
.brand-logo--auth { height: 31px; max-width: 198px; }
.brand-logo--footer { height: 26px; max-width: 166px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.brand-word { font-size: 16px; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 13.5px; color: var(--ink-dim); transition: color .2s var(--easing);
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.link-muted {
  background: transparent; border: 0; cursor: pointer;
  padding: 9px 14px; font-size: 13.5px; color: var(--ink-dim);
  border-radius: 10px; transition: color .2s var(--easing), background .2s var(--easing);
}
.link-muted:hover { color: var(--ink); background: var(--surface); }

.btn-ink {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 13.5px; font-weight: 500;
  background: var(--ink); color: #0a0a0c; border: 0; cursor: pointer;
  border-radius: 10px;
  transition: transform .18s var(--easing), box-shadow .2s var(--easing), background .2s var(--easing);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 0 0 1px rgba(255,255,255,0.12), 0 8px 30px -10px rgba(255,255,255,0.2);
}
.btn-ink:hover { transform: translateY(-1px); }
.btn-ink:active { transform: translateY(0); }
.btn-lg { padding: 13px 20px; font-size: 14.5px; }
.btn-outline {
  padding: 11px 16px; font-size: 13.5px; background: transparent;
  color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
  transition: background .2s var(--easing), border-color .2s var(--easing);
}
.btn-outline:hover { background: var(--surface); border-color: rgba(255,255,255,0.22); }
.btn-full { width: 100%; justify-content: center; }

/* ---------- HERO ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: calc(100vh - 68px);
  padding: 0 24px;
  display: grid; place-items: center;
}
.hero-inner {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-bottom: 10vh;
}

.headline {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 14px;
}
.ital {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-muted);
  letter-spacing: -0.035em;
}

.sub {
  max-width: 420px;
  margin: 0 0 40px;
  font-size: clamp(14.5px, 1.4vw, 16px);
  color: var(--ink-dim);
  line-height: 1.5;
}

/* ---------- COMPOSER ---------- */
.composer {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 14px 16px 12px;
  text-align: left;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 20px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(94,169,255,0.0);
  transition: border-color .25s var(--easing), box-shadow .35s var(--easing);
}
.composer:focus-within {
  border-color: rgba(255,255,255,0.22);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 22px 70px -18px rgba(0,0,0,0.7),
    0 0 0 4px rgba(94,169,255,0.08);
}

.composer-field {
  position: relative;
  padding: 10px 6px 6px;
}
.composer-field textarea,
.composer-highlight {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.composer-field textarea {
  position: relative; z-index: 2;
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  resize: none;
  color: transparent;
  caret-color: var(--ink);
  -webkit-text-fill-color: transparent;
  min-height: 48px;
  max-height: 220px;
}
.composer-highlight {
  position: absolute;
  top: 10px; left: 6px; right: 6px;
  min-height: 48px;
  max-height: 220px;
  overflow: hidden;
  pointer-events: none;
  color: var(--ink);
  z-index: 1;
}
/* IMPORTANT: .tk must share font-family/size/weight with the textarea
   so character widths stay identical and the overlay aligns pixel-perfectly. */
.composer-highlight .tk {
  color: var(--accent-2);
  background: var(--accent-dim);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(94,169,255,0.22);
}
.composer-field textarea::placeholder { color: transparent; }
.composer-placeholder {
  position: absolute;
  top: 10px; left: 6px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.55;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  width: calc(100% - 12px);
  text-overflow: ellipsis;
  transition: opacity .2s var(--easing);
}
.composer-placeholder::after {
  content: "";
  display: inline-block;
  width: 1px; height: 1.05em;
  background: var(--ink-muted);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: caret 1s steps(1) infinite;
}
.composer-field.is-typing .composer-placeholder,
.composer-field.is-filled  .composer-placeholder { opacity: 0; }
@keyframes caret { 50% { opacity: 0; } }

.composer-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 8px 4px 2px;
}
.composer-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- Composer order pills (cpop) ---------- */
.cpop { position: relative; display: inline-block; }
.cpop-btn,
.cpop-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 9px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  transition: color .15s, border-color .15s, background .15s;
}
.cpop-btn:hover,
.cpop-toggle:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface); }
.cpop-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--line-2); background: var(--surface); }
.cpop-btn .cpop-label,
.cpop-toggle .cpop-label { font-weight: 500; }
.cpop-caret { opacity: 0.55; transition: transform .15s var(--easing); }
.cpop-btn[aria-expanded="true"] .cpop-caret { transform: rotate(180deg); opacity: 1; }
.cpop[data-modified="true"] .cpop-btn {
  color: var(--ink);
  border-color: rgba(94,169,255,0.45);
  background: rgba(94,169,255,0.07);
}
.cpop-toggle[aria-pressed="true"] {
  color: var(--ink);
  border-color: rgba(94,169,255,0.45);
  background: rgba(94,169,255,0.07);
}
.cpop-pro {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(94,169,255,0.22), rgba(94,169,255,0.10));
  color: #b3d4ff;
  border: 1px solid rgba(94,169,255,0.35);
}

.cpop-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0;
  z-index: 35;
  min-width: 180px;
  padding: 4px;
  background: #0d0d12;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 18px 50px -22px rgba(0,0,0,0.95), 0 1px 0 rgba(255,255,255,0.04) inset;
  display: flex; flex-direction: column; gap: 1px;
  /* Hidden by default; .is-open animates it in. */
  opacity: 0;
  transform: translateY(6px) scale(0.985);
  transform-origin: bottom left;
  pointer-events: none;
  transition:
    opacity .15s var(--easing),
    transform .18s var(--easing);
}
.cpop-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .cpop-menu { transition: none; transform: none; }
}
.cpop-menu--lev { min-width: 220px; }
.cpop-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.cpop-grid .cpop-opt { justify-content: center; padding: 7px 0; font-family: var(--mono); }
.cpop-sep {
  border: 0; border-top: 1px solid var(--line);
  margin: 4px 0;
}
.cpop-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-dim);
  border-radius: 7px;
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  transition: background .12s, color .12s;
}
.cpop-opt:hover { background: rgba(255,255,255,0.05); color: var(--ink); }
.cpop-opt.is-active { background: rgba(94,169,255,0.10); color: var(--ink); }
.cpop-opt.is-active::before {
  content: '✓'; margin-right: 2px; color: var(--accent-2); font-size: 11px;
}
.cpop-opt--wide {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 9px;
}
.cpop-opt--wide.is-active::before { display: none; }
.cpop-opt[data-pro="true"] { padding-right: 9px; }
.cpop-hint { color: var(--ink-faint); font-size: 11px; margin-left: auto; font-weight: 400; }
.cpop-sub  { color: var(--ink-faint); font-size: 11px; }
.cpop-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.cpop-dot.is-buy  { background: var(--pos); box-shadow: 0 0 0 2px rgba(74,222,128,0.18); }
.cpop-dot.is-sell { background: var(--neg); box-shadow: 0 0 0 2px rgba(248,113,113,0.18); }

/* Custom-leverage inline editor — replaces the menu when activated */
.cpop-custom { padding: 8px 6px 6px; min-width: 220px; }
.cpop-custom-label {
  margin: 0 4px 8px;
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.cpop-custom-row { display: flex; gap: 6px; align-items: stretch; }
.cpop-numinput {
  flex: 1; min-width: 0;
  display: flex; align-items: stretch;
  background: rgba(0,0,0,0.32);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  overflow: hidden;
  transition: border-color .15s var(--easing), box-shadow .15s var(--easing);
}
.cpop-numinput:focus-within {
  border-color: rgba(94,169,255,0.55);
  box-shadow: 0 0 0 3px rgba(94,169,255,0.12);
}
.cpop-numinput input {
  flex: 1; min-width: 0;
  background: transparent; border: 0;
  color: var(--ink);
  font: inherit; font-family: var(--mono); font-size: 13.5px;
  padding: 7px 10px;
  outline: none;
}
.cpop-numinput input::placeholder { color: var(--ink-faint); font-family: var(--font); font-size: 12.5px; }
/* Hide native number spinners */
.cpop-numinput input::-webkit-outer-spin-button,
.cpop-numinput input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cpop-numinput input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.cpop-numinput-spin {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  width: 22px;
}
.cpop-numinput-spin button {
  flex: 1;
  display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-muted);
  padding: 0;
  transition: color .12s, background .12s;
}
.cpop-numinput-spin button + button { border-top: 1px solid var(--line); }
.cpop-numinput-spin button:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.cpop-numinput-spin button:active { background: rgba(255,255,255,0.10); }
.cpop-custom-set {
  padding: 7px 12px; font: inherit; font-size: 12px; font-weight: 500;
  background: var(--ink); color: #0a0a0c;
  border: 0; border-radius: 7px; cursor: pointer;
  transition: opacity .15s var(--easing);
}
.cpop-custom-set:hover { opacity: 0.88; }

.seg {
  display: inline-flex;
  padding: 3px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.seg-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font-size: 12.5px; color: var(--ink-dim);
  background: transparent; border: 0; cursor: pointer;
  border-radius: 8px;
  transition: background .2s var(--easing), color .2s var(--easing);
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 1px 2px rgba(0,0,0,0.4);
}

.ghost-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px;
  font-size: 12.5px; color: var(--ink-dim);
  background: transparent; border: 1px solid var(--line);
  border-radius: 9px; cursor: pointer;
  transition: color .2s var(--easing), border-color .2s var(--easing), background .2s var(--easing);
}
.ghost-btn:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface); }

.send-btn {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  background: var(--ink); color: #0a0a0c;
  border: 0; border-radius: 10px; cursor: pointer;
  transition: transform .15s var(--easing), opacity .2s var(--easing);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 6px 18px -6px rgba(255,255,255,0.25);
}
.send-btn:hover { transform: translateY(-1px); }
.send-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Ticker popover */
.ticker-pop {
  position: absolute;
  bottom: calc(100% + 8px); left: 16px;
  width: 360px; max-width: calc(100% - 32px);
  background: #141418;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6);
  z-index: 5;
  animation: popIn .18s var(--easing);
}
@keyframes popIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ticker-pop input {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 12px;
  font-family: var(--mono); font-size: 13px;
  border-radius: 8px;
  outline: none;
}
.ticker-pop input:focus { border-color: var(--line-2); }
/* Inline-mention mode hides the popover's own search input — the user types
   directly in the main composer and we filter results from there. */
.ticker-pop.inline-mode > input { display: none; }
.ticker-pop.inline-mode .ticker-results { margin-top: 0; }
.ticker-results {
  margin-top: 6px;
  max-height: 240px;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.ticker-results::-webkit-scrollbar { width: 6px; }
.ticker-results::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.ticker-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-dim);
  border-radius: 8px; text-align: left;
  transition: background .15s var(--easing), color .15s var(--easing);
}
.ticker-row:hover, .ticker-row.is-active {
  background: var(--surface-2); color: var(--ink);
}
.ticker-row .tr-logo,
.sym-suggest-row .ssr-logo {
  position: relative;
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  overflow: hidden;
  flex: none;
}
.ticker-row .tr-logo img,
.sym-suggest-row .ssr-logo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ticker-row .tr-logo-fb,
.sym-suggest-row .ssr-logo-fb {
  display: none;
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  color: var(--ink-dim);
  place-items: center;
}
.ticker-row .tr-sym {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  color: var(--accent-2);
  min-width: 68px;
}
.ticker-row .tr-desc {
  flex: 1; font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ticker-row .tr-meta {
  font-size: 10.5px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px;
  flex: none;
}
.ticker-empty {
  padding: 14px 10px; font-size: 12.5px; color: var(--ink-muted); text-align: center;
}

/* ---------- Shared ticker autocomplete (Q.attachTickerSearch) ---------- */
.sym-suggest {
  position: absolute;
  left: 0; right: 0;
  z-index: 30;
  margin-top: 6px;
  max-height: 280px;
  overflow-y: auto;
  background: #0d0d12;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 18px 50px -22px rgba(0,0,0,0.95), 0 1px 0 rgba(255,255,255,0.04) inset;
  padding: 4px;
}
.sym-suggest[data-placement="below"] { top: 100%; }
.sym-suggest[data-placement="above"] { bottom: 100%; margin-top: 0; margin-bottom: 6px; top: auto; }
.sym-suggest::-webkit-scrollbar { width: 6px; }
.sym-suggest::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.sym-suggest-row {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: transparent; border: 0;
  color: var(--ink); cursor: pointer; text-align: left;
  border-radius: 7px;
  font: inherit;
}
.sym-suggest-row:hover,
.sym-suggest-row.is-active { background: rgba(255,255,255,0.05); }
.sym-suggest-row .ssr-sym {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  color: var(--accent-2);
  min-width: 70px;
}
.sym-suggest-row .ssr-desc {
  flex: 1; font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink-dim);
}
.sym-suggest-row .ssr-meta {
  font-size: 10.5px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px;
  flex: none;
}
.sym-suggest-empty {
  padding: 12px 10px; font-size: 12.5px; color: var(--ink-muted); text-align: center;
}

/* ---------- Subtle portfolio CTA ---------- */
.portfolio-subtle {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-dim);
  font-size: 13px; font-family: inherit;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity .2s var(--easing), color .2s var(--easing), border-color .2s var(--easing);
}
.portfolio-subtle:hover {
  opacity: 1;
  color: var(--ink);
  border-color: var(--line-2);
}

/* ---------- SECTIONS ---------- */
.section {
  position: relative; z-index: 2;
  padding: 96px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.section-head { margin-bottom: 48px; }
.kicker {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 10px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 44px);
  letter-spacing: -0.028em; line-height: 1.08;
  font-weight: 500; max-width: 22ch;
}

/* How it works */
.steps {
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
.step {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s var(--easing), background .25s var(--easing), transform .25s var(--easing);
}
.step:hover {
  border-color: var(--line-2); background: var(--surface-2);
  transform: translateY(-2px);
}
.step-n {
  display: inline-block;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  padding-bottom: 18px;
}
.step h3 {
  margin: 0 0 10px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.step p { margin: 0; color: var(--ink-dim); font-size: 14.5px; line-height: 1.55; }

/* Samples */
.sample-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.sample {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s var(--easing), transform .25s var(--easing);
}
.sample:hover { border-color: var(--line-2); transform: translateY(-2px); }
.sample-q {
  display: flex; gap: 10px; align-items: flex-start;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line);
  color: var(--ink-dim); font-size: 14px;
}
.q-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-muted);
  margin-top: 8px; flex: none;
}
.sample-q p { margin: 0; }
.sample-a p { margin: 0 0 10px; font-size: 14.5px; }
.sample-a b { color: var(--ink); font-weight: 500; }
.sample-a ol, .sample-a ul {
  margin: 4px 0 0; padding-left: 18px;
  color: var(--ink-dim); font-size: 13.5px;
  display: flex; flex-direction: column; gap: 6px;
}
.sample-a ol { padding-left: 22px; }
.ticks { list-style: none; padding-left: 0 !important; }
.ticks li {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.ticks li:last-child { border-bottom: 0; }
.ticks li span:first-child { color: var(--ink-muted); }
.ticks li span:last-child  { color: var(--ink); }

.chip-t {
  display: inline-flex;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 1px 6px; border-radius: 6px;
  color: var(--accent-2);
  background: var(--accent-dim);
  border: 1px solid rgba(94,169,255,0.28);
}

/* Coverage */
.coverage {
  display: grid; gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cov {
  background: var(--bg);
  padding: 28px 24px;
  transition: background .25s var(--easing);
}
.cov:hover { background: var(--bg-2); }
.cov-i {
  display: inline-block; font-size: 20px; color: var(--ink-dim); margin-bottom: 14px;
}
.cov h4 { margin: 0 0 6px; font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; }
.cov p  { margin: 0; font-size: 13.5px; color: var(--ink-muted); }

/* Pitch */
.pitch {
  padding: 120px 24px;
  text-align: center;
}
.pitch-inner { max-width: 780px; margin: 0 auto; }
.pitch-head {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em; line-height: 1.05;
  font-weight: 500;
}
.pitch-sub {
  margin: 0 auto 32px; max-width: 560px;
  font-size: 16px; color: var(--ink-dim);
}

/* Pricing */
.tiers {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
/* Two-tier layout (Pro + Desk) — centered, narrower than the 3-up grid. */
.tiers--two {
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
}
.tier {
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: border-color .25s var(--easing);
}
.tier:hover { border-color: var(--line-2); }
.tier.is-featured {
  background: linear-gradient(180deg, rgba(94,169,255,0.06), rgba(255,255,255,0.02));
  border-color: rgba(94,169,255,0.25);
}
.tier-tag {
  position: absolute; top: -10px; left: 24px;
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px;
  background: var(--accent-2); color: #08131f;
}
.tier header h3 { margin: 0 0 8px; font-size: 15px; font-weight: 500; color: var(--ink-dim); }
.tier .price {
  margin: 0; display: inline-flex; align-items: baseline; gap: 4px;
}
.tier .price span { font-size: 36px; letter-spacing: -0.03em; color: var(--ink); font-weight: 500; }
.tier .price em   { font-style: normal; font-size: 13px; color: var(--ink-muted); }
.tier ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-dim); }
.tier ul li { position: relative; padding-left: 18px; }
.tier ul li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 10px; height: 6px;
  border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg); opacity: 0.8;
}
.tier button { margin-top: auto; }

/* ---------- FOOTER ---------- */
.foot {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: 48px 24px 56px;
}
.foot-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.foot-disc  { margin: 0; max-width: 640px; font-size: 12.5px; color: var(--ink-muted); line-height: 1.55; }
.foot-copy  { margin: 0; font-size: 12px; color: var(--ink-faint); }

/* ---------- MODAL ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn .18s var(--easing);
}
.modal[hidden] { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,5,8,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-card {
  position: relative;
  width: 100%; max-width: 400px;
  padding: 32px 28px 24px;
  background: #0f0f14;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
  animation: slideIn .24s var(--easing);
}
@keyframes slideIn { from { transform: translateY(14px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.02); border: 1px solid transparent; cursor: pointer;
  color: var(--ink-muted); border-radius: 10px;
  transition: color .15s, background .15s, border-color .15s;
  z-index: 2;
}
.modal-x:hover { color: var(--ink); background: rgba(255,255,255,0.05); border-color: var(--line-2); }

/* ---------- AUTH CARD (split layout) ---------- */
.auth-card {
  max-width: 880px;
  padding: 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
  background: linear-gradient(180deg, #0f0f14 0%, #0b0b10 100%);
}

.auth-aside {
  position: relative;
  overflow: hidden;
  padding: 38px 34px 32px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(94,169,255,0.08), transparent 55%),
    radial-gradient(120% 90% at 0% 100%, rgba(140,100,255,0.06), transparent 60%),
    linear-gradient(180deg, #0c0c11 0%, #09090d 100%);
  border-right: 1px solid var(--line-2);
}
.auth-aside-halo {
  position: absolute; inset: -30% -30% auto auto;
  width: 360px; height: 360px;
  background: radial-gradient(closest-side, rgba(94,169,255,0.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.auth-aside-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(120% 100% at 0% 100%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(120% 100% at 0% 100%, #000 0%, transparent 70%);
  pointer-events: none;
}
.auth-aside-inner {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column; gap: 22px;
}
.auth-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 600; letter-spacing: -0.01em;
}
.auth-brand .brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--accent);
}
.auth-aside-head {
  margin: 6px 0 0; font-size: 30px; line-height: 1.08;
  font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
}
.auth-aside-head .ital { font-style: italic; font-weight: 300; color: var(--ink-dim); }
.auth-aside-list {
  list-style: none; margin: 4px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.auth-aside-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-dim); line-height: 1.4;
}
.auth-aside-list li svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  padding: 4px;
  border-radius: 6px;
  background: rgba(94,169,255,0.1);
  color: var(--accent);
}
.auth-aside-foot {
  margin: auto 0 0; font-size: 12px; line-height: 1.5;
  color: var(--ink-muted);
}

.auth-main {
  padding: 44px 44px 30px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.auth-head { margin-bottom: 22px; }
.auth-eyebrow {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.auth-card h3 {
  margin: 0 0 6px;
  font-size: 26px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink);
}
.auth-card .modal-sub {
  margin: 0; font-size: 14px; line-height: 1.5;
  color: var(--ink-dim);
}

/* SSO block */
.auth-sso { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.auth-sso-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: 14px; font-weight: 500;
  color: #0a0a0c;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 11px;
  cursor: pointer;
  transition: transform .15s var(--easing), box-shadow .2s var(--easing), background .2s var(--easing);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 6px 20px -8px rgba(0,0,0,0.45);
}
.auth-sso-btn:hover { transform: translateY(-1px); background: #f6f6f8; }
.auth-sso-btn:active { transform: translateY(0); }
.auth-sso-btn[disabled] { opacity: .7; cursor: wait; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line-2);
}
.auth-divider span { white-space: nowrap; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field[hidden] { display: none; }
.auth-field > span {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em; color: var(--ink-dim);
}
.auth-field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.auth-field-hint { color: var(--ink-muted); font-weight: 400; letter-spacing: 0; font-size: 12px; }
.auth-input-wrap {
  position: relative;
  display: flex; align-items: center;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  transition: border-color .15s var(--easing), background .15s var(--easing), box-shadow .2s var(--easing);
}
.auth-input-wrap:hover { border-color: rgba(255,255,255,0.14); }
.auth-input-wrap:focus-within {
  border-color: rgba(94,169,255,0.55);
  background: rgba(0,0,0,0.45);
  box-shadow: 0 0 0 4px rgba(94,169,255,0.08);
}
.auth-input-ico {
  flex-shrink: 0;
  margin-left: 13px;
  color: var(--ink-muted);
  transition: color .15s var(--easing);
}
.auth-input-wrap:focus-within .auth-input-ico { color: var(--accent); }
.auth-input-wrap input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: var(--ink);
  padding: 14px 14px;
  font: inherit;
  font-size: 14.5px;
  caret-color: var(--accent);
}
.auth-input-wrap input::placeholder { color: var(--ink-muted); }
/* Defeat Chrome / Safari / Edge autofill yellow-or-white fill; match our surface. */
.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill:hover,
.auth-input-wrap input:-webkit-autofill:focus,
.auth-input-wrap input:-webkit-autofill:active {
  -webkit-background-clip: text;
  -webkit-box-shadow: 0 0 0 1000px rgba(0,0,0,0.35) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--accent);
  transition: background-color 5000s ease-in-out 0s;
  border-radius: 11px;
}
/* Firefox auto-filled styling */
.auth-input-wrap input:autofill {
  background: rgba(0,0,0,0.35) !important;
  color: var(--ink) !important;
}
.auth-pw-toggle {
  flex-shrink: 0;
  margin-right: 6px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-muted); border-radius: 7px;
  transition: color .15s, background .15s;
}
.auth-pw-toggle:hover { color: var(--ink); background: rgba(255,255,255,0.04); }

.auth-error {
  margin: 2px 0 0; padding: 11px 14px;
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 13.5px; line-height: 1.45;
  color: #ffc6c6;
  background: rgba(255, 86, 86, 0.1);
  border: 1px solid rgba(255, 86, 86, 0.28);
  border-radius: 9px;
}
.auth-error[hidden] { display: none !important; }
.auth-info {
  margin: 2px 0 0; padding: 11px 14px;
  font-size: 13px; line-height: 1.45;
  color: #b6e9c4;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.22);
  border-radius: 9px;
}
.auth-info[hidden] { display: none !important; }

/* Landing-page demo chat bubbles */
.landing-demo-out {
  max-width: 760px;
  margin: 14px auto 32px;
  padding: 0 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.landing-demo-bubble {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  border: 1px solid var(--line, #1f1f24);
}
.landing-demo-user {
  align-self: flex-end;
  background: rgba(94,169,255,0.08);
  border-color: rgba(94,169,255,0.22);
  color: var(--ink, #e6e6ea);
  max-width: 78%;
}
.landing-demo-assistant {
  align-self: flex-start;
  background: var(--panel, #0e0e12);
  color: var(--ink, #e6e6ea);
  max-width: 88%;
}
.landing-demo-assistant.landing-demo-error { color: #ffb2b2; }
.landing-demo-cta {
  align-self: stretch;
  text-align: center;
  background: rgba(94,169,255,0.06);
  border-color: rgba(94,169,255,0.32);
  color: var(--accent, #5ea9ff);
  font-weight: 500;
}
.auth-forgot {
  margin: -4px 0 4px;
  text-align: right;
  font-size: 12px;
}
.auth-forgot a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,0.18); }
.auth-forgot a:hover { color: var(--ink); }
.auth-forgot[data-mode="signin"] { display: block; }
body[data-auth-mode="register"] .auth-forgot { display: none; }
.auth-submit {
  margin-top: 6px; padding: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 500;
}
.auth-submit[disabled] { opacity: .6; cursor: wait; }
.auth-submit svg { transition: transform .2s var(--easing); }
.auth-submit:hover:not([disabled]) svg { transform: translateX(2px); }

.auth-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  padding: 2px 2px 0;
}
.auth-check input[type="checkbox"] {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.auth-check-text {
  font-size: 12.5px; color: var(--ink-dim); line-height: 1.5;
}
.auth-check-text a {
  color: var(--ink); text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255,255,255,0.22);
}
.auth-check-text a:hover { color: var(--accent); text-decoration-color: var(--accent); }

.auth-legal {
  margin: 14px 0 0; font-size: 12.5px; line-height: 1.5;
  color: var(--ink-muted); text-align: center;
}
.auth-legal a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 2px; }
.auth-legal a:hover { color: var(--ink); }

.modal-fine {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 13.5px; color: var(--ink-dim); text-align: center;
}
.modal-fine a {
  color: var(--ink); text-decoration: none; font-weight: 500;
  margin-left: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  transition: color .15s, border-color .15s;
}
.modal-fine a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 760px) {
  .auth-card { grid-template-columns: 1fr; max-width: 460px; }
  .auth-aside { display: none; }
  .auth-main { padding: 34px 24px 24px; }
  .auth-card h3 { font-size: 22px; }
  .auth-sso-btn { padding: 11px 12px; font-size: 13.5px; }
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 60;
  padding: 10px 16px;
  background: #131318; border: 1px solid var(--line-2);
  color: var(--ink); font-size: 13px;
  border-radius: 10px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  animation: toastIn .2s var(--easing);
}
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .steps, .sample-grid, .tiers { grid-template-columns: 1fr; }
  .coverage { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 56px; }
  .section { padding: 72px 20px; }
  .pitch { padding: 80px 20px; }
}
@media (max-width: 520px) {
  .nav { padding: 14px 18px; }
  .nav-actions .link-muted { display: none; }
  .composer-bar { flex-wrap: wrap; }
  .coverage { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
