/* Website-only visual layer.
   Loaded by site/* and docs/*; intentionally not loaded by admin or apps. */

body.website-page {
  --brand: #101010;
  --brand-2: #101010;
  --brand-ink: #ffffff;
  --bg: #f7f7f8;
  --bg-elev: #ffffff;
  --bg-sunken: #f1f1f2;
  --card: #ffffff;
  --border: #e7e7e8;
  --border-strong: #d6d6d8;
  --text: #111111;
  --text-muted: #646466;
  --text-faint: #929294;
  --ok: #087f5b;
  --warn: #9a5b00;
  --danger: #c62828;
  --ok-bg: #eaf7f1;
  --warn-bg: #fff6e4;
  --danger-bg: #fff0f0;
  --web-accent: #1f5fd0;
  --web-accent-soft: #e8eff9;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .035), 0 10px 28px rgba(0, 0, 0, .035);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .16);
  --maxw: 1240px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.006em;
}

html[data-theme="dark"] body.website-page {
  --brand: #f2f2f2;
  --brand-2: #ffffff;
  --brand-ink: #151515;
  --bg: #171717;
  --bg-elev: #212121;
  --bg-sunken: #2a2a2a;
  --card: #212121;
  --border: #303030;
  --border-strong: #444444;
  --text: #ececec;
  --text-muted: #b2b2b2;
  --text-faint: #7d7d7d;
  --ok: #61d6aa;
  --warn: #efb45d;
  --danger: #ff7777;
  --ok-bg: #17382e;
  --warn-bg: #382a16;
  --danger-bg: #3d2020;
  --web-accent: #6fa0ef;
  --web-accent-soft: #16243d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 12px 32px rgba(0, 0, 0, .16);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, .48);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) body.website-page,
  html[data-theme="system"] body.website-page {
    --brand: #f2f2f2;
    --brand-2: #ffffff;
    --brand-ink: #151515;
    --bg: #171717;
    --bg-elev: #212121;
    --bg-sunken: #2a2a2a;
    --card: #212121;
    --border: #303030;
    --border-strong: #444444;
    --text: #ececec;
    --text-muted: #b2b2b2;
    --text-faint: #7d7d7d;
    --ok: #61d6aa;
    --warn: #efb45d;
    --danger: #ff7777;
    --ok-bg: #17382e;
    --warn-bg: #382a16;
    --danger-bg: #3d2020;
    --web-accent: #6fa0ef;
    --web-accent-soft: #16243d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 12px 32px rgba(0, 0, 0, .16);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, .48);
  }
}

.website-page ::selection { background: color-mix(in srgb, var(--web-accent) 28%, transparent); }
.website-page a { color: inherit; }
.website-page button,
.website-page input,
.website-page select,
.website-page textarea { letter-spacing: inherit; }
.website-page button:focus-visible,
.website-page a:focus-visible,
.website-page input:focus-visible,
.website-page select:focus-visible,
.website-page textarea:focus-visible,
.website-page summary:focus-visible {
  outline: 2px solid var(--web-accent);
  outline-offset: 2px;
}

/* Shared website chrome */
.website-page .container { padding-left: clamp(18px, 4vw, 38px); padding-right: clamp(18px, 4vw, 38px); }
.website-page .topbar,
.website-page .ud-topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}
.website-page .topbar-inner,
.website-page .ud-topbar-inner {
  width: 100%;
  min-height: 64px;
  padding: 0 clamp(18px, 4vw, 38px);
}
.website-page .brand {
  gap: 9px;
  color: var(--text);
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -.025em;
}
.website-page .brand img,
.website-page .brand-mark { width: auto; height: 27px; }
.website-page .nav-links { gap: 2px; }
.website-page .nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 540;
}
.website-page .nav-links a:hover { background: var(--bg-sunken); color: var(--text); text-decoration: none; }
.website-page .nav-links a:last-child {
  margin-left: 4px;
  padding-inline: 16px;
  background: var(--text);
  color: var(--bg-elev);
}
.website-page .nav-links a:last-child:hover { opacity: .84; background: var(--text); color: var(--bg-elev); }

.website-page .btn {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--border-strong);
  border-radius: 11px;
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: none;
  font-size: 14px;
  font-weight: 580;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
.website-page .btn:hover { transform: translateY(-1px); background: var(--bg-sunken); text-decoration: none; }
.website-page .btn-primary { border-color: var(--text); background: var(--text); color: var(--bg-elev); }
.website-page .btn-primary:hover { border-color: var(--text); background: var(--text); opacity: .84; }
.website-page .btn-sm { min-height: 34px; padding-inline: 11px; border-radius: 9px; font-size: 12.5px; }
.website-page .btn-ghost { border-color: transparent; background: transparent; }
.website-page .icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; border-radius: 10px; }

.website-page .card,
.website-page .stat-tile,
.website-page .chart-card {
  border-color: var(--border);
  border-radius: 16px;
  box-shadow: none;
}
.website-page .card { padding: 20px; }
.website-page .card-title { color: var(--text); font-size: 14px; font-weight: 650; letter-spacing: -.012em; }
.website-page .section-title { color: var(--text-faint); font-size: 11px; letter-spacing: .075em; }
.website-page .badge { border-radius: 99px; }
.website-page .badge-brand { background: var(--web-accent-soft); color: var(--web-accent); }

.website-page input,
.website-page select,
.website-page textarea {
  min-height: 44px;
  padding: 10px 12px;
  border-color: var(--border-strong);
  border-radius: 11px;
  background: var(--bg-elev);
}
.website-page input:focus,
.website-page select:focus,
.website-page textarea:focus {
  outline: 0;
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}
.website-page .field-label { color: var(--text); font-weight: 570; }
.website-page .form-error { border-color: color-mix(in srgb, var(--danger) 32%, var(--border)); }
.website-page .modal { border-radius: 18px; }
.website-page .modal-backdrop { backdrop-filter: blur(5px); }

/* Landing page */
.landing-page { background: var(--bg-elev); }
.landing-page .topbar { position: fixed; inset: 0 0 auto; background: color-mix(in srgb, var(--bg-elev) 82%, transparent); }
.landing-main { overflow: clip; }
.landing-hero {
  min-height: min(880px, 94vh);
  padding: 144px 0 82px;
  display: flex;
  align-items: center;
  position: relative;
}
.landing-hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -330px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--web-accent) 11%, transparent), transparent 67%);
  pointer-events: none;
}
.landing-hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  gap: clamp(52px, 8vw, 112px);
  align-items: center;
  position: relative;
}
.hero-copy { max-width: 700px; }
.hero-eyebrow,
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--web-accent);
  box-shadow: 0 0 0 5px var(--web-accent-soft);
}
.landing-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(54px, 5.8vw, 94px);
  line-height: .96;
  letter-spacing: -.072em;
  font-weight: 620;
}
.landing-hero h1 span { color: var(--text-muted); }
.landing-hero .lead {
  max-width: 630px;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  letter-spacing: -.018em;
}
.landing-hero .lead strong { color: var(--text); font-weight: 570; }
.landing-hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.landing-hero .cta .btn { min-height: 48px; padding-inline: 20px; border-radius: 13px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; color: var(--text-faint); font-size: 12px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof span::before { content: "✓"; color: var(--web-accent); font-weight: 700; }

.api-visual {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #141414;
  color: #f5f5f5;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .18);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.api-visual::after {
  content: "";
  position: absolute;
  inset: auto 10% -90px;
  height: 130px;
  background: var(--web-accent);
  filter: blur(80px);
  opacity: .2;
  pointer-events: none;
}
.api-visual-head {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 19px;
  border-bottom: 1px solid #2d2d2d;
  color: #9d9d9d;
  font-size: 11px;
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; display: block; border-radius: 50%; background: #4c4c4c; }
.api-status { display: flex; align-items: center; gap: 7px; }
.api-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3dd5a5; box-shadow: 0 0 0 4px rgba(61, 213, 165, .12); }
.api-visual-body { padding: 26px 25px 29px; }
.api-label { margin-bottom: 11px; color: #737373; font: 10px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.api-code {
  margin: 0;
  padding: 18px;
  border: 1px solid #2d2d2d;
  border-radius: 14px;
  background: #1c1c1c;
  color: #dedede;
  font: 12px/1.72 var(--mono);
  white-space: pre-wrap;
}
.api-code .key { color: #8fb6ea; }.api-code .value { color: #e4bf7a; }
.api-route { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 9px; margin-top: 22px; }
.api-route > span {
  min-width: 0;
  padding: 11px 8px;
  border: 1px solid #303030;
  border-radius: 11px;
  background: #1b1b1b;
  color: #d5d5d5;
  text-align: center;
  font-size: 10.5px;
  white-space: nowrap;
}
.api-route > b { color: #5f5f5f; font-size: 11px; }

.model-marquee { border-block: 1px solid var(--border); background: var(--bg); }
.model-marquee-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow-x: auto; color: var(--text-faint); scrollbar-width: none; }
.model-marquee-inner::-webkit-scrollbar { display: none; }
.model-marquee strong { color: var(--text); font-size: 12px; font-weight: 600; white-space: nowrap; }
.model-marquee span { font-size: 14px; font-weight: 580; white-space: nowrap; }

.landing-section { padding: clamp(82px, 9vw, 128px) 0; background: var(--bg-elev); }
.landing-section.alt { background: var(--bg); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 42px;
  align-items: end;
  margin-bottom: 42px;
}
.section-heading h2 { max-width: 760px; margin: 0; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.03; letter-spacing: -.05em; font-weight: 620; }
.section-heading p { margin: 0 0 4px; color: var(--text-muted); font-size: 16px; line-height: 1.65; }
.section-eyebrow { margin-bottom: 15px; }
.valueprops { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: var(--border); }
.website-page .vp { min-height: 260px; padding: 28px 25px; border: 0; border-radius: 0; background: var(--bg-elev); box-shadow: none; }
.vp-index { display: block; margin-bottom: 76px; color: var(--text-faint); font: 11px var(--mono); }
.website-page .vp h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.025em; }
.website-page .vp p { color: var(--text-muted); font-size: 13.5px; line-height: 1.58; }
.website-page .vp code { font-size: 11px; }

.catalog-shell,
.pricing-shell { padding: 34px; border: 1px solid var(--border); border-radius: 22px; background: var(--bg-elev); }
.landing-page .table-wrap { border-color: var(--border); border-radius: 14px; box-shadow: none; }
.landing-page .table th { height: 48px; background: var(--bg-sunken); color: var(--text-faint); font-size: 10px; letter-spacing: .065em; }
.landing-page .table td { height: 56px; padding: 12px 16px; border-color: var(--border); }
.landing-page .table tbody tr:hover { background: color-mix(in srgb, var(--web-accent-soft) 45%, var(--bg-elev)); }
.landing-page .table td:first-child { color: var(--text); font-size: 12.5px; font-weight: 560; }
.landing-page .plans-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.landing-page .plan-card { min-height: 390px; padding: 27px; display: flex; flex-direction: column; }
.landing-page .plan-card .card-title { margin-bottom: 18px; font-size: 16px; }
.landing-page .plan-price { font-size: 40px; letter-spacing: -.05em; }
.landing-page .free-price { color: var(--text); }
.landing-page .plan-feats { margin: 24px 0 28px; }
.landing-page .plan-feats li { padding: 8px 0; border-color: var(--border); font-size: 13px; }
.landing-page .plan-card .btn { width: 100%; margin-top: auto; }

.landing-page footer.site-foot { margin: 0; padding: 38px 0; border-color: var(--border); background: var(--bg-elev); }
.landing-page .foot-links a { color: var(--text-muted); }
.landing-page .foot-links a:hover { color: var(--text); text-decoration: none; }

/* Authentication */
.auth-page { background: var(--bg-elev); }
.auth-page .topbar { position: fixed; inset: 0 0 auto; border-bottom-color: transparent; background: transparent; }
.auth-page #app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 100px 20px 50px;
  position: relative;
  overflow: hidden;
}
.auth-page #app::before,
.auth-page #app::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.auth-page #app::before { width: 520px; height: 520px; left: -330px; bottom: -260px; background: var(--web-accent-soft); filter: blur(4px); }
.auth-page #app::after { width: 420px; height: 420px; right: -270px; top: -220px; border: 1px solid var(--border); }
.auth-page .auth-wrap { width: 100%; max-width: 440px; margin: 0; padding: 0; position: relative; z-index: 1; }
.auth-page .auth-card { padding: 38px; border: 1px solid var(--border); border-radius: 20px; background: color-mix(in srgb, var(--bg-elev) 94%, transparent); box-shadow: 0 24px 75px rgba(0, 0, 0, .08); }
.auth-page .auth-card h1 { font-size: 30px !important; letter-spacing: -.04em; font-weight: 620; }
.auth-page .auth-card > p:first-of-type { margin-bottom: 27px; }
.auth-page .auth-card .field { margin-bottom: 17px; }
.auth-page .auth-card input { min-height: 50px; }
.auth-page .auth-card button[type="submit"] { min-height: 50px; margin-top: 4px; }
.auth-page .auth-card > .small { margin-top: 22px; }
.auth-page .auth-card a { color: var(--text); font-weight: 620; text-decoration: underline; text-underline-offset: 3px; }

/* User dashboard */
.dashboard-page { background: var(--bg); }
.dashboard-page .ud-topbar { position: sticky; }
.dashboard-page .ud-topbar-inner { max-width: 1320px; }
.dashboard-page .theme-toggle { color: var(--text-muted); }
.dashboard-page .theme-toggle .theme-icon { display: block; }
.dashboard-page .acct-btn { min-height: 38px; padding: 3px 8px 3px 3px; border-color: transparent; }
.dashboard-page .acct-btn:hover { border-color: var(--border); }
.dashboard-page .acct-avatar { width: 30px; height: 30px; background: var(--text); color: var(--bg-elev); }
.dashboard-page .acct-menu { min-width: 220px; padding: 6px; border-radius: 13px; }
.dashboard-page .acct-menu a,
.dashboard-page .acct-menu .acct-logout { padding: 9px 10px; border-radius: 8px; }

.dashboard-page .ud-body { max-width: 1320px; padding: 46px clamp(18px, 4vw, 42px) 80px; }
.dashboard-page .ud-section-title {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 25px;
  font-weight: 620;
  letter-spacing: -.04em;
  text-transform: none;
}
.dashboard-page .ud-section-title .helptip { margin-left: 5px; }
.dashboard-apps-section { margin-bottom: 48px; }
.dashboard-page .featured-chats {
  min-height: 155px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  padding: 32px 34px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #202020;
  border-radius: 22px;
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}
.dashboard-page .featured-chats::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: -150px;
  top: -210px;
  border-radius: 50%;
  background: var(--web-accent-soft);
  filter: blur(2px);
}
.dashboard-page .featured-chats::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .17;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to left, black, transparent 62%);
}
.dashboard-page .featured-chats:hover { filter: none; transform: translateY(-2px); }
.dashboard-page .featured-chats .fc-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  align-self: start;
  border: 1px solid #383838;
  border-radius: 20px;
  background: #1e1e1e;
  font-size: 34px;
}
.dashboard-page .featured-chats .fc-icon .ac-icon { width: 48px; height: 48px; display: grid; place-items: center; }
.dashboard-page .featured-chats .fc-icon img { width: 48px; height: 48px; object-fit: contain; }
.dashboard-page .featured-chats .fc-icon .brand-mark--light { display: none; }
.dashboard-page .featured-chats .fc-icon .brand-mark--dark { display: block; }
.dashboard-page .featured-chats .fc-title { display: block; margin-top: 4px; font-size: 29px; letter-spacing: -.045em; font-weight: 620; }
.dashboard-page .featured-chats .fc-pitch { display: block; max-width: 650px; margin-top: 8px; color: #bdbdbd; font-size: 15px; line-height: 1.55; }
.dashboard-page .featured-chats .fc-cta { min-height: 44px; padding: 0 17px; display: inline-flex; align-items: center; align-self: center; border-color: #ffffff; border-radius: 12px; background: #ffffff; color: #111111; font-size: 13px; }
.dashboard-page .app-cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; }
.dashboard-page .app-card { min-height: 94px; padding: 17px; gap: 13px; border-radius: 15px; }
.dashboard-page .app-card:hover { border-color: var(--border-strong); background: var(--bg-sunken); transform: translateY(-1px); }
.dashboard-page .app-card .ac-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--bg-sunken); }
.dashboard-page .app-card .ac-title { font-size: 14px; }

.dashboard-overview-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr); gap: 28px; align-items: start; }
.dashboard-quota-section,
.dashboard-account-section { min-width: 0; }
.dashboard-page .qcard-grid { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 12px; }
.dashboard-page .qcard { min-height: 230px; padding: 22px; gap: 9px; }
.dashboard-page .qcard-free { border-style: solid; }
.dashboard-page .qwin-head { font-size: 12.5px; }
.dashboard-page .usage-bar { height: 7px; background: var(--bg-sunken); }
.dashboard-page .usage-bar > div { background: var(--text); }
.dashboard-page .dashboard-actions { display: flex; gap: 8px; margin-top: 12px; }
.dashboard-page .dashboard-account-section .gap-grid { grid-template-columns: 1fr; gap: 10px; }
.dashboard-page .dashboard-account-section .card { min-height: 145px; padding: 21px; }
.dashboard-page .dashboard-account-section .plan-price { font-size: 34px; }
.dashboard-page .dashboard-account-section > .mt-2 .btn { width: 100%; }

/* Dashboard settings */
.dashboard-page .settings-shell {
  max-width: 1320px;
  grid-template-columns: 240px minmax(0, 880px);
  gap: clamp(34px, 6vw, 82px);
  justify-content: start;
  padding: 44px clamp(18px, 4vw, 42px) 80px;
}
.dashboard-page .settings-back { margin-bottom: 18px; }
.dashboard-page .settings-menu { top: 88px; gap: 4px; }
.dashboard-page .settings-menu a { min-height: 43px; padding: 0 12px; border-radius: 10px; }
.dashboard-page .settings-menu a.active { background: var(--bg-sunken); color: var(--text); }
.dashboard-page .settings-shell .page-title { margin: 0 0 24px; font-size: 34px; font-weight: 620; letter-spacing: -.045em; }
.dashboard-page .settings-shell .stack > * + * { margin-top: 14px; }
.dashboard-page .settings-shell .card { padding: 22px; }
.dashboard-page .settings-shell .table-wrap { border-radius: 14px; }
.dashboard-page .settings-shell .table th { background: var(--bg-sunken); }
.dashboard-page .settings-shell .table th,
.dashboard-page .settings-shell .table td { padding: 12px 14px; }
.dashboard-page .settings-shell .plans-grid { gap: 12px; }
.dashboard-page .settings-shell .plan-card { display: flex; flex-direction: column; }
.dashboard-page .settings-shell .plan-card .plan-action { margin-top: auto; }
.dashboard-page .settings-shell .chart-card { padding: 18px; }
.dashboard-page .settings-shell details.howto { border-radius: 13px; }
.dashboard-page .settings-shell .empty { border: 1px dashed var(--border-strong); border-radius: 15px; background: var(--bg-elev); }

/* Documentation */
.docs-page { background: var(--bg-elev); }
.docs-page .topbar { position: sticky; }
.docs-page .topbar-inner { max-width: 1440px; }
.docs-page .nav-links a:last-child { margin-left: 0; padding-inline: 12px; background: transparent; color: var(--text-muted); }
.docs-page .nav-links a:last-child:hover { background: var(--bg-sunken); color: var(--text); opacity: 1; }
.docs-page .docs-shell {
  max-width: 1360px;
  grid-template-columns: 250px minmax(0, 800px);
  justify-content: start;
  gap: clamp(50px, 7vw, 94px);
  padding: 52px clamp(18px, 4vw, 38px) 100px;
}
.docs-page .docs-nav { top: 94px; padding-right: 18px; }
.docs-page .docs-nav .nav-group { margin: 24px 10px 7px; color: var(--text-faint); font-size: 10px; letter-spacing: .09em; }
.docs-page .docs-nav .nav-group:first-child { margin-top: 0; }
.docs-page .docs-nav a { min-height: 36px; display: flex; align-items: center; padding: 0 10px; border-radius: 9px; font-size: 13px; }
.docs-page .docs-nav a:hover { background: var(--bg-sunken); }
.docs-page .docs-nav a.active { background: var(--bg-sunken); color: var(--text); font-weight: 620; }
.docs-page .doc-content { max-width: 800px; padding-bottom: 70px; color: var(--text); font-size: 15.5px; line-height: 1.72; }
.docs-page .doc-content h1 { margin: 0 0 26px; font-size: clamp(38px, 5vw, 52px); line-height: 1.02; letter-spacing: -.055em; font-weight: 620; }
.docs-page .doc-content h2 { margin: 52px 0 17px; padding: 0; border: 0; font-size: 25px; letter-spacing: -.035em; font-weight: 620; }
.docs-page .doc-content h3 { margin: 34px 0 12px; font-size: 18px; letter-spacing: -.02em; }
.docs-page .doc-content p { margin: 0 0 18px; color: var(--text-muted); }
.docs-page .doc-content li { margin: 7px 0; color: var(--text-muted); }
.docs-page .doc-content strong { color: var(--text); font-weight: 620; }
.docs-page .doc-content a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.docs-page .doc-content a:hover { text-decoration-color: var(--text); }
.docs-page .doc-content hr { margin: 44px 0; }
.docs-page .doc-content pre {
  margin: 22px 0;
  padding: 22px;
  border-color: #303030;
  border-radius: 15px;
  background: #181818;
  color: #e8e8e8;
  font-size: 12.5px;
  line-height: 1.72;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
}
.docs-page .doc-content pre .btn { min-height: 30px; border-color: #424242; background: #272727; color: #dcdcdc; }
.docs-page .doc-content :not(pre) > code { padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-sunken); color: var(--text); font-size: .86em; }
.docs-page .doc-content table { margin: 24px 0; border: 1px solid var(--border); border-radius: 13px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.docs-page .doc-content th,
.docs-page .doc-content td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--border); }
.docs-page .doc-content th { background: var(--bg-sunken); color: var(--text); font-size: 12px; }
.docs-page .doc-content tr:last-child td { border-bottom: 0; }
.docs-page .callout { margin: 24px 0; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--web-accent) 26%, var(--border)); border-left: 3px solid var(--web-accent); border-radius: 11px; background: var(--web-accent-soft); color: var(--text-muted); }

@media (max-width: 980px) {
  .landing-hero { min-height: auto; }
  .landing-hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .api-visual { max-width: 680px; transform: none; }
  .valueprops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-overview-grid { grid-template-columns: 1fr; }
  .dashboard-page .dashboard-account-section .gap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .docs-page .docs-shell { grid-template-columns: 1fr; gap: 26px; padding-top: 22px; }
  .docs-page .docs-nav {
    position: static;
    display: flex;
    gap: 5px;
    margin-inline: -2px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    scrollbar-width: none;
  }
  .docs-page .docs-nav::-webkit-scrollbar { display: none; }
  .docs-page .docs-nav .nav-group { display: none; }
  .docs-page .docs-nav a { flex: 0 0 auto; white-space: nowrap; }
  .dashboard-page .settings-shell { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .dashboard-page .settings-menu { position: static; flex-direction: row; flex-wrap: nowrap; gap: 4px; padding-bottom: 5px; overflow-x: auto; scrollbar-width: none; }
  .dashboard-page .settings-menu::-webkit-scrollbar { display: none; }
  .dashboard-page .settings-menu a { flex: 0 0 auto; }
}

@media (max-width: 680px) {
  .website-page .topbar,
  .website-page .ud-topbar,
  .website-page .topbar-inner,
  .website-page .ud-topbar-inner { min-height: 56px; }
  .website-page .topbar-inner,
  .website-page .ud-topbar-inner { padding-inline: 12px; }
  .website-page .brand { font-size: 15px; }
  .website-page .brand img,
  .website-page .brand-mark { height: 24px; }
  .website-page .nav-links a { min-height: 34px; padding-inline: 8px; font-size: 12.5px; }
  .landing-page .nav-links a:nth-child(1),
  .landing-page .nav-links a:nth-child(2) { display: none; }
  .landing-hero { padding: 116px 0 66px; }
  .landing-hero h1 { font-size: clamp(49px, 15vw, 67px); }
  .landing-hero .lead { font-size: 16px; }
  .landing-hero .cta { display: grid; grid-template-columns: 1fr 1fr; }
  .landing-hero .cta .btn { padding-inline: 12px; }
  .hero-proof { display: grid; grid-template-columns: 1fr 1fr; }
  .api-visual-body { padding: 18px; }
  .api-route { grid-template-columns: 1fr; }
  .api-route > b { display: none; }
  .model-marquee-inner { min-height: 72px; }
  .model-marquee strong { display: none; }
  .landing-section { padding: 72px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .section-heading h2 { font-size: 38px; }
  .valueprops { grid-template-columns: 1fr; }
  .website-page .vp { min-height: 0; padding: 24px; }
  .vp-index { margin-bottom: 38px; }
  .catalog-shell,
  .pricing-shell { padding: 12px; border-radius: 16px; }
  .landing-page .plan-card { min-height: 350px; }
  .auth-page #app { padding-inline: 14px; }
  .auth-page .auth-card { padding: 27px 22px; }
  .dashboard-page .ud-body { padding-top: 28px; }
  .dashboard-page .ud-section-title { font-size: 22px; }
  .dashboard-page .featured-chats { min-height: 270px; grid-template-columns: 1fr; gap: 14px; padding: 24px; }
  .dashboard-page .featured-chats .fc-icon { width: 58px; height: 58px; border-radius: 16px; }
  .dashboard-page .featured-chats .fc-icon .ac-icon,
  .dashboard-page .featured-chats .fc-icon img { width: 40px; height: 40px; }
  .dashboard-page .featured-chats .fc-title { font-size: 25px; }
  .dashboard-page .featured-chats .fc-cta { width: 100%; justify-content: center; margin-top: 4px; }
  .dashboard-page .dashboard-account-section .gap-grid { grid-template-columns: 1fr; }
  .dashboard-page .settings-shell { padding-top: 28px; }
  .dashboard-page .settings-shell .page-title { font-size: 29px; }
  .dashboard-page .settings-shell .table th,
  .dashboard-page .settings-shell .table td { padding: 10px; }
  .docs-page .nav-links a:nth-child(3) { display: none; }
  .docs-page .doc-content { font-size: 15px; }
  .docs-page .doc-content h1 { font-size: 38px; }
  .docs-page .doc-content h2 { margin-top: 42px; font-size: 23px; }
  .docs-page .doc-content pre { margin-inline: -5px; padding: 17px; border-radius: 12px; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .website-page *, .website-page *::before, .website-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --- agent API set: "coming soon" row --- */
.apis-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 22px; }
.apis-soon-label { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-right: 4px; }
.apis-soon .badge { font-size: 12px; padding: 4px 11px; border: 1px dashed var(--border-strong); background: transparent; color: var(--text-muted); }
