/* UIX v10 home only: the hero (silk poster, fan), the color dock, proof chips, the problem and answer, how it works, the five
   explainer scenes, the sync places, the parts grid and the AI-agents block. Everything shared is in /assets/pearl.css. */
.hero .btn-glass:not(.dot):not(.sw) { -webkit-backdrop-filter: blur(10px) saturate(170%); backdrop-filter: blur(10px) saturate(170%); --g-a: .5; }
/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: 128px 0 0; }
/* the silk: a poster of the same frame paints first; the WebGL canvas fades in over it after idle. With no WebGL and a
   color other than the default, the CSS silk below follows the color instead of the poster */
.silk { position: absolute; left: 0; right: 0; top: 0; bottom: 120px; z-index: -2; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(#000 calc(100% - 220px), transparent); mask: linear-gradient(#000 calc(100% - 220px), transparent); }
.silk::before { content: ""; position: absolute; inset: 0; background: image-set(url(/assets/img/silk-l.avif) type('image/avif'), url(/assets/img/silk-l.webp) type('image/webp')) 50% 0 / cover no-repeat; transition: opacity .8s; }
[data-theme=dark] .silk::before { background-image: image-set(url(/assets/img/silk-d.avif) type('image/avif'), url(/assets/img/silk-d.webp) type('image/webp')); }
.silk.custom { background: var(--fb-hero); }
.silk.custom::before { opacity: 0; }
.silk canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--out); }
.silk.live canvas { opacity: 1; }
.silk.live::before { opacity: 0; transition-delay: 1s; }
.hero { --pv: calc(100% + 34vw) -40%;
  --fb-hero: radial-gradient(60% 50% at 88% 6%, color-mix(in oklab, var(--s3) 75%, transparent), transparent 70%),
    repeating-conic-gradient(from 96deg at var(--pv), transparent 0deg, var(--rib) 3deg, transparent 7deg, transparent 34deg),
    repeating-conic-gradient(from 96deg at var(--pv), color-mix(in oklab, var(--s1) 70%, transparent) 0deg, transparent 9deg, transparent 17deg, color-mix(in oklab, var(--s4) 90%, transparent) 25deg, color-mix(in oklab, var(--s2) 50%, transparent) 30deg, color-mix(in oklab, var(--s1) 70%, transparent) 34deg),
    var(--s0); }
.hero::before { content: ""; position: absolute; inset: 0 0 120px; z-index: -1; pointer-events: none; background: radial-gradient(46% 58% at 22% 40%, color-mix(in srgb, var(--paper) 42%, transparent), transparent 76%); }
[data-theme=dark] .hero::before { background: radial-gradient(54% 62% at 22% 42%, color-mix(in srgb, var(--paper) 74%, transparent), transparent 82%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; padding: 7px 14px 7px 11px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink);
  background: rgb(255 255 255 / .72); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), 0 1px 2px rgb(30 24 40 / .06), 0 8px 20px -12px rgb(30 24 40 / .3); }
[data-theme=dark] .kicker { background: rgb(30 29 37 / .78); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), 0 8px 20px -12px rgb(0 0 0 / .6); }
.live-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--w-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--w-300) 45%, transparent); }
.live-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 0 2px var(--w-400); opacity: 0; animation: ping 2.6s var(--out) 3; }
@keyframes ping { 0% { opacity: .8; transform: scale(.7); } 70%, 100% { opacity: 0; transform: scale(2.2); } }
.hero h1 { margin-bottom: 26px; }
.h1-a { display: block; font-size: clamp(46px, 5.2vw, 78px); line-height: .98; letter-spacing: -.045em; }
.h1-b { display: block; margin-top: 14px; font-size: clamp(28px, 2.9vw, 42px); line-height: 1.08; letter-spacing: -.035em; color: var(--ink); max-width: 15em; }
.acc-u { position: relative; font-style: normal; color: var(--accent); white-space: nowrap; }
.acc-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: .14em; border-radius: 1em; background: linear-gradient(90deg, var(--p-400), var(--w-300)); transform-origin: 0 50%; scale: 0 1; animation: draw-u .9s var(--out) .45s forwards; }
@keyframes draw-u { to { scale: 1 1; } }
.hero .lead { margin-bottom: 34px; }
.hero .note { margin-top: 16px; }
.hero-fan { display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* the fan: --a is each swatch's angle, --k the spread (0 closed, 1 open) */
.fan-stage { position: relative; width: 100%; display: flex; justify-content: center; padding-top: 28px; }
.fan { --sw-w: 72px; --sw-h: 300px; --k: 0; position: relative; width: calc(var(--sw-h) * 1.72); height: calc(var(--sw-h) + 8px); }
.fan.open { --k: 1; }
.fan.re { --k: .5; }
.fan .sw { position: absolute; left: 50%; bottom: 0; width: var(--sw-w); height: var(--sw-h); margin-left: calc(var(--sw-w) / -2); padding: 0; border-radius: 20px 20px calc(var(--sw-w) / 2) calc(var(--sw-w) / 2); cursor: pointer; z-index: var(--z);
  transform-origin: 50% calc(100% - var(--sw-w) / 2); transform: rotate(calc(var(--a) * var(--k)));
  background-color: color-mix(in srgb, var(--c) 93%, transparent);
  background-image: linear-gradient(to bottom, var(--c) 0 44px, transparent 110px), linear-gradient(100deg, rgb(255 255 255 / .34), rgb(255 255 255 / 0) 34%, rgb(255 255 255 / 0) 70%, rgb(255 255 255 / .12));
  box-shadow: inset 0 -30px 30px -26px rgb(0 0 0 / .26), inset 0 1px 0 rgb(255 255 255 / .4), 0 1px 2px rgb(12 12 16 / .1), 0 14px 24px -14px color-mix(in srgb, var(--c) 22%, rgb(12 12 16 / .5));
  --e0: rgb(255 255 255 / .16); --e1: rgb(255 255 255 / .9); --e2: color-mix(in oklab, var(--w-100) 80%, white); --e3: rgb(255 255 255 / .5); --lip: .6; --glow-a: 0; --plate: 0;
  transition: transform .55s var(--spring-s), background-color .5s ease calc(var(--i) * 28ms), box-shadow .3s; }
.fan .sw::after { display: none; }
.sw span { position: absolute; top: 14px; right: 11px; z-index: 5; text-align: right; font: 500 11px/1 var(--f-m0); color: var(--t); transition: color .5s ease calc(var(--i) * 28ms); }
.fan.opening .sw { transition: transform 1.15s var(--spring) calc(var(--i) * 22ms), background-color .5s ease calc(var(--i) * 28ms), box-shadow .3s; }
.fan.re .sw { transition: transform .2s cubic-bezier(.4, 0, 1, 1), background-color .5s ease calc(var(--i) * 28ms); }
.fan .sw.lift { z-index: 40; transform: rotate(calc(var(--a) * var(--k))) translateY(-26px); box-shadow: inset 0 -30px 30px -26px rgb(0 0 0 / .26), 0 2px 4px rgb(12 12 16 / .1), 0 30px 46px -16px color-mix(in srgb, var(--c) 30%, rgb(12 12 16 / .6)); }
.fan .sw:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.fan::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--sw-w) / 2); width: 14px; height: 14px; margin: 0 0 -7px -7px; border-radius: 50%; z-index: 41; background: radial-gradient(circle at 38% 32%, #FFFFFF, #C9C6C0 72%); box-shadow: 0 0 0 1px rgb(12 12 16 / .16), 0 1px 3px rgb(0 0 0 / .25); pointer-events: none; }
.chip-card { position: absolute; left: 0; top: 0; z-index: 45; width: 236px; padding: 14px; border-radius: 22px; pointer-events: none; transform: translate(var(--x, 0), var(--y, 0)); --g-a: .74; transition: transform .28s var(--out), opacity .2s, background-color .5s; }
[data-theme=dark] .chip-card { --g-a: .8; }
.chip-card > * { position: relative; z-index: 3; }
.chip-card[hidden] { display: block; opacity: 0; transform: translate(var(--x), calc(var(--y) + 6px)) scale(.97); }
.cc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cc-sw { width: 40px; height: 40px; border-radius: 12px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(12 12 16 / .08); }
.cc-top b { display: block; font: 600 15px/1.2 var(--f-b); }
.cc-top code { display: block; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.cc-tok { display: block; font: 400 12.5px/1.4 var(--f-m); color: var(--ink-2); padding: 7px 10px; margin-bottom: 8px; border-radius: 10px; background: color-mix(in srgb, var(--sunken) 82%, transparent); }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-2); padding: 3px 0; }
.cc-row strong { font: 500 13px/1 var(--f-m); color: var(--ink); margin-left: auto; font-variant-numeric: tabular-nums; }
.cc-row em { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; min-width: 52px; text-align: center; }
.pass { background: var(--sunken); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.fail { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.cc-hint { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.dock { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 999px; --g-a: .62; }
[data-theme=dark] .dock { --g-a: .68; }
.dock > * { position: relative; z-index: 3; }
.pick-field { display: flex; align-items: center; gap: 8px; }
#pick { -webkit-appearance: none; appearance: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; box-shadow: none; }
#pick::-webkit-color-swatch-wrapper { padding: 0; }
#pick::-webkit-color-swatch { border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(12 12 16 / .14); }
#pick::-moz-color-swatch { border: 0; border-radius: 50%; }
#hex { width: 110px; height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .8); color: var(--ink); font: 500 14px/1 var(--f-m0); letter-spacing: .02em; text-transform: uppercase; box-shadow: inset 0 1px 2px rgb(12 12 16 / .1); transition: box-shadow .2s; }
[data-theme=dark] #hex { background: rgb(0 0 0 / .42); box-shadow: inset 0 1px 2px rgb(0 0 0 / .4); }
#hex:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--ring), 0 0 0 4px color-mix(in srgb, var(--p-500) 22%, transparent); }
#hex[aria-invalid=true] { box-shadow: inset 0 0 0 1.5px #C4262E; }
.pick-sep { width: 1px; height: 24px; background: rgb(12 12 16 / .14); }
[data-theme=dark] .pick-sep { background: rgb(255 255 255 / .16); }
.presets { display: flex; gap: 8px; }
.presets .dot::after { content: ""; position: absolute; inset: -3px; z-index: 5; border-radius: 50%; box-shadow: 0 0 0 2px var(--c); opacity: 0; pointer-events: none; }
.presets .dot.rip::after { animation: rip .7s var(--out); }
@keyframes rip { from { opacity: .75; transform: scale(.9); } to { opacity: 0; transform: scale(2.2); } }
.presets .dot[aria-pressed=true] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.presets.mini .dot { width: 24px; height: 24px; }

/* ---------- proof: five live token chips; numbers count up, each with its own micro-visual ---------- */
.proof { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: clamp(44px, 5vw, 72px); }
.tk { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 20px; border-radius: 24px; box-shadow: var(--sh-2); }
.tk-vis { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-bottom: 16px; overflow: hidden; }
.tk dt { font: var(--d-w) 46px/1 var(--f-d); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.tk-num { display: inline-block; min-width: 3ch; transition: opacity .3s; }
.js .proof:not(.in) .tk-num { opacity: 0; }
.tk dd { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.tk dd b { color: var(--ink); }
.tk .tk-vis > * { opacity: 0; translate: 0 6px; transition: opacity .4s var(--out), translate .55s var(--spring-s), scale .55s var(--spring-s); transition-delay: calc(var(--n) * 90ms + var(--i, 0) * 45ms + 120ms); }
.proof.in .tk .tk-vis > * { opacity: 1; translate: 0 0; }
.tv-ramp i { flex: 1; height: calc(16px + var(--i) * 1.8px); border-radius: 4px 4px 3px 3px; box-shadow: inset 0 0 0 1px rgb(12 12 16 / .05); transform-origin: 50% 100%; }
.tv-ramp i:nth-child(1) { background: var(--p-50); } .tv-ramp i:nth-child(2) { background: var(--p-100); } .tv-ramp i:nth-child(3) { background: var(--p-200); } .tv-ramp i:nth-child(4) { background: var(--p-300); } .tv-ramp i:nth-child(5) { background: var(--p-400); } .tv-ramp i:nth-child(6) { background: var(--p-500); } .tv-ramp i:nth-child(7) { background: var(--p-600); } .tv-ramp i:nth-child(8) { background: var(--p-700); } .tv-ramp i:nth-child(9) { background: var(--p-800); } .tv-ramp i:nth-child(10) { background: var(--p-900); } .tv-ramp i:nth-child(11) { background: var(--p-950); }
.tv-parts { align-items: center; gap: 7px; }
.tv-parts i { display: block; flex: none; }
.tv-parts i:nth-child(2) { --i: 1; } .tv-parts i:nth-child(3) { --i: 2; } .tv-parts i:nth-child(4) { --i: 3; } .tv-parts i:nth-child(5) { --i: 4; } .tv-parts i:nth-child(6) { --i: 5; }
.tp-btn { width: 34px; height: 16px; border-radius: 8px; background: var(--act); }
.tp-tog { position: relative; width: 26px; height: 15px; border-radius: 8px; background: var(--p-500); }
.tp-tog::after { content: ""; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #FFFFFF; }
.tp-chk { position: relative; width: 15px; height: 15px; border-radius: 4px; background: var(--p-600); }
.tp-chk::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #FFFFFF; border-width: 0 2px 2px 0; rotate: 45deg; }
.tp-in { width: 30px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--p-400); background: var(--surface); }
.tp-av { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--p-300), var(--w-300)); }
.tp-bdg { width: 22px; height: 12px; border-radius: 6px; background: var(--p-100); }
.tv-styles { align-items: center; gap: 4px; }
.tv-styles i { flex: 1; max-width: 18px; aspect-ratio: 1; display: block; border-radius: 5px; }
.tv-styles i:nth-child(n) { --i: 0; }
.tv-styles i:nth-child(2) { --i: 1; } .tv-styles i:nth-child(3) { --i: 2; } .tv-styles i:nth-child(4) { --i: 3; } .tv-styles i:nth-child(5) { --i: 4; } .tv-styles i:nth-child(6) { --i: 5; } .tv-styles i:nth-child(7) { --i: 6; } .tv-styles i:nth-child(8) { --i: 7; } .tv-styles i:nth-child(9) { --i: 8; } .tv-styles i:nth-child(10) { --i: 9; }
.tv-styles .s1 { background: var(--act); }
.tv-styles .s2 { box-shadow: inset 0 0 0 1.5px var(--act); }
.tv-styles .s3 { background: var(--p-100); }
.tv-styles .s4 { background: linear-gradient(135deg, var(--p-400), var(--p-700)); }
.tv-styles .s5 { background: linear-gradient(160deg, rgb(255 255 255 / .9), color-mix(in oklab, var(--p-200) 60%, white)); box-shadow: inset 0 0 0 1px var(--p-200), 0 2px 5px -1px rgb(30 24 40 / .25); }
.tv-styles .s6 { background: var(--p-600); border-radius: 0; }
.tv-styles .s7 { background: var(--p-500); border-radius: 50%; }
.tv-styles .s8 { box-shadow: inset 0 0 0 1.5px var(--p-500); background: repeating-linear-gradient(45deg, transparent 0 3px, color-mix(in oklab, var(--p-300) 50%, transparent) 3px 4px); }
.tv-styles .s9 { background: var(--p-50); box-shadow: inset 0 0 0 1.5px var(--p-500), inset 0 0 0 3.5px var(--surface), inset 0 0 0 5px var(--p-300); }
.tv-styles .s10 { background: var(--act); box-shadow: 3px 3px 0 var(--ink); }
.tv-presets { align-items: center; gap: 0; }
.tv-presets i { width: 24px; height: 24px; margin-right: -7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2.5px var(--surface); }
.tv-presets i:nth-child(2) { --i: 1; } .tv-presets i:nth-child(3) { --i: 2; } .tv-presets i:nth-child(4) { --i: 3; } .tv-presets i:nth-child(5) { --i: 4; } .tv-presets i:nth-child(6) { --i: 5; }
.tv-presets b { --i: 6; margin-left: 14px; font: 600 12.5px/1 var(--f-m0); color: var(--ink-2); }
.tv-code { align-items: center; gap: 5px; }
.tv-code i { position: relative; display: inline-grid; height: 22px; padding: 0 8px; border-radius: 7px; place-items: center; font: 500 11.5px/1 var(--f-m0); font-style: normal; color: var(--ink); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); }
.tv-code i:nth-child(2) { --i: 1; } .tv-code i:nth-child(3) { --i: 2; color: var(--accent); background: color-mix(in oklab, var(--p-500) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--p-500) 26%, transparent); }
.tv-cycle span { grid-area: 1 / 1; opacity: 0; animation: tv-cycle 8s infinite; }
.tv-cycle span:nth-child(2) { animation-delay: 2s; } .tv-cycle span:nth-child(3) { animation-delay: 4s; } .tv-cycle span:nth-child(4) { animation-delay: 6s; }
@keyframes tv-cycle { 0% { opacity: 0; translate: 0 5px; } 4%, 22% { opacity: 1; translate: 0 0; } 26%, 100% { opacity: 0; translate: 0 -5px; } }

/* ---------- the problem, then the answer ---------- */
.pa { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); align-items: stretch; }
.pa-card { display: flex; flex-direction: column; border-radius: 28px; box-shadow: var(--sh-2); overflow: hidden; }
.pa-arrow { align-self: center; justify-self: center; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 -14px; border-radius: 50%; color: var(--accent); background: var(--surface); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.pa-art { position: relative; display: grid; grid-template-columns: auto 44px minmax(0, 1fr); align-items: center; height: 236px; margin: 8px 8px 0; padding: 18px 18px 18px 16px; border-radius: 21px; }
.is-bad .pa-art { background: radial-gradient(80% 90% at 100% 0%, color-mix(in oklab, #E4572E 7%, transparent), transparent 70%), var(--sunken); }
.is-good .pa-art { background: radial-gradient(80% 90% at 100% 0%, color-mix(in oklab, var(--p-400) 14%, transparent), transparent 70%), var(--sunken); }
.src { display: grid; gap: 10px; }
.src-i { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px 0 8px; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); white-space: nowrap; }
.src-i .ic { color: var(--ink-2); }
.src-i code { margin-left: 2px; padding-left: 16px; position: relative; font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.src-i code::before { content: ""; position: absolute; left: 0; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 3px; background: var(--sc, var(--act)); }
.pa-wires { width: 44px; height: 150px; overflow: visible; }
.pa-wires path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.is-bad .pa-wires path { stroke: var(--ink-3); stroke-dasharray: 3 4; opacity: .7; }
.is-bad.in .pa-wires path { animation: dash-flow 1.2s linear infinite; }
.is-good .pa-wires path { stroke: color-mix(in oklab, var(--p-500) 45%, transparent); stroke-width: 1.5; }
.is-good .pa-wires path + path, .is-good .pa-wires path:first-child { stroke-dasharray: none; }
.pa-wires .pulse { stroke: var(--p-500); stroke-width: 2.5; }
.is-good.in .pa-wires path { stroke-dasharray: 18 82; animation: dash-pulse 2.4s var(--io) infinite; stroke: var(--p-500); stroke-width: 2; }
.is-good .pa-wires path:nth-child(2) { animation-delay: .15s; } .is-good .pa-wires path:nth-child(3) { animation-delay: .3s; }
@keyframes dash-flow { to { stroke-dashoffset: -14; } }
@keyframes dash-pulse { 0% { stroke-dashoffset: 100; } 70%, 100% { stroke-dashoffset: -18; } }
.app { position: relative; display: grid; gap: 10px; align-content: start; height: 176px; padding: 12px 14px; min-width: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.app-bar { display: flex; gap: 4px; } .app-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.app-h { width: 58%; height: 10px; border-radius: 5px; background: var(--ink); opacity: .85; }
.app-t { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.app-t.pale { display: grid; gap: 6px; padding: 2px 0; }
.app-t.pale i { display: block; height: 7px; border-radius: 4px; background: #DCD9E3; } .app-t.pale i + i { width: 70%; }
[data-theme=dark] .app-t.pale i { background: #2C2B34; }
.app-btns { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.app-btns i { display: inline-grid; place-items: center; white-space: nowrap; height: 26px; padding: 0 12px; border-radius: 8px; font: 600 12px/1 var(--f-b); font-style: normal; color: #FFFFFF; background: var(--act); }
.is-bad .app-btns .b1 { background: #4F46E5; height: 22px; border-radius: 3px; font-size: 11px; translate: 0 -3px; }
.is-bad .app-btns .b2 { background: #7C3AED; height: 30px; border-radius: 999px; padding: 0 16px; font-size: 13px; }
.is-bad .app-btns .b3 { background: #6D28D9; height: 24px; border-radius: 9px; translate: 0 4px; rotate: -2deg; }
.is-bad.in .app-btns i { animation: drift 3.2s var(--io) infinite alternate; }
.is-bad.in .app-btns .b2 { animation-delay: -1.1s; } .is-bad.in .app-btns .b3 { animation-delay: -2.2s; }
@keyframes drift { to { translate: 2px 2px; rotate: 1.5deg; } }
.app-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.app-row .app-t { flex: 1; min-width: 0; }
.flag { justify-self: start; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; flex: none; }
.flag .ic { width: 13px; height: 13px; }
.flag.bad { color: #8A1C08; background: #FFE4DB; }
[data-theme=dark] .flag.bad { color: #FFD5C8; background: #4A1D12; }
.flag.ok { color: var(--p-800); background: var(--p-100); }
[data-theme=dark] .flag.ok { color: var(--p-100); background: color-mix(in oklab, var(--p-500) 34%, var(--surface)); }
.is-good .app-btns i { width: 52px; }
.pa-copy { padding: 18px 24px 22px; }
.pa-copy h3 { display: flex; align-items: center; gap: 10px; }
.pa-k { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.pa-k.bad { color: #8A1C08; background: #FFE4DB; } [data-theme=dark] .pa-k.bad { color: #FFD5C8; background: #4A1D12; }
.pa-k.good { color: var(--on-act); background: var(--act); }
.pa-copy .ticks { margin-bottom: 0; }
.is-bad .ticks .ic { color: var(--ink-3); }


.sec-how { padding-top: clamp(84px, 9vw, 128px); }
.band-warm { position: relative; isolation: isolate; padding: 112px 0 124px; }
.band-warm::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; --pv: -30vw -60%;
  background: radial-gradient(55% 45% at 12% 40%, color-mix(in oklab, var(--k3) 60%, transparent), transparent 70%),
    repeating-conic-gradient(from 60deg at var(--pv), transparent 0deg, var(--rib-w) 3deg, transparent 8deg, transparent 30deg),
    repeating-conic-gradient(from 60deg at var(--pv), color-mix(in oklab, var(--k1) 70%, transparent) 0deg, transparent 10deg, transparent 18deg, color-mix(in oklab, var(--k2) 80%, transparent) 24deg, color-mix(in oklab, var(--k1) 70%, transparent) 30deg),
    var(--k0);
  -webkit-mask: linear-gradient(transparent, #000 120px, #000 calc(100% - 120px), transparent); mask: linear-gradient(transparent, #000 120px, #000 calc(100% - 120px), transparent); }
.band-warm .eyebrow { color: var(--ink); }
.band-warm .btn-text { color: var(--ink); }
[data-theme=dark] .band-warm .sec-head { position: relative; }
[data-theme=dark] .band-warm .sec-head::before { content: ""; position: absolute; inset: -44px -64px; z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--paper) 70%, transparent);
  -webkit-mask: radial-gradient(closest-side, #000 60%, transparent); mask: radial-gradient(closest-side, #000 60%, transparent); }
.rows { display: grid; gap: 72px; }
.row-step { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: 36px; align-items: center; }
.row-step.flip { grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr); }
.row-step.flip > .step { order: 2; }
@media (min-width: 901px) { .row-step.flip > .step { position: sticky; top: 110px; align-self: start; } }
.step { padding: 26px 28px 28px; border-radius: 30px; background: rgb(255 255 255 / .66); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .8), var(--sh-2); }
[data-theme=dark] .step { background: rgb(20 20 25 / .74); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07), var(--sh-2); }
.num { display: inline-block; margin-bottom: 16px; font: 500 13px/1 var(--f-m); color: var(--ink-2); padding: 6px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(12 12 16 / .14); }
[data-theme=dark] .num { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); }
.step h3 { font: var(--d-w) 25px/1.15 var(--f-d); letter-spacing: -.03em; margin-bottom: 10px; max-width: 15em; }
.step > p { color: var(--ink-2); font-size: 16px; }
.xp-stack { display: grid; gap: 20px; }

/* ---------- animated explainers: an HTML/SVG scene drawn from the real UI, sized in em (1em = 1/--cw of the stage),
   one shared clock per scene (--T), camera zoom via transform on .xp-cam, the cursor inside the camera like a screen
   recording. They run only while on screen; reduced motion freezes every scene on its result frame (--still) ---------- */
.xp { --T: 9s; --still: 7s; position: relative; border-radius: 26px; padding: 6px; box-shadow: var(--sh-2), 0 34px 60px -34px color-mix(in srgb, var(--p-500) 26%, transparent); }
.xp-stage { --cw: 64; position: relative; overflow: hidden; container-type: inline-size; aspect-ratio: 64 / 40; border-radius: 20px;
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in oklab, var(--p-100) 50%, var(--sunken)), var(--sunken) 62%); }
[data-theme=dark] .xp-stage { background: radial-gradient(120% 90% at 85% 0%, color-mix(in oklab, var(--p-500) 14%, var(--sunken)), var(--sunken) 62%); }
.xp-stage.tall { --cw: 40; aspect-ratio: 40 / 46; }
.xp-cv { position: absolute; inset: 0; font-size: calc(100cqw / var(--cw)); line-height: 1.3; }
.xp-cam { position: absolute; inset: 0; transform-origin: var(--zx) var(--zy); }
.xp-cv i { font-style: normal; }
.xp *, .xp *::before, .xp *::after { animation-duration: var(--T); animation-iteration-count: infinite; animation-timing-function: var(--io); animation-fill-mode: both; }
.js .xp:not(.run) *, .js .xp:not(.run) *::before, .js .xp:not(.run) *::after { animation-play-state: paused; }
.xp figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px 12px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.xp-steps { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.xp-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--sunken); counter-increment: xs; animation: xs-on var(--T) infinite both; }
.xp-steps li::before { content: counter(xs); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; color: #0C0C10; background: color-mix(in srgb, var(--w-100) 80%, white); }
[data-theme=dark] .xp-steps li::before { color: #F3F2EF; background: color-mix(in srgb, var(--w-500) 35%, var(--sunken)); }
.xp-steps li:nth-child(2) { animation-delay: calc(var(--T) / 3); } .xp-steps li:nth-child(3) { animation-delay: calc(var(--T) * 2 / 3); }
@keyframes xs-on { 0%, 31% { background: color-mix(in oklab, var(--p-500) 14%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--p-500) 30%, transparent); } 34%, 100% { background: var(--sunken); box-shadow: none; } }
/* window chrome shared by the scenes */
.xw { position: absolute; inset: 1.6em; border-radius: 1.2em; background: var(--surface); box-shadow: 0 .1em .2em rgb(30 24 40 / .06), 0 1.4em 3em -1.4em rgb(30 24 40 / .28), inset 0 0 0 1px var(--line); overflow: hidden; }
.xw-tb, .u-tb { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: .45em; height: 2.6em; padding: 0 1em; box-shadow: inset 0 -1px 0 var(--line); background: color-mix(in oklab, var(--sunken) 55%, var(--surface)); }
.xw-tb > i, .u-tb > i { width: .62em; height: .62em; border-radius: 50%; background: var(--line-2); }
.xw-url { margin: 0 auto; padding: .2em .9em; border-radius: 1em; font: 500 .95em/1.3 var(--f-m); color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.xp-cur { position: absolute; left: 0; top: 0; z-index: 9; width: 2.2em; height: 2.2em; pointer-events: none; }
.xp-cur svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 .15em .25em rgb(0 0 0 / .3)); }
.xp-cur path { fill: #0C0C10; stroke: #FFFFFF; stroke-width: 1.6; stroke-linejoin: round; }
.xp-cur::after { content: ""; position: absolute; left: -.9em; top: -.9em; width: 2em; height: 2em; border-radius: 50%; border: .18em solid var(--p-500); opacity: 0; }
.v1, .v2, .v3 { transition: none; }

/* (a) Generator: answer a question, the preview follows */
[data-xp=gen] .g-left { position: absolute; left: 0; top: 2.6em; bottom: 0; width: 22.6em; padding: 1.2em; box-shadow: inset -1px 0 0 var(--line); }
.g-hint { padding: .7em .9em; border-radius: .8em; font-size: 1.02em; line-height: 1.42; color: var(--ink-2); background: var(--sunken); }
.g-q { margin-top: .9em; padding: .9em; border-radius: .9em; box-shadow: inset 0 0 0 1px var(--line-2); }
.g-qh { display: flex; justify-content: space-between; font-size: .92em; color: var(--ink-2); }
.g-skip { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.g-prog { display: flex; gap: .3em; margin: .7em 0 .9em; }
.g-prog i { position: relative; flex: 1; height: .32em; border-radius: .2em; background: var(--line); overflow: hidden; }
.g-prog i:first-child { background: var(--ink); }
.g-prog .g-p2::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; animation-name: g-prog; }
@keyframes g-prog { 0%, 25% { scale: 0 1; } 33%, 90% { scale: 1 1; } 96%, 100% { scale: 0 1; } }
.g-title { display: block; margin-bottom: .7em; font: 700 1.32em/1.2 var(--f-d); letter-spacing: -.02em; color: var(--ink); }
.g-opt { position: relative; display: flex; align-items: center; gap: .7em; margin-bottom: .5em; padding: .5em .7em; border-radius: .7em; font-size: 1em; font-weight: 600; line-height: 1.25; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.g-opt > i { display: grid; place-items: center; flex: none; width: 1.75em; height: 1.75em; border-radius: .4em; font-size: .85em; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.g-opt small { display: block; font-size: .78em; font-weight: 400; color: var(--ink-2); }
.g-opt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: color-mix(in oklab, var(--p-500) 9%, transparent); box-shadow: inset 0 0 0 .15em var(--act); opacity: 0; }
.g-a::before { animation-name: g-a; } .g-b::before { animation-name: g-b; }
@keyframes g-a { 0%, 24% { opacity: 1; } 26%, 92% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes g-b { 0%, 24% { opacity: 0; } 26%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
.g-prev { position: absolute; left: 22.6em; right: 0; top: 2.6em; bottom: 0; padding: 1.2em; background: color-mix(in oklab, var(--paper) 70%, var(--surface)); }
.g-s1, .g-s2 { position: absolute; left: 1.2em; right: 1.2em; top: 1.2em; bottom: 4.8em; }
.g-s1 { display: grid; align-content: start; gap: .9em; animation-name: g-s1; }
@keyframes g-s1 { 0%, 27% { opacity: 1; translate: 0 0; } 33%, 90% { opacity: 0; translate: 0 -.8em; } 96%, 100% { opacity: 1; translate: 0 0; } }
.g-nav { display: flex; align-items: center; gap: .8em; height: 2.6em; padding: 0 .9em; border-radius: .7em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.g-nav i { width: 3.4em; height: .5em; border-radius: .3em; background: var(--line-2); }
.g-nav .g-logo { width: 1.3em; height: 1.3em; border-radius: .4em; background: var(--act); }
.g-nav .g-nb { width: 4.4em; height: 1.5em; margin-left: auto; border-radius: .5em; background: var(--act); }
.g-hero1 { width: 78%; height: 1.5em; margin-top: 1em; border-radius: .4em; background: var(--ink); opacity: .82; }
.g-hero2 { width: 56%; height: 1.5em; border-radius: .4em; background: var(--ink); opacity: .82; }
.g-cta { width: 8em; height: 2.2em; border-radius: .6em; background: var(--act); }
.g-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; margin-top: .4em; }
.g-feats i { height: 5.4em; border-radius: .7em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.g-feats i::before { content: ""; position: absolute; left: .8em; top: .8em; width: 1.5em; height: 1.5em; border-radius: .45em; background: var(--p-100); }
.g-s2 { display: grid; grid-template-columns: 8em 1fr 1fr 1fr; grid-template-rows: 6.2em 1fr; gap: .7em; opacity: 0; animation-name: g-s2; }
@keyframes g-s2 { 0%, 28% { opacity: 0; } 34%, 90% { opacity: 1; } 95%, 100% { opacity: 0; } }
.g-side { grid-row: 1 / span 2; display: grid; align-content: start; gap: .2em; padding: .6em; border-radius: .8em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.g-side i { padding: .45em .6em; border-radius: .5em; font-size: .92em; font-weight: 500; color: var(--ink-2); }
.g-side .on { color: var(--accent); background: color-mix(in oklab, var(--p-500) 10%, var(--surface)); font-weight: 600; }
.g-stat, .g-chart { position: relative; display: grid; align-content: start; gap: .1em; padding: .7em .8em; border-radius: .8em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); animation-name: g-rise; }
.g-stat small, .g-chart small { font-size: .86em; color: var(--ink-2); }
.g-stat b { font: 700 1.5em/1.2 var(--f-d); letter-spacing: -.02em; color: var(--ink); }
.g-stat em { justify-self: start; margin-top: .2em; padding: .1em .45em; border-radius: .4em; font-style: normal; font-size: .78em; font-weight: 600; color: var(--p-800); background: var(--p-100); }
[data-theme=dark] .g-stat em { color: var(--p-100); background: color-mix(in oklab, var(--p-500) 30%, var(--surface)); }
.st2 { animation-delay: .12s; } .st3 { animation-delay: .24s; } .g-chart { animation-delay: .36s; }
@keyframes g-rise { 0%, 30% { opacity: 0; translate: 0 1em; } 38%, 90% { opacity: 1; translate: 0 0; } 95%, 100% { opacity: 0; translate: 0 0; } }
.g-chart { grid-column: 2 / span 3; }
.g-up { position: absolute; right: .8em; top: .7em; padding: .1em .5em; border-radius: .5em; font-style: normal; font-size: .82em; font-weight: 600; color: var(--p-800); background: var(--p-100); }
[data-theme=dark] .g-up { color: var(--p-100); background: color-mix(in oklab, var(--p-500) 30%, var(--surface)); }
.g-bars { position: absolute; left: .9em; right: .9em; bottom: .8em; top: 2.6em; display: flex; align-items: flex-end; gap: .7em; }
.g-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: .35em .35em .15em .15em; background: var(--p-200); transform-origin: 50% 100%; animation-name: g-bar; }
.g-bars i:nth-child(odd) { background: var(--p-300); } .g-bars i:last-child { background: var(--act); }
.g-bars i:nth-child(2) { animation-delay: .05s; } .g-bars i:nth-child(3) { animation-delay: .1s; } .g-bars i:nth-child(4) { animation-delay: .15s; } .g-bars i:nth-child(5) { animation-delay: .2s; } .g-bars i:nth-child(6) { animation-delay: .25s; } .g-bars i:nth-child(7) { animation-delay: .3s; } .g-bars i:nth-child(8) { animation-delay: .35s; }
@keyframes g-bar { 0%, 44% { scale: 1 .12; } 56%, 92% { scale: 1 1; } 97%, 100% { scale: 1 .12; } }
.g-ramp { position: absolute; left: 1.2em; right: 1.2em; bottom: 1.1em; display: flex; align-items: center; gap: 0; height: 2.6em; padding: .4em; border-radius: .7em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.g-ramp i { flex: 1; height: 100%; max-width: 1.7em; }
.g-ramp i:first-child { border-radius: .35em 0 0 .35em; } .g-ramp i:nth-child(11) { border-radius: 0 .35em .35em 0; }
.g-ramp i:nth-child(1) { background: var(--p-50); } .g-ramp i:nth-child(2) { background: var(--p-100); } .g-ramp i:nth-child(3) { background: var(--p-200); } .g-ramp i:nth-child(4) { background: var(--p-300); } .g-ramp i:nth-child(5) { background: var(--p-400); } .g-ramp i:nth-child(6) { background: var(--p-500); } .g-ramp i:nth-child(7) { background: var(--p-600); } .g-ramp i:nth-child(8) { background: var(--p-700); } .g-ramp i:nth-child(9) { background: var(--p-800); } .g-ramp i:nth-child(10) { background: var(--p-900); } .g-ramp i:nth-child(11) { background: var(--p-950); }
.g-ramp span { margin-left: auto; padding-left: .8em; font-size: .9em; color: var(--ink-2); white-space: nowrap; }
.g-ramp code { padding: .1em .4em; border-radius: .3em; font-size: .92em; color: var(--ink); background: var(--sunken); }
[data-xp=gen] .xp-cam { animation-name: cam-gen; }
@keyframes cam-gen { 0%, 40% { scale: 1; } 50%, 72% { scale: 1.4; } 82%, 100% { scale: 1; } }
[data-xp=gen] .xp-cur { animation-name: cur-gen-m, cur-click; }
@keyframes cur-gen-m { 0%, 6% { translate: 50em 33em; } 22%, 30% { translate: 12em 22.8em; } 42%, 86% { translate: 47em 27em; } 100% { translate: 50em 33em; } }
@keyframes cur-click { 0%, 21% { scale: 1; } 23% { scale: .84; } 26%, 100% { scale: 1; } }
[data-xp=gen] .xp-cur::after { animation-name: rip-a; }
@keyframes rip-a { 0%, 22% { opacity: 0; scale: .3; } 23% { opacity: .9; scale: .4; } 30%, 100% { opacity: 0; scale: 2.2; } }

/* (b) Studio Colors: click a shade, edit it, the ramp follows */
[data-xp=colors] { --T: 9.5s; --still: 7.4s; }
.c-head { position: absolute; left: 1.6em; top: 3.7em; }
.c-head b { display: block; font: 700 1.55em/1.2 var(--f-d); letter-spacing: -.02em; color: var(--ink); }
.c-head small { font-size: .95em; color: var(--ink-2); }
.c-card { position: absolute; padding: .8em; border-radius: .9em; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }
.c-pri { left: 1.6em; top: 8.6em; width: 34em; }
.c-sec { left: 37.2em; top: 8.6em; width: 20.4em; box-shadow: inset 0 0 0 1px var(--line-2); }
.c-neu { left: 1.6em; top: 19.6em; width: 24em; box-shadow: inset 0 0 0 1px var(--line-2); }
.c-st { top: 19.6em; width: 9.6em; box-shadow: inset 0 0 0 1px var(--line-2); }
.c-err { left: 26.8em; } .c-warn { left: 37.6em; } .c-ok { left: 48.4em; }
.c-ramp.s { height: 5.2em; }
.c-st .c-name { font-size: 1em; }
.c-err .c-ramp i:nth-child(1) { background: #FFF0F3; } .c-err .c-ramp i:nth-child(2) { background: #FCA5B4; } .c-err .c-ramp i:nth-child(3) { background: #E11D48; } .c-err .c-ramp i:nth-child(4) { background: #9F1239; } .c-err .c-ramp i:nth-child(5) { background: #4C0519; }
.c-warn .c-ramp i:nth-child(1) { background: #FFF7ED; } .c-warn .c-ramp i:nth-child(2) { background: #FDBA74; } .c-warn .c-ramp i:nth-child(3) { background: #EA7C0C; } .c-warn .c-ramp i:nth-child(4) { background: #9A4A0C; } .c-warn .c-ramp i:nth-child(5) { background: #431D05; }
.c-ok .c-ramp i:nth-child(1) { background: #ECFDF5; } .c-ok .c-ramp i:nth-child(2) { background: #86E0BE; } .c-ok .c-ramp i:nth-child(3) { background: #0E9F6E; } .c-ok .c-ramp i:nth-child(4) { background: #05603F; } .c-ok .c-ramp i:nth-child(5) { background: #022C1D; }
.c-err .c-dot { background: #E11D48; } .c-warn .c-dot { background: #EA7C0C; } .c-ok .c-dot { background: #0E9F6E; }
.c-ramp { display: flex; height: 5.2em; border-radius: .6em; overflow: hidden; }
.c-ramp i { flex: 1; }
.c-pri .c-ramp:not(.c-new) i:nth-child(1), .c-new i:nth-child(1) { background: var(--p-50); } .c-pri .c-ramp:not(.c-new) i:nth-child(2) { background: var(--p-100); } .c-pri .c-ramp:not(.c-new) i:nth-child(3) { background: var(--p-200); } .c-pri .c-ramp:not(.c-new) i:nth-child(4) { background: var(--p-300); } .c-pri .c-ramp:not(.c-new) i:nth-child(5) { background: var(--p-400); } .c-pri .c-ramp:not(.c-new) i:nth-child(6) { background: var(--p-500); } .c-pri .c-ramp:not(.c-new) i:nth-child(7) { background: var(--p-600); } .c-pri .c-ramp:not(.c-new) i:nth-child(8) { background: var(--p-700); } .c-pri .c-ramp:not(.c-new) i:nth-child(9) { background: var(--p-800); } .c-pri .c-ramp:not(.c-new) i:nth-child(10) { background: var(--p-900); } .c-pri .c-ramp:not(.c-new) i:nth-child(11) { background: var(--p-950); }
.c-new { position: absolute; z-index: 2; left: .8em; right: .8em; top: .8em; }
.c-new i { opacity: 0; animation-name: c-new; }
.c-new i:nth-child(1) { background: oklch(from var(--p-50) l c calc(h - 42)); } .c-new i:nth-child(2) { background: oklch(from var(--p-100) l c calc(h - 42)); animation-delay: .04s; } .c-new i:nth-child(3) { background: oklch(from var(--p-200) l c calc(h - 42)); animation-delay: .08s; } .c-new i:nth-child(4) { background: oklch(from var(--p-300) l c calc(h - 42)); animation-delay: .12s; } .c-new i:nth-child(5) { background: oklch(from var(--p-400) l c calc(h - 42)); animation-delay: .16s; } .c-new i:nth-child(6) { background: oklch(from var(--p-500) l c calc(h - 42)); animation-delay: .2s; } .c-new i:nth-child(7) { background: oklch(from var(--p-600) l c calc(h - 42)); animation-delay: .24s; } .c-new i:nth-child(8) { background: oklch(from var(--p-700) l c calc(h - 42)); animation-delay: .28s; } .c-new i:nth-child(9) { background: oklch(from var(--p-800) l c calc(h - 42)); animation-delay: .32s; } .c-new i:nth-child(10) { background: oklch(from var(--p-900) l c calc(h - 42)); animation-delay: .36s; } .c-new i:nth-child(11) { background: oklch(from var(--p-950) l c calc(h - 42)); animation-delay: .4s; }
@keyframes c-new { 0%, 56% { opacity: 0; } 60%, 90% { opacity: 1; } 95%, 100% { opacity: 0; } }
.c-ramp.w i:nth-child(1) { background: var(--w-50); } .c-ramp.w i:nth-child(2) { background: var(--w-100); } .c-ramp.w i:nth-child(3) { background: var(--w-200); } .c-ramp.w i:nth-child(4) { background: var(--w-300); } .c-ramp.w i:nth-child(5) { background: var(--w-400); } .c-ramp.w i:nth-child(6) { background: var(--w-500); } .c-ramp.w i:nth-child(7) { background: var(--w-600); } .c-ramp.w i:nth-child(8) { background: var(--w-700); } .c-ramp.w i:nth-child(9) { background: var(--w-800); } .c-ramp.w i:nth-child(10) { background: var(--w-900); } .c-ramp.w i:nth-child(11) { background: var(--w-950); }
.c-ramp.n i:nth-child(1) { background: #FAFAFA; } .c-ramp.n i:nth-child(2) { background: #F1F1F3; } .c-ramp.n i:nth-child(3) { background: #E3E3E7; } .c-ramp.n i:nth-child(4) { background: #CDCDD3; } .c-ramp.n i:nth-child(5) { background: #A1A1AA; } .c-ramp.n i:nth-child(6) { background: #71717A; } .c-ramp.n i:nth-child(7) { background: #52525B; } .c-ramp.n i:nth-child(8) { background: #3F3F46; } .c-ramp.n i:nth-child(9) { background: #27272A; } .c-ramp.n i:nth-child(10) { background: #18181B; } .c-ramp.n i:nth-child(11) { background: #09090B; }
.c-500 { position: relative; z-index: 1; animation-name: c-500; }
@keyframes c-500 { 0%, 22% { box-shadow: none; } 24%, 56% { box-shadow: 0 0 0 .2em var(--surface), 0 0 0 .38em var(--ink); } 60%, 100% { box-shadow: none; } }
.c-name { display: flex; align-items: center; gap: .6em; margin-top: .7em; font-size: 1.15em; font-weight: 600; color: var(--ink); }
.c-dot { width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--p-600); }
.c-sec .c-dot { background: var(--w-400); } .c-neu .c-dot { background: #18181B; }
[data-theme=dark] .c-neu .c-dot { background: #A1A1AA; }
.c-name code { position: relative; display: inline-grid; margin-left: auto; font-size: .82em; font-weight: 500; color: var(--ink-2); }
.c-name code span, .c-hex span { grid-area: 1 / 1; }
.c-name .v1, .c-hex .v1 { animation-name: v-out; } .c-name .v2, .c-hex .v2 { opacity: 0; animation-name: v-in; }
@keyframes v-out { 0%, 52% { opacity: 1; } 55%, 92% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes v-in { 0%, 52% { opacity: 0; } 55%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
.c-pop { position: absolute; left: 13.4em; top: 15.4em; z-index: 3; display: grid; gap: .9em; width: 22.4em; padding: 1em; border-radius: 1em; background: var(--surface); box-shadow: 0 .2em .5em rgb(30 24 40 / .1), 0 1.6em 3.2em -1em rgb(30 24 40 / .35), inset 0 0 0 1px var(--line); transform-origin: 30% 0; opacity: 0; animation-name: c-pop; }
@keyframes c-pop { 0%, 24% { opacity: 0; scale: .92; translate: 0 -.6em; } 29%, 86% { opacity: 1; scale: 1; translate: 0 0; } 91%, 100% { opacity: 0; scale: .96; translate: 0 -.3em; } }
.c-pop-h { display: flex; align-items: center; gap: .7em; }
.c-pop-h b { display: block; font-size: 1.1em; color: var(--ink); } .c-pop-h small { font-size: .88em; color: var(--ink-2); }
.c-pop-sw { position: relative; width: 2.6em; height: 2.6em; border-radius: .6em; background: var(--p-500); overflow: hidden; }
.c-pop-sw::after { content: ""; position: absolute; inset: 0; background: oklch(from var(--p-500) l c calc(h - 42)); opacity: 0; animation-name: v-in; }
.c-hue { position: relative; height: 1.3em; border-radius: .7em; background: linear-gradient(90deg, oklch(.62 .2 30), oklch(.62 .2 90), oklch(.62 .2 150), oklch(.62 .2 210), oklch(.62 .2 270), oklch(.62 .2 330), oklch(.62 .2 390)); box-shadow: inset 0 0 0 1px rgb(12 12 16 / .1); }
.c-knob { position: absolute; left: 68%; top: 50%; width: 1.7em; height: 1.7em; margin: -.85em 0 0 -.85em; border-radius: 50%; background: #FFFFFF; box-shadow: 0 .1em .3em rgb(0 0 0 / .35), inset 0 0 0 .3em var(--p-500); animation-name: c-knob; }
@keyframes c-knob { 0%, 40% { translate: 0 0; } 54%, 88% { translate: -4.6em 0; } 92%, 100% { translate: 0 0; } }
.c-hex { display: grid; height: 2.4em; padding: 0 .8em; align-items: center; border-radius: .6em; font: 500 1em/1 var(--f-m); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.c-done { position: absolute; z-index: 4; left: 13.4em; top: 28.4em; display: inline-flex; align-items: center; gap: .6em; padding: .6em 1em .6em .7em; border-radius: 1em; font-size: 1em; line-height: 1.25; font-weight: 600; color: var(--on-act); background: var(--act); box-shadow: 0 .8em 1.6em -.6em color-mix(in oklab, var(--act) 60%, transparent); opacity: 0; animation-name: c-done; }
.c-done small { display: block; font-size: .8em; font-weight: 500; opacity: .92; }
@keyframes c-done { 0%, 62% { opacity: 0; translate: 0 .6em; } 66%, 88% { opacity: 1; translate: 0 0; } 92%, 100% { opacity: 0; translate: 0 0; } }
[data-xp=colors] .xp-cam { animation-name: cam-col; }
@keyframes cam-col { 0%, 30% { scale: 1; } 40%, 72% { scale: 1.55; } 82%, 100% { scale: 1; } }
[data-xp=colors] .xp-cur { animation-name: cur-col-m, cur-click-b; }
@keyframes cur-col-m { 0%, 6% { translate: 52em 33em; } 20%, 26% { translate: 18.4em 13.6em; } 38%, 40% { translate: 31.8em 22.6em; } 54%, 84% { translate: 27.2em 22.6em; } 100% { translate: 52em 33em; } }
@keyframes cur-click-b { 0%, 21% { scale: 1; } 23% { scale: .84; } 26%, 39% { scale: 1; } 41%, 54% { scale: .9; } 56%, 100% { scale: 1; } }
[data-xp=colors] .xp-cur::after { animation-name: rip-b; }
@keyframes rip-b { 0%, 22% { opacity: 0; scale: .3; } 23% { opacity: .9; scale: .4; } 30%, 100% { opacity: 0; scale: 2.2; } }

/* (c) Studio Components: Sharp -> Pill -> Rounded, every part morphs */
[data-xp=shape] { --T: 10s; --still: 5.6s; }
[data-xp=shape] .xw { animation-name: shape-r; }
@keyframes shape-r { 0%, 17% { --xr: .8em; } 22%, 43% { --xr: .12em; } 50%, 81% { --xr: 2.4em; } 87%, 100% { --xr: .8em; } }
.s-bar { position: absolute; left: 0; right: 0; top: 2.6em; display: flex; align-items: center; gap: .8em; height: 4.6em; padding: 0 1.4em; box-shadow: inset 0 -1px 0 var(--line); }
.s-lbl { font-size: .82em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.s-sel { padding: .5em .9em; border-radius: .6em; font-size: 1em; font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.s-bar .s-lbl:nth-of-type(2) { margin-left: .8em; padding-left: 1em; box-shadow: inset 1px 0 0 var(--line); }
.s-seg { position: relative; display: flex; gap: .3em; padding: .3em; border-radius: .8em; background: var(--sunken); }
.s-o { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .45em; width: 7.4em; height: 2.6em; justify-content: center; border-radius: .6em; font-size: .98em; font-weight: 600; color: var(--ink-2); }
.s-o > i { width: 1.2em; height: .8em; border: .14em solid currentColor; }
.sh-sharp { border-radius: 0; } .sh-round { border-radius: .25em; } .sh-pill { border-radius: 1em; }
.s-hl { position: absolute; left: .3em; top: .3em; width: 7.4em; height: 2.6em; border-radius: .6em; background: var(--surface); box-shadow: 0 .1em .3em rgb(30 24 40 / .14), inset 0 0 0 .14em var(--act); animation-name: s-hl; }
@keyframes s-hl { 0%, 16% { translate: 7.7em 0; } 21%, 42% { translate: 0 0; } 47%, 80% { translate: 15.4em 0; } 85%, 100% { translate: 7.7em 0; } }
.s-grid { position: absolute; left: 1.4em; right: 1.4em; top: 8.6em; bottom: 1.2em; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .9em; }
.s-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em; padding: 2.2em 1em 1em; border-radius: min(calc(var(--xr) * 1.3), 1.6em); background: color-mix(in oklab, var(--paper) 60%, var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
.s-ct { position: absolute; left: 1em; top: .8em; font-size: .9em; font-weight: 600; color: var(--ink-2); }
.x-btn.sm { height: 2.4em; padding: 0 1em; font-size: .92em; }
.x-card { display: grid; justify-items: start; gap: .2em; width: 13em; padding: .9em 1em; border-radius: min(calc(var(--xr) * 1.2), 1.4em); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 .6em 1.2em -.8em rgb(30 24 40 / .3); }
.x-card b { font-size: 1.05em; color: var(--ink); } .x-card small { font-size: .82em; color: var(--ink-2); margin-bottom: .4em; }
.x-tabs { display: flex; padding: .3em; gap: .2em; border-radius: calc(var(--xr) + .2em); background: var(--sunken); }
.x-tabs i { display: grid; place-items: center; height: 2.3em; padding: 0 .9em; border-radius: var(--xr); font-size: .92em; font-weight: 600; color: var(--ink-2); }
.x-tabs .on { color: var(--accent); background: var(--surface); box-shadow: 0 .1em .25em rgb(30 24 40 / .15); }
.x-av { width: 2.6em; height: 2.6em; border-radius: min(var(--xr), 1.3em); background: linear-gradient(135deg, var(--p-300), var(--w-300)); }
.x-chip { display: inline-grid; place-items: center; height: 2.1em; padding: 0 .8em; border-radius: calc(var(--xr) * .8); font-size: .88em; font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.x-chip.soft { color: var(--p-800); background: var(--p-100); box-shadow: none; }
[data-theme=dark] .x-chip.soft { color: var(--p-100); background: color-mix(in oklab, var(--p-500) 30%, var(--surface)); }
.s-row { display: flex; align-items: center; gap: .6em; }
.x-btn { display: inline-grid; place-items: center; height: 3em; padding: 0 1.3em; border-radius: var(--xr); font-size: 1.05em; font-weight: 600; color: var(--on-act); background: var(--act); }
.x-btn.ghost { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.x-in { display: flex; align-items: center; width: 100%; height: 3em; padding: 0 1em; border-radius: var(--xr); font-size: 1em; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 .14em var(--p-500), 0 0 0 .3em color-mix(in oklab, var(--p-500) 18%, transparent); }
.x-bdg { display: inline-grid; place-items: center; height: 2.1em; padding: 0 .9em; border-radius: calc(var(--xr) * .8); font-size: .9em; font-weight: 600; color: var(--on-act); background: var(--act); }
.x-bdg.soft { color: var(--p-800); background: var(--p-100); }
[data-theme=dark] .x-bdg.soft { color: var(--p-100); background: color-mix(in oklab, var(--p-500) 30%, var(--surface)); }
.x-sw { position: relative; width: 3.6em; height: 2em; border-radius: var(--xr); background: var(--act); }
.x-sw b { position: absolute; right: .25em; top: .25em; width: 1.5em; height: 1.5em; border-radius: calc(var(--xr) * .7); background: #FFFFFF; }
[data-xp=shape] .xp-cam { animation-name: cam-shape; }
@keyframes cam-shape { 0%, 24% { scale: 1; } 32%, 64% { scale: 1.45; } 72%, 100% { scale: 1; } }
[data-xp=shape] .xp-cur { animation-name: cur-shape-m, cur-click-c; }
@keyframes cur-shape-m { 0%, 6% { translate: 52em 34em; } 16%, 26% { translate: 21.6em 6.2em; } 40%, 46% { translate: 37em 6.2em; } 58%, 72% { translate: 33em 15em; } 78%, 84% { translate: 29.3em 6.2em; } 100% { translate: 52em 34em; } }
@keyframes cur-click-c { 0%, 17% { scale: 1; } 18.5% { scale: .84; } 21%, 42% { scale: 1; } 43.5% { scale: .84; } 46%, 80% { scale: 1; } 81.5% { scale: .84; } 84%, 100% { scale: 1; } }
[data-xp=shape] .xp-cur::after { animation-name: rip-c; }
@keyframes rip-c { 0%, 17.5% { opacity: 0; scale: .3; } 18.5% { opacity: .9; scale: .4; } 24%, 42.5% { opacity: 0; scale: 2.2; } 43.5% { opacity: .9; scale: .4; } 49%, 80.5% { opacity: 0; scale: 2.2; } 81.5% { opacity: .9; scale: .4; } 87%, 100% { opacity: 0; scale: 2.2; } }

/* (d) Use it: copy the CLI, the terminal runs, the app opens on brand */
[data-xp=use] { --T: 10s; --still: 8s; }
.u-doc { position: absolute; left: 2em; top: 2.4em; width: 34em; padding: 1.2em 1.3em; border-radius: 1.1em; background: var(--surface); box-shadow: 0 1.4em 3em -1.4em rgb(30 24 40 / .28), inset 0 0 0 1px var(--line); }
.u-doc > b { display: block; font: 700 1.45em/1.2 var(--f-d); letter-spacing: -.02em; color: var(--ink); }
.u-doc > small { display: block; margin: .2em 0 .9em; font-size: .95em; color: var(--ink-2); }
.u-cmd { display: flex; align-items: center; gap: .6em; height: 3.2em; padding: 0 .4em 0 1em; border-radius: .8em; background: #111116; color: #E8E6EF; }
.u-cmd code { flex: 1; font-size: .98em; white-space: nowrap; overflow: hidden; }
.u-cmd .pr, .u-term .pr { color: var(--p-300); font-style: normal; }
.u-copy { display: grid; height: 2.4em; padding: 0 .9em; border-radius: .6em; align-items: center; font-size: .92em; font-weight: 600; color: #F3F2EF; background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.u-copy span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .35em; }
.u-copy .ic { width: 1.2em; height: 1.2em; }
.u-copy .v1 { animation-name: u-v1; } .u-copy .v2 { opacity: 0; animation-name: u-v2; }
@keyframes u-v1 { 0%, 19% { opacity: 1; } 21%, 92% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes u-v2 { 0%, 19% { opacity: 0; } 21%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
.u-term { position: absolute; left: 6em; top: 12.8em; width: 36em; height: 23.6em; padding: 3.6em 1.2em 1em; border-radius: 1.1em; background: #111116; color: #E8E6EF; font: 400 1em/1.85 var(--f-m); box-shadow: 0 1.6em 3.2em -1.2em rgb(0 0 0 / .45); opacity: 0; animation-name: u-term; }
@keyframes u-term { 0%, 22% { opacity: 0; translate: 0 2em; } 28%, 90% { opacity: 1; translate: 0 0; } 95%, 100% { opacity: 0; translate: 0 0; } }
.u-tb { background: rgb(255 255 255 / .04); box-shadow: inset 0 -1px 0 rgb(255 255 255 / .08); color: #C3C2CB; font: 500 .9em/1 var(--f-b); }
.u-tb > i { background: rgb(255 255 255 / .2); }
.u-tb > span { margin: 0 auto; }
.u-tb.light { background: color-mix(in oklab, var(--sunken) 55%, var(--surface)); box-shadow: inset 0 -1px 0 var(--line); color: var(--ink-2); }
.u-tb.light > i { background: var(--line-2); }
.u-l { display: block; white-space: nowrap; }
.u-type { display: inline-block; vertical-align: bottom; clip-path: inset(0 100% 0 0); animation-name: u-type; animation-timing-function: steps(34, end); }
@keyframes u-type { 0%, 29% { clip-path: inset(0 100% 0 0); } 42%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
.u-term .ok { color: var(--p-300); font-style: normal; }
.u-l.l1, .u-l.l2, .u-l.l3, .u-l.l4 { opacity: 0; animation-name: u-line; }
.u-l.l2 { animation-delay: .35s; } .u-l.l3 { animation-delay: .7s; } .u-l.l4 { animation-delay: 1.05s; }
@keyframes u-line { 0%, 45% { opacity: 0; translate: 0 .4em; } 47%, 90% { opacity: 1; translate: 0 0; } 94%, 100% { opacity: 0; translate: 0 0; } }
.u-done { margin-top: .5em; color: #FFFFFF; font-weight: 500; }
.u-app { position: absolute; left: 31em; top: 4.6em; width: 31em; height: 30.4em; padding: 3.6em 1.4em 1.2em; border-radius: 1.1em; overflow: hidden; background: var(--surface); box-shadow: 0 .2em .5em rgb(30 24 40 / .08), 0 2em 4em -1.6em rgb(30 24 40 / .4), inset 0 0 0 1px var(--line); opacity: 0; animation-name: u-app; }
@keyframes u-app { 0%, 58% { opacity: 0; translate: 3em 0; scale: .96; } 66%, 90% { opacity: 1; translate: 0 0; scale: 1; } 95%, 100% { opacity: 0; translate: 0 0; scale: 1; } }
.u-nav { display: flex; align-items: center; gap: .8em; margin-bottom: 1.6em; }
.u-nav i { width: 3em; height: .5em; border-radius: .3em; background: var(--line-2); }
.u-nav .u-logo { width: 1.6em; height: 1.6em; border-radius: .5em; background: linear-gradient(135deg, var(--p-400), var(--p-700)); }
.u-nav .u-nb { display: inline-grid; place-items: center; width: auto; height: 2em; margin-left: auto; padding: 0 .9em; border-radius: .6em; font-size: .88em; font-weight: 600; color: var(--on-act); background: var(--act); }
.u-h { display: block; font: 700 2em/1.12 var(--f-d); letter-spacing: -.03em; color: var(--ink); max-width: 11em; }
.u-p { display: block; width: 90%; height: .6em; margin-top: 1em; border-radius: .3em; background: var(--line); } .u-p.s { width: 64%; margin-top: .5em; }
.u-row { display: flex; gap: .7em; margin: 1.4em 0; }
.u-btn { display: inline-grid; place-items: center; height: 2.8em; padding: 0 1.2em; border-radius: .7em; font-size: 1em; font-weight: 600; color: var(--on-act); background: var(--act); }
.u-btn.soft { color: var(--p-800); background: var(--p-100); }
[data-theme=dark] .u-btn.soft { color: var(--p-100); background: color-mix(in oklab, var(--p-500) 30%, var(--surface)); }
.u-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }
.u-cards i { height: 6.4em; padding: .8em; border-radius: .8em; background: color-mix(in oklab, var(--p-500) 7%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--p-500) 18%, var(--line)); }
.u-cards b { display: block; width: 1.8em; height: 1.8em; border-radius: .5em; background: var(--p-200); }
.u-cards i:nth-child(2) b { background: var(--p-400); } .u-cards i:nth-child(3) b { background: var(--p-600); }
[data-xp=use] .xp-cam { animation-name: cam-use; }
@keyframes cam-use { 0%, 68% { scale: 1; } 76%, 87% { scale: 1.35; } 94%, 100% { scale: 1; } }
[data-xp=use] .xp-cur { animation-name: cur-use-m, cur-click-d; }
@keyframes cur-use-m { 0%, 6% { translate: 52em 36em; } 17%, 22% { translate: 31.9em 9.3em; } 32%, 60% { translate: 50em 30em; } 70%, 88% { translate: 44em 22.6em; } 100% { translate: 52em 36em; } }
@keyframes cur-click-d { 0%, 18% { scale: 1; } 20% { scale: .84; } 23%, 100% { scale: 1; } }
[data-xp=use] .xp-cur::after { animation-name: rip-d; }
@keyframes rip-d { 0%, 19% { opacity: 0; scale: .3; } 20% { opacity: .9; scale: .4; } 27%, 100% { opacity: 0; scale: 2.2; } }

/* (e) Figma: plugin -> Generate -> variables appear */
[data-xp=figma] { --T: 10s; --still: 7.2s; }
.f-ui { position: absolute; inset: 0; background: #E6E6E6; }
[data-theme=dark] .f-ui { background: #1E1E1E; }
.f-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: .8em; height: 3em; padding: 0 1em; background: #2C2C2C; color: #FFFFFF; font-size: .95em; font-weight: 500; }
.f-fig { width: 1.1em; height: 1.6em; border-radius: .3em; background: conic-gradient(from 0deg, #F24E1E 0 25%, #A259FF 0 50%, #1ABCFE 0 75%, #0ACF83 0); }
.f-share { margin-left: auto; padding: .3em .8em; border-radius: .4em; font-size: .9em; font-weight: 600; color: #FFFFFF; background: #0C8CE9; }
.f-layers { position: absolute; left: 0; top: 3em; bottom: 0; width: 9em; display: grid; align-content: start; gap: .2em; padding: .8em .6em; background: var(--surface); box-shadow: inset -1px 0 0 var(--line); }
.f-layers small { padding: 0 .4em .4em; font-size: .82em; font-weight: 600; color: var(--ink-2); }
.f-layers i { padding: .35em .5em; border-radius: .35em; font-size: .86em; color: var(--ink-2); }
.f-layers .on { color: var(--ink); background: color-mix(in oklab, #0C8CE9 14%, var(--surface)); }
.f-canvas { position: absolute; left: 9em; right: 0; top: 3em; bottom: 0; background: radial-gradient(circle, rgb(0 0 0 / .12) 1px, transparent 1.4px) 0 0 / 1.4em 1.4em; }
[data-theme=dark] .f-canvas { background: radial-gradient(circle, rgb(255 255 255 / .12) 1px, transparent 1.4px) 0 0 / 1.4em 1.4em; }
.f-frame { position: absolute; left: 4em; top: 3.4em; width: 20em; height: 7.6em; background: var(--surface); box-shadow: 0 .1em .3em rgb(0 0 0 / .1); display: grid; place-items: center; }
.f-frame small { position: absolute; left: 0; top: -1.6em; font-size: .8em; color: #555; }
[data-theme=dark] .f-frame small { color: #AAA; }
.f-btn { display: inline-grid; place-items: center; height: 2.8em; padding: 0 1.3em; border-radius: .7em; font-size: 1em; font-weight: 600; color: var(--on-act); background: var(--act); opacity: 0; animation-name: f-btn; }
@keyframes f-btn { 0%, 60% { opacity: 0; scale: .6; } 66%, 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: 1; } }
.f-plug { position: absolute; left: 12.2em; top: 14.6em; width: 25.6em; display: grid; gap: .7em; padding: 0 1em 1em; border-radius: .9em; overflow: hidden; background: var(--surface); box-shadow: 0 .2em .6em rgb(0 0 0 / .12), 0 1.6em 3em -1.2em rgb(0 0 0 / .4); }
.f-ph { display: flex; align-items: center; gap: .5em; height: 2.8em; margin: 0 -1em; padding: 0 1em; font-size: .9em; font-weight: 600; color: var(--ink); box-shadow: inset 0 -1px 0 var(--line); }
.f-ph img { width: 1.5em; height: 1.5em; border-radius: .35em; }
.f-field { display: flex; align-items: center; gap: .6em; height: 2.6em; padding: 0 .8em; border-radius: .55em; font-size: .95em; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.f-field small { color: var(--ink-2); margin-right: auto; }
.f-field code { font-size: .95em; }
.f-sw { width: 1.4em; height: 1.4em; border-radius: .35em; background: var(--p-500); }
.f-gen { display: grid; height: 2.9em; place-items: center; border-radius: .6em; font-size: 1em; font-weight: 600; color: var(--on-act); background: var(--act); }
.f-gen > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .5em; }
.f-gen .v1 { animation-name: f-v1; } .f-gen .v2 { opacity: 0; animation-name: f-v2; } .f-gen .v3 { opacity: 0; animation-name: f-v3; }
@keyframes f-v1 { 0%, 19.5% { opacity: 1; } 20%, 93% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes f-v2 { 0%, 20% { opacity: 0; } 21%, 38% { opacity: 1; } 39%, 100% { opacity: 0; } }
@keyframes f-v3 { 0%, 38% { opacity: 0; } 40%, 92% { opacity: 1; } 95%, 100% { opacity: 0; } }
.f-spin { width: 1em; height: 1em; border-radius: 50%; border: .15em solid rgb(255 255 255 / .35); border-top-color: #FFFFFF; animation: spin .7s linear infinite !important; }
@keyframes spin { to { rotate: 360deg; } }
.f-vars { position: absolute; left: 10.2em; right: 1em; top: 28.4em; bottom: 1em; padding: 0 0 .6em; border-radius: .9em; overflow: hidden; background: var(--surface); box-shadow: 0 .2em .6em rgb(0 0 0 / .1), 0 1.4em 2.6em -1.2em rgb(0 0 0 / .35); opacity: 0; animation-name: f-vars; }
@keyframes f-vars { 0%, 38% { opacity: 0; translate: 0 2em; } 43%, 92% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; translate: 0 0; } }
.f-vh { display: flex; align-items: center; gap: 1em; height: 2.8em; padding: 0 1em; box-shadow: inset 0 -1px 0 var(--line); }
.f-vh b { font-size: .95em; color: var(--ink); }
.f-tabs { display: flex; gap: .3em; margin-left: auto; }
.f-tabs i { padding: .2em .6em; border-radius: .4em; font-size: .8em; color: var(--ink-2); }
.f-tabs .on { color: var(--ink); background: var(--sunken); font-weight: 600; }
.f-row { display: flex; align-items: center; gap: .7em; height: 2.05em; padding: 0 1em; font: 500 .9em/1 var(--f-m); color: var(--ink); box-shadow: inset 0 -1px 0 var(--line); opacity: 0; animation-name: f-row; }
.f-row i { width: 1.2em; height: 1.2em; border-radius: .3em; box-shadow: inset 0 0 0 1px rgb(12 12 16 / .1); }
.f-row code { margin-left: auto; font-size: .95em; color: var(--ink-2); }
.f-row.r2 { animation-delay: .1s; } .f-row.r3 { animation-delay: .2s; } .f-row.r4 { animation-delay: .3s; } .f-row.r5 { animation-delay: .4s; } .f-row.r6 { animation-delay: .5s; } .f-row.r7 { animation-delay: .6s; }
@keyframes f-row { 0%, 44% { opacity: 0; translate: -.8em 0; } 48%, 92% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; translate: 0 0; } }
[data-xp=figma] .xp-cam { animation-name: cam-fig; }
@keyframes cam-fig { 0%, 44% { scale: 1; } 54%, 72% { scale: 1.4; } 82%, 100% { scale: 1; } }
[data-xp=figma] .xp-cur { animation-name: cur-fig-m, cur-click-e; }
@keyframes cur-fig-m { 0%, 6% { translate: 33em 42em; } 17%, 22% { translate: 26em 26.8em; } 32%, 88% { translate: 36em 12em; } 100% { translate: 33em 42em; } }
@keyframes cur-click-e { 0%, 18% { scale: 1; } 20% { scale: .84; } 23%, 100% { scale: 1; } }
[data-xp=figma] .xp-cur::after { animation-name: rip-d; }

/* ---------- where: the sync wire, then Figma, code and the agent chat ---------- */
.sync { position: relative; }
.wire { display: block; overflow: visible; margin-bottom: 10px; }
.wire-path { fill: none; stroke: url(#wire-grad); stroke-width: 2.5; stroke-linecap: round; }
.ws1 { stop-color: var(--p-400); } .ws2 { stop-color: var(--w-300); } .ws3 { stop-color: var(--p-500); }
.wire-nodes circle { fill: var(--surface); stroke: var(--p-500); stroke-width: 2; }
.wd { fill: var(--w-500); stroke: var(--surface); stroke-width: 1.5; opacity: 0; transition: opacity .3s; }
.wire.on .wd { opacity: 1; }
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.place { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.place-h { display: flex; gap: 16px; padding: 0 4px; }
.place-h h3 { margin: 2px 0 4px; }
.place-h p { font-size: 16px; color: var(--ink-2); }
.code, .chat { height: 486px; border-radius: 24px; overflow: hidden; box-shadow: var(--sh-2); }
.code { --edge-bg: #111116; display: flex; flex-direction: column; color: #E8E6EF; }
.code-tabs { display: flex; gap: 18px; height: 46px; padding: 0 16px; flex: none; box-shadow: inset 0 -1px 0 rgb(255 255 255 / .08); }
.code-tabs .btn-text { height: 46px; font-size: 13.5px; font-weight: 500; color: #C3C2CB; --ring: var(--p-300); }
.code-tabs .btn-text[aria-selected=true] { color: #FFFFFF; }
.code-p { flex: 1; overflow: auto; padding: 18px 18px; }
.code-p:focus-visible { outline-offset: -3px; }
.code-p pre { margin: 0; font: 400 13px/1.85 var(--f-m); white-space: pre; }
.code-p code { font-size: inherit; }
.code-p .k { color: #F3A6C2; } .code-p .v { color: #9CC8FF; } .code-p .c { color: #A9A6B4; }
.code-p i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
.code-p [data-hex] { transition: color .3s; }
.code.flash [data-hex] { animation: flash 1.1s var(--out); }
@keyframes flash { 0% { color: #FFFFFF; background: color-mix(in oklab, var(--p-500) 45%, transparent); } 100% { background: transparent; } }
.chat { --edge-bg: var(--surface); display: flex; flex-direction: column; }
.chat-bar { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; flex: none; font-size: 13.5px; font-weight: 600; color: var(--ink); box-shadow: inset 0 -1px 0 var(--line); }
.chat-av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--accent); background: color-mix(in oklab, var(--p-500) 10%, var(--surface)); }
.chat-st { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font: 500 12px/1 var(--f-m); color: var(--ink-2); }
.chat-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--w-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--w-300) 40%, transparent); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow: hidden; }
.msg { font-size: 14px; line-height: 1.45; }
.msg.me { align-self: flex-end; max-width: 86%; padding: 9px 13px; border-radius: 16px 16px 5px 16px; background: var(--btn-ink); color: var(--btn-ink-t); }
.call { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 9px 11px; border-radius: 14px; font-size: 13px; color: var(--ink); background: color-mix(in oklab, var(--p-500) 6%, var(--sunken)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--p-300) 30%, transparent); }
.call > .ic { color: var(--accent); }
.call > code { font-weight: 500; font-size: 12.5px; }
.call-st { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.args { flex-basis: 100%; font: 400 12px/1.5 var(--f-m); color: var(--ink-2); }
.args code { font-size: inherit; }
.msg.ai p { color: var(--ink); }
.chat-toks { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.chat-toks li { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 5px; border-radius: 999px; font: 500 11.5px/1 var(--f-m); color: var(--ink-2); background: var(--sunken); }
.chat-toks i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(12 12 16 / .1); }
.chat-toks i.r { border-radius: 5px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.chat-toks code { font-size: inherit; color: var(--ink); }
.chat-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in oklab, var(--p-500) 6%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--p-300) 35%, transparent); }
.cc-k { font-size: 12.5px; color: var(--ink-2); }
.chat-card b { grid-row: 2; font: var(--d-w) 26px/1 var(--f-d); letter-spacing: -.03em; color: var(--ink); }
.d-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--p-100); color: var(--p-800); grid-column: 1 / -1; justify-self: start; }
[data-theme=dark] .d-badge { background: color-mix(in oklab, var(--p-500) 26%, var(--surface)); color: var(--p-100); }
.d-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.d-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--on-act); background: var(--act); grid-column: 2; grid-row: 1 / span 2; }
.live.wait :is(.call, .msg, .chat-toks, .chat-card):not(.on) { opacity: 0; transform: translateY(6px); }
.live .call, .live .msg, .live .chat-toks, .live .chat-card { transition: opacity .4s var(--out), transform .5s var(--out); }
.live .call.run .call-st .ic { animation: spin .8s linear infinite; }
.live .call.run .call-st span::after { content: "…"; }
.t-type::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: currentColor; opacity: 0; }
.t-type.typing::after { opacity: .8; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- from the fan to real parts: twelve components, each animated, all drawn from the live ramp ---------- */
.parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.part { --edge-bg: var(--surface); display: flex; flex-direction: column; min-width: 0; border-radius: 24px; box-shadow: var(--sh-1); }
.part-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 16px 0; }
.part-h b { font-size: 15px; font-weight: 600; }
.part-h code { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part-s { display: grid; place-items: center; height: 150px; margin: 10px; border-radius: 16px; background: color-mix(in oklab, var(--paper) 70%, var(--surface)); overflow: hidden; }
[data-theme=dark] .part-s { background: color-mix(in oklab, var(--paper) 60%, var(--surface)); }
.part-s i { font-style: normal; }
.parts * { animation-play-state: paused; }
.parts.run * { animation-play-state: running; }
.pb { display: inline-grid; place-items: center; height: 40px; padding: 0 17px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--on-act); background: var(--act); box-shadow: 0 1px 2px rgb(30 22 10 / .12); }
.pb.soft { color: var(--p-800); background: color-mix(in oklab, var(--p-100) 80%, var(--surface)); box-shadow: none; }
[data-theme=dark] .pb.soft { color: var(--p-100); background: color-mix(in oklab, var(--p-500) 24%, var(--surface)); }
.pb.sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.pt-btns { display: flex; gap: 8px; }
.pt-btns .pb:first-child { animation: pt-press 3.2s var(--io) infinite; }
@keyframes pt-press { 0%, 60% { scale: 1; filter: none; } 66% { scale: .95; filter: brightness(1.12); } 74%, 100% { scale: 1; filter: none; } }
.pt-field { display: grid; gap: 6px; width: min(100%, 220px); }
.pt-field small { font-size: 13px; font-weight: 600; color: var(--ink); }
.pt-in { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 11px; font-size: 14px; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--p-500), 0 0 0 4px color-mix(in srgb, var(--p-500) 18%, transparent); }
.pt-typed { display: inline-block; overflow: hidden; white-space: nowrap; clip-path: inset(0 100% 0 0); animation: pt-type 4.4s steps(13, end) infinite; }
@keyframes pt-type { 0%, 8% { clip-path: inset(0 100% 0 0); } 45%, 88% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); } }
.caret { width: 1.5px; height: 18px; margin-left: 1px; background: var(--act); animation: blink 1.1s steps(1) infinite; }
.pt-sel { position: relative; width: 170px; height: 120px; }
.pt-sv { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 10px 0 12px; border-radius: 11px; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.pt-sv .ic { color: var(--ink-2); }
.pt-menu { position: absolute; left: 0; right: 0; top: 44px; display: grid; padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: 0 10px 24px -8px rgb(30 24 40 / .3), inset 0 0 0 1px var(--line); transform-origin: 50% 0; animation: pt-menu 4s var(--io) infinite; }
.pt-menu i { display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 13px; color: var(--ink-2); }
.pt-menu .on { color: var(--p-800); background: var(--p-50); font-weight: 600; }
[data-theme=dark] .pt-menu .on { color: var(--p-100); background: color-mix(in oklab, var(--p-500) 22%, var(--surface)); }
.pt-menu .ic { color: currentColor; }
@keyframes pt-menu { 0%, 12% { opacity: 0; scale: 1 .7; translate: 0 -6px; } 22%, 70% { opacity: 1; scale: 1 1; translate: 0 0; } 80%, 100% { opacity: 0; scale: 1 .9; translate: 0 -4px; } }
.pt-toggles { display: grid; gap: 14px; }
.pt-tr { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.pt-sw { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--line-2); animation: pt-sw-bg 3.6s var(--io) infinite; }
.pt-sw b { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgb(0 0 0 / .25); animation: pt-sw-k 3.6s var(--spring-s) infinite; }
@keyframes pt-sw-bg { 0%, 20% { background: var(--line-2); } 30%, 72% { background: var(--act); } 82%, 100% { background: var(--line-2); } }
@keyframes pt-sw-k { 0%, 20% { translate: 0 0; } 32%, 72% { translate: 16px 0; } 84%, 100% { translate: 0 0; } }
.pt-cb { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); animation: pt-cb 3.6s var(--io) infinite; animation-delay: .6s; }
.pt-cb svg { width: 16px; height: 16px; fill: none; stroke: #FFFFFF; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; animation: pt-ck 3.6s var(--io) infinite; animation-delay: .6s; }
@keyframes pt-cb { 0%, 20% { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); } 28%, 72% { background: var(--act); box-shadow: inset 0 0 0 1.5px var(--act); } 80%, 100% { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); } }
@keyframes pt-ck { 0%, 24% { stroke-dashoffset: 14; } 34%, 72% { stroke-dashoffset: 0; } 78%, 100% { stroke-dashoffset: 14; } }
.pt-tabs { position: relative; display: flex; padding: 4px; border-radius: 12px; background: var(--sunken); }
.pt-tabs i { position: relative; z-index: 1; display: grid; place-items: center; width: 78px; height: 32px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.pt-tabs i:nth-child(2) { color: var(--accent); animation: pt-tab1 6s var(--io) infinite; } .pt-tabs i:nth-child(3) { animation: pt-tab2 6s var(--io) infinite; } .pt-tabs i:nth-child(4) { animation: pt-tab3 6s var(--io) infinite; }
.pt-tab-hl { position: absolute !important; left: 4px; top: 4px; width: 78px !important; height: 32px !important; z-index: 0 !important; border-radius: 9px; background: var(--surface); box-shadow: 0 1px 3px rgb(30 24 40 / .15); animation: pt-hl 6s var(--spring-s) infinite; }
@keyframes pt-hl { 0%, 28% { translate: 0 0; } 34%, 61% { translate: 78px 0; } 67%, 94% { translate: 156px 0; } 100% { translate: 0 0; } }
@keyframes pt-tab1 { 0%, 28% { color: var(--accent); } 34%, 94% { color: var(--ink-2); } 100% { color: var(--accent); } }
@keyframes pt-tab2 { 0%, 28% { color: var(--ink-2); } 34%, 61% { color: var(--accent); } 67%, 100% { color: var(--ink-2); } }
@keyframes pt-tab3 { 0%, 61% { color: var(--ink-2); } 67%, 94% { color: var(--accent); } 100% { color: var(--ink-2); } }
.pt-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 200px; }
.bd { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--p-800); background: var(--p-100); }
[data-theme=dark] .bd { color: var(--p-100); background: color-mix(in oklab, var(--p-500) 26%, var(--surface)); }
.bd b { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ping-dot 2s var(--out) infinite; }
@keyframes ping-dot { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 40%, transparent); } 60% { box-shadow: 0 0 0 5px transparent; } }
.bd.solid { color: var(--on-act); background: var(--act); }
.bd.line { color: var(--accent); background: transparent; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--p-500) 45%, transparent); }
.bd.warm { color: var(--w-800); background: var(--w-100); }
[data-theme=dark] .bd.warm { color: var(--w-100); background: color-mix(in oklab, var(--w-500) 30%, var(--surface)); }
.pt-badges .bd { animation: pt-pop 4.8s var(--spring-s) infinite; }
.pt-badges .bd:nth-child(2) { animation-delay: .15s; } .pt-badges .bd:nth-child(3) { animation-delay: .3s; } .pt-badges .bd:nth-child(4) { animation-delay: .45s; }
@keyframes pt-pop { 0%, 6% { opacity: 0; scale: .6; } 16%, 86% { opacity: 1; scale: 1; } 96%, 100% { opacity: 0; scale: .9; } }
.bd.sm { height: 20px; padding: 0 8px; font-size: 11.5px; }
.pt-card { display: grid; justify-items: start; gap: 4px; width: 190px; padding: 12px 14px; border-radius: 16px; background: color-mix(in oklab, var(--p-500) 7%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--p-300) 30%, transparent), 0 8px 18px -10px rgb(30 24 40 / .3); animation: pt-float 5s var(--io) infinite alternate; }
@keyframes pt-float { from { translate: 0 3px; } to { translate: 0 -3px; } }
.pc-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--accent); background: var(--surface); }
.pt-card b { font: 700 16px/1.2 var(--f-d); letter-spacing: -.02em; color: var(--ink); }
.pt-card small { font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; }
.pt-chart { display: flex; align-items: flex-end; gap: 7px; width: min(100%, 210px); height: 104px; padding-bottom: 1px; border-bottom: 1px solid var(--line-2); }
.pt-chart i { flex: 1; height: calc(var(--h) * 100%); border-radius: 6px 6px 3px 3px; background: var(--c); transform-origin: 50% 100%; animation: pt-grow 4.8s var(--spring-s) infinite; }
.pt-chart i:nth-child(2) { animation-delay: .07s; } .pt-chart i:nth-child(3) { animation-delay: .14s; } .pt-chart i:nth-child(4) { animation-delay: .21s; } .pt-chart i:nth-child(5) { animation-delay: .28s; } .pt-chart i:nth-child(6) { animation-delay: .35s; } .pt-chart i:nth-child(7) { animation-delay: .42s; }
@keyframes pt-grow { 0%, 4% { scale: 1 .08; } 22%, 86% { scale: 1 1; } 96%, 100% { scale: 1 .08; } }
.pt-toast { display: flex; align-items: center; gap: 10px; width: min(100%, 230px); padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: 0 10px 24px -8px rgb(30 24 40 / .3), inset 0 0 0 1px var(--line); animation: pt-toast 4.4s var(--spring-s) infinite; }
@keyframes pt-toast { 0%, 8% { opacity: 0; translate: 0 26px; } 20%, 78% { opacity: 1; translate: 0 0; } 90%, 100% { opacity: 0; translate: 0 26px; } }
.pt-ti { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: var(--on-act); background: var(--act); }
.pt-toast b { display: block; font-size: 14px; color: var(--ink); } .pt-toast small { display: block; font-size: 12.5px; color: var(--ink-2); }
.pt-undo { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent); }
.pt-avs { display: flex; }
.pt-avs i { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -6px; border-radius: 50%; font-size: 12.5px; font-weight: 700; color: #FFFFFF; background: var(--c); box-shadow: 0 0 0 3px var(--surface); animation: pt-av 4.4s var(--spring-s) infinite; }
.pt-avs i:first-child { margin-left: 0; color: #0C0C10; }
.pt-avs i:nth-child(2) { animation-delay: .1s; color: #0C0C10; } .pt-avs i:nth-child(3) { animation-delay: .2s; } .pt-avs i:nth-child(4) { animation-delay: .3s; } .pt-avs i:nth-child(5) { animation-delay: .4s; }
.pt-avs .more { color: var(--ink); background: var(--sunken); box-shadow: 0 0 0 3px var(--surface), inset 0 0 0 1px var(--line-2); }
@keyframes pt-av { 0%, 6% { translate: 0 0; } 14% { translate: 0 -6px; } 22%, 100% { translate: 0 0; } }
.pt-prog { display: grid; gap: 10px; width: min(100%, 220px); }
.pt-pl { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink); }
.pt-pl b { font-weight: 600; }
.pt-pct { position: relative; display: inline-grid; font: 500 13px/1 var(--f-m); font-style: normal; color: var(--ink-2); }
.pt-pct span { grid-area: 1 / 1; opacity: 0; animation: pt-pct 5s steps(1) infinite; }
.pt-pct span:nth-child(2) { animation-name: pt-pct2; } .pt-pct span:nth-child(3) { animation-name: pt-pct3; }
@keyframes pt-pct { 0%, 34% { opacity: 1; } 35%, 100% { opacity: 0; } }
@keyframes pt-pct2 { 0%, 34% { opacity: 0; } 35%, 64% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes pt-pct3 { 0%, 64% { opacity: 0; } 65%, 99% { opacity: 1; } 100% { opacity: 0; } }
.pt-bar { height: 10px; border-radius: 5px; background: color-mix(in oklab, var(--p-500) 16%, var(--surface)); overflow: hidden; }
.pt-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--p-400), var(--p-600)); transform-origin: 0 50%; animation: pt-fill 5s var(--io) infinite; }
@keyframes pt-fill { 0% { scale: .06 1; } 34% { scale: .24 1; } 64% { scale: .68 1; } 90%, 100% { scale: 1 1; } }
.pt-table { display: grid; gap: 4px; width: min(100%, 240px); }
.pt-table .tr { display: grid; grid-template-columns: 1fr auto 52px; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 9px; font-size: 12.5px; color: var(--ink); }
.pt-table .tr b { font: 500 12px/1 var(--f-m); }
.pt-table .tr em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pt-table .sel { background: var(--p-50); box-shadow: inset 2px 0 0 var(--act); animation: pt-row 4s var(--io) infinite; }
[data-theme=dark] .pt-table .sel { background: color-mix(in oklab, var(--p-500) 16%, var(--surface)); }
@keyframes pt-row { 0%, 18% { background: transparent; box-shadow: inset 0 0 0 var(--act); } 28%, 82% { background: var(--p-50); box-shadow: inset 3px 0 0 var(--act); } 92%, 100% { background: transparent; box-shadow: inset 0 0 0 var(--act); } }
[data-theme=dark] .pt-table .sel { animation-name: pt-row-d; }
@keyframes pt-row-d { 0%, 18% { background: transparent; box-shadow: inset 0 0 0 var(--act); } 28%, 82% { background: color-mix(in oklab, var(--p-500) 16%, var(--surface)); box-shadow: inset 3px 0 0 var(--act); } 92%, 100% { background: transparent; box-shadow: inset 0 0 0 var(--act); } }

/* ---------- for AI agents, and UIX at a glance ---------- */
.ag { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.ag-copy h2 { max-width: 13em; margin-bottom: 18px; }
.ag-list { margin: 26px 0 22px; }
.ag-list > div { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; box-shadow: inset 0 1px 0 var(--line); }
.ag-list dt { display: flex; align-items: center; gap: 8px; height: 34px; font-weight: 600; font-size: 15px; }
.ag-list dt .ic { color: var(--accent); }
.ag-list dd { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; min-width: 0; }
.ag-list dd > code { justify-self: start; padding: 7px 11px; border-radius: 10px; font-size: 13px; color: var(--ink); background: var(--sunken); overflow-wrap: anywhere; }
.ag-list dd > .btn-text { grid-column: 1 / -1; justify-self: start; }
.ag-list small { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.glance { padding: 26px 28px 10px; border-radius: 30px; box-shadow: var(--sh-2); }
.glance h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font: var(--d-w) 22px/1.2 var(--f-d); letter-spacing: -.025em; }
.gl-list > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 16px; padding: 13px 0; box-shadow: inset 0 1px 0 var(--line); }
.gl-list > div:first-child { box-shadow: none; }
.gl-list dt { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.gl-list dd { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.gl-list dd b { color: var(--ink); }
.gl-list .btn-text { font-size: 15px; margin-left: 4px; }


/* ---------- layouts (home) ---------- */
@media (max-width: 1180px) {
  .fan { --sw-w: 62px; --sw-h: 256px; }
  .proof { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .proof .tk { grid-column: span 2; }
  .proof .tk:nth-child(4), .proof .tk:nth-child(5) { grid-column: span 3; }
  .places { grid-template-columns: 1fr 1fr; }
  .place:last-child { grid-column: 1 / -1; }
  .parts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-step, .row-step.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 24px; }
  .row-step.flip { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .pa { grid-template-columns: 1fr; gap: 14px; }
  .pa-arrow { rotate: 90deg; margin: -26px auto; }
  .ag { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { padding-top: 108px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy .kicker { order: 0; justify-self: start; } .hero-copy h1 { order: 1; } .hero-copy .lead { order: 2; margin-bottom: 4px; } .hero-fan { order: 3; margin-bottom: 30px; } .hero-copy .cta { order: 4; } .hero .note { order: 5; }
  .hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 50%, transparent) 0, transparent 62%); }
  [data-theme=dark] .hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 76%, transparent) 0, color-mix(in srgb, var(--paper) 64%, transparent) 44%, transparent 72%); }
  .row-step, .row-step.flip { grid-template-columns: 1fr; gap: 16px; }
  .row-step.flip > .step { order: 0; }
  .rows { gap: 48px; }
  .places { grid-template-columns: 1fr; }
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sync { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
  .wire { margin: 0; }
}
@media (max-width: 560px) {
  .hero { padding: 96px 0 0; }
  .h1-a { font-size: 44px; } .h1-b { font-size: 26px; margin-top: 10px; }
  .kicker { font-size: 13px; margin-bottom: 18px; }
  .fan { --sw-w: 42px; --sw-h: 172px; }
  .fan .sw, .fan .sw:focus-visible { border-radius: 12px 12px 21px 21px; }
  .sw span { top: 13px; right: 7px; font-size: 10px; }
  .fan .sw { background-image: linear-gradient(to bottom, var(--c) 0 36px, transparent 84px), linear-gradient(100deg, rgb(255 255 255 / .34), rgb(255 255 255 / 0) 34%); }
  .fan-stage { padding-top: 12px; }
  .hero-fan { gap: 20px; }
  .dock { width: 100%; border-radius: 28px; }
  .pick-sep { display: none; }
  .proof { grid-template-columns: 1fr 1fr; gap: 10px; }
  .proof .tk, .proof .tk:nth-child(4) { grid-column: span 1; }
  .proof .tk:nth-child(5) { grid-column: 1 / -1; }
  .tk { padding: 14px 14px 16px; border-radius: 20px; }
  .tk dt { font-size: 36px; }
  .tk dd { font-size: 13.5px; }
  .tk-vis { height: 28px; margin-bottom: 12px; }
  .tv-ramp { gap: 2px; }
  .tv-styles { gap: 3px; }
  .pa-art { grid-template-columns: auto 26px minmax(0, 1fr); height: auto; min-height: 210px; padding: 14px 10px 14px 12px; }
  .pa-wires { width: 26px; }
  .src-i { height: 30px; padding: 0 8px 0 6px; font-size: 12px; gap: 5px; }
  .src-i code { display: none; }
  .app { height: 166px; padding: 10px; }
  .app-btns i { padding: 0 8px; }
  .is-good .app-btns i { width: 40px; }
  .flag.f1, .flag.ok { right: 4px; }
  .band-warm { padding: 84px 0 92px; }
  .step { padding: 22px 20px 24px; }
  .step h3 { font-size: 22px; }
  .xp { border-radius: 22px; padding: 4px; margin-inline: calc(var(--pad) * -1 + 6px); } /* scenes are drawn on a 64-em canvas: bleed to the screen edge for the most width a phone can give them */
  .xp-stage { border-radius: 18px; }
  .xp figcaption { padding: 10px 10px 10px; font-size: 14px; }
  .parts { grid-template-columns: 1fr; }
  .part-s { height: 140px; }
  .code, .chat { height: 460px; }
  .ag-list > div { grid-template-columns: 1fr; }
  .ag-list dt { height: auto; }
  .glance { padding: 20px 18px 6px; }
  .gl-list > div { grid-template-columns: 1fr; }
  .tv-parts i:nth-child(n+5) { display: none; }
  .chip-card { width: 214px; }
}
/* Phones: the scenes are drawn on a 64-em canvas, which at 390px leaves text under 6px. Keep the canvas, but show only a window of
   it (--vw em wide) so 1em is about 14px, and pan that window between the two focal areas (A, then B) on the same clock. No
   camera zoom here: the pan does that job. Reduced motion still lands on the result frame (--still). */
@media (max-width: 600px) {
  .xp-stage, .xp-stage.tall { --ch: 40; aspect-ratio: var(--vw) / var(--vh); }
  .xp-stage.tall { --ch: 46; }
  .xp .xp-cv { inset: auto; left: 0; top: 0; width: calc(var(--cw) * 1em); height: calc(var(--ch) * 1em); font-size: calc(100cqw / var(--vw));
    translate: calc(var(--ax) * -1em) calc(var(--ay) * -1em); }
  .xp .xp-cam { animation: none; }
  [data-xp=gen] { --vw: 26; --vh: 32; --ax: 0; --ay: 3; --bx: 35; --by: 6; }
  [data-xp=colors] { --vw: 26; --vh: 32; --ax: 2; --ay: 3; --bx: 15; --by: 6; }
  [data-xp=shape] { --vw: 30; --vh: 32; --ax: 9; --ay: 3; --bx: 9; --by: 3; }
  [data-xp=use] { --vw: 31; --vh: 34; --ax: 2; --ay: 3; --bx: 31; --by: 3; }
  [data-xp=figma] { --vw: 26; --vh: 36; --ax: 12; --ay: 3; --bx: 10.5; --by: 10; }
  [data-xp=figma] .f-vars { right: 4em; }
  .xp-cv small, .xp-cv em, .s-lbl, .u-copy, .u-tb, .xw-url, .u-nb, .f-vars .on, .f-vars .on ~ i { font-size: .9em; } /* tiny labels: raised so every line stays readable */
  .xp-cv .u-doc > small, .xp-cv .u-cmd code, .xp-cv .u-cmd .pr, .xp-cv .f-plug small, .xp-cv .f-row code, .xp-cv .f-field code, .xp-cv .g-ramp code { font-size: 1em; }
  .xp-cv .s-lbl, .xp-cv .s-ct, [data-xp=shape] .xp-cv small { font-size: 1em; }
  .xp-cv .u-copy, .xp-cv .u-tb, .xp-cv .xw-url, .xp-cv .u-nb { font-size: 1em; }
  [data-xp=gen] .xp-cv { animation-name: pan-gen; }
  [data-xp=colors] .xp-cv { animation-name: pan-col; }
  [data-xp=shape] .xp-cv { animation: none; }
  [data-xp=use] .xp-cv { animation-name: pan-use; }
  [data-xp=figma] .xp-cv { animation-name: pan-fig; }
  @keyframes pan-gen { 0%, 26% { translate: calc(var(--ax) * -1em) calc(var(--ay) * -1em); } 34%, 90% { translate: calc(var(--bx) * -1em) calc(var(--by) * -1em); } 97%, 100% { translate: calc(var(--ax) * -1em) calc(var(--ay) * -1em); } }
  @keyframes pan-col { 0%, 28% { translate: calc(var(--ax) * -1em) calc(var(--ay) * -1em); } 38%, 84% { translate: calc(var(--bx) * -1em) calc(var(--by) * -1em); } 94%, 100% { translate: calc(var(--ax) * -1em) calc(var(--ay) * -1em); } }
  @keyframes pan-use { 0%, 54% { translate: calc(var(--ax) * -1em) calc(var(--ay) * -1em); } 64%, 90% { translate: calc(var(--bx) * -1em) calc(var(--by) * -1em); } 97%, 100% { translate: calc(var(--ax) * -1em) calc(var(--ay) * -1em); } }
  @keyframes pan-fig { 0%, 44% { translate: calc(var(--ax) * -1em) calc(var(--ay) * -1em); } 52%, 90% { translate: calc(var(--bx) * -1em) calc(var(--by) * -1em); } 97%, 100% { translate: calc(var(--ax) * -1em) calc(var(--ay) * -1em); } }
}

@media (prefers-reduced-motion: reduce) {
  .acc-u::after { scale: 1 1; }
  .live.wait :is(.call, .msg, .chat-toks, .chat-card) { opacity: 1; transform: none; }
  .tk .tk-vis > * { opacity: 1; translate: none; }
  .ck path { stroke-dashoffset: 0; } .xk { opacity: 1; scale: 1; }
  .xp *, .xp *::before, .xp *::after, .flow *, .parts *, .mini-art * { animation-duration: var(--T, 9s) !important; animation-iteration-count: infinite !important; animation-play-state: paused !important; animation-delay: calc(0s - var(--still, 7s)) !important; }
  .parts { --T: 4.8s; --still: 2.9s; }
}
