/* Spoon Public Beta — Warm Editorial Paper + Dark macOS Stage + Scroll-Driven Narrative */

:root {
  --bg: #FAF8F4;
  --band: #F1ECE2;
  --paper-card: #FFFFFF;
  --ink: #111216;
  --muted: #4A4D57;
  --border: rgba(17, 18, 22, 0.12);
  --border-strong: rgba(17, 18, 22, 0.22);

  --stage-bg: #12141A;
  --stage-card: #1A1D25;
  --stage-ink: #F8FAFC;
  --stage-muted: #B6BCCB;
  --stage-border: rgba(255, 255, 255, 0.14);

  /* Single-hue tonal button tokens */
  --red-top: #E03528;
  --red-bottom: #B82217;
  --red-solid: #C8281D;

  --blue-top: #2877FC;
  --blue-bottom: #1458D0;
  --blue-solid: #1A62E2;

  --sec-top: #FFFFFF;
  --sec-bottom: #EFECE5;

  --yellow: #FBD74B;
  --green: #24B463;

  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 9px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue-solid);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.25rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* Scroll Progress Indicator (MWG: transform compositor-only; animation-timeline declared after shorthand) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--red-solid);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 120;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes spoon-grow-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    .scroll-progress {
      animation: spoon-grow-progress auto linear;
      animation-timeline: scroll(root);
    }
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-block-size: 4.1rem;
  padding-block: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.beta-stamp {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: var(--red-solid);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.beta-stamp-lg {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
}
.nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 460px) {
  .nav-link {
    display: none;
  }
}

/* Tactile 3D Buttons (single-hue gradients, zero scale jumps) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: 44px;
  padding: 0.62rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(17, 18, 22, 0.22);
  transition: transform 90ms ease, filter 130ms ease, box-shadow 130ms ease;
}

.btn-sm {
  min-block-size: 38px;
  padding: 0.42rem 0.92rem;
  font-size: 0.875rem;
}

.btn-lg {
  min-block-size: 50px;
  padding: 0.78rem 1.55rem;
  font-size: 1.02rem;
}

.btn-primary {
  background: linear-gradient(180deg, var(--red-top), var(--red-bottom));
  color: #ffffff;
  border-color: rgba(120, 16, 10, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -2px 0 rgba(70, 8, 5, 0.35),
    0 6px 14px rgba(184, 34, 23, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 3px rgba(70, 8, 5, 0.35),
    0 2px 6px rgba(184, 34, 23, 0.16);
}

.btn-secondary {
  background: linear-gradient(180deg, var(--sec-top), var(--sec-bottom));
  color: var(--ink);
  border-color: rgba(17, 18, 22, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 0 rgba(17, 18, 22, 0.12),
    0 3px 8px rgba(17, 18, 22, 0.08);
}

.btn-secondary:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(17, 18, 22, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* Typography utilities */
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

kbd, code {
  font-family: var(--font-mono);
}

kbd {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 600;
  background: #ECE7DC;
  color: var(--ink);
  border: 1px solid rgba(17, 18, 22, 0.18);
  box-shadow: inset 0 -2px 0 rgba(17, 18, 22, 0.12);
  white-space: nowrap;
}

/* Hero Section */
.hero {
  padding-block: clamp(2.5rem, 5vw, 5.25rem) clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.beta-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.36rem 0.82rem;
  border-radius: 999px;
  background: var(--band);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.beta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-solid);
  flex-shrink: 0;
}

/* Fluid scale keeps max <= 2.28 * min for WCAG 200% zoom compliance */
.hero-title {
  font-size: clamp(2.75rem, 1.4rem + 4.8vw, 6.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 1.35rem;
}

.hero-quirk {
  color: var(--red-solid);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.06rem, 0.98rem + 0.35vw, 1.24rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-meta a {
  color: var(--ink);
  font-weight: 600;
}

/* Hero Right Stage Card */
.hero-stage-card {
  background: var(--stage-bg);
  color: var(--stage-ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  border: 1px solid var(--stage-border);
  box-shadow: 0 22px 48px rgba(17, 18, 22, 0.16);
}

.hero-stage-top {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  flex-shrink: 0;
}

.hero-stage-kicker {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--stage-muted);
}

.hero-stage-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.shortcut-list {
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.shortcut-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shortcut-row dt {
  flex-shrink: 0;
}

.shortcut-row dt kbd {
  background: #252A36;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.45);
}

.shortcut-row dd {
  margin: 0;
  font-size: 0.92rem;
  color: #E2E6F0;
}

.hero-buddy-strip {
  margin-top: 1.15rem;
  padding: 0.8rem 0.95rem 0;
  border-radius: 14px;
  background: #1C202B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-buddy-note {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--stage-muted);
  max-width: 28ch;
  text-wrap: pretty;
}

.hero-buddy-art {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
}

/* Scroll Walkthrough Section */
.walkthrough {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background: var(--bg);
}

.section-intro {
  max-width: 72ch;
  margin-bottom: clamp(2.25rem, 4vw, 3.75rem);
}

.section-title {
  font-size: clamp(2rem, 1.25rem + 2.8vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.section-sub {
  margin: 0;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 58ch;
  text-wrap: pretty;
}

/* Scrollytelling 2-column grid */
.walkthrough-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.story-track {
  display: grid;
  gap: 1.75rem;
  min-width: 0;
}

.story-chapter {
  min-block-size: 58svh;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border-radius: var(--radius-md);
  background: var(--paper-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.story-chapter.is-active {
  border-color: var(--border-strong);
  box-shadow: 0 12px 30px rgba(17, 18, 22, 0.08);
}

.chapter-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.95rem;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.step-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.chapter-title {
  font-size: clamp(1.65rem, 1.15rem + 1.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
}

.chapter-text {
  margin: 0 0 0.85rem;
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
}

.chapter-skip {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 500;
}

.chapter-inline-slot {
  margin-top: 1.25rem;
}

.chapter-inline-slot:empty {
  display: none;
}

/* Sticky macOS Stage Column */
.stage-column {
  min-width: 0;
}

.stage-sticky {
  position: sticky;
  top: 5.35rem;
}

.stage-frame {
  background: var(--stage-bg);
  color: var(--stage-ink);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 56px rgba(17, 18, 22, 0.22);
  overflow: hidden;
}

.stage-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: #0D0F14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-dots {
  display: flex;
  gap: 6px;
}

.stage-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.stage-dots span:nth-child(1) { background: #FF5F56; }
.stage-dots span:nth-child(2) { background: #FFBD2E; }
.stage-dots span:nth-child(3) { background: #27C93F; }

.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.stage-tab {
  min-block-size: 32px;
  min-inline-size: 34px;
  padding: 0.25rem 0.55rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--stage-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.stage-tab[aria-current="step"] {
  background: linear-gradient(180deg, var(--blue-top), var(--blue-bottom));
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
}

.stage-beta-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--stage-muted);
}

.stage-viewport {
  display: grid;
  padding: 1.25rem;
  min-block-size: 380px;
}

.stage-scene {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 220ms ease, visibility 200ms;
}

.stage-scene[data-active="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .stage-scene {
    transition: none;
    transform: none;
  }
}

/* Native CSS View-Timeline Scrollytelling on Desktop (MWG scrollytelling & scroll-entry-exit-effects) */
@media (min-width: 921px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    html {
      timeline-scope: --ch-1, --ch-2, --ch-3, --ch-4, --ch-5, --ch-6;
    }

    #ch-1 { view-timeline: --ch-1 block; }
    #ch-2 { view-timeline: --ch-2 block; }
    #ch-3 { view-timeline: --ch-3 block; }
    #ch-4 { view-timeline: --ch-4 block; }
    #ch-5 { view-timeline: --ch-5 block; }
    #ch-6 { view-timeline: --ch-6 block; }

    @keyframes spoon-scene-glide {
      entry 0% {
        transform: translateY(14px) scale(0.985);
      }
      contain 35%, contain 65% {
        transform: translateY(0) scale(1);
      }
      exit 100% {
        transform: translateY(-10px) scale(0.99);
      }
    }

    .scene-motion {
      animation: spoon-scene-glide auto linear both;
      animation-range: entry 0% exit 100%;
    }
    .stage-scene[data-scene="1"] .scene-motion { animation-timeline: --ch-1; }
    .stage-scene[data-scene="2"] .scene-motion { animation-timeline: --ch-2; }
    .stage-scene[data-scene="3"] .scene-motion { animation-timeline: --ch-3; }
    .stage-scene[data-scene="4"] .scene-motion { animation-timeline: --ch-4; }
    .stage-scene[data-scene="5"] .scene-motion { animation-timeline: --ch-5; }
    .stage-scene[data-scene="6"] .scene-motion { animation-timeline: --ch-6; }
  }
}

/* Section Scroll Entry Reveal (MWG scroll-entry-exit-effects) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes spoon-fade-rise {
      from {
        opacity: 0.05;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .scroll-reveal {
      animation: spoon-fade-rise auto linear backwards;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
  }
}

/* Mobile / Zoom Fallback: stage sits cleanly inside each chapter */
@media (max-width: 920px), (max-height: 639px) {
  .walkthrough-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .has-js .stage-column {
    display: none;
  }

  .story-chapter {
    min-block-size: auto;
  }

  .chapter-inline-slot .stage-scene {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: var(--stage-bg);
    color: var(--stage-ink);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--stage-border);
  }

  .chapter-inline-slot .scene-motion {
    animation: none !important;
    transform: none !important;
  }
}

/* Scene 1: Capture Preview */
.demo-desktop {
  position: relative;
  border-radius: 14px;
  padding: 1.1rem;
  background: linear-gradient(180deg, #1E293B, #0F172A);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 1rem;
}

.demo-desktop-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.demo-chip {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 600;
  color: #F8FAFC;
}

.demo-chip-green {
  border-color: rgba(36, 180, 99, 0.55);
  color: #A7F3D0;
}

.demo-selection-box {
  position: relative;
  min-block-size: 150px;
  border-radius: 10px;
  border: 2px dashed #FFFFFF;
  box-shadow: 0 0 0 1px rgba(17, 18, 22, 0.85), inset 0 0 0 1px rgba(17, 18, 22, 0.65);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.demo-crosshair {
  font-size: 1.6rem;
  font-weight: 300;
  color: #FFFFFF;
}

.demo-dims {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(17, 18, 22, 0.9);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.demo-toast {
  justify-self: center;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(17, 18, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}

.demo-floating-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(18, 20, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.bar-label {
  font-size: 0.8rem;
  color: var(--stage-muted);
  margin-right: 0.25rem;
}

.bar-pill,
.mini-pill {
  min-block-size: 34px;
  padding: 0.35rem 0.78rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #2A2E3A, #1E212B);
  color: #F8FAFC;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1.5px 0 rgba(0, 0, 0, 0.35);
}

.bar-pill.is-selected,
.mini-pill.is-selected {
  background: linear-gradient(180deg, var(--blue-top), var(--blue-bottom));
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Scene 2: Recording Pill & HelloCam */
.demo-record-stage {
  display: grid;
  gap: 1.15rem;
}

.record-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.ai-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.live-rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem 0.55rem 1.05rem;
  border-radius: 999px;
  background: #181A22;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-top);
}

.rec-timer {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  min-inline-size: 3.5rem;
}

.rec-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.42rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}

.rec-badge-blue {
  background: rgba(38, 116, 250, 0.25);
  color: #93C5FD;
}

.rec-stop-btn {
  min-block-size: 34px;
  padding: 0.32rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(110, 14, 9, 0.4);
  background: linear-gradient(180deg, var(--red-top), var(--red-bottom));
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.finalizing-popup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-inline: auto;
  padding: 0.78rem 1.15rem;
  border-radius: 14px;
  background: #1A1D26;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.finalizing-popup[hidden] {
  display: none;
}

.spinner-ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid rgba(38, 116, 250, 0.25);
  border-top-color: #60A5FA;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes spoon-spin {
    to { transform: rotate(360deg); }
  }
  .spinner-ring {
    animation: spoon-spin 0.85s linear infinite;
  }
}

.fin-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.fin-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--stage-muted);
}

.hellocam-preview-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 520px) {
  .hellocam-preview-row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
}

.hellocam-frame {
  width: 104px;
  height: 104px;
  background: linear-gradient(180deg, #273248, #182030);
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: border-radius 180ms ease, width 180ms ease, height 180ms ease;
}

.hellocam-frame.shape-circle { border-radius: 50%; }
.hellocam-frame.shape-squircle { border-radius: 28px; }
.hellocam-frame.shape-rounded { border-radius: 16px; width: 124px; height: 92px; }
.hellocam-frame.shape-square { border-radius: 4px; }
.hellocam-frame.shape-pill { border-radius: 999px; width: 132px; height: 78px; }

.ctrl-heading {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stage-muted);
}

.pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Scene 3: Studio Theme Preview */
.studio-stage {
  display: grid;
  gap: 1rem;
}

.studio-canvas {
  border-radius: 14px;
  padding: 20px;
  background: linear-gradient(145deg, #192133, #0A0F1A);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: padding 180ms ease;
}

.studio-mockup-window {
  border-radius: 16px;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.studio-stage.theme-cobaltFocus .studio-canvas {
  background: linear-gradient(135deg, #1A428F, #0A1C45);
  padding: 24px;
}

.studio-stage.theme-cleanLight .studio-canvas {
  background: linear-gradient(160deg, #F7F7F2, #E3E5DE);
  padding: 22px;
}

.studio-stage.theme-obsidianMinimal .studio-canvas {
  background: linear-gradient(160deg, #26262B, #0D0D0F);
  padding: 16px;
}

.studio-stage.theme-rawClean .studio-canvas {
  background: #0F1014;
  padding: 4px;
}
.studio-stage.theme-rawClean .studio-mockup-window {
  border-radius: 4px;
  box-shadow: none;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.55rem 0.75rem;
  background: #171B26;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-bar span:nth-child(-n+3) {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.mockup-title {
  margin-left: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #CBD5E1;
}

.mockup-body {
  min-block-size: 136px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-zoom-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: rgba(38, 116, 250, 0.24);
  border: 1px solid rgba(38, 116, 250, 0.5);
  color: #BFDBFE;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.mockup-cursor {
  font-size: 2rem;
  color: #FFFFFF;
  transform: rotate(-35deg);
}

/* Scene 4: AI Studio */
.ai-stage {
  display: grid;
  gap: 1.15rem;
}

.ai-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ai-demo-box {
  padding: 1.35rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.9rem;
}

.ai-demo-box[hidden] {
  display: none;
}

.caption-pill {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28rem 0.42rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #464B52;
}

.cap-word {
  padding: 0.16rem 0.44rem;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
}

.cap-word.is-lit {
  background: var(--yellow);
  color: var(--ink);
}

.ai-note,
.ai-spec-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--stage-muted);
  text-wrap: pretty;
}

.ai-spec-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.keychain-badge {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #A7F3D0;
}

/* Scene 5: Pokey Arm Playground */
.arm-playground-wrap {
  display: grid;
  gap: 0.85rem;
}

.arm-canvas-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.arm-active-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #E2E8F0;
}

.arm-canvas-box {
  border-radius: 14px;
  overflow: hidden;
  background: #1A1F2B;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.arm-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  cursor: crosshair;
  touch-action: manipulation;
}

.character-picker {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.35rem;
}

@media (max-width: 600px) {
  .character-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.char-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.25rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--stage-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.char-btn img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.char-btn.is-selected {
  background: rgba(38, 116, 250, 0.28);
  border-color: #60A5FA;
  color: #FFFFFF;
}

/* Scene 6: Beta Checklist Stage Card */
.beta-stage-card {
  display: grid;
  gap: 1.25rem;
}

.beta-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 560px) {
  .beta-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.beta-col {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.beta-col-head {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.beta-col ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--stage-muted);
}

.beta-download-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.zip-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--stage-muted);
}

/* Bottom Honest Beta & Install Band */
.beta-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.beta-card-surface {
  background: var(--paper-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  box-shadow: 0 18px 40px rgba(17, 18, 22, 0.07);
}

.beta-head {
  max-width: 68ch;
  margin-bottom: 2rem;
}

.beta-head .beta-stamp {
  margin-bottom: 0.9rem;
}

.beta-copy {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  text-wrap: pretty;
}

.install-steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 820px) {
  .install-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.install-steps li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.install-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.install-steps h3 {
  font-size: 1.08rem;
  margin-bottom: 0.28rem;
}

.install-steps p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-wrap: pretty;
}

.install-steps a {
  color: var(--ink);
  font-weight: 600;
}

.beta-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.release-facts {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.75rem;
}

.release-facts div {
  display: grid;
  gap: 0.15rem;
}

.release-facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.release-facts dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
}

/* Legal Subpages */
.legal-main {
  max-width: 74ch;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.legal-title {
  font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.legal-meta {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-body h2 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.5rem;
}

.legal-body p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  text-wrap: pretty;
}

.legal-body a {
  color: var(--ink);
  font-weight: 600;
}

/* Whisper-Quiet Single Footer */
.site-footer {
  padding: 1.35rem 0;
  background: var(--bg);
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
