/* Gather Lines. The AgentMob / numberRank design system (Geist, grey scale, hairline
   shadows, 6px radius) with a landing page and the docs shell on top. Light and dark. */
@font-face { font-family: 'Geist'; src: url('/assets/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg-100: #fff; --bg-200: #fafafa;
  --gray-100: #f2f2f2; --gray-200: #ebebeb; --gray-500: #c9c9c9; --gray-700: #8f8f8f; --gray-900: #4d4d4d; --gray-1000: #171717;
  --alpha-200: #00000015; --alpha-400: #00000014; --alpha-600: #0000003d;
  --blue-100: #f0f7ff; --blue-400: #cce7ff; --blue-900: #0064e2; --blue-1000: #002453;
  --red-100: #ffeef0; --red-400: #ffd8d7; --red-900: #d60020;
  --green-100: #ecfdec; --green-400: #b9f5bc; --green-900: #107d32;
  --amber-100: #fff6e1; --amber-400: #ffdc9e; --amber-900: #a64f00;
  --shadow-border: 0 0 0 1px var(--alpha-400); --radius: 6px; --grid: #0000000a;
  --shadow-lift: 0 0 0 1px var(--alpha-400), 0 8px 24px -8px #0000001f;
  /* the dark "ink" panels (hero, code) stay dark in both themes */
  --ink: #050608; --ink-200: #0b0f16; --ink-line: #ffffff1f; --ink-text: #ededed; --ink-dim: #9aa3b2;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-100: #000; --bg-200: #0a0a0a;
    --gray-100: #1a1a1a; --gray-200: #1f1f1f; --gray-500: #454545; --gray-700: #8f8f8f; --gray-900: #a0a0a0; --gray-1000: #ededed;
    --alpha-200: #ffffff17; --alpha-400: #ffffff24; --alpha-600: #ffffff82;
    --blue-100: #06193a; --blue-400: #003771; --blue-900: #50a8ff; --blue-1000: #ebf6ff;
    --red-100: #330a11; --red-400: #6f101b; --red-900: #ff5e63;
    --green-100: #00250a; --green-400: #004616; --green-900: #00ca52;
    --amber-100: #291800; --amber-400: #5c3700; --amber-900: #f90;
    --grid: #ffffff0d; --shadow-lift: 0 0 0 1px var(--alpha-400), 0 8px 24px -8px #000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg-100: #000; --bg-200: #0a0a0a;
  --gray-100: #1a1a1a; --gray-200: #1f1f1f; --gray-500: #454545; --gray-700: #8f8f8f; --gray-900: #a0a0a0; --gray-1000: #ededed;
  --alpha-200: #ffffff17; --alpha-400: #ffffff24; --alpha-600: #ffffff82;
  --blue-100: #06193a; --blue-400: #003771; --blue-900: #50a8ff; --blue-1000: #ebf6ff;
  --red-100: #330a11; --red-400: #6f101b; --red-900: #ff5e63;
  --green-100: #00250a; --green-400: #004616; --green-900: #00ca52;
  --amber-100: #291800; --amber-400: #5c3700; --amber-900: #f90;
  --grid: #ffffff0d; --shadow-lift: 0 0 0 1px var(--alpha-400), 0 8px 24px -8px #000;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html, body { margin: 0; }
body { background: var(--bg-100); color: var(--gray-1000); font-family: var(--sans); font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; }
img { max-width: 100%; }
.mono, code, pre, kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--blue-900); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--bg-100); padding: 8px 12px; border-radius: var(--radius); box-shadow: var(--shadow-border); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: color-mix(in srgb, var(--bg-100) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); box-shadow: inset 0 -1px 0 var(--alpha-400); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gray-1000); flex: none; }
.brand img { display: block; height: 22px; width: auto; }
.brand .logo-d { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-l { display: none; } :root:not([data-theme="light"]) .brand .logo-d { display: block; } }
:root[data-theme="dark"] .brand .logo-l { display: none; }
:root[data-theme="dark"] .brand .logo-d { display: block; }
.brand-tag { font-size: 15px; font-weight: 500; color: var(--gray-900); padding-left: 10px; box-shadow: inset 1px 0 0 var(--alpha-600); line-height: 18px; }
.top-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--gray-900); }
.top-links a { text-decoration: none; transition: color .12s; }
.top-links a:hover, .top-links a.on { color: var(--gray-1000); }
.top .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.top-signin { font-size: 14px; color: var(--gray-900); text-decoration: none; white-space: nowrap; transition: color .12s; }
.top-signin:hover { color: var(--gray-1000); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: var(--radius); background: transparent; color: var(--gray-900); cursor: pointer; transition: background .12s, color .12s; }
.icon-btn:hover { background: var(--gray-100); color: var(--gray-1000); }
.theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; } }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.theme-toggle.spin svg { animation: spin .5s cubic-bezier(.16,1,.3,1); }
@keyframes spin { from { transform: rotate(-90deg) scale(.6); } }
.theming *, .theming *::before, .theming *::after { transition: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius); border: 0; cursor: pointer; background: var(--gray-1000); color: var(--bg-100); font: inherit; font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .12s, box-shadow .12s, transform .12s; }
.btn:hover { background: var(--gray-900); }
.btn:active { transform: scale(.98); }
.btn.lg { height: 48px; padding: 0 20px; }
.btn.secondary { background: var(--bg-100); color: var(--gray-1000); box-shadow: var(--shadow-border); }
.btn.secondary:hover { background: var(--gray-100); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; background: var(--bg-100); color: var(--gray-1000); box-shadow: var(--shadow-border); }
.btn.sm:hover { background: var(--gray-100); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(2px); }
/* buttons on ink */
.on-ink .btn { background: #fff; color: #0a0a0a; }
.on-ink .btn:hover { background: #d9e6f7; }
.on-ink .btn.secondary { background: #ffffff14; color: #fff; box-shadow: inset 0 0 0 1px #ffffff33; }
.on-ink .btn.secondary:hover { background: #ffffff24; }

.kicker { display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px; border-radius: 9999px; background: var(--gray-100); color: var(--gray-900); font-size: 12px; font-weight: 500; box-shadow: var(--shadow-border); }
.kicker .dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--green-900); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-900) 25%, transparent); }
.on-ink .kicker { background: #ffffff12; color: #c9d6ea; box-shadow: inset 0 0 0 1px #ffffff26; }
.on-ink .kicker .dot { background: #00ca52; box-shadow: 0 0 0 3px #00ca5240; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 9999px; font-size: 12px; line-height: 16px; font-weight: 500; background: var(--gray-100); color: var(--gray-1000); box-shadow: var(--shadow-border); white-space: nowrap; }
.chip.ok { background: var(--green-100); color: var(--green-900); box-shadow: 0 0 0 1px var(--green-400); }
.chip.blue { background: var(--blue-100); color: var(--blue-900); box-shadow: 0 0 0 1px var(--blue-400); }

/* ============================================================== LANDING */
.lp { overflow-x: clip; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* hero: an ink band with the filament image, readable in both themes */
.hero { position: relative; background: var(--ink); color: var(--ink-text); isolation: isolate; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -2; background: var(--ink) url('/assets/img/hero-filament.webp') 70% 30% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 18%, #050608d9 46%, #05060833 80%), linear-gradient(0deg, var(--ink) 0%, transparent 30%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 70%); mask-image: linear-gradient(90deg, #000 30%, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding: 96px 24px 104px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; margin: 22px 0 18px; max-width: 13ch; text-wrap: balance; }
.hero h1 .soft { color: #7fb8ff; }
.hero .lede { font-size: 17px; line-height: 27px; color: var(--ink-dim); max-width: 50ch; margin: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }
.hero .fine { margin: 18px 0 0; font-size: 13px; color: #7d8696; }

/* the claimed line, as a SIM card: clipped corner and a hairline across the cut */
.simcard { position: relative; background: #0b0f16e6; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px #ffffff26, 0 30px 80px -20px #000; border-radius: 10px; padding: 20px 22px 18px; clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); }
.simcard::after { content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px; pointer-events: none; background: linear-gradient(to bottom left, transparent calc(50% - 1px), #ffffff33 calc(50% - 1px), #ffffff33 calc(50% + 1px), transparent calc(50% + 1px)); }
.sim-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-dim); }
.sim-state { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 9999px; font-size: 12px; font-weight: 500; background: #00ca521a; color: #4be28b; box-shadow: inset 0 0 0 1px #00ca5240; }
.sim-state::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: currentColor; }
.sim-num { font-family: var(--mono); font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; letter-spacing: -.01em; margin: 14px 0 4px; color: #fff; white-space: nowrap; }
.sim-sub { font-size: 13px; color: var(--ink-dim); }
.sim-rows { display: grid; gap: 8px; margin: 18px 0 0; padding: 16px 0 0; box-shadow: inset 0 1px 0 var(--ink-line); }
.sim-rows div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 13px; }
.sim-rows dt { color: #7d8696; }
.sim-rows dd { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink-text); overflow-wrap: anywhere; }
.sim-rows .ok { color: #4be28b; }
.sim-chip { position: absolute; right: 22px; bottom: 18px; width: 44px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, #c9d6ea, #6c7a91); opacity: .9; box-shadow: inset 0 0 0 1px #ffffff55; }
.sim-chip::before, .sim-chip::after { content: ""; position: absolute; background: #0b0f1699; }
.sim-chip::before { left: 33%; right: 33%; top: 0; bottom: 0; box-shadow: inset 1px 0 0 #0b0f16, inset -1px 0 0 #0b0f16; background: transparent; }
.sim-chip::after { left: 0; right: 0; top: 50%; height: 1px; }
.term-mini { margin: 14px 0 0; border-radius: 10px; background: #000000b3; box-shadow: inset 0 0 0 1px #ffffff1f; padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 19px; color: #c9d6ea; overflow-x: auto; white-space: pre; }
.term-mini .pr { color: #4be28b; }
.term-mini .dim { color: #6b7485; }
.term-mini .k { color: #7fb8ff; }

/* facts strip */
.facts { box-shadow: inset 0 -1px 0 var(--alpha-400); background: var(--bg-100); }
.facts ul { list-style: none; margin: 0 auto; padding: 0 24px; max-width: 1120px; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 24px 20px 26px; box-shadow: inset -1px 0 0 var(--alpha-400); }
.facts li:first-child { padding-left: 0; }
.facts li:last-child { box-shadow: none; }
.facts b { display: block; font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.facts span { color: var(--gray-900); font-size: 13px; line-height: 18px; }

/* sections */
.sec { padding: 104px 0 0; }
.sec-head { max-width: 640px; margin: 0 0 40px; }
.eyebrow, .sec-head .eyebrow { font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-900); margin: 0 0 14px; }
.sec h2, .api-band h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; margin: 0 0 14px; text-wrap: balance; }
.sec-head p { font-size: 16px; line-height: 25px; color: var(--gray-900); margin: 0; }

/* how it works */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.steps3 li { position: relative; background: var(--bg-100); box-shadow: var(--shadow-border); border-radius: 10px; padding: 22px 22px 24px; counter-increment: s; transition: box-shadow .2s, transform .2s; }
.steps3 li:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.steps3 li::before { content: "0" counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius); background: var(--gray-100); box-shadow: var(--shadow-border); font-family: var(--mono); font-size: 12px; margin: 0 0 18px; }
.steps3 h3 { font-size: 17px; line-height: 24px; font-weight: 500; margin: 0 0 6px; }
.steps3 p { margin: 0; color: var(--gray-900); font-size: 14px; line-height: 21px; }
.steps3 code { font-size: 12px; background: var(--gray-100); padding: 1px 5px; border-radius: 4px; }
.flow { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--gray-900); }
.flow .st { height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 9999px; background: var(--bg-100); box-shadow: var(--shadow-border); color: var(--gray-1000); }
.flow .st.live { background: var(--green-100); color: var(--green-900); box-shadow: 0 0 0 1px var(--green-400); }
.flow .ar { color: var(--gray-700); }

/* feature split with an image panel */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.rev .art { order: -1; }
.art { position: relative; border-radius: 12px; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 11; box-shadow: var(--shadow-border); }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art .tag { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: 11px; color: #c9d6ea; background: #050608b3; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 5px 9px; border-radius: 9999px; box-shadow: inset 0 0 0 1px #ffffff26; }
.art .scan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, #50a8ff26 50%, transparent 51%); background-size: 100% 220%; animation: scan 6s linear infinite; mix-blend-mode: screen; }
@keyframes scan { from { background-position: 0 -120%; } to { background-position: 0 120%; } }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230064e2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 0 0 1px var(--blue-400); }
.ticks b { display: block; font-weight: 500; font-size: 15px; line-height: 21px; }
.ticks span { color: var(--gray-900); font-size: 14px; line-height: 21px; }

/* API band */
.api-band { margin: 104px 0 0; background: var(--ink); color: var(--ink-text); position: relative; isolation: isolate; overflow: hidden; }
.api-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url('/assets/img/signal-stipple.webp') center / cover no-repeat; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 85%); mask-image: linear-gradient(90deg, transparent 40%, #000 85%); }
.api-band .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.api-band h2 { color: #fff; }
.api-band .sec-head p { color: var(--ink-dim); }
.api-band .eyebrow, .api-band .sec-head .eyebrow { color: #7fb8ff; }
.routes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 6px; font-family: var(--mono); font-size: 12.5px; }
.routes li { display: flex; gap: 10px; align-items: center; color: #c9d6ea; }
.routes .m { width: 56px; flex: none; font-size: 11px; color: #7d8696; }
.routes a { color: inherit; text-decoration: none; }
.routes a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #ffffff55; }
.codewin { border-radius: 12px; background: #000000cc; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px #ffffff26, 0 30px 80px -20px #000; overflow: hidden; }
.codewin-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; box-shadow: inset 0 -1px 0 #ffffff1a; font-size: 12px; color: #7d8696; }
.codewin-bar i { width: 10px; height: 10px; border-radius: 9999px; background: #ffffff1f; }
.codewin-bar i + i { margin-left: -6px; }
.codewin-bar span { margin-left: 6px; font-family: var(--mono); }
.codewin pre { margin: 0; padding: 16px 18px 18px; font-size: 12.5px; line-height: 20px; color: #d7e0ee; overflow-x: auto; }
.codewin .c { color: #6b7485; } .codewin .s { color: #9fd0ff; } .codewin .k { color: #7fb8ff; } .codewin .g { color: #4be28b; } .codewin .n { color: #ffc56b; }

/* pricing / volume */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan { background: var(--bg-100); box-shadow: var(--shadow-border); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.plan h3 { font-size: 15px; line-height: 20px; font-weight: 500; margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan p { margin: 0; color: var(--gray-900); font-size: 14px; line-height: 21px; }
.plan.feat { background: var(--bg-200); box-shadow: 0 0 0 1px var(--blue-400), 0 12px 32px -16px color-mix(in srgb, var(--blue-900) 40%, transparent); }

/* rules row */
.rules4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.rules4 li { padding: 18px 0 0; box-shadow: inset 0 1px 0 var(--gray-1000); }
.rules4 b { display: block; font-weight: 500; font-size: 15px; margin: 0 0 6px; }
.rules4 span { color: var(--gray-900); font-size: 14px; line-height: 21px; }

/* call to action on the mist band */
.cta-band { margin: 104px 24px 0; border-radius: 16px; overflow: hidden; position: relative; isolation: isolate; background: #0a4fc4; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url('/assets/img/band-mist.webp') center / cover no-repeat; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #f7fbffeb 0%, #f7fbffb3 45%, transparent 85%); }
.cta-inner { max-width: 1072px; margin: 0 auto; padding: 72px 24px; color: #0a0a0a; }
.cta-inner h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; margin: 0 0 12px; max-width: 18ch; text-wrap: balance; }
.cta-inner p { font-size: 16px; line-height: 25px; color: #2b3445; max-width: 52ch; margin: 0 0 28px; }
.cta-inner .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-inner .btn { background: #0a0a0a; color: #fff; }
.cta-inner .btn:hover { background: #26303f; }
.cta-inner .btn.secondary { background: #ffffffcc; color: #0a0a0a; box-shadow: 0 0 0 1px #0000001f; }
.cta-inner .btn.secondary:hover { background: #fff; }

.site-foot { margin: 88px 0 0; padding: 28px 0 40px; box-shadow: inset 0 1px 0 var(--alpha-400); color: var(--gray-900); font-size: 13px; line-height: 18px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--gray-1000); }

/* entrance */
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.js .rise.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; gap: 40px; }
  .hero::before { background: linear-gradient(180deg, #050608cc 0%, #050608e6 55%, var(--ink) 100%); }
  .split, .api-band .wrap { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .art { order: 0; }
  .steps3, .plans { grid-template-columns: 1fr; }
  .rules4 { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(2) { box-shadow: none; }
  .facts li:nth-child(3) { padding-left: 0; }
  .facts li:nth-child(n+3) { box-shadow: inset 0 1px 0 var(--alpha-400); }
  .facts li:nth-child(3) { box-shadow: inset -1px 0 0 var(--alpha-400), inset 0 1px 0 var(--alpha-400); }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top { padding: 0 12px; gap: 10px; }
  .top-links { gap: 0; }
  .top-links a:not([href="/docs"]) { display: none; }
  .docs .top-links { display: none; } /* already in the docs */
  .top .btn { margin-left: auto; }
  .top .theme-toggle { margin-left: auto; }
  .top .top-signin ~ .btn, .top .theme-toggle ~ .btn { margin-left: 0; }
  .hero-grid { padding-left: 16px; padding-right: 16px; }
  .sec { padding-top: 72px; }
  .rules4 { grid-template-columns: 1fr; }
  .facts ul { padding: 0 16px; }
  .facts li { padding: 18px 12px 20px; }
  .cta-band { margin: 72px 16px 0; }
  .cta-inner { padding: 48px 20px; }
  .cta-band::after { background: linear-gradient(180deg, #f7fbffeb 0%, #f7fbffcc 100%); }
  .sim-rows div { grid-template-columns: 80px minmax(0, 1fr); }
  .simcard { padding-bottom: 66px; }
}

@media (max-width: 400px) { .top-signin { display: none; } } /* "Get started" leads to sign-in too */

/* ================================================================= DOCS */
.docs .top .brand-tag { color: var(--gray-1000); }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
.shell.has-rail { grid-template-columns: 248px minmax(0, 1fr) 216px; }
.nav-collapsed .shell { grid-template-columns: 0 minmax(0, 1fr); }
.nav-collapsed .shell.has-rail { grid-template-columns: 0 minmax(0, 1fr) 216px; }
.nav-collapsed .side { visibility: hidden; }

.side { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 24px 16px 40px 20px; box-shadow: inset -1px 0 0 var(--alpha-400); scrollbar-width: thin; }
.side-top { display: grid; gap: 2px; padding: 0 0 16px; margin: 0 0 16px; box-shadow: inset 0 -1px 0 var(--alpha-400); }
.side a { display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: var(--radius); text-decoration: none; color: var(--gray-900); font-size: 14px; transition: background .12s, color .12s; }
.side a:hover { background: var(--gray-100); color: var(--gray-1000); }
.side a.on { background: var(--gray-100); color: var(--gray-1000); font-weight: 500; box-shadow: var(--shadow-border); }
.side a.mono { font-size: 13px; }
.nav-group { margin: 0 0 18px; }
.nav-title { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--gray-900); padding: 0 10px; margin: 0 0 6px; }

.shell main { min-width: 0; padding: 40px 48px 0; max-width: 860px; width: 100%; justify-self: center; }
.page-head { padding: 0 0 24px; margin: 0 0 28px; box-shadow: inset 0 -1px 0 var(--alpha-400); position: relative; }
.page-head .crumb { font-family: var(--mono); font-size: 12px; color: var(--blue-900); margin: 0 0 12px; letter-spacing: .02em; }
.page-head h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; margin: 0 0 10px; text-wrap: balance; }
.page-head .lede { color: var(--gray-900); font-size: 16px; line-height: 25px; max-width: 62ch; margin: 0; }
.modes { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 0; }
.seg { display: inline-flex; padding: 2px; border-radius: 9999px; background: var(--gray-100); box-shadow: var(--shadow-border); }
.seg-btn { height: 28px; padding: 0 12px; border: 0; border-radius: 9999px; background: transparent; color: var(--gray-900); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: color .12s, background .12s; }
.seg-btn:hover { color: var(--gray-1000); }
.seg-btn.on { background: var(--bg-100); color: var(--gray-1000); box-shadow: var(--shadow-border); }
.docs-hero { position: relative; height: 132px; border-radius: 10px; overflow: hidden; margin: 0 0 28px; background: var(--ink) url('/assets/img/hero-filament.webp') 60% 35% / cover no-repeat; box-shadow: var(--shadow-border); }
.docs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #050608 0%, #05060800 60%); }

/* reading modes */
.view { display: none; }
body[data-mode="human"] .view-human, body[data-mode="raw"] .view-raw, body[data-mode="agent"] .view-agent { display: block; }
.switching .view { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* prose */
article.view-human { font-size: 15px; line-height: 25px; color: var(--gray-900); }
article h2 { font-size: 22px; line-height: 30px; letter-spacing: -.015em; font-weight: 600; color: var(--gray-1000); margin: 44px 0 10px; }
article h3 { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--gray-1000); margin: 28px 0 8px; }
article > :first-child { margin-top: 0; }
article p { margin: 0 0 16px; }
article ul, article ol { padding-left: 22px; margin: 0 0 16px; }
article li { margin: 0 0 6px; }
article li::marker { color: var(--gray-700); }
article strong { color: var(--gray-1000); font-weight: 500; }
article a { color: var(--gray-1000); text-underline-offset: 3px; text-decoration-color: var(--gray-500); transition: text-decoration-color .12s; }
article a:hover { text-decoration-color: var(--gray-1000); }
article hr { border: 0; height: 1px; background: var(--alpha-400); margin: 36px 0 20px; }
article :not(pre) > code { font-size: 13px; background: var(--gray-100); color: var(--gray-1000); padding: 1px 5px; border-radius: 4px; box-shadow: var(--shadow-border); }
article pre { position: relative; background: var(--ink); color: #d7e0ee; border-radius: 10px; padding: 14px 16px; margin: 0 0 18px; overflow-x: auto; font-size: 12.5px; line-height: 20px; box-shadow: inset 0 0 0 1px #ffffff14; }
article pre code { background: none; padding: 0; box-shadow: none; color: inherit; }
.copy-code { position: absolute; top: 8px; right: 8px; height: 24px; padding: 0 8px; border: 0; border-radius: 5px; background: #ffffff14; color: #c9d6ea; font: 500 11px var(--sans); cursor: pointer; opacity: 0; transition: opacity .15s, background .12s; }
article pre:hover .copy-code, .copy-code:focus-visible { opacity: 1; }
.copy-code:hover { background: #ffffff26; }
.copy-code.done { color: #4be28b; opacity: 1; }
article .tbl { margin: 0 0 20px; border-radius: var(--radius); box-shadow: var(--shadow-border); overflow-x: auto; }
article table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 20px; }
article td code { white-space: nowrap; }
article .tbl table { min-width: 560px; } /* narrow screens scroll the table instead of squeezing its prose column */
article th, article td { text-align: left; padding: 10px 14px; box-shadow: inset 0 -1px 0 var(--alpha-400); vertical-align: top; }
article tr:last-child td { box-shadow: none; }
article th { font-size: 12px; font-weight: 500; color: var(--gray-900); background: var(--bg-200); white-space: nowrap; }
article td:first-child { color: var(--gray-1000); }
article blockquote { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius); background: var(--blue-100); box-shadow: 0 0 0 1px var(--blue-400); color: var(--blue-1000); font-size: 14px; line-height: 21px; }
article blockquote p { margin: 0; }
article blockquote strong { color: inherit; }
article blockquote.caution { background: var(--amber-100); box-shadow: 0 0 0 1px var(--amber-400); color: var(--amber-900); }

/* raw markdown */
.md-lines { border-radius: 10px; box-shadow: var(--shadow-border); background: var(--bg-200); padding: 12px 0; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 20px; }
.md-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); }
.md-row .ln { text-align: right; padding-right: 14px; color: var(--gray-700); user-select: none; }
.md-row .lt { white-space: pre; color: var(--gray-1000); padding-right: 16px; }

/* agent view */
.term { background: var(--ink); color: #d7e0ee; border-radius: 10px; padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 20px; box-shadow: inset 0 0 0 1px #ffffff14; overflow-x: auto; }
.term .pr { color: #4be28b; margin-right: 6px; }
.term .dim { color: #6b7485; margin: 2px 0 12px; }
.term .peek { white-space: pre; color: #aeb8c8; }
.term .acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; }
.btn.on-term { height: 28px; padding: 0 10px; font-size: 12px; background: #ffffff14; color: #fff; box-shadow: inset 0 0 0 1px #ffffff26; }
.btn.on-term:hover { background: #ffffff26; }

/* on this page */
.rail { position: sticky; top: 64px; height: calc(100vh - 64px); padding: 44px 20px 0 8px; }
.rail-title { font-size: 12px; font-weight: 500; color: var(--gray-700); margin: 0 0 12px; }
.rail-list { position: relative; display: grid; gap: 2px; padding-left: 14px; }
.rail-track, .rail-fill { position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--alpha-400); }
.rail-fill { background: var(--blue-900); transform-origin: top; transform: scaleY(0); }
.rail a { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 13px; line-height: 18px; color: var(--gray-900); text-decoration: none; transition: color .12s; }
.rail a:hover, .rail a.on { color: var(--gray-1000); }
.rail a.on { font-weight: 500; }
.rail .sdot { display: none; }

.foot { margin: 64px 0 0; padding: 20px 0 40px; box-shadow: inset 0 1px 0 var(--alpha-400); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 13px; color: var(--gray-900); }
.foot-links { display: flex; gap: 16px; }
.foot a { text-decoration: none; font-family: var(--mono); font-size: 12px; }
.foot a:hover { color: var(--gray-1000); }

@media (max-width: 1180px) { .shell.has-rail, .nav-collapsed .shell.has-rail { grid-template-columns: 248px minmax(0, 1fr); } .nav-collapsed .shell.has-rail { grid-template-columns: 0 minmax(0, 1fr); } .rail { display: none; } }
@media (max-width: 860px) {
  .shell, .shell.has-rail, .nav-collapsed .shell, .nav-collapsed .shell.has-rail { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 25; top: 64px; left: 0; bottom: 0; width: min(300px, 86vw); height: auto; background: var(--bg-100); box-shadow: var(--shadow-lift); transform: translateX(-102%); transition: transform .25s cubic-bezier(.16,1,.3,1); visibility: visible !important; }
  .nav-open .side { transform: none; }
  .nav-open::after { content: ""; position: fixed; inset: 64px 0 0; z-index: 20; background: #0006; }
  .shell main { padding: 28px 16px 0; }
  .docs-hero { height: 96px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .js .rise { opacity: 1; transform: none; } }

/* ================================================================ LEGAL */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 24px; }
.legal-head { padding: 0 0 22px; margin: 0 0 24px; box-shadow: inset 0 -1px 0 var(--alpha-400); }
.legal-head .crumb { font-family: var(--mono); font-size: 12px; color: var(--blue-900); margin: 0 0 12px; letter-spacing: .02em; }
.legal-head h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; margin: 0 0 10px; }
.legal-head .lede { color: var(--gray-900); font-size: 16px; line-height: 25px; margin: 0 0 10px; }
.legal-meta { font-size: 13px; color: var(--gray-900); margin: 0; }
.legal-toc { margin: 0 0 32px; padding: 16px 20px; border-radius: 10px; background: var(--bg-200); box-shadow: var(--shadow-border); }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 14px; line-height: 24px; }
.legal-toc li { break-inside: avoid; }
.legal-toc a { color: var(--gray-1000); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-body { font-size: 15px; line-height: 25px; color: var(--gray-900); }
.legal-body h2 { scroll-margin-top: 88px; }
@media (max-width: 600px) { .legal { padding: 36px 16px 16px; } .legal-toc ol { columns: 1; } }
