/* "Three taps a day": the three app screens, drawn as phones.
   Everything inside a phone is sized in em, so one font-size on .how__step scales the whole drawing. */

/* Section layout */
.how__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.how__steps {
  margin: 0;
  /* The right padding makes room for the last phone's shadow, so the row looks centred. */
  padding: 0 8px 0 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
/* The wrapper only scrolls on small screens. Where nothing scrolls it is hidden (its list stays
   visible), so the keyboard does not stop on it. */
@media (min-width: 760px) {
  .how__scroll { visibility: hidden; }
  .how__steps { visibility: visible; }
}
.how__step { flex: none; width: 25.6em; font-size: 10px; display: flex; flex-direction: column; gap: 36px; }

/* Step caption: number, title, line */
.how__text {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 12px;
  font-size: 18px;
}
.how__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
}
.how__num--coral { background: var(--coral); }
.how__num--yellow { background: var(--yellow); }
.how__num--green { background: var(--green); }
.how__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.05;
  white-space: nowrap;
}
.how__line { grid-column: 2; margin: -4px 0 0; color: var(--ink-soft); }
/* Each line is set as two even rows, so no word is ever left alone. */
.how__line span { display: block; white-space: nowrap; }

/* Phone frame: same outline, corner and shadow as the site's cards */
.phone {
  position: relative;
  width: 25.6em;
  height: 53.4em;
  border: var(--outline);
  border-radius: 3.6em;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--navy);
  transform: rotate(-1.5deg);
}
.how__step:nth-child(even) .phone { transform: rotate(1.5deg); }
.phone__screen {
  height: 100%;
  border-radius: calc(3.6em - 3px);
  overflow: hidden;
  padding: 0 1.8em 2.4em;
  display: flex;
  flex-direction: column;
}
.phone__slot {
  flex: none;
  align-self: center;
  width: 5.2em;
  height: .7em;
  margin-top: 1.5em;
  border-radius: 999px;
  background: var(--navy);
}
.phone__title {
  margin-top: 1em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6em;
  line-height: 1.1;
}
.phone__label { font-size: 1.35em; font-weight: 600; line-height: 1.3; }

/* Screen 1: recording */
.phone--record .phone__screen { background: var(--yellow); align-items: center; }
.phone__rec {
  margin-top: 1.5em;
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .5em 1.1em .5em .9em;
  border-radius: 999px;
  background: var(--white);
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.3;
}
.phone__rec-dot { width: .8em; height: .8em; border-radius: 50%; background: var(--coral); }
.phone__pip { display: block; width: 15em; height: auto; margin-top: auto; }
.phone__timer {
  margin-top: .2em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 5em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.phone__live { display: block; width: 16em; height: auto; margin-top: 1.4em; }
.phone__stop {
  flex: none;
  width: 8.4em;
  height: 8.4em;
  margin-top: auto;
  margin-bottom: .8em;
  border-radius: 50%;
  border: var(--outline);
  background: var(--coral);
  box-shadow: 0 .6em 0 var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone__stop-icon { width: 2.8em; height: 2.8em; border-radius: .6em; background: var(--navy); }

/* Screen 2: the daily card */
.phone__notes { margin-top: 2em; display: flex; flex-direction: column; gap: 1.8em; }
.phone__note { border-radius: 1.8em; padding: 1.8em 1.6em 2em; display: flex; flex-direction: column; gap: .5em; }
.phone__note--yellow { background: var(--soft-yellow); }
.phone__note--mint { background: var(--mint); }
.phone__note--try { border: 3px dashed var(--blue); padding: calc(1.8em - 3px) calc(1.6em - 3px) calc(2em - 3px); }
.phone__note--try .phone__label { color: var(--blue); }
.phone__note-text { font-size: 1.8em; font-weight: 500; line-height: 1.32; text-wrap: balance; }
.phone__note-text--big { font-size: 2.1em; line-height: 1.28; }

/* Screen 3: keep the clips */
.phone__clips { margin-top: 2.2em; display: flex; flex-direction: column; gap: 2.8em; }
.phone__clip { display: flex; flex-direction: column; gap: .8em; }
.phone__clip-head { display: flex; align-items: center; justify-content: space-between; }
.phone__player {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: .8em 1.6em .8em .8em;
  border-radius: 999px;
  background: var(--navy);
}
.phone__play {
  flex: none;
  width: 4em;
  height: 4em;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone__play svg { display: block; width: 1.6em; height: 1.6em; }
.phone__wave { display: block; flex: 1; min-width: 0; height: 2.4em; }
.phone__time { color: var(--white); font-size: 1.35em; font-weight: 600; font-variant-numeric: tabular-nums; }
.phone__keep {
  display: flex;
  align-items: center;
  gap: .35em;
  padding: .45em .95em;
  border-radius: 999px;
  border: 2px solid var(--navy);
  font-size: 1.35em;
  font-weight: 600;
  line-height: 1.2;
}
.phone__keep--on { background: var(--green); padding-left: .7em; }
.phone__tick { display: block; width: .9em; height: .9em; }
.phone__delete {
  margin-top: auto;
  font-size: 1.25em;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-muted);
  text-align: center;
  white-space: nowrap;
}

/* Tablet: still three across, the phones shrink with the page. */
@media (max-width: 1023px) {
  .how__step { font-size: min(10px, calc((100vw - 2 * var(--gutter) - 56px) / 76.8)); gap: 28px; }
  .how__text { font-size: 16px; gap: 4px 10px; }
  .how__num { width: 38px; height: 38px; font-size: 21px; }
  .how__title { font-size: 23px; }
}

/* Phones: full-size screens in a row that swipes sideways (and scrolls with the arrow keys).
   The next phone always peeks in from the right edge. */
@media (max-width: 759px) {
  .how__scroll {
    margin: -16px calc(-1 * var(--gutter)) -8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    outline-offset: -3px;
  }
  .how__steps {
    width: max-content;
    justify-content: flex-start;
    gap: 28px;
    padding: 16px var(--gutter) 24px;
  }
  .how__step { font-size: 10px; gap: 32px; scroll-snap-align: start; }
  .how__text { font-size: 17px; gap: 6px 12px; }
  .how__num { width: 44px; height: 44px; font-size: 24px; }
  .how__title { font-size: 26px; }
}
@media (max-width: 359px) {
  .how__step { font-size: 9px; }
  .how__text { font-size: 16px; }
  .how__title { font-size: 23px; }
}

/* The section sits on the blue band. Text turns white; the phones keep their own colours. */
.how-band { background: var(--blue); color: var(--white); }
.how-band .phone { color: var(--navy); }
.how-band .section-title, .how-band .how__title { color: var(--white); }
.how-band .how__line, .how-band .how__extra { color: var(--white); }
.how-band .how__extra + .how__extra { margin-top: -36px; }
.how-band .how { padding-top: 56px; }
