:root {
  color-scheme: light;
  --ink: #1c1a17;
  --ink-2: #5d574e;
  --ink-3: #a29c90;
  --hairline: rgba(60, 50, 30, 0.09);
  --green: #22c55e;
  --amber: #f59e0b;
  --accent: #0a84ff;
  --red: #ff453a;
  --control-bg: #fffefc;
  --pill-bg: #fffefc;
  --tabs-bg: rgba(55, 45, 25, 0.06);
  --bg: #fcfaf5;
  --code-k: #7c3aed;
  --code-s: #0f766e;
  --code-f: #2563eb;
  --font-sans:
    "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:
    "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, SFMono-Regular,
    Menlo, monospace;
  --font-system: -apple-system, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  --tracking: -0.01em;
  --shadow-card:
    0 0 0 1px rgba(45, 36, 20, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(45, 36, 20, 0.04), 0 6px 16px rgba(45, 36, 20, 0.06);
  --shadow-control:
    0 0 0 1px rgba(45, 36, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 5px rgba(45, 36, 20, 0.08);
  --shadow-control-hover:
    0 0 0 1px rgba(45, 36, 20, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 5px rgba(45, 36, 20, 0.1);
  --shadow-card-hover:
    0 0 0 1px rgba(45, 36, 20, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 4px rgba(45, 36, 20, 0.05), 0 10px 24px rgba(45, 36, 20, 0.08);
  --shadow-pill:
    0 0 0 1px rgba(45, 36, 20, 0.07), 0 1px 2px rgba(45, 36, 20, 0.07);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-bloom: cubic-bezier(0.16, 1.02, 0.3, 1);
  --ease-focus: cubic-bezier(0.2, 0.85, 0.25, 1);
  --ease-flip: cubic-bezier(0.77, 0, 0.175, 1);
  --tab-slide: 0.3s var(--ease-smooth);
  --fade: 0.22s var(--ease-out);
  --radius-sm: 6px;
  --radius-md: 9px;
}
@font-face {
  font-family: Inter Fallback;
  src: local("Arial");
  size-adjust: 107.06%;
  ascent-override: 89.77%;
  descent-override: 22.28%;
  line-gap-override: 0%;
}
@font-face {
  font-family: JetBrains Mono Fallback;
  src: local("Menlo");
  size-adjust: 100.5%;
  ascent-override: 77%;
  descent-override: 22%;
  line-gap-override: 0%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.5 var(--font-sans);
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main {
  width: 100%;
  min-width: 0;
  max-width: 440px;
  padding: 56px 24px;
}
@media (max-width: 480px) {
  main {
    padding: 36px 18px 44px;
  }
}
h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking);
  color: var(--ink-2);
}
@media (prefers-reduced-motion: no-preference) {
  main > * {
    animation: enter 0.6s var(--ease-out) both;
  }
  main > :nth-child(1) { animation-delay: 0ms; }
  main > :nth-child(2) { animation-delay: 90ms; }
  main > :nth-child(3) { animation-delay: 0.18s; }
  main > :nth-child(4) { animation-delay: 0.27s; }
  main > :nth-child(5) { animation-delay: 0.36s; }
  main > :nth-child(6) { animation-delay: 0.45s; }
  main > :nth-child(7) { animation-delay: 0.54s; }
  main > :nth-child(8) { animation-delay: 0.63s; }
  main > :nth-child(9) { animation-delay: 0.72s; }
  main > :nth-child(10) { animation-delay: 0.81s; }
}
@keyframes enter {
  0% {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}
button,
[role="tab"] {
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
:focus {
  outline: none;
}
:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px #2d241466;
  border-radius: var(--radius-sm);
}
::selection {
  background: #2d24141f;
  color: var(--ink);
}
.lockable {
  display: inline-flex;
  justify-content: center;
}

/* ---------- header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.top h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.title-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}
.version {
  font: 400 11px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
}
.top-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.meta {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
}
.dl-btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 12px/1 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
  background: var(--control-bg);
  height: 26px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-control);
  transition:
    color 0.12s ease,
    transform 0.12s ease,
    box-shadow 0.16s var(--ease-out);
}
.dl-btn:hover {
  box-shadow: var(--shadow-control-hover);
}
.dl-btn:active {
  transform: scale(0.96);
}
.dl-icon {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  flex: none;
}
.dl-icon svg {
  width: auto;
  height: 12px;
  display: block;
}
.dl-btn .lockable {
  min-width: 6.6ch;
  justify-content: flex-start;
}
.mute-btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink-3);
  transition:
    color 0.12s ease,
    transform 0.12s ease;
}
.mute-btn:hover {
  color: var(--ink);
}
.mute-btn:active {
  transform: scale(0.92);
}
.mute-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}
.mute-btn .ic-off {
  display: none;
}
.mute-btn.muted .ic-on {
  display: none;
}
.mute-btn.muted .ic-off {
  display: block;
}
.mute-btn.muted {
  color: var(--ink-3);
}

/* ---------- tagline / marquee ---------- */
.tagline {
  margin: 0 0 20px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.tagline kbd {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  color: var(--ink);
  background: var(--control-bg);
  border-radius: 5px;
  padding: 2px 5px 3px;
  box-shadow: var(--shadow-pill);
  vertical-align: 1px;
}
.admired {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  min-width: 0;
}
.admired-label {
  flex: none;
  font: 500 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.admired-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.admired-marquee {
  display: flex;
  width: max-content;
  animation: admired 36s linear infinite;
}
.admired-marquee:hover {
  animation-play-state: paused;
}
.admired-track {
  display: flex;
  gap: 20px;
  padding-right: 20px;
}
.admired-item {
  white-space: nowrap;
  font: 400 11px/1.4 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
  transition: color 0.16s ease;
}
.admired-item b {
  font-weight: 560;
  color: var(--ink-2);
  transition: color 0.16s ease;
}
.admired-item:hover {
  color: var(--ink-2);
}
.admired-item:hover b {
  color: var(--ink);
}
@keyframes admired {
  to {
    transform: translate(-50%);
  }
}

/* ---------- demo stage ---------- */
.stage-wrap {
  margin-bottom: 40px;
}
.stage {
  position: relative;
  aspect-ratio: 1560 / 1014;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f0e7 url("desktop-bg.png") center / cover no-repeat;
  box-shadow: var(--shadow-card);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.stage.tool-cursor:not(.open) {
  cursor: none;
}
.stage.tool-pen:not(.open),
.stage.tool-text:not(.open),
.stage.tool-white:not(.open),
.stage.tool-steps:not(.open) {
  cursor: crosshair;
}
.prompt {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  appearance: none;
  border: 0;
  background: var(--control-bg);
  color: var(--ink);
  font: 500 13px/1 var(--font-sans);
  letter-spacing: var(--tracking);
  padding: 11px 17px;
  border-radius: 999px;
  box-shadow: var(--shadow-control);
  cursor: pointer;
  transition:
    opacity 0.24s var(--ease-out),
    box-shadow 0.16s ease,
    transform 0.12s ease;
}
@media (hover: hover) and (pointer: fine) {
  .prompt:hover {
    box-shadow: var(--shadow-control-hover);
  }
}
.prompt:active {
  transform: translate(-50%, -50%) scale(0.97);
}
/* ambient invite ring — transform/opacity only, pauses when hidden */
.prompt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid rgba(28, 26, 23, 0.2);
  opacity: 0;
  pointer-events: none;
  animation: prompt-pulse 2.8s var(--ease-out) infinite;
}
@keyframes prompt-pulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}
.stage.open .prompt,
.stage.has-tool .prompt {
  opacity: 0;
  pointer-events: none;
}
.stage.open .prompt::after,
.stage.has-tool .prompt::after {
  animation-play-state: paused;
}
.fx-board {
  position: absolute;
  inset: 0;
  background: rgba(253, 253, 251, 0.96);
}
/* Board tool: a floating kanban window over the desktop (DOM order keeps it
   above the fx layers but below the scrim, so the wheel dims it) */
.board-panel {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  width: 74%;
  max-width: 300px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(45, 36, 20, 0.08),
    0 18px 40px rgba(30, 24, 12, 0.28);
  animation: board-pop 0.26s var(--ease-bloom) both;
}
.bp-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: rgba(55, 45, 25, 0.05);
  border-bottom: 1px solid var(--hairline);
}
.bp-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(45, 36, 20, 0.18);
}
.bp-title {
  margin-left: 6px;
  font: 600 9px/1 var(--font-sans);
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.bp-cols {
  display: flex;
  gap: 6px;
  padding: 8px;
}
.bp-col {
  flex: 1;
  min-width: 0;
  background: rgba(55, 45, 25, 0.04);
  border-radius: 7px;
  padding: 6px;
}
.bp-col b {
  display: block;
  font: 600 7.5px/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.bp-col i {
  display: block;
  font: 500 8px/1.25 var(--font-sans);
  font-style: normal;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 4px 5px;
  margin-top: 4px;
}
.bp-col i.hot {
  border-color: rgba(45, 36, 20, 0.28);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(45, 36, 20, 0.06);
}
@keyframes board-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.fx-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fx-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 999px;
  background: radial-gradient(circle, #ff5147 0 40%, #e0241a 100%);
  box-shadow:
    0 0 6px 2px rgba(255, 69, 58, 0.65),
    0 0 18px 6px rgba(255, 69, 58, 0.3);
  pointer-events: none;
  will-change: transform;
}
.fx-cross {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  margin: -12px;
  pointer-events: none;
  will-change: transform;
}
.fx-cross::before,
.fx-cross::after {
  content: "";
  position: absolute;
  background: rgba(20, 20, 26, 0.9);
  box-shadow: 0 0 0 0.8px rgba(255, 255, 255, 0.6);
}
.fx-cross::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
}
.fx-cross::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  margin-left: -0.75px;
}
.fx-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.step-badge {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 600 10px/18px var(--font-sans);
  text-align: center;
  box-shadow:
    0 0 0 2px #fff,
    0 4px 10px rgba(45, 36, 20, 0.3);
  animation: badge-pop 0.22s var(--ease-bloom) both;
}
@keyframes badge-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.fx-halo {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  margin: -17px;
  border-radius: 999px;
  border: 2.5px solid rgba(28, 26, 23, 0.85);
  box-shadow:
    0 0 0 5px rgba(28, 26, 23, 0.12),
    0 0 14px rgba(28, 26, 23, 0.25);
  pointer-events: none;
  will-change: transform;
}
.scrim {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(6, 7, 11, 0.64) 0%,
    rgba(10, 11, 16, 0.52) 58%,
    rgba(14, 15, 22, 0.52) 100%
  );
  backdrop-filter: blur(4px) saturate(1.05);
  -webkit-backdrop-filter: blur(4px) saturate(1.05);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.stage.open .scrim {
  opacity: 1;
}

/* wheel */
.wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 224px;
  height: 224px;
  margin: -112px 0 0 -112px;
  opacity: 0;
  transform: scale(calc(0.42 * var(--wheel-scale, 1)));
  transition:
    transform 0.32s var(--ease-bloom),
    opacity 0.24s ease;
  pointer-events: none;
  will-change: transform, opacity;
}
.stage.open .wheel {
  opacity: 1;
  transform: scale(var(--wheel-scale, 1));
}
.wheel-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.wheel-svg .ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}
.wedge {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.13s var(--ease-focus);
}
.wedge .shape-bg {
  fill: rgba(0, 0, 0, 0.38);
}
.wedge .shape {
  fill: rgba(255, 255, 255, 0.055);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}
.wedge .glyph {
  stroke: rgba(255, 255, 255, 0.88);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.13s ease;
}
.wedge text {
  fill: rgba(255, 255, 255, 0.84);
  font: 600 7px var(--font-sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-anchor: middle;
  transition: fill 0.13s ease;
}
.wedge.focused {
  transform: scale(1.08);
}
/* white-glass selection: the equipped tool keeps the fill too */
.wedge.focused .shape,
.wedge.is-active .shape {
  fill: url(#wgrad);
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.5;
}
.wedge.focused .glyph,
.wedge.is-active .glyph {
  stroke: #fff;
}
.wedge.focused text,
.wedge.is-active text {
  fill: #fff;
}

/* hub: dark disc + analog stick (Wheel/HubView.swift) */
.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 103px;
  height: 103px;
  margin: -51.5px 0 0 -51.5px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 50% 34%,
    rgba(30, 31, 38, 0.72) 0%,
    rgba(12, 13, 18, 0.9) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 13px rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
}
.hub::before {
  /* specular sheen, top-left */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 6%,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 55%
  );
  pointer-events: none;
}
.stick-base {
  grid-area: 1 / 1;
  width: 33px;
  height: 33px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 38%, #33353d 0%, #14151a 70%, #0c0d11 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.5),
    0 3px 4px rgba(0, 0, 0, 0.6);
}
.stick-cap {
  grid-area: 1 / 1;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 32%, #34353d 0%, #26272e 46%, #17181d 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.22),
    inset 0 0 0 3px rgba(255, 255, 255, 0.06),
    0 3px 5px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  will-change: transform;
}
.stick-cap .power {
  width: 8px;
  height: 8px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(255, 69, 58, 0.8));
  transition: opacity 0.15s ease;
}
.hub.armed .stick-cap {
  border-color: rgba(255, 69, 58, 0.7);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.18),
    0 0 10px rgba(255, 69, 58, 0.6),
    0 3px 5px rgba(0, 0, 0, 0.45);
}
.hub.armed .stick-cap .power {
  opacity: 1;
}

/* stage chrome */
.hud {
  position: absolute;
  top: 26px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
.hud-chip {
  font: 500 10px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(28, 28, 32, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 9px;
}
/* visible turn-off affordance (top-right) — shows only while a tool is active
   and the wheel is closed, so users never hit a dead end */
.turn-off {
  position: absolute;
  top: 26px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(28, 28, 32, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font: 500 10px/1 var(--font-sans);
  letter-spacing: var(--tracking);
  padding: 6px 10px 6px 8px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.2s var(--ease-out),
    transform 0.2s var(--ease-out),
    background-color 0.14s ease;
}
.turn-off svg {
  width: 11px;
  height: 11px;
}
.turn-off:hover {
  background: rgba(28, 28, 32, 0.82);
}
.turn-off:active {
  transform: scale(0.96);
}
.stage.has-tool .turn-off {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.stage.open .turn-off {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
.chip-timer {
  min-width: 5.4ch;
  text-align: center;
}
.toast {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translate(-50%, 4px);
  white-space: nowrap;
  font: 600 11px/1 var(--font-system);
  color: #fff;
  background: rgba(28, 28, 32, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s var(--ease-out);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- fact rows ---------- */
.rows {
  margin-bottom: 44px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  border-top: 1px solid var(--hairline);
}
.row:last-child {
  border-bottom: 1px solid var(--hairline);
}
.row-name {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
}
.demo-btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-weight: 560;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: var(--tracking);
  color: var(--ink);
  background: var(--control-bg);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-control);
  transition:
    transform 0.12s ease,
    box-shadow 0.14s ease;
  touch-action: none;
}
.demo-btn:hover {
  box-shadow: var(--shadow-control-hover);
}
.demo-btn:active {
  transform: scale(0.96);
}
.demo-btn kbd {
  font: 600 11px/1 var(--font-mono);
}
.trigger-hint {
  font: 400 11px/1 var(--font-sans);
  color: var(--ink-3);
}

/* ---------- tools tile grid ---------- */
.tools {
  margin-bottom: 0;
}
.tools-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.tools-head h2 {
  margin: 0;
}
.tools-count {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start; /* an opened card grows its own row; siblings stay put */
  gap: 8px;
}
/* each tile is a 3D flip card: front (icon+name) → back (description) */
.tool-tile {
  position: relative;
  height: 76px;
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  cursor: pointer;
  perspective: 700px;
  transition:
    height 0.46s var(--ease-flip),
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}
/* expanding a card PUSHES its neighbours (grid reflow), never overlaps them.
   left col → span into the column on its right; right col → span into the
   column on its left; middle → grow taller only if the text needs it */
.tool-tile.flipped.expand-right {
  grid-column: span 2;
}
.tool-tile.flipped.expand-down {
  height: 148px;
}
.tt-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.46s var(--ease-flip);
}
.tool-tile.flipped .tt-inner {
  transform: rotateY(180deg);
}
.tt-front,
.tt-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: rgba(55, 45, 25, 0.025);
  transition:
    border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}
.tt-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 8px 13px;
}
.tt-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 13px;
  overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .tool-tile:hover .tt-front,
  .tool-tile:hover .tt-back {
    border-color: #2d241426;
    background: rgba(55, 45, 25, 0.05);
  }
}
/* an open card goes opaque + lifts so it cleanly covers the tiles it overlaps
   (declared after :hover so it wins while the pointer rests on the card) */
.tool-tile.flipped .tt-front,
.tool-tile.flipped .tt-back,
.tool-tile.flipped:hover .tt-front,
.tool-tile.flipped:hover .tt-back {
  background: #fff;
  border-color: var(--hairline);
  box-shadow: 0 14px 34px -10px rgba(30, 24, 12, 0.26);
}
.tool-tile:focus-visible {
  outline: none;
}
.tool-tile:focus-visible .tt-inner {
  border-radius: 10px;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px #2d241466;
}
/* scroll-in stagger: JS adds .stagger (hides), then .in (reveals) */
.tool-grid.stagger .tool-tile {
  opacity: 0;
  transform: translateY(8px);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.tool-grid.stagger.in .tool-tile {
  opacity: 1;
  transform: none;
}
.tt-icon {
  width: 20px;
  height: 20px;
  color: var(--ink-2);
}
.tt-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tt-name {
  font: 560 11.5px/1.25 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}
.tt-name-sm {
  font: 600 10.5px/1.2 var(--font-sans);
  text-align: left;
  text-wrap: pretty;
}
.tt-desc {
  font: 400 10px/1.4 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
  text-align: left;
  text-wrap: pretty;
}
@media (max-width: 420px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tools-note {
  margin: 12px 2px 0;
  font: 400 11px/1.5 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
  text-wrap: pretty;
}
.tools-note kbd {
  font: 500 10px/1 var(--font-mono);
  color: var(--ink-2);
  background: var(--control-bg);
  border-radius: 4px;
  padding: 1px 4px 2px;
  box-shadow: var(--shadow-pill);
}

/* ---------- how it works (numbered steps) ---------- */
.steps {
  margin-bottom: 40px;
}
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.step {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 14px 2px;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
/* connector line joining the numbered badges (masked by the opaque badges) */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 27px;
  bottom: -27px;
  width: 1px;
  background: var(--hairline);
  transform-origin: top;
}
.step-num {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 2px 6px rgba(28, 26, 23, 0.22);
  font: 600 10.5px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: #fff;
}
.step-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 3px;
}
.step-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 600 13px/1.3 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink);
}
.step-ic {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--ink-3);
}
.step-ic svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-desc {
  font: 400 12.5px/1.5 var(--font-sans);
  letter-spacing: var(--tracking);
  color: var(--ink-2);
  text-wrap: pretty;
}
/* scroll-in: steps fade up, connector lines draw downward */
.steps-list.stagger .step {
  opacity: 0;
  transform: translateY(8px);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.steps-list.stagger.in .step {
  opacity: 1;
  transform: none;
}
.steps-list.stagger .step::before {
  transform: scaleY(0);
  transition: transform 0.5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms + 150ms);
}
.steps-list.stagger.in .step::before {
  transform: scaleY(1);
}

/* ---------- video demo (one card, open by default) ---------- */
.video-demo {
  margin-bottom: 40px;
}
/* the single card owns the border; toggle + frame live inside it */
.vd-card {
  position: relative;
  background: var(--control-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s var(--ease-out);
}
.vd-card:hover {
  box-shadow: var(--shadow-card-hover);
}
/* ▶ play overlay — the always-open frame's play button (hover + click cue) */
.vd-play-btn {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  transition: opacity 0.25s var(--ease-out), visibility 0.25s;
}
.vd-play-btn .vd-ph-badge {
  transition: transform 0.16s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.vd-play-btn:active .vd-ph-badge {
  transform: scale(0.95);
}
.vd-play-btn:focus-visible .vd-ph-badge {
  box-shadow: 0 0 0 3px rgba(45, 36, 20, 0.22);
}
@media (hover: hover) and (pointer: fine) {
  .vd-play-btn:hover .vd-ph-badge {
    transform: scale(1.06);
    box-shadow: 0 5px 14px rgba(45, 36, 20, 0.28);
  }
}
/* once the video is actually playing, the overlay steps aside for native controls */
.video-demo.playing .vd-play-btn {
  opacity: 0;
  visibility: hidden;
}
.vd-frame {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: #fff;
}
.vd-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.vd-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 16px;
  background: radial-gradient(120% 100% at 50% 0%, #fffefb 0%, #f4f1ea 100%);
  color: var(--ink-3);
}
/* once a real video loads, the frame reveals it */
.video-demo.has-video .vd-placeholder {
  display: none;
}
.vd-ph-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 3px 10px rgba(45, 36, 20, 0.22);
}
.vd-ph-badge svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  margin-left: 2px;
}
.vd-ph-text {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: var(--tracking);
}

/* ---------- roadmap ---------- */
.roadmap {
  margin-top: 44px;
}
.roadmap-grid {
  display: flex;
  flex-direction: column;
}
.roadmap-phase {
  border-top: 1px solid var(--hairline);
  transition: border-color 0.2s var(--ease-out);
}
.roadmap-phase:last-child {
  border-bottom: 1px solid var(--hairline);
}
.roadmap-phase:hover,
.roadmap-phase:hover + .roadmap-phase {
  border-top-color: #2d241426;
}
.roadmap-phase:last-child:hover {
  border-bottom-color: #2d241426;
}
.phase-head {
  display: flex;
  align-items: center;
  width: 100%;
  appearance: none;
  background: none;
  border: none;
  padding: 16px 2px;
  cursor: pointer;
  text-align: left;
}
.phase-status {
  flex: none;
  margin-right: 12px;
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}
.phase-status svg {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}
.mk-closed {
  opacity: 1;
  transform: scale(1) rotate(0);
}
.mk-open {
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
}
.roadmap-phase.open .mk-closed {
  opacity: 0;
  transform: scale(0.6) rotate(90deg);
}
.roadmap-phase.open .mk-open {
  opacity: 1;
  transform: scale(1) rotate(0);
}
.status-next {
  color: var(--ink);
}
.status-next .mk-closed path:last-child {
  transform-origin: 10px 10px;
  animation: road-spin 2.4s linear infinite;
}
.status-later {
  color: var(--ink-3);
}
.status-shipped {
  color: var(--ink);
}
@keyframes road-spin {
  to {
    transform: rotate(360deg);
  }
}
.phase-label {
  font: 600 10px/1 var(--font-sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  width: 64px;
  flex: none;
  margin-right: 4px;
}
.roadmap-phase:nth-child(1) .phase-label {
  color: var(--ink);
}
.roadmap-phase:nth-child(2) .phase-label {
  color: var(--ink);
}
.roadmap-phase:nth-child(3) .phase-label,
.roadmap-phase:nth-child(4) .phase-label {
  color: var(--ink-3);
}
.phase-title {
  flex: 1;
  font: 500 13.5px/1 var(--font-sans);
  color: var(--ink);
  letter-spacing: var(--tracking);
}
.phase-count {
  font: 500 12px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  margin-left: 12px;
}
.phase-chevron {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  margin-left: 12px;
  flex: none;
  transition:
    transform 0.4s var(--ease-smooth),
    color 0.2s var(--ease-out);
}
.roadmap-phase:hover .phase-chevron {
  color: var(--ink-2);
}
.roadmap-phase.open .phase-chevron {
  transform: rotate(180deg);
  color: var(--ink-2);
}
.phase-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s var(--ease-out);
}
.roadmap-phase.open .phase-body {
  grid-template-rows: 1fr;
}
.phase-content {
  overflow: hidden;
}
.phase-list {
  list-style: none;
  margin: 0;
  padding: 0 2px 18px 92px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phase-list li {
  font: 400 13px/1.5 var(--font-sans);
  color: var(--ink-2);
  letter-spacing: var(--tracking);
  position: relative;
  padding-left: 16px;
  text-wrap: pretty;
}
.phase-list li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
}

/* ---------- footer (branded two-line) ---------- */
.footer2 {
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font: 400 12px/1 var(--font-mono);
  letter-spacing: var(--tracking);
  color: var(--ink-3);
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.footer2 a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition:
    color 0.14s ease,
    text-decoration-color 0.2s var(--ease-out);
}
.footer2 a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
.f2-brand {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.f2-wordmark {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 600 12.5px/1 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.f2-wordmark img {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.f2-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  line-height: 1;
}

/* ---------- small screens ---------- */
@media (max-width: 480px) {
  .top-right {
    gap: 8px;
  }
  .meta {
    white-space: nowrap;
  }
  .tagline {
    margin-bottom: 28px;
  }
  .admired {
    margin-bottom: 32px;
  }
  .rows {
    margin-bottom: 36px;
  }
  .phase-list {
    padding-left: 32px;
  }
  .footer2 {
    margin-top: 36px;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .admired-marquee {
    animation: none;
  }
  .status-next .mk-closed path:last-child {
    animation: none;
  }
  .phase-status svg {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .wheel {
    transition: opacity 0.2s ease;
    transform: scale(var(--wheel-scale, 1));
  }
  .wedge,
  .toast,
  .stick-cap {
    transition: none;
  }
  .step-badge,
  .board-panel {
    animation: none;
  }
  .vd-play-btn,
  .vd-play-btn .vd-ph-badge {
    transition: none;
  }
  .turn-off,
  .stage.has-tool .turn-off,
  .stage.open .turn-off {
    transform: none;
  }
  .prompt::after {
    animation: none;
  }
  .tool-grid.stagger .tool-tile {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  /* flip cards: crossfade the faces instead of rotating; height snaps */
  .tool-tile,
  .tt-inner {
    transition: none;
  }
  .tool-tile.flipped .tt-inner {
    transform: none;
  }
  .tt-back {
    transform: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .tt-front {
    transition: opacity 0.2s ease;
  }
  .tool-tile.flipped .tt-back {
    opacity: 1;
  }
  .tool-tile.flipped .tt-front {
    opacity: 0;
  }
}
