/* ============================================================
   Peeko — landing + download
   System Ghost: grayscale, native macOS feel, quiet & precise
   ============================================================ */

:root {
  /* warm neutral light — a touch of life */
  --bg: oklch(0.987 0.009 78);
  --bg-2: oklch(0.977 0.012 72);
  --surface: oklch(0.996 0.006 80);
  --surface-sunk: oklch(0.968 0.012 75);
  --line: oklch(0.9 0.013 72);
  --line-soft: oklch(0.935 0.011 74);
  --line-strong: oklch(0.84 0.017 68);

  --ink: oklch(0.275 0.015 58);
  --ink-2: oklch(0.48 0.015 60);
  --ink-3: oklch(0.63 0.013 62);
  --ink-4: oklch(0.73 0.011 64);

  --btn-bg: oklch(0.26 0.018 56);
  --btn-bg-hover: oklch(0.34 0.02 54);
  --btn-ink: oklch(0.99 0.008 82);

  --live: oklch(0.63 0.15 33); /* warm coral, used sparingly */
  --accent: oklch(0.66 0.12 52); /* warm amber accent */

  /* liquid glass */
  --glass-bg: color-mix(in oklab, white 55%, transparent);
  --glass-bg-strong: color-mix(in oklab, white 70%, transparent);
  --glass-blur: saturate(185%) blur(22px);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-ring:
    inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 0 0 0.5px rgba(255, 255, 255, 0.35),
    inset 0 -12px 24px -16px rgba(120, 86, 50, 0.18);

  --shadow-win:
    0 1px 2px rgba(60, 42, 24, 0.06), 0 14px 34px -8px rgba(60, 42, 24, 0.16),
    0 44px 84px -32px rgba(60, 42, 24, 0.22);
  --shadow-float:
    0 1px 1px rgba(50, 36, 20, 0.12), 0 8px 16px -2px rgba(50, 36, 20, 0.2),
    0 24px 46px -14px rgba(50, 36, 20, 0.3);
  --shadow-soft: 0 1px 2px rgba(60, 42, 24, 0.05), 0 10px 26px -12px rgba(60, 42, 24, 0.13);
  --shadow-glass: 0 1px 2px rgba(60, 42, 24, 0.07), 0 16px 38px -12px rgba(60, 42, 24, 0.22);

  --ring: 0 0 0 0.5px rgba(40, 30, 20, 0.1);

  --font-ui:
    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 48px);

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;

  --live-display: inline-block;
}

/* ---- Dim theme ---- */
:root[data-theme='dim'] {
  --bg: oklch(0.215 0.012 62);
  --bg-2: oklch(0.195 0.012 60);
  --surface: oklch(0.265 0.013 64);
  --surface-sunk: oklch(0.235 0.012 62);
  --line: oklch(0.34 0.012 64);
  --line-soft: oklch(0.3 0.011 62);
  --line-strong: oklch(0.42 0.013 66);

  --ink: oklch(0.97 0.008 84);
  --ink-2: oklch(0.77 0.011 70);
  --ink-3: oklch(0.61 0.011 66);
  --ink-4: oklch(0.53 0.01 64);

  --btn-bg: oklch(0.97 0.008 84);
  --btn-bg-hover: oklch(0.9 0.01 80);
  --btn-ink: oklch(0.22 0.014 58);

  --live: oklch(0.68 0.16 34);
  --accent: oklch(0.72 0.12 56);

  --glass-bg: color-mix(in oklab, white 12%, transparent);
  --glass-bg-strong: color-mix(in oklab, white 18%, transparent);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-ring:
    inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 0.5px rgba(255, 255, 255, 0.06);

  --shadow-win:
    0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -10px rgba(0, 0, 0, 0.55),
    0 48px 90px -36px rgba(0, 0, 0, 0.6);
  --shadow-float: 0 2px 6px rgba(0, 0, 0, 0.45), 0 14px 34px -8px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.5);
  --shadow-glass: 0 2px 6px rgba(0, 0, 0, 0.4), 0 18px 40px -12px rgba(0, 0, 0, 0.55);
  --ring: 0 0 0 0.5px rgba(255, 255, 255, 0.1);
}

:root[data-live='off'] {
  --live-display: none;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  background:
    radial-gradient(46% 40% at 9% 1%, oklch(0.945 0.05 74 / 0.6), transparent 70%),
    radial-gradient(44% 40% at 94% -2%, oklch(0.935 0.05 36 / 0.5), transparent 70%),
    radial-gradient(52% 48% at 88% 98%, oklch(0.935 0.042 98 / 0.48), transparent 72%),
    radial-gradient(48% 46% at 4% 96%, oklch(0.93 0.04 58 / 0.42), transparent 72%), var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint film grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme='dim'] body::after {
  opacity: 0.055;
}
:root[data-theme='dim'] body {
  background:
    radial-gradient(48% 42% at 8% 0%, oklch(0.42 0.06 66 / 0.5), transparent 70%),
    radial-gradient(46% 42% at 95% -2%, oklch(0.4 0.06 34 / 0.42), transparent 70%),
    radial-gradient(54% 50% at 88% 98%, oklch(0.4 0.05 94 / 0.4), transparent 72%), var(--bg);
  background-attachment: fixed;
}
:root[data-texture='clean'] body::after {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

/* ============================================================
   BOOT SPLASH
   ============================================================ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.42s ease,
    visibility 0s linear 0.42s;
}

.boot[data-done='true'] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot__stream {
  position: relative;
  width: 128px;
  height: 44px;
  color: var(--ink);
}

.boot__pixel {
  position: absolute;
  left: 8px;
  top: 50%;
  display: block;
  background: currentColor;
  opacity: 0;
  transform: translate3d(0, -50%, 0) scale(0.92);
  animation: bootStream 1.45s linear infinite;
  will-change: transform, opacity;
}

.boot__pixel--1 {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  animation-delay: 0s;
}

.boot__pixel--2 {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  animation-delay: -0.29s;
}

.boot__pixel--3 {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  animation-delay: -0.58s;
}

.boot__pixel--4 {
  width: 8px;
  height: 8px;
  border-radius: 2.5px;
  animation-delay: -0.87s;
}

.boot__pixel--5 {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  animation-delay: -1.16s;
}

@keyframes bootStream {
  0% {
    opacity: 0;
    transform: translate3d(0, -50%, 0) scale(0.92);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(94px, -50%, 0) scale(0.58);
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot__pixel {
    animation: none;
    opacity: 0.38;
  }
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* type helpers */
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px var(--pad) 0;
  background: transparent;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 17px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-ring), var(--shadow-soft);
  transition: box-shadow 0.3s ease;
}
.nav[data-stuck='true'] .nav__inner {
  box-shadow: var(--glass-ring), var(--shadow-glass);
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 18.5px;
  font-family: 'Comfortaa', var(--font-ui);
}
.brand__word {
  font-family: 'Comfortaa', var(--font-ui);
}
.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav__links a {
  transition: color 0.18s ease;
  white-space: nowrap;
}
.nav__links a:not(.nav__cta):hover {
  color: var(--ink);
}
.nav__links .only-wide {
}
.nav__cta {
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid transparent;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}
.nav__cta:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-ink);
}
.nav__cta:active {
  transform: translateY(1px);
}

@media (max-width: 640px) {
  .nav__links .hide-sm {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero__sub {
    width: auto !important;
    max-width: min(100%, 24ch) !important;
    text-wrap: balance;
  }
  .sec-title,
  .sec-lede {
    white-space: normal !important;
    text-wrap: balance;
  }
  .btn {
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(var(--btn-bg), color-mix(in oklab, var(--btn-bg) 86%, black));
  color: var(--btn-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    var(--shadow-glass);
}
.btn--primary:hover {
  background: linear-gradient(var(--btn-bg-hover), var(--btn-bg));
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0);
}
.btn--ghost {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--ink);
  border-color: var(--glass-border);
  box-shadow: var(--glass-ring);
}
.btn--ghost:hover {
  border-color: var(--ink-4);
  transform: translateY(-1px);
}
.btn__apple {
  width: 16px;
  height: 18px;
  flex: none;
  opacity: 0.9;
}
.btn--lg {
  font-size: 16px;
  padding: 15px 26px;
}

.platform-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.platform-note b {
  color: var(--ink-2);
  font-weight: 500;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(54px, 9vw, 104px);
  padding-bottom: clamp(40px, 6vw, 72px);
  text-align: center;
}
.hero__h1 {
  font-size: clamp(54px, 11vw, 132px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: 'Comfortaa', var(--font-ui);
  margin: 18px 0 0;
}
.hero__sub {
  font-size: clamp(19px, 2.5vw, 25px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 24ch;
  margin: 34px auto 0;
}
.hero__support {
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--ink-2);
  max-width: 54ch;
  margin: 16px auto 0;
  line-height: 1.5;
}
.hero__cta {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ============================================================
   HERO LAYOUT VARIANTS — toggled via [data-hero] (Tweaks › Layout)
   default / "centered" = the base .hero rules above
   ============================================================ */

/* LEFT — editorial, left-aligned stack */
:root[data-hero='left'] .hero {
  text-align: left;
}
:root[data-hero='left'] .hero__sub {
  margin-left: 0;
  margin-right: 0;
}
:root[data-hero='left'] .hero__support {
  margin-left: 0;
  margin-right: 0;
}
:root[data-hero='left'] .hero__cta {
  align-items: flex-start;
}

/* COMPACT — condensed rhythm, smaller wordmark */
:root[data-hero='compact'] .hero {
  padding-top: clamp(40px, 6vw, 76px);
}
:root[data-hero='compact'] .hero__h1 {
  font-size: clamp(46px, 8.5vw, 104px);
  margin-top: 10px;
}
:root[data-hero='compact'] .hero__sub {
  font-size: clamp(17px, 2.1vw, 22px);
  margin-top: 12px;
}
:root[data-hero='compact'] .hero__support {
  margin-top: 9px;
  font-size: clamp(14px, 1.6vw, 16px);
  max-width: 42ch;
}
:root[data-hero='compact'] .hero__cta {
  margin-top: 22px;
}

/* EDITORIAL — dramatic scale + generous air */
:root[data-hero='editorial'] .eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-4);
}
:root[data-hero='editorial'] .hero__h1 {
  font-size: clamp(64px, 13.5vw, 168px);
  letter-spacing: -0.045em;
  margin-top: 22px;
}
:root[data-hero='editorial'] .hero__sub {
  font-size: clamp(22px, 3vw, 31px);
  margin-top: 40px;
}
:root[data-hero='editorial'] .hero__support {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--ink-3);
  max-width: 56ch;
  margin-top: 18px;
}
:root[data-hero='editorial'] .hero__cta {
  margin-top: 38px;
}

/* ============================================================
   DESKTOP SCENE (hi-fi macOS mock)
   ============================================================ */
.scene-wrap {
  margin-top: clamp(40px, 6vw, 72px);
  perspective: 1800px;
}
.scene {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 10.4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: radial-gradient(
    120% 120% at 70% 4%,
    oklch(0.95 0.03 78) 0%,
    oklch(0.9 0.045 56) 44%,
    oklch(0.83 0.05 42) 100%
  );
  box-shadow: var(--shadow-win);
  border: 1px solid var(--line-strong);
}
:root[data-theme='dim'] .scene {
  background: radial-gradient(
    120% 120% at 70% 2%,
    oklch(0.36 0.04 64) 0%,
    oklch(0.28 0.04 50) 45%,
    oklch(0.2 0.035 44) 100%
  );
  border-color: oklch(0.36 0.02 60);
}

/* menu bar */
.scene__bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 14px;
  background: color-mix(in oklab, white 36%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.35);
  font-size: 12.5px;
  font-weight: 500;
  color: oklch(0.28 0.01 265);
  z-index: 4;
}
:root[data-theme='dim'] .scene__bar {
  background: color-mix(in oklab, black 30%, transparent);
  color: oklch(0.92 0.006 255);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.scene__menus {
  display: flex;
  align-items: center;
  gap: 17px;
}
.scene__menus .app {
  font-weight: 700;
}
.scene__menus .dim {
  font-weight: 400;
  opacity: 0.72;
}
@media (max-width: 720px) {
  .scene__menus .dim {
    display: none;
  }
}
.scene__status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 13px;
  opacity: 0.85;
}
.scene__status svg {
  display: block;
}
.scene__peekoglyph {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in oklab, currentColor 9%, transparent);
}
.scene__clock {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* work window */
.workwin {
  position: absolute;
  left: 7%;
  top: 13%;
  width: 70%;
  height: 78%;
  background: var(--surface);
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(10, 12, 18, 0.1),
    0 18px 44px -16px rgba(10, 12, 18, 0.34);
  border: 0.5px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.workwin__bar {
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-sunk);
}
.lights {
  display: flex;
  gap: 7px;
}
.lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.lights i:nth-child(1) {
  background: #f0625a;
}
.lights i:nth-child(2) {
  background: #f5bd4f;
}
.lights i:nth-child(3) {
  background: #61c554;
}
:root[data-theme='dim'] .lights i {
  filter: brightness(0.92);
}
.workwin__title {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
  margin-left: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workwin__body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.workwin__side {
  width: 28%;
  border-right: 1px solid var(--line-soft);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--surface-sunk);
}
.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--line-strong);
  flex: none;
}
.side-bar {
  height: 7px;
  border-radius: 4px;
  background: var(--line);
}
.workwin__main {
  flex: 1;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow: hidden;
}
.tx {
  height: 9px;
  border-radius: 4px;
  background: var(--line);
}
.tx.h {
  height: 15px;
  width: 56%;
  background: var(--line-strong);
  margin-bottom: 6px;
}
.tx.w95 {
  width: 95%;
}
.tx.w88 {
  width: 88%;
}
.tx.w72 {
  width: 72%;
}
.tx.w80 {
  width: 80%;
}
.tx.w64 {
  width: 64%;
}
.tx.w40 {
  width: 40%;
}

/* floating Peeko window */
.peeko-win {
  position: absolute;
  right: 4.5%;
  bottom: 6%;
  width: 31%;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  z-index: 6;
  background: #0c0d11;
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  outline: 1px solid rgba(10, 12, 18, 0.18);
  transition:
    opacity 0.14s ease,
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.14s ease;
}
.peeko-win image-slot,
.peeko-win .slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.peeko-win__chip {
  position: absolute;
  top: 8px;
  left: 8px;
  display: var(--live-display);
  align-items: center;
  gap: 5px;
  padding: 3px 7px 3px 6px;
  border-radius: 6px;
  background: rgba(8, 9, 12, 0.5);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  z-index: 3;
}
.peeko-win__chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--live) 70%, transparent);
}
[data-motion='on'] .peeko-win__chip::before {
  animation: livepulse 2.4s ease-out infinite;
}
@keyframes livepulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--live) 60%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 6px transparent;
  }
}
.peeko-win__hud {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 9px 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(to top, rgba(6, 7, 10, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}
.scene:hover .peeko-win__hud {
  opacity: 1;
}
.peeko-win__hud i {
  width: 13px;
  height: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.peeko-win__pin {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 12px;
  height: 12px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.6);
}

/* image-slot empty state restyle (scene video) */
image-slot {
  --is-bg: #101218;
}

/* scene caption */
.scene-cap {
  text-align: center;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section {
  position: relative;
}
.band {
  padding: clamp(64px, 10vw, 128px) 0;
}
.band--alt {
  /* 交替蒙版：参考版的薄玻璃板，靠上下内阴影显出 section 厚度 */
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  backdrop-filter: saturate(150%) blur(8px);
  border-block: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 26px 44px -30px rgba(40, 56, 96, 0.12),
    inset 0 -26px 44px -30px rgba(40, 56, 96, 0.12);
}
:root[data-theme='dim'] .band--alt {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 26px 44px -30px rgba(0, 0, 0, 0.4),
    inset 0 -26px 44px -30px rgba(0, 0, 0, 0.4);
}
.sec-head {
  max-width: 30ch;
}
.sec-head--center {
  margin-inline: auto;
  text-align: center;
  max-width: 40rem;
}
.sec-title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 14px 0 0;
}
.sec-lede {
  font-size: clamp(16px, 1.9vw, 18px);
  color: var(--ink-2);
  margin: 16px 0 0;
  line-height: 1.5;
}

/* ============================================================
   FEATURE STRIP
   ============================================================ */
.features {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: var(--glass-ring), var(--shadow-soft);
  padding: 26px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 196px;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.28s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-ring), var(--shadow-glass);
}
.feature__icon {
  width: 26px;
  height: 26px;
  color: var(--ink);
}
.feature__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.feature__desc {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}
.feature__n {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
}
@media (max-width: 860px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   WORKFLOW
   ============================================================ */
.flow {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--glass-ring), var(--shadow-soft);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.28s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-ring), var(--shadow-glass);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.step__art {
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  background: var(--surface-sunk);
  aspect-ratio: 5 / 3;
  overflow: hidden;
  position: relative;
}
.step__cap {
}
.step__cap h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 5px;
}
.step__cap p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .flow {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}

/* mini-mock artwork inside steps (CSS, monochrome) */
.mm {
  position: absolute;
  inset: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mm__bar {
  display: flex;
  gap: 5px;
  align-items: center;
}
.mm__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mm__bar i:nth-child(1) {
  background: #f0625a;
}
.mm__bar i:nth-child(2) {
  background: #f5bd4f;
}
.mm__bar i:nth-child(3) {
  background: #61c554;
}
.mm__row {
  height: 7px;
  border-radius: 4px;
  background: var(--line);
}
.mm__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mm__cell {
  background: var(--line-soft);
  border-radius: 5px;
}
.mm__cell.dark {
  background: oklch(0.22 0.006 270);
}
.mm__float {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46%;
  aspect-ratio: 16/10;
  border-radius: 6px;
  background: oklch(0.16 0.006 270);
  box-shadow: 0 4px 12px -3px rgba(10, 12, 18, 0.4);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}
.mm__play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.7);
}
.mm__scan {
  position: absolute;
  inset: 0;
}
.mm__scan span {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: color-mix(in oklab, var(--live) 80%, transparent);
  top: 50%;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--live);
}

/* ============================================================
   BOSS KEY band
   ============================================================ */
.boss {
  text-align: center;
  padding: clamp(80px, 12vw, 150px) 0;
  background: radial-gradient(
    80% 120% at 50% 0%,
    color-mix(in oklab, var(--surface-sunk) 52%, transparent),
    transparent 72%
  );
  border-block: 1px solid var(--line-soft);
}
.boss__kbd {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}
.boss__title {
  font-size: clamp(40px, 8vw, 92px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.94;
  margin: 0;
}
.boss__sub {
  color: var(--ink-2);
  font-size: clamp(15px, 1.8vw, 18px);
  margin: 20px auto 0;
  max-width: 40ch;
  line-height: 1.5;
}
.boss__demo {
  margin: 44px auto 0;
  width: min(360px, 78vw);
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-ring), var(--shadow-glass);
  overflow: hidden;
  cursor: pointer;
}
.boss__win {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  background: oklch(0.14 0.006 270);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-float);
  display: grid;
  place-items: center;
  transition:
    opacity 0.12s ease,
    transform 0.12s ease,
    filter 0.12s ease;
}
.boss__win .mm__play {
  border-left-color: rgba(255, 255, 255, 0.6);
}
.boss__demo:hover .boss__win {
  opacity: 0;
  transform: scale(0.96);
  filter: blur(2px);
}
.boss__hint {
  position: absolute;
  left: 14px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.boss__hint b {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   SHORTCUTS
   ============================================================ */
.keys {
  margin-top: clamp(40px, 6vw, 60px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-ring), var(--shadow-glass);
}
.key-row {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.16s ease;
}
.key-row:last-child {
  border-bottom: none;
}
.key-row:hover {
  background: var(--glass-bg-strong);
}
.key-row__name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.key-row__desc {
  font-size: 14px;
  color: var(--ink-2);
}
.key-combo {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}
.key-combo .plus {
  color: var(--ink-4);
  font-size: 12px;
}
.kbd {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 7px;
  background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-bottom: 1.5px solid color-mix(in oklab, var(--line-strong) 70%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -3px 4px -2px rgba(120, 86, 50, 0.14),
    0 1px 2px rgba(80, 58, 34, 0.14);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}
:root[data-theme='dim'] .kbd {
  background: linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.18);
}
.kbd--set {
  background: repeating-linear-gradient(135deg, var(--surface) 0 5px, var(--surface-sunk) 5px 10px);
  border-style: dashed;
  border-bottom-width: 1px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.keys-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}
@media (max-width: 680px) {
  .key-row {
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
  }
  .key-row__desc {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  text-align: center;
  padding: clamp(80px, 12vw, 150px) 0;
}
.final__title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 auto;
  max-width: 16ch;
}
.final__cta {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.final__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.meta-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-ring);
}
.meta-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  border-top: 1px solid var(--line);
  padding: 18px 0 22px;
}
.foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 17.5px;
  font-family: 'Comfortaa', var(--font-ui);
  letter-spacing: -0.01em;
}
.foot__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.foot__links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-2);
}
.foot__links a:hover {
  color: var(--ink);
}

/* ============================================================
   MOTION / reveal
   ============================================================ */
/* Content is VISIBLE by default. The entrance is a pure enhancement applied
   only when .is-in is added, so a failed/blocked reveal can never trap content
   invisible. */
.reveal {
  opacity: 1;
  transform: none;
}
[data-motion='on'] .reveal.anim {
  animation: revealIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* if the document timeline is frozen (paused/captured iframe), disable the
   entrance entirely so content shows in its resting visible state */
:root.no-motion-fallback .reveal {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-motion='on'] .reveal.anim {
    animation: none;
  }
  .peeko-win__chip::before {
    animation: none !important;
  }
}

/* ============================================================
   FEATURES (restructured) — picture / sound / clicks, separated
   ============================================================ */
.feat-lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-2);
  max-width: 62ch;
  margin: 16px 0 0;
  line-height: 1.45;
}
.feat-lede b {
  color: var(--ink);
  font-weight: 600;
}

.feat-grid {
  margin-top: clamp(36px, 5vw, 54px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: var(--glass-ring), var(--shadow-soft);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.28s ease;
}
.feat-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.feat-card:not(.feat-focal):hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-ring), var(--shadow-glass);
}
.feat-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.feat-card p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}
.feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* focal: hold to peek (full width) */
.feat-focal {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding: 0;
  overflow: hidden;
}
.peek-stage {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: block;
  background: radial-gradient(
    120% 130% at 72% 0%,
    oklch(0.955 0.022 240) 0%,
    oklch(0.9 0.04 252) 52%,
    oklch(0.82 0.052 268) 100%
  );
}

/* simulated ordinary desktop, shown while "released" */
.peek-desk {
  position: absolute;
  inset: 0;
}
.peek-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.46);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.5);
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(28, 38, 60, 0.82);
  z-index: 1;
}
.peek-bar .pb-apple {
  width: 11px;
  height: 12px;
  opacity: 0.8;
  flex: none;
}
.peek-bar .pb-strong {
  font-weight: 600;
}
.peek-bar .pb-dim {
  color: rgba(28, 38, 60, 0.5);
}
.peek-bar .pb-clock {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(28, 38, 60, 0.62);
}
.peek-app {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: 64%;
  background: #fff;
  border-radius: 11px;
  border: 0.5px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 1px 2px rgba(28, 38, 60, 0.06),
    0 26px 52px -22px rgba(28, 38, 60, 0.42);
  overflow: hidden;
}
.peek-app__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-bottom: 1px solid oklch(0.93 0.005 250);
  background: oklch(0.985 0.003 250);
}
.peek-app__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.peek-app__title {
  margin-left: 6px;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
}
.peek-app__body {
  padding: 16px 16px 19px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.peek-app__line {
  height: 8px;
  border-radius: 4px;
  background: oklch(0.91 0.008 250);
}
.peek-app__line:first-child {
  background: oklch(0.84 0.012 250);
}
.peek-window {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: 34%;
  aspect-ratio: 16/10;
  border-radius: 9px;
  overflow: hidden;
  background: #0c0d11;
  border: 0.5px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 12px 30px -10px rgba(12, 16, 26, 0.5),
    0 2px 6px rgba(12, 16, 26, 0.3);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transform-origin: bottom right;
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feat-focal:hover .peek-window {
  opacity: 1;
  transform: none;
}
.peek-window image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pw-live {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(8, 9, 12, 0.5);
  border-radius: 5px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pw-live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--live);
}
.peek-prompt {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(28, 38, 60, 0.66);
  padding: 5px 10px 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px -4px rgba(28, 38, 60, 0.2);
  transition: opacity 0.25s ease;
}
.feat-focal:hover .peek-prompt {
  opacity: 0;
}
.peek-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 30px 34px;
}
.feat-kbd {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* state chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 55%, transparent);
  color: var(--ink-2);
}
.chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.chip.on .chip__dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
}
.chip.off {
  color: var(--ink-3);
}
.chip.off .chip__dot {
  background: transparent;
  border: 1.5px solid var(--line-strong);
}

.boss-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--line-strong));
  background: color-mix(in oklab, var(--accent) 9%, transparent);
}

/* click-through mini illustration */
.ct-vis {
  position: relative;
  height: 78px;
  border-radius: 10px;
  background: var(--surface-sunk);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  margin-top: 3px;
}
.ct-vis .ct-pane {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 70px;
  height: 42px;
  border-radius: 8px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-ring);
}
.ct-vis .ct-target {
  position: absolute;
  left: 16px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
}
.ct-vis .ct-cursor {
  position: absolute;
  right: 42px;
  top: 30px;
  color: var(--ink);
  width: 15px;
  height: 15px;
}

@media (max-width: 760px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
  .feat-focal {
    grid-template-columns: 1fr;
  }
  .peek-stage {
    min-height: 220px;
  }
}

/* mini-mock keys overlay (How It Works, step 3) */
.mm__keys {
  position: absolute;
  left: 50%;
  bottom: 13px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mm__keys .kbd {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 12.5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -3px 4px -2px rgba(40, 60, 110, 0.12),
    0 1px 2px rgba(30, 42, 70, 0.12);
}

/* ============================================================
   CONTROL REFERENCE
   ============================================================ */
.ref {
  margin-top: clamp(36px, 5vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 3.2vw, 44px);
  align-items: start;
}
.ref-col__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ref-col__head h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.ref-col__head span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.ref-panel {
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-ring), var(--shadow-soft);
}
.sc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center; /* 键帽相对整行（名称 + 描述）垂直居中 */
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s ease;
}
.sc-row:last-child {
  border-bottom: none;
}
.sc-row:hover {
  background: var(--glass-bg-strong);
}
.sc-text {
  min-width: 0;
}
.sc-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sc-combo {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.sc-combo .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  margin-right: 3px;
}
.sc-combo .sep {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  margin-inline: 1px;
}
.sc-desc {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 5px;
  line-height: 1.4;
}

/* toolbar pill mock */
.tb-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-ring), var(--shadow-glass);
  margin-bottom: 18px;
  overflow-x: auto;
}
.tb-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line-soft);
  background: color-mix(in oklab, var(--surface) 55%, transparent);
  color: var(--ink-2);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.tb-btn:hover {
  color: var(--ink);
  transform: translateY(-1px);
  background: var(--surface);
}
.tb-btn svg {
  width: 15px;
  height: 15px;
}
.tb-btn--glyph {
  font-size: 16px;
  line-height: 1;
}
.tb-url {
  flex: 1;
  min-width: 96px;
  height: 30px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface-sunk) 70%, transparent);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
}
.tb-url svg {
  width: 12px;
  height: 12px;
  flex: none;
  opacity: 0.7;
}
.tb-legend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 22px;
}
.tb-leg {
  display: flex;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.tb-leg .ic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  background: color-mix(in oklab, var(--surface) 50%, transparent);
  color: var(--ink-2);
}
.tb-leg .ic svg {
  width: 13px;
  height: 13px;
}
.tb-leg .ic--glyph {
  font-size: 14px;
  line-height: 1;
}
.tb-leg > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tb-leg .name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.tb-leg .desc {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.35;
}

@media (max-width: 860px) {
  .ref {
    grid-template-columns: 1fr;
  }
  .ref-col,
  .ref-panel,
  .tb-pill {
    min-width: 0;
    max-width: 100%;
  }
  .tb-legend {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tb-pill {
    gap: 4px;
    padding: 6px;
    overflow-x: hidden;
  }
  .tb-btn {
    width: 26px;
    height: 26px;
  }
  .tb-btn svg {
    width: 13px;
    height: 13px;
  }
  .tb-btn--glyph {
    font-size: 13px;
  }
  .tb-url {
    min-width: 64px;
    padding: 0 8px;
    font-size: 9.5px;
  }
}

/* ============================================================
   SKINS — re-theme the whole page via [data-skin] on <html>.
   warm   = original (default, no attribute / "warm")
   apple  = cool near-white, Apple liquid-glass, black CTA
   green  = white-dominant with a premium emerald primary
   Token + background overrides only — structure is untouched.
   ============================================================ */

/* ---------- APPLE WHITE ---------- */
:root[data-skin='apple'] {
  --bg: oklch(0.988 0.003 250);
  --bg-2: oklch(0.977 0.004 248);
  --surface: oklch(1 0 0);
  --surface-sunk: oklch(0.966 0.004 250);
  --line: oklch(0.905 0.005 250);
  --line-soft: oklch(0.938 0.004 250);
  --line-strong: oklch(0.82 0.008 252);

  --ink: oklch(0.23 0.012 262);
  --ink-2: oklch(0.45 0.013 260);
  --ink-3: oklch(0.605 0.011 258);
  --ink-4: oklch(0.72 0.009 256);

  --btn-bg: oklch(0.2 0.008 264);
  --btn-bg-hover: oklch(0.3 0.01 264);
  --btn-ink: oklch(0.99 0.002 250);

  --live: oklch(0.62 0.21 25); /* Apple red, for LIVE only */
  --accent: oklch(0.6 0.17 252); /* Apple blue, sparingly */

  --glass-bg: color-mix(in oklab, white 60%, transparent);
  --glass-bg-strong: color-mix(in oklab, white 76%, transparent);
  --glass-blur: saturate(180%) blur(24px);
  --glass-border: rgba(255, 255, 255, 0.78);
  --glass-ring:
    inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 0 0 0.5px rgba(255, 255, 255, 0.4),
    inset 0 -14px 28px -18px rgba(40, 60, 110, 0.12);

  --shadow-win:
    0 1px 2px rgba(28, 38, 60, 0.06), 0 16px 38px -10px rgba(28, 38, 60, 0.16),
    0 46px 88px -34px rgba(28, 38, 60, 0.22);
  --shadow-float:
    0 1px 1px rgba(24, 32, 52, 0.12), 0 8px 16px -2px rgba(24, 32, 52, 0.18),
    0 24px 48px -14px rgba(24, 32, 52, 0.28);
  --shadow-soft: 0 1px 2px rgba(28, 38, 60, 0.05), 0 10px 28px -12px rgba(28, 38, 60, 0.12);
  --shadow-glass: 0 1px 2px rgba(28, 38, 60, 0.07), 0 18px 40px -12px rgba(28, 38, 60, 0.2);
  --ring: 0 0 0 0.5px rgba(30, 40, 60, 0.1);
}
:root[data-skin='apple'] body {
  background:
    /* TL: 参考版四角固定灰色光球，银色角点 -> 深灰球心 -> 透明消失 */
    radial-gradient(
      76% 64% at 0% -5%,
      oklch(0.968 0.004 250 / 0.94) 0%,
      oklch(0.89 0.006 251 / 0.82) 18%,
      oklch(0.735 0.009 253 / 0.72) 40%,
      oklch(0.735 0.009 253 / 0.36) 56%,
      transparent 78%
    ),
    radial-gradient(
      76% 64% at 100% -5%,
      oklch(0.966 0.004 250 / 0.9) 0%,
      oklch(0.89 0.006 251 / 0.78) 18%,
      oklch(0.74 0.009 253 / 0.68) 40%,
      oklch(0.74 0.009 253 / 0.34) 56%,
      transparent 78%
    ),
    radial-gradient(
      78% 66% at 100% 105%,
      oklch(0.966 0.004 250 / 0.88) 0%,
      oklch(0.89 0.006 251 / 0.74) 18%,
      oklch(0.735 0.009 253 / 0.66) 42%,
      oklch(0.735 0.009 253 / 0.32) 58%,
      transparent 80%
    ),
    radial-gradient(
      76% 64% at 0% 105%,
      oklch(0.966 0.004 250 / 0.88) 0%,
      oklch(0.89 0.006 251 / 0.74) 18%,
      oklch(0.74 0.009 253 / 0.66) 42%,
      oklch(0.74 0.009 253 / 0.32) 58%,
      transparent 80%
    ),
    var(--bg);
  background-attachment: fixed;
}
:root[data-skin='apple'] .scene {
  background: radial-gradient(
    120% 120% at 70% 4%,
    oklch(0.955 0.022 240) 0%,
    oklch(0.91 0.035 252) 46%,
    oklch(0.85 0.045 268) 100%
  );
}
:root[data-skin='apple'] .peek-stage {
  background: radial-gradient(
    120% 130% at 72% 0%,
    oklch(0.955 0.022 240) 0%,
    oklch(0.9 0.04 252) 52%,
    oklch(0.82 0.052 268) 100%
  );
}
:root[data-skin='apple'] .kbd {
  background: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.55));
  border-bottom-color: color-mix(in oklab, var(--line-strong) 70%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -3px 4px -2px rgba(40, 60, 110, 0.12),
    0 1px 2px rgba(30, 42, 70, 0.14);
}

/* ---------- PREMIUM GREEN (EMERALD) ---------- */
:root[data-skin='green'] {
  --bg: oklch(0.986 0.008 158);
  --bg-2: oklch(0.975 0.012 158);
  --surface: oklch(0.997 0.004 158);
  --surface-sunk: oklch(0.966 0.012 158);
  --line: oklch(0.9 0.015 158);
  --line-soft: oklch(0.935 0.012 158);
  --line-strong: oklch(0.83 0.022 158);

  --ink: oklch(0.27 0.03 162);
  --ink-2: oklch(0.45 0.03 160);
  --ink-3: oklch(0.6 0.025 158);
  --ink-4: oklch(0.71 0.02 157);

  --btn-bg: oklch(0.44 0.1 159); /* deep emerald CTA */
  --btn-bg-hover: oklch(0.51 0.11 159);
  --btn-ink: oklch(0.99 0.012 155);

  --live: oklch(0.62 0.18 28); /* keep a true "live" red */
  --accent: oklch(0.55 0.12 159); /* emerald accent */

  --glass-bg: color-mix(in oklab, white 58%, transparent);
  --glass-bg-strong: color-mix(in oklab, white 73%, transparent);
  --glass-blur: saturate(190%) blur(23px);
  --glass-border: rgba(255, 255, 255, 0.74);
  --glass-ring:
    inset 0 1px 0 rgba(255, 255, 255, 0.94), inset 0 0 0 0.5px rgba(255, 255, 255, 0.4),
    inset 0 -14px 28px -18px rgba(20, 86, 58, 0.16);

  --shadow-win:
    0 1px 2px rgba(18, 52, 38, 0.06), 0 16px 38px -10px rgba(18, 52, 38, 0.16),
    0 46px 88px -34px rgba(18, 52, 38, 0.22);
  --shadow-float:
    0 1px 1px rgba(16, 46, 34, 0.12), 0 8px 16px -2px rgba(16, 46, 34, 0.2),
    0 24px 48px -14px rgba(16, 46, 34, 0.3);
  --shadow-soft: 0 1px 2px rgba(18, 52, 38, 0.05), 0 10px 28px -12px rgba(18, 52, 38, 0.13);
  --shadow-glass: 0 1px 2px rgba(18, 52, 38, 0.07), 0 18px 40px -12px rgba(18, 52, 38, 0.22);
  --ring: 0 0 0 0.5px rgba(20, 52, 40, 0.1);
}
:root[data-skin='green'] body {
  background:
    radial-gradient(48% 42% at 8% 0%, oklch(0.93 0.06 158 / 0.55), transparent 70%),
    radial-gradient(46% 42% at 95% -2%, oklch(0.94 0.045 178 / 0.5), transparent 70%),
    radial-gradient(54% 50% at 90% 99%, oklch(0.935 0.05 142 / 0.44), transparent 72%),
    radial-gradient(50% 48% at 3% 97%, oklch(0.95 0.035 166 / 0.4), transparent 72%), var(--bg);
  background-attachment: fixed;
}
:root[data-skin='green'] .scene {
  background: radial-gradient(
    120% 120% at 70% 4%,
    oklch(0.95 0.03 158) 0%,
    oklch(0.9 0.05 160) 46%,
    oklch(0.83 0.065 166) 100%
  );
}
:root[data-skin='green'] .peek-stage {
  background: radial-gradient(120% 120% at 70% 4%, oklch(0.33 0.05 160), oklch(0.16 0.03 162));
}
:root[data-skin='green'] .kbd {
  background: linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.52));
  border-bottom-color: color-mix(in oklab, var(--line-strong) 70%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -3px 4px -2px rgba(20, 86, 58, 0.14),
    0 1px 2px rgba(20, 60, 42, 0.14);
}
:root[data-skin='green'] .boss-badge {
  border-color: color-mix(in oklab, var(--accent) 50%, var(--line-strong));
  background: color-mix(in oklab, var(--accent) 11%, transparent);
}

/* ============================================================
   SKIN SWITCHER — fixed floating control to compare looks
   ============================================================ */
.skin-switch {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-ring), var(--shadow-glass);
}
.skin-switch__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 8px 0 10px;
}
.skin-switch__btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  padding: 7px 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.2s ease;
}
.skin-switch__btn:hover {
  color: var(--ink);
}
.skin-switch__sw {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.skin-switch__btn[data-for='apple'] .skin-switch__sw {
  background: oklch(0.96 0.02 250);
}
.skin-switch__btn[data-for='green'] .skin-switch__sw {
  background: oklch(0.46 0.12 159);
}
.skin-switch__btn[data-for='warm'] .skin-switch__sw {
  background: oklch(0.7 0.13 52);
}
.skin-switch__btn[aria-pressed='true'] {
  color: var(--ink);
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(20, 30, 50, 0.12),
    inset 0 0 0 0.5px var(--glass-border);
}
@media (max-width: 560px) {
  .skin-switch__label {
    display: none;
  }
  .skin-switch__btn {
    padding: 7px 12px;
    font-size: 12.5px;
  }
}

/* ============================================================
   Landing: 真实 <img> 流帧替换设计期 <image-slot>
   设计稿用自定义 <image-slot> 占位；落地页直接用真图，
   补铺满 + object-fit，覆盖 .peek-window 仅命中 image-slot 的规则。
   ============================================================ */
.peeko-win img.slot,
.peek-window img.slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
