:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --paper: #f5f5f7;
  --panel: #ffffff;
  --line: #d2d2d7;
  --beam: #007aff;
  --beam-deep: #0066d6;
  --beam-tint: #eaf4ff;
  --sms: #2fb344;
  --ember: #ff7a1a;
  --code-bg: #0d1421;
  --note-bg: #eaf4ff; --note-line: #bcdcff;
  --warn-bg: #fff4ea; --warn-line: #ffd9b8;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
}
[data-theme="dark"] {
  --ink: #e8edf5;
  --ink-soft: #93a0b4;
  --paper: #0b1220;
  --panel: #111a2b;
  --line: #23304a;
  --beam-tint: #12283f;
  --beam-deep: #4ea8ff;
  --code-bg: #0a0f1a;
  --note-bg: #10233a; --note-line: #1d3f63;
  --warn-bg: #2b1d0e; --warn-line: #4d3418;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 128px; text-size-adjust: 100%; }
body { font-family: var(--font-body); font-optical-sizing: auto; max-width: 100%; overflow-x: clip; background: var(--paper); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; -webkit-tap-highlight-color: transparent; }
button:active, [role="button"]:active { transform: scale(.97); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--beam) 68%, transparent); outline-offset: 2px; }
a { color: var(--beam-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* topbar */
.topbar { display: flex; align-items: center; gap: 18px; padding: 12px 22px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.searchbox { flex: 1; max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-family: var(--font-body); font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.searchbox svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.searchbox kbd { margin-left: auto; font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
#theme-toggle { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; width: 32px; height: 32px; font-size: 15px; cursor: pointer; }
.console-link { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 7px 15px; font-size: 13.5px; font-weight: 600; }
[data-theme="dark"] .console-link { background: var(--beam); color: #fff; }
.console-link:hover { text-decoration: none; opacity: 0.88; }

/* tabs */
.tabs { display: flex; gap: 4px; padding: 0 22px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 57px; z-index: 25; }
.tab { padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--ink); border-bottom-color: var(--beam); }
.menu-btn { display: none; }
.menu-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-scrim { display: none; }

/* layout */
.shell { display: flex; max-width: 1400px; margin: 0 auto; }
.sidebar { width: 250px; flex-shrink: 0; padding: 24px 14px 60px; position: sticky; top: 104px; height: calc(100vh - 104px); overflow-y: auto; }
.nav-group { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding: 16px 10px 5px; }
.nav a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); font-weight: 500; }
.nav a:hover { background: var(--panel); text-decoration: none; }
.nav a.active { background: var(--beam-tint); color: var(--beam-deep); font-weight: 600; }
.method { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; border-radius: 5px; padding: 2px 5px; margin-right: 7px; vertical-align: 1px; }
.method-post { background: #dcfce7; color: #15803d; }
.method-get { background: #dbeafe; color: #1d4ed8; }
.method-delete { background: #fee2e2; color: #b91c1c; }
[data-theme="dark"] .method-post { background: #14351f; color: #4ade80; }
[data-theme="dark"] .method-get { background: #14263f; color: #60a5fa; }
[data-theme="dark"] .method-delete { background: #3b1515; color: #f87171; }
.hero-gradient { background: linear-gradient(90deg, var(--beam) 0%, #6ec1ff 55%, var(--ember) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-line { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.2; margin: 4px 0 18px; }
.hero-support { max-width: 660px; margin: 0 0 26px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.product-proof { display: grid; grid-template-columns: minmax(0, .86fr) minmax(260px, 1.14fr); gap: 20px; align-items: center; margin: 26px 0 40px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(circle at 0 0, rgba(10,132,255,.13), transparent 42%), var(--panel); box-shadow: 0 18px 42px rgba(5,12,24,.06); }
.proof-copy h2 { margin: 8px 0 10px; font-size: 24px; line-height: 1.15; }
.proof-copy p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.proof-kicker { color: var(--beam-deep); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.proof-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.text-link { font-size: 13px; font-weight: 650; }
.proof-figure { margin: 0; }
.proof-figure .shot { display: block; margin: 0; border-radius: 12px; box-shadow: 0 14px 35px rgba(4,12,26,.18); }
.proof-figure figcaption { margin-top: 8px; color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.ai-starter { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(150px, .8fr); gap: 18px; align-items: end; margin: 18px 0; padding: 20px; border: 1px solid var(--note-line); border-radius: 17px; background: var(--note-bg); }
.ai-starter h3 { margin: 5px 0 4px; font-size: 18px; }
.ai-starter p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }
.ai-starter ol { margin: 0 0 2px 19px; color: var(--ink-soft); font-size: 13px; }
.ai-starter .btn-demo { grid-column: 1 / -1; justify-self: start; }

/* The overview is the product's front door, not another table of contents. */
.docs-landing .sidebar, .docs-landing .toc { display: none; }
.docs-landing .shell { max-width: 1280px; }
.docs-landing .content { max-width: none; width: 100%; padding: 0 44px 112px; }
.landing-hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(410px, 1.06fr); gap: clamp(34px, 6vw, 84px); align-items: center; min-height: min(700px, calc(100vh - 113px)); padding: 74px 0 64px; }
.landing-copy { max-width: 600px; }
.landing-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--beam-deep); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.landing-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 13%, transparent); }
.landing-copy h1, .landing-section h2, .landing-ai h2, .landing-final h2 { margin: 17px 0 18px; font-family: var(--font-display); font-weight: 720; letter-spacing: -.05em; color: var(--ink); }
.landing-copy h1 { max-width: 610px; font-size: clamp(48px, 5.4vw, 78px); line-height: .98; }
.landing-copy > p:not(.landing-note), .landing-section-intro > p, .landing-ai p, .landing-final p { max-width: 560px; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.landing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.landing-primary, .landing-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 12px; font-size: 13px; font-weight: 750; text-decoration: none !important; transition: transform .18s var(--ease), box-shadow .18s ease, background .18s ease; }
.landing-primary { gap: 22px; color: #fff; background: linear-gradient(135deg, #0a84ff, #0069df); box-shadow: 0 13px 28px rgba(0,108,232,.22); }
.landing-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(0,108,232,.3); }
.landing-primary span { font-size: 18px; line-height: 0; }
.landing-secondary { color: var(--ink); border: 1px solid var(--line); background: var(--panel); }
.landing-secondary:hover { color: var(--beam-deep); border-color: var(--beam); }
.landing-note { margin-top: 14px; color: var(--ink-soft); font-size: 11.5px; line-height: 1.45; }
.landing-product { position: relative; margin: 0; padding: 12px; border: 1px solid color-mix(in srgb, var(--line) 80%, #0a84ff); border-radius: 22px; background: linear-gradient(145deg, color-mix(in srgb, var(--panel) 78%, #0a84ff 22%), var(--panel) 30%); box-shadow: 0 34px 85px rgba(4,12,25,.25); }
.landing-product::before { content: ""; position: absolute; z-index: -1; inset: 17% -9% -13% 22%; border-radius: 50%; background: rgba(10,132,255,.22); filter: blur(54px); }
.landing-product-bar { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 5px 7px; color: var(--ink-soft); }
.landing-product-bar span { width: 6px; height: 6px; border-radius: 50%; background: #57677f; }
.landing-product-bar b { margin-left: 7px; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.landing-product img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.landing-product figcaption { padding: 10px 4px 1px; color: var(--ink-soft); font-size: 11px; }
.mobile-menu-btn, .mobile-docs-actions { display: none; }
.landing-proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin: 10px 0 112px; border: 1px solid var(--line); border-radius: 17px; background: var(--line); }
.landing-proof-strip div { min-height: 112px; padding: 21px 24px; background: var(--panel); }
.landing-proof-strip strong { display: block; color: var(--beam-deep); font-family: var(--font-display); font-size: 24px; letter-spacing: -.035em; }
.landing-proof-strip span { display: block; max-width: 150px; margin-top: 5px; color: var(--ink-soft); font-size: 12px; line-height: 1.35; }
.landing-section { padding: 0 0 108px; }
.landing-channel-review { padding-top: 8px; }
.channel-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; }
.channel-review-grid article { min-height: 300px; display: flex; flex-direction: column; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--panel); box-shadow: 0 12px 30px rgba(7,15,27,.045); }
.channel-review-grid article > span { margin-top: 22px; color: var(--beam-deep); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.channel-review-grid h3 { margin: 12px 0 9px; color: var(--ink); font: 700 22px/1.08 var(--font-display); letter-spacing: -.03em; }
.channel-review-grid p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }
.channel-review-grid a { margin-top: auto; padding-top: 22px; color: var(--beam-deep); font-size: 12.5px; font-weight: 750; text-decoration: none; }
.channel-review-grid a b { margin-left: 5px; font-size: 17px; }
.channel-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; font-size: 22px; }
.channel-mark.is-blue { color: #fff; background: linear-gradient(145deg, #1595ff, #0069e5); box-shadow: 0 11px 22px rgba(10,132,255,.2); }
.channel-mark.is-green { color: #2fb344; background: #e8f8ea; }
.channel-mark.is-phone { color: #d8e8ff; background: #132b4b; }
.landing-boundary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; margin-top: 14px; padding: 16px 18px; border: 1px solid var(--warn-line); border-radius: 14px; background: var(--warn-bg); font-size: 12.5px; line-height: 1.52; }
.landing-boundary strong { color: var(--ink); }
.landing-boundary span { color: var(--ink-soft); }
.landing-section-intro { max-width: 670px; }
.landing-section h2, .landing-ai h2, .landing-final h2 { max-width: 720px; font-size: clamp(34px, 4.3vw, 58px); line-height: 1.02; }
.landing-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; }
.landing-path article { min-height: 260px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 12px 28px rgba(7,15,27,.04); }
.landing-path article > span { display: block; color: var(--beam-deep); font: 750 11px var(--font-mono); letter-spacing: .12em; }
.landing-path h3, .landing-capability-grid h3 { margin: 30px 0 8px; color: var(--ink); font: 700 21px/1.1 var(--font-display); letter-spacing: -.025em; }
.landing-path p, .landing-capability-grid p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }
.landing-path a { margin-top: auto; padding-top: 23px; color: var(--beam-deep); font-size: 12.5px; font-weight: 750; text-decoration: none; }
.landing-path a b, .landing-text-link b { margin-left: 5px; font-size: 17px; }
.landing-two-up { display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr); gap: 68px; align-items: center; }
.landing-text-link { display: inline-block; margin-top: 23px; color: var(--beam-deep); font-size: 13px; font-weight: 750; }
.landing-capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.landing-capability-grid article { min-height: 190px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--panel) 86%, var(--beam-tint)); }
.landing-capability-grid article > span { color: var(--beam-deep); font-size: 20px; }
.landing-capability-grid h3 { margin-top: 24px; font-size: 16px; }
.landing-ai { display: flex; align-items: end; justify-content: space-between; gap: 38px; margin-bottom: 110px; padding: 40px; border: 1px solid #1d4167; border-radius: 24px; color: #eff6ff; background: radial-gradient(circle at 86% 20%, rgba(12,139,255,.35), transparent 31%), #09172a; box-shadow: 0 24px 64px rgba(4,12,25,.2); }
.landing-ai .landing-kicker { color: #86c5ff; }
.landing-ai h2 { color: #fff; max-width: 640px; }
.landing-ai p { color: #a8bbd1; }
.landing-ai .landing-primary { flex: 0 0 auto; }
.landing-ai .landing-secondary { margin-top: 10px; color: #c6d7ea; border-color: #35516f; background: transparent; }
.landing-final { max-width: 760px; margin: 0 auto; padding: 68px 24px; text-align: center; border-top: 1px solid var(--line); }
.landing-final .landing-kicker { justify-content: center; }
.landing-final h2 { margin-inline: auto; }
.landing-final p { margin: 0 auto 27px; }

@media (max-width: 980px) {
  .docs-landing .content { padding-inline: 28px; }
  .landing-hero, .landing-two-up { grid-template-columns: 1fr; gap: 38px; }
  .landing-hero { min-height: 0; padding-top: 58px; }
  .landing-product { max-width: 720px; }
  .landing-path { grid-template-columns: 1fr; }
  .channel-review-grid { grid-template-columns: 1fr; }
  .landing-path article { min-height: 0; }
  .landing-path h3 { margin-top: 18px; }
  .landing-path a { margin-top: 20px; }
}
@media (max-width: 600px) {
  .docs-landing .content { padding: 0 18px 72px; }
  .landing-hero { padding: 40px 0 34px; }
  .landing-copy h1 { font-size: clamp(42px, 13vw, 58px); }
  .landing-copy > p:not(.landing-note), .landing-section-intro > p, .landing-ai p, .landing-final p { font-size: 16px; }
  .landing-actions, .landing-ai-actions { display: grid; grid-template-columns: 1fr; }
  .landing-primary, .landing-secondary { width: 100%; }
  .landing-proof-strip { grid-template-columns: 1fr; margin-bottom: 74px; }
  .landing-proof-strip div { min-height: 0; padding: 17px 20px; }
  .landing-proof-strip span { max-width: none; }
  .landing-section { padding-bottom: 74px; }
  .landing-capability-grid { grid-template-columns: 1fr; }
  .landing-boundary { grid-template-columns: 1fr; gap: 5px; }
  .landing-capability-grid article { min-height: 0; }
  .landing-ai { display: block; margin-bottom: 74px; padding: 26px 20px; }
  .landing-ai-actions { margin-top: 24px; }
  .landing-final { padding: 48px 0; }
}
.btn-demo { display: inline-block; background: var(--beam); color: #fff !important; border-radius: 12px; padding: 10px 18px; font-weight: 600; font-size: 14.5px; text-decoration: none !important; }
.btn-demo:hover { background: var(--beam-deep); }
.shot { width: 100%; border: 1px solid var(--line); border-radius: 14px; margin: 14px 0; box-shadow: 0 8px 30px rgba(11,18,32,0.08); }
.diagram { width: 100%; margin: 16px 0; }
.diagram svg { width: 100%; height: auto; }

.content { flex: 1; min-width: 0; padding: 40px 48px 100px; max-width: 780px; }
.content-head { display: flex; align-items: flex-start; gap: 16px; }
.copy-page { margin-left: auto; flex-shrink: 0; margin-top: 26px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); border-radius: 9px; padding: 7px 13px; font-size: 13px; font-family: var(--font-body); font-weight: 500; cursor: pointer; }
.copy-page:hover { border-color: var(--beam); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--beam-deep); }
h1 { font-family: var(--font-display); font-size: 36px; line-height: 1.15; margin: 6px 0 8px; }
.lede { font-size: 17px; color: var(--ink-soft); margin-bottom: 30px; }
h2 { font-family: var(--font-display); font-size: 23px; margin: 42px 0 10px; scroll-margin-top: 120px; }
h3 { font-size: 16.5px; font-weight: 600; margin: 26px 0 8px; scroll-margin-top: 120px; }
p { margin: 10px 0; }
ul, ol { margin: 10px 0 10px 22px; }
li { margin: 5px 0; }
code:not(pre code) { font-family: var(--font-mono); font-size: 0.86em; background: var(--beam-tint); padding: 1.5px 6px; border-radius: 6px; }

/* toc */
.toc { width: 220px; flex-shrink: 0; padding: 40px 18px; position: sticky; top: 104px; height: calc(100vh - 104px); overflow-y: auto; font-size: 13px; }
.toc-title { font-weight: 600; margin-bottom: 8px; font-size: 13px; }
.toc a { display: block; padding: 3.5px 0; color: var(--ink-soft); }
.toc a.toc-3 { padding-left: 14px; }
.toc a:hover { color: var(--beam-deep); text-decoration: none; }
.toc a.current { color: var(--beam-deep); font-weight: 600; }

/* cards, steps, callouts */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; margin: 18px 0; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--ink); transition: border-color 0.15s; }
.card:hover { border-color: var(--beam); text-decoration: none; }
.card .icon { font-size: 20px; }
.card h4 { font-size: 15px; font-weight: 600; margin: 8px 0 4px; }
.card p { font-size: 13px; color: var(--ink-soft); margin: 0; }
.steps { counter-reset: step; margin: 20px 0; }
.step { display: flex; gap: 14px; padding: 11px 0; }
.step::before { counter-increment: step; content: counter(step); flex-shrink: 0; width: 28px; height: 28px; border-radius: 99px; background: var(--beam); color: #fff; font-weight: 600; font-size: 14px; display: grid; place-items: center; margin-top: 2px; }
.step h4 { font-size: 15px; margin-bottom: 2px; }
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.note, .warn { border-radius: 12px; padding: 14px 16px; font-size: 14px; margin: 16px 0; border: 1px solid; }
.note { background: var(--note-bg); border-color: var(--note-line); }
.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.note strong, .warn strong { display: block; margin-bottom: 2px; }

/* code */
.codebox { background: var(--code-bg); border-radius: 14px; overflow: hidden; margin: 16px 0; }
.codetabs { display: flex; gap: 2px; padding: 8px 10px 0; }
.codetabs button { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; background: none; border: none; color: #8b98ab; padding: 6px 12px; border-radius: 8px 8px 0 0; cursor: pointer; }
.codetabs button.active { color: #fff; background: rgba(255,255,255,0.08); }
.codebox .copy { margin-left: auto; font-size: 12px; color: #8b98ab; background: none; border: 1px solid #2a3548; border-radius: 7px; padding: 4px 10px; cursor: pointer; font-family: var(--font-body); }
.codebox .copy:hover { color: #fff; }
.codebox pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; color: #dce4f0; }
.codebox pre[hidden] { display: none; }
.content > pre { max-width: 100%; margin: 16px 0; padding: 16px 18px; overflow-x: auto; border: 1px solid #202e44; border-radius: 14px; color: #dce4f0; background: var(--code-bg); font: 13px/1.65 var(--font-mono); -webkit-overflow-scrolling: touch; }
.tok-k { color: #7cc4ff; } .tok-s { color: #9ce29c; } .tok-c { color: #667694; }

table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14px; }
th { text-align: left; font-weight: 600; border-bottom: 2px solid var(--line); padding: 8px 10px; }
td { border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }

/* search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(8, 14, 26, 0.55); z-index: 100; display: grid; place-items: start center; padding-top: 12vh; }
.search-overlay[hidden] { display: none; }
.search-panel { width: min(600px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.35); }
#search-input { width: 100%; border: none; outline: none; background: transparent; color: var(--ink); font-family: var(--font-body); font-size: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
#search-results { max-height: 50vh; overflow-y: auto; }
#search-results a { display: block; padding: 11px 18px; border-bottom: 1px solid var(--line); }
#search-results a:hover, #search-results a.selected { background: var(--beam-tint); text-decoration: none; }
#search-results .r-title { font-weight: 600; font-size: 14.5px; color: var(--ink); }
#search-results .r-meta { font-size: 12px; color: var(--ink-soft); }
#search-results .r-snip { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#search-results .empty { padding: 20px; color: var(--ink-soft); font-size: 14px; text-align: center; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 1100px) { .toc { display: none; } }
@media (max-width: 800px) {
  .shell { flex-direction: column; }
  .sidebar { position: static; width: 100%; height: auto; display: none; padding: 8px 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
  .sidebar.open { display: block; }
  .menu-btn { display: block; margin-left: auto; align-self: center; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font-size: 13px; font-family: var(--font-body); color: var(--ink); cursor: pointer; }
  .content { padding: 26px 20px 70px; }
  h1 { font-size: 29px; }
  .searchbox span { display: none; }
  .searchbox { flex: 0; }
  .searchbox kbd { display: none; }
}

/* 2026 docs surface: editorial clarity with a technical operator edge. */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; transform: translateY(-160%); padding: 8px 12px; border-radius: 8px; color: #fff; background: var(--beam); font-weight: 600; }
.skip-link:focus { transform: translateY(0); }
.topbar { min-height: 68px; padding: 11px 24px; gap: 22px; color: #eaf1fb; background: rgba(8,15,27,.88); border-bottom-color: #1d2a3e; backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%); box-shadow: 0 1px rgba(255,255,255,.04); }
.brand { color: #fff; }
.brand-name::after { content: "DOCS"; margin-left: 8px; color: #708198; font: 650 9px var(--font-mono); letter-spacing: .12em; vertical-align: 2px; }
.searchbox { max-width: 560px; color: #8796aa; background: #101b2d; border-color: #26354d; box-shadow: inset 0 1px rgba(255,255,255,.025); }
.searchbox:hover { color: #cad5e5; border-color: #3c5475; }
.searchbox kbd { color: #8ea0b8; border-color: #304158; background: #0c1524; }
.topbar-right { gap: 7px; }
.ai-launch { height: 34px; padding: 0 11px; border: 1px solid #2d3e56; border-radius: 9px; color: #dce6f3; background: #111d30; font: 650 11.5px var(--font-body); cursor: pointer; white-space: nowrap; }
.ai-launch { transition: background .16s ease, border-color .16s ease, transform .1s ease; }
.ai-launch:hover { border-color: #57779f; }
.ai-launch .ai-dot { margin-right: 4px; color: #f4a96c; }
.ai-codex { color: #fff; border-color: #0a84ff; background: #087cf0; box-shadow: 0 5px 18px rgba(10,132,255,.2); }
.ai-codex .ai-dot { color: #fff; }
#theme-toggle { color: #b9c5d5; border-color: #2b3b52; }
.console-link { color: #0b1220; background: #fff; }
[data-theme="dark"] .console-link { background: #fff; color: #0b1220; }
.tabs { top: 68px; min-height: 45px; padding: 0 24px; gap: 2px; background: #0c1524; border-bottom-color: #223047; }
.tab { padding: 12px 14px 10px; color: #78889f; font-size: 12px; letter-spacing: .02em; }
.tab:hover { color: #dbe6f5; }
.tab.active { color: #fff; border-bottom-color: #2f9aff; }
.shell { max-width: 1540px; }
.sidebar { width: 272px; top: 113px; height: calc(100vh - 113px); padding: 26px 19px 70px; background: linear-gradient(180deg, #0d1727, #0b1422); border-right: 1px solid #1e2b40; scrollbar-color: #2b3b50 transparent; }
.nav-group { color: #5e6e84; padding: 19px 10px 6px; font-size: 9.5px; letter-spacing: .12em; }
.nav a { padding: 7px 10px; color: #9aa8ba; font-size: 12.5px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav a.active { color: #fff; background: linear-gradient(90deg, rgba(10,132,255,.24), rgba(10,132,255,.07)); box-shadow: inset 2px 0 #2f9aff; }
.content { max-width: 860px; padding: 56px 64px 120px; }
.content-head { align-items: flex-start; }
.content-head h1 { max-width: 620px; font-size: clamp(36px, 4vw, 52px); letter-spacing: -.035em; }
.content .eyebrow { font-size: 10px; letter-spacing: .13em; }
.lede { max-width: 680px; margin-top: 12px; margin-bottom: 42px; font-size: 18px; line-height: 1.6; }
.page-actions { display: flex; align-items: center; gap: 8px; margin: 24px 0 0 auto; }
.verified-chip { padding: 6px 9px; border: 1px solid var(--note-line); border-radius: 999px; color: var(--beam-deep); background: var(--beam-tint); font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.verified-chip::before { content: "✓"; margin-right: 4px; }
.copy-page { margin: 0; }
.content h2 { margin-top: 52px; font-size: 25px; letter-spacing: -.02em; }
.content h3 { margin-top: 30px; }
.content p, .content li { font-size: 14.5px; }
.card { position: relative; overflow: hidden; min-height: 140px; padding: 20px; border-radius: 17px; box-shadow: 0 8px 30px rgba(11,18,32,.035); transition: transform .26s var(--ease), border-color .18s ease, box-shadow .26s var(--ease); }
.card::after { content: "↗"; position: absolute; right: 16px; top: 14px; color: var(--ink-soft); opacity: .35; }
.card:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(11,18,32,.09); }
.codebox { border: 1px solid #202e44; border-radius: 16px; box-shadow: 0 18px 50px rgba(4,9,17,.16); }
.codetabs { min-height: 46px; align-items: end; padding: 9px 11px 0; background: #101a2a; border-bottom: 1px solid #202d42; }
.codebox pre { padding: 20px 22px 24px; font-size: 12.5px; }
.note, .warn { border-radius: 14px; border-left-width: 3px; }
.toc { top: 113px; height: calc(100vh - 113px); padding: 56px 22px; }
.toc-title { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.toc a { padding: 4px 0; font-size: 11.5px; }

.ai-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(4,9,17,.64); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: overlay-in .2s ease-out; }
.ai-overlay[hidden] { display: none; }
.ai-panel { width: min(620px, 96vw); position: relative; overflow: hidden; padding: 34px; border: 1px solid #2a3b55; border-radius: 22px; color: #eef4fc; background: radial-gradient(circle at 90% 0%, rgba(10,132,255,.2), transparent 42%), rgba(12,22,38,.96); box-shadow: 0 35px 100px rgba(0,0,0,.5); animation: materialize .3s var(--ease); }
.ai-panel::after { content: ""; position: absolute; inset: auto -15% -55% 40%; height: 300px; background: radial-gradient(circle, rgba(255,122,26,.13), transparent 65%); pointer-events: none; }
.ai-panel .ai-mark { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #1490ff, #0060df); box-shadow: 0 8px 25px rgba(10,132,255,.3); }
.ai-panel h2 { margin: 7px 0 9px; font: 700 28px/1.15 var(--font-display); }
.ai-panel > p { max-width: 520px; color: #95a5ba; font-size: 13px; line-height: 1.55; }
.ai-panel label { display: block; margin: 24px 0 7px; color: #c9d5e4; font-size: 11px; font-weight: 700; }
.ai-panel textarea { width: 100%; resize: vertical; outline: 0; padding: 13px 14px; border: 1px solid #2d405b; border-radius: 12px; color: #fff; background: #111e31; font: 13px/1.5 var(--font-body); }
.ai-panel textarea:focus { border-color: #1d8fff; box-shadow: 0 0 0 3px rgba(10,132,255,.13); }
.ai-context { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ai-context span { margin-right: 3px; color: #75869c; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ai-context code { padding: 4px 7px; color: #a9d3ff; border: 1px solid #2b405a; border-radius: 7px; background: #111f33; font-size: 9.5px; }
.ai-continue { width: 100%; position: relative; z-index: 1; margin-top: 20px; padding: 12px 16px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(90deg, #087cf0, #0a8fff); font: 700 13px var(--font-body); cursor: pointer; }
.ai-continue:hover { filter: brightness(1.08); }
.ai-panel .ai-footnote { margin: 9px 0 0; font-size: 10px; text-align: center; }
.ai-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:22px 0 14px}
.ai-choices button{padding:12px;border-radius:12px;background:#14263d;border:1px solid #344c69;color:#dce9f9;text-align:left;font:600 13px/1.3 var(--font-body);cursor:pointer}
.ai-choices button[aria-pressed="true"]{background:#087cef;border-color:#78bdff;color:white}
.ai-choices button:focus-visible{outline:3px solid #b4d9ff;outline-offset:2px}
.ai-answer{border-left:3px solid #168fff;padding:3px 0 3px 16px;margin:18px 0}
.ai-answer p{color:#d2deed;font-size:14px;line-height:1.6;margin:0 0 8px}.ai-answer a{color:#8dc5ff;font-size:13px}
.ai-panel details{margin:18px 0}.ai-panel summary{cursor:pointer;color:#b6cbe2;font-size:13px}.ai-panel #ai-handoff .landing-primary{display:flex;justify-content:center;margin-top:18px}
.ai-close { position: absolute; top: 15px; right: 16px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #2b3c54; border-radius: 8px; color: #93a4b9; background: #111d2f; line-height: 0; cursor: pointer; }
.ai-close svg { display: block; width: 14px; height: 14px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

@keyframes overlay-in { from { opacity: 0; } }
@keyframes materialize { from { opacity: 0; transform: scale(.96) translateY(8px); filter: blur(6px); } to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); } }

@media (pointer: coarse) {
  button, .tab, .nav a, .console-link { min-height: 44px; }
  .nav a { display: flex; align-items: center; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .topbar, .ai-panel, .search-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar { background: #08101d; }
  .ai-overlay, .search-overlay { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0,0,0,.78); }
}

@media (prefers-contrast: more) {
  :root { --line: #77777d; }
  .card, .note, .warn, .copy-page { border-width: 2px; }
  .nav a.active { box-shadow: inset 3px 0 #2f9aff; }
}

@media (max-width: 1000px) {
  .ai-launch { font-size: 0; width: 34px; padding: 0; }
  .ai-launch .ai-dot { margin: 0; font-size: 13px; }
  .verified-chip { display: none; }
}
@media (max-width: 800px) {
  .topbar { min-height: 62px; padding: 10px 14px; gap: 8px; }
  .tabs { top: 62px; padding: 0 14px; }
  .sidebar { width: 100%; height: auto; max-height: calc(100dvh - 107px); position: static; padding: 10px 18px 24px; overflow-y: auto; background: #0d1727; border-right: 0; border-bottom: 1px solid #223047; }
  .content { padding: 34px 22px 80px; }
  .content-head h1 { font-size: 34px; }
  .page-actions { margin-top: 18px; }
  .console-link { display: none; }
  .ai-panel { padding: 27px 22px; }
}
@media (max-width: 560px) {
  .brand-name::after { display: none; }
  .topbar-right { margin-left: auto; }
  .searchbox { margin: 0; }
  #theme-toggle { display: none; }
  .content-head { flex-direction: column; }
  .page-actions { margin: 4px 0 0; }
  .tabs { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 10px 9px 9px; font-size: 10.5px; }
  .menu-btn { position: sticky; right: 0; flex: 0 0 auto; padding: 5px 9px; color: #fff; border-color: #354760; background: #0c1524; box-shadow: -10px 0 12px #0c1524; }
}

/* Mobile documentation experience: touch-first chrome, a real navigation
   drawer, readable type, horizontally safe technical content, and a bottom
   sheet for AI handoffs. These rules intentionally come last. */
@media (max-width: 960px) {
  html { scroll-padding-top: 68px; }
  html.nav-open { overflow: hidden; }
  .topbar {
    min-height: 62px;
    padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
    gap: 7px;
  }
  .brand { min-height: 44px; flex: 0 0 auto; }
  .brand svg { width: 28px; height: 28px; }
  .brand-name { font-size: 18px; }
  .searchbox {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    margin: 0 0 0 auto;
    padding: 0;
    border-radius: 12px;
  }
  .searchbox span, .searchbox kbd { display: none; }
  .searchbox svg { width: 18px; height: 18px; }
  .topbar-right { gap: 6px; margin: 0; }
  .topbar-right .ai-launch, .topbar-right #theme-toggle { display: none; }
  .console-link { display: none; }
  .mobile-menu-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    color: #f3f7fd;
    border: 1px solid #52647d;
    border-radius: 12px;
    background: linear-gradient(180deg, #162640, #101c2f);
    font: 700 12px var(--font-body);
    box-shadow: inset 0 1px rgba(255,255,255,.06), 0 8px 20px rgba(0,0,0,.18);
  }
  .mobile-menu-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

  [data-theme="light"] .mobile-menu-btn {
    color: #172033;
    border-color: #c3cad5;
    background: #f2f4f8;
    box-shadow: inset 0 1px #fff, 0 5px 15px rgba(12,20,34,.1);
  }

  .tabs { display: none; }
  .shell { display: block; }
  .docs-landing .sidebar { display: block; }
  .sidebar {
    display: block;
    width: min(88vw, 360px);
    height: auto;
    max-height: none;
    position: fixed;
    inset: 62px auto 0 0;
    z-index: 24;
    padding: 12px 14px calc(30px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-right: 1px solid #26364e;
    border-bottom: 0;
    background: rgba(11, 20, 34, .985);
    box-shadow: 24px 0 70px rgba(0, 0, 0, .38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-18px);
    transition: opacity .2s ease, transform .28s var(--ease), visibility .2s;
  }
  .sidebar.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 62px 0 0;
    z-index: 23;
    background: rgba(3, 8, 15, .56);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s;
  }
  html.nav-open .nav-scrim { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a { min-height: 44px; display: flex; align-items: center; font-size: 14px; }
  .nav-group { padding-top: 20px; font-size: 10px; }
  .mobile-docs-actions { display: grid; gap: 8px; margin: 24px 5px 4px; padding: 16px 0 4px; border-top: 1px solid #26364e; }
  .mobile-docs-actions button, .mobile-docs-actions a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #2e415c;
    border-radius: 12px;
    color: #dce9f8;
    background: #111e31;
    font: 700 13px var(--font-body);
    text-decoration: none;
  }
  .mobile-docs-actions button:last-of-type { color: #fff; border-color: #0a84ff; background: #087cf0; }
  .mobile-docs-actions a { justify-content: space-between; padding-inline: 15px; }

  .content {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 48px) clamp(22px, 5vw, 44px) calc(88px + env(safe-area-inset-bottom));
  }
  .content-head h1 { font-size: clamp(34px, 6vw, 44px); }
  .page-actions { margin-top: 14px; }
  .copy-page { min-height: 44px; padding-inline: 15px; }
  .content p, .content li { font-size: 15px; }
  .lede { margin-bottom: 36px; font-size: 17px; line-height: 1.6; }
  .card { min-height: 0; }
  .codetabs { overflow-x: auto; scrollbar-width: none; }
  .codetabs::-webkit-scrollbar { display: none; }
  .codetabs button { min-height: 44px; flex: 0 0 auto; }
  .codebox .copy { position: sticky; right: 0; background: #101a2a; }
  .codebox pre { -webkit-overflow-scrolling: touch; }
}

@media (max-width: 600px) {
  .brand-name::after, #theme-toggle { display: none; }
  .topbar { gap: 6px; }
  .content { padding: 28px 18px calc(84px + env(safe-area-inset-bottom)); }
  .content-head { gap: 10px; }
  .content-head h1 { font-size: clamp(30px, 9vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
  .content .eyebrow { font-size: 10px; }
  .lede { margin-top: 10px; margin-bottom: 32px; font-size: 16px; line-height: 1.58; }
  .content h2 { margin-top: 42px; font-size: 24px; line-height: 1.18; }
  .content h3 { margin-top: 28px; font-size: 18px; line-height: 1.3; }
  .content p, .content li { font-size: 15.5px; line-height: 1.62; }
  .content ul, .content ol { margin-left: 20px; }
  .page-actions { width: 100%; margin-top: 2px; }
  .copy-page { width: auto; min-width: 92px; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 18px; border-radius: 16px; }
  .card p { font-size: 14px; }
  .product-proof, .ai-starter { grid-template-columns: 1fr; padding: 17px; gap: 15px; }
  .product-proof { margin-bottom: 34px; }
  .proof-copy h2 { font-size: 22px; }
  .step { gap: 12px; padding: 12px 0; }
  .step::before { width: 30px; height: 30px; }
  .note, .warn { padding: 15px; font-size: 14.5px; }
  code:not(pre code) { overflow-wrap: anywhere; }
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel);
  }
  th, td { min-width: 150px; padding: 11px 12px; }
  th:first-child, td:first-child { min-width: 120px; }
  .codebox { margin-inline: -2px; border-radius: 14px; }
  .codebox pre { padding: 16px; font-size: 12px; line-height: 1.6; }
  .content > pre { padding: 16px; font-size: 12px; line-height: 1.6; }

  .search-overlay { place-items: start center; padding: max(12px, env(safe-area-inset-top)) 12px 12px; }
  .search-panel { width: 100%; max-height: calc(100dvh - 24px); border-radius: 18px; }
  #search-input { min-height: 56px; font-size: 16px; }
  #search-results { max-height: calc(100dvh - 92px); }
  #search-results a { min-height: 58px; padding: 12px 15px; }

  .ai-overlay { place-items: end center; padding: 10px 0 0; }
  .ai-panel {
    width: 100%;
    max-height: calc(100dvh - 10px);
    padding: 24px 18px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
    animation: sheet-up .3s var(--ease);
  }
  .ai-panel .ai-mark { width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; }
  .ai-panel h2 { max-width: calc(100% - 42px); margin-top: 6px; font-size: 25px; line-height: 1.12; letter-spacing: -.025em; }
  .ai-panel > p { font-size: 13.5px; }
  .ai-panel label { margin-top: 20px; font-size: 12px; }
  .ai-panel textarea { min-height: 112px; font-size: 16px; resize: none; }
  .ai-context { align-items: flex-start; margin-top: 14px; }
  .ai-context span { width: 100%; margin-bottom: 2px; }
  .ai-context code { font-size: 10px; }
  .ai-continue { min-height: 50px; margin-top: 18px; font-size: 14px; border-radius: 13px; }
  .ai-panel .ai-footnote { font-size: 11px; line-height: 1.45; }
  .ai-close { top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 12px; }
  .ai-close svg { width: 16px; height: 16px; }
}

/* Mobile product entrance: one calm header, legible promise, then proof. */
@media (max-width: 600px) {
  .topbar { min-height: 62px; padding-inline: 14px; }
  .brand { gap: 9px; }
  .brand svg { width: 29px; height: 29px; }
  .brand-name { font-size: 19px; }
  .mobile-menu-btn { padding-inline: 12px; }
  .mobile-menu-btn .menu-label { display: none; }
  .docs-landing .content { padding: 0 20px 70px; }
  .landing-hero { gap: 26px; padding: 32px 0 30px; }
  .landing-copy h1 { max-width: 11ch; margin: 13px 0 16px; font-size: clamp(38px, 10.7vw, 48px); line-height: 1.01; letter-spacing: -.052em; }
  .landing-copy > p:not(.landing-note) { font-size: 15.5px; line-height: 1.55; }
  .landing-actions { gap: 10px; margin-top: 23px; }
  .landing-primary, .landing-secondary { min-height: 52px; font-size: 15px; }
  .landing-note { margin-top: 12px; font-size: 11px; }
  .landing-product { padding: 9px; border-radius: 18px; box-shadow: 0 24px 54px rgba(4,12,25,.22); }
  .landing-product::before { inset: 17% 0 -13% 22%; }
  .landing-product-bar { height: 24px; padding-bottom: 5px; }
  .landing-product img { aspect-ratio: 1.58; object-fit: cover; object-position: 56% center; border-radius: 10px; }
  .landing-product figcaption { padding: 8px 2px 0; font-size: 10px; line-height: 1.4; }
}

@media (max-width: 360px) {
  .brand { gap: 7px; }
  .brand-name { font-size: 17px; }
  .topbar { padding-inline: 9px; }
  .topbar-right { gap: 4px; }
  .ai-launch, .searchbox { width: 42px; min-width: 42px; flex-basis: 42px; }
  .tab { padding-inline: 10px; font-size: 11px; }
  .menu-btn { padding-inline: 10px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .ai-overlay { place-items: start center; padding-top: 6px; }
  .ai-panel { max-height: calc(100dvh - 6px); border-radius: 20px 20px 0 0; }
  .ai-panel .ai-mark { width: 34px; height: 34px; margin-bottom: 10px; }
  .ai-panel h2 { font-size: 22px; }
  .ai-panel label { margin-top: 14px; }
  .ai-panel textarea { min-height: 78px; }
}

@keyframes sheet-up {
  from { opacity: .65; transform: translateY(24px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Beam overview: a scrollable product presentation. */
.beam-story{display:grid;grid-template-columns:1.1fr 1fr;gap:64px;align-items:center}
.beam-story h2,.beam-crm h2{font-size:clamp(32px,4vw,58px);line-height:1.05;letter-spacing:-.045em}
.beam-story p,.beam-crm>p{font-size:18px;line-height:1.65;max-width:680px}
.beam-phone{background:#10151e;color:#fff;border:1px solid #334158;border-radius:34px;padding:26px;box-shadow:0 24px 60px #00193825;max-width:420px}
.beam-phone-head{font-weight:700;border-bottom:1px solid #334158;padding-bottom:20px;margin-bottom:24px;text-align:center}
.beam-phone-head span{display:block;font-size:12px;font-weight:400;color:#a6b5c9;margin-top:5px}
.beam-phone .beam-bubble{font-size:15px;line-height:1.5;padding:13px 16px;border-radius:20px;max-width:85%;margin:12px 0;position:relative}
.beam-phone .in{background:#293241;border-bottom-left-radius:5px}
.beam-phone .out{background:#087ef5;margin-left:auto;border-bottom-right-radius:5px}
.beam-bubble span{color:#ff758b;position:absolute;right:4px;top:-15px;background:#39465a;border:3px solid #10151e;border-radius:50%;padding:2px 7px}
.beam-phone-foot{font-size:12px;text-align:center;color:#a6b5c9;margin-top:26px}
.beam-crm{border-top:1px solid #7f94ab40;border-bottom:1px solid #7f94ab40;padding:70px 0}
.beam-flow{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:32px 0}
.beam-flow span{padding:20px 24px;border:1px solid #0a84ff66;border-radius:14px;background:#0a84ff0c;font-weight:650}
.beam-flow b{color:#0a84ff}
.beam-call{background:#0a84ff;color:white;padding:48px 32px;border-radius:28px;text-align:center}
.beam-call>span{display:block;text-transform:uppercase;font-size:11px;letter-spacing:.18em;margin-bottom:30px}
.beam-call strong{display:block;font-size:25px}.beam-call>div{font-size:40px;margin:20px}.beam-call p{font-size:14px;margin:30px 0 0}
@media(max-width:760px){.beam-story{grid-template-columns:1fr;gap:28px}.beam-phone{width:100%;max-width:420px;box-sizing:border-box;justify-self:center}.beam-flow{flex-direction:column;align-items:stretch}.beam-flow b{transform:rotate(90deg);text-align:center}.beam-crm{padding:40px 0}.beam-story p,.beam-crm>p{font-size:16px}}
