/* Draft homepage: Trident's dark ground, pixel dither, stepped edges and tree footer, in testworld orange. */
:root {
  --frame: min(1248px, 100% - 48px); --inset: 0px;
  --night: #14110E; --ink: #1E1A16; --ink-2: #2B2723; --foot: #0F0C0A;
  --paper: #FAFAF8; --page: #F4F2EE; --sand: #EFEDE9; --muted: #6B6660; --muted-d: #A39F99;
  --line-d: rgb(250 250 248 / .1); --line: rgb(30 26 22 / .1);
  --o1: #C4540A; --o2: #E0681A; --o3: #F38020; --o4: #F6A05A; --o-tint: #FCE9D8; --ok: #6FD38A;
  --display: "Funnel Display", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --notch: polygon(0 6px, 6px 6px, 6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; } /* anchors and focus land below the sticky nav */
body { margin: 0; background: var(--night); color: var(--paper); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* fallback fonts sized to the web fonts' x-height (Inter .546, Funnel Display .5), so text barely moves when they arrive */
body { font-size-adjust: 0.546; }
h1, h2, h3 { font-size-adjust: 0.5; }
img { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; }
/* even lines in every short text block (browsers balance up to about six lines and wrap longer text normally) */
p, li, dd, dt, summary, figcaption, label { text-wrap: balance; }
h2 { margin: 0; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.035em; }
h2 em, h1 em { font-style: normal; }
.wrap { width: calc(var(--frame) - 2 * var(--inset)); margin-inline: auto; }
body { position: relative; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 8px 12px; background: var(--paper); color: var(--ink); }
:focus-visible { outline: 2px solid var(--o4); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--ink); } /* light orange is too faint on the light bands */
.light { --o1: #AD4A08; } /* orange text on light grounds at 5:1 */

/* corner ticks around a label, the same ticks as the logo */
.tk {
  --l: 8px; --t: 1.5px; display: inline-block; margin: 0; padding: 8px 18px; color: var(--o4);
  font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background:
    linear-gradient(currentColor 0 0) 0 0 / var(--l) var(--t), linear-gradient(currentColor 0 0) 0 0 / var(--t) var(--l),
    linear-gradient(currentColor 0 0) 100% 0 / var(--l) var(--t), linear-gradient(currentColor 0 0) 100% 0 / var(--t) var(--l),
    linear-gradient(currentColor 0 0) 0 100% / var(--l) var(--t), linear-gradient(currentColor 0 0) 0 100% / var(--t) var(--l),
    linear-gradient(currentColor 0 0) 100% 100% / var(--l) var(--t), linear-gradient(currentColor 0 0) 100% 100% / var(--t) var(--l);
  background-repeat: no-repeat;
}
.tk--sm { padding: 6px 12px; font-size: 11px; }
.tk--quiet { color: var(--muted-d); } /* the same tag for what is further off: coming soon, planned */

/* pixel button: a notched face over a stepped shadow; it rises on hover and presses on click */
.pbtn {
  --b: var(--o3); --s: var(--o1); --t: var(--ink); --edge: transparent;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 0; background: none; color: var(--t); cursor: pointer; text-decoration: none;
  font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: transform .15s;
}
.pbtn::before, .pbtn::after { content: ""; position: absolute; inset: 0; clip-path: var(--notch); transition: transform .15s; }
.pbtn::before { z-index: -1; background: var(--b); box-shadow: inset 0 0 0 1px var(--edge); }
.pbtn::after { z-index: -2; background: var(--s); transform: translate(4px, 4px); }
.pbtn:hover { transform: translate(-2px, -2px); }
.pbtn:hover::after { transform: translate(6px, 6px); }
.pbtn:active { transform: translate(2px, 2px); }
.pbtn:active::after { transform: translate(2px, 2px); }
.pbtn:focus-visible { outline-offset: 8px; }
.pbtn--ghost { --b: var(--ink-2); --s: rgb(250 250 248 / .12); --t: var(--paper); --edge: rgb(250 250 248 / .3); }
.pbtn--line { --b: #fff; --s: rgb(30 26 22 / .14); --t: var(--ink); --edge: var(--ink); }
.pbtn--sm { min-height: 38px; padding: 0 16px; font-size: 12px; }
.pbtn--sq { min-height: 32px; width: 32px; padding: 0; font-size: 14px; }

/* the bar on top, with dither at both ends */
.announce { position: relative; display: grid; place-items: center; height: 40px; overflow: hidden; background: var(--ink); color: var(--paper); font-size: 14px; text-decoration: none; }
.announce__px { position: absolute; inset: 0; width: 100%; height: 100%; }
.announce__t { position: relative; padding: 0 16px; background: var(--ink); }
.announce__t b { font-weight: 600; }
.announce:hover .announce__t { color: var(--o4); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font: 600 20px/1 var(--display); letter-spacing: -0.02em; }
.logo__mark { width: 24px; height: 24px; flex: none; } /* 48-unit mark: whole pixels at 24 px on 2x screens */

.nav { position: sticky; top: 12px; z-index: 20; width: var(--frame); margin: 12px auto 0; }
.nav__bar { display: flex; align-items: center; gap: 32px; height: 56px; padding: 0 9px 0 16px; background: rgb(30 26 22 / .88); border: 1px solid var(--line-d); backdrop-filter: blur(10px); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 12px; color: var(--muted-d); text-decoration: none; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: color .15s; }
.nav__links a:hover { color: var(--paper); }

/* hero: words, the dither band, and the chain on top of it */
.hero { position: relative; padding: 96px 0 104px; margin-top: -68px; overflow: hidden; background: var(--night); }
.field { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
/* the grid on every dark band: 48px, so its lines meet the rails; faded at the band's ends and quiet behind the hero's words */
.hero::after, .close::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(250 250 248 / .045) 1px, transparent 1px) calc(50% + 0.5px) 0 / 48px 48px,
    linear-gradient(rgb(250 250 248 / .045) 1px, transparent 1px) 0 0 / 48px 48px;
  /* like the light bands: the grid stays at the edges and fades behind the words and cards */
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent), radial-gradient(ellipse 46% 50% at 50% 50%, rgb(0 0 0 / .15) 60%, #000 100%);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent), radial-gradient(ellipse 46% 50% at 50% 50%, rgb(0 0 0 / .15) 60%, #000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero::after {
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 72%, transparent), radial-gradient(ellipse 40% 24% at 50% 22%, transparent 45%, #000 100%);
  mask-image: linear-gradient(transparent, #000 10%, #000 72%, transparent), radial-gradient(ellipse 40% 24% at 50% 22%, transparent 45%, #000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.dark { position: relative; overflow: hidden; }
.dark > .wrap { position: relative; z-index: 1; }
.dark .field { -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); } /* the glow fades at both ends, so the stepped edges meet plain night, not a black band */
.hero__text { position: relative; z-index: 1; width: min(900px, var(--frame)); margin: 40px auto 0; text-align: center; }
.hero h1 { margin: 24px 0 0; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.045em; }
.hero h1 em { color: var(--o4); }
.hero__lead { max-width: 760px; margin: 24px auto 0; text-wrap: balance; color: var(--muted-d); font-size: 18px; line-height: 1.55; }
.hero__cta { display: flex; justify-content: center; gap: 20px; margin-top: 36px; }
.hero__cta .pbtn { min-width: 232px; }
.hero__px { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 860px; opacity: .9; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 38%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 38%, #000 78%, transparent); }

/* the chain: your agent's chat → wire → the testworld computer */
.chain {
  --bar: 56px; position: relative; z-index: 1; width: var(--frame); margin: 96px auto 0; padding: 28px;
  display: grid; grid-template-columns: minmax(0, 2fr) 56px minmax(0, 3fr); grid-template-areas: "agent wire pc";
  grid-template-rows: 540px; align-items: stretch;
}
/* the stage: a solid dark ground with the badge's corner ticks and a glow, no border of its own;
   on it, two separate windows, the agent's (narrower) and the simulated apps (wider) */
.chain::after {
  --l: 18px; --t: 2px; content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--o4) 0 0) 0 0 / var(--l) var(--t) no-repeat, linear-gradient(var(--o4) 0 0) 0 0 / var(--t) var(--l) no-repeat,
    linear-gradient(var(--o4) 0 0) 100% 0 / var(--l) var(--t) no-repeat, linear-gradient(var(--o4) 0 0) 100% 0 / var(--t) var(--l) no-repeat,
    linear-gradient(var(--o4) 0 0) 0 100% / var(--l) var(--t) no-repeat, linear-gradient(var(--o4) 0 0) 0 100% / var(--t) var(--l) no-repeat,
    linear-gradient(var(--o4) 0 0) 100% 100% / var(--l) var(--t) no-repeat, linear-gradient(var(--o4) 0 0) 100% 100% / var(--t) var(--l) no-repeat,
    radial-gradient(ellipse 55% 45% at 50% 0%, rgb(243 128 32 / .12), transparent 70%),
    var(--night); /* solid: nothing shows through the stage */
}
.chain::before {
  content: ""; position: absolute; left: calc(50% - 4px); bottom: calc(100% - 4px); width: 8px; height: 60px; pointer-events: none;
  background:
    linear-gradient(var(--o3) 0 0) 50% 100% / 8px 8px no-repeat,
    repeating-linear-gradient(var(--o3) 0 6px, transparent 6px 12px) 50% 0 / 2px calc(100% - 10px) no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%);
}
.chain [data-at] { transition: opacity .35s, transform .35s; }
.chain.is-paused *, .chain.is-paused *::before, .chain.is-paused *::after { animation-play-state: paused !important; }
.chain.is-anim [data-at]:not(.is-on) { opacity: 0; transform: translateY(4px); }
.chain.is-anim .calls li[data-at]:not(.is-on) { display: none; }
.chain.is-anim .calls[data-at]:not(.is-on), .chain.is-anim .msg__done[data-at]:not(.is-on) { display: none; }

.bot { display: grid; place-items: center; flex: none; width: 32px; height: 32px; background: #2B2723; }
.bot svg { width: 100%; height: 100%; }
.bot--md { width: 28px; height: 28px; }
.bot--sm { width: 22px; height: 22px; }

/* the agent: a chat, the way an agent product shows its work. Fixed height; the log scrolls. */
.agent, .pc { background: var(--ink); border: 1px solid var(--line-d); box-shadow: 0 24px 60px rgb(0 0 0 / .45); }
.agent { grid-area: agent; display: flex; flex-direction: column; min-height: 0; }
.agent__top { flex: none; display: flex; align-items: center; gap: 10px; height: var(--bar); padding: 0 16px; border-bottom: 1px solid var(--line-d); }
.agent__top p { margin: 0; line-height: 1.3; }
.agent__top b { display: block; font-size: 14px; font-weight: 600; }
.agent__state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-d); font-size: 12px; }
.agent__state i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.agent__state em { font-style: normal; }
.chain.is-calling .agent__state i { background: var(--o3); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.agent__tools { margin-left: auto; display: flex; gap: 4px; }
.agent__tools img { width: 26px; height: 26px; padding: 5px; background: var(--paper); border-radius: 6px; }
.agent__log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 18px; padding: 18px 14px; font-size: 14px; line-height: 1.5; scrollbar-width: thin; scrollbar-color: rgb(250 250 248 / .18) transparent; }
.agent__log.is-cut { -webkit-mask-image: linear-gradient(transparent, #000 40px); mask-image: linear-gradient(transparent, #000 40px); }
.msg { margin: 0; }
.msg p { margin: 0; }
.msg__who { margin-bottom: 4px !important; color: var(--muted-d); font: 500 11px/1.2 var(--mono); letter-spacing: .04em; }
.msg--you { align-self: flex-end; max-width: 88%; padding: 10px 14px 12px; background: rgb(243 128 32 / .1); border: 1px solid rgb(243 128 32 / .3); }
.msg--you .msg__who { color: var(--o4); }
.msg--bot { display: flex; gap: 10px; align-items: flex-start; }
.msg__body { flex: 1; min-width: 0; display: grid; gap: 10px; }
.msg__body > p { color: rgb(250 250 248 / .9); }
.msg__body > .msg__who { margin-bottom: -4px !important; }
.calls { border: 1px solid var(--line-d); background: rgb(250 250 248 / .03); }
.calls__h { display: flex; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid var(--line-d); color: var(--muted-d); font: 500 11px/1.2 var(--mono); }
.calls__h b { color: var(--paper); font-weight: 500; }
.calls ul { list-style: none; margin: 0; padding: 0; }
.calls li { display: grid; grid-template-columns: 16px minmax(0, 1fr) 14px; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; }
.calls li + li { border-top: 1px solid var(--line-d); }
.calls img { grid-row: 1 / 3; }
.calls li span { font-size: 13px; color: var(--paper); }
.calls code { grid-column: 2; color: var(--muted-d); font: 400 11px/1.3 var(--mono); }
.calls__st { grid-column: 3; grid-row: 1 / 3; width: 14px; height: 14px; }
.calls__st::before { content: "✓"; display: block; color: var(--ok); font: 600 12px/14px var(--text); text-align: center; }
.calls li.is-run .calls__st::before { content: ""; width: 10px; height: 10px; margin: 2px; border: 2px solid rgb(250 250 248 / .25); border-top-color: var(--o3); border-radius: 50%; animation: spin .8s linear infinite; }
.calls li.is-run { background: rgb(243 128 32 / .08); }
@keyframes spin { to { transform: rotate(1turn); } }
.typing { display: none; gap: 4px; padding: 4px 0; }
.chain.is-calling .typing { display: flex; }
.typing i { width: 6px; height: 6px; background: var(--muted-d); animation: blink 1.2s steps(2) infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.msg__done { padding: 10px 12px; background: rgb(111 211 138 / .07); border-left: 2px solid var(--ok); }

/* the link sits in a dark channel, so it reads over the orange pixels behind it */
.wire { grid-area: wire; position: relative; z-index: 1; align-self: center; height: 14px; background: repeating-linear-gradient(90deg, rgb(250 250 248 / .45) 0 6px, transparent 6px 12px) 0 50% / 100% 2px no-repeat; }
.wire i { position: absolute; top: 2px; left: 0; width: 8px; height: 8px; background: var(--o3); opacity: 0; animation: run 1.2s linear infinite paused; }
.wire i:nth-child(2) { animation-delay: .4s; }
.wire i:nth-child(3) { animation-delay: .8s; }
.chain.is-calling .wire i { opacity: 1; animation-play-state: running; }
@keyframes run { from { left: 0; } to { left: calc(100% - 8px); } }
@keyframes runv { from { top: 0; } to { top: calc(100% - 8px); } }

/* the computer: one desktop, the app in use open as a window, the dock underneath */
.pc { grid-area: pc; display: flex; flex-direction: column; min-height: 0; }
.pc__top { flex: none; display: flex; align-items: center; gap: 6px; height: var(--bar); padding: 0 16px; border-bottom: 1px solid var(--line-d); color: var(--muted-d); font: 400 12px/1 var(--mono); }
.pc__top i { width: 9px; height: 9px; background: rgb(250 250 248 / .18); }
.pc__top span { flex: 1; min-width: 0; margin-left: 8px; overflow: hidden; color: var(--paper); text-overflow: ellipsis; white-space: nowrap; }
.pc__top code { display: none; } /* the half-width window keeps only its title */
.pc__top em { font-style: normal; }
.pc__desk { position: relative; flex: 1; min-height: 0; overflow: hidden; } /* no desktop of its own: the app window sits on the stage */

.app { position: absolute; inset: 16px 16px 78px; display: none; overflow: hidden; border-radius: 10px; background: #fff; color: #1F1F1F; box-shadow: 0 18px 44px rgb(0 0 0 / .45); font: 400 13px/1.4 var(--text); }
.app.is-shown { display: flex; flex-direction: column; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.98); } }
.app img { flex: none; }
.app p { margin: 0; }

/* Gmail */
.gm { background: #F6F8FC; }
.gm__top { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; }
.gm__top > b { font: 400 19px/1 var(--text); color: #5F6368; }
.gm__burger, .gm__search svg, .gm__compose svg { width: 16px; height: 16px; fill: none; stroke: #444746; stroke-width: 1.6; stroke-linecap: round; }
.gm__search { flex: 1; display: flex; align-items: center; gap: 10px; height: 34px; max-width: 360px; margin-left: 16px; padding: 0 14px; background: #E9EEF6; border-radius: 17px; color: #5F6368; }
.gm__me { margin-left: auto; }
.gm__main { flex: 1; display: flex; min-height: 0; padding-right: 12px; }
.gm__nav { width: 148px; flex: none; padding: 2px 8px; }
.gm__compose { display: inline-flex; align-items: center; gap: 10px; height: 40px; margin-bottom: 10px; padding: 0 18px 0 14px; background: #C2E7FF; border-radius: 12px; font-weight: 500; }
.gm__nav p { display: flex; justify-content: space-between; height: 28px; align-items: center; padding: 0 12px; border-radius: 14px; color: #444746; }
.gm__nav p.is-on { background: #D3E3FD; color: #001D35; font-weight: 600; }
.gm__read { flex: 1; min-width: 0; margin-bottom: 12px; padding: 18px 20px; background: #fff; border-radius: 14px; }
.gm__sub { display: flex; align-items: center; gap: 10px; margin-bottom: 16px !important; font-size: 18px; }
.gm__sub span { padding: 1px 6px; background: #E8EAED; border-radius: 4px; color: #444746; font-size: 11px; }
.gm__from { display: flex; align-items: center; gap: 10px; }
.gm__from img { border-radius: 50%; object-fit: cover; }
.gm__from p { flex: 1; line-height: 1.3; }
.gm__from b { display: block; font-weight: 600; }
.gm__from span, .gm__from time { color: #5F6368; font-size: 12px; }
.gm__body { margin-top: 16px !important; padding-left: 42px; line-height: 1.55; }

/* Google Calendar */
.gc__top { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-bottom: 1px solid #E3E3E3; }
.gc__top > b { margin-right: 12px; font: 400 19px/1 var(--text); color: #5F6368; }
.gc__btn { padding: 6px 14px; border: 1px solid #C7C7C7; border-radius: 16px; font-size: 12px; font-weight: 500; }
.gc__btn--r { margin-left: auto; }
.gc__arw { color: #444746; letter-spacing: 6px; }
.gc__month { font-size: 17px; }
.gc__grid, .gc__body { display: grid; grid-template-columns: 34px repeat(5, minmax(0, 1fr)); }
.gc__grid p { padding: 8px 0 6px; color: #444746; font-size: 10px; font-weight: 500; text-align: center; }
.gc__grid p b { display: block; margin: 2px auto 0; font: 400 20px/1.3 var(--text); }
.gc__grid p.fri { color: var(--o1); }
.gc__lbl { color: #70757A; font-size: 9px; align-self: center; }
.gc__grid i { height: 26px; border-left: 1px solid #E3E3E3; border-bottom: 1px solid #E3E3E3; padding: 2px; }
.gc__grid em { display: block; height: 100%; padding: 3px 6px; background: var(--o3); border-radius: 4px; color: var(--ink); font: 600 11px/1.5 var(--text); font-style: normal; }
.gc__body { --row: 36px; flex: 1; overflow: hidden; }
.gc__times span { display: block; height: var(--row); padding-right: 6px; color: #70757A; font-size: 10px; text-align: right; transform: translateY(-6px); }
.gc__col { position: relative; border-left: 1px solid #E3E3E3; background: repeating-linear-gradient(#E3E3E3 0 1px, transparent 1px var(--row)); transition: background-color .3s; }
.gc__col i { position: absolute; left: 2px; right: 4px; top: calc(var(--t) * var(--row) + 1px); height: calc(var(--h) * var(--row) - 3px); padding: 3px 6px; overflow: hidden; border-radius: 4px; color: #fff; font: 500 11px/1.25 var(--text); font-style: normal; }
.gc__col .c1 { background: #039BE5; } .gc__col .c2 { background: #7986CB; } .gc__col .c3 { background: #33B679; } .gc__col .c4 { background: #E67C73; }
.chain[data-step="2"] .gc__col.fri { background-color: rgb(243 128 32 / .12); }

/* Slack */
.sl { flex-direction: row !important; }
.sl.is-shown { display: flex; }
.sl__side { width: 172px; flex: none; padding: 12px 8px; background: #3F0E40; color: rgb(255 255 255 / .72); }
.sl__side p { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 6px; }
.sl__side img { border-radius: 4px; }
.sl__ws { margin-bottom: 8px !important; color: #fff; font-size: 16px; font-weight: 700; }
.sl__h { margin-top: 8px !important; font-size: 12px; }
.sl__side p.is-on { background: #1164A3; color: #fff; font-weight: 600; }
.sl__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sl__ch { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-bottom: 1px solid #E3E3E3; }
.sl__ch b { font-size: 16px; font-weight: 700; }
.sl__ch span { color: #616061; font-size: 12px; }
.sl__msgs { flex: 1; list-style: none; margin: 0; padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.sl__msgs li { display: flex; gap: 10px; align-items: flex-start; }
.sl__msgs img, .sl__msgs .bot { border-radius: 6px; object-fit: cover; }
.sl__msgs b { font-weight: 700; }
.sl__msgs time { margin-left: 8px; color: #616061; font-size: 11px; }
.sl__app { margin-left: 6px; padding: 0 4px; background: #E8E8E8; border-radius: 3px; color: #616061; font-size: 10px; font-weight: 600; }
.sl__in { margin: 0 16px 14px !important; padding: 10px 12px; border: 1px solid #BBBABB; border-radius: 8px; color: #8A898A; }

/* the dock: the apps the agent can reach; the one in use lifts and gets a dot */
.dock { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 6px; padding: 7px; background: rgb(30 26 22 / .72); border: 1px solid rgb(250 250 248 / .14); border-radius: 14px; backdrop-filter: blur(8px); }
.dock button, .dock span { position: relative; padding: 0; border: 0; font: inherit; display: grid; place-items: center; width: 40px; height: 40px; background: var(--paper); border-radius: 9px; transition: transform .25s; }
.dock img { width: 24px; height: 24px; }
.dock button { cursor: pointer; }
.dock button:hover { transform: translateY(-4px); }
.dock button:focus-visible { outline: 2px solid var(--o3); outline-offset: 2px; }
.dock .is-active, .dock .is-active:hover { transform: translateY(-8px); }
.dock .is-off { opacity: .32; filter: grayscale(1); cursor: not-allowed; }
.dock .is-active::after { content: ""; position: absolute; bottom: -9px; left: calc(50% - 2px); width: 4px; height: 4px; background: var(--paper); border-radius: 50%; }
.dock .dock__more { margin-left: 4px; background: transparent; box-shadow: inset 0 0 0 1px rgb(250 250 248 / .3); color: var(--paper); font: 500 11px/1 var(--mono); }

.chain__pause { position: absolute; right: 0; bottom: -46px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; background: var(--ink); border: 1px solid var(--line-d); color: var(--paper); cursor: pointer; }
.chain__pause svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.chain__pause .i-play, .chain__pause[aria-pressed="true"] .i-pause { display: none; }
.chain__pause[aria-pressed="true"] .i-play { display: inline; }

/* the tools: a ruled strip with + where the lines cross */
.tools { background: var(--night); }
.tools__h { margin: 0; padding: 32px 16px 24px; color: var(--muted-d); text-align: center; font: 400 15px/1.4 var(--text); }
.tools__row { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: var(--frame); margin: 0 auto; padding: 0; }
.tools__row li:last-child { border-right: 1px solid var(--line-d); }
.tools__row li { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 96px; border-left: 1px solid var(--line-d); border-top: 1px solid var(--line-d); font: 500 17px/1 var(--display); }
.tools__row li + li::before { content: "+" / ""; position: absolute; top: -8px; left: -5px; color: var(--muted-d); font: 400 13px/1 var(--mono); }
.tools__row a { color: var(--o4); text-decoration: none; }
.tools__row a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* stepped pixel edge between a dark and a light band (drawn by site.js) */
.edge { display: block; height: 56px; }
.edge[data-edge="light"] { background: var(--page); color: var(--night); }
.edge[data-edge="dark"] { background: var(--night); color: var(--page); }
.edge svg { display: block; width: 100%; height: 100%; fill: currentColor; }

/* light bands */
.light { padding: 104px 0 112px; background: var(--page); color: var(--ink); }
.light + .light { margin-top: -1px; } /* overlap a pixel so no hairline of the dark page shows between two light bands */
.light { position: relative; overflow: clip; } /* clip, not hidden: the FAQ heading stays sticky */
.light > .wrap { position: relative; z-index: 1; }
.light .field { -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); } /* each glow fades out before the band ends, so bands join on the plain page colour */
.light--rule { }
.light h2 em { color: var(--muted); }
.head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: end; margin-bottom: 56px; }
.head > :first-child { grid-column: 1 / 3; }
.head > :last-child:not(:first-child) { grid-column: 3; text-align: right; }
.faq .head > :last-child:not(:first-child) { text-align: left; } /* the FAQ heading stands alone in its column, so it reads from the left */ /* flush with the right edge, as the heading is with the left */
.head p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.head a { color: var(--o1); }
.head--dark h2 em { color: var(--o4); }
.head--dark p { color: var(--muted-d); }

.card {
  --l: 10px; --t: 2px; position: relative; padding: 24px; background: #fff; border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.card::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; color: var(--o3); opacity: 0; transition: opacity .2s;
  background:
    linear-gradient(currentColor 0 0) 0 0 / var(--l) var(--t), linear-gradient(currentColor 0 0) 0 0 / var(--t) var(--l),
    linear-gradient(currentColor 0 0) 100% 0 / var(--l) var(--t), linear-gradient(currentColor 0 0) 100% 0 / var(--t) var(--l),
    linear-gradient(currentColor 0 0) 0 100% / var(--l) var(--t), linear-gradient(currentColor 0 0) 0 100% / var(--t) var(--l),
    linear-gradient(currentColor 0 0) 100% 100% / var(--l) var(--t), linear-gradient(currentColor 0 0) 100% 100% / var(--t) var(--l);
  background-repeat: no-repeat;
}
.card:hover::before { opacity: 1; }
.card h3 { margin: 24px 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.card .steps__n, .steps__n { margin: 0 0 20px; color: var(--o1); font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.score { min-height: 168px; padding: 14px; background: var(--page); }
.score { display: grid; grid-template-columns: auto 1fr; align-items: baseline; align-content: start; gap: 4px 12px; }
.score b { font: 600 36px/1 var(--display); letter-spacing: -0.03em; }
.score span { color: var(--muted); font-size: 13px; }
.score__bar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; }
.score__bar i { height: 8px; background: var(--o3); }
.score--big { min-height: 0; }
.score--big b { font-size: 64px; }

.card .checks li { color: var(--ink); }
.checks b { display: block; font-size: 15px; font-weight: 500; }
.checks span { color: var(--muted); font-size: 13px; }
.checks { list-style: none; margin: 20px 0 0; padding: 0; }
.checks li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 2px; top: 12px; color: var(--o1); font-weight: 600; }

/* How: the SDK chips and the request */
.code__c { color: var(--muted-d); }
.code__k { color: var(--o4); }
.code__s { color: #9FD8A8; }

/* the run report: one product screen */
.report { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgb(30 26 22 / .08); }
.report__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.report__top code { padding: 3px 6px; background: var(--page); color: var(--muted); font: 400 12px/1.2 var(--mono); }
.report__top b { font-size: 16px; font-weight: 600; }
.report__top > span { color: var(--muted); font-size: 14px; }
.report__top .report__pass { margin-left: auto; padding: 6px 10px; background: #E3F6E7; color: #1E6B33; font: 500 12px/1 var(--mono); }
.report__body { display: grid; grid-template-columns: 7fr 5fr; }
.report__trace, .report__score { padding: 20px; }
.report__score { background: #FBFAF8; border-left: 1px solid var(--line); }
.report .steps__n { margin-bottom: 12px; }

/* Two ways: the tool sim computer and the company sim office */
.duo__art { position: relative; align-self: stretch; display: grid; place-items: center; height: 260px; margin-bottom: 8px; overflow: hidden; background: #171310; border: 1px solid var(--line-d); }
.duo__art--tool { display: flex; align-items: center; justify-content: center; }
.duo__wire { position: relative; width: 56px; height: 2px; background: repeating-linear-gradient(90deg, var(--o3) 0 6px, transparent 6px 12px); }
.duo__wire i { position: absolute; top: -3px; left: calc(50% - 4px); width: 8px; height: 8px; background: var(--o3); } /* still: it never needs a pause button */
.who { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px 3px 3px; background: var(--ink-2); border: 1px solid var(--line-d); color: var(--paper); font-size: 12px; font-weight: 500; white-space: nowrap; }
.who img { border-radius: 50%; object-fit: cover; }
.who--agent { border-color: rgb(243 128 32 / .5); }
.duo__art--tool .who { padding: 4px 12px 4px 4px; font-size: 14px; }
.mini { width: 330px; background: var(--ink); border: 1px solid var(--line-d); box-shadow: 0 16px 36px rgb(0 0 0 / .45); }
.mini__top { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line-d); }
.mini__top i { width: 6px; height: 6px; background: rgb(250 250 248 / .2); }
.mini__desk { position: relative; height: 196px; background: #1B1714; }
.mini__win { position: absolute; inset: 10px 14px 46px; display: grid; align-content: start; gap: 6px; padding: 0 8px 8px; background: #fff; border-radius: 5px; }
.mini__win span { display: block; width: var(--w); height: 6px; background: #E6E2DC; }
.mini__win .mini__bar { width: auto; height: 16px; margin: 0 -8px 2px; padding: 3px 6px; background: var(--sand); border-radius: 5px 5px 0 0; }
.mini__win .is-ai { background: var(--o-tint); box-shadow: inset 2px 0 0 var(--o3); height: 12px; }
.mini__dock { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; background: rgb(30 26 22 / .75); border: 1px solid rgb(250 250 248 / .14); border-radius: 8px; }
.mini__dock img { width: 28px; height: 28px; padding: 5px; background: var(--paper); border-radius: 5px; }
.mini__dock img.is-on { transform: translateY(-4px); }
.duo__scene { position: relative; z-index: 1; width: 252px; height: auto; image-rendering: pixelated; }
.duo__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.duo__wires line { stroke: rgb(250 250 248 / .22); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.duo__art--co .who { position: absolute; z-index: 2; top: var(--y); transform: translateY(-50%); }
.duo__art--co .is-l { left: 14px; }
.duo__art--co .is-r { right: 14px; }

/* the stack: frameworks as a ruled grid, then the one switch */
.fw { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fw li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 124px; padding: 16px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; text-align: center; transition: background-color .2s, color .2s; }
.fw li:hover { background: var(--o-tint); color: var(--ink); }
.fw img { height: 28px; width: auto; }
.fw img.fw__wide { height: 22px; }
.fw__name { display: grid; place-items: center; height: 28px; padding: 0 8px; color: var(--ink); font: 600 18px/1 var(--display); letter-spacing: -0.02em; }
.fw__name--code { font: 500 16px/1 var(--mono); background: var(--ink); color: var(--o4); }
.fw li.fw__any { background: transparent; color: var(--ink); font: 500 15px/1.3 var(--display); }
.switch { display: grid; gap: 12px; margin-top: 40px; }
.switch__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 24px 220px; align-items: center; gap: 16px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); }
.switch__tag { color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.switch__row code { overflow: hidden; color: var(--ink); font: 400 13px/1.3 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.switch__arw { color: var(--muted); }
.switch__to { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.switch__row.is-test { border-color: var(--o3); box-shadow: 0 0 0 3px var(--o-tint); }
.switch__row.is-test .switch__tag, .switch__row.is-test code { color: var(--o1); }
.switch__notes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 0; padding: 0; }
.switch__notes li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px dashed rgb(30 26 22 / .18); color: var(--muted); font-size: 14px; line-height: 1.45; }
.switch__notes img, .switch__mark { flex: none; width: 28px; height: auto; }
.switch__mark { height: 28px; color: var(--ink); }
.switch__notes b { color: var(--ink); font-weight: 600; }

/* How it works: three steps on one line, numbered pixel tiles on a dashed track */
.flow3 { position: relative; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
.flow3::before { content: ""; position: absolute; left: 24px; right: 24px; top: 15px; height: 2px; background: repeating-linear-gradient(90deg, var(--o3) 0 6px, transparent 6px 12px); opacity: .5; }
.flow3__step { position: relative; display: flex; flex-direction: column; }
.flow3__n { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--o1); font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.flow3__n span { display: grid; place-items: center; width: 32px; height: 32px; background: var(--o3); color: var(--ink); font: 600 14px/1 var(--mono); clip-path: var(--notch); }
.flow3__n { width: max-content; padding-right: 12px; background: var(--page); }
.flow3__art { height: 216px; padding: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.flow3__step h3 { margin: 24px 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.flow3__step > p:not(.flow3__n) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.term3 { padding: 0; background: var(--ink); border-color: var(--ink); }
.term3__bar { display: flex; align-items: center; gap: 5px; margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--line-d); color: var(--muted-d); font: 400 11px/1 var(--mono); }
.term3__bar i { width: 7px; height: 7px; background: rgb(250 250 248 / .2); }
.term3__bar span { margin-left: 6px; }
.term3 pre { margin: 0; padding: 14px; color: var(--paper); font: 400 12px/1.75 var(--mono); white-space: pre-wrap; }
.world3 { display: flex; flex-direction: column; }
.world3__t { display: flex; justify-content: space-between; margin: 0 0 8px; }
.world3__t b { font-weight: 600; }
.world3__t span { color: var(--muted); font-size: 13px; }
.world3 ul { list-style: none; margin: 0; padding: 0; }
.world3 li { display: grid; grid-template-columns: 16px 1fr 30px; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.world3 li i { position: relative; width: 30px; height: 16px; background: #DAD5CF; }
.world3 li i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; background: #fff; }
.world3 li i.on { background: var(--o3); }
.world3 li i.on::after { left: 17px; }
.world3 li.is-off { color: var(--muted); }
.world3 li.is-off img { filter: grayscale(1); opacity: .5; }
.world3__seed { margin: auto 0 0; padding-top: 8px; color: var(--o1); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.score3__top { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.score3__top b { font: 600 48px/1 var(--display); letter-spacing: -0.03em; }
.score3__top span { color: var(--muted); font-size: 13px; }
.score3 ul { list-style: none; margin: 0; padding: 0; }
.score3 li { position: relative; padding: 8px 0 8px 26px; border-top: 1px solid var(--line); font-size: 14px; }
.score3 li::before { content: "✓"; position: absolute; left: 4px; color: var(--o1); font-weight: 600; }

/* the report reads like a trace: a time axis and a span per call */
.report__chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--sand); border-bottom: 1px solid var(--line); color: var(--muted); font: 400 12px/1 var(--mono); }
.report__chrome i { width: 9px; height: 9px; background: rgb(30 26 22 / .15); }
.report__chrome span { margin-left: 8px; }

/* under the report: where its data comes from, one card each */
/* the one wide card under the report: the chat-to-test-case picture on the left, its words on the right */

/* the trace: a span tree on the left, a waterfall on the right, one span open */
.report__body { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.wf__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin-bottom: 14px; }
.wf__head .steps__n { margin: 0; }
.wf__legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; color: var(--muted); font-size: 12px; }
.wf__legend span { display: inline-flex; align-items: center; gap: 6px; }
.wf__legend span::before { content: ""; width: 10px; height: 10px; }
.wf__legend .is-agent::before { background: var(--ink); }
.wf__legend .is-model::before { background: repeating-linear-gradient(45deg, var(--o1) 0 3px, #D96A1E 3px 6px); }
.wf__legend .is-app::before { background: var(--o3); }
.wf { --name: 250px; }
.wf__axis { position: relative; height: 18px; margin: 0 0 0 calc(var(--name) + 12px); color: var(--muted); font: 400 10px/1 var(--mono); }
.wf__axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.wf__axis span:nth-child(4) { transform: translateX(-100%); }
.wf__axis span:nth-child(1) { left: 0; transform: none; }
.wf__axis span:nth-child(2) { left: 32.26%; }
.wf__axis span:nth-child(3) { left: 64.52%; }
.wf__axis span:nth-child(4) { left: 96.77%; transform: translateX(-100%); }
.wf ol { position: relative; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.wf ol::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--name) + 12px); right: 0; background: linear-gradient(90deg, rgb(30 26 22 / .08) 1px, transparent 1px) 0 0 / 32.26% 100%; pointer-events: none; }
.wf__row { position: relative; display: grid; grid-template-columns: var(--name) minmax(0, 1fr); gap: 12px; align-items: center; height: 38px; border-top: 1px solid var(--line); }
.wf__name { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding-left: calc(var(--d) * 20px); }
.wf__row:not(.is-agent) .wf__name::before { content: ""; position: absolute; left: 8px; top: -19px; height: 38px; width: 8px; border-left: 1px solid rgb(30 26 22 / .2); border-bottom: 1px solid rgb(30 26 22 / .2); }
.wf__name > span:last-child { min-width: 0; overflow: hidden; color: var(--ink); font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.bot--xs { width: 18px; height: 18px; }
.wf__bar { position: relative; height: 100%; margin: 0; }
.wf__bar i { position: absolute; top: 12px; height: 14px; left: var(--s); width: var(--w); min-width: 3px; background: var(--o3); }
.wf__row.is-agent .wf__bar i { background: var(--ink); }
.wf__row.is-model .wf__bar i { background: repeating-linear-gradient(45deg, var(--o1) 0 3px, #D96A1E 3px 6px); }
.wf__row.is-sel { background: var(--o-tint); box-shadow: inset 2px 0 0 var(--o3); }

/* why: five reasons, each with a small picture */
.why { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.why__card { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--ink); border: 1px solid var(--line-d); transition: border-color .2s; }
.why__card:hover { border-color: rgb(243 128 32 / .5); }
.why__card--wide { grid-column: span 3; }
.why__card h3 { margin: 16px 0 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.why__card p { margin: 0; color: var(--muted-d); font-size: 15px; line-height: 1.5; }
.why__art { display: flex; align-items: center; min-height: 112px; padding: 16px; background: #171310; border: 1px solid var(--line-d); }
.why__apps { gap: 8px; }
.why__apps span { display: grid; place-items: center; width: 44px; height: 44px; background: var(--paper); border-radius: 10px; }
.why__apps b { margin-left: 6px; padding: 4px 8px; border: 1px dashed var(--o3); color: var(--o4); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.why__toggle { justify-content: center; }
.why__toggle span { padding: 10px 16px; border: 1px solid var(--line-d); color: var(--muted-d); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.why__toggle span.is-on { background: var(--o3); border-color: var(--o3); color: var(--ink); }
.why__runs { flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; }
.why__runs p, .why__checks p { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; }
.why__runs code { color: var(--paper); font: 400 12px/1 var(--mono); }
.why__runs span { flex: 1; color: var(--muted-d); font: 400 12px/1 var(--mono); }
.why__runs i, .why__checks i { color: var(--ok); font-style: normal; font-weight: 600; }
.why__checks { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; position: relative; }
.why__checks p { color: var(--paper); font-size: 14px; }
.why__checks p.is-x i { color: #FF9A73; }
.why__replay { position: absolute; right: 16px; bottom: 16px; padding: 6px 10px; border: 1px solid var(--line-d); color: var(--o4); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.why__case { gap: 14px; }
.why__chat { flex: 1; padding: 10px 14px; background: var(--ink-2); color: var(--paper) !important; font-size: 14px !important; }
.why__to { color: var(--o3); font-size: 18px; }
.why__tc { flex: 1; display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--o3); }
.why__tc b { color: var(--o4); font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.why__tc span { color: var(--paper); font-size: 14px; }

/* no card inside a card: a picture is the top zone of its card, full bleed, split from the words by one line */
.why__art, .duo__art { align-self: stretch; margin: -24px -24px 0; border: 0; border-bottom: 1px solid var(--line-d); }
/* the zone keeps its own tone, so the picture reads as a picture; it is the card's top, not a box inside it */
.why__art, .duo__art { background: #171310; }
.why__art { min-height: 144px; padding: 24px; }
.duo__art { margin-bottom: 8px; }
.why__card h3 { margin-top: 20px; }
/* the report: the score and the open span sit in their columns, not in boxes of their own */
.report__score .score { min-height: 0; padding: 0; background: none; }

/* audit fixes */
.nav__more { display: none; position: relative; }
.nav__more summary { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-d); color: var(--paper); cursor: pointer; list-style: none; }
.nav__more summary::-webkit-details-marker { display: none; }
.nav__more summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nav__more[open] summary { border-color: var(--o3); }
.nav__sheet { position: absolute; right: 0; top: calc(100% + 10px); display: grid; gap: 2px; min-width: 240px; padding: 10px; background: var(--ink); border: 1px solid var(--line-d); box-shadow: 0 20px 40px rgb(0 0 0 / .5); }
.nav__sheet a:not(.pbtn) { padding: 12px 10px; color: var(--paper); text-decoration: none; font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nav__sheet a:not(.pbtn):hover { color: var(--o4); }
.nav__sheet .pbtn { margin-top: 8px; }
.why__replay { position: static; align-self: flex-end; margin-top: 4px; }
.light + .light { padding-top: 32px; }
.switch__notes li { border-style: solid; border-color: var(--line); }
.why__apps b { border-style: solid; }
.plan__tag .tk { padding: 2px 8px; font-size: 11px; }
.plan .steps__n { min-height: 20px; }
.duo__art--tool { padding: 0 24px; }
.tools__row li { border-bottom: 1px solid var(--line-d); }
.hero h1 { text-wrap: balance; }

/* dark bands */
.dark { padding: 104px 0 112px; background: var(--night); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo__card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; background: var(--ink); border: 1px solid var(--line-d); transition: border-color .2s; }
.duo__card:hover { border-color: rgb(243 128 32 / .5); }
.duo__card h3 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.duo__card dl { align-self: stretch; display: grid; gap: 10px; margin: 0 0 12px; }
.duo__card dl div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line-d); }
.duo__card dt { padding-top: 3px; color: var(--muted-d); font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.duo__card dd { margin: 0; color: rgb(250 250 248 / .86); font-size: 15px; }
.duo__card .pbtn { margin-top: auto; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.card .plan__price { color: var(--ink); font: 500 40px/1.1 var(--display); letter-spacing: -0.03em; }
.plan .steps__n { margin-bottom: 8px; }
.plan__tag { display: flex; align-items: center; gap: 12px; }
.light .tk { color: var(--o1); }
.light .tk--quiet { color: var(--muted); }
.plan ul { align-self: stretch; list-style: none; margin: 8px 0 20px; padding: 0; }
.plan li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.plan .pbtn { margin-top: auto; }
.plan--on { border-color: var(--o3); box-shadow: 0 0 0 4px var(--o-tint); }

.faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.faq__list { grid-column: 2 / 4; }
.faq .head { display: block; align-self: start; position: sticky; top: 112px; margin: 0; }
.faq .head p { margin-top: 16px; }
.faq__list details { border-top: 1px solid rgb(30 26 22 / .14); }
.faq__list details:last-child { border-bottom: 1px solid rgb(30 26 22 / .14); }
.faq__list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+" / ""; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; color: var(--o1); font: 500 18px/1 var(--mono); transition: transform .2s; }
.faq__list details[open] summary::after { content: "−" / ""; }
.faq__list summary:hover h3 { color: var(--o1); }
.faq__list summary:focus-visible { outline-offset: 4px; }
.faq__list h3 { margin: 0; font: 600 17px/1.35 var(--text); transition: color .15s; }
.faq__list p { margin: 0; padding: 0 48px 22px 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.close { position: relative; overflow: hidden; text-align: center; }
.close > .wrap { position: relative; }
.close h2 { margin-top: 24px; font-size: clamp(40px, 5vw, 64px); }
.close__p { margin: 16px 0 0; color: var(--muted-d); font-size: 17px; line-height: 1.55; }
.signup { display: flex; gap: 16px; width: min(540px, 100%); margin: 32px auto 0; }
.signup input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; background: var(--ink); border: 1px solid rgb(250 250 248 / .45); border-radius: 0; color: var(--paper); font: 400 15px/1 var(--text); }
.signup { flex-wrap: wrap; }
.signup__label { flex-basis: 100%; color: var(--muted-d); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.signup input::placeholder { color: rgb(250 250 248 / .58); } /* 4.5:1 on the field */
.signup input:focus-visible { outline: 2px solid var(--o3); outline-offset: 0; }
.signup input:user-invalid { border-color: #FF9A73; } /* only after the visitor has typed and left the field */
.signup__status { min-height: 1.5em; margin: 14px 0 0; color: var(--muted-d); font-size: 14px; }
.signup__status.is-error { color: #FF9A73; }

/* footer: brand, tree links, legal row, and the character wordmark bleeding off the bottom */
.foot { overflow: hidden; background: var(--foot); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 64px 0 56px; }
.foot__brand p { max-width: 30ch; margin: 16px 0 0; color: var(--muted-d); font-size: 15px; }
.tree p { margin: 0 0 10px; color: var(--paper); font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree li { position: relative; padding-left: 30px; font-size: 14px; line-height: 2.1; }
.tree li::before { content: "├─" / ""; position: absolute; left: 0; color: rgb(250 250 248 / .3); font-family: var(--mono); font-size-adjust: none; }
.tree li:last-child::before { content: "└─" / ""; }
.tree a { color: var(--muted-d); text-decoration: none; transition: color .15s; }
.tree a:hover { color: var(--paper); }
.foot__legal { border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; color: var(--muted-d); font-size: 13px; }
.foot__top { display: inline-flex; align-items: center; gap: 14px; color: var(--muted-d); text-decoration: none; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.foot__top:hover { color: var(--paper); }
.foot__top:hover .pbtn { transform: translate(-2px, -2px); }
.wordmark { display: block; width: calc(var(--frame) - 2 * var(--inset)); height: 0; margin: 8px auto 0; }

@media (min-width: 1024px) and (max-width: 1199px) {
  .chain { grid-template-columns: minmax(0, 2fr) 44px minmax(0, 3fr); }
  .gm__nav { width: 120px; }
  .dock span:nth-child(n+9):not(.dock__more) { display: none; }
  .pc__top code { display: none; }
}
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__more { display: block; }
  .nav__bar { justify-content: space-between; }
  .chain { grid-template-columns: minmax(0, 1fr); grid-template-areas: "agent" "wire" "pc"; grid-template-rows: 460px 56px 460px; }
  .chain { padding: 16px; }
  @media (max-width: 640px) {
  .pc__top em { display: none; } /* "testworld · simulated apps" fits a phone */ .chain { padding: 8px; } .sl__side { width: 92px; } .sl__ws { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sl__ch { white-space: nowrap; } .sl__ch span { display: none; } }
  .agent { min-height: 0; }
  .wire { justify-self: center; align-self: auto; width: 14px; height: 56px; background: repeating-linear-gradient(rgb(250 250 248 / .45) 0 6px, transparent 6px 12px) 50% 0 / 2px 100% no-repeat; }
  .wire i { left: 2px; top: 0; animation-name: runv; }
  .report__body { grid-template-columns: minmax(0, 1fr); }
  .report__score { border-left: 0; border-top: 1px solid var(--line); }
  .head, .duo, .faq { grid-template-columns: minmax(0, 1fr); }
  .fw { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why__card, .why__card--wide { grid-column: auto; }
  .switch__row { grid-template-columns: 100px minmax(0, 1fr); }
  .switch__arw { display: none; }
  .switch__notes { grid-template-columns: minmax(0, 1fr); }
  .switch__to { grid-column: 2; }
  .head { gap: 16px; }
  .flow3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .flow3__step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-content: start; }
  .flow3__n { grid-column: 1 / -1; }
  .flow3__art { grid-column: 1; grid-row: 2 / span 3; }
  .flow3__step > :not(.flow3__n):not(.flow3__art) { grid-column: 2; }
  .flow3__step h3 { margin-top: 0; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__card:last-child { grid-column: 1 / -1; }
  .faq .head { position: static; }
  .head > :first-child, .head > :last-child:not(:first-child), .faq__list { grid-column: auto; }
  .head > :last-child:not(:first-child) { text-align: left; }
  .flow3::before { display: none; }
  .report__body { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 819px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .tools__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools__row li:nth-child(4)::before { display: none; }
}
@media (max-width: 640px) {
  .flow3__step { display: flex; flex-direction: column; }
  .term3 pre { font-size: 11px; }
  .flow3__step h3 { margin-top: 24px; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .head { margin-bottom: 40px; }
  :root { --frame: calc(100% - 32px); }
  .hero { padding-bottom: 88px; }
  .hero__text { margin-top: 40px; }
  .hero__lead { font-size: 17px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero__cta .pbtn { min-width: 0; }

  .pc__top code { display: none; }
  .app { inset: 10px 10px 68px; }
  .gm__nav, .gm__top > b, .gc__arw, .gc__top .gc__btn:not(.gc__btn--r), .gc__top > b { display: none; }
  .gm__search { margin-left: 0; }
  .gm__read { margin-left: 10px; padding: 14px; }
  .gm__body { padding-left: 0; }
  .gc__month { font-size: 14px; }
  .sl__side { width: 104px; padding: 10px 4px; font-size: 12px; }
  .sl__side p { padding: 0 6px; }
  .duo__art--tool { flex-direction: column; height: auto; padding: 24px 0; }
  .mini { width: min(290px, 100% - 24px); }
  .duo__wire { width: 2px; height: 28px; background: repeating-linear-gradient(var(--o3) 0 6px, transparent 6px 12px); }
  .duo__wire i { left: -3px; animation-name: runv; }
  .duo__scene { width: 168px; }
  .duo__art--co .who { gap: 0; padding: 2px; font-size: 0; }
  .duo__art--co .who .bot { width: 22px; height: 22px; }
  .dock { gap: 5px; padding: 6px; }
  .dock button, .dock span { width: 34px; height: 34px; border-radius: 8px; }
  .dock img { width: 20px; height: 20px; }
  .dock span:nth-child(n+7):not(.dock__more) { display: none; }
  .tools__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools__row li { height: 72px; font-size: 15px; }
  .tools__row li:nth-child(3n) { border-right: 1px solid var(--line-d); }
  .tools__row li:nth-child(n+4) { border-bottom: 1px solid var(--line-d); }
  .tools__row li:nth-child(n+4)::before, .tools__row li:last-child::after { display: none; }
  .light, .dark { padding: 72px 0 80px; }
  .fw { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fw li { min-height: 92px; gap: 8px; padding: 12px 6px; font-size: 11px; }
  .nav__cta { display: none; }
  .wordmark { display: none; }
  .wf { --name: 0px; }
  .wf__axis { margin-left: 0; }
  .wf ol::before { left: 0; }
  .wf__row { grid-template-columns: minmax(0, 1fr); gap: 4px; height: auto; padding: 8px 0; }
  .wf__row:not(.is-agent) .wf__name::before { display: none; }
  .wf__name { padding-left: 0; }
  .wf__bar { height: 14px; }
  .wf__bar i { top: 0; }
  .switch__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .switch__to { grid-column: auto; }
  .why__case { flex-direction: column; align-items: stretch; }
  .why__to { transform: rotate(90deg); align-self: center; }
  .signup { flex-direction: column; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__legal { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}


/* the address swap: a one-line diff in the agent's config, in the How it works terminal's look */
.switch { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: stretch; }
.diff { display: grid; grid-template-rows: auto 1fr auto; margin: 0; background: var(--night); border: 1px solid var(--night); color: var(--paper); }
.diff__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-d); color: var(--muted-d); font: 500 11px/1 var(--mono); letter-spacing: .06em; }
.diff__bar i { width: 8px; height: 8px; background: rgb(250 250 248 / .18); }
.diff__bar span { margin-left: 8px; }
.diff__bar b { margin-left: auto; color: var(--o4); font-weight: 500; }
.diff__code { display: grid; align-content: center; padding: 14px 0; font: 400 13.5px/1.9 var(--mono); }
.diff__code p { display: grid; grid-template-columns: 52px minmax(0, 1fr); margin: 0; padding-right: 16px; overflow-wrap: anywhere; }
.diff__code span { padding-right: 18px; color: rgb(250 250 248 / .3); text-align: right; }
.diff__c { color: var(--muted-d); }
.diff__del { background: rgb(255 120 100 / .1); color: #F2A699; }
.diff__del span::after { content: " −"; color: #F2A699; }
.diff__add { background: rgb(243 128 32 / .16); color: var(--o4); box-shadow: inset 3px 0 0 var(--o3); }
.diff__add span::after { content: " +"; color: var(--o4); }
.diff__to { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px; border-top: 1px solid var(--line-d); background: var(--ink); font-size: 14px; }
.diff__to p { display: grid; gap: 4px; margin: 0; }
.diff__to s, .diff__to b { display: inline-flex; align-items: center; gap: 8px; }
.diff__to s { color: var(--muted-d); text-decoration-color: rgb(250 250 248 / .4); }
.diff__to b { font-weight: 600; }
.diff__to b + span { color: var(--muted-d); font-size: 13px; }
.diff__to > span { color: var(--o4); }
.switch__notes { grid-template-columns: minmax(0, 1fr); align-content: stretch; margin: 0; }
.switch__notes li { align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); }
.switch__notes img, .switch__mark { margin-top: 2px; }
@media (max-width: 1023px) {
  .switch { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .diff__code { font-size: 12px; }
  .diff__code p { grid-template-columns: 46px minmax(0, 1fr); }
  .diff__code span { padding-right: 12px; }
  .diff__to { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .diff__to > span { display: none; }
}
/* a sub-part of a section (three ways to run, test cases): a rule, a small label, then one panel that does not share the columns above, so it never reads as hanging under them */
.sub { display: grid; gap: 14px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.sub .steps__n { margin: 0; }
/* the report shows a failure: the check, the step that caused it, and the gaps with a tip for each */
.report { --bad: #C2412D; --bad-tint: #FBEAE6; }
.report__top .report__pass.is-fail { background: var(--bad-tint); color: var(--bad); }
.score__bar i.is-fail { background: var(--bad); }
.checks li.is-fail::before { content: "✕"; color: var(--bad); }
.checks li.is-fail b { color: var(--bad); }
.wf__row.is-fail { background: var(--bad-tint); box-shadow: inset 2px 0 0 var(--bad); }
.wf__row.is-fail .wf__bar i { background: var(--bad); }
.wf__why { position: absolute; top: 12px; right: calc(100% - var(--s) + 8px); color: var(--bad); font: 500 11px/14px var(--mono); white-space: nowrap; }
@media (max-width: 640px) {
  .wf__why { display: none; }
}
.tips { display: grid; margin-top: 24px; }
.tips .steps__n { margin: 0 0 8px; }
.tips p:not(.steps__n) { display: grid; gap: 4px; margin: 0; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; }
.tips p:not(.steps__n)::before { content: "!"; position: absolute; left: 4px; top: 12px; width: 14px; height: 14px; background: var(--o3); color: #fff; font: 700 10px/14px var(--mono); text-align: center; }
.tips b { color: var(--ink); font-size: 15px; font-weight: 500; }
.tips span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.tips span::before { content: "Tip  "; color: var(--o1); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
/* the trace rows stretch so the trace ends with the checks column beside it */
@media (min-width: 1024px) {
  .report__trace, .report__trace .wf { display: flex; flex-direction: column; }
  .report__trace .wf { flex: 1; }
  .report__trace .wf ol { flex: 1; display: grid; grid-auto-rows: minmax(38px, 1fr); }
  .report__trace .wf__row { height: auto; }
  .report__trace .wf__name { align-self: stretch; }
  .report__trace .wf__bar i, .report__trace .wf__why { top: calc(50% - 7px); }
  .report__trace .wf__row:not(.is-agent) .wf__name::before { top: -50%; height: 100%; }
}
/* three ways to run: tabs on the left, one terminal on the right in the step 1 terminal's look */
.wtabs { display: grid; grid-template-columns: 320px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); }
.wtabs__tabs { display: grid; align-content: start; border-right: 1px solid var(--line); }
.wtabs__tabs button { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: none; border: 0; border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.wtabs__tabs button:hover { background: #FCFBF8; }
.wtabs__tabs button[aria-selected="true"] { background: var(--o-tint); box-shadow: inset 3px 0 0 var(--o3); }
.wtabs__tabs button:focus-visible { outline: 2px solid var(--o1); outline-offset: -2px; }
.wtabs__tabs button > span:last-child { display: grid; gap: 2px; }
.wtabs__tabs b { color: var(--ink); font: 500 19px/1.2 var(--display); letter-spacing: -0.02em; }
.wtabs__tabs em { color: var(--muted); font-size: 13px; font-style: normal; }
.ways__ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; background: #fff; border: 1px solid var(--line); }
.ways__ic svg { width: 16px; height: 16px; fill: none; stroke: var(--o1); stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
.wtabs__panels { display: grid; padding: 20px; background: #F7F5F1; }
.wtabs__p { display: grid; grid-template-rows: auto 1fr; background: var(--ink); }
.wtabs__p + .wtabs__p { margin-top: 12px; }
.wtabs--js .wtabs__p { grid-area: 1 / 1; margin: 0; visibility: hidden; }
.wtabs--js .wtabs__p[data-on] { visibility: visible; }
.wtabs__p pre { align-self: center; margin: 0; padding: 16px 18px; color: var(--paper); font: 400 13.5px/1.8 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.wtabs__p .c { color: var(--muted-d); }
.wtabs__p .p, .wtabs__p .r { color: var(--o4); }
@media (max-width: 1023px) {
  .wtabs { grid-template-columns: minmax(0, 1fr); }
  .wtabs__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
  .wtabs__tabs button { justify-content: center; padding: 14px 10px; border-bottom: 0; box-shadow: inset 0 -3px 0 transparent; }
  .wtabs__tabs button + button { border-left: 1px solid var(--line); }
  .wtabs__tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--o3); }
  .wtabs__tabs em, .wtabs__tabs .ways__ic { display: none; }
  .wtabs__tabs b { font-size: 16px; }
  .wtabs__panels { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wtabs__tabs button { transition: none; }
}
