@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #0b0b0c;
  --panel: #161617;
  --panel-2: #1e1e20;
  --panel-3: #2a2a2d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ffffff;
  --text-2: #b4b4ba;
  --text-3: #7c7c84;
  --primary: #0f8f6c;
  --primary-hover: #12a37c;
  --violet: #2dd4bf;
  --pink: #38bdf8;
  --blue: #0d9488;
  --radius: 12px;
  --radius-lg: 20px;
  --sidebar-w: 264px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { font: 500 11px var(--font); color: var(--text-3); margin-left: auto; }
.spacer { flex: 1; }
.muted { color: var(--text-3); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 8px; }

/* ---------- Layout ---------- */
.app { display: flex; height: 100vh; padding: 8px; gap: 8px; }
.sidebar {
  width: var(--sidebar-w);
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 14px 10px 10px;
  transition: margin-left .3s cubic-bezier(.2, .8, .2, 1), opacity .2s;
}
.app.collapsed .sidebar { margin-left: calc(-1 * var(--sidebar-w) - 8px); opacity: 0; pointer-events: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
/* ---------- Sidebar ---------- */
.sb-top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 14px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark, .hero-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: conic-gradient(from 200deg, var(--blue), var(--violet), var(--pink), var(--blue));
  box-shadow: inset 0 0 0 5px rgba(0,0,0,.28);
}
.brand-name { font: 600 19px var(--display); letter-spacing: -.01em; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--text-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--panel-3); color: var(--text); }

.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 36px; padding: 0 10px; border-radius: 10px;
  font-weight: 500; color: var(--text-2); text-align: left;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: var(--panel-3); color: var(--text); }
.nav-primary { color: var(--text); margin-bottom: 6px; }
.tag { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: rgba(16,185,129,.18); color: #7ee8cf; }

.sb-scroll { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
.sb-section { margin-top: 12px; }
.sb-label { margin: 0; padding: 8px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.sb-head-row { display: flex; align-items: center; gap: 8px; }
.sb-toggle { display: flex; align-items: center; gap: 4px; }
.sb-toggle svg { width: 13px; height: 13px; transition: transform .2s; }
.sb-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.sb-search { flex: 1; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--text-3); }
.sb-search svg { width: 14px; height: 14px; }
.sb-search input { width: 100%; background: none; border: 0; outline: 0; color: var(--text); font: 12.5px var(--font); }
.recent { list-style: none; margin: 0; padding: 0; }
.recent.hidden { display: none; }
.recent li.empty { padding: 4px 10px; font-size: 13px; }
.recent a { display: block; padding: 7px 10px; border-radius: 9px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent a:hover { background: var(--panel-2); color: var(--text); }

.sb-bottom { padding-top: 10px; }
.upsell { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.upsell-title { margin: 0 0 6px; font-weight: 600; }
.upsell-text { margin: 0 0 12px; font-size: 12px; color: var(--text-2); line-height: 1.45; }
.account { display: flex; align-items: center; gap: 9px; padding: 12px 6px 2px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--panel-3); }
.account-meta { display: flex; flex-direction: column; line-height: 1.25; font-weight: 500; margin-right: auto; }
.balance { font-size: 11.5px; color: var(--text-3); font-weight: 400; }
.legal { font-size: 11px; color: var(--text-3); }
.legal:hover { color: var(--text-2); }

/* Dismissible upsell */
.upsell { position: relative; transition: opacity .2s, transform .2s; }
.upsell.leaving { opacity: 0; transform: translateY(6px) scale(.97); }
.upsell-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--text-3); transition: background .15s, color .15s; }
.upsell-x:hover { background: var(--panel-3); color: var(--text); }
.upsell-x svg { width: 14px; height: 14px; }


/* Profile button + menu */
.sb-bottom { position: relative; }
.account { position: relative; gap: 8px; padding: 10px 0 0; }
.acct-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: 14px; text-align: left; transition: background .15s; }
.acct-btn:hover, .menu-open .acct-btn { background: var(--panel-2); }
.acct-btn .avatar { flex: none; width: 34px; height: 34px; color: #fff; background: var(--blue); }
.acct-btn .account-meta { min-width: 0; margin-right: auto; }
.acct-btn .balance { color: #7ee8cf; }
.acct-btn > svg { width: 15px; height: 15px; color: var(--text-3); transition: transform .2s; }
.menu-open .acct-btn > svg { transform: rotate(180deg); }
.acct-signin { flex: none; height: 34px; padding: 0 12px; border-radius: 99px; font-size: 13px; }
.acct-menu { position: absolute; left: 0; right: 0; bottom: 100%; z-index: 30; margin-bottom: 8px; padding: 6px; border-radius: 16px; background: rgba(30,30,32,.94); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 60px -18px rgba(0,0,0,.8), 0 0 40px -20px rgba(16,185,129,.6); transform-origin: bottom center; animation: am-in .18s cubic-bezier(.2,.8,.2,1); }
.acct-menu[hidden] { display: none; }
@keyframes am-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.am-item { position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; color: var(--text-2); cursor: pointer; outline: 0; transition: background .12s, color .12s; }
.am-item:hover, .am-item:focus-visible { background: rgba(255,255,255,.06); color: var(--text); }
.am-item svg { width: 16px; height: 16px; }
.am-item span { flex: 1; }
.am-item em { font-style: normal; font-size: 12px; font-weight: 600; }
.am-val { color: #9ff0c6; }
.am-tag { padding: 2px 8px; border-radius: 99px; color: #c6f6e9; background: rgba(16,185,129,.2); border: 1px solid rgba(45,212,191,.35); }
.am-soon { color: var(--text-3); font-weight: 500 !important; }
.am-sync input { position: absolute; opacity: 0; pointer-events: none; }
.am-switch { position: relative; flex: none; width: 34px; height: 20px; border-radius: 99px; background: var(--panel-3); transition: background .2s; }
.am-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.am-sync input:checked + .am-switch { background: linear-gradient(90deg, #0f8f6c, #2dd4bf); box-shadow: 0 0 12px rgba(45,212,191,.6); }
.am-sync input:checked + .am-switch::after { transform: translateX(14px); }
.am-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.am-legal { display: flex; gap: 6px; padding: 6px 10px 2px; font-size: 11px; color: var(--text-3); }
.am-legal a:hover { color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 500; transition: background .15s, transform .15s; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { color: var(--text); margin-top: 6px; }
.btn-ghost:hover { background: var(--panel-3); }
.btn-soft { background: var(--panel-2); }
.btn-soft:hover { background: var(--panel-3); }
/* ---------- Topbar ---------- */
.topbar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; position: absolute; inset: 0 8px auto 0; z-index: 5; background: linear-gradient(var(--bg) 60%, transparent); }
#openSidebar { display: none; }
.app.collapsed #openSidebar { display: grid; }
.pill-toggle { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 500; transition: all .15s; }
.pill-toggle:hover { color: var(--text); border-color: var(--line-2); }
.pill-toggle[aria-pressed="true"] { color: #fff; background: rgba(16,185,129,.2); border-color: rgba(45,212,191,.6); }

/* ---------- Scroll area + hero ---------- */
.scroller { flex: 1; overflow-y: auto; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
.hero { position: relative; overflow-x: clip; min-height: calc(100vh - 16px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 24px 72px; }
.hero:has(.lp-hero) { padding: 56px 24px 32px; }
/* Guest hero: one centred column. Pitch, a composer that leads to sign-up, then real prices. */
.lp-hero { position: relative; z-index: 1; width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lp-hero .save-pill { margin-bottom: 24px; }
/* Two provider tiles. On each step the left logo leaves upward and the right one downward, and the next pair comes in from the opposite side. */
.lp-pair { display: flex; justify-content: center; gap: 10px; margin: 0 0 20px; }
.lp-pl { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; overflow: hidden; background: #141416; border: 1px solid rgba(255,255,255,.07); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.lp-pl img { width: 26px; height: 26px; object-fit: contain; }
.lp-h1 { margin: 0; font: 600 clamp(30px, 3.7vw, 46px)/1.12 var(--display); letter-spacing: -.03em; }
.lp-h1b { color: var(--text-2); white-space: nowrap; }
.lp-all { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--text-3); font-size: 13px; transition: color .15s; }
.lp-all:hover { color: var(--text); }
.lp-all svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.lp-all:hover svg { transform: translateX(2px); }
/* Rotating text: every item sits in the same grid cell, so the box keeps the widest item's size and nothing jumps. */
.lp-rot { display: inline-block; transition: opacity .3s ease, transform .3s ease; }
/* hero.js sizes this box to the longest phrase; right-aligned so the word always ends at the full stop. */
.lp-h1 .lp-rot { white-space: nowrap; text-align: right; }
.lp-rot.is-out { opacity: 0; transform: translateY(-.15em); }
.lp-sub { max-width: 600px; margin: 16px 0 30px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
/* Composer: looks like the chat box, but sending goes to sign-up. */
.lp-ask { width: 100%; text-align: left; padding: 14px 12px 10px 18px; border-radius: 22px; border: 1px solid transparent;
  background-image: linear-gradient(#121213, #121213), var(--ring); background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 0 0 4px rgba(var(--glow),.06), 0 20px 60px rgba(0,0,0,.45); transition: box-shadow .25s; }
.lp-ask:focus-within { box-shadow: 0 0 0 4px rgba(var(--glow),.14), 0 20px 60px rgba(0,0,0,.5); }
.lp-ask textarea { width: 100%; min-height: 28px; resize: none; background: none; border: 0; outline: 0; color: var(--text); font: 16px/1.5 var(--font); padding: 2px 0 10px; }
.lp-ask textarea::placeholder { color: var(--text-3); transition: color .3s; }
.lp-ask-row { display: flex; align-items: center; gap: 12px; }
.lp-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 99px; background: rgba(255,255,255,.04); color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; }
.lp-chip img { width: 18px; height: 18px; padding: 2px; border-radius: 6px; object-fit: contain; background: #141416; box-shadow: 0 0 0 2px #1b1b1d; }
.lp-chip img + img { margin-left: -9px; }
/* The composer's send button: bigger than the chips around it, lit from inside, and brighter once there's a message to send. */
.lp-ask-go { margin-left: auto; height: 40px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 24px -10px rgba(var(--glow),.6); transition: box-shadow .25s, transform .15s, filter .2s; }
.lp-ask-go:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 30px -10px rgba(var(--glow),.8); }
.lp-ask-go:active { transform: translateY(0); }
.lp-ask.is-ready .lp-ask-go { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 4px rgba(var(--glow),.16), 0 12px 30px -10px rgba(var(--glow),.85); }
.lp-hero .lp-tools { margin-top: 20px; }
/* Price strip: plain columns split by hairlines, no card per model. */
.lp-prices { width: 100%; margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); }
.lp-pt { margin: 0 0 14px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.lp-pt span { color: var(--text-3); font-weight: 400; }
.lp-pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-price { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 8px; border-left: 1px solid rgba(255,255,255,.06); }
.lp-price:first-child { border-left: 0; }
.lp-pn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; transition: color .15s; }
.lp-pn img { width: 14px; height: 14px; }
.lp-price:hover .lp-pn { color: var(--text); }
.lp-pp { display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-pp del { font-size: 12px; color: var(--text-3); }
.lp-pp b { font-size: 17px; font-weight: 600; color: var(--text); }
.lp-ps { font-size: 11.5px; font-weight: 600; color: rgb(var(--s1)); }
/* Variant pill: sits where the saving would, so every column keeps two rows. Palette gradient on the text and the hairline. */
.lp-pv { align-self: center; padding: 1px 7px; border-radius: 99px; border: 1px solid transparent; font-size: 10.5px; font-weight: 600; line-height: 1.5;
  background: linear-gradient(#141416, #141416) padding-box, var(--ring) border-box; }
.lp-down { display: inline-flex; align-items: center; gap: 6px; margin-top: 34px; color: var(--text-3); font-size: 13px; transition: color .15s; }
.lp-down:hover { color: var(--text); }
.lp-down svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  .lp-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .lp-price:nth-child(3) { border-left: 0; }
  .lp-ask-row { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .lp-rot { transition: none; } }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-mark { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 22px; box-shadow: inset 0 0 0 10px rgba(0,0,0,.28), 0 10px 40px rgba(16,185,129,.35); animation: float 6s ease-in-out infinite; }
.hero-title { margin: 0; font: 500 clamp(28px, 3.4vw, 40px)/1.15 var(--display); letter-spacing: -.02em; }
.hero-sub { margin: 12px 0 28px; color: var(--text-2); font-size: 15px; }

/* Aura: soft blurred colour blobs + dot grid, like Lumo */
.aura { position: absolute; left: 50%; top: 46%; width: min(980px, 100%); height: 520px; transform: translate(-50%, -50%); pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; }
.b1 { width: 380px; height: 300px; left: 8%; top: 22%; background: radial-gradient(circle, #065f46 0%, transparent 70%); animation: drift1 16s ease-in-out infinite; }
.b2 { width: 420px; height: 320px; right: 6%; top: 14%; background: radial-gradient(circle, #0ea5a4 0%, transparent 70%); animation: drift2 18s ease-in-out infinite; }
.b3 { width: 360px; height: 260px; left: 34%; top: 40%; background: radial-gradient(circle, #0f8f6c 0%, transparent 70%); opacity: .4; animation: drift3 20s ease-in-out infinite; }
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.2px); background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, transparent 75%); opacity: .5; }
.hero.chatting .aura { opacity: .35; transition: opacity .6s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px,30px) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-70px,40px) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-40px) scale(.92); } }
@media (prefers-reduced-motion: reduce) { .blob, .hero-mark { animation: none; } }
/* ---------- Composer (Lumo gradient ring) ---------- */
.composer {
  position: relative; width: 100%; text-align: left;
  background: #121213; border-radius: 22px; padding: 14px 14px 10px 18px;
  border: 1px solid transparent;
  background-image: linear-gradient(#121213, #121213), linear-gradient(120deg, rgba(13,148,136,.7), rgba(45,212,191,.9), rgba(56,189,248,.7));
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 0 0 4px rgba(16,185,129,.08), 0 20px 60px rgba(0,0,0,.45);
  transition: box-shadow .25s;
}
.composer:focus-within { box-shadow: 0 0 0 4px rgba(16,185,129,.18), 0 20px 60px rgba(0,0,0,.5); }
.composer textarea { width: 100%; min-height: 28px; max-height: 220px; resize: none; background: none; border: 0; outline: 0; color: var(--text); font: 16px/1.5 var(--font); padding: 2px 0 10px; }
.composer textarea::placeholder { color: var(--text-3); }
.composer-row { display: flex; align-items: center; gap: 4px; }
.c-btn { height: 32px; min-width: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 99px; color: var(--text-2); font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.c-btn:hover { background: var(--panel-2); color: var(--text); }
.c-chip { padding: 0 10px; }
.c-chip svg { width: 16px; height: 16px; }
.c-chip[aria-pressed="true"] { background: rgba(16,185,129,.18); color: #b5f2e2; }
.c-model { padding: 0 10px; color: var(--text); }
.c-model svg { width: 14px; height: 14px; }
.c-add { position: relative; }
.c-plus svg { transition: transform .2s; }
.c-plus.on { background: rgba(16,185,129,.18); color: #b5f2e2; }
.c-plus.on svg { transform: rotate(45deg); }
.add-menu { position: absolute; left: -6px; bottom: calc(100% + 10px); z-index: 30; width: 300px; padding: 8px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 4px rgba(16,185,129,.06); transform-origin: bottom left; animation: addPop .16s ease; }
.add-menu[hidden] { display: none; }
@keyframes addPop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.add-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-align: left; transition: border-color .15s, background .15s; }
.add-item > svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(16,185,129,.16); color: #7ee8cf; }
.add-item span { display: flex; flex-direction: column; min-width: 0; }
.add-item b { font-size: 14px; font-weight: 600; }
.add-item small { font-size: 12px; color: var(--text-3); }
.add-item:hover, .add-item:focus-visible { outline: 0; border-color: rgba(45,212,191,.6); background: linear-gradient(120deg, rgba(13,148,136,.14), rgba(45,212,191,.18), rgba(56,189,248,.12)), var(--panel-2); }
.add-note { margin: 4px 4px 2px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); line-height: 1.4; }
.add-note a { color: #7ee8cf; }
.add-note a:hover { text-decoration: underline; }
.c-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.c-files[hidden] { display: none; }
.c-file { position: relative; display: flex; align-items: center; gap: 10px; max-width: 220px; padding: 6px 30px 6px 6px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); animation: rise .2s ease; }
.c-file img, .c-file-ico { width: 36px; height: 36px; flex: none; border-radius: 8px; }
.c-file img { object-fit: cover; }
.c-file-ico { display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.c-file-txt { display: flex; flex-direction: column; min-width: 0; }
.c-file-txt b { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-file-txt small { font-size: 11px; color: var(--text-3); }
.c-file button { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); transition: background .15s, color .15s; }
.c-file button:hover { background: var(--panel-3); color: var(--text); }
.c-file button svg { width: 12px; height: 12px; stroke-width: 2.2; }
.composer.drop { box-shadow: 0 0 0 4px rgba(16,185,129,.35), 0 20px 60px rgba(0,0,0,.5); }
.composer.drop::after { content: "Drop files to attach"; position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: rgba(18,18,19,.88); color: #b5f2e2; font-weight: 500; pointer-events: none; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.msg-files img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.msg-files span { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; padding: 6px 10px 6px 6px; border-radius: 10px; background: var(--panel-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-files span b { padding: 4px 6px; border-radius: 6px; font-size: 10px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; padding: 10px 16px; border-radius: 12px; background: var(--panel-3); border: 1px solid var(--line-2); font-weight: 500; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.m-dot { width: 9px; height: 9px; border-radius: 50%; background: conic-gradient(var(--blue), var(--violet), var(--pink), var(--blue)); }
.send { width: 34px; height: 34px; margin-left: 4px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; transition: background .15s, opacity .15s, transform .15s; }
.send:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); }
.send:disabled { opacity: .35; cursor: default; }

.model-picker { position: relative; }
.m-logo { display: inline-grid; place-items: center; width: 16px; height: 16px; }
.m-logo img { width: 16px; height: 16px; }

/* ---------- Model panel ---------- */
.mp-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); animation: fade .15s ease; }
.mp {
  position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 24px)); height: min(780px, calc(100vh - 24px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #121213; border-radius: 22px; border: 1px solid transparent;
  background-image: linear-gradient(#121213, #121213), linear-gradient(140deg, rgba(13,148,136,.6), rgba(45,212,191,.8), rgba(56,189,248,.6));
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 30px 90px rgba(0,0,0,.7), 0 0 0 4px rgba(16,185,129,.08);
  animation: pop .18s cubic-bezier(.2,.8,.2,1);
}
.mp[hidden], .mp-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
.mp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px 20px; }
.mp-head h2 { margin: 0; font: 600 16px var(--font); }
.mp-search { display: flex; align-items: center; gap: 10px; margin: 0 16px 12px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text-3); transition: border-color .15s; }
.mp-search:focus-within { border-color: rgba(45,212,191,.7); }
.mp-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: 15px var(--font); }
.mp-count { font-size: 12px; white-space: nowrap; }
.mp-body { flex: 1; min-height: 0; display: flex; border-top: 1px solid var(--line); }
.mp-rail { flex: none; width: 56px; padding: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; border-right: 1px solid var(--line); overflow-y: auto; }
.mp-rail-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; transition: background .15s; }
.mp-rail-btn:hover { background: var(--panel-2); }
.mp-rail-btn img { width: 20px; height: 20px; }
.mp-list { flex: 1; overflow-y: auto; padding: 8px 10px 16px; scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
.mp-auto { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; text-align: left; }
.mp-auto b { display: block; font-weight: 600; }
.mp-auto small { color: var(--text-3); font-size: 12px; }
.mp-auto:hover, .mp-auto[aria-selected="true"] { background: var(--panel-2); }
.mp-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 8px 0; padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.mp-tabs button { height: 34px; border-radius: 9px; color: var(--text-2); font-weight: 500; transition: background .15s, color .15s; }
.mp-tabs button:hover { color: var(--text); }
.mp-tabs button[aria-selected="true"] { background: var(--panel-3); color: var(--text); }
.mp-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 10px; border-radius: 10px; text-align: left; transition: background .12s; }
.mp-row:hover { background: var(--panel-2); }
.mp-row[aria-selected="true"] { background: rgba(16,185,129,.16); }
.mp-logo { width: 20px; height: 20px; flex: none; }
.auto-logo { display: grid; place-items: center; }
.auto-logo .m-dot { width: 14px; height: 14px; }
.mp-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-badge { flex: none; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: rgba(56,189,248,.16); color: #a5e9ff; }
.mp-price { margin-left: auto; flex: none; text-align: right; font-size: 12px; color: var(--text-3); line-height: 1.25; }
.mp-price b { color: var(--text-2); font-weight: 500; }
.mp-price small { display: block; font-size: 11px; color: #7ee8cf; }
.mp-star { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--text-3); }
.mp-star svg { width: 15px; height: 15px; }
.mp-star:hover { color: var(--text); background: var(--panel-3); }
.mp-star.on { color: #f5c451; }
.mp-star.on svg { fill: currentColor; }
.mp-group { margin: 16px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.mp-group.mp-sub { margin-top: 12px; letter-spacing: .02em; text-transform: none; font-size: 12px; color: var(--text-2); }
.mc-logo { width: 20px; height: 20px; }
.who-logo { width: 14px; height: 14px; }
.who .auto-logo .m-dot { width: 9px; height: 9px; }

@media (max-width: 600px) {
  .mp-price small, .mp-meta, .mp-badge:not(.mp-free), .mp-rail { display: none; }
  .mp-row { gap: 8px; height: auto; min-height: 42px; padding: 6px 8px; }
  .mp-name { white-space: normal; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

.fineprint { margin: 12px 0 0; font-size: 12px; color: var(--text-3); }
.fineprint a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Starters ---------- */
.starters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 28px; }
.starter { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; background: rgba(22,22,23,.7); border: 1px solid var(--line); backdrop-filter: blur(8px); transition: border-color .2s, background .2s, transform .2s; }
.starter:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-2px); }
.s-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; grid-row: span 2; }
.s-ico svg { width: 16px; height: 16px; }
.s-violet { background: rgba(45,212,191,.16); color: #7ee8cf; }
.s-pink { background: rgba(56,189,248,.16); color: #a5e9ff; }
.s-blue { background: rgba(13,148,136,.2); color: #a7f3d0; }
.s-title { font-weight: 600; }
.s-text { font-size: 12px; color: var(--text-3); line-height: 1.35; }

.explore-btn { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 500; transition: background .15s; }
.explore-btn:hover { background: var(--panel-2); }
.explore-btn svg { width: 15px; height: 15px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.hero.chatting .explore-btn, .hero.chatting .starters, .hero.chatting .hero-sub, .hero.chatting .hero-mark, .hero.chatting .hero-title { display: none; }
/* ---------- Chat thread ---------- */
.hero.chatting { justify-content: flex-end; padding-bottom: 24px; }
.thread { width: 100%; display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; text-align: left; }
.msg { max-width: 100%; line-height: 1.6; animation: rise .3s ease; }
.msg.user { align-self: flex-end; max-width: 80%; background: var(--panel-2); padding: 10px 14px; border-radius: 16px 16px 4px 16px; }
.msg.ai { color: #e8e8ec; }
.msg.ai .who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Explore section ---------- */
.explore { max-width: 960px; margin: 0 auto; padding: 40px 24px 32px; }
.explore-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.explore-head h1, .explore-head h2 { margin: 0 0 12px; font: 500 30px/1.2 var(--display); letter-spacing: -.02em; }
.explore-head p { margin: 0 0 20px; color: var(--text-2); font-size: 15px; }
.explore-ctas { display: flex; gap: 8px; justify-content: center; }
.sec-label { margin: 40px 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); scroll-margin-top: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.feature .s-ico { margin-bottom: 14px; }
.feature h3, .feature h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.feature p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px; border-radius: 50%; font-weight: 600; font-size: 13px; background: rgba(16,185,129,.18); color: #b5f2e2; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.model-card { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; transition: border-color .2s, transform .2s; }
.model-card:hover { border-color: rgba(45,212,191,.5); transform: translateY(-2px); }
.model-card .mc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.model-card b { font-weight: 600; font-size: 14.5px; }
.model-card .maker { font-size: 12px; color: var(--text-3); }
.model-card p { margin: 0 0 12px; font-size: 13px; color: var(--text-2); }
.model-card .cost { font-size: 12px; color: #7ee8cf; }
.foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }
.foot a:hover { color: var(--text-2); }
.foot-social, .am-social { display: inline-flex; align-items: center; gap: 4px; }
.foot-social { margin-left: 4px; padding-left: 18px; border-left: 1px solid var(--line); }
.foot-social a, .am-social a { display: grid; place-items: center; width: 28px; height: 28px; margin: -6px 0; border-radius: 8px; color: var(--text-3); transition: color .2s, background .2s; }
.foot-social a:hover, .am-social a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.foot-social svg { width: 15px; height: 15px; }
.am-social { margin-left: auto; }
.am-social a { width: 24px; height: 24px; margin: -4px 0; }
.am-social svg { width: 13px; height: 13px; }

/* ---------- RouterHub: home content, guest gate, model meta ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec-note { margin: -6px 0 14px; color: var(--text-3); font-size: 13px; }
.sec-note a, .faq a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.price-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.price-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.price-table th, .price-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-table thead th { color: var(--text-3); font-size: 12px; font-weight: 500; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody th { font-weight: 500; }
.price-table tbody th code { display: block; margin-top: 2px; color: var(--text-3); font-size: 11.5px; }
.price-table td:nth-child(3), .price-table td:nth-child(4) { font-variant-numeric: tabular-nums; }
.price-table .try { color: #7ee8cf; font-weight: 500; }
.steps { list-style: none; padding: 0; margin: 0; }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 8px; background: rgba(16,185,129,.18); color: #7ee8cf; font-weight: 600; font-size: 13px; }
pre.code { margin: 0; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #0f0f11; color: #d6d6dc; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: left; }
.tool-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.tool-links a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--text-2); font-size: 13px; }
.tool-links a:hover { color: var(--text); border-color: var(--line-2); }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 500; }
.faq p { margin: 0 0 14px; color: var(--text-2); font-size: 14px; }
.mp-meta { flex: none; color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mp-lock { display: grid; place-items: center; flex: none; color: var(--text-3); }
.mp-lock svg { width: 14px; height: 14px; }
.mp-badge.mp-free { background: rgba(80,200,140,.16); color: #8fe0b4; }
.msg-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--text-3); font-size: 12px; }
.msg-code { padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--text-2); font-size: 12px; }
.msg-code:hover { color: var(--text); border-color: var(--line-2); }
.msg pre.code { margin-top: 8px; }
.gate { padding: 18px; border: 1px solid rgba(45,212,191,.45); border-radius: 16px; background: linear-gradient(180deg, rgba(16,185,129,.14), var(--panel)); text-align: left; }
.gate b { display: block; font-size: 15px; margin-bottom: 4px; }
.gate p { margin: 0 0 14px; color: var(--text-2); font-size: 13.5px; }
.gate-ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.gate-ctas .btn-ghost { margin-top: 0; }
.gate small { display: block; margin-top: 10px; color: var(--text-3); font-size: 12px; }
/* Never topped up: the same gradient-border offer card as billing and onboarding. */
.gate-promo { position: relative; padding: 20px; border: 1px solid transparent;
  background: radial-gradient(90% 140% at 0% 0%, rgba(var(--glow),.14), transparent 62%) padding-box, linear-gradient(#111213, #111213) padding-box,
  linear-gradient(140deg, rgba(var(--s1),.55), rgba(255,255,255,.06) 46%, rgba(var(--s3),.6)) border-box; }
.gate-k { display: block; margin-bottom: 8px; color: rgb(var(--s3)); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.gate-promo b { font-size: 17px; font-weight: 500; line-height: 1.35; margin-bottom: 6px; }
.gate-promo b .grad { font-weight: 700; }
/* Paid before and ran out: plain and calm, no sales pitch. */
.gate-empty { border-color: rgba(255,255,255,.1); background: var(--panel); }
.nav-soon { opacity: .55; cursor: default; }
.tag-soon { background: rgba(255,255,255,.08); color: var(--text-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sidebar { position: fixed; z-index: 30; top: 8px; bottom: 8px; left: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
  .app.collapsed .sidebar { margin-left: 0; transform: translateX(calc(-100% - 16px)); }
  .hero { padding-top: 64px; }
  .grid3, .starters { grid-template-columns: 1fr; }
  .c-chip span { display: none; }
}
@media (max-width: 600px) {
  .app { padding: 0; }
  .topbar .btn-soft { display: none; }
  .pill-toggle span { display: none; }
}
