/* PosPlugin. One stylesheet for posplug.in, ported from the Claude Design
   "PosPlug Landing v2". Palette: paper #D6D5CF, ink #141412, signal orange
   #FF4F12. Type: Archivo (display, condensed via font-stretch) and IBM Plex Mono. */

:root {
  --paper: #D6D5CF;
  --panel: #E4E3DD;
  --panel-hi: #F0EFE9;
  --panel-lo: #CBCAC3;
  --ink: #141412;
  --ink-2: #2E2D29;
  --ink-3: #3E3D38;
  --mute: #4A4944;
  --mute-2: #6A6860;
  --mute-3: #8A877D;
  --orange: #FF4F12;
  --orange-lo: #B33600;
  --orange-hi: #FF7A40;
  --green: #1FA85A;
  --green-hi: #3BE37A;
  --yellow: #FFC21A;
  --error: #FF8A66;
  --night-0: #0A0A09;
  --night-1: #10110F;
  --night-2: #1E1E1B;
  --night-3: #23231F;
  --night-4: #262622;
  --night-line: #3A3A35;
  --night-line-2: #2A2A26;
  --light: #F0EEE6;
  --light-2: #CFCBBF;
  --light-3: #D9D6CC;
  --grey: #A9A69B;
  --grey-2: #8E8A80;
  --display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 3vw, 32px);
  --header: 60px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-lo); }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
input::placeholder { color: var(--mute-3); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; background: var(--orange); color: var(--ink); border: 2px solid var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes flicker { 0%, 100% { opacity: .9; } 40% { opacity: .3; } 46% { opacity: .85; } 70% { opacity: .55; } }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes travel { 0% { left: 0%; } 100% { left: 100%; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes vflow { to { background-position: 0 16px; } }
@keyframes hflow { to { background-position: 24px 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes meter { 0%, 100% { transform: scaleY(.25); } 30% { transform: scaleY(.9); } 60% { transform: scaleY(.5); } 80% { transform: scaleY(1); } }
@keyframes toast { 0%, 12% { opacity: 0; transform: translateY(8px); } 18%, 72% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; } }
@keyframes type { from { width: 0; } to { width: 6ch; } }
@keyframes scan { to { background-position: 0 6px; } }
@keyframes sweep { 0% { transform: translateY(-100%); } 100% { transform: translateY(900%); } }

/* ---------- layout primitives ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.rails { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: flex; justify-content: center; }
.rails > div {
  width: 100%; max-width: 1280px; margin: 0 var(--gutter);
  border-left: 1px solid rgba(20,20,18,.10); border-right: 1px solid rgba(20,20,18,.10);
  background: repeating-linear-gradient(90deg, transparent 0 calc(100%/12 - 1px), rgba(20,20,18,.055) calc(100%/12 - 1px) calc(100%/12));
}
main { position: relative; z-index: 1; }
.sec { padding: clamp(72px,10vw,136px) 0; scroll-margin-top: var(--header); }
.sec--flush { padding-top: 0; }
.night { position: relative; z-index: 1; background: var(--ink); color: var(--light); }
.night-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(240,238,230,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(240,238,230,.04) 1px, transparent 1px);
  background-size: 40px 40px; }

/* ---------- type ---------- */
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.night .eyebrow { color: var(--grey); }
.display { font-family: var(--display); font-stretch: 82%; word-spacing: .16em; font-weight: 900; text-transform: uppercase; }
.condensed { font-family: var(--display); font-stretch: 88%; word-spacing: .12em; font-weight: 800; text-transform: uppercase; }
.h2 { margin: 14px 0 0; font-size: clamp(40px,6.4vw,92px); line-height: .9; letter-spacing: -.02em; text-wrap: balance; }
.label { font-size: 12px; letter-spacing: .1em; }
.caps { text-transform: uppercase; }
.accent { color: var(--orange); }
.muted { color: var(--mute); }

/* ---------- LEDs ---------- */
.led { display: inline-block; flex: none; width: 8px; height: 8px; background: var(--orange); animation: led 1.2s steps(2) infinite; }
.led--sm { width: 7px; height: 7px; }
.led--green { background: var(--green); }
.led--green-hi { background: var(--green-hi); }
.led--slow { animation-duration: 1.6s; }
.led--fast { animation-duration: 1s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 26px;
  border: 2px solid var(--ink); font-family: var(--mono); font-size: 15px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .15s, color .15s;
}
.btn--primary { background: var(--orange); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn--primary:hover { color: var(--ink); transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); padding: 0 24px; }
.btn--ghost:hover { color: var(--ink); background: var(--panel); }
.btn--dark { background: var(--ink); color: var(--light); }
.btn--dark:hover { color: var(--orange); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }
.btn--sm:hover { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.play { width: 0; height: 0; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(214,213,207,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.top__prog { position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }
.top__in { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand__word { display: flex; align-items: center; }
.brand__word b { margin-left: 2px; padding: 0 5px; background: var(--ink); color: var(--orange); font-weight: 800; }
.mark { display: flex; align-items: center; }
.mark i { display: block; }
.mark__cable { width: 10px; height: 3px; background: var(--ink); }
.mark__body { width: 20px; height: 20px; background: var(--orange); border: 2px solid var(--ink); }
.mark__prongs { display: flex; flex-direction: column; gap: 5px; }
.mark__prongs i { width: 7px; height: 3px; background: var(--ink); }
.mark--sm .mark__cable { width: 8px; }
.mark--sm .mark__body { width: 16px; height: 16px; }
.mark--sm .mark__prongs { gap: 4px; }
.mark--sm .mark__prongs i { width: 6px; }
.nav { display: none; gap: 26px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.nav a { display: flex; gap: 6px; padding: 12px 0; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--orange-lo); }
.nav a span { color: var(--mute-2); }
.top__right { display: flex; align-items: center; gap: 16px; }
.utc { display: none; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
@media (min-width: 1100px) { .nav { display: flex; } }
@media (min-width: 1240px) { .utc { display: flex; } }

/* ---------- hero ---------- */
.hero { padding: clamp(28px,4vw,48px) 0 clamp(48px,7vw,88px); }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px), 1fr)); border: 2px solid var(--ink); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; animation: fadein .6s both; }
.strip > span { padding: 10px 14px; border-right: 1px solid var(--ink); color: var(--mute); display: flex; gap: 10px; align-items: center; }
.strip > span:first-child { color: var(--ink); }
.strip > span:last-child { border-right: 0; }
.h-hero { margin: clamp(28px,4vw,48px) 0 0; font-size: clamp(52px,10.6vw,158px); line-height: .86; letter-spacing: -.025em; }
.h-hero > span { display: block; animation: wipe .9s cubic-bezier(.7,0,.2,1) both; }
.h-hero > span:nth-child(1) { animation-delay: .05s; }
.h-hero > span:nth-child(2) { animation-delay: .18s; }
.h-hero > span:nth-child(3) { display: flex; flex-wrap: wrap; gap: 0 .22em; align-items: baseline; animation-delay: .31s; }
.h-hero mark { background: var(--orange); color: inherit; padding: 0 .08em; box-shadow: .06em .06em 0 var(--ink); }
.hero__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,380px), 1fr)); gap: 24px 48px; align-items: end; margin-top: clamp(28px,4vw,44px); animation: rise .9s cubic-bezier(.2,.7,.2,1) .5s both; }
.lede { margin: 0; max-width: 52ch; font-size: clamp(16px,1.4vw,18px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.board { position: relative; margin-top: clamp(36px,5vw,56px); background: var(--panel); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); animation: rise 1s cubic-bezier(.2,.7,.2,1) .65s both; overflow: hidden; }
.screw { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(45deg, transparent 44%, rgba(20,20,18,.6) 44% 56%, transparent 56%), #B9B8B0; box-shadow: inset 0 0 0 1px rgba(20,20,18,.4); }
.screw--tl { top: 8px; left: 8px; }
.screw--tr { top: 8px; right: 8px; transform: rotate(90deg); }
.screw--bl { bottom: 8px; left: 8px; transform: rotate(90deg); }
.screw--br { bottom: 8px; right: 8px; }
.cross { position: absolute; background: rgba(255,79,18,.55); opacity: 0; pointer-events: none; z-index: 2; transition: opacity .2s; }
.cross--v { top: 0; bottom: 0; left: 0; width: 1px; }
.cross--h { left: 0; right: 0; top: 0; height: 1px; }
.board__bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--ink); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.board__bar span:last-child { color: var(--mute); font-variant-numeric: tabular-nums; }
.board__body { display: flex; flex-wrap: wrap; }
.board__svg { flex: 1.7 1 480px; min-width: 0; padding: clamp(14px,2.4vw,28px); border-right: 1px solid var(--ink); }
.board__svg svg { width: 100%; height: auto; display: block; overflow: visible; }
.board__bus { flex: 1 1 300px; min-width: 0; padding: clamp(14px,2.4vw,28px); display: flex; flex-direction: column; gap: 10px; }
.bus__head { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.bus__head span:last-child { display: flex; gap: 6px; align-items: center; }
.bus { position: relative; flex: 1; min-height: 380px; background: var(--night-1); border: 2px solid var(--ink); overflow: hidden; }
.bus__scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(rgba(255,255,255,.035) 0 1px, transparent 1px 3px); animation: scan .5s linear infinite; }
.bus__sweep { position: absolute; left: 0; right: 0; top: 0; height: 12%; z-index: 2; pointer-events: none; background: linear-gradient(transparent, rgba(255,79,18,.07), transparent); animation: sweep 5s linear infinite; }
.bus__stream { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ev { font: 400 12.5px/1.6 var(--mono); border-left: 2px solid var(--orange); padding-left: 10px; }
.ev__head { display: flex; justify-content: space-between; gap: 8px; }
.ev__head b { color: var(--orange-hi); font-weight: 700; }
.ev__head span { color: var(--grey-2); }
.ev__line { color: var(--light-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 1; background: var(--ink); color: var(--orange); border-block: 2px solid var(--ink); overflow: hidden; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track > span { display: flex; gap: 40px; padding: 14px 20px; }
.marquee i { font-style: normal; color: var(--mute-2); }

/* ---------- 01 problem ---------- */
.errs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px), 1fr)); margin-top: 48px; border: 2px solid var(--ink); background: var(--panel-lo); }
.err { padding: 28px; border-right: 1px solid var(--ink); min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.err:last-child { border-right: 0; }
.err__code { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; color: var(--mute); }
.err__code i { width: 8px; height: 8px; background: var(--mute-3); }
.err p { margin: 0; font-size: clamp(28px,2.8vw,38px); line-height: 1.02; letter-spacing: -.01em; color: var(--ink-3); }
.err > span:last-child { font-size: 13px; color: var(--mute); }
.cutline { height: 10px; margin-top: -2px; background: var(--orange); border: 2px solid var(--ink); transform-origin: left; }
.cuts { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between; margin-top: 28px; }
.cuts p { margin: 0; }
.cuts p:first-child { font-size: clamp(32px,4.4vw,60px); line-height: .95; letter-spacing: -.02em; }
.cuts p:last-child { font-size: 17px; color: var(--ink-2); }

/* ---------- 02 demo (scroll-driven) ---------- */
.demo { scroll-margin-top: var(--header); }
.demo__stage { position: relative; padding: clamp(56px,8vw,96px) 0; overflow: hidden; }
.js .demo { height: 600vh; }
.js .demo__stage { position: sticky; top: var(--header); height: calc(100vh - var(--header)); height: calc(100svh - var(--header)); display: flex; align-items: center; padding: 0; }
.demo__in { position: relative; width: 100%; display: flex; flex-direction: column; gap: clamp(8px,1.8vh,20px); }
.demo__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.demo__head h2 { margin: 10px 0 0; font-size: clamp(26px, min(4vw,6vh), 52px); line-height: .9; letter-spacing: -.02em; }
.demo__hint { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.no-js-hide { display: none; }
.js .no-js-hide { display: block; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 6px; }
.step { width: 100%; min-height: 48px; text-align: left; cursor: pointer; padding: 10px 12px; background: var(--night-2); border: 1px solid var(--night-line); box-shadow: inset 0 -3px 0 var(--night-0); color: var(--grey); font-family: var(--mono); transition: all .25s; }
.step__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.step__top > span:first-child { display: flex; gap: 8px; align-items: center; }
.step__led { width: 8px; height: 8px; background: var(--mute); }
.step__name { display: none; margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.is-past { color: var(--light); }
.step.is-past .step__led { background: var(--green-hi); box-shadow: 0 0 6px rgba(59,227,122,.6); }
.step.is-now { background: #2E2D28; border-color: var(--orange); box-shadow: inset 0 -3px 0 var(--orange); color: var(--light); }
.step.is-now .step__led { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.demo__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,420px), 1fr)); gap: clamp(14px,2.4vw,40px); align-items: center; }
.demo__left { display: flex; flex-direction: column; gap: clamp(8px,1.4vh,16px); }
.clock { position: relative; padding: clamp(10px,1.6vh,18px) clamp(14px,2vw,24px); background: var(--night-0); border: 2px solid var(--night-line); }
.clock__row { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.clock__face { position: relative; margin-top: 6px; font: 600 clamp(44px, min(9vw,11vh), 112px)/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.clock__ghost { color: rgba(255,79,18,.08); }
.clock__time { position: absolute; left: 0; top: 0; color: var(--orange); text-shadow: 0 0 30px rgba(255,79,18,.35); transition: color .4s; }
.is-done .clock__time { color: var(--green-hi); text-shadow: 0 0 30px rgba(59,227,122,.45); }
.ticks { display: grid; grid-template-columns: repeat(30, minmax(0,1fr)); gap: 3px; margin-top: 12px; }
.ticks i { height: 14px; background: var(--night-line-2); transition: background .2s; }
.ticks i.is-buffer { background: repeating-linear-gradient(135deg, var(--mute) 0 2px, transparent 2px 5px); }
.ticks i.is-on { background: var(--orange); }
.is-done .ticks i.is-on { background: var(--green-hi); }
.clock__foot { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--grey); }
.cur p { margin: 0; }
.cur__meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-hi); }
.cur__name { margin-top: 6px !important; font-size: clamp(26px,3vw,40px); line-height: 1; }
.cur__cap { display: none; margin-top: 8px !important; font-size: 16px; line-height: 1.55; color: var(--light-2); max-width: 44ch; }
.fin { display: none; animation: fadein .5s both; }
.fin p { margin: 0; }
.fin p:first-child { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-hi); }
.fin p:last-child { margin-top: 6px; font-size: clamp(38px,5vw,68px); line-height: .92; color: var(--orange); }
.is-done .fin { display: block; }
.is-done .cur { display: none; }
.screen { position: relative; background: var(--night-0); border: 2px solid var(--night-line); box-shadow: 8px 8px 0 var(--orange); }
.screen__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--night-line); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.segs { display: flex; gap: 3px; }
.segs i { width: 16px; height: 6px; background: var(--night-line-2); transition: background .3s; }
.segs i.is-past { background: var(--green-hi); }
.segs i.is-now { background: var(--orange); }
.screen__body { position: relative; padding: clamp(14px,2.2vw,22px); height: clamp(190px,32vh,330px); overflow: hidden; }
.screen__body::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.panel { animation: fadein .4s both; font-size: 14px; }
.js .panel:not(.is-on) { display: none; }
.panel--list, .panel--col { display: flex; flex-direction: column; gap: 8px; }
.panel--center { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.row { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid var(--night-line-2); color: var(--light-2); }
.row small { font-size: 12px; color: var(--grey); }
.row--hit { background: rgba(255,79,18,.12); border-color: rgba(255,79,18,.5); color: var(--light); }
.row--hit small { color: var(--green-hi); }
.row--tight { padding: 8px 10px; color: var(--light); }
.search { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--orange); color: var(--light); }
.search span:first-child { color: var(--orange-hi); }
.search__typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 6ch; animation: type .9s steps(6) both; }
.caret { width: 8px; height: 16px; background: var(--orange); animation: blink 1s steps(1) infinite; }
.hint-box { padding: 12px 14px; border: 1px dashed var(--mute); color: var(--grey); font-size: 13px; }
.d1 { animation: fadein .35s .5s both; } .d2 { animation: fadein .35s .6s both; } .d3 { animation: fadein .35s .7s both; } .d4 { animation: fadein .35s .8s both; }
.link { display: flex; align-items: center; gap: 12px; }
.link span:first-child { padding: 10px 12px; border: 1px solid var(--mute); font-size: 12px; color: var(--light-2); }
.link i { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 16px); background-size: 24px 2px; animation: hflow .8s linear infinite; }
.link span:last-child { padding: 10px 12px; background: var(--orange); color: var(--ink); font-size: 12px; font-weight: 700; }
.panel__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.scopes { display: flex; flex-direction: column; gap: 6px; color: var(--light-2); }
.scopes span { animation: fadein .3s both; }
.scopes span:nth-child(1) { animation-delay: .3s; } .scopes span:nth-child(2) { animation-delay: .5s; } .scopes span:nth-child(3) { animation-delay: .7s; }
.ok { color: var(--green-hi); }
.auth { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.auth span:first-child { padding: 12px 18px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.auth span:last-child { font-size: 13px; color: var(--grey); }
.panel__note { margin: 0; font-size: 13px; color: var(--grey); }
.panel__kicker { margin: 0; font-size: 12px; letter-spacing: .08em; color: var(--grey); }
.pull { display: flex; flex-direction: column; gap: 18px; }
.meter__head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.meter__head span:last-child { color: var(--orange-hi); }
.meter__bar { height: 10px; border: 1px solid var(--night-line); padding: 1px; }
.meter__bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 8px); transform-origin: left; }
.map { display: flex; flex-direction: column; gap: 6px; }
.map__head, .map__row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 10px; }
.map__head { font-size: 12px; letter-spacing: .08em; color: var(--grey); padding: 0 10px; }
.map__row { align-items: center; padding: 7px 10px; border: 1px solid var(--night-line-2); font-size: 12.5px; line-height: 1.35; }
.map__raw { min-width: 0; }
.map__raw b { display: block; font-weight: 400; color: var(--light); overflow: hidden; text-overflow: ellipsis; }
.map__raw small { display: block; color: var(--grey-2); font-size: 12px; }
.map__uni { color: var(--orange-hi); overflow: hidden; text-overflow: ellipsis; }
.map__conf { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.badge { padding: 3px 7px; font-size: 12px; color: var(--green-hi); border: 1px solid currentColor; white-space: nowrap; }
.badge--ask { color: var(--yellow); }
.confirm { cursor: pointer; min-height: 32px; min-width: 44px; padding: 4px 10px; border: none; background: var(--yellow); color: var(--ink); font: 700 12px var(--mono); }
.ai { display: flex; gap: 10px; margin-top: 4px; padding: 10px 12px; background: rgba(255,79,18,.1); border-left: 3px solid var(--orange); font-size: 13px; line-height: 1.45; color: var(--light); }
.ai b { color: var(--orange-hi); }
.route { position: relative; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .06em; color: var(--grey); padding-top: 24px; }
.route__rail { position: absolute; left: 3%; right: 3%; top: 6px; height: 2px; background: var(--night-line); }
.route__rail i { position: absolute; top: -5px; width: 12px; height: 12px; margin-left: -6px; background: var(--orange); animation: travel 1.6s cubic-bezier(.6,0,.4,1) infinite; }
.checks { display: flex; flex-direction: column; gap: 4px; }
.checks .row { animation: fadein .3s both; }
.checks .row span:last-child { color: var(--green-hi); animation: pop .25s both; }
.checks .row:nth-child(1) { animation-delay: .3s; } .checks .row:nth-child(1) span:last-child { animation-delay: .5s; }
.checks .row:nth-child(2) { animation-delay: .6s; } .checks .row:nth-child(2) span:last-child { animation-delay: .8s; }
.checks .row:nth-child(3) { animation-delay: .9s; } .checks .row:nth-child(3) span:last-child { animation-delay: 1.1s; }
.checks .row:nth-child(4) { animation-delay: 1.2s; } .checks .row:nth-child(4) span:last-child { animation-delay: 1.4s; }
.checks .row:nth-child(5) { animation-delay: 1.5s; } .checks .row:nth-child(5) span:last-child { animation-delay: 1.7s; }
.live { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.live__badge { position: relative; width: 170px; height: 110px; display: grid; place-items: center; }
.live__badge i { position: absolute; inset: 0; border: 2px solid var(--green-hi); animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
.live__badge i:nth-child(2) { animation-delay: .6s; }
.live__badge i:nth-child(3) { background: #0F2217; box-shadow: 0 0 40px rgba(59,227,122,.35); animation: none; }
.live__badge span { position: relative; font-size: 56px; line-height: 1; color: var(--green-hi); animation: pop .45s cubic-bezier(.3,1.6,.5,1) both; }
.live__meta { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--light-2); }
@media (min-width: 760px) { .step__name { display: block; } }
@media (max-width: 759px) { .demo__hint { display: none; } }
@media (min-height: 820px) { .cur__cap { display: block; } }
@media (max-height: 719px) { .js .demo__head { display: none; } }

/* ---------- 03 how ---------- */
.how__head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: end; justify-content: space-between; }
.how__head p { margin: 0; font-size: 16px; color: var(--ink-2); }
.how { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; margin-top: 48px; }
.io { flex: 0 1 150px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.io--out { flex-basis: 170px; }
.io > span:first-child { font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.chip { padding: 10px 12px; border: 1px solid var(--ink); background: var(--panel); font-size: 13px; }
.chip--new { border-style: dashed; background: none; color: var(--orange-lo); }
.layers { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; }
.pipe { align-self: center; width: 4px; height: 22px; background: linear-gradient(var(--orange) 0 50%, var(--ink) 50%); background-size: 4px 8px; animation: vflow .5s linear infinite; }
.unit { position: relative; padding: 18px 22px 18px 26px; background: var(--panel); border: 2px solid var(--ink); box-shadow: 0 0 0 var(--ink); cursor: default; transition: all .2s; }
.unit::before, .unit::after { content: ""; position: absolute; left: 6px; width: 8px; height: 8px; border-radius: 50%; background: #A9A8A0; box-shadow: inset 0 0 0 1px rgba(20,20,18,.4); }
.unit::before { top: 6px; } .unit::after { bottom: 6px; }
.unit__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.unit__id { display: flex; align-items: center; gap: 12px; }
.unit__led { width: 10px; height: 10px; background: var(--mute-3); transition: background .2s; }
.unit__code { font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.unit__name { font-size: clamp(20px,2vw,26px); line-height: 1.1; }
.unit__vent { width: 80px; height: 20px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 6px); opacity: .5; }
.unit__body { overflow: hidden; max-height: 0; opacity: 0; transition: all .3s cubic-bezier(.2,.7,.2,1); }
.unit__body ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.unit__body li { display: flex; gap: 10px; }
.unit__body li::before { content: "→"; color: var(--orange-lo); }
.unit.is-open { background: var(--panel-hi); box-shadow: 6px 6px 0 var(--ink); transform: translate(-3px,-3px); }
.unit.is-open .unit__led { background: var(--orange); }
.unit.is-open .unit__body, .no-js .unit__body { max-height: 180px; opacity: 1; }
.health { flex: 0 1 240px; min-width: 220px; position: relative; background: var(--ink); color: var(--light); border: 2px solid var(--ink); box-shadow: 0 0 0 var(--orange); padding: 18px; display: flex; flex-direction: column; gap: 14px; cursor: default; transition: box-shadow .2s; }
.health__tag { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .1em; color: var(--grey); }
.health__name { font-size: 24px; line-height: 1.05; }
.vu { display: flex; gap: 4px; align-items: flex-end; height: 64px; padding: 6px; background: var(--night-0); border: 1px solid var(--night-line); }
.vu i { flex: 1; height: 100%; background: var(--green-hi); transform-origin: bottom; animation: meter 1.2s ease-in-out infinite; }
.vu i:nth-child(2) { animation-duration: 1.5s; animation-delay: .2s; }
.vu i:nth-child(3) { animation-duration: 1.1s; animation-delay: .4s; }
.vu i:nth-child(4) { animation-duration: 1.7s; animation-delay: .1s; }
.vu i:nth-child(5) { animation-duration: 1.3s; animation-delay: .3s; background: var(--yellow); }
.vu i:nth-child(6) { animation-duration: 1.6s; animation-delay: .5s; }
.vu i:nth-child(7) { animation-duration: 1.2s; animation-delay: .6s; }
.vu i:nth-child(8) { animation-duration: 1.4s; animation-delay: .15s; }
.drift { padding: 8px 10px; border: 1px solid var(--yellow); color: var(--yellow); font-size: 12px; line-height: 1.4; animation: toast 7s ease-in-out infinite; }
.health .unit__body ul { margin: 0; font-size: 15px; color: var(--light-2); }
.health .unit__body li::before { color: var(--light-2); }
.health.is-open { box-shadow: 6px 6px 0 var(--orange); }
.health.is-open .unit__body { max-height: 180px; opacity: 1; }

/* ---------- 04 developers ---------- */
.dev { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; align-items: stretch; }
.term { background: var(--night-0); border: 2px solid var(--night-line); }
.term--code { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; }
.tabs { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--night-line); }
.tab { cursor: pointer; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: var(--night-4); color: var(--light-3); box-shadow: inset 0 -4px 0 var(--night-0); font: 600 13px var(--mono); letter-spacing: .04em; text-transform: uppercase; transition: all .12s; }
.tab[aria-selected="true"] { background: var(--orange); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); transform: translateY(2px); }
.code { margin: 0; padding: 20px; font: 400 13.5px/1.75 var(--mono); white-space: pre; overflow-x: auto; flex: 1; color: var(--light-3); }
.code .ln { display: inline-block; min-width: 16px; margin-right: 18px; text-align: right; color: #5A5850; user-select: none; }
.t-o { color: var(--orange-hi); } .t-g { color: var(--green-hi); } .t-y { color: var(--yellow); } .t-p { color: var(--grey-2); }
.term__foot { padding: 12px 20px; border-top: 1px solid var(--night-line); font-size: 13px; color: var(--grey); }
.dev__side { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.term__bar { display: flex; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--night-line); font-size: 12px; letter-spacing: .06em; color: var(--grey); }
.term__bar span:last-child { display: flex; gap: 6px; align-items: center; color: var(--green-hi); }
.json { margin: 0; padding: 16px 20px; font: 400 12.5px/1.7 var(--mono); white-space: pre; overflow: auto; max-height: 320px; color: var(--grey-2); }
.hooks { display: flex; flex-direction: column; padding: 8px 12px; height: 196px; overflow: hidden; }
.hook { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; padding: 7px 8px; border-bottom: 1px solid var(--night-2); font-size: 12.5px; }
.hook > span:first-child { color: var(--grey-2); }
.hook > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--grey-2); }
.hook b { font-weight: 400; color: var(--orange-hi); }
.hook > span:last-child { color: var(--green-hi); }

/* ---------- 05 who ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px), 1fr)); gap: 20px; margin-top: 48px; }
.card { background: var(--panel); border: 2px solid var(--ink); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }
.card__tag { display: flex; justify-content: space-between; padding: 10px 18px; background: var(--ink); color: var(--light); border-bottom: 2px solid var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.card__tag--hot { background: var(--orange); color: var(--ink); }
.card h3 { margin: 0; padding: 22px 18px 18px; font-size: 30px; line-height: 1; }
.card dl { margin: 0; font-size: 16px; line-height: 1.5; }
.card dl > div { display: grid; grid-template-columns: 96px 1fr; border-top: 1px solid var(--ink); }
.card dt { padding: 14px 18px; font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.card dt.fix { color: var(--orange-lo); }
.card dd { margin: 0; padding: 14px 18px 14px 0; color: var(--ink-2); }
.card dd.fix { color: var(--ink); font-weight: 600; }

/* ---------- 06 spec sheet ---------- */
.spec { margin-top: 48px; overflow-x: auto; border: 2px solid var(--ink); background: var(--panel); }
.spec table { width: 100%; min-width: 880px; border-collapse: collapse; table-layout: fixed; }
.spec col:first-child { width: 26%; }
.spec th, .spec td { padding: 16px 18px; text-align: left; vertical-align: top; font-size: 15px; line-height: 1.45; border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th:first-child { border-left: 0; }
.spec thead th { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.spec thead th:first-child { font-size: 12px; font-weight: 400; letter-spacing: .1em; color: var(--mute); }
.spec thead th.us { background: var(--orange); }
.spec tbody th { font-weight: 600; }
.spec tbody td { color: var(--ink-3); }
.spec tbody td.us { color: var(--ink); background: rgba(255,79,18,.16); font-weight: 700; }

/* ---------- 07 security ---------- */
.trust { margin-top: 48px; border: 2px solid var(--ink); background: var(--panel); }
.trust > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px), 1fr)); gap: 4px 24px; align-items: baseline; padding: 20px 22px; border-bottom: 1px solid var(--ink); }
.trust > div:last-child { border-bottom: 0; }
.trust h3 { margin: 0; display: flex; gap: 12px; align-items: center; font-size: 22px; }
.trust h3 i { width: 10px; height: 10px; background: var(--green); flex: none; }
.trust p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.trust__note { margin: 20px 0 0; font-size: 14px; color: var(--ink-2); }

/* ---------- 08 pricing ---------- */
.h2--price { font-size: clamp(36px,5.2vw,76px); line-height: .92; max-width: 20ch; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,320px), 1fr)); gap: 20px; margin-top: 48px; }
.plan { padding: 28px; background: var(--panel); border: 2px solid var(--ink); }
.plan--hot { background: var(--orange); box-shadow: 6px 6px 0 var(--ink); }
.plan p { margin: 0; }
.plan__mode { font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.plan--hot .plan__mode { color: var(--ink); }
.plan__price { margin-top: 14px !important; font-size: 64px; line-height: .9; }
.plan__desc { margin-top: 14px !important; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.plan--hot .plan__desc { color: var(--ink); }
.plans + .btn { margin-top: 32px; }

/* ---------- 09 access ---------- */
.access { overflow: hidden; padding: clamp(80px,11vw,150px) 0; scroll-margin-top: var(--header); }
.access .wrap { position: relative; }
.plug { display: flex; align-items: center; max-width: 620px; }
.plug__cable { flex: 1; height: 6px; background: var(--night-line); }
.plug__head { display: flex; align-items: center; transform: translateX(-140px); transition: transform .8s cubic-bezier(.7,0,.2,1.25); }
.plug__body { width: 84px; height: 60px; background: var(--orange); border: 2px solid var(--light); display: flex; align-items: center; justify-content: center; }
.plug__body i { width: 40px; height: 4px; background: var(--ink); box-shadow: 0 10px 0 var(--ink), 0 -10px 0 var(--ink); }
.plug__prongs { display: flex; flex-direction: column; gap: 18px; }
.plug__prongs i { width: 30px; height: 10px; background: var(--paper); }
.socket { width: 92px; height: 96px; margin-left: -30px; background: var(--night-3); border: 2px solid var(--mute); display: flex; flex-direction: column; justify-content: center; gap: 18px; transition: all .3s .75s; }
.socket i { width: 32px; height: 12px; background: var(--night-0); }
.plug__label { display: flex; align-items: center; gap: 10px; margin-left: 20px; font-size: 12px; letter-spacing: .12em; color: var(--grey); transition: color .3s .75s; }
.plug__label i { width: 10px; height: 10px; background: currentColor; }
.plug__label .on { display: none; }
.is-plugged .plug__head { transform: none; }
.is-plugged .socket { border-color: var(--green-hi); box-shadow: 0 0 36px rgba(59,227,122,.4); }
.is-plugged .plug__label { color: var(--green-hi); }
.is-plugged .plug__label .on { display: inline; }
.is-plugged .plug__label .off { display: none; }
.h-access { margin: 40px 0 0; font-size: clamp(64px,13vw,200px); line-height: .84; letter-spacing: -.03em; }
.access__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,360px), 1fr)); gap: 32px 56px; margin-top: 48px; align-items: start; }
.access__lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--light-2); max-width: 40ch; }
.access__lede + .access__lede { margin-top: 16px; font-size: 15px; color: var(--grey); }
.access__lede a { color: var(--light); }
.access__lede a:hover { color: var(--orange); }
.form { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px,2.4vw,26px); background: var(--night-0); border: 2px solid var(--night-line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: .1em; color: var(--grey); }
.field input { min-height: 48px; padding: 12px 14px; border: 1px solid var(--night-line); background: #1C1C19; color: var(--light); font: 500 16px var(--mono); outline: none; border-radius: 0; }
.field input:focus { border-color: var(--orange); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__err { font-size: 14px; line-height: 1.4; color: var(--error); }
.form__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 6px; }
.form__foot > span { font-size: 14px; color: var(--grey); }
.submit { cursor: pointer; min-height: 52px; padding: 0 24px; border: 2px solid var(--light); background: var(--orange); color: var(--ink); box-shadow: 4px 4px 0 var(--light); font: 700 14px var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: transform .12s, box-shadow .12s; }
.submit:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--light); }
.done { padding: 32px 26px; background: #0F2217; border: 2px solid var(--green-hi); animation: pop .4s cubic-bezier(.3,1.4,.5,1) both; }
.done p { margin: 0; }
.done__tag { display: flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: .12em; color: var(--green-hi); }
.done__title { margin-top: 14px !important; font-size: 44px; line-height: .95; }
.done__text { margin-top: 12px !important; font-size: 16px; line-height: 1.55; color: var(--light-2); }
.done__text a { color: var(--light); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; border-top: 2px solid var(--ink); background: var(--paper); }
.foot__in { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.foot .brand { font-size: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.foot__copy { font-size: 13px; color: var(--mute); }
.foot__copy a { color: var(--ink); }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - var(--header) - 90px); display: flex; align-items: center; padding: 64px 0; }
.lost p { margin: 24px 0 0; max-width: 52ch; color: var(--ink-2); }
.lost .ctas { margin-top: 32px; }

/* ---------- scroll reveal (set up by posplug.js below the fold only) ---------- */
.reveal-pending { opacity: 0; transform: translateY(24px); }
.line-pending { transform: scaleX(0); }

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

/* without JS every setup panel is shown, stacked */
.no-js .screen__body { height: auto; }
.no-js .panel + .panel { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--night-line); }
.no-js .panel--center, .no-js .live { height: auto; }

/* early-access form: Turnstile slot and the form-level error */
.captcha { min-height: 65px; }
.captcha:empty { display: none; }
.form__err { margin: 0; }
.form__err a { color: var(--light); }
.submit[disabled] { opacity: .6; cursor: progress; }
