/* agentor.si — one stylesheet for every page.
 * Light only, white and happy. Tokens are fixed by CONTRACT.md §10.2 (the dashboard copies them).
 * Pixel art follows the banner convention: drawn at 1x, scaled by whole multiples (--s), pixelated.
 * Strict CSP: no inline styles anywhere, so every variant is a class here. */

:root {
  color-scheme: light;
  --bg:#FFFFFF; --bg-soft:#F6F2FF; --mint-bg:#E8FAF5; --sky:#EAF4FF; --card:#FFFFFF; --line:#E6E8F2;
  --ink:#1E2140; --ink-soft:#545A7A; --muted:#626881;
  --plum:#7B4DFF; --plum-btn:#5B34D1; --plum-deep:#43279C;
  --teal:#14B8A6; --teal-text:#0B7468; --sun:#FFC83D; --sun-deep:#E5A912; --peach:#FF8A65; --rose:#FF6F91;
  --radius:18px; --radius-pill:999px; --shadow:0 6px 24px rgba(30,33,64,.08); --ring:0 0 0 3px rgba(123,77,255,.35);
  --font-head:"Baloo 2","Nunito",system-ui,sans-serif; --font-body:"Nunito",system-ui,sans-serif;
  --font-pixel:"Pixelify Sans","Baloo 2",monospace; --font-mono:"JetBrains Mono",ui-monospace,monospace;
  --wrap:1160px; --s:2;
  /* derived, text-safe */
  --plum-pale:#DCD0FF; --rose-text:#B8325A; --sun-text:#7A5600; --peach-bg:#FFEDE6; --rose-bg:#FFE6EE; --sun-bg:#FFF4D6;
}
@media (min-width: 720px)  { :root { --s: 3; } }
@media (min-width: 1100px) { :root { --s: 4; } }
@media (min-width: 1500px) { :root { --s: 5; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--plum-btn); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--plum-deep); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(38px, 4.4vw + 14px, 72px); }
h2 { font-size: clamp(28px, 2.4vw + 14px, 46px); }
h3 { font-size: clamp(20px, .6vw + 16px, 24px); font-weight: 700; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--font-mono); font-weight: 500; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(56px, 6vw, 104px) 0; }
.soft { background: var(--bg-soft); }
.mint { background: var(--mint-bg); }
.skyb { background: var(--sky); }
.dots { background-image: radial-gradient(rgba(123,77,255,.13) 1.5px, transparent 1.6px); background-size: 22px 22px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 14px; } .mt2 { margin-top: 28px; } .mt3 { margin-top: 44px; }
.pt0 { padding-top: 8px; }

/* ---------- wordmark ---------- */
.wm { display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 700; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; line-height: 1; }
.wm img { width: 1em; height: 1em; margin-right: .3em; image-rendering: pixelated; flex: none; transform: translateY(-.02em); }
.wm b { color: var(--plum); font-weight: 700; }
.brand .wm { font-size: 27px; }
.brand .wm img { width: 32px; height: 32px; }

/* ---------- eyebrows, chips ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head, "Baloo 2", sans-serif); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--plum-deep); background: var(--plum-pale); padding: 6px 12px; border-radius: var(--radius-pill); margin: 0 0 18px; }
.eyebrow.sun { background: var(--sun); color: var(--ink); }
.eyebrow.teal { background: var(--mint-bg); color: var(--teal-text); box-shadow: inset 0 0 0 2px #C6F0E7; }
.eyebrow.rose { background: var(--rose-bg); color: var(--rose-text); }
.eyebrow.sky { background: var(--sky); color: var(--plum-btn); }
.lead { font-size: clamp(18px, .5vw + 16px, 22px); color: var(--ink-soft); line-height: 1.5; max-width: 62ch; }
.fine { margin: 24px 0 0; font-size: 15px; color: var(--ink-soft); max-width: 70ch; }
.say { display: inline-block; font-family: var(--font-mono); font-size: 14px; background: var(--bg-soft); color: var(--plum-deep); padding: 7px 12px; border-radius: 12px 12px 12px 4px; overflow-wrap: anywhere; }

/* ---------- buttons: pill, toy press ---------- */
.btn { --b: var(--plum-btn); --bd: var(--plum-deep); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: var(--radius-pill); border: 0;
  background: var(--b); color: var(--c); font-family: var(--font-head); font-weight: 800; font-size: 18px; line-height: 1; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--bd); transition: transform .12s ease, box-shadow .12s ease, background .12s; white-space: nowrap; }
.btn:hover { color: var(--c); transform: translateY(-2px); box-shadow: 0 6px 0 var(--bd); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bd); }
.btn.sun { --b: var(--sun); --bd: var(--sun-deep); --c: var(--ink); }
.btn.ghost { --b: #fff; --bd: var(--line); --c: var(--ink); border: 2px solid var(--line); }
.btn.sm { min-height: 44px; padding: 10px 18px; font-size: 16px; }
.btn .ar { transition: transform .15s; }
.btn:hover .ar { transform: translateX(3px); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn .play { font-family: var(--font-pixel); font-size: 14px; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.93); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 16px; }
.nav ul a:hover { background: var(--bg-soft); color: var(--ink); }
.nav ul a[aria-current="page"] { background: var(--plum-pale); color: var(--plum-deep); }
.nav .btn { margin-left: 6px; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--ink); position: relative; content: ""; transition: transform .2s; }
.burger span::before { position: absolute; top: -7px; } .burger span::after { position: absolute; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.nav nav .btn-m { display: none; }
@media (max-width: 919px) {
  .burger { display: inline-flex; }
  .nav nav { position: fixed; inset: 68px 0 auto 0; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 16px 20px; display: none; }
  .nav.open nav { display: block; }
  .nav ul { flex-direction: column; }
  .nav ul a { min-height: 52px; font-size: 19px; padding: 0 16px; }
  .nav .wrap > .btn { display: none; }
  .nav nav .btn-m { display: flex; margin-top: 10px; }
}
body.menu-open { overflow: hidden; }

/* ---------- pixel band (banner convention) ---------- */
.band-frame { position: relative; width: 100%; overflow: hidden; display: flex; justify-content: center; }
.band { position: relative; flex: none; width: calc(256px * var(--s)); height: calc(56px * var(--s)); }
.band picture { display: contents; }
.art, .px { image-rendering: pixelated; image-rendering: crisp-edges; }
.band img.art { display: block; width: 100%; height: 100%; }
/* the world continues past the art's edges in its own bands (sampled from hero/band.png) */
.band-frame.world { background: linear-gradient(180deg,
  #DCEAFF 0 calc(11px * var(--s)), #EAF4FF calc(11px * var(--s)) calc(23px * var(--s)), #F4F8FF calc(23px * var(--s)) calc(33px * var(--s)),
  #FFFFFF calc(33px * var(--s)) calc(45px * var(--s)), #AEE7D0 calc(45px * var(--s)) calc(48px * var(--s)), #3FA56C calc(48px * var(--s)) calc(49px * var(--s)),
  #5CC98A calc(49px * var(--s)) calc(50px * var(--s)), #F1E6CF calc(50px * var(--s)) calc(54px * var(--s)), #D9C7A2 calc(54px * var(--s)) calc(55px * var(--s)),
  #5CC98A calc(55px * var(--s)) calc(56px * var(--s))); }
/* moving sprites, positioned in game pixels */
.sprite { position: absolute; left: calc(var(--x) * 1px * var(--s)); top: calc(var(--y) * 1px * var(--s)); width: calc(11px * var(--s)); height: calc(9px * var(--s)); image-rendering: pixelated; opacity: 0; }
.sprite.scroll { --x: 137; --y: 39; animation: scroll-walk 7s infinite; }
.sprite.ask { --x: 178; --y: 12; animation: ask-fly 9s infinite; animation-delay: 2.5s; }
@keyframes scroll-walk {
  0% { transform: translateX(0); opacity: 0; animation-timing-function: steps(1); }
  4% { opacity: 1; animation-timing-function: steps(27, end); }
  70% { transform: translateX(calc(54px * var(--s))); opacity: 1; animation-timing-function: steps(1); }
  76%, 100% { transform: translateX(calc(54px * var(--s))); opacity: 0; }
}
@keyframes ask-fly {
  0% { transform: translate(0, 0); opacity: 0; animation-timing-function: steps(1); }
  6% { transform: translate(0, 0); opacity: 1; animation-timing-function: steps(57, end); }
  70% { transform: translate(calc(-114px * var(--s)), 0); opacity: 1; animation-timing-function: steps(6, end); }
  80% { transform: translate(calc(-114px * var(--s)), calc(12px * var(--s))); opacity: 1; animation-timing-function: steps(1); }
  88%, 100% { transform: translate(calc(-114px * var(--s)), calc(12px * var(--s))); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .sprite { display: none; } }
/* captions under the three thirds of the art */
.caps { list-style: none; margin: 0 auto; padding: 0; width: calc(256px * var(--s)); display: grid; grid-template-columns: 85fr 86fr 85fr; }
.caps li { padding: 16px 12px 0; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: clamp(17px, .5vw + 15px, 22px); line-height: 1.2; }
.caps li span { display: block; font-family: var(--font-pixel); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.caps li:nth-child(1) span { color: var(--plum-btn); } .caps li:nth-child(2) span { color: var(--teal-text); } .caps li:nth-child(3) span { color: var(--rose-text); }
@media (max-width: 559px) {
  .caps { width: auto; grid-template-columns: 1fr; gap: 8px; padding: 18px 16px 0; }
  .caps li { text-align: left; padding: 10px 14px; background: #fff; border: 2px solid var(--line); border-radius: 14px; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(36px, 4vw, 56px); background: linear-gradient(180deg, #DCEAFF 0%, #EEF4FF 55%, var(--bg) 100%); position: relative; overflow: hidden; }
.hero .hero-copy { text-align: center; max-width: 920px; margin-inline: auto; }
.hero h1 { margin-bottom: 18px; }
.hl { background: linear-gradient(transparent 60%, rgba(255,200,61,.75) 60% 92%, transparent 92%); padding: 0 .08em; }
.hero .lead { margin: 0 auto 28px; }
.hero .btns { justify-content: center; margin-bottom: clamp(28px, 4vw, 48px); }
.hero .note { font-size: 15px; color: var(--muted); margin: -32px 0 28px; text-align: center; }

/* ---------- cards, grids ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.g2, .grid.g4 { grid-template-columns: repeat(2, 1fr); } .grid.g3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.g4 { grid-template-columns: repeat(4, 1fr); } .grid.g3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); margin: 0; }
.card p + p { margin-top: 10px; }
.card .say { margin-top: 12px; }
.ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--plum-pale); margin-bottom: 14px; font-family: var(--font-pixel); font-weight: 700; font-size: 22px; color: var(--plum-deep); }
.ico.sun { background: var(--sun-bg); color: var(--sun-text); } .ico.teal { background: var(--mint-bg); color: var(--teal-text); } .ico.rose { background: var(--rose-bg); color: var(--rose-text); } .ico.sky { background: var(--sky); color: var(--plum-btn); }

/* ---------- steps (numbered cards with art) ---------- */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 30px 20px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 680px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 20px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-pixel); font-weight: 700; font-size: 22px; background: var(--c, var(--plum-pale)); color: var(--ink); box-shadow: 0 3px 0 rgba(30,33,64,.18); }
.steps li:nth-child(6n+1) { --c: var(--plum-pale); } .steps li:nth-child(6n+2) { --c: var(--sun); } .steps li:nth-child(6n+3) { --c: #BDEFE6; }
.steps li:nth-child(6n+4) { --c: #FFD3C5; } .steps li:nth-child(6n+5) { --c: #FFD0DD; } .steps li:nth-child(6n+6) { --c: var(--sky); }
.steps h3 { margin: 4px 0 8px; }
.steps p { color: var(--ink-soft); margin: 0; }
.steps .say { margin-top: auto; align-self: flex-start; }
.steps p + .say { margin-top: 14px; }
.step-art { display: block; width: calc(48px * var(--s)); height: calc(40px * var(--s)); margin: 0 0 10px auto; }
@media (max-width: 719px) { .step-art { width: 144px; height: 120px; } }  /* 3x on phones, still a whole multiple */
.steps.three li:nth-child(1) { --c: var(--plum-pale); } .steps.three li:nth-child(2) { --c: #BDEFE6; } .steps.three li:nth-child(3) { --c: #FFD0DD; }

/* ---------- sample exchange ---------- */
.exchange { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 960px) { .exchange { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.chat { background: #fff; border: 2px solid var(--line); border-radius: 26px; box-shadow: 0 20px 60px rgba(30,33,64,.10); overflow: hidden; min-width: 0; }
.chat .top { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 2px solid var(--line); background: var(--bg-soft); font-size: 14px; color: var(--ink-soft); font-weight: 700; flex-wrap: wrap; }
.chat .top .dots3 { display: inline-flex; gap: 5px; }
.chat .top .dots3 i { width: 10px; height: 10px; border-radius: 3px; background: var(--rose); }
.chat .top .dots3 i:nth-child(2) { background: var(--sun); } .chat .top .dots3 i:nth-child(3) { background: var(--teal); }
.chat .body { padding: clamp(16px, 3vw, 24px); display: grid; gap: 14px; }
.msg { max-width: 92%; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 1.5; }
.msg.me { justify-self: end; background: var(--plum-btn); color: #fff; border-radius: 18px 18px 4px 18px; font-weight: 700; }
.msg.ai { background: var(--bg-soft); border-radius: 18px 18px 18px 4px; color: var(--ink); }
.msg.ai p { margin: 0 0 8px; } .msg.ai p:last-child { margin: 0; }
.msg.ai ol { margin: 4px 0 8px; padding-left: 20px; }
.tool { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); background: #fff; border: 2px dashed var(--line); border-radius: 14px; padding: 8px 12px; }
.tool b { color: var(--plum-deep); font-weight: 500; }
.lvl { font-family: var(--font-pixel); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; }
.lvl.high { background: var(--mint-bg); color: var(--teal-text); } .lvl.low { background: var(--rose-bg); color: var(--rose-text); } .lvl.mid { background: var(--sun-bg); color: var(--sun-text); }
.cite { display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; background: var(--plum-pale); color: var(--plum-deep); padding: 1px 6px; border-radius: 6px; vertical-align: 1px; }
.found { background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.found h3 { font-size: 19px; margin: 0 0 4px; }
.found > p { font-size: 15px; color: var(--ink-soft); margin: 0 0 12px; }
.found ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.found li { border-radius: 14px; background: var(--bg-soft); padding: 10px 12px; font-size: 15px; display: grid; gap: 2px; }
.found li .cite { justify-self: start; }
.found li b { font-family: var(--font-head); font-size: 16px; }
.found li span { color: var(--ink-soft); font-size: 14px; }
.found .rules { margin-top: 14px; font-size: 14px; color: var(--ink-soft); border-top: 2px dashed var(--line); padding-top: 12px; }

/* ---------- the loop ---------- */
.loop { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: l; }
@media (min-width: 760px) { .loop { grid-template-columns: repeat(4, 1fr); } }
.loop li { position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.loop li b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-bottom: 4px; }
.loop li p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.loop li .tag { display: inline-block; font-family: var(--font-pixel); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; margin-bottom: 10px; }
.loop li:nth-child(1) .tag { background: var(--rose-bg); color: var(--rose-text); } .loop li:nth-child(2) .tag { background: var(--sun-bg); color: var(--sun-text); }
.loop li:nth-child(3) .tag { background: var(--plum-pale); color: var(--plum-deep); } .loop li:nth-child(4) .tag { background: var(--mint-bg); color: var(--teal-text); }
@media (min-width: 760px) {
  .loop li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 14px; height: 14px; transform: translate(0, -50%);
    background: linear-gradient(90deg, var(--plum) 0 2px, transparent 2px 4px, var(--plum) 4px 6px, transparent 6px 8px, var(--plum) 8px 14px); clip-path: polygon(0 40%, 70% 40%, 70% 10%, 100% 50%, 70% 90%, 70% 60%, 0 60%); }
}
.loop-back { margin-top: 14px; font-size: 15px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.loop-back::before { content: "↺"; font-size: 22px; color: var(--plum); line-height: 1; }

/* ---------- audience split ---------- */
.split { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.side { border-radius: 26px; padding: clamp(22px, 3vw, 34px); border: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.side.plum { background: linear-gradient(180deg, var(--bg-soft), #fff); border-color: var(--plum-pale); }
.side.teal { background: linear-gradient(180deg, var(--mint-bg), #fff); border-color: #C6F0E7; }
.side h3 { font-size: clamp(24px, 1vw + 18px, 30px); margin: 0; }
.side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.side li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-soft); }
.side li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--plum); transform: translateY(-1px); }
.side.teal li::before { background: var(--teal); }
.side .btns { margin-top: auto; padding-top: 8px; }
.who { display: flex; gap: 14px; align-items: center; }
.av { flex: none; width: 64px; height: 64px; image-rendering: pixelated; border-radius: 18px; background: var(--bg-soft); padding: 0; }
.av.lg { width: 96px; height: 96px; border-radius: 24px; }
.av.on-mint { background: var(--mint-bg); }
.avatar-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.avatar-row .av { box-shadow: inset 0 0 0 2px rgba(30,33,64,.05); }

/* ---------- beta band ---------- */
.beta { background: var(--plum-deep); color: #fff; border-radius: 28px; padding: clamp(26px, 4vw, 52px); display: grid; gap: 20px; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 860px) { .beta { grid-template-columns: 1fr auto; } }
.beta h2 { color: #fff; margin: 0 0 8px; }
.beta p { color: #E4DCFF; margin: 0; max-width: 60ch; }
.beta .eyebrow { background: var(--sun); color: var(--ink); }
.beta::before { content: ""; position: absolute; right: -24px; top: -24px; width: 170px; height: 170px; background-image: radial-gradient(rgba(255,200,61,.55) 2px, transparent 2.2px); background-size: 16px 16px; pointer-events: none; }

/* ---------- install / connect blocks ---------- */
.install { background: #fff; border: 2px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(16px, 3vw, 30px); min-width: 0; }
.install + p { margin-top: 18px; }
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--bg-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 18px; }
.endpoint .lbl { font-family: var(--font-pixel); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--plum-btn); }
.endpoint code { font-size: clamp(14px, .6vw + 12px, 18px); word-break: break-all; color: var(--ink); }
.endpoint .copy { margin-left: auto; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tab { min-height: 44px; padding: 8px 16px; border-radius: var(--radius-pill); border: 2px solid var(--line); background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 800; font-size: 15px; cursor: pointer; }
.tab:hover { border-color: var(--plum); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.inst { border-radius: 16px; overflow: hidden; border: 2px solid var(--line); background: #fff; margin-bottom: 14px; }
.inst[hidden] { display: none; }
.inst .h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 16px; background: var(--bg-soft); }
.inst .h .n { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.inst .h .w { font-size: 14px; color: var(--ink-soft); }
.inst .h .copy, .inst .h .btn { margin-left: auto; }
.inst pre { margin: 0; padding: 16px; background: var(--ink); color: #F4F2FF; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.inst ol { margin: 0; padding: 14px 16px 14px 38px; color: var(--ink-soft); }
.inst ol li { margin-bottom: 4px; }
.inst ol b { color: var(--ink); }
.inst .note { margin: 0; padding: 10px 16px 14px; font-size: 15px; color: var(--ink-soft); }
.copy { min-height: 40px; min-width: 76px; padding: 6px 14px; border-radius: var(--radius-pill); border: 2px solid var(--ink); background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 800; font-size: 14px; cursor: pointer; }
.copy:hover { background: var(--sun); }
.copy.done { background: var(--teal); border-color: var(--teal-text); color: #fff; }

/* ---------- mail preview (for-clients) ---------- */
.mail { background: #fff; border: 2px solid var(--line); border-radius: 22px; box-shadow: 0 20px 60px rgba(30,33,64,.10); overflow: hidden; min-width: 0; }
.mail .hd { padding: 14px 18px; border-bottom: 2px solid var(--line); font-size: 14px; color: var(--ink-soft); display: grid; gap: 2px; background: var(--bg-soft); }
.mail .hd b { color: var(--ink); }
.mail .bd { padding: 18px; display: grid; gap: 12px; font-size: 15px; }
.mail .bd p { margin: 0; }
.mail .box { font-family: var(--font-mono); font-size: 13.5px; background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; overflow-wrap: anywhere; color: var(--plum-deep); }
.mail .hosts { display: flex; flex-wrap: wrap; gap: 6px; }
.mail .hosts span { font-size: 13px; font-weight: 800; border: 2px solid var(--line); border-radius: 99px; padding: 3px 10px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--plum-pale); color: var(--plum-deep); font-family: var(--font-pixel); font-size: 20px; }
.faq details[open] summary::after { content: "–"; background: var(--teal); color: #fff; }
.faq details > div { padding: 0 0 16px; color: var(--ink-soft); }

/* ---------- docs / prose ---------- */
.prose h2 { margin-top: 1.6em; font-size: clamp(26px, 1.6vw + 16px, 36px); }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose li { margin-bottom: .35em; }
.prose strong, .prose b { color: var(--ink); }
.prose pre { background: var(--ink); color: #F4F2FF; padding: 14px 16px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.prose :not(pre) > code, .lead code, .card code, .faq code, .loop code { background: var(--bg-soft); color: var(--ink); padding: .1em .4em; border-radius: 6px; font-size: .9em; overflow-wrap: anywhere; }
.callout { border-radius: 16px; padding: 14px 16px; background: var(--sky); color: var(--ink); margin: 1em 0; }
.callout.sun { background: var(--sun-bg); }
.callout.mint { background: var(--mint-bg); }
.doc-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 220px minmax(0, 1fr); } .toc { position: sticky; top: 96px; align-self: start; } }
.doc-layout > * { min-width: 0; }
.toc { font-size: 15px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 1000px) { .toc ol { display: grid; gap: 2px; } }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 12px; border-radius: 99px; text-decoration: none; color: var(--ink); font-weight: 700; background: var(--bg-soft); }
@media (min-width: 1000px) { .toc a { background: none; } .toc a:hover { background: var(--bg-soft); } }
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th, table.t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-family: var(--font-head); font-weight: 800; color: var(--ink); background: var(--bg-soft); }
table.t td code { overflow-wrap: anywhere; }
@media (max-width: 699px) {
  table.t thead { display: none; }
  table.t, table.t tbody, table.t tr, table.t td { display: block; width: 100%; }
  table.t tr { border: 2px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 6px 0; }
  table.t td { border: 0; padding: 4px 12px; }
  table.t td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
}
.tools { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 16px 0; }
@media (min-width: 760px) { .tools { grid-template-columns: 1fr 1fr; } }
.tools > div { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.tools code { font-size: 14px; color: var(--plum-btn); overflow-wrap: anywhere; background: none; padding: 0; }
.tools p { margin: 4px 0 0; font-size: 15px; }

/* ---------- page heads ---------- */
.phead { padding: clamp(40px, 5vw, 72px) 0 clamp(24px, 3vw, 40px); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.phead.mint { background: linear-gradient(180deg, var(--mint-bg), var(--bg)); }
.phead.sky { background: linear-gradient(180deg, var(--sky), var(--bg)); }
.phead h1 { font-size: clamp(34px, 3.4vw + 14px, 60px); max-width: 20ch; }
.phead .updated { color: var(--muted); font-size: 15px; margin: 0; }
.phead-grid { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .phead-grid { grid-template-columns: 1fr auto; } }

/* ---------- footer (wordmark, product, company; nothing else) ---------- */
.foot { background: var(--bg-soft); border-top: 2px solid var(--line); padding: 48px 0 32px; font-size: 15px; color: var(--ink-soft); }
.foot .cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { font-family: var(--font-pixel); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.foot ul a { display: inline-flex; min-height: 36px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; }
.foot ul a:hover { color: var(--plum-btn); }
.foot .wm { font-size: 24px; }
.foot .blurb { margin-top: 12px; max-width: 40ch; }
.foot .legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.foot .legal a { color: var(--ink-soft); }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: clamp(60px, 10vw, 140px) 0; }
.lost .big { font-family: var(--font-pixel); font-weight: 700; font-size: clamp(80px, 18vw, 180px); line-height: 1; color: var(--plum); text-shadow: 6px 6px 0 var(--sun); }
.lost .av { margin: 0 auto 18px; display: block; }

.lost .lead { margin-inline: auto; }
.center-btns { justify-content: center; }
.steps.stack { grid-template-columns: 1fr; margin-top: 32px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 99px; font-weight: 800; opacity: 0; transition: opacity .2s, transform .2s; z-index: 400; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- entrance motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
  .rise.d1 { animation-delay: .06s; } .rise.d2 { animation-delay: .12s; } .rise.d3 { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
