/* Mac-Deck marketing — cinematic-app-landing spine */

:root {
  --bg: #07080a;
  --bg-elevated: #101216;
  --fg: #ffffff;
  /* WCAG AAA ≥ 7:1 on --bg */
  --fg-muted: #d0d0d4;
  --ink: #f2f2f4;
  --ink-mute: #c8c8ce;
  --paper: #07080a;
  --accent: #ff4d9d;
  --accent-deep: #c21667;
  --accent-soft: #ff8fbf;
  --accent-label: #7dffb3;
  /* CTA pair: black on light magenta ≥ 7:1 (AAA) */
  --accent-cta-from: #ff6aad;
  --accent-cta-to: #ff8fbf;
  --accent-cta-ink: #0a0a0a;
  --glow: rgba(255, 77, 157, 0.45);
  --green: #3ddc84;
  --amber: #ffb340;
  --red: #ff6b63;
  --radius-card: 28px;
  --radius-pill: 999px;
  --font-display: "Barlow Condensed", system-ui, sans-serif;
  --font-ui: "Space Grotesk", system-ui, sans-serif;
  /* Focus Appearance (AAA): ≥3px ring, high contrast vs chrome */
  --focus-ring: #ffb3d4;
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--focus-ring);
  --px: 0px;
  --py: 0px;
  --chapter-count: 5;
  --chrome-h: 4.25rem;

  /* Liquid Glass tokens (web approximation of rim glass) */
  --glass-fill: rgba(255, 255, 255, 0.07);
  --glass-fill-strong: rgba(255, 255, 255, 0.12);
  --glass-stroke: rgba(255, 255, 255, 0.18);
  --glass-stroke-soft: rgba(255, 255, 255, 0.1);
  --glass-blur: 18px;
  --glass-sat: 165%;
  --glass-rim-sheen:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -1px 1px rgba(255, 255, 255, 0.22),
    inset 1px 0 1px rgba(255, 255, 255, 0.18),
    inset -1px 0 1px rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
button, a { font: inherit; }

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--accent-cta-from);
  color: var(--accent-cta-ink);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.label {
  margin: 0 0 0.65rem;
  color: var(--accent-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--fg-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}


.muted { color: var(--ink-mute); }

.lg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* —— Liquid Glass material (backdrop + Fresnel rim) —— */
.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.08);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(1.08);
  box-shadow: var(--glass-shadow), var(--glass-rim-sheen);
}
.glass--strong {
  background: var(--glass-fill-strong);
}
.glass--panel {
  border-radius: var(--radius-card);
}
@supports (backdrop-filter: url(#lg-refract)) {
  .glass--refract {
    backdrop-filter: blur(3px) saturate(180%) brightness(1.06) url(#lg-refract);
    -webkit-backdrop-filter: blur(3px) saturate(180%) brightness(1.06) url(#lg-refract);
  }
}

h1, h2, h3 {
  text-wrap: balance;
}

a, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

[id] {
  scroll-margin-top: calc(var(--chrome-h) + 0.75rem);
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-content: center;
  gap: 1.25rem;
  background: var(--bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}
.loader__bar {
  width: 140px;
  height: 2px;
  margin-inline: auto;
  background: #222;
  overflow: hidden;
  border-radius: 999px;
}
.loader__bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  animation: load 0.9s ease-in-out infinite;
}
@keyframes load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* Chrome */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--chrome-h);
  padding: max(0.75rem, env(safe-area-inset-top)) clamp(1rem, 3vw, 2rem) 0.75rem;
  background: transparent;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-chrome.is-scrolled {
  background: rgba(7, 8, 10, 0.55);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--glass-stroke-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
}
.nav-link:hover { color: var(--fg); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  gap: 2px;
  padding: 2px;
}
.lang-toggle__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg-muted);
  padding: 0.4rem 0.65rem;
  min-width: 2.4rem;
  min-height: 2rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
}
.lang-toggle__btn.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: var(--fg);
}
.lang-toggle__btn:focus-visible {
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  cursor: pointer;
  color: var(--accent-cta-ink);
  background: linear-gradient(135deg, var(--accent-cta-from), var(--accent-cta-to));
  box-shadow: 0 10px 28px rgba(255, 77, 157, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 106, 173, 0.55);
}
.btn--small { padding: 0.5rem 0.95rem; font-size: 0.9rem; }
.btn--accent { color: var(--accent-cta-ink); }
.btn--glass {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--glass-rim-sheen);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.2);
  filter: none;
}

/* Get-apps dock (text only — no fake download QR) */
.qr-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
}
.qr-dock__card {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  padding: 0.75rem 1rem;
  min-width: 7.5rem;
  width: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.qr-dock__card--text {
  background: linear-gradient(135deg, var(--accent-cta-from), var(--accent-cta-to));
  color: var(--accent-cta-ink);
  font-weight: 700;
}
.qr-dock__card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(255, 77, 157, 0.18);
}
.qr-dock__card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.btn--soon {
  /* Coming-soon affordance without lowering contrast */
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.2);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--chrome-h));
  min-height: calc(100svh - var(--chrome-h));
  overflow: clip;
  isolation: isolate;
}
.hero__world {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__world .layer {
  position: absolute;
  inset: -6% -4%;
  will-change: transform;
}
.hero__world .layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.hero__world .layer--midground {
  display: none; /* desk Mac plate — hero focuses the phone */
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 55% at 72% 52%, transparent 0%, rgba(7, 8, 10, 0.25) 42%, rgba(7, 8, 10, 0.92) 100%),
    radial-gradient(40% 40% at 72% 48%, rgba(255, 77, 157, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.55), transparent 35%, rgba(7, 8, 10, 0.88));
}
.hero__stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  min-height: inherit;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 4rem) 3rem;
}
.hero__copy {
  max-width: 34rem;
  animation: rise 0.8s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero__lede {
  margin: 0 0 1.5rem;
  max-width: 28ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--fg-muted);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__scroll-cue {
  margin: 1.75rem 0 0;
  color: var(--ink-mute);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__product {
  --launch-progress: 0;
  position: relative;
  min-height: min(70vh, 640px);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

/* Phone + optional launch window — side by side, centered as a pair */
.hero__product .demo-phone {
  position: relative;
  flex: 0 0 auto;
  width: min(240px, 26vw);
  order: 2;
  z-index: 5;
  pointer-events: auto;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.55));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__product .demo-mac {
  position: relative;
  flex: 0 0 auto;
  width: 0;
  min-width: 0;
  aspect-ratio: 16 / 10.4;
  order: 1;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-radius: 0;
  background: transparent;
  border: none;
  transform: translateX(12px) scale(0.96);
  box-shadow: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    width 0.35s ease,
    min-width 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__product.has-launched .demo-mac {
  width: min(540px, 48vw);
  min-width: min(440px, 42vw);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.hero__product.has-launched .demo-phone {
  transform: none;
}

/* WOW intro: zoom into the phone, then hand off to the Mac window */
.hero__product.is-wow-phone .demo-phone {
  transform: scale(1.12);
  z-index: 6;
}
.hero__product.is-wow-phone .demo-mac {
  opacity: 0.45;
  visibility: visible;
  width: min(420px, 40vw);
  min-width: min(320px, 34vw);
  transform: translateX(8px) scale(0.9);
}
.hero__product.is-wow-press .demo-phone {
  transform: scale(1.14);
}
.hero__product.is-wow-mac .demo-phone {
  transform: scale(0.92);
}
.hero__product.is-wow-mac .demo-mac {
  width: min(540px, 48vw);
  min-width: min(440px, 42vw);
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hero__product .demo-mac__hint {
  display: none; /* idle cue lives on the phone */
}

.demo-mac,
.demo-phone,
.demo-browser,
.demo-appwin { /* anchors for component rules below */ }

/* Monitor chassis — desktop display the app window renders into */
.demo-mac__chassis {
  position: absolute;
  inset: 0 0 10px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, #2a2e36 0%, #12151a 55%, #0a0c10 100%);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.demo-mac__chassis::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 38%;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #1a1d24, #0c0e12);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.demo-mac__chin {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 48px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.demo-mac__screen {
  position: absolute;
  inset: 8px 8px 18px;
  border-radius: 6px;
  overflow: hidden;
  background: #0b1020;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.demo-mac__wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 50% at 30% 25%, rgba(90, 140, 200, 0.35), transparent 55%),
    radial-gradient(50% 45% at 78% 70%, rgba(255, 77, 157, 0.18), transparent 60%),
    linear-gradient(165deg, #1a2744 0%, #0e1628 45%, #12101c 100%);
  z-index: 0;
}

.demo-mac__menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 18px;
  padding: 0 8px;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(18, 22, 32, 0.42);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.demo-mac__apple {
  font-weight: 500;
  opacity: 0.9;
}

.demo-mac__app:empty {
  display: none;
}

.demo-mac__menu-trail {
  margin-left: auto;
  font-weight: 500;
  opacity: 0.75;
}

.demo-mac__dock {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: rgba(30, 34, 44, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.demo-mac__dock img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

.demo-mac__hint {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 4;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.7);
  color: var(--ink-mute);
  font-size: 10px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.demo.has-launched .demo-mac__hint {
  opacity: 0;
  pointer-events: none;
}

.demo-browser,
.demo-appwin {
  position: absolute;
  inset: 26px 14px 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: #11151c;
  border: 1px solid rgba(232, 234, 238, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.92) translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-browser[hidden],
.demo-appwin[hidden] {
  display: none !important;
}

.demo-browser.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Scroll-driven open: progress 0→1 grows the window */
.demo-appwin.is-open {
  opacity: max(0.001, var(--launch-progress));
  transform:
    scale(calc(0.88 + 0.12 * var(--launch-progress)))
    translateY(calc((1 - var(--launch-progress)) * 14px));
  transition: none;
}

.demo-browser__chrome,
.demo-appwin__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 9px;
  background: linear-gradient(180deg, #2a3140, #1c222c);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.demo-browser.is-chrome .demo-browser__chrome {
  background: linear-gradient(180deg, #3a3f4a, #20242d);
}

.demo-browser__traffic {
  display: flex;
  gap: 5px;
}

.demo-browser__traffic span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}

.demo-browser__traffic span:nth-child(2) { background: #febc2e; }
.demo-browser__traffic span:nth-child(3) { background: #28c840; }

.demo-browser__engine {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background:
    center / contain no-repeat url("../assets/icons/safari.png"),
    #1a1d24;
}

.demo-browser.is-chrome .demo-browser__engine {
  background-image: url("../assets/icons/chrome.png");
}

.demo-browser__tabs {
  display: flex;
  gap: 4px;
  min-width: 0;
}

.demo-browser__tab {
  max-width: 110px;
  padding: 3px 8px;
  border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-browser__url {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.demo-browser__lock {
  width: 8px;
  height: 9px;
  flex: 0 0 auto;
  border: 1.5px solid var(--ink-mute);
  border-radius: 2px;
  position: relative;
}

.demo-browser__lock::before {
  content: "";
  position: absolute;
  left: 1px;
  top: -4px;
  width: 4px;
  height: 4px;
  border: 1.5px solid var(--ink-mute);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.demo-browser__url input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  font: inherit;
  font-size: 10px;
  outline: none;
}

.demo-browser__load {
  height: 2px;
  background: transparent;
  overflow: hidden;
}

.demo-browser__load.is-loading::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  background: var(--accent);
  animation: browserLoad 0.45s ease forwards;
}

.demo-browser__load.is-done::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
}

@keyframes browserLoad {
  from { width: 0; }
  to { width: 92%; }
}

.demo-browser__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #0b0d10;
}

.demo-appwin__badge {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
}

.demo-appwin__title {
  margin: 0;
  font-size: 11px;
  color: var(--ink);
}

.demo-appwin__body {
  flex: 1;
  min-height: 0;
  display: grid;
  background: #0e1218;
}

.demo-appwin__fallback {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 1rem;
  text-align: center;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(255, 77, 157, 0.12), transparent 60%),
    #0e1218;
}

.demo-appwin.is-editor .demo-appwin__fallback {
  display: none;
}

.demo-appwin:not(.is-editor) .demo-vscode {
  display: none;
}

.demo-appwin__fallback img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.demo-appwin__fallback p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 12px;
}

.demo-vscode {
  display: flex;
  min-height: 0;
  height: 100%;
  background: #1e1e1e;
}

.demo-vscode__side {
  width: 36px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  background: #333333;
  border-right: 1px solid #222;
}

.demo-vscode__side span {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #858585;
  opacity: 0.7;
}

.demo-vscode__side span:first-child {
  background: #007acc;
  opacity: 1;
}

.demo-vscode__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.demo-vscode__tab {
  padding: 6px 12px;
  font-size: 11px;
  color: #cccccc;
  background: #2d2d2d;
  border-bottom: 1px solid #1e1e1e;
}

.demo-vscode__code {
  margin: 0;
  padding: 12px 14px;
  flex: 1;
  overflow: hidden;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #d4d4d4;
  background: #1e1e1e;
}

.demo-vscode__code .k { color: #569cd6; }
.demo-vscode__code .t { color: #4ec9b0; }
.demo-vscode__code .m { color: #dcdcaa; }

.demo-phone__bezel {
  position: relative;
  border-radius: 36px;
  padding: 12px 11px 12px;
  background:
    linear-gradient(160deg, rgba(60, 66, 78, 0.95), rgba(11, 14, 19, 0.98) 70%);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 40px rgba(255, 77, 157, 0.12);
  aspect-ratio: 200 / 420;
  display: flex;
  flex-direction: column;
}

.demo-phone__island {
  width: 64px;
  height: 18px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #050608;
}

.demo-phone__status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 8px;
  font-size: 11px;
  color: var(--ink-mute);
}

.demo-phone__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.65);
}

.demo-phone__status.is-pulse .demo-phone__dot {
  animation: statusPulse 0.55s ease;
}

@keyframes statusPulse {
  0% { transform: scale(1); box-shadow: 0 0 8px rgba(52, 199, 89, 0.65); }
  40% { transform: scale(1.25); box-shadow: 0 0 14px rgba(255, 77, 157, 0.55); }
  100% { transform: scale(1); box-shadow: 0 0 8px rgba(52, 199, 89, 0.65); }
}

.demo-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 7px;
  padding: 2px 4px 0;
  flex: 1;
  min-height: 0;
}

.demo-key {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  display: block;
  min-width: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.demo-key:disabled {
  cursor: default;
}

.demo-key__face {
  --rim: 7.5%;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  /* Transparent face — icon + rim glass only (matches product Liquid Glass keys) */
  background: transparent;
  border: 1px solid rgba(255, 77, 157, 0.28);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Rim-only Liquid Glass band (matches product GlassRimShape intent) */
.demo-key__face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 42%),
    linear-gradient(320deg, rgba(255, 77, 157, 0.35), transparent 50%);
  opacity: 0.85;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--rim) - 2%), #000 calc(100% - var(--rim)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--rim) - 2%), #000 calc(100% - var(--rim)));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 14px rgba(255, 77, 157, 0.28);
}

.demo-key__face::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: calc(14px - 2px);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 55%);
}

.demo-key__face img {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  object-fit: contain;
  /* macOS icons already include their squircle + alpha — don't clip into a dark disc */
  border-radius: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.demo-key__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-key:hover .demo-key__face {
  border-color: rgba(255, 143, 191, 0.85);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(255, 77, 157, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.demo-key:focus-visible {
  outline: none;
  box-shadow: none;
}
.demo-key:focus-visible .demo-key__face {
  border-color: #fff;
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 6px var(--focus-ring),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.demo-key.is-pressed .demo-key__face,
.demo-key.is-scroll-target .demo-key__face {
  transform: scale(0.9);
  border-color: var(--accent);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(255, 77, 157, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.demo-key.is-scroll-target .demo-key__face img {
  transform: scale(0.96);
}

.demo-phone__cue {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  width: max(100%, 160px);
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  color: var(--ink-mute);
  text-align: center;
  pointer-events: none;
}

.demo-phone__cue.is-nudge {
  color: var(--accent);
  animation: cuePulse 1.4s ease infinite;
}

@keyframes cuePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-browser,
  .demo-appwin,
  .demo-key__face,
  .demo-phone__cue.is-nudge {
    transition: none;
    animation: none;
  }
}

/* Logo strip */
.logo-strip {
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #050505;
  text-align: center;
}
.logo-strip__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1.75rem;
  opacity: 0.78;
}
.logo-strip__track img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.logo-strip__caption {
  margin: 1.25rem 0 0;
  color: var(--ink-mute);
  font-size: 0.85rem;
}

/* Sticky chapters */
.chapters {
  position: relative;
  height: calc(var(--chapter-count) * 100vh);
  height: calc(var(--chapter-count) * 100svh);
  background: var(--bg);
}
.chapters__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 6vw;
  background: var(--bg);
  color: var(--fg);
  transition: opacity 0.2s ease;
}
.chapters__stage.is-swapping .chapters__copy {
  opacity: 0;
  transform: translateY(14px);
}
.chapters__copy {
  max-width: 28rem;
  padding: 1.5rem 1.6rem 1.65rem;
  border-radius: var(--radius-card);
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(22px) saturate(160%) brightness(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(160%) brightness(1.05);
  box-shadow: var(--glass-shadow), var(--glass-rim-sheen);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chapters__copy h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.chapters__copy .body {
  margin: 0;
  color: var(--fg-muted);
  font-size: 1.05rem;
}
.chapters__device {
  position: relative;
  display: grid;
  place-items: center;
}
.glow {
  position: absolute;
  inset: 12% 18%;
  background: radial-gradient(circle, var(--glow, rgba(255, 77, 157, 0.45)), transparent 70%);
  filter: blur(48px);
  pointer-events: none;
}
.phone-frame {
  position: relative;
  width: min(300px, 34vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(165deg, #1a1d24, #0a0c10 70%);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  transition:
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    aspect-ratio 0.35s ease,
    border-radius 0.35s ease;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.phone-frame > .screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 280ms ease;
  background: #0c0e12;
}
.phone-frame > .screen.is-active { opacity: 1; }

/* Pair chapter: Mac menu-bar popover (Agent lives on the Mac, not the phone) */
.phone-frame:has([data-screen="pair"].is-active) {
  width: min(280px, 42vw);
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: linear-gradient(165deg, #2a3140, #12151c 70%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(255, 77, 157, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.phone-frame:has([data-screen="pair"].is-active) > .screen {
  background: transparent;
}

/* Edit Deck is a Mac window — morph the chapter device out of phone shape */
.phone-frame:has([data-screen="edit"].is-active) {
  width: min(480px, 48vw);
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: linear-gradient(165deg, #222833, #12151c 70%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 77, 157, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.phone-frame:has([data-screen="edit"].is-active) > .screen {
  background: transparent;
}

.chapters__dots {
  position: absolute;
  right: 24px;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chapters__dots li {
  list-style: none;
}
.chapters__dots button {
  appearance: none;
  border: 0;
  padding: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: block;
}
.chapters__dots button[aria-current="true"] {
  background: var(--accent-label);
  box-shadow: 0 0 0 2px rgba(125, 255, 179, 0.35);
}
.chapters__dots button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.chapters__triggers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.chapters__trigger {
  height: calc(100% / var(--chapter-count));
}

/* Chapter screens */
.screen-pair,
.screen-deck,
.screen-glass,
.screen-edit,
.screen-private {
  height: 100%;
  padding: 1.4rem 1rem 1rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
}
.screen-pair {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  height: 100%;
  text-align: center;
}
.screen-pair__menubar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, #3a3f4a, #20242d);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}
.screen-pair__apple { opacity: 0.85; }
.screen-pair__agent { color: #ffb3d4; }
.screen-pair__popover {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.65rem;
  padding: 1rem 0.85rem;
  background: linear-gradient(165deg, rgba(36, 42, 56, 0.96), rgba(14, 16, 22, 0.98));
}
.screen-pair__title { margin: 0; font-size: 0.78rem; color: var(--fg-muted); }
.screen-pair__qr {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.screen-pair__qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.screen-pair__pin {
  margin: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}
.screen-pair__hint { margin: 0; font-size: 0.68rem; color: var(--fg-muted); max-width: 16rem; }

.screen-deck { align-content: start; padding-top: 1.6rem; }
.screen-deck__status {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.screen-deck__status span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}
.screen-deck__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  width: 100%;
}
.screen-deck__grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 18%;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(255, 77, 157, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.screen-deck__grid img.is-press {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(255, 77, 157, 0.35);
  transform: scale(0.92);
}

.screen-glass__key {
  display: grid;
  place-items: center;
  width: 120px;
}
/* Match iOS AppTileView: icon ~78% of face, rim-only Liquid Glass band */
.screen-glass__face {
  --rim: 7.5%;
  position: relative;
  width: 112px;
  aspect-ratio: 1;
  border-radius: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  border: 1px solid rgba(255, 77, 157, 0.28);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.screen-glass__face img {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
}
.screen-glass__rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 42%),
    linear-gradient(300deg, rgba(255, 77, 157, 0.5), transparent 55%);
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - var(--rim) - 2%),
    #000 calc(100% - var(--rim))
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - var(--rim) - 2%),
    #000 calc(100% - var(--rim))
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 0 16px rgba(255, 77, 157, 0.28),
    0 0 28px rgba(255, 77, 157, 0.35);
}
.screen-glass p { margin: 0; font-size: 0.78rem; color: var(--fg-muted); }

.screen-edit {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  gap: 0;
  text-align: left;
  align-content: stretch;
  justify-items: stretch;
  background:
    linear-gradient(160deg, rgba(36, 42, 56, 0.96), rgba(14, 16, 22, 0.98));
}
.screen-edit__chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  background: linear-gradient(180deg, #2a3140, #1c222c);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}
.screen-edit__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
}
.screen-edit__body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.55rem;
  padding: 0.55rem;
}
.screen-edit__lib {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.screen-edit__lib-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--fg-muted);
}
.screen-edit__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
}
.screen-edit__tabs em {
  font-style: normal;
  padding: 0.22rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.58rem;
  color: var(--ink-mute);
  white-space: nowrap;
}
.screen-edit__tabs em.is-on {
  background: rgba(255, 77, 157, 0.28);
  color: #ffd0e4;
}
.screen-edit__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  overflow: hidden;
}
.screen-edit__list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.35rem;
  border-radius: 7px;
  font-size: 0.62rem;
  color: var(--ink);
}
.screen-edit__list li.is-on {
  background: rgba(255, 77, 157, 0.18);
}
.screen-edit__list img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
}
.screen-edit__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.45rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.screen-edit__preview-label {
  margin: 0;
  font-size: 0.58rem;
  color: var(--ink-mute);
}
.screen-edit__phone {
  width: min(100%, 132px);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  padding: 0.55rem 0.45rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  align-content: start;
  background: linear-gradient(165deg, #1a1d24, #0a0c10 70%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.screen-edit__phone img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 14%;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 77, 157, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.screen-private__badge {
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(125, 255, 179, 0.12);
  color: var(--accent-label);
  font-size: 0.75rem;
  font-weight: 600;
}
.screen-private ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  width: 100%;
}
.screen-private li {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  font-size: 0.85rem;
}
.screen-private .ok { color: var(--green); font-variant-numeric: tabular-nums; font-weight: 600; }

.chapters-stack {
  display: none;
  padding: 1rem 1.1rem 2rem;
  background: var(--bg);
}
.chapters-stack__item {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chapters-stack__item h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1.05;
}
.chapters-stack__item > p:last-of-type { color: var(--fg-muted); }
.chapters-stack__device {
  display: grid;
  place-items: center;
  margin-top: 1.25rem;
}
.phone-frame--static { width: min(240px, 70vw); }
.phone-frame--static:has([data-screen="edit"].is-active) {
  width: min(100%, 360px);
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

/* Bento */
.bento {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 4rem);
  background: var(--bg-elevated);
}
.bento__intro { max-width: 40rem; margin-bottom: 2rem; }
.bento__intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  line-height: 1.05;
}
.bento__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.bento__tile {
  border-radius: var(--radius-card);
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke-soft);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--glass-rim-sheen);
}
.bento__tile--media {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(255, 77, 157, 0.22), transparent 60%),
    var(--glass-fill);
}
.bento__tile h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.bento__tile p { margin: 0; color: var(--fg-muted); }
.bento__media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.bento__media img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.bento__chip {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 77, 157, 0.14);
  color: #ffb3d4;
  font-size: 0.75rem;
  font-weight: 600;
}
.bento__connected {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(61, 224, 160, 0.12);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
}
.bento__connected-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(61, 224, 160, 0.55);
}

/* Trust */
.trust {
  padding: clamp(3.5rem, 9vw, 6.5rem) 1.25rem 4rem;
  background: #f3f1f0;
  color: #121212;
  text-align: center;
  overflow: clip;
}
.trust__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #404040;
  font-weight: 700;
}
.trust__count {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.trust__sub {
  margin: 0.85rem auto 2rem;
  max-width: 28rem;
  color: #444;
}
.trust__facts {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 42rem;
}
.trust__facts li {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  font-weight: 500;
  color: #222;
}

/* Outcomes */
.outcomes {
  position: relative;
  height: 220vh;
  background: transparent;
  margin-top: -2.5rem;
}
.outcomes__sheet {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 0 3rem;
  border-radius: 36px 36px 0 0;
  background: #050505;
  box-shadow: 0 -24px 60px rgba(0,0,0,0.25);
}
.outcomes__intro {
  padding: 0 clamp(1.25rem, 4vw, 4rem);
}
.outcomes__intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  text-transform: uppercase;
  line-height: 0.98;
}
.outcomes__viewport { overflow: hidden; padding-left: clamp(1.25rem, 4vw, 4rem); }
.outcomes__track {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0 4rem 0 0;
  list-style: none;
  width: max-content;
  will-change: transform;
}
.outcome-card {
  width: min(340px, 78vw);
  min-height: 280px;
  padding: 1.4rem 1.35rem 1.5rem;
  border-radius: var(--radius-card);
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--glass-rim-sheen);
  display: flex;
  flex-direction: column;
}
.outcome-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  text-transform: uppercase;
  line-height: 1.1;
}
.outcome-card > p { margin: 0; color: var(--fg-muted); flex: 1; }
.outcome-card__viz {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
}
.outcome-card__viz img {
  width: 40px; height: 40px; border-radius: 10px;
}
.outcome-card__mac,
.outcome-card__viz .rtt,
.outcome-card__viz .chip {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-size: 0.78rem;
  font-weight: 600;
}
.outcome-card__viz .rtt { color: var(--green); font-variant-numeric: tabular-nums; }
.outcome-card__viz--qr {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.outcome-card__viz--qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.outcomes.is-static {
  height: auto;
}
.outcomes.is-static .outcomes__sheet {
  position: relative;
  border-radius: 0;
  min-height: 0;
}
.outcomes.is-static .outcomes__track {
  width: auto;
  flex-wrap: wrap;
  padding-right: clamp(1.25rem, 4vw, 4rem);
  transform: none !important;
}
.outcomes.is-static .outcome-card {
  width: min(100%, 340px);
  flex: 1 1 260px;
}

/* Footer CTA */
.footer-cta {
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem 3.5rem;
  text-align: center;
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-cta h2 {
  margin: 0 auto 0.75rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1.02;
}
.footer-cta > p { margin: 0 auto 1.5rem; color: var(--fg-muted); max-width: 36ch; }
.footer-cta .hero__ctas { justify-content: center; }
.footer-cta .muted { margin-top: 1.5rem; font-size: 0.85rem; }
.footer-cta__legal {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-mute);
  font-size: 0.85rem;
}
.footer-cta__legal a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; }
.footer-cta__legal a:hover { color: var(--ink); }
.footer-cta__legal a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.footer-cta__legal a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}
.impressum__links {
  margin-top: 2.5rem;
  justify-content: flex-start;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Impressum */
.impressum {
  padding: 2.5rem clamp(1.25rem, 4vw, 4rem) 4rem;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}
.impressum--page {
  min-height: 100svh;
  padding-top: calc(var(--chrome-h) + 2.5rem);
}
.impressum__inner {
  max-width: 42rem;
  margin: 0 auto;
}
.impressum h1,
.impressum__inner > h2#impressum-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.impressum__grid h2,
.impressum__grid h3,
.impressum__inner > h2:not(#impressum-title),
.impressum__inner > h3 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.impressum__grid h2,
.impressum__grid h3 {
  margin-top: 0;
}
.impressum__law {
  margin: 0 0 1.75rem;
  color: var(--ink-mute);
  font-size: 0.9rem;
}
.impressum__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.impressum__grid p,
.impressum__note {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
}
.impressum__note {
  color: var(--fg-muted);
  max-width: 48ch;
}
.impressum a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}
.impressum .eyebrow {
  margin-bottom: 0.75rem;
}
.impressum .eyebrow a {
  color: var(--fg-muted);
  text-decoration: none;
}
.legal-page {
  background: var(--bg);
}
.legal-page .loader { display: none; }

/* Mobile */
@media (max-width: 900px) {
  .qr-dock { display: none; }
  .nav-link { display: none; }

  .site-chrome {
    gap: 0.5rem;
  }

  .brand {
    font-size: 1.05rem;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-nav {
    gap: 0.35rem;
    flex: 0 0 auto;
  }

  .btn--small {
    padding: 0.4rem 0.65rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .hero {
    min-height: 0;
  }
  .hero__world .layer--fg-left,
  .hero__world .layer--fg-right,
  .hero__world .layer--midground { display: none; }
  .hero__vignette {
    background:
      radial-gradient(70% 50% at 50% 58%, transparent 0%, rgba(7, 8, 10, 0.35) 50%, rgba(7, 8, 10, 0.92) 100%),
      radial-gradient(50% 40% at 50% 55%, rgba(255, 77, 157, 0.1), transparent 70%);
  }
  .hero__stage {
    grid-template-columns: 1fr;
    padding: 1rem 1rem 2rem;
    gap: 1.25rem;
  }
  .hero__copy { order: 1; animation: none; }
  .hero__brand { font-size: clamp(2.6rem, 14vw, 3.6rem); }
  .hero__product {
    order: 2;
    min-height: 0;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }
  .hero__product .demo-phone {
    width: min(210px, 58vw);
    order: 1;
  }
  .hero__product .demo-mac {
    order: 2;
    width: 0;
    min-width: 0;
  }
  .hero__product.has-launched .demo-mac,
  .hero__product.is-wow-mac .demo-mac,
  .hero__product.is-wow-phone .demo-mac {
    width: min(100%, 440px);
    min-width: min(100%, 320px);
  }
  .hero__product.is-wow-phone .demo-phone {
    transform: scale(1.06);
  }
  .hero__product .demo-phone__cue {
    position: static;
    transform: none;
    width: auto;
    margin-top: 0.65rem;
    font-size: 0.82rem;
  }
  .hero__scroll-cue { display: none; }

  .chapters { display: none; }
  .chapters-stack { display: block; }

  .bento__grid { grid-template-columns: 1fr; }
  .bento__tile--media { grid-row: auto; min-height: 0; }

  .outcomes {
    height: auto;
    margin-top: 0;
  }
  .outcomes__sheet {
    position: relative;
    border-radius: 28px 28px 0 0;
    min-height: 0;
    padding: 2.5rem 0 2rem;
  }
  .outcomes__track {
    width: auto;
    flex-wrap: wrap;
    padding-right: 1.25rem;
    transform: none !important;
  }
  .outcome-card { width: 100%; }
}

@media (max-width: 600px) {
  .site-chrome { padding-inline: 0.9rem; }
  .brand { font-size: 1.1rem; }
  .btn--small { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .loader__bar span,
  .hero__copy,
  .demo-phone__cue.is-nudge { animation: none; }
  .chapters { display: none; }
  .chapters-stack { display: block; }
  .outcomes { height: auto; }
  .outcomes__sheet { position: relative; min-height: 0; }
  .outcomes__track { transform: none !important; flex-wrap: wrap; width: auto; }
}

body.is-reduced-motion .qr-dock { display: none; }

body.is-reduced-motion .hero__product.is-wow-phone .demo-phone,
body.is-reduced-motion .hero__product.is-wow-press .demo-phone,
body.is-reduced-motion .hero__product.is-wow-mac .demo-phone {
  transform: none;
}

/* glass reduced */
@media (prefers-reduced-motion: reduce) {
  .glass,
  .site-chrome.is-scrolled,
  .chapters__copy,
  .bento__tile,
  .outcome-card,
  .btn--glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .demo-key__face::before {
    opacity: 0.55;
  }
  .hero__product.is-wow-phone .demo-phone,
  .hero__product.is-wow-press .demo-phone,
  .hero__product.is-wow-mac .demo-phone {
    transform: none;
  }
}
