/* Tether site. The look and the motion follow Bencho (bencho.dev): a near
   black ground, big soft cards that each hold a live interaction, pill
   controls that press in and spring back, and words that rise out of a
   blur. Amber is Tether's one signal colour: an agent can use this. */

@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #1a1a1a;
  --card: #222222;
  --card-2: #2d2d2d;
  --raised: #353535;
  --raised-2: #3d3d3d;
  --line: rgb(255 251 240 / 0.07);
  --text: #fffbf0;
  --text-2: #a9a6a0;
  --text-3: #807e79;
  --gold: #d4af37;
  --gold-hover: #e0bf55;
  --gold-ink: #1a1a1a;
  --gold-soft: rgb(212 175 55 / 0.14);
  --coral: #e0806b;
  --green: #7fbf8e;
  --font: "Inter", system-ui, "Segoe UI", -apple-system, sans-serif;
  --head: "Jakarta", var(--font);
  --spring: linear(0, 0.051, 0.15, 0.264, 0.375, 0.464, 0.553, 0.63, 0.695, 0.742, 0.788, 0.826, 0.857, 0.883, 0.901, 0.919, 0.934, 0.946, 0.954, 0.963, 0.969, 0.975, 0.979, 0.983, 0.986, 0.988, 0.99, 0.992, 0.993, 0.995, 0.996, 0.996, 0.997, 0.998, 0.998, 0.998, 0.999, 0.999, 0.999, 0.999, 1);
  --settle: linear(0, 0.026, 0.085, 0.165, 0.246, 0.338, 0.429, 0.514, 0.585, 0.655, 0.718, 0.766, 0.813, 0.852, 0.885, 0.909, 0.931, 0.949, 0.963, 0.973, 0.982, 0.989, 0.993, 0.997, 0.999, 1.001, 1.002, 1.003, 1.003, 1.003, 1.003, 1.003, 1.003, 1.002, 1.002, 1.002, 1.002, 1.001, 1.001, 1.001, 1);
  --island: linear(0, 0.046, 0.137, 0.252, 0.377, 0.501, 0.616, 0.717, 0.804, 0.874, 0.93, 0.976, 1.005, 1.024, 1.035, 1.04, 1.041, 1.04, 1.036, 1.031, 1.026, 1.02, 1.015, 1.011, 1.008, 1.005, 1.003, 1.001, 1, 0.999, 0.999, 0.998, 0.998, 0.998, 0.999, 0.999, 0.999, 0.999, 0.999, 1, 1);
  --pop: linear(0, 0.096, 0.292, 0.534, 0.774, 0.977, 1.137, 1.22, 1.248, 1.233, 1.188, 1.13, 1.064, 1.012, 0.973, 0.949, 0.939, 0.941, 0.951, 0.966, 0.981, 0.994, 1.005, 1.012, 1.015, 1.015, 1.013, 1.009, 1.006, 1.002, 0.999, 0.997, 0.996, 0.996, 0.997, 0.998, 0.998, 0.999, 1, 1.001, 1);
  --press: cubic-bezier(0.28, 1.4, 0.36, 1);
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Text on the site can't be selected or copied. The setup commands still
   copy through their own Copy buttons. */
html { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img, svg { -webkit-user-drag: none; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.5 var(--font);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--card); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* pressable: in quickly, back with a little overshoot */
.press { transition: background-color 0.15s, color 0.15s, opacity 0.14s, scale 0.2s var(--press); }
.press:active { scale: 0.96; transition-duration: 0.15s, 0.15s, 0.14s, 0.09s; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 30; }
.top::before {
  content: ""; position: absolute; inset: 0 0 -24px; pointer-events: none;
  background: linear-gradient(var(--bg) 40%, rgb(26 26 26 / 0));
  backdrop-filter: blur(10px); -webkit-mask: linear-gradient(#000 55%, transparent);
  mask: linear-gradient(#000 55%, transparent);
}
.top-in { position: relative; display: flex; align-items: center; gap: 8px; height: 72px; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--head); letter-spacing: -0.02em; margin-right: 18px; }
.brand .mark { width: 30px; height: 30px; overflow: visible; }
/* The mark's crossbar stretches out to touch the gold dot, which is tugged in. */
.mark .bar { transform-box: fill-box; transform-origin: 0 50%; transition: scale 0.55s var(--settle); }
.mark .knot { transform-box: fill-box; transform-origin: center; transition: translate 0.6s var(--pop), scale 0.45s var(--press); }
.brand:hover .mark .bar { scale: 1.22 1; }
.brand:hover .mark .knot { translate: -0.7px 0; scale: 1.12; transition-delay: 0.06s; }
.nav { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 13px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { background: rgb(255 251 240 / 0.06); color: var(--text); }
.top .grow { flex: 1; }
.round { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 251 240 / 0.06); color: var(--text); }
.round:hover { background: rgb(255 251 240 / 0.1); }
.round svg { width: 18px; height: 18px; transition: scale 0.2s var(--press); }
/* Sound switch: muting retracts the waves and draws a small cross in their place. */
#mute { transition: color 0.3s, background-color 0.15s, scale 0.2s var(--press); }
#mute.off { color: var(--text-3); }
.spk-ic { overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.spk-ic .body { transform-box: fill-box; transform-origin: 70% 50%; }
.spk-ic .w { stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.4s var(--out), opacity 0.3s; }
.spk-ic .w2 { transition-delay: 0.05s; }
#mute.off .w { stroke-dashoffset: 1; opacity: 0; }
#mute.off .w1 { transition-delay: 0.05s; }
#mute.off .w2 { transition-delay: 0s; }
.spk-ic .x { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 0.35s var(--out), opacity 0.2s; }
#mute.off .x { stroke-dashoffset: 0; opacity: 1; transition-delay: 0.18s; }
#mute.off .x2 { transition-delay: 0.26s; }
#mute .body.bump { animation: spk-bump 0.5s var(--pop); }
@keyframes spk-bump { 40% { scale: 0.86; } }
.round:hover svg { scale: 1.06; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; text-decoration: none; background: var(--raised); color: var(--text); }
.pill-btn:hover { background: var(--raised-2); }
.pill-btn.amber { background: var(--gold); color: var(--gold-ink); }
.pill-btn.amber:hover { background: var(--gold-hover); }
.pill-btn.big { height: 48px; padding: 0 24px; font-size: 15.5px; }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; text-align: center; padding: 96px 24px 72px; overflow: hidden; }
.hero > :not(canvas) { position: relative; z-index: 1; }
.hero h1 { font: 650 clamp(40px, 6vw, 68px)/1.06 var(--head); letter-spacing: -0.026em; max-width: 13ch; margin: 0 auto; }
.lede { max-width: 34em; margin: 22px auto 0; font-size: 17.5px; line-height: 1.55; color: var(--text-2); }
.lede b { font-weight: 500; color: var(--text); }
.agents { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 30px auto 0; }
.agents span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgb(255 251 240 / 0.05); color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.agents span i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.agents span.on i { background: var(--gold); }
.hero .actions { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.hero .film { margin: 56px auto 0; max-width: 1040px; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgb(255 251 240 / 0.1), 0 24px 60px rgb(0 0 0 / 0.35); background: #141414; aspect-ratio: 16 / 9; }
.hero .film { position: relative; cursor: pointer; }
.hero .film figcaption { position: absolute; left: 14px; bottom: 12px; padding: 5px 10px; border-radius: 8px; background: rgb(26 26 26 / 0.78); color: var(--text-2, #a9a6a0); font-size: 12.5px; pointer-events: none; transition: opacity .3s; }
.hero .film.sound figcaption { opacity: 0; }
.hero .film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero .note { margin-top: 22px; color: var(--text-3); font-size: 14px; }

/* words rise out of a blur, one after another */
.reveal .ch { display: inline-block; will-change: transform; }
.reveal .w { display: inline-block; opacity: 0; animation: word 0.9s var(--out) forwards; animation-delay: calc(var(--i) * 55ms + 80ms); }
@keyframes word { from { opacity: 0; transform: translateY(0.35em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
.rise { animation: rise 0.9s var(--out) backwards; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } }

/* ---------------------------------------------------------------- chips + grid */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { height: 40px; padding: 0 16px; border-radius: 999px; background: rgb(255 251 240 / 0.05); color: #bdbab2; font-weight: 500; font-size: 14px; transition: background-color 0.16s, color 0.16s, scale 0.2s var(--out); }
.chip:hover { background: rgb(255 251 240 / 0.09); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.chip:active { scale: 0.96; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column;
  min-height: 420px; border-radius: 30px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden; isolation: isolate;
  transition: opacity 0.3s var(--out), scale 0.4s var(--spring), filter 0.3s;
}
.card.tall { grid-row: span 2; }
.card.wide { grid-column: span 2; }
@media (max-width: 680px) { .card.wide { grid-column: auto; } }
.card.hidden { display: none; }
.stage { flex: 1; display: grid; place-items: center; padding: 34px 26px 10px; position: relative; }
.cap { display: flex; align-items: center; gap: 8px; padding: 14px 16px 16px; }
.cap .name { height: 36px; display: inline-flex; align-items: center; padding: 0 15px; border-radius: 999px; background: var(--card-2); color: #d9d5cb; font-size: 14px; font-weight: 500; }
.cap .grow { flex: 1; }
.cap .round { width: 38px; height: 38px; background: var(--card-2); }
.cap .round:hover { background: var(--raised); }
.cap .round svg { width: 16px; height: 16px; }
.card .veil { position: absolute; left: 0; right: 0; bottom: 64px; padding: 34px 24px 10px; background: linear-gradient(rgb(33 33 33 / 0), var(--card) 45%); z-index: 2; color: var(--text-2); font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(6px); transition: opacity 0.25s var(--out), transform 0.35s var(--out); pointer-events: none; text-align: center; }
.card:hover .veil, .card:focus-within .veil { opacity: 1; transform: none; }


/* ---------------------------------------------------------------- shared mini UI */
.mini { width: 100%; max-width: 330px; border-radius: 22px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; }
.mini .t { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.mini .s { color: var(--text-2); font-size: 13px; }
.btn { height: 38px; padding: 0 16px; border-radius: 999px; background: var(--raised); font-weight: 500; font-size: 14px; }
.btn:hover { background: var(--raised-2); }
.btn.amber { background: var(--gold); color: var(--gold-ink); font-weight: 600; }
.btn.amber:hover { background: var(--gold-hover); }
.dot { position: relative; flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.dot.coral { background: var(--coral); }
.dot.grey { background: var(--text-3); }
@keyframes beat { 0% { opacity: 0.5; scale: 1; } 70%, 100% { opacity: 0; scale: 2.8; } }

/* 1 · share */
.share { display: grid; gap: 14px; transition: height 0.54s var(--island); overflow: hidden; }
.share .page { display: flex; gap: 10px; align-items: center; }
.share .fav { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, #3a3a3a, #2d2d2d); display: grid; place-items: center; font: 700 12px/1 var(--head); color: var(--text-2); }
.share .go { width: 100%; height: 44px; font-size: 14.5px; }
.share .live { display: grid; gap: 4px; }
.share .live .head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.share .live .what { color: var(--text-2); font-size: 13px; padding-left: 16px; min-height: 20px; }
.share .row { display: flex; gap: 8px; }
.share .row .btn { flex: 1; }
.swap-in { animation: swap 0.42s var(--spring) backwards; }
@keyframes swap { from { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(6px); } }
.word-in { animation: rise 0.4s var(--spring) backwards; }

/* 2 · island: the shape springs, the content holds its final layout */
.island-wrap { display: grid; place-items: center; width: 100%; min-height: 150px; }
.island {
  display: flex; justify-content: flex-end; align-items: flex-start; overflow: hidden;
  border-radius: 999px; background: #141414; max-width: 100%;
  box-shadow: inset 0 0 0 1px rgb(255 251 240 / 0.1);
  font-size: 13px;
}
.island .in { flex: none; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 14px; box-sizing: border-box; max-width: 340px; }
.island .lines { min-width: 0; text-align: left; }
.island .t { font-weight: 600; white-space: nowrap; }
.island .s { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island.ask { border-radius: 24px; }
.island.ask .in { align-items: flex-start; padding: 13px 10px 13px 16px; }
.island.ask .s { white-space: normal; color: var(--text); max-width: 190px; margin-top: 3px; }
.island.ask .dot { margin-top: 5px; }
.island .btns { display: flex; gap: 6px; flex: none; }
.island .btn { height: 32px; padding: 0 13px; font-size: 13px; flex: none; white-space: nowrap; }

/* 3 · cursor */
.desk { position: relative; width: 100%; max-width: 330px; height: 230px; border-radius: 20px; background: #d6d1c8; color: #1d1b18; overflow: hidden; padding: 20px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06); }
.desk h4 { margin: 0 0 4px; font: 700 18px/1.2 var(--head); letter-spacing: -0.02em; }
.desk p { margin: 0 0 14px; font-size: 12.5px; color: #6b665e; }
.desk .fields { display: grid; gap: 8px; }
.desk .field { height: 32px; border-radius: 9px; background: rgb(255 255 255 / 0.32); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); display: flex; align-items: center; padding: 0 10px; font-size: 12.5px; color: #3a3a3a; overflow: hidden; white-space: nowrap; }
.desk .field.hl { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12), 0 0 0 2px var(--gold); }
.desk .send { position: absolute; right: 20px; bottom: 18px; height: 32px; padding: 0 14px; border-radius: 9px; background: #1d1b18; color: #fffbf0; font-size: 12.5px; font-weight: 600; display: grid; place-items: center; transition: scale 0.2s var(--press); }
.desk .send.down { scale: 0.94; }
.desk .caret { display: inline-block; width: 1px; height: 14px; background: #1d1b18; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.agent-cur { position: absolute; left: 0; top: 0; pointer-events: none; transition: transform 0.7s var(--out); z-index: 2; }
.agent-cur .body { transform-origin: 2px 2px; }
.agent-cur .tag { position: absolute; left: 12px; top: 17px; padding: 3px 9px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font: 600 11px/1.4 var(--font); white-space: nowrap; }
.ring { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); pointer-events: none; animation: ring 0.55s var(--out) forwards; }
@keyframes ring { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* 4 · switches */
.toggles { display: grid; gap: 4px; width: 100%; max-width: 330px; }
.toggle-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; transition: background-color 0.15s; cursor: pointer; text-align: left; width: 100%; }
.toggle-row:hover { background: var(--card-2); }
.toggle-row .grow { flex: 1; min-width: 0; }
.toggle-row .t { font-weight: 500; font-size: 14px; }
.toggle-row .s { color: var(--text-2); font-size: 12.5px; }
.switch { --w: 46px; --h: 28px; --d: 22px; position: relative; flex: none; width: var(--w); height: var(--h); border-radius: 999px; background: var(--raised); transition: background-color 0.24s var(--out), scale 0.2s var(--press); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: var(--d); height: var(--d); border-radius: 50%; background: #a9a6a0; box-shadow: 0 1px 3px rgb(0 0 0 / 0.4); transition: translate 0.65s var(--settle), background-color 0.24s var(--out), scale 0.5s var(--spring); }
.toggle-row:hover .switch::after { scale: 1.06; }
.switch.on { background: var(--gold); }
.switch.on::after { translate: calc(var(--w) - var(--h)) 0; background: #fffbf0; }
.toggle-row:active .switch { scale: 0.95; }

/* 5 · prompt */
.prompt { display: grid; gap: 12px; }
.prompt .who { display: flex; gap: 11px; align-items: center; }
.prompt .badge { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font: 700 13px/1 var(--head); flex: none; }
.prompt .badge .dot { position: absolute; right: -1px; bottom: -1px; box-shadow: 0 0 0 3px var(--card-2); }
.prompt .reason { background: var(--card); border-radius: 14px; padding: 9px 12px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.prompt .row { display: flex; gap: 8px; justify-content: flex-end; }
.prompt .done { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.check { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; animation: pop 0.75s var(--pop) backwards; }
.check path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw 0.35s 0.15s var(--out) forwards; }
@keyframes pop { from { scale: 0.4; opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* 6 · hub */
.hub { width: 100%; max-width: 640px; height: 260px; position: relative; }
.hub svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub .spoke { stroke: rgb(255 251 240 / 0.12); stroke-width: 1; transition: stroke 0.25s, opacity 0.25s; }
.hub .spoke.hot { stroke: rgb(212 175 55 / 0.8); }
.hub.picking .spoke:not(.hot) { opacity: 0.35; }
.hub .packet { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; fill: none; }
.hub .node { position: absolute; transform: translate(-50%, -50%); height: 32px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 500; color: #d9d5cb; white-space: nowrap; transition: opacity 0.25s, scale 0.3s var(--press), background-color 0.2s; cursor: default; }
.hub .node:hover { scale: 1.05; background: var(--raised); }
.hub.picking .node:not(.hot):not(.core) { opacity: 0.45; }
.hub .core { height: 52px; padding: 0 18px; background: #141414; box-shadow: inset 0 0 0 1px rgb(255 251 240 / 0.1); font: 700 14px/1 var(--head); color: var(--text); gap: 9px; }
.hub .core svg { width: 22px; height: 22px; }
.hub .core.nudge { animation: nudge 0.6s var(--pop); }
@keyframes nudge { 40% { scale: 1.08; } }

/* 7 · network */
.net { width: 100%; max-width: 360px; display: grid; gap: 6px; height: 250px; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 22%); mask: linear-gradient(transparent, #000 22%); align-content: end; }
.req { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; height: 38px; padding: 0 12px; border-radius: 12px; background: var(--card-2); font-size: 12.5px; animation: swap 0.45s var(--spring) backwards; }
.req .m { color: var(--text-2); font-weight: 600; font-size: 11px; letter-spacing: 0.02em; }
.req .u { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #d9d5cb; }
.req .c { font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgb(127 191 142 / 0.12); color: var(--green); }
.req .c.bad { background: rgb(224 128 107 / 0.14); color: var(--coral); }

/* 8 · compare */
.compare { position: relative; width: 100%; max-width: 360px; height: 250px; border-radius: 20px; overflow: hidden; cursor: ew-resize; touch-action: none; box-shadow: inset 0 0 0 1px var(--line); user-select: none; }
.compare .pane { position: absolute; inset: 0; padding: 18px; }
.compare .light { background: #d9d4cb; color: #1d1b18; }
.compare .dark { background: #1a1a1a; color: var(--text); clip-path: inset(0 0 0 var(--x, 50%)); }
.compare h5 { margin: 0 0 12px; font: 700 15px/1.2 var(--head); }
.compare .rowx { display: flex; justify-content: space-between; padding: 8px 0; font-size: 12.5px; border-top: 1px solid rgb(0 0 0 / 0.08); }
.compare .dark .rowx { border-color: var(--line); color: #d9d5cb; }
.compare .dark .amt { color: var(--gold); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: var(--gold); }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--gold); transition: scale 0.3s var(--press); }
.compare:active .handle::after { scale: 0.88; }
.compare .label { position: absolute; bottom: 12px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.compare .light .label { left: 12px; background: rgb(0 0 0 / 0.08); }
.compare .dark .label { right: 12px; background: rgb(255 251 240 / 0.1); }

/* 9 · watcher toasts (the stack's own styles come from toast-stack.js) */
.toasts { width: 100%; max-width: 330px; height: 290px; padding-bottom: 70px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; }

/* 10 · recording */
.rec { width: 100%; max-width: 330px; display: grid; gap: 14px; }
.rec .top-row { display: flex; align-items: center; gap: 10px; }
.rec .count { margin-left: auto; font: 650 28px/1 var(--head); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; display: inline-flex; overflow: hidden; height: 30px; }
.rec .count .digit { display: inline-block; transition: transform 0.5s var(--settle); }
.rec .count .col { display: inline-flex; flex-direction: column; height: 30px; }
.rec .count .col span { height: 30px; line-height: 30px; }
.rec .events { display: grid; gap: 6px; }
.rec .ev { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #d9d5cb; animation: swap 0.4s var(--spring) backwards; }
.rec .ev b { font-weight: 600; color: var(--text); }
.rec .ev .k { width: 54px; color: var(--text-3); font-size: 11.5px; font-weight: 600; }
.rec .mask { letter-spacing: 0.15em; color: var(--text-3); }

/* ---------------------------------------------------------------- sections */
section.block { padding: 110px 0 0; }
.kicker { color: var(--text-2); font-size: 14px; font-weight: 500; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
h2 { font: 650 clamp(30px, 3.6vw, 42px)/1.12 var(--head); letter-spacing: -0.02em; word-spacing: 0.04em; max-width: 20ch; }
.sub { color: var(--text-2); font-size: 16.5px; max-width: 36em; margin-top: 14px; }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 22px; display: grid; gap: 12px; align-content: start; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font: 700 13px/1 var(--head); color: var(--text-2); }
.step h3 { font: 650 18px/1.3 var(--head); letter-spacing: -0.008em; word-spacing: 0.04em; }
.step p { color: var(--text-2); font-size: 14.5px; }
.step code { font-family: inherit; background: var(--card-2); padding: 1px 7px; border-radius: 6px; color: var(--text); font-size: 0.95em; }
.copy { display: flex; align-items: center; gap: 10px; border-radius: 16px; background: var(--card-2); padding: 8px 8px 8px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.copy pre { flex: 1; margin: 0; font: 500 14px/1.65 var(--font); color: var(--text); overflow-x: auto; white-space: pre; scrollbar-width: none; }
.copy pre::-webkit-scrollbar { display: none; }
.copy .c { color: var(--text-3); }
.copy button { flex: none; align-self: flex-start; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--raised); color: var(--text-2); }
.copy button:hover { background: var(--raised-2); color: var(--text); }
.copy button svg { width: 16px; height: 16px; }
.copy button .ok { display: none; color: var(--gold); }
.copy button.done .ok { display: block; animation: pop 0.6s var(--pop); }
.copy button.done .cp { display: none; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }
.fact { border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 24px; }
.fact h3 { font: 650 17px/1.3 var(--head); letter-spacing: -0.015em; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.fact p { color: var(--text-2); font-size: 14.5px; }

/* community */
.join { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; border-radius: 32px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 44px; position: relative; overflow: hidden; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; padding: 28px; } }
.join-side { display: grid; gap: 20px; justify-items: start; }
.ideas { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--text-2); font-size: 14.5px; }
.ideas li { display: flex; gap: 10px; align-items: center; }
.ideas li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.pill-btn.gold { background: var(--gold); color: var(--gold-ink); }
.pill-btn.gold:hover { background: var(--gold-hover); }
.hero .note a { color: var(--text); text-decoration-color: rgb(212 175 55 / 0.6); text-underline-offset: 3px; }

/* FAQ frames: the open one stays solid, the rest step back */
.faq { display: grid; gap: 6px; margin-top: 36px; max-width: 760px; }
.q { border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: opacity 0.3s var(--out), background-color 0.3s; }
.faq.has-open .q:not(.open) { opacity: 0.55; }
.faq.has-open .q:not(.open):hover { opacity: 0.85; }
.q button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 18px 22px; text-align: left; font: 600 15.5px/1.35 var(--head); letter-spacing: -0.01em; }
.q button span { flex: 1; }
.q button svg { width: 18px; height: 18px; color: var(--text-3); transition: rotate 0.5s var(--settle), color 0.2s; }
.q.open button svg { rotate: 180deg; color: var(--text); }
.q .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--island); }
.q.open .a { grid-template-rows: 1fr; }
.q .a > div { overflow: hidden; }
.q .a p { padding: 0 22px 20px; color: var(--text-2); font-size: 14.5px; max-width: 40em; opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.35s var(--out); }
.q.open .a p { opacity: 1; transform: none; transition-delay: 0.12s; }

/* ---------------------------------------------------------------- background */
#foil { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------------------------------------------------------------- footer
   Calm on purpose: lots of room, low contrast, one breathing dot, a large
   wordmark fading out. */
.foot { position: relative; margin-top: 140px; padding-top: 64px; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 48px; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr; } }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand p { color: var(--text-2); font-size: 15px; max-width: 26em; line-height: 1.6; }
.foot-status { display: flex; align-items: center; gap: 10px; color: var(--text-3) !important; font-size: 13.5px !important; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 520px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot-cols h3 { font: 600 13px/1 var(--font); color: var(--text-3); letter-spacing: 0.02em; margin-bottom: 6px; }
.foot-cols a { color: var(--text-2); text-decoration: none; font-size: 14.5px; width: fit-content; transition: color 0.2s, translate 0.35s var(--settle); }
.foot-cols a:hover { color: var(--text); translate: 3px 0; }
.foot-word { margin-top: 64px; font: 700 clamp(90px, 19vw, 260px)/0.8 var(--head); letter-spacing: -0.05em; text-align: center; color: transparent; background: linear-gradient(rgb(255 251 240 / 0.07), rgb(255 251 240 / 0)); -webkit-background-clip: text; background-clip: text; user-select: none; translate: 0 0.12em; }
.foot-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13.5px; }
#totop svg { width: 18px; height: 18px; transition: translate 0.4s var(--settle); }
#totop:hover svg { translate: 0 -2px; }

/* in-view rises */
.inview { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 0.8s var(--out), transform 0.9s var(--out), filter 0.8s var(--out); transition-delay: var(--d, 0s); }
.inview.seen { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal .w, .inview { opacity: 1; transform: none; filter: none; }
}

/* ---------------------------------------------------------------- guide */
.article { max-width: 760px; padding-top: 72px; }
.article h1 { font: 650 clamp(34px, 4.6vw, 50px)/1.1 var(--head); letter-spacing: -0.022em; }
.article h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 56px 0 12px; }
.article p { color: var(--text-2); font-size: 16.5px; line-height: 1.7; }
.article p + p { margin-top: 14px; }
.article b { color: var(--text); font-weight: 600; }
.article code { font-family: inherit; background: var(--card-2); padding: 1px 7px; border-radius: 6px; color: var(--text); font-size: 0.93em; }
.lede-left { margin-top: 20px; font-size: 18px !important; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.toc a { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: rgb(255 251 240 / 0.05); color: var(--text-2); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: background-color 0.15s, color 0.15s; }
.toc a:hover { background: rgb(255 251 240 / 0.09); color: var(--text); }
.steps-list { padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps-list li { counter-increment: s; position: relative; padding: 18px 20px 18px 62px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); line-height: 1.65; }
.steps-list li::before { content: counter(s); position: absolute; left: 18px; top: 17px; width: 30px; height: 30px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font: 700 13px/1 var(--head); color: var(--gold); }
.prompts { list-style: none; padding: 0; display: grid; gap: 10px; }
.prompts li { padding: 14px 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 15.5px; }
.table { border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin-bottom: 16px; }
.tr { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.tr span:first-child { color: var(--text); }
.tr span:last-child { color: var(--gold); }
.tr.th { border-top: 0; font-weight: 600; color: var(--text-3); font-size: 13px; }
.tr.th span:last-child { color: var(--text-3); }

/* ---------------------------------------------------------------- setup player */
.player { margin-top: 40px; border-radius: 32px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 10px; }
.ptabs { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 24px; background: rgb(255 251 240 / 0.03); }
@media (max-width: 760px) { .ptabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jelly { display: none; } .ptabs button[aria-selected="true"] { background: var(--card-2); } }
.jelly { position: absolute; left: 6px; top: 6px; bottom: 6px; border-radius: 18px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.55s var(--island), width 0.55s var(--island); transform-origin: 50% 50%; }
.ptabs button { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 18px; color: var(--text-2); font-weight: 500; font-size: 14.5px; text-align: left; overflow: hidden; transition: color 0.2s; }
.ptabs button:hover { color: var(--text); }
.ptabs button[aria-selected="true"] { color: var(--text); }
.pn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgb(255 251 240 / 0.06); font: 700 12px/1 var(--head); transition: background-color 0.3s, color 0.3s; }
.ptabs button[aria-selected="true"] .pn { background: var(--gold); color: var(--gold-ink); }
.fill { position: absolute; left: 16px; right: 16px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--gold); opacity: 0.55; transform: scaleX(0); transform-origin: 0 50%; }
/* Fixed height: the steps change on their own, and a stage that grew and
   shrank with them would push everything below it up and down. */
.pstage { padding: 28px 22px 20px; height: 470px; overflow: hidden; display: grid; align-items: center; }
@media (max-width: 760px) { .pstage { height: 600px; } }
.scene { display: grid; gap: 18px; max-width: 780px; margin: 0 auto; }
.pnote { color: var(--text-2); font-size: 14.5px; text-align: center; }
.pnote b { color: var(--text); font-weight: 600; }

.term { border-radius: 20px; background: #141414; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }
.tbody { padding: 16px 18px 18px; display: grid; gap: 6px; min-height: 150px; align-content: start; }
.tl { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.tl .pr { color: var(--gold); font-weight: 700; }
.tl.out { color: var(--text-2); padding-left: 20px; animation: swap 0.4s var(--spring) backwards; }
.tl.out.ok::before { content: "✓"; color: var(--green); margin-right: 8px; }
.tl.out .k { color: var(--gold); font-weight: 600; letter-spacing: 0.02em; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--gold); align-self: center; animation: blink 1s steps(1) infinite; }
.pcopy { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--raised); color: var(--text-2); }
.pcopy:hover { background: var(--raised-2); color: var(--text); }
.pcopy svg { width: 15px; height: 15px; }
.pcopy .ok { display: none; color: var(--gold); }
.pcopy.done .ok { display: block; animation: pop 0.6s var(--pop); }
.pcopy.done .cp { display: none; }

.seg { justify-self: center; display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: rgb(255 251 240 / 0.04); }
.seg button { height: 36px; padding: 0 15px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 14px; transition: background-color 0.25s, color 0.2s, scale 0.2s var(--press); }
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

.popup { justify-self: center; width: 100%; max-width: 340px; border-radius: 22px; background: #141414; box-shadow: inset 0 0 0 1px var(--line); padding: 14px; display: grid; gap: 12px; overflow: hidden; }
.ph { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pmark { width: 18px; height: 18px; border-radius: 6px; background: var(--card-2) url("/favicon.svg") center / cover; }
.pst { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 12.5px; }
.pcard { border-radius: 16px; background: var(--card-2); padding: 14px; display: grid; gap: 8px; }
.pcard .t { font-weight: 600; font-size: 14px; }
.pcard .s { color: var(--text-2); font-size: 12.5px; }
.prow { display: flex; gap: 8px; }
.pin { flex: 1; height: 36px; border-radius: 12px; background: #141414; box-shadow: inset 0 0 0 1px rgb(212 175 55 / 0.5); display: flex; align-items: center; padding: 0 12px; font-size: 13.5px; letter-spacing: 0.03em; }
.pin::after { content: ""; width: 2px; height: 16px; margin-left: 2px; background: var(--gold); animation: blink 1s steps(1) infinite; }
.btn.down { scale: 0.94; }
.btn.full { width: 100%; display: grid; place-items: center; }

.checks { display: grid; gap: 8px; margin-top: 8px; padding-left: 20px; }
.chk { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-2); animation: swap 0.4s var(--spring) backwards; }
.tick { width: 20px; height: 20px; border-radius: 50%; background: rgb(127 191 142 / 0.14); color: var(--green); display: grid; place-items: center; flex: none; animation: pop 0.6s var(--pop) backwards; }
.tick svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw 0.35s 0.12s var(--out) forwards; }
.chk.all { color: var(--text); margin-top: 6px; }
.chk.all b { font-weight: 600; }

/* ---------------------------------------------------------------- safety accordion */
.acc { display: flex; gap: 12px; height: 360px; margin-top: 40px; }
.pane { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 26px; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: left; overflow: hidden; transition: flex-grow 0.7s var(--island), background-color 0.3s; }
.pane.open { flex-grow: 3.2; background: #262626; }
.pane .ic { position: absolute; left: 24px; top: 24px; width: 56px; height: 56px; fill: none; stroke: var(--text-3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s, scale 0.6s var(--pop), translate 0.7s var(--island); }
.pane.open .ic { stroke: var(--gold); scale: 1.25; translate: 6px 6px; }
.pane .ic .pulse { fill: var(--gold); stroke: none; opacity: 0; }
.pane.open .ic .pulse { opacity: 1; }
.pane .ic .slash { stroke-dasharray: 52; stroke-dashoffset: 52; transition: stroke-dashoffset 0.6s 0.15s var(--out); }
.pane.open .ic .slash { stroke-dashoffset: 0; }
.pt { font: 650 19px/1.25 var(--head); letter-spacing: -0.01em; color: var(--text-2); white-space: nowrap; transition: color 0.3s; }
.pane.open .pt { color: var(--text); font-size: 22px; }
.pd { color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 30em; opacity: 0; max-height: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.5s var(--out), max-height 0.5s var(--out); }
.pane.open .pd { opacity: 1; max-height: 140px; transform: none; transition-delay: 0.18s; }
@media (max-width: 860px) {
  .acc { flex-direction: column; height: auto; }
  .pane { min-height: 96px; }
  .pane.open { min-height: 240px; }
}
.prow .btn { display: grid; place-items: center; height: 36px; }

/* ---------------------------------------------------------------- questions */
.qa { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .qa { grid-template-columns: 1fr; } }
.qlist { position: relative; display: grid; gap: 2px; align-content: start; padding: 8px; border-radius: 30px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.qjelly { position: absolute; left: 8px; right: 8px; top: 0; border-radius: 20px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.55s var(--island), height 0.55s var(--island); }
.qitem { position: relative; z-index: 1; display: flex; gap: 14px; align-items: baseline; padding: 15px 16px; border-radius: 20px; text-align: left; font: 600 15.5px/1.35 var(--head); letter-spacing: -0.005em; color: var(--text-2); transition: color 0.2s; }
.qitem:hover, .qitem[aria-selected="true"] { color: var(--text); }
.qn { flex: none; font: 600 12px/1 var(--font); color: var(--text-3); width: 20px; transition: color 0.2s; }
.qitem[aria-selected="true"] .qn { color: var(--gold); }
.qpanel { border-radius: 30px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 32px; display: grid; grid-template-rows: auto 1fr; gap: 26px; height: 600px; overflow: hidden; }
@media (max-width: 900px) { .qpanel { height: 720px; } }
.qq { font: 650 clamp(22px, 2.2vw, 28px)/1.2 var(--head); letter-spacing: -0.015em; }
.qa-text { color: var(--text-2); font-size: 16px; line-height: 1.7; margin-top: 12px; max-width: 38em; }
.qa-text a { color: var(--gold); text-underline-offset: 3px; }
.qv { display: grid; align-content: center; justify-items: center; gap: 12px; border-radius: 22px; background: #1d1d1d; box-shadow: inset 0 0 0 1px var(--line); padding: 24px; min-height: 200px; }
.qv > * { animation: rise-in 0.5s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } }

/* 1 · two windows */
.qv.two { grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.qwin { border-radius: 16px; background: var(--card-2); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.qwin.dim { opacity: 0.55; }
.qwin:nth-child(2) { --i: 1; }
.qbar { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.qbar i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.qbar i.on { background: var(--gold); }
.qbody { padding: 14px; display: grid; gap: 8px; align-content: start; font-size: 13px; }
.qin { height: 26px; border-radius: 8px; background: #1a1a1a; box-shadow: inset 0 0 0 1px var(--line); }
.qbtn { height: 28px; border-radius: 999px; background: var(--raised); display: grid; place-items: center; font-size: 12px; color: var(--text-2); }
.qme { display: flex; gap: 10px; align-items: center; line-height: 1.3; }
.qme small { color: var(--text-2); }
.qav { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; font: 700 13px/1 var(--head); flex: none; }
.qrow { height: 10px; border-radius: 6px; background: var(--raised); }
.qrow.s { width: 60%; background: rgb(212 175 55 / 0.5); }

/* 2 · tabs */
.qv.tabs { grid-template-columns: repeat(5, auto); justify-content: center; gap: 8px; }
.qtab { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 12px; background: var(--card-2); color: var(--text-3); font-size: 13px; font-weight: 500; }
.qtab svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.qtab.on { color: var(--text); box-shadow: inset 0 0 0 1px rgb(212 175 55 / 0.6); }
.qcap { grid-column: 1 / -1; color: var(--text-3); font-size: 13px; margin-top: 6px; --i: 6; }
@media (max-width: 600px) { .qv.tabs { grid-template-columns: repeat(3, auto); } }

/* 3 · browser chips */
.qv.chips { grid-template-columns: repeat(4, auto); justify-content: center; gap: 8px; }
.qchip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 9px; border-radius: 999px; background: var(--card-2); font-size: 13.5px; font-weight: 500; }
.qchip .tick { animation-delay: calc(var(--i) * 80ms + 200ms); }
.qchip .tick svg { animation-delay: calc(var(--i) * 80ms + 320ms); }
@media (max-width: 600px) { .qv.chips { grid-template-columns: repeat(2, auto); } }

/* 4 · files to managers */
.qv.files { justify-items: stretch; gap: 10px; }
.qfile { display: grid; grid-template-columns: 1fr 60px auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); font-size: 13.5px; }
.qfile .fn { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qfile .mgr { color: var(--gold); font-weight: 600; }
.qfile .arrow { height: 1px; background: var(--raised-2); position: relative; overflow: hidden; }
.qfile .arrow::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; animation: fill-line 0.6s var(--out) forwards; animation-delay: calc(var(--i) * 120ms + 300ms); }
@keyframes fill-line { to { transform: scaleX(1); } }

/* 5 · agent to host to browser */
.qv.flow { grid-template-columns: auto 1fr auto 1fr auto; align-items: center; justify-items: stretch; gap: 0; }
.qv.flow .qnode { justify-self: center; }
.qnode { height: 38px; padding: 0 14px; border-radius: 999px; background: var(--card-2); display: grid; place-items: center; font-size: 13px; font-weight: 500; white-space: nowrap; }
.qnode.core { box-shadow: inset 0 0 0 1px rgb(212 175 55 / 0.6); font-weight: 650; }
.qline { height: 1px; background: var(--raised-2); position: relative; overflow: hidden; margin: 0 6px; min-width: 24px; }
.qline i { position: absolute; top: 0; left: -30%; width: 30%; height: 1px; background: var(--gold); animation: packet 1.8s cubic-bezier(.45, 0, .2, 1) infinite; }
.qline + .qnode + .qline i { animation-delay: 0.9s; }
@keyframes packet { to { left: 100%; } }
@media (max-width: 600px) { .qnode { font-size: 12px; padding: 0 10px; } }

/* 6 · vote */
.qv.vote { grid-template-columns: auto auto; justify-content: center; justify-items: start; align-items: center; gap: 16px; }
.qup { width: 64px; height: 76px; border-radius: 18px; background: var(--card-2); display: grid; place-items: center; align-content: center; gap: 4px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.2s, color 0.2s, scale 0.2s var(--press); }
.qup svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.4s var(--settle); }
.qup:hover svg { translate: 0 -2px; }
.qup[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.qcount { font: 650 15px/1 var(--head); font-variant-numeric: tabular-nums; }
.qidea { display: grid; gap: 4px; --i: 1; }
.qidea b { font-size: 15px; }
.qidea small { color: var(--text-3); font-size: 13px; }

/* 7 · ticket */
.qticket { display: grid; grid-template-columns: 1fr auto; width: min(100%, 420px); border-radius: 18px; background: var(--card-2); overflow: hidden; }
.tk-l { display: grid; gap: 4px; padding: 18px 20px; border-right: 2px dashed #1d1d1d; }
.tk-l small { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.tk-l b { font: 700 24px/1.1 var(--head); letter-spacing: -0.02em; }
.tk-l span { color: var(--text-2); font-size: 13px; }
.tk-r { display: grid; place-items: center; padding: 0 18px; }

.faq-data { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 8 · versus */
.qv.versus { grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; justify-items: stretch; }
.vcol { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 16px; background: var(--card-2); }
.vcol small { color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 2px; }
.vcol.on { box-shadow: inset 0 0 0 1px rgb(212 175 55 / 0.55); }
.vcol.on small { color: var(--gold); }
.vrow { font-size: 13.5px; color: var(--text-2); padding: 8px 10px; border-radius: 10px; background: #1d1d1d; animation: rise-in 0.5s var(--spring) backwards; animation-delay: calc(var(--i) * 60ms + 120ms); }
.vcol.on .vrow { color: var(--text); }

.article .src { margin-top: 32px; font-size: 13.5px; color: var(--text-3); }
.article .src a { color: var(--text-2); }
.tr { grid-template-columns: 1fr 1fr 1.4fr; }

.pnote a { color: var(--gold); text-underline-offset: 3px; }

.plist { color: var(--text-2); font-size: 16px; line-height: 1.7; padding-left: 20px; display: grid; gap: 6px; }
.plist b { color: var(--text); }
.article a { color: var(--gold); text-underline-offset: 3px; }
.foot-bottom a { color: var(--text-2); text-decoration: none; }
.foot-bottom a:hover { color: var(--text); }
