/* CoreModels stg — infra register. Design system: docs/design/stg-infra/ADVISOR-01-fable.md
   Roles: purple = brand surface + action · teal = signal (live, metered, success) · blue = links/info. */
:root {
  --p-950: #0e0a1f; --p-900: #1a1333; --p-800: #2a1f55; --p-700: #3d2b82;
  --p-600: #5b3fc4; --p-500: #7c5cff; --p-400: #9f85ff; --p-300: #c4b3ff;
  --teal: #00d4aa; --teal-dim: rgb(0 212 170 / .14);
  --blue: #6b9fe8; --blue-base: #2e5eaa;
  --bg-0: #0a0c12; --bg-1: #0f1419; --bg-2: #151b24; --card: #1a2230;
  --t-1: #f4f6fa; --t-2: #b4bcc8; --t-3: #7b8594;
  --line: rgb(255 255 255 / .08); --line-hi: rgb(255 255 255 / .14); --hi: rgb(255 255 255 / .04);
  --r-s: 6px; --r-m: 10px; --r-l: 14px;
  --ease-in: cubic-bezier(.2, 0, 0, 1); --ease-out: cubic-bezier(.4, 0, 1, 1);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1200px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-0); color: var(--t-1); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
code, pre, .mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 48px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--p-500); outline-offset: 2px; border-radius: 4px; }

/* Preview ribbon */
.ribbon { background: var(--p-900); border-bottom: 1px solid var(--line); color: var(--p-300); font: 500 12px/1 var(--mono); letter-spacing: .04em; text-align: center; padding: 9px 16px; }
.ribbon a { color: var(--t-1); text-decoration: underline; text-underline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(10 12 18 / .78); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; max-width: 1280px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 24px; height: 24px; }
.nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 22px; font-size: 14px; color: var(--t-2); }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--t-1); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (min-width: 860px) { .nav ul { display: flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-s); font: 500 14px/1 var(--sans); border: 1px solid transparent; cursor: pointer; transition: background .15s var(--ease-in), border-color .15s var(--ease-in), transform .15s var(--ease-in); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--p-600); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .14); }
.btn-primary:hover { background: var(--p-500); }
.btn-ghost { background: transparent; color: var(--t-1); border-color: var(--line-hi); }
.btn-ghost:hover { border-color: rgb(255 255 255 / .28); background: var(--hi); }
.btn-quiet { color: var(--t-2); height: 36px; padding: 0 10px; }
.btn-quiet:hover { color: var(--t-1); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn .k { font: 500 11px/1 var(--mono); color: var(--p-300); border: 1px solid rgb(255 255 255 / .18); padding: 3px 5px; border-radius: 4px; }

/* Type */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--p-300); display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-dim); animation: pulse 2.4s var(--ease-in) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(0 212 170 / 0); } }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
h3 { font-size: 18px; line-height: 1.3; }
.lede { color: var(--t-2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 620px; }
.muted { color: var(--t-3); }
.grad { background: linear-gradient(180deg, #fff 30%, var(--p-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; background: radial-gradient(50% 50% at 50% 30%, rgb(91 63 196 / .32), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 48px; padding-top: 88px; padding-bottom: 88px; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; padding-top: 112px; padding-bottom: 112px; } }
.hero h1 { margin: 20px 0 22px; }
/* S10: home hero type scale. The ruled h1 is smaller and the sub-line larger, so the sub-line reads at a glance
   (sub-line >= 18px desktop / >= 16px phone, h1 <= ~2.6x the sub-line). Home only; /agent-ready keeps .ar-hero. */
.hero-home h1 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -.03em; }
.hero-home .lede { font-size: clamp(18px, 1.75vw, 22px); line-height: 1.5; max-width: 600px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { margin-top: 16px; font: 400 13px/1.5 var(--mono); color: var(--t-3); }
.fine b { color: var(--teal); font-weight: 500; }

/* Terminal */
.term { background: rgb(10 12 18 / .86); border: 1px solid var(--line-hi); border-radius: var(--r-l); box-shadow: 0 0 0 1px rgb(124 92 255 / .08), 0 30px 80px -30px rgb(91 63 196 / .5); overflow: hidden; backdrop-filter: blur(6px); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--t-3); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3140; }
.term-bar span { margin-left: 8px; }
.term-bar .meter { margin-left: auto; color: var(--teal); }
.term pre { margin: 0; padding: 18px 18px 22px; font-size: 13px; line-height: 1.75; min-height: 318px; color: var(--t-2); white-space: pre-wrap; }
.term .c { color: var(--t-3); } .term .p { color: var(--p-400); } .term .ok { color: var(--teal); } .term .w { color: var(--t-1); }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--p-400); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Stat ticker */
.ticker { border-bottom: 1px solid var(--line); background: var(--bg-1); }
.ticker .wrap { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .ticker .wrap { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 22px 0; border-right: 1px solid var(--line); padding-left: 20px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat .n { font: 500 26px/1.1 var(--mono); letter-spacing: -.02em; }
.stat .l { font-size: 13px; color: var(--t-3); margin-top: 6px; }

/* Sections */
section { padding: 104px 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 720px; }
.alt { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Playground */
.play { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
@media (min-width: 960px) { .play { grid-template-columns: 1fr 1fr; } }
.pane { background: var(--bg-0); display: flex; flex-direction: column; min-height: 420px; }
.pane-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--t-3); }
.pane-h .sp { margin-left: auto; display: flex; gap: 6px; }
.chip { font: 500 11px/1 var(--mono); padding: 6px 8px; border-radius: 4px; border: 1px solid var(--line-hi); color: var(--t-2); background: transparent; cursor: pointer; }
.chip:hover, .chip[aria-pressed="true"] { color: var(--t-1); border-color: var(--p-500); background: rgb(124 92 255 / .1); }
textarea { flex: 1; width: 100%; resize: none; border: 0; outline: 0; background: transparent; color: var(--t-1); font: 400 13px/1.7 var(--mono); padding: 16px; tab-size: 2; }
.out { flex: 1; padding: 16px; overflow: auto; }
.err { color: #ff8a8a; font: 400 13px/1.6 var(--mono); }
.typ { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-2); margin-bottom: 12px; animation: rise .35s var(--ease-in) both; }
.typ-h { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); font: 600 13px/1 var(--mono); }
.typ-h span { color: var(--t-3); font-weight: 400; }
.typ ul { list-style: none; margin: 0; padding: 6px 12px 10px; }
.typ li { display: flex; justify-content: space-between; font: 400 12px/2 var(--mono); color: var(--t-2); }
.typ li em { font-style: normal; color: var(--blue); }
.typ li .req { color: var(--teal); }
.bill { border-top: 1px solid var(--line); padding: 12px 16px; display: grid; gap: 6px; font: 400 12px/1.5 var(--mono); color: var(--t-2); background: var(--bg-1); }
.bill div { display: flex; justify-content: space-between; }
.bill .tot { color: var(--t-1); border-top: 1px dashed var(--line-hi); padding-top: 6px; }
.bill .tot b { color: var(--teal); font-weight: 500; }
.play-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Connector marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: slide 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 500 13px/1 var(--mono); color: var(--t-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 11px 14px; background: var(--bg-2); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Cards / grid */
.grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; box-shadow: inset 0 1px 0 var(--hi); transition: border-color .18s var(--ease-in), transform .18s var(--ease-in); }
.card:hover { border-color: var(--line-hi); }
a.card:hover { transform: translateY(-2px); }
.card .step { font: 500 12px/1 var(--mono); color: var(--p-300); margin-bottom: 18px; display: block; }
.card p { color: var(--t-2); margin: 10px 0 0; font-size: 15px; }
.card pre { margin: 16px 0 0; background: var(--bg-0); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px; font-size: 12px; line-height: 1.6; color: var(--t-2); overflow-x: auto; }
.lane { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }

/* Rates table */
.rates { width: 100%; border-collapse: collapse; font-size: 14px; }
.rates th, .rates td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.rates th { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--t-3); }
.rates td.num { font-family: var(--mono); text-align: right; color: var(--t-1); white-space: nowrap; }
.rates td .muted { display: block; font-size: 13px; }
.table-shell { border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--bg-0); }

/* Plans */
.plan { display: flex; flex-direction: column; }
.plan .price { font: 500 36px/1 var(--mono); letter-spacing: -.03em; margin: 18px 0 4px; }
.plan .price small { font-size: 14px; color: var(--t-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; font-size: 14px; color: var(--t-2); }
.plan li::before { content: "→ "; color: var(--p-400); font-family: var(--mono); }
.plan .btn { margin-top: auto; justify-content: center; }
.plan.hl { border-color: rgb(124 92 255 / .55); background: linear-gradient(180deg, rgb(91 63 196 / .14), var(--card) 40%); }
.tag { position: absolute; top: 16px; right: 16px; font: 500 11px/1 var(--mono); color: var(--p-300); border: 1px solid rgb(124 92 255 / .4); padding: 5px 7px; border-radius: 4px; }

/* Credit meter (start page) */
.meterbar { height: 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.meterbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--p-600), var(--p-400)); transition: width 1.2s var(--ease-in); }
.steps { counter-reset: s; display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-1); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 13px/34px var(--mono); color: var(--p-300); text-align: center; border: 1px solid var(--line-hi); border-radius: var(--r-s); height: 34px; }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--t-2); font-size: 14px; }

/* Close + footer */
.close { text-align: center; position: relative; overflow: hidden; }
.close::before { content: ""; position: absolute; inset: auto 0 -60% 0; height: 120%; background: radial-gradient(40% 50% at 50% 50%, rgb(91 63 196 / .25), transparent 70%); pointer-events: none; }
.close .wrap { position: relative; }
.close h2 { font-size: clamp(32px, 4.4vw, 56px); }
.close .cta-row { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--t-3); }
footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { footer .cols { grid-template-columns: 2fr repeat(4, 1fr); } }
footer h4 { margin: 0 0 12px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--t-2); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a:hover { color: var(--t-1); }
footer .legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--t-2); }

/* Reveal */
.rv { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease-in), transform .4s var(--ease-in); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .term pre { white-space: pre; overflow-x: auto; font-size: 11.5px; min-height: 0; }
  .term-bar span:not(.meter) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pane { min-height: 320px; }
  section { padding: 72px 0; }
}

/* Hero instrument: our own schema graph, drawn once, above the terminal */
.instrument { display: grid; gap: 14px; }
.schema-graph { width: 100%; height: auto; max-height: 240px; }
.schema-graph .box rect { fill: var(--bg-2); stroke: var(--line-hi); }
.schema-graph text { font: 400 11px var(--mono); fill: var(--t-2); }
.schema-graph text.t { font-weight: 500; font-size: 12px; fill: var(--t-1); }
.schema-graph .edges path { fill: none; stroke: var(--p-500); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease-in) .3s forwards; }
.schema-graph .edges path:nth-child(2) { animation-delay: .7s; }
.schema-graph .edges path:nth-child(3) { animation-delay: 1.1s; }
.schema-graph .nodes circle { fill: var(--teal); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .schema-graph .edges path { stroke-dashoffset: 0; } }
@media (hover: none) { .btn .k { display: none; } }
@media (max-width: 640px) {
  .term pre { font-size: 11px; }
  .schema-graph { max-height: 180px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(2) { border-right: 0; }
}

/* ---- Light direction (Grok's proposal) — same layout, paper page, one dark instrument ---- */
html[data-theme="light"] {
  color-scheme: light;
  --bg-0: #f7f6f3; --bg-1: #ffffff; --bg-2: #f1efea; --card: #ffffff;
  --t-1: #12141a; --t-2: #3f4752; --t-3: #5c6570;
  --line: rgb(18 20 26 / .10); --line-hi: rgb(18 20 26 / .18); --hi: rgb(255 255 255 / .6);
  --teal-text: #067a62; --blue: #1e3f78;
}
html[data-theme="light"] .ribbon { background: #ede7f8; color: var(--p-700); }
html[data-theme="light"] .ribbon a { color: var(--p-800); }
html[data-theme="light"] .nav { background: rgb(247 246 243 / .82); }
html[data-theme="light"] .grad { background: linear-gradient(180deg, #12141a 35%, var(--p-700)); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .hero::before { background: radial-gradient(50% 50% at 50% 30%, rgb(124 92 255 / .14), transparent 70%); }
html[data-theme="light"] .close::before { background: radial-gradient(40% 50% at 50% 50%, rgb(124 92 255 / .12), transparent 70%); }
html[data-theme="light"] .eyebrow, html[data-theme="light"] .card .step, html[data-theme="light"] .tag { color: var(--p-700); }
html[data-theme="light"] .fine b, html[data-theme="light"] .lane, html[data-theme="light"] .bill .tot b, html[data-theme="light"] .typ li .req { color: var(--teal-text); }
html[data-theme="light"] .btn-ghost:hover { background: rgb(18 20 26 / .04); border-color: rgb(18 20 26 / .3); }
html[data-theme="light"] .plan.hl { background: linear-gradient(180deg, rgb(124 92 255 / .08), #fff 40%); }
html[data-theme="light"] .card { box-shadow: none; }
/* the instrument stays dark in both directions */
html[data-theme="light"] .term { --t-1: #f4f6fa; --t-2: #b4bcc8; --t-3: #7b8594; --line: rgb(255 255 255 / .08); --line-hi: rgb(255 255 255 / .14); background: #140c24; color-scheme: dark; }
html[data-theme="light"] .schema-graph .box rect { fill: #fff; stroke: rgb(18 20 26 / .18); }
html[data-theme="light"] .card pre, html[data-theme="light"] .steps code { background: #140c24; color: #b4bcc8; border-color: transparent; }
.themes { display: inline-flex; gap: 6px; margin-left: 4px; }
.themes a[aria-current] { color: var(--t-1); text-decoration: none; font-weight: 600; }
@media (min-width: 1100px) { .g5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 700px) and (max-width: 1099px) { .g5 { grid-template-columns: repeat(2, 1fr); } }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { font: 500 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--t-3); }
.cmp td:first-child { color: var(--t-2); }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-0); }
html[data-theme="light"] .btn .k { color: var(--p-700); border-color: rgb(18 20 26 / .2); }

/* ---- P7 build-out components (connectors, recipes, use articles). Tokens only: both themes follow. ---- */
.crumbs { font: 500 12px/1.4 var(--mono); color: var(--t-3); margin: 0 0 22px; }
.crumbs a { color: var(--t-2); } .crumbs a:hover { color: var(--t-1); }
.conn img { margin-bottom: 14px; border-radius: 6px; }
.conn-head .eyebrow img { display: inline-block; vertical-align: -4px; margin-right: 8px; border-radius: 4px; }
.badge { display: inline-block; font: 500 11px/1 var(--mono); padding: 4px 6px; border-radius: 4px; border: 1px solid var(--line-hi); color: var(--t-2); vertical-align: 1px; }
.badge-ga { color: var(--teal); border-color: rgb(0 212 170 / .4); }
.badge-early-access { color: var(--p-300); border-color: rgb(124 92 255 / .4); }
.badge-held { color: var(--t-3); }
.bridge { padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bridge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.bridge-row .fine { margin: 0; }
.prose { max-width: 760px; color: var(--t-2); }
.prose h2, .prose h3, .prose h4 { color: var(--t-1); margin: 36px 0 12px; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 20px; } .prose h4 { font-size: 17px; }
.prose p, .prose li { font-size: 16px; } .prose li { margin: 6px 0; }
.prose a { color: var(--t-1); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-size: .9em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.prose pre { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { margin: 16px 0; padding: 2px 16px; border-left: 2px solid var(--p-500); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.md-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.md-table th, .md-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-table th { color: var(--t-1); font-weight: 500; }
.use-group { margin: 36px 0 0; }
.use-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.use-list li { border-bottom: 1px solid var(--line); }
.use-list a { display: block; padding: 14px 0; }
.use-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.use-list b { color: var(--t-1); font-weight: 500; display: block; }
.use-list span:not(.badge) { color: var(--t-3); font-size: 14px; display: block; margin-top: 4px; }
html[data-theme="light"] .badge-ga { color: #00795f; } html[data-theme="light"] .badge-early-access { color: var(--p-600); }

/* P7 lane 2 — 390px overflow fix (measured 2026-10-25): grid and flex children may shrink below their content,
   wide blocks scroll inside themselves, long words wrap. No fixed widths inside .wrap. */
.wrap > *, .grid > *, .play > *, .pane, .ticker .wrap > *, footer .cols > *, .hero .wrap > * { min-width: 0; }
.hero .wrap, .play, .grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }
@media (min-width: 960px) { .play { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 1099px) { .g5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .g5 { grid-template-columns: repeat(5, 1fr); } }
.term, pre, .table-shell, .cmp-wrap { max-width: 100%; }
pre { overflow-x: auto; }
h1, h2, h3, .lede, .fine, .ribbon { overflow-wrap: anywhere; }
.prose table { display: block; max-width: 100%; overflow-x: auto; } .prose code, .prose p, .prose li { overflow-wrap: anywhere; }
@media (max-width: 480px) { .nav .wrap { gap: 10px; } .nav .right { gap: 6px; } .nav .right .btn { padding-left: 12px; padding-right: 12px; } .brand { flex-shrink: 0; } }

/* Recipe finder (P10): search box + chip filters on the home and /recipes */
.rf { display: grid; gap: 12px; margin-bottom: 28px; }
.rf-q { width: 100%; max-width: 520px; font: 400 16px/1.4 var(--sans); color: var(--t-1); background: var(--bg-2); border: 1px solid var(--line-hi); border-radius: var(--r-m); padding: 11px 14px; }
.rf-q:focus { border-color: var(--p-500); outline: none; }
.rf-label { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--t-3); }
.rf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rf-chips .rf-label { margin-right: 6px; min-width: 76px; }
.rf-count { margin: 0; min-height: 1.6em; color: var(--t-2); font-size: 14px; }
.rf [data-rf-clear] { justify-self: start; }
.rf-all { margin: 20px 0 0; font-size: 15px; }
.rf-all a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.no-js .rf { display: none; }
html[data-theme="light"] .rf-q { background: #fff; }
[hidden] { display: none !important; } /* .card, .grid and section set display; the hidden attribute must still win */

/* /agent-ready (P10): hero proof list, the default figure (AgentReadyContent .dia) and RecordToAnswer (arv-, same tokens) */
.ar-hero h1 { font-size: clamp(34px, 4.6vw, 56px); }
.ar-proof { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ar-proof li { font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 99px; border: 1px solid rgb(0 212 170 / .4); color: var(--teal); }
.ar-dia { margin: 0; background: #0e1726; border: 1px solid var(--line-hi); border-radius: var(--r-l); padding: 28px; color: #9fd8c8; font: 14px/1.5 var(--mono); align-self: center; }
.ar-node { border: 1px solid #3b4656; border-radius: var(--r-m); padding: 12px 14px; margin: 10px 0 16px; color: #e4e7eb; }
.ar-node:last-child { margin-bottom: 0; } .ar-mint { border-color: #9fd8c8; } .ar-warm { border-color: #f5b37a; color: #f5b37a; }
.ar-prose h3 { color: var(--t-1); }
.arv-rta { margin: 0; background: #0e1726; border: 1px solid var(--line-hi); border-radius: var(--r-l); padding: 24px; color: #e4e7eb; font-size: 15px; line-height: 1.45; }
.arv-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.arv-step { border: 1px solid #3b4656; border-radius: 12px; padding: 14px 16px; } .arv-step p { margin: 0; }
.arv-label { font-weight: 600; color: #fff; } .arv-source { margin-top: 2px !important; font: 13px var(--mono); color: #9fa9b7; }
.arv-rec { margin: 8px 0 0; padding: 0; background: none; border: 0; color: #9fd8c8; font: 15px/1.55 var(--mono); white-space: pre-wrap; } .arv-answer { color: #f5b37a; }
.arv-guess { margin-top: 8px !important; display: flex; flex-wrap: wrap; gap: 6px 10px; font: 14px var(--mono); } .arv-unknown { color: #fff; font-weight: 600; }
.arv-g { color: #9fa9b7; text-decoration: line-through; text-decoration-color: #f5b37a; opacity: .6; }
.arv-says { margin-top: 6px !important; font-size: 14px; color: #c4ccd6; }
.arv-chips { margin-top: 10px !important; display: flex; flex-wrap: wrap; gap: 8px; }
.arv-chip { border: 1px solid #9fd8c8; color: #9fd8c8; border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 600; } .arv-s3 { border-color: #f5b37a; }
.arv-cap { margin: 12px 0 0; font-size: 13px; color: #9fa9b7; }
@media (prefers-reduced-motion: no-preference) { .arv-s2 { animation: arvReveal .6s ease-out 1.6s both; } .arv-s3 { animation: arvReveal .6s ease-out 2.6s both; } }
@keyframes arvReveal { from { opacity: .18; } to { opacity: 1; } }
html[data-theme="light"] .ar-proof li { color: #00795f; }
.ar-hero h1 code { font-size: .86em; overflow-wrap: anywhere; }

/* S11: "Get started with your agent". The copy-prompt CTA sits beside the start CTA as an equal major CTA: the same
   .btn-lg box and weight, with an inverse fill (light on dark, dark on light) so the two read as a pair, not one twice.
   The hero instrument is the same button at a larger size: a preview of the prompt it copies. */
.btn-agent { background: var(--t-1); color: var(--bg-0); box-shadow: inset 0 -1px 0 rgb(0 0 0 / .12); }
.btn-agent:hover { background: color-mix(in srgb, var(--t-1) 88%, var(--p-500)); }
.btn:focus-visible, .term-copy:focus-visible { outline: 2px solid var(--p-400); outline-offset: 3px; }
.btn-agent.is-copied { background: var(--teal); color: #04120e; }
.term-copy { display: block; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s var(--ease-in), transform .15s var(--ease-in); }
.term-copy:hover { border-color: var(--p-400); }
.term-copy:active { transform: translateY(1px); }
.term-copy .term-pre { display: block; margin: 0; padding: 18px 18px 8px; font: 400 13px/1.7 var(--mono); color: var(--t-2); white-space: pre-wrap; max-height: 236px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.term-copy .term-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 14px 14px; padding: 12px 16px; border-radius: var(--r-s); background: #f4f6fa; color: #0a0c12; font: 600 15px/1.2 var(--sans); } /* the instrument stays dark in both themes */
.term-copy .term-cta .k { font: 500 11px/1 var(--mono); color: inherit; opacity: .7; border: 1px solid currentColor; padding: 3px 5px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
.term-copy.is-copied .term-cta { background: var(--teal); color: #04120e; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 720px) { .term-copy .term-pre { font-size: 11.5px; max-height: 170px; } }

/* ---- Home positioning section (page.json `positioning`, schema rev 6): the agent build lifecycle graphic.
   Desktop: five stage columns, the SVG track (path, loop back, pulse) above them, read lines down to one band.
   ≤720px: the same graphic as a vertical stack, band on the left. CSS-only animation, ~7s loop. ---- */
.pos-day { margin: 0; }
.pos-for { margin: 0; color: var(--t-2); font-size: 15px; }
.pos-for .lane, .pos-connects .lane { margin-right: 8px; }
.pos-connects { margin: 28px 0 0; color: var(--t-2); font-size: 15px; max-width: 860px; }
.pos-connects a { color: var(--t-1); text-decoration: underline; text-decoration-color: var(--line-hi); text-underline-offset: 3px; }
.pos-connects a:hover { text-decoration-color: currentColor; }
.pos-benefits { margin-top: 40px; }
.lc-chip { display: inline-block; font: 500 11px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--p-300); background: rgb(124 92 255 / .12); border: 1px solid rgb(124 92 255 / .3); border-radius: 999px; padding: 4px 10px; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lc { margin: 0; }
.lc-graphic { position: relative; }
.lc-track { position: absolute; left: 0; top: 0; width: 100%; height: 50px; overflow: visible; }
.lc-track path { fill: none; vector-effect: non-scaling-stroke; }
.lc-line { stroke: var(--p-500); stroke-width: 2; opacity: .55; }
.lc-loop { stroke: var(--line-hi); stroke-width: 1.5; }
.lc-pulse { stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: 1.05; animation: lcPulse 7s linear infinite; }
@keyframes lcPulse { to { stroke-dashoffset: .05; } }
.lc-stages { list-style: none; margin: 0; padding: 32px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lc-stage { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 10px; min-width: 0; }
.lc-node { width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; background: var(--bg-0); border: 2px solid var(--p-400); animation: lcNode 7s linear infinite; animation-delay: calc(var(--i) * .82s); }
@keyframes lcNode { 0%, 14% { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 5px var(--teal-dim); } 20%, 100% { background: var(--bg-0); border-color: var(--p-400); box-shadow: none; } }
.lc-stage .lc-chip { margin-top: 14px; }
.lc-task { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--t-1); font-weight: 500; }
.lc-without, .lc-with { margin: 10px 0 0; font-size: 13px; line-height: 1.45; }
.lc-without { color: var(--t-3); }
.lc-without b { color: #f07c7c; font-weight: 500; }
.lc-with { color: var(--t-2); }
.lc-with b { color: var(--teal); font-weight: 500; }
.lc-links { flex: 1; display: flex; justify-content: center; gap: 8px; min-height: 36px; margin-top: 14px; }
.lc-read, .lc-write { display: block; width: 0; }
.lc-read { border-left: 2px solid var(--teal); opacity: .75; }
.lc-write { border-left: 2px dashed var(--p-400); }
.lc-band { border: 1px solid rgb(0 212 170 / .45); background: linear-gradient(90deg, var(--teal-dim), rgb(124 92 255 / .12)); border-radius: var(--r-m); padding: 16px 20px; text-align: center; font: 500 14px/1.3 var(--mono); letter-spacing: .02em; color: var(--t-1); }
.lc-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 16px 0 0; font: 400 12px/1.4 var(--mono); color: var(--t-3); }
.lc-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lc-legend i { height: 14px; }
.lc figcaption { text-align: center; margin-top: 8px; }
.lc-vpulse, .lc-vloop { display: none; }
@media (max-width: 720px) {
  .lc-graphic { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .lc-track { display: none; }
  .lc-band { grid-column: 1; grid-row: 1; writing-mode: vertical-rl; transform: rotate(180deg); padding: 16px 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
  .lc-stages { grid-column: 2; grid-row: 1; display: block; padding: 0; position: relative; }
  .lc-stages::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 28px; border-left: 2px solid rgb(124 92 255 / .55); }
  .lc-stage { position: relative; display: block; text-align: left; padding: 0 30px 26px 34px; }
  .lc-node { position: absolute; left: 5px; top: 5px; margin: 0; }
  .lc-stage .lc-chip { margin-top: 0; }
  .lc-task { display: block; }
  .lc-links { position: absolute; left: -14px; top: 11px; width: 20px; height: 0; min-height: 0; margin: 0; display: block; }
  .lc-read { width: 20px; border-left: 0; border-top: 2px solid var(--teal); }
  .lc-write { position: absolute; top: 8px; left: 0; width: 20px; border-left: 0; border-top: 2px dashed var(--p-400); }
  .lc-legend i { height: 0; width: 20px; }
  .lc-legend .lc-read, .lc-legend .lc-write { position: static; }
  .lc-vpulse { display: block; position: absolute; left: 62px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-dim); animation: lcVPulse 7s linear infinite; }
  @keyframes lcVPulse { 0% { top: 6px; opacity: 1; } 80% { top: calc(100% - 52px); opacity: 1; } 86%, 100% { top: calc(100% - 52px); opacity: 0; } }
  .lc-vloop { display: block; position: absolute; right: 0; top: 11px; bottom: 37px; width: 14px; border: 1.5px solid rgb(124 92 255 / .45); border-left: 0; border-radius: 0 10px 10px 0; }
  .lc-vloop::before { content: ""; position: absolute; left: -2px; top: -5px; border: 5px solid transparent; border-right-color: rgb(124 92 255 / .7); border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .lc-pulse, .lc-vpulse { display: none; } .lc-node { animation: none; } }
html[data-theme="light"] .lc-chip { color: var(--p-700); background: rgb(124 92 255 / .08); border-color: rgb(61 43 130 / .28); }
html[data-theme="light"] .lc-node { background: #fff; border-color: var(--p-600); }
html[data-theme="light"] .lc-with b { color: var(--teal-text); }
html[data-theme="light"] .lc-without b { color: #b42318; }
html[data-theme="light"] .lc-read { border-color: #0a9e80; }
html[data-theme="light"] .lc-band { border-color: rgb(6 122 98 / .45); background: linear-gradient(90deg, rgb(0 212 170 / .12), rgb(124 92 255 / .08)); }
