/* How It Works — two walkthrough sections. Scoped to .marketing so the
   tokens in tokens.css resolve. */

.marketing .hiw-hero {
  padding: calc(var(--sp-xl) + 4rem) 0 var(--sp-md);
  text-align: center;
}

.marketing .hiw-hero__title {
  margin: var(--sp-sm) 0 0;
  font-size: var(--text-4xl);
  line-height: 1.05;
}

.marketing .hiw-hero__sub {
  max-width: 46ch;
  margin: var(--sp-sm) auto 0;
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* The fixed nav overlays anchor targets; push deep links clear of it. */
.marketing .hiw-section {
  scroll-margin-top: 5rem;
}

.marketing .hiw-section + .hiw-section {
  border-top: 1px solid var(--border);
}

.marketing .hiw-section__title {
  margin: 0;
  font-size: var(--text-2xl);
}

.marketing .hiw-section__intro {
  max-width: 60ch;
  margin: var(--sp-xs) 0 var(--sp-md);
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Player frame — mirrors the retired modal frame so the video keeps the
   same treatment it had on the landing page. */
.marketing .hiw-player {
  width: min(100%, 1100px);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.marketing .hiw-player__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.marketing .hiw-player--pending {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--card-2);
  /* var(--border) is too faint to read as dashed; lift it so the empty state
     looks deliberate rather than like a player that failed to load. */
  border: 1px dashed rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.marketing .hiw-player__pending-label {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
