/* Handlr public site: a single screen. Chapters warp in and out around a live assistant.
   Built for speed: no backdrop blur over the moving 3D, no blur filters in animations, transforms only. */
:root {
  --text: #f4f2fa; --soft: #d9d6e3; --dim: #8f8aa6; --acc: #8b3dff; --acc2: #b48cff; --acc-line: rgba(139, 61, 255, .55);
  --glass: rgba(14, 9, 26, .78); --glass-line: rgba(255, 255, 255, .1);
  --display: 'Unbounded', 'Onest', system-ui, sans-serif; --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; overscroll-behavior: none; }
body { color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; touch-action: none; }
@media (pointer: fine) { body, a, button { cursor: none; } }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc2); outline-offset: 3px; }

/* layers */
#field, #figure { position: fixed; inset: 0; width: 100vw; height: 100vh; }
#field { z-index: 0; }
#figure { z-index: 1; transition: opacity 1s var(--ease); }
#hud { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2; pointer-events: none; overflow: visible; }
#hud circle { fill: none; stroke: rgba(180, 140, 255, .35); stroke-width: 1; vector-effect: non-scaling-stroke; }
#hud .r1 { stroke-dasharray: 2 10; } #hud .r2 { stroke: rgba(180, 140, 255, .16); stroke-dasharray: 120 40 6 40; } #hud .r3 { stroke: rgba(255, 255, 255, .08); }
#hud #ticks line { stroke: rgba(180, 140, 255, .5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vignette { position: fixed; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(110% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .75) 100%); }
.scanlines { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .35; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
#orbs, #ring-wrap { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
main, header.top, .timeline, .telemetry { position: fixed; z-index: 6; }

/* the warp */
.beam { position: fixed; z-index: 8; left: -20vw; top: 0; width: 18vw; height: 100vh; pointer-events: none; opacity: 0; will-change: transform, opacity;
  background: linear-gradient(90deg, transparent, rgba(180, 140, 255, .2) 40%, rgba(255, 255, 255, .5) 50%, rgba(180, 140, 255, .2) 60%, transparent); }
.beam.go { animation: sweep .8s var(--ease) forwards; }
.beam.back.go { animation-name: sweep-back; }
@keyframes sweep { 0% { opacity: 0; transform: translateX(0) skewX(-12deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(140vw) skewX(-12deg); } }
@keyframes sweep-back { 0% { opacity: 0; transform: translateX(140vw) skewX(12deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(0) skewX(12deg); } }
.flash { position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: 0; background: radial-gradient(60% 60% at 50% 45%, rgba(139, 61, 255, .3), transparent 70%); }
.flash.go { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

/* chrome */
.wm { font-family: var(--display); font-weight: 600; letter-spacing: -.045em; display: inline-flex; align-items: baseline; text-decoration: none; color: #fff; }
.wm i { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--acc); margin-left: .11em; box-shadow: 0 0 .5em rgba(139, 61, 255, .9); animation: wm-dot 2.4s ease-in-out infinite; }
.wm i:nth-child(2) { animation-delay: .25s; } .wm i:nth-child(3) { animation-delay: .5s; }
@keyframes wm-dot { 0%, 100% { opacity: .4; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-.08em); } }
header.top { top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(18px, 3.5vw, 44px); }
header.top .wm { font-size: 24px; }
header.top nav { display: flex; gap: 10px; align-items: center; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--text);
  border: 1px solid var(--glass-line); background: var(--glass); transition: border-color .25s, transform .25s, box-shadow .3s; }
.btn:hover { border-color: var(--acc-line); transform: translateY(-1px); box-shadow: 0 0 30px rgba(139, 61, 255, .3); }
.btn.ghost { background: transparent; }
.btn.lg { padding: 15px 24px; font-size: 16px; }

/* the main call to action: a cut-corner key with a live light running through it */
.btn.prime { border: 0; border-radius: 0; padding: 13px 14px 13px 20px; gap: 14px; color: #07030f; background: none; isolation: isolate;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); filter: drop-shadow(0 0 0 transparent); }
.btn.prime::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(110deg, #ffffff 0%, #efe6ff 45%, #c9a8ff 100%); }
.btn.prime::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(139, 61, 255, .55) 48%, rgba(255, 255, 255, .9) 52%, transparent 70%);
  transform: translateX(-120%); animation: key-light 3.6s var(--ease) infinite; }
@keyframes key-light { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn.prime span { letter-spacing: -.01em; }
.btn.prime .key { position: relative; width: 30px; height: 30px; flex: none; background: #0a0613; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: transform .35s var(--ease); }
.btn.prime .key::before { content: ''; position: absolute; left: 9px; top: 14px; width: 12px; height: 2px; background: #fff; }
.btn.prime .key::after { content: ''; position: absolute; left: 14px; top: 10px; width: 7px; height: 7px; border-right: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg); }
.btn.prime:hover { transform: translateY(-1px); box-shadow: none; }
.btn.prime:hover .key { transform: translateX(3px); }
.btn.prime:hover::after { animation-duration: 1.2s; }
.btn.prime.lg { padding: 15px 16px 15px 24px; font-size: 16.5px; }
.btn.prime.lg .key { width: 34px; height: 34px; }
.btn.prime.lg .key::before { left: 10px; top: 16px; width: 14px; } .btn.prime.lg .key::after { left: 16px; top: 12px; }
.cta-glow { position: relative; }

/* chapter navigator: six glyphs on a glowing track, a light travels to the one you're on */
.timeline { left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; padding: 10px 20px; }
.timeline::before { content: ''; position: absolute; left: 22px; right: 22px; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(180, 140, 255, .45) 12%, rgba(180, 140, 255, .45) 88%, transparent); }
.timeline .comet { position: absolute; top: 50%; left: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none; transition: transform .7s var(--ease);
  background: radial-gradient(circle, rgba(139, 61, 255, .55), transparent 65%); }
.timeline button { position: relative; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(10, 6, 20, .9); color: var(--dim);
  display: grid; place-items: center; transition: transform .4s var(--ease), color .3s, border-color .3s, background .3s, box-shadow .3s; }
.timeline button svg { width: 16px; height: 16px; }
.timeline button:hover { color: #fff; border-color: var(--acc-line); transform: scale(1.12); }
.timeline button.on { color: #fff; border-color: rgba(255, 255, 255, .8); background: #1b0f36; transform: scale(1.28); box-shadow: 0 0 22px rgba(139, 61, 255, .8), inset 0 0 10px rgba(139, 61, 255, .6); }
.timeline button .tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; font-size: 12px; font-weight: 600; color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.timeline button:hover .tip { opacity: 1; transform: translate(-50%, 0); }
.telemetry { left: clamp(18px, 3.5vw, 44px); bottom: 26px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); line-height: 1.7; }
.telemetry b { color: #8fe3a8; font-weight: 500; }

/* chapters */
#chapters { inset: 0; pointer-events: none; perspective: 1400px; }
.ch { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 96px clamp(24px, 4.5vw, 72px) 110px; visibility: hidden; }
.ch.live { visibility: visible; }
.ch .col { pointer-events: auto; max-width: 440px; }
.ch .col.right { justify-self: end; }
.ch .col.center { grid-column: 1 / -1; justify-self: center; text-align: center; max-width: none; }
.ch h1 { font-size: clamp(44px, 5.2vw, 82px); }
.ch h2 { font-size: clamp(32px, 3.4vw, 56px); }
.ch .sub { margin-top: 14px; font-family: var(--display); font-weight: 400; font-size: clamp(16px, 1.3vw, 20px); color: var(--acc2); letter-spacing: -.01em; }
.ch .lead { margin-top: 18px; color: var(--soft); font-size: clamp(15.5px, 1.15vw, 18px); max-width: 420px; }
.ch .ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ch .hint { max-width: 230px; text-align: right; color: var(--dim); font-size: 14px; align-self: end; margin-bottom: 40px; }
.ch .hint b { display: block; color: #fff; font-family: var(--display); font-weight: 500; font-size: 14.5px; margin-bottom: 6px; }

/* enter / leave (transform + opacity only, so it stays smooth) */
.ch.live .col > * { animation: assemble .8s var(--ease) both; will-change: transform, opacity; }
.ch.live .col > *:nth-child(2) { animation-delay: .06s; } .ch.live .col > *:nth-child(3) { animation-delay: .12s; } .ch.live .col > *:nth-child(4) { animation-delay: .18s; } .ch.live .col > *:nth-child(5) { animation-delay: .24s; }
.ch.live .col.right > * { animation-name: assemble-r; animation-delay: .12s; }
@keyframes assemble { from { opacity: 0; transform: translate3d(-50px, 0, -300px) rotateY(16deg); } }
@keyframes assemble-r { from { opacity: 0; transform: translate3d(70px, 0, -340px) rotateY(-20deg); } }
.ch.leaving { visibility: visible; animation: tear .55s var(--ease) forwards; }
@keyframes tear {
  0% { clip-path: inset(0 0 0 0); opacity: 1; transform: none; }
  35% { clip-path: polygon(0 0, 100% 0, 100% 22%, 0 22%, 0 30%, 100% 30%, 100% 58%, 0 58%, 0 66%, 100% 66%, 100% 100%, 0 100%); transform: translateX(-12px) skewX(-3deg); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 6%, 0 6%, 0 44%, 100% 44%, 100% 50%, 0 50%, 0 88%, 100% 88%, 100% 94%, 0 94%); opacity: 0; transform: translate3d(0, 0, 240px) scale(1.06); }
}
.decode .ch-x { color: var(--acc2); }

/* glass orbs (chapter 0) */
.orb { position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; color: #fff; pointer-events: auto; opacity: 0; transition: opacity .6s var(--ease), box-shadow .35s, border-color .35s; will-change: transform;
  background: radial-gradient(120% 120% at 50% 25%, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04) 55%), rgba(20, 14, 36, .82); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 30px rgba(0, 0, 0, .5), 0 0 22px rgba(139, 61, 255, .25); }
body[data-ch="0"] .orb { opacity: 1; transition-delay: var(--d); }
body:not([data-ch="0"]) .orb { pointer-events: none; }
.orb svg { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgba(180, 140, 255, .8)); }
.orb:hover, .orb:focus-visible { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 44px rgba(139, 61, 255, .7); border-color: var(--acc-line); }
.orb .tip { position: absolute; top: calc(100% + 12px); left: 50%; width: 230px; margin-left: -115px; padding: 12px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; color: var(--soft); text-align: left;
  background: rgba(12, 8, 22, .94); border: 1px solid var(--glass-line); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .25s, transform .25s; }
.orb .tip b { display: block; color: #fff; font-size: 14px; margin-bottom: 3px; }
.orb:hover .tip, .orb:focus-visible .tip { opacity: 1; transform: none; }

/* everything it does orbits the assistant (chapter 2) */
#ring-wrap { perspective: 1100px; }
#ring { position: absolute; left: 0; top: 0; width: 1px; height: 1px; transform-style: preserve-3d; visibility: hidden; }
.node { position: absolute; left: -66px; top: -26px; width: 132px; height: 52px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border-radius: 16px; pointer-events: auto;
  background: linear-gradient(140deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)), rgba(14, 9, 28, .86); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: 13px; line-height: 1.15;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); transition: border-color .3s, box-shadow .3s, background .3s; }
body:not([data-ch="2"]) .node { pointer-events: none; }
.node .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(139, 61, 255, .28); flex: none; }
.node .ic svg { width: 16px; height: 16px; }
.node.on { border-color: rgba(255, 255, 255, .7); background: linear-gradient(140deg, rgba(139, 61, 255, .55), rgba(60, 20, 140, .4)), rgba(14, 9, 28, .9); box-shadow: 0 0 36px rgba(139, 61, 255, .75); }
.node:hover { border-color: var(--acc-line); }
.feat-list { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 420px; }
.feat-list button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--glass-line); background: rgba(14, 9, 26, .7); color: var(--dim); font-size: 13px; font-weight: 600; transition: all .25s; }
.feat-list button:hover { color: #fff; }
.feat-list button.on { color: #fff; border-color: var(--acc-line); background: rgba(139, 61, 255, .22); }
.feat-list .prog { position: relative; overflow: hidden; }
.panel { padding: 20px 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); }
.detail { position: relative; width: 380px; min-height: 270px; overflow: hidden; }
.detail .bar { position: absolute; left: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--acc), #fff); transform-origin: 0 50%; }
.detail .bar.run { animation: bar linear forwards; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.detail .top { display: flex; align-items: center; gap: 12px; }
.detail .top .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(139, 61, 255, .3); box-shadow: 0 0 24px rgba(139, 61, 255, .4); }
.detail .top .ic svg { width: 22px; height: 22px; }
.detail h3 { font-size: 21px; letter-spacing: -.02em; }
.detail ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--soft); font-size: 14.5px; }
.detail li { display: flex; gap: 10px; animation: pop .45s var(--ease) both; }
.detail li::before, .plan li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--acc2); box-shadow: 0 0 8px var(--acc); }
.detail .uses { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.detail .uses span { padding: 4px 10px; border-radius: 8px; font-size: 12px; color: var(--soft); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }

/* chapter 1: the conversation, projected as a hologram */
.langs { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; }
.langs span { color: var(--dim); margin-right: 4px; }
.langs b { padding: 5px 11px; border-radius: 999px; font-weight: 600; color: #fff; background: rgba(139, 61, 255, .16); border: 1px solid rgba(180, 140, 255, .3); }
.langs em { font-style: normal; color: var(--acc2); font-weight: 600; margin-left: 4px; }
.always { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(14, 9, 26, .8); border: 1px solid rgba(180, 140, 255, .3); color: var(--soft); font-size: 13.5px; }
.always b { padding: 5px 10px; border-radius: 999px; font-family: var(--display); font-size: 13px; color: #fff; background: linear-gradient(110deg, #8b3dff, #b48cff); box-shadow: 0 0 18px rgba(139, 61, 255, .6); }
.day { margin-top: 18px; display: flex; gap: 6px; }
.day button, .seg button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--glass-line); background: transparent; color: var(--dim); font-size: 13.5px; font-weight: 600; transition: all .25s; }
.day button.on { color: #fff; border-color: var(--acc-line); background: rgba(139, 61, 255, .2); }
.holo { position: relative; width: min(330px, 28vw); height: min(560px, 66vh); transform: perspective(1200px) rotateY(var(--ry, -16deg)) rotateX(var(--rx, 5deg)); transition: transform .5s var(--ease); transform-style: preserve-3d; }
.holo-frame { position: absolute; inset: 0 0 40px; display: flex; flex-direction: column; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, rgba(139, 61, 255, .14), rgba(20, 10, 45, .55) 30%, rgba(10, 5, 25, .7));
  border: 1px solid rgba(180, 140, 255, .45); box-shadow: 0 0 0 1px rgba(139, 61, 255, .2), 0 0 60px rgba(139, 61, 255, .35), inset 0 0 40px rgba(139, 61, 255, .18); }
.holo-frame::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(180, 140, 255, .06) 0 1px, transparent 1px 4px), linear-gradient(125deg, rgba(255, 255, 255, .12), transparent 35%); }
.holo-frame::after { content: ''; position: absolute; left: 0; right: 0; height: 60px; top: -60px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(180, 140, 255, .18), transparent); animation: holo-scan 5s linear infinite; }
@keyframes holo-scan { to { transform: translateY(700px); } }
.holo-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid rgba(180, 140, 255, .2); }
.wa-face { width: 34px; height: 34px; border-radius: 50%; background: #000 center / cover; flex: none; box-shadow: 0 0 0 2px rgba(180, 140, 255, .5), 0 0 16px rgba(139, 61, 255, .6); }
.holo-top b { display: block; font-size: 14px; } .holo-top small { display: flex; align-items: center; gap: 6px; color: #8fe3a8; font-size: 11px; }
.holo-top small i { width: 6px; height: 6px; border-radius: 50%; background: #8fe3a8; box-shadow: 0 0 8px #8fe3a8; }
.chat { position: relative; z-index: 1; flex: 1; overflow: hidden; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; transform-style: preserve-3d; }
.holo-base { position: absolute; left: 10%; right: 10%; bottom: 0; height: 40px; }
.holo-base::before { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 14px; border-radius: 50%; border: 1px solid rgba(180, 140, 255, .6); box-shadow: 0 0 30px rgba(139, 61, 255, .7), inset 0 0 12px rgba(139, 61, 255, .7); }
.holo-base::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: 14px; height: 70px; background: linear-gradient(0deg, rgba(139, 61, 255, .35), transparent); clip-path: polygon(0 100%, 100% 100%, 88% 0, 12% 0); }
.holo-base i { position: absolute; bottom: 12px; width: 3px; height: 3px; border-radius: 50%; background: #d9c8ff; box-shadow: 0 0 6px #b48cff; animation: rise 2.4s linear infinite; }
.holo-base i:nth-child(1) { left: 25%; } .holo-base i:nth-child(2) { left: 52%; animation-delay: .8s; } .holo-base i:nth-child(3) { left: 74%; animation-delay: 1.6s; }
@keyframes rise { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-90px); opacity: 0; } }
.msg { position: relative; max-width: 86%; padding: 9px 12px 7px; border-radius: 14px; font-size: 12.5px; line-height: 1.42; animation: holo-in .55s var(--ease) both; }
.msg.in { align-self: flex-start; background: rgba(139, 61, 255, .16); border: 1px solid rgba(180, 140, 255, .32); border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; background: rgba(255, 255, 255, .92); color: #120a24; border-top-right-radius: 4px; }
.msg.out time { color: rgba(18, 10, 36, .5); }
.msg time { display: block; text-align: right; font-size: 10px; color: rgba(255, 255, 255, .5); margin-top: 2px; }
.msg .chip { display: inline-flex; margin-top: 7px; padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(180, 140, 255, .35); font-weight: 600; font-size: 12px; }
.msg.voice { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.msg.voice .play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #120a24; }
.msg.voice .play svg { width: 11px; height: 11px; fill: #fff; }
.msg.in.voice .play { background: rgba(255, 255, 255, .9); } .msg.in.voice .play svg { fill: #120a24; }
.msg.voice .wave { display: flex; gap: 2px; align-items: center; height: 22px; flex: 1; }
.msg.voice .wave i { width: 2px; border-radius: 1px; background: currentColor; opacity: .3; transition: opacity .1s; }
.msg.voice .wave i.lit { opacity: 1; }
.msg.voice time { margin: 0 0 0 4px; align-self: flex-end; white-space: nowrap; }
.msg.voice .lbl { position: absolute; top: -16px; font-size: 10px; color: var(--acc2); white-space: nowrap; }
.msg.out.voice .lbl { right: 2px; } .msg.in.voice .lbl { left: 2px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(139, 61, 255, .16); border: 1px solid rgba(180, 140, 255, .3); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc2); animation: wm-dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes holo-in { from { opacity: 0; transform: translate3d(0, 16px, 60px) scale(.94); } 60% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }

/* rules (chapter 3) */
.rules { display: grid; gap: 8px; width: 420px; }
.rule { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); transition: border-color .3s; }
.rule.on { border-color: var(--acc-line); }
.rule b { font-size: 14.5px; } .rule small { display: block; color: var(--dim); font-size: 12.5px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .6); border: 1px solid var(--glass-line); }
.seg button { border: 0; padding: 6px 11px; font-size: 12px; white-space: nowrap; }
.seg button.on { background: #fff; color: #0a0612; }
.preview { margin-top: 12px; width: 420px; min-height: 112px; padding: 14px; }
.preview .msg { max-width: 100%; animation: pop .4s var(--ease) both; }
.preview .acts { display: flex; gap: 8px; margin-top: 10px; }
.preview .acts span { padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-weight: 600; font-size: 12.5px; }

/* plans (chapter 4) */
#cur { margin-top: 22px; }
.soon { margin-top: 22px; color: var(--dim); font-size: 14px; max-width: 360px; }
.plans { display: grid; gap: 12px; width: 380px; }
.plan { padding: 20px 22px; border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)), rgba(14, 9, 26, .86); border: 1px solid var(--glass-line); }
.plan.best { border-color: rgba(180, 140, 255, .5); box-shadow: 0 0 60px rgba(139, 61, 255, .25); }
.plan .head { display: flex; justify-content: space-between; align-items: baseline; }
.plan h3 { font-size: 20px; }
.plan .price { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.plan .price small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.plan ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; color: var(--soft); font-size: 14px; }
.plan li { display: flex; gap: 10px; }
.plan .btn { margin-top: 14px; width: 100%; justify-content: center; padding: 10px; }
.plan .btn.prime { justify-content: space-between; }

/* finale */
body[data-ch="5"] #figure { opacity: .42; }
.ch[data-i="2"] .col.left { max-width: 360px; }
.final { padding-bottom: 150px; }   /* keeps the footer links clear of the navigator */
.final .wm.giant { font-size: clamp(64px, 12vw, 200px); }
.final .lead { margin: 14px auto 0; font-size: clamp(17px, 1.5vw, 22px); }
.final .ctas { justify-content: center; }
.legal { margin-top: 30px; display: flex; gap: 18px; justify-content: center; color: var(--dim); font-size: 13.5px; }
.legal a { text-decoration: none; } .legal a:hover { color: #fff; }

/* social channels */
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; text-decoration: none; background: rgba(14, 9, 26, .85); border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.social a svg { width: 18px; height: 18px; }
.social a:hover { transform: translateY(-2px) scale(1.06); border-color: var(--acc-line); box-shadow: 0 0 26px rgba(139, 61, 255, .6); }
.social-corner { position: fixed; z-index: 6; right: clamp(18px, 3.5vw, 44px); bottom: 22px; }
.social-final { justify-content: center; margin-top: 26px; }
body[data-ch="5"] .social-corner { opacity: 0; pointer-events: none; }
.social-corner { transition: opacity .4s; }
/* the cursor */
.reticle { position: fixed; z-index: 50; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid rgba(180, 140, 255, .7); pointer-events: none; will-change: transform;
  box-shadow: 0 0 18px rgba(139, 61, 255, .5); transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, border-color .25s; display: none; }
.reticle i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff; }
.reticle.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(139, 61, 255, .12); border-color: rgba(255, 255, 255, .7); }
@media (pointer: fine) { .reticle { display: block; } }

/* phones: header on a dark band, the assistant below it, the chapter at the bottom */
@media (max-width: 860px) {
  header.top { padding: 14px 16px; background: linear-gradient(180deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .6) 70%, transparent); }
  header.top .wm { font-size: 20px; }
  header.top nav .btn.ghost { display: none; }
  header.top .btn.prime { padding: 9px 10px 9px 14px; font-size: 13.5px; gap: 10px; }
  header.top .btn.prime .key { width: 24px; height: 24px; }
  header.top .btn.prime .key::before { left: 6px; top: 11px; width: 10px; } header.top .btn.prime .key::after { left: 10px; top: 8px; width: 6px; height: 6px; }
  .ch { grid-template-columns: 1fr; align-content: end; gap: 12px; padding: 0 16px 84px; }
  .ch .col { max-width: none; }
  .ch .col.right { justify-self: stretch; }
  .ch h1 { font-size: 34px; } .ch h2 { font-size: 27px; }
  .ch .sub { font-size: 15px; margin-top: 8px; }
  .ch .lead { font-size: 14px; margin-top: 8px; }
  .ch .hint, .telemetry, .orb .tip, .social-corner { display: none; }
  .ch .ctas { margin-top: 14px; flex-wrap: nowrap; gap: 8px; } .ch .btn.lg { padding: 12px 14px; font-size: 14px; }
  .ch .btn.prime.lg { padding: 11px 10px 11px 16px; } .ch .btn.prime.lg .key { width: 28px; height: 28px; }
  .ch .lead { font-size: 13.5px; line-height: 1.5; }
  .ch[data-i="0"] .lead { font-size: 13px; }
  .always { margin-top: 10px; font-size: 12px; padding: 6px 12px 6px 6px; } .always b { font-size: 11.5px; }
  .ch[data-i="3"] .rules { gap: 5px; } .ch[data-i="3"] .preview { min-height: 0; padding: 10px; } .ch[data-i="3"] .preview .acts { display: none; }
  .langs { margin-top: 10px; gap: 4px; font-size: 12px; } .langs b { padding: 3px 8px; } .langs b:nth-of-type(n+5) { display: none; }
  .day { margin-top: 10px; }
  .holo { position: absolute; right: 12px; top: 70px; width: 52vw; height: 40vh; }
  .holo .msg { font-size: 11px; } .holo .msg.voice { min-width: 150px; }
  .rules { width: auto; gap: 6px; } .rule { padding: 7px 12px; } .rule small, .rule:nth-child(n+4) { display: none; } .preview { width: auto; min-height: 84px; }
  .plans { width: auto; grid-template-columns: 1fr 1fr; } .plan ul { display: none; } .plan { padding: 14px; } .plan .head { display: block; } .plan .price { font-size: 22px; }
  .plan .btn { white-space: nowrap; font-size: 13px; padding: 9px 6px; } .plan .btn.prime { padding: 8px 8px 8px 12px; } .plan .btn.prime .key { display: none; }
  .detail { width: auto; min-height: 0; padding: 14px 16px; } .detail ul { font-size: 13px; gap: 5px; margin-top: 8px; } .detail li:nth-child(n+3) { display: none; } .detail .uses { display: none; }
  .feat-list { display: none; }
  .soon { display: none; }
  .timeline { bottom: 14px; gap: 12px; padding: 8px 14px; } .timeline button { width: 30px; height: 30px; } .timeline button svg { width: 14px; height: 14px; }
  .orb { width: 40px; height: 40px; margin: -20px 0 0 -20px; } .orb svg { width: 17px; height: 17px; }
  .node { left: -50px; width: 100px; height: 40px; top: -20px; font-size: 11px; padding: 0 8px; gap: 6px; } .node .ic { width: 22px; height: 22px; } .node .ic svg { width: 13px; height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ch.live .col > *, .ch.leaving, .beam.go, .flash.go, .wm i, .typing i, .btn.prime::after, .holo-frame::after, .holo-base i { animation: none !important; }
  .ch.leaving { visibility: hidden; }
}
