/* Solaise AI holding page.
   Tokens follow docs/design/solaise-ui-spec.md §4 (dark). Motion names follow §7.
   Only transform, opacity and filter are animated. */

:root {
  --ink: #0F1015;
  --text: #F6EFE6;
  --text-2: rgba(246, 239, 230, .74);
  --text-3: rgba(246, 239, 230, .56);
  --amber: #F5C07A;
  --fill-top: #FFD79C;
  --fill-bottom: #F2B86D;
  --on-accent: #231708;
  --orb-core: #FFE6AB;
  --orb-rose: #E8958A;
  --success: #9FD8B2;
  --warning: #F2A65A;
  --error: #F29186;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --smooth: cubic-bezier(.2, .8, .2, 1);
  --tap: .35s var(--smooth);
  --panel-morph: .38s var(--smooth);

  --hairline: rgba(255, 255, 255, .12);
  --gutter: clamp(16px, 4vw, 40px);
  --title-gradient: linear-gradient(100deg, #FFE6AB 0%, #F5C07A 34%, #EFA585 66%, #E8958A 82%, #F2B98A 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.rm { scroll-behavior: auto; }

body {
  margin: 0;
  min-height: 100vh;
  /* No background here: html carries the ink, so the fixed backdrop shows. */
  font: 400 17px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--amber); }
a:hover { color: #FFD9A0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.eyebrow {
  margin: 0;
  font: 700 11.5px/1.3 var(--font-text);
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--amber);
}

/* Glass: blur 24 + saturate 160 %, translucent fill, 1 px hairline, soft top
   highlight. Never nest glass inside glass; inner surfaces use .soft. */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .04) 100%), rgba(15, 16, 21, .42);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 18px 48px rgba(0, 0, 0, .32);
}
.soft {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

/* Elements that rise in start hidden only when JS will reveal them. */
.js .will-rise { opacity: 0; }
.js.rm .will-rise { opacity: 1; }

/* Every CSS loop pauses off-screen and in hidden tabs. */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after,
.tab-hidden *, .tab-hidden *::before, .tab-hidden *::after,
.is-paused *, .is-paused *::before, .is-paused *::after {
  animation-play-state: paused !important;
}

/* ---------- Backdrop: ink field with slowly drifting blurred blobs ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(158deg, #1C1D26 0%, #101117 52%, #1A1218 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.blob-amber {
  width: 85vmax; height: 85vmax;
  right: -30vmax; top: -38vmax;
  background: radial-gradient(closest-side, rgba(245, 192, 122, .46), rgba(245, 192, 122, .16) 55%, rgba(245, 192, 122, 0));
  animation: drift-a 34s ease-in-out infinite alternate;
}
.blob-rose {
  width: 72vmax; height: 72vmax;
  left: -28vmax; bottom: -34vmax;
  background: radial-gradient(closest-side, rgba(232, 149, 138, .38), rgba(232, 149, 138, .12) 55%, rgba(232, 149, 138, 0));
  animation: drift-b 41s ease-in-out infinite alternate;
}
.blob-violet {
  width: 56vmax; height: 56vmax;
  left: 22vw; top: 30vh;
  background: radial-gradient(closest-side, rgba(126, 112, 170, .26), rgba(126, 112, 170, 0));
  animation: drift-c 47s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-7vmax, 6vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(8vmax, -5vmax) scale(1.1); } }
@keyframes drift-c { to { transform: translate(-10vmax, -6vmax) scale(.92); } }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(48px, 9vh, 96px) var(--gutter) clamp(40px, 7vh, 72px);
  text-align: center;
}

.hero-orb {
  --size: clamp(150px, min(42vw, 27vh), 290px);
  position: relative;
  width: var(--size);
  height: var(--size);
  margin-bottom: clamp(4px, 2vh, 20px);
}
.orb-glow {
  position: absolute;
  inset: -55%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 150, .58), rgba(245, 192, 122, .24) 42%, rgba(232, 149, 138, .08) 68%, rgba(232, 149, 138, 0));
  opacity: 0;
  transition: opacity 1.6s ease-out;
}
.orb-mat, .orb-float, .orb-tilt { position: absolute; inset: 0; }
.orb-float { perspective: 900px; }
.orb-tilt { transform-style: preserve-3d; will-change: transform; }
.orb-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .45));
  -webkit-user-drag: none;
  user-select: none;
}

/* Specular highlight sweeping across the glass, masked to the icon's shape. */
.orb-sweep {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask: url(/assets/icon-320.webp) center / contain no-repeat;
  mask: url(/assets/icon-320.webp) center / contain no-repeat;
  mix-blend-mode: screen;
  transform: translateZ(1px);
  pointer-events: none;
}
.sweep-band {
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: 0;
  width: 38%;
  background: linear-gradient(100deg, rgba(255, 246, 230, 0) 0%, rgba(255, 246, 230, .32) 45%, rgba(255, 255, 255, .48) 52%, rgba(255, 246, 230, 0) 100%);
  transform: translateX(-130%) rotate(14deg);
}

/* Thin rings orbiting at 16–22 s a revolution. A spark rides each ring and
   dims while it passes behind the orb. */
.orb-rings {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  max-width: none;
  overflow: visible;
  transform: translateZ(34px);
  opacity: 0;
  transition: opacity 1.4s ease-out .2s;
  pointer-events: none;
  mix-blend-mode: screen;
}
.ring-spin { transform-box: view-box; transform-origin: 0 0; }
.ring-line {
  fill: none;
  stroke: url(#ring-light);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
.ring-spark { fill: #FFF6E6; opacity: .7; transform-box: fill-box; }

.is-ready .orb-glow { opacity: 1; animation: glow-breathe 4.8s ease-in-out infinite; }
.is-ready .orb-float { animation: float 4.8s ease-in-out infinite; }
.is-ready .orb-rings { opacity: 1; }
.is-ready .ring-a { animation: orbit 16s linear infinite; }
.is-ready .ring-b { animation: orbit 22s linear infinite -7s; }
.is-ready .ring-c { animation: orbit 19s linear infinite -13s; }
.is-ready .ring-a .ring-spark { animation: spark-depth 16s linear infinite; }
.is-ready .ring-b .ring-spark { animation: spark-depth 22s linear infinite -7s; }
.is-ready .ring-c .ring-spark { animation: spark-depth 19s linear infinite -13s; }
.is-ready .sweep-band { animation: sweep 6.5s cubic-bezier(.45, 0, .25, 1) infinite 1.2s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes glow-breathe { 0%, 100% { transform: scale(1); opacity: .78; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes orbit { to { transform: rotate(360deg); } }
/* 0–50 %: the spark is on the near (lower) half of the ring. */
@keyframes spark-depth {
  0% { opacity: .55; } 8%, 42% { opacity: 1; } 50% { opacity: .5; }
  58%, 92% { opacity: .06; } 100% { opacity: .55; }
}
@keyframes sweep {
  0% { transform: translateX(-130%) rotate(14deg); }
  26%, 100% { transform: translateX(300%) rotate(14deg); }
}

.hero-eyebrow { margin-top: 6px; }

.hero-title {
  position: relative;
  margin: 0;
  font: 800 clamp(54px, min(18vw, 17.5vh), 210px)/.95 var(--font-rounded);
  letter-spacing: -.045em;
  text-align: left;
  /* Optical nudge: the negative tracking leaves trailing space after the I. */
  margin-right: -.045em;
}
.title-letters, .shine-text { display: inline-block; white-space: nowrap; position: relative; }
.title-letters .ch, .shine-text .ch {
  display: inline-block;
  padding: .08em 0 .1em;
}
.title-letters .ch {
  color: transparent;
  background-image: var(--title-gradient);
  background-size: var(--title-w, 100%) 100%;
  background-position: var(--x, 0) 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}
.js .title-letters.will-rise { opacity: 0; }

/* Shimmer: a bright copy of the word, revealed by a band that moves with
   transform while the text inside counter-moves, so only the light travels. */
.title-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease-out 1.6s;
}
.shine-mover {
  position: absolute;
  inset: 0;
  text-align: left;
  -webkit-mask: linear-gradient(100deg, transparent 38%, #000 50%, transparent 62%);
  mask: linear-gradient(100deg, transparent 38%, #000 50%, transparent 62%);
  transform: translateX(-100%);
}
.shine-text { color: rgba(255, 249, 236, .55); }
.is-ready .title-shine { opacity: 1; }
.is-ready .shine-mover { animation: shine-band 9s cubic-bezier(.45, 0, .3, 1) infinite 2.4s; }
.is-ready .shine-mover .shine-text { animation: shine-counter 9s cubic-bezier(.45, 0, .3, 1) infinite 2.4s; }
@keyframes shine-band { 0% { transform: translateX(-100%); } 42%, 100% { transform: translateX(100%); } }
@keyframes shine-counter { 0% { transform: translateX(100%); } 42%, 100% { transform: translateX(-100%); } }

.hero-sub {
  margin: 4px 0 0;
  max-width: 32ch;
  font: 500 clamp(19px, 2.6vw, 26px)/1.35 var(--font);
  letter-spacing: -.012em;
  color: var(--text-2);
  text-wrap: balance;
}

.hero-chips {
  list-style: none;
  margin: clamp(14px, 3vh, 28px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1120px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 13px;
  border-radius: 16px;
  font: 500 14.5px/1.3 var(--font-text);
  color: var(--text);
  text-align: left;
}
.chip svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: clamp(16px, 4vh, 36px);
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 14px/1 var(--font-text);
  color: var(--text-3);
  text-decoration: none;
}
.hero-cue:hover { color: var(--text); }
.hero-cue svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  animation: nudge 2.4s ease-in-out infinite 3.5s;
}
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(3px); } }

/* ---------- Shared section type ---------- */
.section {
  padding: clamp(56px, 10vh, 120px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-title {
  margin: 6px 0 0;
  font: 700 clamp(30px, 4.4vw, 46px)/1.1 var(--font-rounded);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.lede {
  margin: 10px 0 0;
  font: 400 clamp(16px, 1.6vw, 18px)/1.5 var(--font-text);
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- 2. Cooking in progress ---------- */
.status-card {
  width: 100%;
  max-width: 1080px;
  border-radius: 28px;
  padding: clamp(22px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "head code" "progress code";
  grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 4vw, 48px);
  row-gap: clamp(24px, 4vw, 40px);
}
.status-head { grid-area: head; }
.progress-block { grid-area: progress; align-self: end; }
.code-window { grid-area: code; align-self: center; }
.status-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 3vw, 32px);
}

.pot {
  position: relative;
  flex-shrink: 0;
  width: clamp(104px, 14vw, 136px);
  aspect-ratio: 1;
}
.pot svg { width: 100%; height: 100%; overflow: visible; }
.pot-body { fill: rgba(255, 255, 255, .06); stroke: var(--amber); stroke-width: 2.6; stroke-linejoin: round; }
.pot-line { fill: none; stroke: var(--amber); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pot-line.hob { stroke: var(--text-3); stroke-width: 2; }
.lid path { fill: rgba(245, 192, 122, .16); stroke: var(--amber); stroke-width: 2.6; stroke-linejoin: round; }
.lid circle { fill: var(--amber); }
.lid { transform-box: fill-box; transform-origin: 50% 100%; animation: lid-rattle 3.6s ease-in-out infinite; }
.flame { fill: url(#flame); transform-box: fill-box; transform-origin: 50% 100%; }
.f1 { animation: flicker 1.1s ease-in-out infinite; }
.f2 { animation: flicker 1.3s ease-in-out infinite -.4s; }
.f3 { animation: flicker 1.2s ease-in-out infinite -.8s; }
@keyframes lid-rattle {
  0%, 62%, 100% { transform: none; }
  66% { transform: translateY(-3px) rotate(-3deg); }
  70% { transform: translateY(-1px) rotate(2.5deg); }
  74% { transform: translateY(-3px) rotate(-2deg); }
  78% { transform: none; }
}
@keyframes flicker { 0%, 100% { transform: scaleY(1); opacity: .95; } 50% { transform: scaleY(.78) scaleX(1.06); opacity: .75; } }

/* Steam made of tiny code glyphs. */
.steam {
  position: absolute;
  top: 26%;
  font: 600 13px/1 var(--font-mono);
  color: var(--orb-core);
  white-space: nowrap;
  opacity: 0;
  animation: steam 3.6s ease-out infinite;
}
.s1 { left: 34%; --dx: -10px; animation-delay: 0s; }
.s2 { left: 50%; --dx: 6px; animation-delay: .6s; }
.s3 { left: 64%; --dx: 12px; animation-delay: 1.2s; }
.s4 { left: 42%; --dx: -4px; animation-delay: 1.8s; }
.s5 { left: 58%; --dx: -12px; animation-delay: 2.4s; }
.s6 { left: 30%; --dx: 8px; animation-delay: 3s; }
@keyframes steam {
  0% { transform: translate(-50%, 0) scale(.7); opacity: 0; }
  18% { opacity: .85; }
  70% { opacity: .35; }
  100% { transform: translate(calc(-50% + var(--dx)), -52px) scale(1.15); opacity: 0; }
}

.status-intro .section-title { margin-top: 4px; }

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 600 13.5px/1.3 var(--font-text);
  color: var(--text-2);
}
.progress-pct { color: var(--amber); font-variant-numeric: tabular-nums; }
.progress {
  position: relative;
  height: 12px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
}
.progress-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(180deg, var(--fill-top) 0%, var(--fill-bottom) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 18px rgba(242, 184, 109, .45);
  transform: translateX(-28%);
}
.js .progress-fill { transform: translateX(-100%); }
.progress-sheen {
  position: absolute;
  inset: 0;
  width: 30%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
  transform: translateX(-120%);
  animation: sheen 2.6s cubic-bezier(.45, 0, .3, 1) infinite;
}
@keyframes sheen { 0% { transform: translateX(-120%); } 70%, 100% { transform: translateX(340%); } }

.status-line {
  min-height: 2.9em;
  margin: 16px 0 0;
  font: 500 16px/1.45 var(--font-text);
  color: var(--text-2);
}
.caret, .code-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -.16em;
  background: var(--amber);
  border-radius: 1px;
  animation: blink 1s steps(1) infinite;
}
.is-typing > .caret, .is-typing .code-caret { animation: none; }
@keyframes blink { 50% { opacity: 0; } }

/* Inside glass, so not glass: a plain dark fill and a hairline. */
.code-window {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(9, 10, 14, .62);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 32px rgba(0, 0, 0, .28);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .03);
}
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.lights i:first-child { background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.code-file { font: 600 12px/1 var(--font-text); color: var(--text-3); }
.code {
  margin: 0;
  padding: 14px 16px 6px;
  position: relative;
  font: 400 clamp(11px, 1.15vw, 13px)/1.6 var(--font-mono);
  color: rgba(246, 239, 230, .8);
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
}
.code-ghost { display: block; visibility: hidden; }
.code-live { position: absolute; inset: 14px 16px 6px; }
.tok-k { color: var(--amber); font-weight: 600; }
.tok-t { color: #EBC3B2; }
.tok-c { color: rgba(246, 239, 230, .5); font-style: italic; }
.tok-p { color: rgba(246, 239, 230, .52); }
.tok-f { color: var(--text); }
.tok-m { color: #D9CFE8; }
.code-run {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
  padding: 8px 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font: 500 clamp(11px, 1.15vw, 13px)/1.4 var(--font-mono);
  color: var(--text-2);
}
.run-prompt { color: var(--amber); margin-right: 6px; }
.run-caret { display: none; }
.code-run.is-typing .run-caret { display: inline-block; }
.run-result {
  margin-left: auto;
  color: var(--success);
  font-weight: 600;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .3s ease-out, transform var(--tap);
}
.run-result.is-shown { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .status-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "progress" "code"; grid-template-rows: none; }
}
@media (max-width: 560px) {
  .code { white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* ---------- 3. Motion preview ---------- */
.preview-head { max-width: 760px; text-align: center; }
.preview-head .lede { margin-inline: auto; }

.stage {
  position: relative;
  width: 100%;
  /* Keep the whole desktop on screen on short laptop displays. */
  max-width: min(1280px, 158vh);
  margin-top: clamp(28px, 5vh, 48px);
}
.stage-viewport {
  position: relative;
  height: var(--stage-h, 62vw);
  border-radius: clamp(14px, 2vw, 24px);
  overflow: hidden;
  background: #101117;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 7px rgba(10, 10, 14, .9), 0 0 0 8px rgba(255, 255, 255, .08), 0 40px 100px rgba(0, 0, 0, .55);
}
.stage-hit {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: clamp(14px, 2vw, 24px);
}
.stage-hit:focus-visible { outline-offset: 10px; }

/* The canvas is laid out in app points and scaled to fit (JS sets --cw, --ch, --s). */
.stage-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cw, 1280px);
  height: var(--ch, 780px);
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
  overflow: hidden;
  font-family: var(--font-text);
  color: var(--text);
  user-select: none;
}
.stage .is-off { opacity: 0; visibility: hidden; }

.desk-wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 52% at 80% 14%, rgba(245, 192, 122, .5), rgba(245, 192, 122, 0) 62%),
    radial-gradient(46% 50% at 14% 86%, rgba(232, 149, 138, .48), rgba(232, 149, 138, 0) 64%),
    radial-gradient(36% 40% at 46% 52%, rgba(126, 112, 170, .34), rgba(126, 112, 170, 0) 70%),
    radial-gradient(22% 26% at 64% 70%, rgba(255, 230, 171, .2), rgba(255, 230, 171, 0) 70%),
    linear-gradient(158deg, #1C1D26 0%, #101117 52%, #1A1218 100%);
}

/* App glass, as in the reference mock-ups (the panel, Dock and end card). */
.app-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .02) 100%), rgba(20, 19, 24, .72);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .42), inset 0 -1px 1px rgba(255, 255, 255, .07), 0 18px 48px rgba(0, 0, 0, .42);
}
/* Rows and chips inside the window: a plain fill, never glass on glass. */
.app-soft {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

/* Menu bar */
.menubar {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  font: 500 13px/1 var(--font-text);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  background: rgba(16, 16, 22, .22);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  z-index: 5;
}
.mb-left { display: flex; gap: 20px; }
.mb-left b { font-weight: 700; }
.mb-right { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.mb-glyph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 22px;
  border-radius: 7px;
}
.mb-glyph::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, .24); opacity: 0; transition: opacity var(--tap); }
.mb-glyph svg { position: relative; }
.mb-glyph svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.mb-glyph.active::before { opacity: 1; }
.mb-mic { width: 8px; height: 8px; border-radius: 50%; background: #FF9F0A; box-shadow: 0 0 6px rgba(255, 159, 10, .7); transition: opacity .3s; }
.mb-clock { white-space: pre; font-variant-numeric: tabular-nums; }
.stage.is-compact .mb-extra { display: none; }

/* Dock */
.dock {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 10px 14px 12px;
  border-radius: 24px;
  z-index: 4;
}
.dock .tile {
  width: 52px; height: 52px; border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 10px rgba(0, 0, 0, .3);
}
.t1 { background: linear-gradient(160deg, #5B6B8C, #3C465E); }
.t2 { background: linear-gradient(160deg, #6E8C7A, #465E50); }
.t3 { background: linear-gradient(160deg, #8C6E6E, #5E4646); }
.t4 { background: linear-gradient(160deg, #7A6E8C, #4E465E); }
.t5 { background: linear-gradient(160deg, #8C846E, #5E5846); }
.stage.is-compact .t4, .stage.is-compact .t5 { display: none; }
.dock-sep { width: 1px; height: 44px; align-self: center; background: rgba(255, 255, 255, .18); }
.dock-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 56px; }
.dock-icon { width: 56px; height: 56px; margin-bottom: -4px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.dock-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .85); }

/* Setup window: 840 × 620, scaled to fit (--ws). */
.win-pos {
  position: absolute;
  left: 50%;
  top: var(--wy, 50%);
  width: 840px;
  height: 620px;
  transform: translate(-50%, -50%) scale(var(--ws, 1));
  z-index: 2;
}
.win {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(22, 23, 29, .74);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  backdrop-filter: blur(40px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.win-lights { position: absolute; left: 20px; top: 20px; z-index: 3; display: flex; gap: 8px; }
.win-lights i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.win-lights i:first-child { background: #FF5F57; }
.win-inner { display: flex; flex-direction: column; height: 100%; }

.w-band {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background: radial-gradient(70% 95% at 50% 100%, rgba(245, 192, 122, .17) 0%, rgba(245, 192, 122, 0) 70%), linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: center;
}
.band-270 { height: 270px; }
.band-250 { height: 250px; }
.band-230 { height: 230px; }
.band-200 { height: 200px; }
.w-content { display: flex; flex-direction: column; gap: 12px; padding: 22px 44px 0; flex-grow: 1; min-height: 0; }
.w-eyebrow { margin: 0; font: 700 11.5px/1.2 var(--font-text); letter-spacing: .9px; text-transform: uppercase; color: var(--amber); }
.w-title { margin: 0; font: 700 30px/36px var(--font-rounded); letter-spacing: -.02em; }
.w-body { margin: 0; max-width: 680px; font: 400 15px/22px var(--font-text); color: rgba(246, 239, 230, .76); }
.w-note { margin: 0; display: flex; align-items: center; gap: 10px; font: 400 12.5px/17px var(--font-text); color: rgba(246, 239, 230, .66); }
.w-note .odot { width: 8px; height: 8px; border-radius: 50%; background: #FF9F0A; box-shadow: 0 0 6px rgba(255, 159, 10, .7); flex-shrink: 0; }
.w-sub { font: 600 12px/1 var(--font-text); color: var(--text-3); margin-bottom: 8px; }
.w-grid2, .w-grid3 { display: grid; gap: 10px; }
.w-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.w-chip { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 14px; font: 500 13.5px/18px var(--font-text); }
.w-chip .ic { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(245, 192, 122, .16); color: var(--amber); flex-shrink: 0; }
.w-chip.plain .ic { background: none; width: auto; height: auto; }
.w-rows { display: flex; flex-direction: column; gap: 8px; }
.w-row { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 16px; }
.w-row .ic { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(245, 192, 122, .14); color: var(--amber); flex-shrink: 0; }
.w-row .tx { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.w-row .tx b { font: 600 14px/1.25 var(--font-text); }
.w-row .tx span { font: 400 12.5px/17px var(--font-text); color: rgba(246, 239, 230, .74); }
.w-way { display: flex; flex-direction: column; gap: 7px; padding: 14px; border-radius: 16px; }
.w-way .hd { display: flex; align-items: center; gap: 8px; color: var(--amber); }
.w-way b { font: 600 14px/1.2 var(--font-text); }
.w-way span.d { font: 400 12.5px/17px var(--font-text); color: rgba(246, 239, 230, .7); }
.w-foot { display: flex; align-items: center; gap: 10px; padding: 16px 32px 26px 44px; flex-shrink: 0; margin-top: auto; }
.w-foot .grow { flex-grow: 1; }

.step-dots { display: flex; gap: 6px; align-items: center; }
.step-dots i { display: block; width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .24); }
.step-dots i.done { background: rgba(245, 192, 122, .7); }
.step-dots i.now { width: 22px; background: var(--amber); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 15px/1 var(--font-text);
  letter-spacing: -.01em;
  white-space: nowrap;
  border: 0;
}
.btn-pro { background: linear-gradient(180deg, var(--fill-top) 0%, var(--fill-bottom) 100%); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -1px 0 rgba(120, 70, 10, .18), 0 8px 22px rgba(242, 184, 109, .32); }
.btn-glass { background: rgba(255, 255, 255, .12); color: var(--text); border: 1px solid rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-plain { background: transparent; color: rgba(246, 239, 230, .74); padding: 0 14px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-md { height: 38px; padding: 0 16px; font-size: 14px; }
.btn .spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(35, 23, 8, .25); border-top-color: var(--on-accent); animation: spinner .9s linear infinite; }
.btn-glass .spin { border-color: rgba(246, 239, 230, .25); border-top-color: var(--text); }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); font: 600 12px/1 var(--font-text); color: rgba(246, 239, 230, .86); }
.btn-pro .kbd { background: rgba(35, 23, 8, .12); border-color: rgba(35, 23, 8, .2); color: var(--on-accent); }
.pill-ok { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(159, 216, 178, .16); color: var(--success); font: 600 13px/1 var(--font-text); white-space: nowrap; }
.pill-ok.sm { height: 26px; padding: 0 10px; font-size: 12px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico.sm { width: 16px; height: 16px; stroke-width: 2; }
.ico.xs { width: 14px; height: 14px; stroke-width: 2.2; }
@keyframes spinner { to { transform: rotate(360deg); } }

/* Orb: radial core (orbCore → orbRose), three elliptical rings, a specular dot. */
.orb { position: relative; flex-shrink: 0; --lv: 0; }
.orb > i { position: absolute; display: block; border-radius: 50%; }
.orb .glow { inset: -34%; background: radial-gradient(circle, rgba(255, 214, 150, .42) 0%, rgba(255, 214, 150, 0) 64%); }
.orb .core { inset: 9%; background: radial-gradient(circle at 42% 38%, #FFF9EA 0%, #FFE6AB 20%, #F8C995 44%, #EBA088 70%, #C87C88 100%); box-shadow: inset -6px -10px 22px rgba(150, 60, 80, .34), inset 7px 9px 18px rgba(255, 255, 255, .55); }
.orb .core-done { inset: 9%; opacity: 0; transition: opacity .3s ease-out; background: radial-gradient(circle at 42% 38%, #FFFBEF 0%, #F1F4D6 22%, #C9E6BF 50%, #9FD8B2 74%, #6FA88F 100%); box-shadow: inset -6px -10px 22px rgba(40, 90, 60, .3), inset 7px 9px 18px rgba(255, 255, 255, .55); }
.orb .ring { border: 1.5px solid rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .85) rgba(255, 255, 255, .22) rgba(255, 255, 255, .06) rgba(255, 255, 255, .5); box-shadow: inset 0 0 6px rgba(255, 255, 255, .18); }
.orb .r1 { inset: 24% -9%; transform: rotate(-28deg); }
.orb .r2 { inset: 14% -3%; transform: rotate(-58deg); }
.orb .r3 { inset: 30% -13%; transform: rotate(12deg); }
.orb .spec { inset: 14% 44% 58% 18%; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%); }
.orb .ripple { inset: 4%; border: 1.5px solid rgba(255, 220, 170, .55); opacity: 0; }
.orb.s150 { width: 150px; height: 150px; }
.orb.s120 { width: 120px; height: 120px; }
.orb.s80 { width: 80px; height: 80px; }
.orb.s72 { width: 72px; height: 72px; }
.orb.s64 { width: 64px; height: 64px; }
.orb.s48 { width: 48px; height: 48px; }
.orb.s40 { width: 40px; height: 40px; }
/* idle breathes 1 ↔ 1.035 over 4.8 s; rings 16–22 s a revolution */
.orb.idle .core { animation: breathe 4.8s ease-in-out infinite; }
.orb.idle .r1 { animation: spin1 16s linear infinite; }
.orb.idle .r2 { animation: spin2 22s linear infinite; }
.orb.idle .r3 { animation: spin3 19s linear infinite; }
/* listening follows the level (--lv, 0…1, set from script); rings 7–9 s */
.orb.listen .core, .orb.speak .core, .orb.listen .core-done { transform: scale(calc(1 + var(--lv) * .1)); }
.orb.listen .glow, .orb.speak .glow { opacity: calc(.75 + var(--lv) * .25); }
.orb.listen .r1 { animation: spin1 7s linear infinite; }
.orb.listen .r2 { animation: spin2 9s linear infinite; }
.orb.listen .r3 { animation: spin3 8s linear infinite; }
/* thinking: fast rings (1.6–2.1 s) and an 18° hue drift */
.orb.think .r1 { animation: spin1 1.6s linear infinite; }
.orb.think .r2 { animation: spin2 2.1s linear infinite; }
.orb.think .r3 { animation: spin3 1.8s linear infinite; }
.orb.think .core { animation: hue 2.4s ease-in-out infinite; }
/* speaking: two ripples every 0.9 s */
.orb.speak .ripple { animation: ripple 1.8s ease-out infinite; }
.orb.speak .ripple.b { animation-delay: .9s; }
.orb.speak .r1 { animation: spin1 10s linear infinite; }
.orb.speak .r2 { animation: spin2 13s linear infinite; }
.orb.done .core-done { opacity: 1; }
.orb.done .r1 { animation: spin1 16s linear infinite; }
.orb.done .r2 { animation: spin2 22s linear infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes hue { 0%, 100% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(-18deg) saturate(1.15); } }
@keyframes spin1 { from { transform: rotate(-28deg); } to { transform: rotate(332deg); } }
@keyframes spin2 { from { transform: rotate(-58deg); } to { transform: rotate(-418deg); } }
@keyframes spin3 { from { transform: rotate(12deg); } to { transform: rotate(372deg); } }
@keyframes ripple { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* Band artwork for each setup step */
.mic-badge { position: relative; width: 112px; height: 112px; }
.mic-badge .disc { position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--orb-core); }
.mic-badge .disc .ico { width: 50px; height: 50px; stroke-width: 1.7; }
.ripple-ring { position: absolute; left: -54px; top: -54px; width: 220px; height: 220px; border-radius: 50%; border: 1.5px solid rgba(245, 192, 122, .5); opacity: 0; animation: ripple-ring 2.4s ease-out infinite; }
.ripple-ring:nth-child(2) { animation-delay: .8s; }
.ripple-ring:nth-child(3) { animation-delay: 1.6s; }
.is-granted .ripple-ring { animation: none; opacity: 0; transition: opacity .3s; }
@keyframes ripple-ring { 0% { transform: scale(.55); opacity: 0; } 15% { opacity: .75; } 100% { transform: scale(1.35); opacity: 0; } }
.badge-ok { position: absolute; right: -2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--success); color: #10251A; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.badge-ok .ico { width: 18px; height: 18px; stroke-width: 2.8; }

.vid { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 40px; }
.vid-label { font: 600 12px/1 var(--font-text); color: var(--text-3); }
.vid-sentence { font: 600 24px/32px var(--font-rounded); letter-spacing: -.01em; text-align: center; max-width: 620px; }
.vid-sentence .w { opacity: .34; transition: opacity .22s ease-out; }
.vid-sentence .w.lit { opacity: 1; }
.vid-bars { display: flex; align-items: center; gap: 4px; height: 42px; }
.vid-bars i { display: block; width: 4px; height: 40px; border-radius: 2px; background: linear-gradient(180deg, #FFE6AB, #E8958A); transform: scaleY(.1); }
.is-recording .vid-bars i { animation: bar 1s ease-in-out infinite; }
.vid-bars i:nth-child(2n) { animation-delay: -.3s !important; animation-duration: .8s !important; }
.vid-bars i:nth-child(3n) { animation-delay: -.6s !important; animation-duration: 1.2s !important; }
.vid-bars i:nth-child(5n) { animation-delay: -.15s !important; animation-duration: .7s !important; }
@keyframes bar { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(1); } }
.pills { display: flex; align-items: center; gap: 14px; }
.pills .p { position: relative; display: block; width: 44px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.pills .p::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--smooth); }
.pills .p.full::after { transform: none; }
.pills-wrap { display: flex; align-items: center; gap: 14px; }
.pills-count { font: 400 13px/1 var(--font-text); color: rgba(246, 239, 230, .66); }
.w-shield { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; font: 400 12.5px/17px var(--font-text); color: rgba(246, 239, 230, .74); }
.w-shield .ico { color: var(--amber); margin-top: 1px; width: 16px; height: 16px; }

.touch { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.touch-disc { position: relative; width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.touch-disc svg { width: 92px; height: 92px; fill: none; stroke: var(--orb-core); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.touch-disc .ridge { transform-box: view-box; transform-origin: 12px 12px; }
.touch-disc.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .82; } }
.touch-label { font: 600 13px/1 var(--font-text); color: rgba(246, 239, 230, .74); }
.touch-label.ok { color: var(--success); }

.orbit-stage { position: absolute; inset: 0; }
.orbit-ring { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .14); }
.orbit-orb { position: absolute; left: 50%; top: 50%; margin: -32px 0 0 -32px; }
.orbit-arm { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.orbit-spin { position: absolute; left: 0; top: 0; animation: orbit 18s linear infinite; }
.orbit-item { position: absolute; left: 0; top: 0; }
.orbit-counter { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; animation: counter 18s linear infinite; }
.o1 { transform: rotate(0deg); } .o1 .orbit-item { transform: translateX(70px); } .o1 .orbit-face { transform: rotate(0deg); }
.o2 { transform: rotate(72deg); } .o2 .orbit-item { transform: translateX(70px); } .o2 .orbit-face { transform: rotate(-72deg); }
.o3 { transform: rotate(144deg); } .o3 .orbit-item { transform: translateX(70px); } .o3 .orbit-face { transform: rotate(-144deg); }
.o4 { transform: rotate(216deg); } .o4 .orbit-item { transform: translateX(70px); } .o4 .orbit-face { transform: rotate(-216deg); }
.o5 { transform: rotate(288deg); } .o5 .orbit-item { transform: translateX(70px); } .o5 .orbit-face { transform: rotate(-288deg); }
.orbit-face { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.avatar { border-radius: 50%; font: 700 12px/1 var(--font-text); color: var(--on-accent); box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.av-amber { background: linear-gradient(160deg, #FFE6AB, #F2B86D); }
.av-rose { background: linear-gradient(160deg, #F7C9B8, #E8958A); }
.av-violet { background: linear-gradient(160deg, #E9E2FF, #B8A8E8); }
.tile-ic { border-radius: 11px; color: var(--orb-core); }
.flipcal { display: flex; animation: flipcal 3.2s ease-in-out infinite; transform-origin: top center; }
.swing { display: flex; animation: swing 2.8s ease-in-out infinite; transform-origin: top center; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes counter { to { transform: rotate(-360deg); } }
@keyframes flipcal { 0%, 60% { transform: rotateX(0); } 70% { transform: rotateX(-80deg); } 80%, 100% { transform: rotateX(0); } }
@keyframes swing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(12deg); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(5deg); } 80% { transform: rotate(0); } }

.wa-orb { position: absolute; left: 196px; top: 60px; }
.wa-chat { position: absolute; left: 478px; top: 30px; width: 230px; height: 150px; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wa-head { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-text); }
.wa-head i { width: 22px; height: 22px; border-radius: 50%; }
.wa-b1 { align-self: flex-start; width: 120px; height: 18px; border-radius: 9px; background: rgba(255, 255, 255, .14); }
.wa-b2 { align-self: flex-end; width: 92px; height: 18px; border-radius: 9px; background: rgba(245, 192, 122, .35); }
.wa-input { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.wa-field { flex-grow: 1; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.wa-send { width: 26px; height: 26px; border-radius: 50%; background: var(--fill-bottom); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
.wa-fly { position: absolute; left: 494px; top: 146px; height: 26px; padding: 0 12px; border-radius: 13px; display: flex; align-items: center; font: 600 12px/1 var(--font-text); color: var(--on-accent); background: linear-gradient(180deg, #FFE6AB, #F5C07A); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); white-space: nowrap; }
.wa-tick { position: absolute; left: 690px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--success); color: #10251A; display: flex; align-items: center; justify-content: center; }
.wa-tick .ico { width: 16px; height: 16px; stroke-width: 2.8; }

.switch { position: relative; width: 38px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .2); flex-shrink: 0; overflow: hidden; }
.switch::before { content: ""; position: absolute; inset: 0; background: var(--fill-bottom); opacity: 0; transition: opacity .25s; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .22s var(--smooth); }
.switch.on::before { opacity: 1; }
.switch.on::after { transform: translateX(16px); }
.w-toggle { display: flex; align-items: center; gap: 10px; font: 400 13.5px/1 var(--font-text); }

/* Assistant panel: capsule ↔ card, anchored under the menu bar glyph. */
.panel { position: absolute; right: 16px; top: 40px; width: var(--pw, 400px); z-index: 3; transform-origin: top right; }
.panel-bg { position: absolute; inset: 0; border-radius: 30px; transform-origin: top center; }
.panel.is-card .panel-bg { border-radius: 28px; }
.panel-content { position: relative; }
.cap { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; min-height: 72px; }
.cap-text { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; min-width: 0; }
.cap-label { font: 700 12px/1.3 var(--font-text); letter-spacing: .02em; color: var(--amber); }
.cap-label.ok { color: var(--success); }
.cap-body { font: 400 15px/21px var(--font-text); color: var(--text); }
.cap-body .dim { color: rgba(246, 239, 230, .6); }
.cap-body .w { opacity: .38; transition: opacity .2s ease-out; }
.cap-body .w.lit { opacity: 1; }
.cap-check { width: 30px; height: 30px; border-radius: 50%; background: var(--success); color: #10251A; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cap-check .ico { width: 17px; height: 17px; stroke-width: 2.8; }
.cap-trail { color: rgba(246, 239, 230, .6); display: flex; flex-shrink: 0; }
.cap-trail.ok { color: var(--success); }
/* "Thinking" shimmer: a bright copy revealed by a moving band (transform only). */
.cap-label.thinking { position: relative; color: rgba(246, 239, 230, .55); }
.shim { position: absolute; inset: 0; overflow: hidden; }
.shim-mv { position: absolute; inset: 0; -webkit-mask: linear-gradient(90deg, transparent 30%, #000 50%, transparent 70%); mask: linear-gradient(90deg, transparent 30%, #000 50%, transparent 70%); animation: shim-band 1.6s linear infinite; }
.shim-tx { display: block; color: #FFF3DC; animation: shim-counter 1.6s linear infinite; }
@keyframes shim-band { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
@keyframes shim-counter { from { transform: translateX(60%); } to { transform: translateX(-60%); } }
.caret-sm { display: inline-block; width: 2px; height: 17px; margin-left: 2px; vertical-align: -3px; background: var(--amber); animation: blink 1s steps(1) infinite; }
.typing .caret-sm { animation: none; }

.card { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-title { font: 700 16px/21px var(--font-text); letter-spacing: -.01em; }
.card-sub { font: 400 13px/18px var(--font-text); color: rgba(246, 239, 230, .74); }
.recipient { display: flex; align-items: center; gap: 10px; }
.recipient .avatar { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.recipient .who { display: flex; flex-direction: column; gap: 1px; flex-grow: 1; }
.recipient .who b { font: 600 15px/1.3 var(--font-text); }
.recipient .who span { font: 400 12.5px/1.3 var(--font-text); color: rgba(246, 239, 230, .66); }
.bubble { align-self: flex-start; max-width: 320px; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); font: 400 15px/21px var(--font-text); }
.card-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.card-foot { font: 400 12px/1.4 var(--font-text); color: var(--text-3); text-align: right; }
.card-foot.left { text-align: left; }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; font: 600 14px/1.2 var(--font-text); }
.opt .ico { color: var(--amber); }
.opt .n { margin-left: auto; font: 500 12px/1 var(--font-text); color: var(--text-3); }
.opts { display: flex; flex-direction: column; gap: 8px; }
.brief { font: 400 15px/21px var(--font-text); }
.brief .w { opacity: .38; transition: opacity .2s ease-out; }
.brief .w.lit { opacity: 1; }
.spark { width: 100%; height: 56px; }
.spark .area { fill: url(#spark-fill); }
.spark .line { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark .dot { fill: var(--orb-core); }
.news { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.news li { display: flex; gap: 10px; font: 400 14.5px/20px var(--font-text); }
.news .n { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(245, 192, 122, .16); color: var(--amber); font: 700 12px/22px var(--font-text); text-align: center; }
.gate { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1.4 var(--font-text); color: var(--text-3); }
.gate .ico { color: var(--success); width: 14px; height: 14px; }

/* The words you say, under the panel and above the Dock. */
.speech { position: absolute; left: 0; right: 0; bottom: 104px; display: flex; justify-content: center; z-index: 3; pointer-events: none; }
.speech-pill { display: flex; align-items: center; gap: 12px; max-width: calc(var(--cw, 1280px) - 40px); padding: 10px 18px 10px 14px; border-radius: 999px; background: rgba(15, 16, 21, .55); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.speech-bars { display: flex; align-items: center; gap: 3px; height: 24px; }
.speech-bars i { display: block; width: 3px; height: 24px; border-radius: 2px; background: linear-gradient(180deg, #FFE6AB, #E8958A); transform: scaleY(.2); animation: bar .9s ease-in-out infinite; }
.speech-bars i:nth-child(2) { animation-delay: -.2s; animation-duration: .7s; }
.speech-bars i:nth-child(3) { animation-delay: -.5s; animation-duration: 1.1s; }
.speech-bars i:nth-child(4) { animation-delay: -.1s; animation-duration: .8s; }
.speech-bars i:nth-child(5) { animation-delay: -.6s; animation-duration: 1s; }
.speech-bars i:nth-child(6) { animation-delay: -.35s; animation-duration: .75s; }
.speech-bars i:nth-child(7) { animation-delay: -.8s; animation-duration: .95s; }
.speech.quiet .speech-bars i { animation: none; }
.speech-text { font: 500 16px/1.3 var(--font-text); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.speech-text:empty { display: none; }

.endcard { position: absolute; left: 50%; top: 46%; width: min(560px, calc(var(--cw, 1280px) - 48px)); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 34px 32px; border-radius: 28px; text-align: center; z-index: 4; }
.endcard-orb { margin-bottom: 10px; }
.endcard-line { margin: 0; font: 600 22px/1.3 var(--font-rounded); letter-spacing: -.01em; color: var(--text-2); }
.endcard-line.strong { color: var(--text); }

/* Controls and caption under the stage */
.stage-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 22px; }
.ctl {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, .07); color: var(--text);
  cursor: pointer; transition: transform var(--tap);
}
.ctl:hover { background: rgba(255, 255, 255, .13); }
.ctl:active { transform: scale(.94); }
.ctl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctl .i-play { display: none; fill: currentColor; stroke: none; }
.ctl.is-paused .i-play { display: block; }
.ctl.is-paused .i-pause { display: none; }
.scene-dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; }
.dot-group { display: flex; align-items: center; gap: 2px; }
.dot-group-label { font: 700 11px/1 var(--font-text); letter-spacing: .9px; text-transform: uppercase; color: var(--text-3); margin-right: 6px; }
.scene-dot { position: relative; width: 22px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 6px; }
.scene-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 4px; background: rgba(255, 255, 255, .28); transition: transform var(--tap); }
.scene-dot:hover::after { background: rgba(255, 255, 255, .55); }
.scene-dot.done::after { background: rgba(245, 192, 122, .6); }
.scene-dot[aria-current="step"]::after { background: var(--amber); transform: scaleX(2.6); }
.stage-caption { margin: 14px 0 0; min-height: 3.2em; max-width: 720px; text-align: center; font: 400 17px/1.5 var(--font-text); color: var(--text-2); text-wrap: balance; }
.caption-act { display: block; margin-bottom: 4px; font: 700 11.5px/1.3 var(--font-text); letter-spacing: .9px; text-transform: uppercase; color: var(--amber); }
.preview-closing { margin: clamp(28px, 5vh, 48px) 0 0; font: 600 clamp(20px, 2.6vw, 28px)/1.35 var(--font-rounded); letter-spacing: -.01em; text-align: center; color: var(--text-2); text-wrap: balance; }
.preview-closing strong { color: var(--text); font-weight: 700; }

/* ---------- 4. Privacy ---------- */
.privacy-head { text-align: center; }
.privacy-tiles {
  list-style: none;
  margin: clamp(28px, 5vh, 44px) 0 0;
  padding: 0;
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tile-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 22px;
  border-radius: 22px;
}
.tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgba(245, 192, 122, .14);
  color: var(--amber);
}
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-card h3 { margin: 0; font: 650 17px/1.3 var(--font); letter-spacing: -.01em; text-wrap: balance; }
.tile-card p { margin: 0; font: 400 14.5px/1.45 var(--font-text); color: var(--text-2); }
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 720px;
  margin: 28px 0 0;
  font: 400 15.5px/1.55 var(--font-text);
  color: var(--text-2);
}
.privacy-note svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .privacy-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .privacy-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tile-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; }
  .tile-icon { grid-row: span 2; margin: 0; }
}

/* ---------- 5. Footer ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(40px, 8vh, 80px) var(--gutter) 48px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font: 700 17px/1 var(--font-rounded); letter-spacing: -.01em; }
.footer-glyph { width: 24px; height: 24px; fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; }
.footer-glyph circle { fill: var(--amber); stroke: none; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 0; font: 400 14px/1.5 var(--font-text); color: var(--text-3); }
.footer-meta a { color: var(--amber); text-underline-offset: 3px; }
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .06);
  color: var(--text-2);
  font: 600 13px/1 var(--font-text);
  cursor: pointer;
}
.motion-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.motion-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ---------- Privacy and terms pages ---------- */
/* Static backdrop here: these pages load no motion script to pause loops. */
.legal-body .blob { animation: none; }
.legal-header { max-width: 760px; margin: 0 auto; padding: 28px var(--gutter) 0; }
.legal-home { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--font-rounded); color: var(--text); text-decoration: none; }
.legal-home:hover { color: var(--text); }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(36px, 7vh, 72px) var(--gutter) clamp(48px, 8vh, 88px); }
.legal h1 { margin: 6px 0 0; font: 700 clamp(34px, 5vw, 48px)/1.1 var(--font-rounded); letter-spacing: -.025em; }
.legal-updated { margin: 10px 0 0; font: 400 14px/1.5 var(--font-text); color: var(--text-3); }
.legal-lede { margin: 26px 0 0; font: 400 clamp(17px, 1.8vw, 19px)/1.6 var(--font-text); color: var(--text); }
.legal h2 { margin: 36px 0 0; font: 650 20px/1.3 var(--font); letter-spacing: -.01em; }
.legal p:not([class]), .legal li { font: 400 16px/1.65 var(--font-text); color: var(--text-2); }
.legal p:not([class]) { margin: 10px 0 0; }
.legal-back { margin: 44px 0 0; font: 500 16px/1.5 var(--font-text); }
.legal ul { margin: 12px 0 0; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--amber); }
.legal a { text-underline-offset: 3px; }
.footer-meta a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- Reduce Motion ---------- */
.rm .blob,
.rm .hero-cue svg { animation: none !important; }
.rm .orb-glow { opacity: 1; animation: none !important; transition: none; }
.rm .orb-float, .rm .ring-spin, .rm .ring-spark, .rm .sweep-band, .rm .shine-mover, .rm .shine-text { animation: none !important; }
.rm .orb-rings { opacity: 1; transition: none; }
.rm .orb-tilt { transform: none !important; }
.rm .title-shine { display: none; }
.rm .ring-spark { opacity: .5; }
.rm .lid, .rm .flame, .rm .progress-sheen, .rm .caret, .rm .code-caret { animation: none !important; }
.rm .steam { animation: none !important; opacity: .55; transform: translate(-50%, -14px); }
.rm .s1 { transform: translate(-80%, -6px); }
.rm .s2 { transform: translate(-50%, -30px); }
.rm .s3 { transform: translate(-10%, -12px); }
.rm .s4, .rm .s5, .rm .s6 { display: none; }
.rm .run-result { transition: none; transform: none; }
/* Stage: static orbs, no ripples or orbiting, crossfades only. */
.rm .stage .orb *, .rm .stage .ripple-ring, .rm .vid-bars i, .rm .speech-bars i,
.rm .touch-disc, .rm .orbit-spin, .rm .orbit-counter, .rm .flipcal, .rm .swing,
.rm .shim-mv, .rm .shim-tx, .rm .caret-sm, .rm .btn .spin { animation: none !important; }
.rm .stage .orb .ripple { opacity: 0; }
.rm .stage .orb .core, .rm .stage .orb .core-done { transform: none !important; }
.rm .ripple-ring:first-child { opacity: .35; transform: scale(.85); }
.rm .vid-bars i, .rm .speech-bars i { transform: scaleY(.5); }
.rm .shim { display: none; }
.rm .pills .p::after, .rm .switch::after, .rm .switch::before, .rm .orb .core-done, .rm .mb-glyph::before { transition: none; }
.rm .vid-sentence .w, .rm .cap-body .w, .rm .brief .w { opacity: 1; transition: none; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .hero { gap: 14px; }
  .hero-chips { flex-direction: column; align-items: stretch; width: 100%; max-width: 380px; }
  .chip { font-size: 14px; }
}
