/* Shared reading scale. Keep content readable at normal browser zoom. */
:root {
  --muted: #656d60;
  --text-body: 16px;
  --text-detail: 14px;
  --text-caption: 13px;
}
body { font-size: var(--text-body); line-height: 1.55; }
.workspace, .docs-content, .model-hero > *, .integration > *, .workbench > * { min-width: 0; }
.nav { font-size: 15px; gap: 24px; }
.header-actions { gap: 16px; }
.nav .nav-auth { display: none; }
.btn, .btn.small { font-size: 15px; min-height: 44px; }
.btn.small { padding: 10px 15px; }
.eyebrow { font-size: 13px; letter-spacing: 1.3px; line-height: 1.6; }
.hero p { font-size: 18px; line-height: 1.8; max-width: 490px; color: var(--muted); }
.hero-notes { font-size: 13px; flex-wrap: wrap; gap: 12px 20px; color: var(--muted); }
.hero-notes svg { width: 16px; height: 16px; }
.float-card { padding: 13px 15px; }
.float-card strong { font-size: 14px; }
.float-card small, .hero-caption { font-size: 13px; color: var(--muted); }
.provider-strip .muted { font-size: 14px; }
.section { padding: 68px 0; }
.section h2, .integration h2, .model-editorial .section h2 {
  font-size: 36px; font-weight: 500; line-height: 1.2; letter-spacing: -1.1px;
}
.section-sub, .page-head p, .service-summary p { font-size: 16px; line-height: 1.85; }
.section-head > .muted { font-size: 14px; }
.section-head > .text-link { font-size: 15px; }
.text-link, .service-summary .text-link { font-size: 15px; line-height: 1.6; }
.service-summary h2 { font-size: 23px; line-height: 1.35; }
.models-grid { gap: 18px; }
.model-card { padding: 24px; display: flex; flex-direction: column; }
.model-card h3 { font-size: 21px; line-height: 1.3; }
.model-provider { font-size: 14px; margin: 8px 0 16px; }
.model-desc { font-size: 15px; line-height: 1.75; color: var(--muted); min-height: 54px; margin-bottom: 18px; }
.model-bottom { margin-top: auto; gap: 12px; }
.model-bottom b { font-size: 18px; }
.model-bottom small, .model-note { font-size: 13px; line-height: 1.7; }
.tag, .model-hero-actions .tag { font-size: 12px; line-height: 1.4; padding: 6px 9px; }
.tag.peach { color: #925034; }
.round-arrow { width: 38px; height: 38px; flex-shrink: 0; }
.compare-check { font-size: 14px; gap: 8px; }
.compare-check input { width: 17px; height: 17px; }
.catalog-heading { font-size: 14px; gap: 15px; flex-wrap: wrap; }
.pill { font-size: 14px; min-height: 44px; padding: 10px 16px; }
.workbench { gap: 36px; }
.workbench p { font-size: 16px; line-height: 1.85; max-width: 420px; }
.mini-head, .mini-model { font-size: 14px; }
.mini-prompt, .mini-reply, .mini-input { font-size: 14px; line-height: 1.75; }
.mini-input { color: var(--muted); }
.benefits { gap: 45px; }
.benefits h3 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
.benefits p { font-size: 16px; line-height: 1.8; max-width: 360px; }
.integration { gap: 48px; padding: 55px 0; }
.step { font-size: 15px; line-height: 1.7; align-items: flex-start; }
.step span { width: 29px; height: 29px; font-size: 13px; flex-shrink: 0; }
.steps { gap: 20px; margin: 28px 0; }
.code-tabs { gap: 24px; }
.code-tabs button { font-size: 14px; padding: 17px 0; min-height: 48px; color: #b6bfaf; }
.code-box pre, .editorial-content pre { font-size: 14px; line-height: 1.8; padding: 24px; white-space: pre; overflow-x: auto; overflow-wrap: normal; }
.code-foot { font-size: 13px; line-height: 1.6; color: #b6bfaf; padding: 13px 20px; }
.faq { gap: 40px; }
.faq-list summary { font-size: 17px; line-height: 1.6; }
.faq-list p { font-size: 16px; line-height: 1.85; }
.bottom-cta h2 { font-size: 34px; line-height: 1.25; }
.bottom-cta p { font-size: 16px; line-height: 1.8; color: var(--muted); }
.bottom-cta .btn { font-size: 15px; padding: 13px 20px; }
.footer-top { flex-wrap: wrap; gap: 26px; }
.footer-links { font-size: 14px; color: var(--muted); gap: 18px 24px; }
.footer-bottom { font-size: 13px; color: var(--muted); gap: 16px; line-height: 1.8; }
.page-head { padding: 52px 0 32px; }
.page-head h1 { font-size: 44px; line-height: 1.2; }
.demo-banner { font-size: 14px; line-height: 1.75; color: #80623d; align-items: flex-start; }
.demo-banner svg { margin-top: 4px; flex-shrink: 0; }
.input { font-size: 16px; min-height: 46px; }
.app-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 30px; }
.sidebar a { font-size: 15px; line-height: 1.5; padding: 13px; color: var(--muted); }
.sidebar-label { font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.balance small { font-size: 14px; }
.workspace h1 { font-size: 34px; line-height: 1.25; }
.workspace-head p { font-size: 15px; line-height: 1.75; }
.workspace-head { align-items: flex-start; flex-wrap: wrap; }
.sandbox { grid-template-columns: minmax(0, 1fr) 260px; }
.chat-toolbar { flex-wrap: wrap; gap: 12px; }
.chat-toolbar select { font-size: 15px; min-height: 44px; max-width: 100%; }
.chat-welcome h3 { font-size: 25px; }
.chat-welcome p { font-size: 16px; }
.suggestions button { font-size: 14px; line-height: 1.6; min-height: 44px; color: var(--muted); }
.message { font-size: 16px; line-height: 1.85; }
.message small { font-size: 13px; color: #ae4c31; }
.composer textarea { font-size: 16px; line-height: 1.65; }
.chat-disclaimer { font-size: 13px; line-height: 1.7; padding: 0 16px 16px; }
.settings h3 { font-size: 19px; }
.field { font-size: 15px; color: var(--muted); line-height: 1.65; }
.field textarea, .field input, .field select { font-size: 16px; }
.preset { flex-wrap: wrap; }
.preset select { font-size: 14px; min-height: 44px; flex: 1; }
.stat small, .stat p { font-size: 14px; line-height: 1.65; }
.stat strong { font-size: 32px; }
.panel h3 { font-size: 21px; line-height: 1.4; }
.chart { height: 210px; padding-bottom: 30px; }
.chart-col small { font-size: 12px; bottom: -25px; }
.data-row { font-size: 14px; line-height: 1.65; min-width: 650px; }
.data-row.heading, .data-row code { font-size: 13px; }
.key-actions button { min-width: 40px; min-height: 40px; }
.key-actions svg { width: 17px; height: 17px; }
.docs-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 44px; }
.docs-nav a { font-size: 15px; line-height: 1.65; }
.docs-content h2 { font-size: 29px; line-height: 1.3; }
.docs-content p, .docs-content li { font-size: 16px; line-height: 1.85; }
.docs-content p { color: var(--muted); }
.docs-resources { font-size: 14px; line-height: 1.8; }
.editorial-byline { font-size: 14px !important; line-height: 1.8; }
.tool-card h2, .tool-card h3 { font-size: 24px; line-height: 1.35; }
.tool-card p { font-size: 16px; line-height: 1.85; }
.tool-card { display: flex; flex-direction: column; align-items: flex-start; }
.tool-card p { margin-bottom: 22px; }
.tool-card .text-link { margin-top: auto; padding-top: 4px; }
.auth-card h1 { font-size: 32px; line-height: 1.3; }
.auth-card p, .auth-bottom { font-size: 15px; line-height: 1.8; }
dialog { max-width: min(560px, calc(100vw - 32px)); }
dialog h2 { font-size: 28px; line-height: 1.3; }
dialog p { font-size: 16px; line-height: 1.8; }
dialog .close { width: 44px; height: 44px; top: 8px; right: 8px; }
.code-inline, .secret-key { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.compare-item { font-size: 15px; line-height: 1.8; }
.compare-item h3 { font-size: 21px; }
.compare-item b { white-space: nowrap; }
.success-note, .error { font-size: 14px; line-height: 1.7; }
.settings h3 { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.settings h3 svg { margin-top: 4px; }
#toast { font-size: 15px; line-height: 1.6; }
.model-breadcrumb, .model-sections { font-size: 14px; line-height: 1.7; }
.model-intro { font-size: 17px; line-height: 1.85; }
.model-tagline { font-size: 22px; }
.model-identity small { font-size: 14px; opacity: 1; padding: 0 20px; text-align: center; }
.model-task-grid h3 { font-size: 22px; line-height: 1.35; }
.model-task-grid p { font-size: 16px; line-height: 1.85; }
.task-number { font-size: 14px; color: var(--green); }
.model-story { gap: 44px; }
.model-story h2 { font-size: 34px; line-height: 1.25; }
.model-story p { font-size: 17px; line-height: 1.9; color: #5f6b56; }
.model-story .text-link, .model-era { font-size: 14px; }
.model-example, .model-connection { gap: 44px; }
.example-label { font-size: 13px; color: #856b47; }
.prompt-example p { font-size: 18px; line-height: 1.8; }
.prompt-example button { font-size: 15px; min-height: 44px; }
.model-connection h2 { font-size: 32px; line-height: 1.3; }
.model-connection p { font-size: 16px; line-height: 1.85; }
.model-spec > div { font-size: 15px; line-height: 1.65; }
.model-spec small { font-size: 14px; line-height: 1.8; }
.model-next > div { font-size: 16px; }
.gateway-notice strong { font-size: 16px; }
.gateway-notice p, .gateway-doc-intro p { font-size: 15px; line-height: 1.85; color: #786449; }
.gateway-notice.ready p, .gateway-doc-intro p { color: #5f6b56; }
.gateway-controls label, .api-endpoint > span { font-size: 14px; }
.gateway-controls select { font-size: 15px; min-height: 44px; max-width: 280px; }
.api-endpoint code { font-size: 15px; }
.server-key { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) .6fr auto; }
.server-key strong, .gateway-history strong { font-size: 16px; }
.server-key code, .server-key small, .gateway-history small, .gateway-history code { font-size: 13px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.server-key b, .gateway-history b { font-size: 15px; }
.stream-status { font-size: 14px; }
.gateway-doc-intro h2 { font-size: 30px; }

/* Reflow the content when readable text no longer fits side by side. */
@media (max-width: 1180px) {
  .nav { gap: 16px; font-size: 14px; }
  .header { gap: 16px; }
  .header-actions { gap: 12px; }
  .header .nav { display: none; }
  .header .nav.open { display: flex; position: absolute; top: 88px; left: 0; right: 0; padding: 22px; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 30; flex-wrap: wrap; justify-content: center; }
  .menu { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .models-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sandbox { grid-template-columns: minmax(0, 1fr); }
  .settings { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .settings h3 { grid-column: 1 / -1; }
  .settings .preset { align-self: start; }
}
@media (min-width: 781px) and (max-width: 1180px) {
  .hero-art img { width: 106%; left: -3%; }
}
@media (max-width: 1000px) {
  .header .nav { display: none; }
  .header .nav.open { display: flex; position: absolute; top: 88px; left: 0; right: 0; padding: 22px; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 30; flex-wrap: wrap; justify-content: center; }
  .menu { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .provider-strip { flex-wrap: wrap; justify-content: center; gap: 20px 28px; }
  .provider-strip > .muted { width: 100%; text-align: center; }
  .app-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; }
  .sidebar { padding-right: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .benefits { gap: 28px; }
  .benefits h3 { font-size: 19px; }
  .workbench { grid-template-columns: 1fr; }
  .workbench-copy { padding-bottom: 0; }
  .workbench p { max-width: 100%; }
  .integration { grid-template-columns: 1fr; gap: 32px; }
  .docs-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
  .model-task-grid { grid-template-columns: 1fr; }
  .model-task-grid article { padding: 26px; }
  .task-number { margin-bottom: 14px; }
  .model-story, .model-example, .model-connection { gap: 28px; }
}
@media (max-width: 780px) {
  .header { min-height: 80px; height: auto; padding-top: 16px; padding-bottom: 16px; }
  .header-actions .btn { font-size: 14px; }
  .header .nav.open { top: 80px; }
  .nav .nav-auth { display: block; color: var(--green); }
  .hero p { font-size: 17px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-caption { font-size: 13px; }
  .section h2, .integration h2, .model-editorial .section h2 { font-size: 32px; }
  .benefits { grid-template-columns: 1fr; gap: 28px; }
  .benefits p { max-width: 100%; }
  .benefit { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 0 18px; }
  .benefit-icon { grid-row: 1 / 3; margin: 0; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; padding-right: 0; }
  .sidebar a { font-size: 14px; padding: 12px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .docs-nav a { font-size: 14px; padding: 9px 12px; }
  .model-hero { grid-template-columns: 1fr; gap: 30px; }
  .model-hero h1 { font-size: 44px; }
  .model-tagline { font-size: 21px; }
  .model-hero-actions .btn { font-size: 15px; padding: 13px 20px; }
  .model-identity { min-height: 220px; }
  .model-identity small { font-size: 14px; }
  .model-story, .model-example, .model-connection { grid-template-columns: 1fr; }
  .model-story h2 { font-size: 30px; }
  .model-story h2 br, .model-example h2 br { display: none; }
  .model-sections { gap: 14px 24px; }
  .model-next > div { font-size: 15px; }
  .bottom-cta { gap: 25px; align-items: flex-start; flex-direction: column; }
  .footer-bottom { flex-wrap: wrap; }
  .gateway-notice { flex-wrap: wrap; }
  .server-key { grid-template-columns: 1fr 1fr; }
  .server-key .key-actions { justify-content: start; }
}
@media (max-width: 540px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .header { gap: 8px; }
  .header .brand { font-size: 21px; gap: 6px; }
  .brand .vasya-mark { width: 29px; height: 29px; }
  .header-actions { gap: 4px; }
  .header-actions .btn { font-size: 13px; padding: 10px 12px; }
  .header-actions .btn svg { display: none; }
  .hero .eyebrow, .eyebrow { font-size: 12px; letter-spacing: 1px; }
  .hero h1 { font-size: 47px; letter-spacing: -2.3px; }
  .hero-actions .btn { font-size: 15px; padding: 14px 18px; }
  .hero-notes { font-size: 13px; }
  .float-card strong { font-size: 13px; }
  .float-card small { font-size: 12px; }
  .float-card { gap: 8px; padding: 11px 12px; }
  .hero-caption { font-size: 12px; left: 8px; }
  .hero-art .float-card.top { top: -2px; right: 0; }
  .float-card.left { left: -4px; top: 148px; }
  .provider { font-size: 18px; }
  .section { padding: 48px 0; }
  .section h2, .integration h2, .model-editorial .section h2 { font-size: 30px; letter-spacing: -.8px; }
  .section-head { align-items: flex-start; gap: 14px; }
  .models-grid, .catalog-grid, .tool-grid { grid-template-columns: 1fr; gap: 16px; }
  .model-card { padding: 25px; }
  .model-card h3 { font-size: 22px; }
  .model-desc { min-height: 0; font-size: 16px; }
  .model-bottom b { font-size: 19px; }
  .tag { font-size: 12px; }
  .model-card-top { margin-bottom: 18px; }
  .model-bottom small { font-size: 13px; }
  .workbench { padding: 25px 22px 0; gap: 26px; }
  .mini-app { padding: 18px; }
  .mini-prompt { width: 93%; }
  .code-tabs { gap: 20px; padding: 0 18px; }
  .code-box pre, .editorial-content pre { padding: 22px 18px; font-size: 14px; }
  .code-foot { align-items: flex-start; }
  .faq { grid-template-columns: 1fr; gap: 26px; }
  .bottom-cta { padding: 28px; }
  .bottom-cta h2 { font-size: 30px; }
  .page-head h1 { font-size: 36px; letter-spacing: -1px; }
  .workspace-head h1 { font-size: 30px; }
  .workspace-head .btn { font-size: 14px; padding: 10px 13px; }
  .settings { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .chat-log { padding: 18px; }
  .chat-toolbar select { max-width: 100%; }
  .chat-toolbar .btn { font-size: 14px; }
  .chat-welcome { padding-top: 24px; }
  .compare-dock { flex-wrap: wrap; font-size: 14px; }
  .compare-dock .btn { font-size: 14px; min-height: 44px; }
  .auth-card { padding: 26px; }
  .model-breadcrumb { font-size: 13px; flex-wrap: wrap; gap: 8px; }
  .model-hero h1 { font-size: 40px; }
  .model-sections { font-size: 14px; gap: 12px 20px; }
  .model-next > div { font-size: 15px; flex-wrap: wrap; }
  .model-spec { padding: 18px 22px; }
  .model-spec > div { flex-wrap: wrap; gap: 7px 16px; }
  .gateway-controls label { align-items: flex-start; flex-direction: column; gap: 8px; }
  .gateway-controls select { max-width: 100%; }
  .gateway-doc-intro { padding: 24px; }
  .gateway-doc-intro h2 { font-size: 27px; }
  .gateway-history article { flex-wrap: wrap; gap: 14px; }
  .gateway-history article > div:last-child { text-align: left; }
  .gateway-history code { max-width: 100%; }
  .server-key { gap: 18px; }
  .server-key > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 370px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .header .brand { font-size: 17px; }
  .header-actions .btn { font-size: 12px; padding: 8px; width: 88px; white-space: normal; line-height: 1.35; }
  .header-actions .menu { min-width: 36px; }
  .hero h1 { font-size: 41px; }
  .hero-art { height: 320px; }
  .float-card small { display: none; }
}
