/* =========================================================================
   dual.fit/new/convert — ONLY what this page adds on top of v3.

   The page links /marketing/v3/styles.css first and is built from v3's own
   components: .nav, .btn (--light / --outline), .hero__title / .hero__sub,
   .hcard (the glass product cards), .sec / .sec__head / .sec__h, the .rail
   of .rcard numbered cards, .dev (the Figma handset) and the .footer close
   with the giant wordmark. Anything restyled here is because a converter
   recording needs it, not to make a second visual language. Brian
   (2026-10-12): it must look like v3's custom elements, not a generic page.
   ========================================================================= */

/* ---- hero: v3's athlete-view hero ---------------------------------------- */
.nhero {
  position: relative;
  overflow: hidden;
  padding: 150px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.nhero > :not(.nhero__bg) {
  position: relative;
  z-index: 1;
}
.nhero .hero__title {
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1.05;
  padding-block: 0;
}
.nhero .hero__sub {
  margin-top: 16px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.45;
  color: #e9e9e9;
}
.nhero .btnrow {
  justify-content: center;
  margin-top: 32px;
}

/* The stage: the handset, with two of the app's own cards floating either
   side of it, as v3's coach hero floats Sonata's offers around her phone. */
.nhero__stage {
  margin-top: 64px;
  position: relative;
  width: 100%;
  max-width: 980px;
  display: flex;
  justify-content: center;
  /* flex-start, never the default stretch: a stretched .dev takes the row's
     height and overrides its aspect-ratio, which squashed the handset. */
  align-items: flex-start;
}
.nhero__stage .dev {
  --dev-w: 300px;
}
.nhero__stage .hcard {
  position: absolute;
  text-align: left;
}
.nhero__stage .hcard--program {
  min-width: 0;
  max-width: 330px;
}
.nhero__stage .hcard__title {
  white-space: normal;
  font-size: 16px;
}
/* Left: what the creator wrote. Right: what came back. */
.hcard--notes {
  right: calc(50% + 180px);
  top: 110px;
}
.hcard--result {
  left: calc(50% + 180px);
  top: 270px;
}
.hcard__lines > span {
  gap: 6px;
}
.hcard__lines {
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--grey-chip);
}
/* The notes card shows the creator's own shorthand, in v3's mono. */
.hcard--notes .hcard__lines {
  font-family: var(--font-mono);
  font-size: 13px;
}
.hcard__lines b {
  font-weight: 600;
  color: var(--white);
}

/* ---- the rail ----------------------------------------------------------- */
#how {
  padding-top: 120px;
}
.rcard__cap b {
  font-weight: 600;
}

/* ---- the handset with a recording in it ----------------------------------
   The recordings are mobile-web captures with no iOS status bar, so a strip
   in the colour of each recording's top edge is painted for the island to
   sit in; without it the island covers the app's own header. */
.dev .dev__screen {
  display: flex;
  flex-direction: column;
}
.dev .dev__screen::before {
  content: '';
  flex: none;
  height: 7.2%;
  background: var(--bar, #fff);
}
.dev--dark {
  --bar: #000;
}
.dev .dev__screen video {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-position: top;
}

/* ---- phone ------------------------------------------------------------- */
@media (max-width: 900px) {
  .nhero {
    padding-top: 112px;
  }
  .nhero .hero__sub {
    font-size: 16px;
  }
  .nhero__stage {
    height: auto;
    overflow: visible;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
  }
  .nhero__stage .dev {
    --dev-w: min(280px, 72vw);
  }
  /* On a phone the result card sits over the handset's lower edge and the
     notes card is dropped: two floating cards over one phone is clutter. */
  .nhero__stage .hcard {
    position: static;
    max-width: calc(100vw - 32px);
  }
  .nhero__stage .dev {
    order: 1;
  }
  .hcard--result {
    order: 2;
    margin-top: -96px;
    z-index: 2;
  }
  .hcard--notes {
    display: none;
  }
  #how {
    padding-top: 72px;
  }
}

/* ---- the steps: one feature per section, alternating sides ---------------
   Same as /new/nutrition: v3's mono step chip, a section heading and one
   line, beside the recording standing on a v3 panel. One phone per screen. */
.nhero__stage .dev {
  flex: none;
}
.step {
  padding: 56px 0;
}
.step__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--col-gap);
}
.step--flip .step__copy {
  order: 2;
}
.step__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.step__copy .rcard__step {
  font-size: 15px;
}
.step__copy .sec__h {
  font-size: clamp(28px, 2.6vw, 40px);
}
.step__copy .prose {
  font-size: 18px;
  color: #d9d9d9;
}
.step__panel {
  background: var(--panel);
  border-radius: 32px;
  padding: 48px 0;
  display: flex;
  justify-content: center;
}
.step__panel .dev {
  --dev-w: 300px;
}
#how {
  padding-top: 120px;
}
@media (max-width: 900px) {
  #how {
    padding-top: 72px;
  }
  .step {
    padding: 32px 0;
  }
  .step__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .step--flip .step__copy {
    order: 0;
  }
  .step__panel {
    padding: 32px 0;
    border-radius: 24px;
  }
  .step__panel .dev {
    --dev-w: min(270px, 70vw);
  }
}
