:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Arial, sans-serif;
  --pink: #ff3d79;
  --orange: #ff9954;
  --gradient: linear-gradient(104deg, var(--pink), #ff696d 54%, var(--orange));
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; height: 100%; margin: 0; overflow: hidden; background: #000; color: #fff; }
button { color: inherit; font: inherit; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.onboarding {
  position: relative;
  width: min(100%, 430px);
  height: 100svh;
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.screen-stage { position: absolute; inset: 0; overflow: hidden; }
.flow-screen {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  overflow: hidden;
  visibility: hidden;
  background: #000;
  transform: translate3d(100%, 0, 0);
  transition: transform 350ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear 350ms;
  will-change: transform;
}
.flow-screen.is-active {
  z-index: 2;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}
.flow-screen.is-exiting {
  z-index: 2;
  visibility: visible;
  transform: translate3d(-100%, 0, 0);
  transition-delay: 0s;
}
.flow-screen.is-entering {
  z-index: 3;
  visibility: visible;
  transform: translate3d(100%, 0, 0);
  transition: none;
}

.device-status {
  position: absolute;
  z-index: 20;
  top: max(18px, env(safe-area-inset-top));
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 0 40px;
  pointer-events: none;
  color: #fff;
}
.device-time { justify-self: start; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.brand-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  background: linear-gradient(105deg, rgba(229, 66, 145, .78), rgba(224, 153, 114, .9));
  font-size: 18px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.brand-badge i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #4d163a 0 21%, #fd8ccf 24% 37%, #f2a2ff 40% 52%, #d44ab8 55% 68%, #ff8b94 71% 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.device-icons { justify-self: end; width: 79px; height: 24px; }
.device-icons svg { display: block; width: 100%; height: 100%; }

.background-video,
.video-placeholder,
.screen-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.background-video {
  z-index: 1;
  object-fit: cover;
  object-position: center center;
  background: #000;
}
.feature-screen .background-video { object-fit: contain; }
.video-placeholder { z-index: 0; background: #171717; }
.screen-shade {
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.04) 54%, rgba(12,12,12,.6) 72%, #121212 91%, #121212 100%);
  pointer-events: none;
}
.placeholder-welcome { background: linear-gradient(150deg, #303030, #202020 46%, #101010); }
.placeholder-1 { background: linear-gradient(160deg, #1b1410, #0b0908 58%, #161616); }
.placeholder-2 { background: linear-gradient(160deg, #303030, #171717 58%, #111); }
.placeholder-3 { background: linear-gradient(150deg, #2a2119, #17130f 54%, #111); }
.placeholder-4 { background: linear-gradient(150deg, #22436a, #1b2737 50%, #111); }
.placeholder-5 { background: linear-gradient(155deg, #48515b, #1d242c 58%, #101010); }
.placeholder-6 { background: linear-gradient(155deg, #678090, #24333c 58%, #121212); }
.placeholder-7 { background: linear-gradient(155deg, #58321f, #27160e 55%, #111); }

.welcome-bottom,
.feature-bottom {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 24px calc(50px + env(safe-area-inset-bottom));
}
.welcome-bottom h1,
.feature-bottom h1 { margin: 0; color: #fff; letter-spacing: -.045em; }
.welcome-bottom h1 { margin-bottom: 42px; font-size: 36px; line-height: 1.04; font-weight: 760; }
.feature-bottom h1 { font-size: 36px; line-height: 1.04; font-weight: 800; }
.feature-bottom p {
  min-height: 36px;
  margin: 16px 0 34px;
  color: #cacaca;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.gradient-cta {
  width: 100%;
  min-height: 66px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 100ms ease, filter 130ms ease;
}
.gradient-cta:active { transform: scale(.98); filter: brightness(.92); }

.gender-screen {
  background:
    radial-gradient(circle at 42% 9%, rgba(85, 30, 44, .12), transparent 27%),
    linear-gradient(180deg, #020101 0%, #16090e 52%, #16090e 100%);
}
.gender-content { padding: 98px 24px 36px; }
.gender-content h1 { margin: 0; font-size: 38px; line-height: 1.08; letter-spacing: -.045em; white-space: nowrap; }
.gender-options { display: grid; gap: 10px; margin-top: 64px; }
.gender-options button {
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: #3a222b;
  color: #fff;
  font-size: 21px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: transform 100ms ease, border-color 120ms ease, background 120ms ease;
}
.gender-options button span { width: 44px; margin-right: 8px; font-size: 30px; text-align: center; }
.gender-options button:active { transform: scale(.985); }
.gender-options button.is-selected { border-color: rgba(255,255,255,.85); background: #4a2b36; }

@media (max-height: 700px) {
  .welcome-bottom, .feature-bottom { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .welcome-bottom h1 { margin-bottom: 30px; font-size: 34px; }
  .feature-bottom h1 { font-size: 34px; }
  .feature-bottom p { min-height: 36px; margin: 12px 0 26px; font-size: 20px; }
  .gradient-cta { min-height: 60px; }
  .gender-content { padding-top: 82px; }
  .gender-options { margin-top: 54px; }
  .gender-options button { min-height: 82px; }
}

@media (min-width: 700px) {
  body { background: #0a0a0a; }
  .onboarding { box-shadow: 0 0 70px rgba(0,0,0,.85); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-screen { transition-duration: .01ms; }
  .gradient-cta, .gender-options button { transition-duration: .01ms; }
}
