/* =========================================================================
   Landing page (/welcome)
   Apple product-page structure: sticky nav with a pill, a black cinematic
   hero built around one movie, then a quiet light section. Brand blue (#007da5) is the only accent.
   ========================================================================= */

.welcome {
  --wl-black: #000000;
  --wl-white: #ffffff;
  --wl-ink: #1d1d1f;
  --wl-snow: #f5f5f7;
  --wl-gray: #86868b;
  --wl-gray-dark: #6e6e73;
  --wl-rule: #d2d2d7;
  --wl-blue: #007da5;
  --wl-blue-hover: #0a91bd;
  --wl-wall: #e4ebef;
  --wl-max: 1080px;

  background: var(--wl-black);
  color: var(--wl-snow);
  font-family: var(--font-ubermovetext);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wl-bar {
  max-width: var(--wl-max);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

/* Sticky translucent bar: brand left, pill right (Apple's product-name bar) */
.wl-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 56px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.wl-brand { display: inline-flex; text-decoration: none; }
.wl-brand .brand-icon { width: 32px; height: 32px; }
.wl-brand .brand-mark { font-size: 18px; }
.wl-brand .brand-tagline { font-size: 11.5px; color: var(--wl-gray); }

/* Pill buttons */
.wl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 980px;
  background: var(--wl-blue);
  color: var(--wl-white);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.wl-pill:hover { background: var(--wl-blue-hover); color: var(--wl-white); }
.wl-pill:focus-visible { outline: 2px solid var(--wl-white); outline-offset: 3px; }
.wl-pill-sm { min-height: 30px; padding: 5px 14px; font-size: 13px; }
/* Hero "Log in": twice the standard pill so it can't be missed */
.wl-pill-lg { min-height: 96px; padding: 24px 64px; font-size: 34px; font-weight: 600; letter-spacing: -0.01em; }

/* Hero */
/* Override the app shell's centered, padded <main> */
.welcome .wl-main { flex: 1 0 auto; max-width: none; margin: 0; padding: 0; }

.wl-headline, .wl-sub, .wl-flow-title, .wl-flow-sub, .wl-note { text-wrap: balance; }

.wl-hero {
  text-align: center;
  padding: 64px 22px 112px;
}

.wl-headline {
  font-family: var(--font-ubermove);
  font-size: clamp(42px, 6.4vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--wl-snow);
  max-width: 11.5ch;
  margin: 0 auto;
}

.wl-sub {
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--wl-gray);
  max-width: 36ch;
  margin: 20px auto 0;
}

.wl-stage { margin: 56px auto 0; max-width: var(--wl-max); }

.wl-stage { position: relative; }

.wl-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: #111;
}

/* Shown by welcome.js when the movie ends (or instead of autoplay for reduced motion) */
.wl-replay {
  position: absolute;
  right: 20px;
  bottom: 20px;
  min-height: 36px;
  padding: 8px 18px;
  border: 0;
  border-radius: 980px;
  background: rgba(29, 29, 31, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--wl-white);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.wl-replay:hover { background: rgba(29, 29, 31, 0.88); }
.wl-replay:focus-visible { outline: 2px solid var(--wl-white); outline-offset: 3px; }

.wl-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.wl-note { max-width: 46ch; margin: 0; font-size: 14px; line-height: 1.5; color: var(--wl-gray); }
.wl-note b { color: var(--wl-snow); font-weight: 600; }

/* Workflow section */
.wl-flow {
  background: var(--wl-snow);
  color: var(--wl-ink);
  padding: 112px 22px 120px;
}

.wl-flow-title {
  font-family: var(--font-ubermove);
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--wl-ink);
  text-align: center;
  max-width: 14ch;
  margin: 0 auto;
}

.wl-flow-sub {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.4;
  color: var(--wl-gray-dark);
  text-align: center;
  max-width: 40ch;
  margin: 20px auto 0;
}

.wl-steps {
  list-style: none;
  counter-reset: step;
  max-width: var(--wl-max);
  margin: 72px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
}

.wl-steps li {
  counter-increment: step;
  border-top: 2px solid var(--wl-ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wl-steps li::before {
  content: counter(step);
  font-size: 13px;
  font-weight: 600;
  color: var(--wl-blue);
}

.wl-step-name { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.wl-step-text { font-size: 15px; line-height: 1.45; color: var(--wl-gray-dark); }

/* Footer */
.wl-footer {
  height: 56px;
  background: var(--wl-snow);
  border-top: 1px solid var(--wl-rule);
  color: var(--wl-gray-dark);
  font-size: 12px;
}

@media (max-width: 1023px) {
  .wl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 734px) {
  .wl-bar { padding: 0 16px; }
  .wl-brand .brand-tagline { display: none; }
  .wl-hero { padding: 48px 16px 80px; }
  .wl-stage { margin-top: 32px; }
  .wl-video { border-radius: 18px; }
  .wl-replay { right: 12px; bottom: 12px; }
  .wl-cta .wl-pill-lg { width: 100%; max-width: 420px; min-height: 80px; padding: 20px 32px; font-size: 28px; }
  .wl-flow { padding: 80px 16px 88px; }
  .wl-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 48px; }
  .wl-footer .wl-bar span:last-child { display: none; }
}
