/* YapTV website.
   Apple design principles on the web: instant feedback on press, motion that
   starts from where things are, springs for what the hand moves, size-aware
   tracking and leading, translucent chrome, and calm by default.
   YapSoft charter: night, paper, violet and cyan; Inter (SIL OFL). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #050507;
  --surface: #0e0f13;
  --surface-2: #15161c;
  --surface-3: #1d1f27;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.14);
  --violet: #7c3aed;
  --violet-hi: #8b5cf6;
  --lilac: #c4b5fd;
  --cyan: #22d3ee;
  --pink: #df5e97;
  --green: #30d158;
  --red: #ff7a70;
  --r-s: 12px;
  --r: 20px;
  --r-l: 28px;
  --wide: 1180px;
  --gutter: clamp(20px, 5vw, 44px);
  /* Critically damped feel: fast start, no overshoot. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-press: cubic-bezier(0.3, 0, 0.5, 1);
  color-scheme: dark;
  interpolate-size: allow-keywords;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* Inter's own size-aware tracking: 17px reads best slightly tight. */
  font: 400 1.0625rem/1.53 Inter, system-ui, -apple-system, sans-serif;
  letter-spacing: -0.013em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Type scale: tracking tightens and leading closes as size grows. ---------- */
.display {
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.headline {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.021em;
  text-wrap: balance;
}
.subtitle {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.017em;
}
.eyebrow {
  display: block;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--cyan);
  margin-bottom: 0.5em;
}
/* Apple's grey lead with the important words in white. */
.lead {
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.019em;
  color: var(--text-2);
  max-width: 40ch;
  text-wrap: pretty;
}
.lead strong {
  color: var(--text);
  font-weight: 600;
}
.body-2 {
  color: var(--text-2);
}
.fine {
  font-size: 0.8125rem;
  line-height: 1.45;
  letter-spacing: -0.003em;
  color: var(--text-3);
}
.dim {
  color: var(--text-3);
}
.grad-text {
  background: linear-gradient(100deg, #c4b5fd 0%, #22d3ee 55%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.center {
  text-align: center;
}
.center .lead {
  margin-inline: auto;
}

/* Layout ---------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: calc(600px + 2 * var(--gutter));
}
.section {
  padding-block: clamp(64px, 8.5vw, 116px);
}
.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .lead {
  margin-top: 20px;
}

/* Navigation: a translucent layer that content scrolls under. ------------------ */
.mode-banner {
  position: relative;
  z-index: 60;
  background: #2b2200;
  color: #ffe58a;
  text-align: center;
  font-size: 0.8125rem;
  padding: 7px 16px;
}
.mode-beta {
  background: #0c2a33;
  color: #a5f3fc;
}
.mode-off {
  background: #2e1212;
  color: var(--red);
}
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 7, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
/* Scroll edge: the hairline appears only once content passes under. */
.nav::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--hair);
  opacity: 0;
  transition: opacity 0.3s ease;
}
html[data-scrolled] .nav::after {
  opacity: 1;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  color: var(--text);
  font: 700 1.2rem/1 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-2);
  font-size: 0.875rem;
  letter-spacing: -0.006em;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}
.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.menu-button span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease);
}
.menu-button span:first-child {
  transform: translateY(-4px);
}
.menu-button span:last-child {
  transform: translateY(4px);
}
html[data-menu] .menu-button span:first-child {
  transform: rotate(45deg);
}
html[data-menu] .menu-button span:last-child {
  transform: rotate(-45deg);
}
@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .menu-button {
    display: block;
  }
  .nav-inner {
    gap: 12px;
  }
}
/* Phone menu: unfolds from the button that opened it, and folds back the same way. */
.menu-sheet {
  position: fixed;
  inset: 56px 0 auto;
  z-index: 49;
  padding: 8px var(--gutter) 28px;
  background: rgba(10, 10, 13, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--hair);
  transform-origin: top right;
  transform: translateY(-10px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.25s ease, visibility 0s linear 0.4s;
}
html[data-menu] .menu-sheet {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform 0.4s var(--ease), opacity 0.2s ease, visibility 0s;
}
.menu-sheet a {
  display: block;
  padding: 13px 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--hair);
}
.menu-sheet a:hover {
  text-decoration: none;
}
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
html[data-menu] .menu-scrim {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

/* Buttons: feedback on press, not on release. ------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 0.12s var(--ease-press), background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: scale(0.97);
  transition-duration: 0.06s;
}
.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 30px -12px rgba(124, 58, 237, 0.75);
}
.btn-primary:hover {
  background: var(--violet-hi);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}
.btn-small {
  min-height: 32px;
  padding: 0 14px;
  font-size: 0.8125rem;
  letter-spacing: -0.004em;
}
.btn-large {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.125rem;
}
.btn-wide {
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
  transform: none;
}
.link-more {
  color: var(--cyan);
  font-weight: 500;
}
.link-more::after {
  content: "›";
  display: inline-block;
  margin-left: 5px;
  font-size: 1.2em;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}
.link-more:hover {
  text-decoration: none;
}
.link-more:hover::after {
  transform: translateX(3px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.center .actions {
  justify-content: center;
}

/* Reveal on scroll: rise from where it is, settle without overshoot. ------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}
/* Stagger without inline styles (the CSP allows none). */
[data-d="1"] {
  --d: 1;
}
[data-d="2"] {
  --d: 2;
}
[data-d="3"] {
  --d: 3;
}
[data-d="4"] {
  --d: 4;
}

/* Hero --------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 110px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10%;
  width: min(1400px, 140vw);
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(50% 45% at 50% 40%, rgba(124, 58, 237, 0.26), transparent 70%),
    radial-gradient(30% 30% at 75% 55%, rgba(34, 211, 238, 0.12), transparent 70%),
    radial-gradient(28% 30% at 22% 60%, rgba(223, 94, 151, 0.1), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.hero .display {
  margin-bottom: 22px;
}
.hero .lead {
  margin-bottom: 34px;
}
.hero .fine {
  margin-top: 18px;
}
.hero-stage {
  position: relative;
  max-width: 1120px;
  margin: clamp(48px, 7vw, 84px) auto 0;
  padding-inline: var(--gutter);
}

/* Screens: a thin black bezel with light catching its edge. -------------------- */
.tv {
  position: relative;
  border-radius: clamp(10px, 1.6vw, 20px);
  padding: clamp(4px, 0.7vw, 9px);
  background: linear-gradient(180deg, #23252c, #0b0c0f 30%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 60px 120px -50px rgba(124, 58, 237, 0.5), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.tv img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: clamp(6px, 1.1vw, 13px);
  background: #0b0c10;
}
.tv-stand {
  width: 22%;
  height: clamp(8px, 1.3vw, 16px);
  margin: 0 auto;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #1a1b20, #0c0d10);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.8);
}
.phone {
  position: relative;
  width: 100%;
  border-radius: 13% / 6%;
  padding: 3.2%;
  background: linear-gradient(160deg, #2c2e36, #0d0e12 40%, #1c1d23);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 10.5% / 4.9%;
  background: #0b0c10;
}

/* Gallery: drag it, flick it, it lands where your gesture was going. ---------- */
.gallery-viewport {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
  padding-block: 10px 30px;
}
.gallery-viewport:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
  border-radius: 0;
}
.gallery-viewport.dragging {
  cursor: grabbing;
}
.gallery-track {
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0 var(--edge, var(--gutter));
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
.slide {
  flex: 0 0 min(980px, 84vw);
}
.slide img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.slide-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-l);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(80% 90% at 50% 100%, rgba(124, 58, 237, 0.28), transparent 70%), var(--surface);
  border: 1px solid var(--hair);
}
.slide-stage .tv {
  width: 88%;
}
.slide-stage .card-shot {
  width: 72%;
  border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.slide-stage .card-shot.tall {
  width: 56%;
}
.slide-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8%;
  width: 100%;
  height: 100%;
  padding: 5% 0 0;
}
.slide-pair .phone {
  width: 22%;
  align-self: flex-start;
}
.slide figcaption {
  max-width: 640px;
  margin-top: 22px;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.016em;
  color: var(--text-2);
}
.slide figcaption strong {
  color: var(--text);
  font-weight: 600;
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}
.dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.45s var(--ease), background-color 0.3s ease;
}
.dot[aria-selected="true"] {
  width: 28px;
  background: var(--text);
}
.round-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s var(--ease-press), background-color 0.2s ease, opacity 0.2s ease;
}
.round-button:hover {
  background: rgba(255, 255, 255, 0.15);
}
.round-button:active {
  transform: scale(0.92);
}
.round-button[disabled] {
  opacity: 0.3;
  cursor: default;
  transform: none;
}
.round-button svg {
  width: 20px;
  height: 20px;
}

/* Bento ----------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "live live films"
    "replay sync films"
    "remote parental private";
  gap: clamp(14px, 1.8vw, 22px);
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-l);
  padding: clamp(26px, 3vw, 38px);
  background: linear-gradient(180deg, #121318, #0b0c0f);
  border: 1px solid var(--hair);
  isolation: isolate;
}
.tile .subtitle,
.tile .title {
  margin-bottom: 10px;
}
.tile p {
  color: var(--text-2);
  max-width: 34ch;
}
.tile .big {
  display: block;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 14px;
}
.tile-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.16);
  color: var(--lilac);
}
.tile-icon svg {
  width: 24px;
  height: 24px;
}
.tile-live {
  grid-area: live;
  min-height: 440px;
}
.tile-live > :not(.shot) {
  max-width: 36%;
}
.tile-live .shot {
  position: absolute;
  left: 44%;
  top: 14%;
  width: 82%;
  max-width: none;
  border-radius: 14px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: -1;
}
.tile-films {
  grid-area: films;
  display: flex;
  flex-direction: column;
  background: radial-gradient(90% 60% at 50% 100%, rgba(223, 94, 151, 0.22), transparent 70%),
    linear-gradient(180deg, #121318, #0b0c0f);
}
.tile-films .phone {
  width: 70%;
  margin: auto auto -40%;
  transform: translateY(34px);
}
.tile-replay {
  grid-area: replay;
}
.tile-sync {
  grid-area: sync;
}
.tile-remote {
  grid-area: remote;
}
.tile-parental {
  grid-area: parental;
}
.tile-private {
  grid-area: private;
}
.sync-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.sync-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.sync-row svg {
  width: 20px;
  height: 20px;
  color: var(--lilac);
}
.sync-row i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan) 62%, rgba(255, 255, 255, 0.12) 62%);
}
.pin {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
}
.pin span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lilac);
  box-shadow: 0 0 18px rgba(196, 181, 253, 0.6);
}
.pin span:last-child {
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(196, 181, 253, 0.6);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}
.dpad {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2a2c34, #15161b 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 30px -12px rgba(0, 0, 0, 0.9);
}
.dpad::before {
  content: "OK";
  position: absolute;
  inset: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.7);
}
.dpad b {
  position: absolute;
  width: 0;
  height: 0;
  border: 5px solid transparent;
}
.dpad b:nth-child(1) {
  top: 10px;
  left: 47px;
  border-bottom-color: var(--text-2);
}
.dpad b:nth-child(2) {
  bottom: 10px;
  left: 47px;
  border-top-color: var(--text-2);
}
.dpad b:nth-child(3) {
  left: 10px;
  top: 47px;
  border-right-color: var(--text-2);
}
.dpad b:nth-child(4) {
  right: 10px;
  top: 47px;
  border-left-color: var(--text-2);
}
@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "live live"
      "films replay"
      "films sync"
      "remote parental"
      "private private";
  }
}
@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "live" "films" "replay" "sync" "remote" "parental" "private";
  }
  .tile-live {
    min-height: 0;
  }
  .tile-live > :not(.shot) {
    max-width: none;
  }
  .tile-live .shot {
    position: relative;
    left: auto;
    top: auto;
    width: 150%;
    margin: 28px 0 -18%;
  }
  .tile-films {
    min-height: 520px;
  }
  .tile-films .phone {
    width: 58%;
    margin-bottom: -46%;
  }
}

/* Activation story --------------------------------------------------------------- */
.activation-visual {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.34fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}
.activation-visual .card-shot {
  width: 100%;
  border-radius: clamp(12px, 1.6vw, 20px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 100px -40px rgba(124, 58, 237, 0.55),
    0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  max-width: 1040px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  list-style: none;
  padding: 0;
  counter-reset: flow;
}
.flow li {
  counter-increment: flow;
  border-top: 1px solid var(--hair-2);
  padding-top: 22px;
}
.flow li::before {
  content: counter(flow);
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.flow p {
  color: var(--text-2);
  margin-top: 6px;
}
@media (max-width: 760px) {
  .activation-visual {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr);
  }
  .flow {
    grid-template-columns: 1fr;
  }
}

/* Platforms -------------------------------------------------------------------------- */
.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.platforms li {
  display: grid;
  grid-template-rows: 52px auto;
  align-content: start;
  justify-items: center;
  gap: 14px;
  width: 104px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}
.platforms svg {
  width: 52px;
  height: 52px;
  color: var(--text-2);
}
.platforms .soon {
  color: var(--text-3);
}
.platforms .soon svg {
  color: var(--text-3);
}

/* Price --------------------------------------------------------------------------------- */
.price-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 32px;
  text-align: left;
  background: radial-gradient(120% 90% at 0% 0%, rgba(124, 58, 237, 0.24), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(34, 211, 238, 0.1), transparent 60%), var(--surface);
  border: 1px solid rgba(196, 181, 253, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.price-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--hair);
}
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.price strong {
  font-size: clamp(3.4rem, 9vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.price span {
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
}
.checks {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}
.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330d158' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.price-card + .fine {
  margin-top: 22px;
}
.checks.one {
  grid-template-columns: 1fr;
}
@media (max-width: 600px) {
  .checks {
    grid-template-columns: 1fr;
  }
}

/* Notice ---------------------------------------------------------------------------------- */
.notice {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 28px;
  border-radius: var(--r);
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--text-2);
}
.notice svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--cyan);
}
.notice strong {
  color: var(--text);
}

/* FAQ: a disclosure that opens and closes from wherever it is. ------------------------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--hair-2);
}
.faq details {
  border-bottom: 1px solid var(--hair-2);
}
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
}
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -8px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform 0.45s var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(5px) rotate(-135deg);
}
.faq details p {
  padding: 0 48px 26px 0;
  color: var(--text-2);
  max-width: 64ch;
}

/* Closing call --------------------------------------------------------------------------- */
.closing {
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 20% -20% -40%;
  background: radial-gradient(40% 50% at 50% 60%, rgba(124, 58, 237, 0.22), transparent 70%);
  pointer-events: none;
}
.closing .wrap {
  position: relative;
}
.closing .actions {
  margin-top: 36px;
}

/* Page heads (inner pages) ---------------------------------------------------------- */
.page-head {
  padding-top: clamp(56px, 9vw, 104px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
.page-head .lead {
  margin-top: 18px;
}
.page-body {
  padding-bottom: clamp(80px, 10vw, 130px);
}

/* Downloads ------------------------------------------------------------------------------- */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  max-width: 1040px;
  margin-inline: auto;
}
@media (max-width: 960px) {
  .devices-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }
}
.device-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 3vw, 34px);
  border-radius: var(--r-l);
  background: linear-gradient(180deg, #121318, #0b0c0f);
  border: 1px solid var(--hair);
}
.device-card .device-icon {
  width: 52px;
  height: 52px;
  color: var(--lilac);
}
.device-card p {
  color: var(--text-2);
}
.device-card .meta {
  font-size: 0.8125rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.device-card .spacer {
  flex: 1;
}
.qr-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}
.qr {
  flex: none;
  width: 96px;
  height: 96px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
}
.qr-row p {
  font-size: 0.875rem;
  line-height: 1.4;
}
.short-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  font: 600 0.875rem/1.2 ui-monospace, "SF Mono", "JetBrains Mono", monospace;
  letter-spacing: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s var(--ease-press), background-color 0.2s ease;
  word-break: break-all;
  text-align: left;
}
.short-link:active {
  transform: scale(0.96);
}
.short-link:hover {
  background: rgba(34, 211, 238, 0.2);
}
.short-link[data-copied]::after {
  content: "Copié";
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  color: var(--green);
}
details.more summary {
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-3);
  list-style: none;
}
details.more summary::-webkit-details-marker {
  display: none;
}
.hash {
  margin-top: 8px;
  font: 0.75rem/1.4 ui-monospace, monospace;
  color: var(--text-3);
  word-break: break-all;
}
.soon-row {
  margin-top: 22px;
  text-align: center;
}

/* Forms ------------------------------------------------------------------------------------- */
.panel {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--r-l);
  background: var(--surface);
  border: 1px solid var(--hair);
}
.panel + .panel {
  margin-top: 16px;
}
.panel .subtitle {
  margin-bottom: 6px;
}
.panel > p:not(.subtitle) {
  color: var(--text-2);
}
.field {
  display: block;
  margin-bottom: 18px;
}
.field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.006em;
}
.field small {
  display: block;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.field small.invalid {
  color: var(--red);
}
input[type="email"],
input[type="text"] {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: 500 1.0625rem Inter, system-ui, sans-serif;
  letter-spacing: -0.012em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder {
  color: var(--text-3);
}
input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}
input[aria-invalid="true"] {
  border-color: var(--red);
}
input.code {
  font: 600 1.6rem/1 ui-monospace, "SF Mono", "JetBrains Mono", monospace;
  letter-spacing: 0.24em;
  text-align: center;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-2);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--violet);
}
.message {
  margin-top: 14px;
  font-size: 0.9375rem;
}
.message:empty {
  display: none;
}
.message.error {
  color: var(--red);
}
.message.ok {
  color: var(--green);
}
.summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--hair);
}
.summary strong {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.device-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--hair);
}
.device-chip svg {
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--cyan);
}
.device-chip strong {
  display: block;
  letter-spacing: -0.015em;
}
.device-chip span {
  font-size: 0.875rem;
  color: var(--text-3);
}
.or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  font-size: 0.8125rem;
  color: var(--text-3);
}
.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair);
}

/* Purchase layout --------------------------------------------------------------------- */
.buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.buy-visual {
  position: sticky;
  top: 96px;
}
.devices-art {
  position: relative;
  margin: 4px 0 clamp(56px, 7vw, 84px);
}
.devices-art .phone {
  position: absolute;
  right: -3%;
  bottom: -14%;
  width: 23%;
}
@media (max-width: 900px) {
  .buy {
    grid-template-columns: 1fr;
  }
  .buy-visual {
    position: static;
  }
}

/* Results: a check that draws itself. ------------------------------------------------- */
.done-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.14);
  color: var(--green);
  animation: pop 0.6s var(--ease) both;
}
.done-mark svg {
  width: 36px;
  height: 36px;
}
.done-mark path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw 0.6s var(--ease) 0.15s forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.big-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 12px 0 18px;
  padding: 22px 0;
  border-radius: 18px;
  background: var(--bg);
  border: 1px dashed rgba(34, 211, 238, 0.4);
  font: 700 clamp(2.2rem, 9vw, 3.1rem)/1 ui-monospace, "SF Mono", "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.spinner {
  width: 36px;
  height: 36px;
  margin: 6px auto 22px;
  border-radius: 50%;
  border: 3px solid var(--hair-2);
  border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Account ------------------------------------------------------------------------------------ */
.devices {
  list-style: none;
  margin: 0;
  padding: 0;
}
.devices li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}
.devices li.leaving {
  opacity: 0;
  transform: translateX(16px);
}
.devices svg {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--lilac);
}
.devices li > div {
  flex: 1;
  min-width: 0;
}
.devices strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.015em;
}
.devices span {
  font-size: 0.8125rem;
  color: var(--text-3);
}
.meter {
  height: 6px;
  margin: 10px 0 24px;
  border-radius: 6px;
  background: var(--surface-3);
  overflow: hidden;
}
.meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 0.6s var(--ease);
}

/* Text pages ---------------------------------------------------------------------------------- */
.prose {
  max-width: 760px;
}
.prose h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 28px;
}
.prose h2 {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 2.2em 0 0.6em;
}
.prose p,
.prose li {
  color: var(--text-2);
}
.prose p + p {
  margin-top: 1em;
}
.prose .actions {
  margin-top: 28px;
}
.draft {
  padding: 14px 18px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: #2b2200;
  color: #ffe58a;
  font-size: 0.9375rem;
}

/* Footer ---------------------------------------------------------------------------------- */
.foot {
  padding: 40px 0 56px;
  border-top: 1px solid var(--hair);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-3);
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--hair);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.foot a {
  color: var(--text-2);
}
.foot a:hover {
  color: var(--text);
  text-decoration: none;
}
.foot .brand {
  margin: 0;
  font-size: 1rem;
}
.foot .brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.foot p + p {
  margin-top: 8px;
}

/* Accessibility preferences ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal] {
    transform: none;
    transition: opacity 0.35s ease;
    transition-delay: 0s;
  }
  .menu-sheet,
  html[data-menu] .menu-sheet {
    transform: none;
  }
  .done-mark,
  .done-mark path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .spinner {
    animation-duration: 2.4s;
  }
  .faq details::details-content {
    transition: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .nav,
  .menu-sheet,
  .dots {
    background: #0b0c10;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  :root {
    --text-2: #d2d2d7;
    --text-3: #a1a1a6;
    --hair: rgba(255, 255, 255, 0.28);
    --hair-2: rgba(255, 255, 255, 0.4);
  }
  .nav {
    background: #000;
  }
}

/* Spacing inside panels and results. */
.actions-center {
  justify-content: center;
}
.panel .actions {
  margin-top: 24px;
}
.panel > .fine,
.panel form + .fine {
  margin-top: 16px;
}
.panel .title + .body-2,
.panel .subtitle + p {
  margin-top: 6px;
}
.panel p + .btn,
.panel .body-2 + form {
  margin-top: 20px;
}
.panel .body-2 + p {
  margin-top: 18px;
}
#thanks-done .headline {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 8px;
}
#thanks-done .big-code {
  margin-top: 26px;
}
.prose .actions {
  margin-top: 28px;
}
.buy-visual .lead + .devices-art {
  margin-top: 36px;
}
.panel .link-more {
  font-size: 0.9375rem;
}
.qr-row .short-link {
  font-size: 0.8125rem;
}
@media (max-width: 640px) {
  .slide-stage .tv {
    width: 94%;
  }
  .slide-pair .phone {
    width: 34%;
  }
}
