/* Light, quiet, one object on the page. Apple's own neutrals (#1d1d1f text, #6e6e73 secondary, #d2d2d7 hairlines), no accent colour:
   black, white and gray only. Buttons are flat gray pills, the tabs a segmented control, the search field a hairline box.
   Light by default; the sun button in the nav switches to dark (html[data-theme=dark]): Apple's dark page, true black with
   #1d1d1f surfaces, #f5f5f7 text, #424245 hairlines. The demo frame inside is drawn with Cloudflare's Kumo (kumo.css), in Kumo's own light or dark. */
/* Everything here sits in the base layer of kumo.css, so Kumo's component classes win inside the demo frame. */
@layer base {
:root {
  --paper: #fbfbfd; --raised: #fff; --ink: #1d1d1f; --strong: #1d1d1f; --muted: #6e6e73; --faint: #86868b; --hair: #d2d2d7; --fill: rgba(0, 0, 0, .04);
  --lift: 0 0 0 .5px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .04), 0 24px 60px rgba(0, 0, 0, .08);
  --pill: #e8e8ed; --pill-hover: #dcdce1; --seg: rgba(0, 0, 0, .05); --seg-on: #fff;
  --glass: rgba(255, 255, 255, .9);
  --ringed: 0 0 0 .5px rgba(0, 0, 0, .16), 0 0 0 3px #fff, 0 0 0 3.5px rgba(0, 0, 0, .14), 0 4px 14px rgba(0, 0, 0, .1);
  --term: #fbfaf9;
  color-scheme: light;
}
  :root[data-theme=dark] {
    --paper: #000; --raised: #1d1d1f; --ink: #f5f5f7; --strong: #f5f5f7; --muted: #a1a1a6; --faint: #86868b; --hair: #424245; --fill: rgba(255, 255, 255, .08);
    --lift: 0 0 0 .5px rgba(255, 255, 255, .14), 0 2px 6px rgba(0, 0, 0, .3), 0 30px 70px rgba(0, 0, 0, .55);
    --pill: #333336; --pill-hover: #48484a; --seg: rgba(255, 255, 255, .08); --seg-on: #48484a;
    --glass: rgba(29, 29, 31, .86);
    --ringed: 0 0 0 .5px rgba(0, 0, 0, .5), 0 0 0 3px #f5f5f7, 0 0 0 3.5px rgba(255, 255, 255, .22), 0 4px 14px rgba(0, 0, 0, .5);
    --term: #1d1d1f;
    color-scheme: dark;
  }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--faint); outline-offset: 3px; border-radius: 6px; }

/* nav: two quiet words, well clear of the top edge */
.nav { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 44px 40px 0; font-size: 15px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; letter-spacing: .01em; }
.o { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--muted); }
.links { display: flex; align-items: center; gap: 28px; }
.link { color: var(--muted); text-decoration: none; transition: color .15s; }
.link:hover, .brand:hover { color: var(--ink); }
code, pre, .chip { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
code { font-size: .88em; padding: 1px 5px; border-radius: 5px; background: var(--fill); }
.codeblock { position: relative; }
.codeblock pre { margin: 0; padding: 13px 48px 13px 14px; border-radius: 10px; background: var(--fill); white-space: pre-wrap; word-break: break-word; font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.copyicon { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.copyicon:hover { background: var(--fill); color: var(--ink); }
.copyicon .b { display: none; }
.copyicon.ok { color: var(--ink); }
.copyicon.ok .a { display: none; }
.copyicon.ok .b { display: inline; }

/* hero */
.hero { max-width: 720px; margin: 0 auto; padding: clamp(64px, 12vh, 128px) 24px 0; text-align: center; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 62px); line-height: 1.06; font-weight: 500; letter-spacing: -.035em; color: var(--strong); }
.lede { margin: 22px auto 0; max-width: 34em; font-size: clamp(17px, 1.8vw, 19px); line-height: 1.45; color: var(--muted); }
h2 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; color: var(--strong); }
h3 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; color: var(--strong); }

/* live demo: the one object on the page, right under the headline */
.stage { max-width: 1120px; margin: 0 auto; padding: clamp(40px, 7vh, 64px) 40px 0; }
/* ask: one quiet field above the demo; what you ask plays out in the frame below */
.askbar { display: flex; align-items: center; gap: 2px; max-width: 520px; height: 46px; margin: 0 auto; padding: 0 7px; border-radius: 12px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .15s; }
.askbar:focus-within { box-shadow: inset 0 0 0 1px var(--faint); }
.askbar input { flex: 1; min-width: 0; height: 100%; padding: 0 8px; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.askbar input::placeholder { color: var(--faint); }
.askic { flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 17px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.askic:hover { background: var(--fill); color: var(--ink); }
.askic[hidden] { display: none; }
.askic[hidden] + input { padding-left: 14px; }
.try, .asks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-top: 20px; }
.asks { margin: 16px 0 30px; }
.try button, .asks button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; transition: color .15s; }
.try button:hover, .asks button:hover { color: var(--ink); }

/* the frame: a Cloudflare dashboard drawn with Kumo tokens (light or dark with the system) */
.frame { position: relative; height: 640px; border-radius: 18px; overflow: hidden; background: var(--color-kumo-canvas, #fff); color: var(--text-color-kumo-default); box-shadow: var(--lift); display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.frame .bar { flex: none; display: flex; justify-content: center; padding: 11px 14px; border-bottom: 1px solid var(--color-kumo-hairline, var(--hair)); background: var(--color-kumo-base); }
.addr { max-width: 100%; padding: 4px 14px; border-radius: 8px; background: var(--color-kumo-recessed, var(--fill)); color: var(--text-color-kumo-subtle); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash { flex: 1; display: flex; min-height: 0; position: relative; }
.side { flex: none; width: 220px; padding: 14px 10px; border-right: 1px solid var(--color-kumo-hairline); background: var(--color-kumo-base); display: flex; flex-direction: column; gap: 1px; font-size: 13px; overflow: hidden; }
.side span { padding: 6px 10px; border-radius: 7px; white-space: nowrap; color: var(--text-color-kumo-default); }
.side .on { background: var(--color-kumo-tint); font-weight: 500; }
.side em { font-style: normal; color: var(--text-color-kumo-subtle); padding: 14px 10px 4px; font-size: 12px; }
.side .acct { display: flex; align-items: center; gap: 9px; font-weight: 500; margin-bottom: 6px; }
.side .acct i { width: 18px; height: 18px; border-radius: 5px; background: var(--color-kumo-recessed); box-shadow: inset 0 0 0 1px var(--color-kumo-line); } /* the whole memoji, head in the middle, no crop */
.side .qs { display: flex; justify-content: space-between; margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--color-kumo-line); background: var(--color-kumo-control); color: var(--text-color-kumo-subtle); }
.side kbd { font: inherit; font-size: 11px; color: var(--text-color-kumo-placeholder); }
.page { flex: 1; min-width: 0; padding: 32px 40px; overflow: auto; position: relative; }
.page h1 { font-size: 22px; line-height: 1.2; letter-spacing: -.015em; font-weight: 600; margin: 0 0 4px; text-align: left; color: var(--text-color-kumo-strong); }
.page h2 { font-size: 15px; line-height: 1.3; letter-spacing: 0; font-weight: 600; margin: 22px 0 6px; color: var(--text-color-kumo-strong); }
.page p { margin: 4px 0; color: var(--text-color-kumo-subtle); }
.page .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0; }
.page .row.end { justify-content: flex-end; }
.page .opt { width: 100%; justify-content: flex-start; margin: 8px 0; }
.page a.lnk { color: var(--text-color-kumo-link); text-decoration: none; }
.page .fields { display: grid; gap: 16px; margin-top: 18px; max-width: 360px; }
.page .fields input, .page .fields select { width: 100%; }
.page .suffix { display: flex; align-items: center; gap: 8px; }
.page .suffix span { color: var(--text-color-kumo-subtle); font-size: 13px; white-space: nowrap; }
.page .empty { margin-top: 24px; }
.page .dlg { width: min(420px, calc(100% - 32px)); padding: 22px 22px 6px; z-index: 2; }
.page .dlg h2 { margin-top: 0; font-size: 17px; }
.page .veil { z-index: 1; }
.page .stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; max-width: 560px; }
.page .stat > div { padding: 14px 16px; }
.page .stat b { display: block; font-size: 20px; font-weight: 600; color: var(--text-color-kumo-strong); }
.page .stat span { font-size: 12px; color: var(--text-color-kumo-subtle); }
.wiz { max-width: 520px; margin-top: 18px; overflow: hidden; }
.slides { display: flex; transition: transform .3s ease; }
.slides section { flex: none; width: 100%; padding: 4px 22px 18px; }
.page .li { margin: 10px 0; padding: 11px 13px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--color-kumo-hairline); font-size: 13px; color: var(--text-color-kumo-subtle); }
.page .li strong { color: var(--text-color-kumo-default); font-weight: 500; }
/* account home, as on a new Cloudflare account */
.home { text-align: center; }
.home .onb { display: inline-flex; }
.home h1 { text-align: center; font-size: 28px; margin: 22px 0 20px; }
.home .hs { display: flex; justify-content: space-between; align-items: center; max-width: 720px; margin: 0 auto; height: 40px; padding: 0 14px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--color-kumo-line); background: var(--color-kumo-control); color: var(--text-color-kumo-placeholder); }
.home .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 720px; margin: 22px auto 0; text-align: left; }
.home .c { padding: 8px 8px 14px; display: flex; flex-direction: column; }
.home .art { height: 104px; border-radius: 6px; background: var(--color-kumo-recessed); margin-bottom: 14px; }
.home .c h2 { margin: 0 6px 4px; font-size: 14px; font-weight: 500; }
.home .c p { margin: 0 6px 14px; font-size: 12px; line-height: 1.4; flex: 1; }
.home .c button, .home .c input { margin: 0 6px; align-self: flex-start; }
.home .c input { width: calc(100% - 12px); }
.playbar { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 22px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.playbar p { margin: 0; }
.replay, .textbtn { padding: 0; border: 0; background: none; color: var(--ink); font-size: 14px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.replay[hidden] { display: none; }

.notes p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* the story sections */
.built, .mcp, .notes, .install { max-width: 1000px; margin: 0 auto; padding: clamp(110px, 17vh, 170px) 40px 0; }
.kicker { margin: 0 0 14px; color: var(--faint); font: 400 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.big { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.03em; font-weight: 500; max-width: 18em; color: var(--strong); }
.intro { margin: 18px 0 0; max-width: 38em; color: var(--muted); font-size: 17px; line-height: 1.5; }

/* how it's built: callers, one Worker, the services behind it; a request lights its path */
.paths { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-top: 40px; padding: 2px; border-radius: 10px; background: var(--seg); }
.paths button { height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 13px; cursor: pointer; transition: background .15s, box-shadow .15s; }
.paths button:hover { background: var(--fill); }
.paths button[aria-selected=true] { background: var(--seg-on); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 500; }
.arch { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 64px; align-items: center; margin-top: 28px; }
.col { position: relative; z-index: 1; display: grid; gap: 14px; }
.node, .worker { border-radius: 14px; background: var(--raised); box-shadow: 0 0 0 .5px var(--hair), 0 1px 2px rgba(0, 0, 0, .03); transition: box-shadow .3s, opacity .3s, transform .3s; }
.node { padding: 13px 15px; opacity: .5; }
.node b, .worker > b { display: block; font-weight: 500; font-size: 14.5px; color: var(--strong); }
.node span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.node.on { opacity: 1; box-shadow: var(--ringed), 0 14px 34px rgba(0, 0, 0, .1); }
.node.was { opacity: 1; }
.worker { padding: 16px 16px 14px; box-shadow: var(--lift); }
.routes { list-style: none; margin: 12px 0 10px; padding: 0; display: grid; gap: 2px; }
.routes li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; color: var(--faint); transition: background .3s, color .3s; }
.routes li code { padding: 0; background: none; font-size: 12.5px; color: inherit; }
.routes li.on { background: var(--fill); color: var(--ink); }
.worker .foot { display: block; padding: 0 8px; font-size: 12px; color: var(--faint); }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.wires path { fill: none; stroke: var(--hair); stroke-width: 1.2; transition: stroke .3s, stroke-width .3s; }
.wires path.on { stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 5 6; animation: flow .8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -11; } }
.trace { margin: 36px 0 0; padding: 0; min-height: 168px; list-style: none; counter-reset: t; max-width: 640px; }
.trace li { position: relative; padding: 5px 0 5px 28px; font-size: 14.5px; line-height: 1.5; color: var(--faint); transition: color .35s; counter-increment: t; }
.trace li.in { color: var(--ink); }
.trace li.now { color: var(--strong); }
.trace li::before { content: counter(t); position: absolute; left: 0; top: 5px; width: 16px; text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; font-size: 13px; }
.trace li em { font-style: normal; color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }

/* Dark page: every window goes dark with it, as on Apple's product pages. The demo frame switches Kumo to its own dark
   (data-mode, set in demo.js); the terminal, the install drawings and the diagram boxes become #1d1d1f surfaces with a
   light hairline. Nothing is dimmed or filtered. Only the guide card and the ring stay white, which is how they look on a
   dark dashboard for real. */
:root[data-theme=dark] .node, :root[data-theme=dark] .worker { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .4); }
:root[data-theme=dark] .node { opacity: 1; }
:root[data-theme=dark] .node:not(.on):not(.was) > * { opacity: .4; }
:root[data-theme=dark] .node.on { box-shadow: var(--ringed), 0 14px 34px rgba(0, 0, 0, .5); }
:root[data-theme=dark] .worker { box-shadow: var(--lift); }
:root[data-theme=dark] .paths button[aria-selected=true] { box-shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 0 0 .5px rgba(255, 255, 255, .06); }
:root[data-theme=dark] .tile { background: #2c2c2e; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .1), 0 8px 24px rgba(0, 0, 0, .4); }
:root[data-theme=dark] .tog::after { background: #1d1d1f; }
:root[data-theme=dark] .term-bar i { background: #48484a; }
:root[data-theme=dark] .frame { background: var(--color-kumo-canvas, #141414); }

/* the sun: light or dark */
.theme { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 15px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.theme:hover { background: var(--fill); color: var(--ink); }
.theme .moon { display: none; }
:root[data-theme=dark] .theme .sun { display: none; }
:root[data-theme=dark] .theme .moon { display: block; }

/* MCP: a terminal that plays once in view */
.term { margin-top: 40px; border-radius: 16px; overflow: hidden; background: var(--term); box-shadow: var(--lift); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: .5px solid var(--hair); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--hair); }
.term-bar span { margin-left: 8px; color: var(--faint); font-size: 12px; }
.term-body { margin: 0; padding: 20px 22px 24px; height: 380px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 12.5px; line-height: 1.6; color: var(--ink); }
.term-body .p { color: var(--faint); }
.term-body .u { color: var(--strong); }
.term-body .t { color: var(--strong); font-weight: 600; }
.term-body .m { color: var(--muted); }
.term-body .c::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--muted); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mcpfoot { display: grid; gap: 14px; margin-top: 18px; }
.mcpact { display: flex; gap: 22px; }
.raw { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--fill); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; color: var(--ink); }
.raw[hidden] { display: none; }

/* notes */
.notes .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 44px; margin-top: 44px; }

/* install: one soft panel holding the heading, three small drawings and, under each, its one action (after kayna.ai's project cards) */
.install { padding-top: clamp(72px, 11vh, 110px); }
.panel { padding: 40px 40px 32px; border-radius: 22px; background: linear-gradient(160deg, #f2f2f5 0%, #ececf0 55%, #f4f2ef 100%); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .05); }
:root[data-theme=dark] .panel { background: #161617; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .06); }
.phead { margin-bottom: 30px; }
.phead .big { font-size: clamp(24px, 3vw, 30px); }
.phead .kicker { margin-bottom: 10px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.tile { height: 140px; border-radius: 14px; background: var(--raised); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06); display: flex; flex-direction: column; justify-content: center; padding: 18px; font-size: 12.5px; line-height: 1.3; color: var(--ink); }
.mini figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.45; color: var(--ink); }
.mini figcaption > :not(.num) { grid-column: 2; }
.mini figcaption .btn, .mini figcaption .chip, .mini figcaption .act { justify-self: start; }
.num { font: 500 11px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; color: var(--faint); }
.zip { align-items: center; gap: 12px; }
.fname { font: 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); }
.crx-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.crx-title { color: var(--muted); }
.crx-dev { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px; white-space: nowrap; }
.tog { width: 26px; height: 15px; border-radius: 8px; background: var(--ink); position: relative; flex: none; }
.tog::after { content: ""; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--raised); }
.crx-row { display: flex; gap: 10px; margin-top: 18px; }
.crx-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 13px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); white-space: nowrap; }
.crx-btn.ghost { width: 60px; }
.dashmini { gap: 9px; }
.dm-addr { align-self: flex-start; padding: 3px 9px; border-radius: 6px; background: var(--fill); color: var(--muted); font-size: 11px; }
.dm-line { height: 7px; width: 70%; border-radius: 4px; background: var(--fill); }
.dm-line.short { width: 45%; }
.dm-btn { align-self: flex-start; margin-top: 4px; padding: 6px 14px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--hair); font-weight: 500; }
.mark { position: relative; border-radius: 9px; box-shadow: var(--ringed); }
.crx-btn.mark { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--hair), var(--ringed); }
.dm-btn.mark { box-shadow: inset 0 0 0 1px var(--hair), var(--ringed); }
.btn { display: inline-flex; align-items: center; height: 34px; padding: 0 18px; border-radius: 17px; background: var(--pill); color: var(--ink); font-size: 14px; font-weight: 400; letter-spacing: -.01em; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--pill-hover); }
.chip { display: inline-block; padding: 2px 7px; border: 0; border-radius: 5px; background: var(--fill); color: var(--ink); font-size: .84em; text-decoration: none; cursor: pointer; user-select: text; -webkit-user-select: text; }
.chip:hover { background: var(--hair); }
.said { margin-left: 6px; font-size: 13px; }
.said:empty { display: none; }

footer { max-width: 1120px; margin: 0 auto; padding: clamp(110px, 16vh, 160px) 40px 44px; color: var(--faint); font-size: 12px; text-align: center; }
footer .sep { margin: 0 8px; color: var(--hair); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
.doc { max-width: 640px; margin: 0 auto; padding: clamp(64px, 13vh, 130px) 24px 0; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); }
.doc h2 { font-size: 17px; margin-top: 40px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 1.2em; }

@media (max-width: 900px) {
  .arch { grid-template-columns: 1fr; gap: 14px; }
  .wires { display: none; }
  .callers, .svcs { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .notes .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { padding: 30px 22px 0; }
  .links { gap: 18px; font-size: 14px; }
  .links .link[href="#built"] { display: none; }
  .notes .grid { grid-template-columns: 1fr; gap: 36px; }
  .steps3 { grid-template-columns: 1fr; gap: 40px; }
  .panel { padding: 32px 20px; border-radius: 22px; }
  .built, .mcp, .notes, .install { padding-left: 24px; padding-right: 24px; }
  .stage, footer { padding-left: 16px; padding-right: 16px; }
  .side { display: none; }
  .frame { height: 660px; }
  .page { padding: 22px 16px; }
  .home .cards { grid-template-columns: 1fr; }
  .home .art { height: 56px; }
  .page .stat { grid-template-columns: 1fr 1fr; }
  .term-body { height: 420px; padding: 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
}
