/* Family Labs — Futuristic Obsidian-Teal Showcase & Legal System
   Built on Scrolltide house-style + anti-ui-slop + DESIGN.md */

:root {
  color-scheme: dark;
  --bg: #040709;
  --bg-elevated: #0b1215;
  --bg-panel: #0e181c;
  --ink: #ebf3f1;
  --prose: #d4e2df;
  --muted: #8ea5a0;
  --accent: #5eead4;
  --accent-deep: #0a6b61;
  --accent-ink: #041513;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --warn: #faad4d;
  --warn-soft: rgba(250, 173, 77, 0.12);
  --line: rgba(94, 234, 212, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --sheen: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.5);
  --font-sans: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

p, li {
  text-wrap: pretty;
}

[id] {
  scroll-margin-top: 96px;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.serif-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Fixed Translucent Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: rgba(4, 7, 9, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(94, 234, 212, 0.12);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.06);
  }
}

/* Tactile Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  will-change: transform;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--line);
}

.btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: #7cf2df;
  }
  .btn--ghost:hover {
    border-color: var(--accent);
    background: rgba(94, 234, 212, 0.08);
  }
}

/* WebGL2 Mist Canvas */
.mist-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: blur(28px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.92;
  z-index: 0;
}

.mist-canvas.mist--fallback {
  background:
    radial-gradient(circle at 24% 28%, rgba(10, 107, 97, 0.42), transparent 52%),
    radial-gradient(circle at 78% 68%, rgba(94, 234, 212, 0.2), transparent 48%),
    #040709;
  filter: none;
  transform: none;
}

/* =========================================================================
   STAGE 1: 3D UNFOLDING IPHONE DUO HERO (#unfold)
   ========================================================================= */
.stage-unfold {
  position: relative;
  height: 460svh;
  background: var(--bg);
}

.stage-unfold__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  max-height: 100svh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 66px 0 12px;
  overflow: hidden;
}

.hud-bar {
  position: relative;
  z-index: 4;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hud-bar__center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-bar__progress {
  width: 110px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.hud-bar__progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

.unfold-arena {
  position: relative;
  z-index: 3;
  max-width: 1160px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 0;
}

.hero-copy {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translate3d(0, -50%, 0);
  width: min(44%, 490px);
  z-index: 4;
  will-change: transform, opacity;
}

.hero-copy h1 {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.hero-copy__lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 26px;
}

.hero-copy__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-copy__meta {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Apple.com HiDPI Studio Canvas */
.apple-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
}

.stage-unfold {
  position: relative;
  height: 520svh;
  background: var(--bg);
}

/* Bottom Beat Caption Bar */
.stage__caption {
  position: relative;
  z-index: 4;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 6px 24px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stage__caption-copy {
  max-width: 48ch;
}

.stage__caption-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.stage__caption-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}

.beat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.beat-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}

.beat-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.beat-pill:active {
  transform: scale(0.97);
}

/* =========================================================================
   STAGE 2: SELF-DRAWING VERIFICATION PIPELINE (#pipeline)
   ========================================================================= */
.stage-pipeline {
  position: relative;
  height: 320svh;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-elevated);
}

.stage-pipeline__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  max-height: 100svh;
  min-height: 0;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
  width: 100%;
}

.pipeline-left {
  min-width: 0;
}

.pipeline-left h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  margin-bottom: 12px;
}

.pipeline-telemetry {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.pipeline-telemetry strong {
  color: var(--accent);
}

.pipeline-svg-wrap {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}

.pipeline-svg {
  width: 100%;
  height: auto;
  display: block;
}

.pipeline-step-card {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 18px 20px;
}

.pipeline-step-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.pipeline-step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.pipeline-right {
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* Real Photographic Titanium iPhone Bezel Container */
.real-iphone {
  position: relative;
  width: min(296px, 68vw, 33vh);
  aspect-ratio: 619 / 1240;
  filter: drop-shadow(0 28px 54px rgba(0, 0, 0, 0.72));
}

.real-iphone__screen {
  position: absolute;
  top: 2.742%;
  left: 6.462%;
  width: 87.237%;
  height: 94.516%;
  border-radius: 13.3% / 6.6%;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.real-iphone__bezel {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.phone-frame__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
}

.phone-frame__slide.is-active {
  opacity: 1;
}

/* =========================================================================
   STAGE 3: INTERACTIVE IPHONE DUO PLAYGROUND (#screens)
   ========================================================================= */
.band {
  padding: 88px 0;
  border-top: 1px solid var(--line-soft);
}

.band__head {
  max-width: 60ch;
  margin-bottom: 36px;
}

.band__head h2 {
  font-size: clamp(30px, 4vw, 52px);
  margin-bottom: 12px;
}

.band__head p {
  margin: 0;
  color: var(--muted);
}

.playground-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--bg-elevated);
  color: var(--muted);
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}

.tab-btn[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.tab-btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .tab-btn:not([aria-selected="true"]):hover {
    color: var(--ink);
    border-color: var(--line);
  }
}

.playground-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow-card), var(--sheen);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 32px;
  align-items: center;
}

.playground-stage {
  perspective: 2000px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

/* Real Photographic Hardware Switcher in #screens */
.real-duo {
  position: relative;
  width: min(540px, 100%);
  aspect-ratio: 1036 / 748;
  filter: drop-shadow(0 28px 54px rgba(0, 0, 0, 0.72));
  will-change: transform;
  transition: transform 300ms var(--ease-out);
}

.real-duo__screen {
  position: absolute;
  top: 5.08%;
  left: 3.764%;
  width: 92.085%;
  height: 89.706%;
  border-radius: 2.93% / 4.15%;
  overflow: hidden;
  background: #000;
  z-index: 1;
}

.real-duo__screen img,
.real-iphone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.real-duo__bezel {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.real-iphone--playground {
  width: min(240px, 58vw);
  margin: 0 auto;
}

.is-hidden {
  display: none !important;
}

.playground-info {
  min-width: 0;
}

.playground-info h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.playground-info p {
  color: var(--muted);
  margin: 0 0 18px;
}

.playground-bullets {
  margin: 0;
  padding-left: 20px;
  color: var(--prose);
  display: grid;
  gap: 8px;
  font-size: 15px;
}

/* =========================================================================
   CARDS, PRICING, FAQ
   ========================================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: 28px;
  min-width: 0;
  box-shadow: var(--shadow-card), var(--sheen);
}

.card--accent {
  border-color: var(--accent);
}

.card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
  color: var(--ink);
}

.price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.check-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--prose);
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.faq {
  max-width: 780px;
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  flex: none;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 66ch;
}

/* =========================================================================
   CLOSING WEBGL2 PANEL FOOTER (Drop-a-Line inspired)
   ========================================================================= */
.closing-band {
  padding: 40px 0 64px;
}

.closing-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 48px 36px 28px;
  box-shadow: var(--shadow-card);
}

.closing-panel__content {
  position: relative;
  z-index: 2;
}

.closing-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.closing-top h2 {
  font-size: clamp(28px, 4vw, 48px);
  max-width: 16ch;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(4, 7, 9, 0.72);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  flex-wrap: wrap;
}

.copy-btn {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.copy-btn:active {
  transform: scale(0.97);
}

.wordmark-wrap {
  width: 100%;
  overflow: hidden;
  margin: 12px 0 24px;
}

.wordmark {
  display: inline-block;
  white-space: nowrap;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(235, 243, 241, 0.92);
  user-select: none;
}

.closing-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--muted);
}

.closing-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.closing-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .closing-links a:hover {
    color: var(--accent);
    text-decoration: underline;
  }
}

/* =========================================================================
   LEGAL & SUPPORT DOCUMENT PAGES
   ========================================================================= */
.doc-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 44px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 18% 20%, rgba(94, 234, 212, 0.14), transparent 46%),
    var(--bg-elevated);
}

.doc-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 10px;
}

.doc__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.doc-layout {
  padding: 48px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 96px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 20px;
  font-size: 14px;
}

.doc-toc__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.doc-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.doc-toc a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.doc-toc a.is-active {
  color: var(--ink);
  background: var(--accent-soft);
}

@media (hover: hover) and (pointer: fine) {
  .doc-toc a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
  }
}

.doc {
  min-width: 0;
  max-width: 68ch;
  color: var(--prose);
}

.doc h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}

.doc ul, .doc ol {
  padding-left: 22px;
}

.doc li {
  margin: 8px 0;
}

.callout {
  margin: 0 0 28px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(94, 234, 212, 0.3);
  color: var(--ink);
}

.callout--warn {
  background: var(--warn-soft);
  border-color: rgba(250, 173, 77, 0.35);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--bg-elevated);
}

.doc table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 15px;
}

.doc th, .doc td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.doc tr:last-child td {
  border-bottom: 0;
}

.doc th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

/* =========================================================================
   SCROLLTIDE REVEALS & REDUCED MOTION
   ========================================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .mini-duo, .mini-duo__leaf, .duo-screen-layer, .phone-frame__slide {
    transition: none;
  }
  .btn:active, .tab-btn:active, .beat-pill:active, .copy-btn:active {
    transform: none;
  }
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: nowrap;
    padding: 8px 16px;
    gap: 12px;
  }
  .brand {
    flex: none;
  }
  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .site-nav a {
    white-space: nowrap;
    flex: none;
    padding: 8px 11px;
    font-size: 13px;
  }
  .stage-unfold__pin {
    padding-top: 64px;
  }
  .hud-bar {
    padding: 8px 16px 4px;
    font-size: 10px;
  }
  .hud-bar__progress {
    width: 64px;
  }
  .unfold-arena {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    padding: 0 16px;
    min-height: 0;
    overflow: hidden;
  }
  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    grid-area: 1 / 1;
    justify-self: center;
    align-self: center;
    text-align: center;
    background: rgba(4, 7, 9, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line-soft);
    max-width: 100%;
  }
  .hero-copy h1 {
    font-size: clamp(28px, 7.5vw, 38px);
    margin-bottom: 10px;
  }
  .hero-copy__lede {
    font-size: 14px;
    line-height: 1.45;
    margin: 0 auto 16px;
  }
  .hero-copy__actions {
    justify-content: center;
  }
  .hero-copy__actions .btn {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 14px;
  }
  .hero-copy__meta {
    margin-top: 10px;
    font-size: 11px;
  }
  .stage__caption {
    padding: 8px 16px 14px;
    gap: 10px;
  }
  .stage__caption-title {
    font-size: 16px;
  }
  .stage__caption-body {
    font-size: 13px;
  }
  .beat-pill {
    padding: 6px 10px;
    min-height: 34px;
    font-size: 10px;
  }
  .stage-pipeline {
    height: auto;
  }
  .stage-pipeline__pin {
    position: static;
    height: auto;
    min-height: 0;
    padding: 64px 0;
  }
  .pipeline-grid,
  .playground-card,
  .grid-3,
  .grid-2,
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-toc {
    position: static;
  }
  .real-iphone {
    width: min(240px, 64vw);
  }
  .closing-panel {
    padding: 32px 20px 24px;
  }
}
