/* Phones (900px and narrower): the reading and tapping floor, loaded last so it wins.
   No words under 14px, fields at 16px so iOS never zooms in, and every control at least 44px
   tall to tap (inline text links grow their tap area with padding, not their line). The first
   look's own drawing (.mc) keeps its proportions: it is a picture of a website. */
@media (max-width: 900px) {
  :root { --fs-xs: 14px; --fs-sm: 14.5px; --fs-md: 16px; --fs-lg: 18px; }

  /* Words that were set in px below the floor. */
  .stepper__n, .tool, .pill, .tour, .sev, .avatar-wrap[data-tip]:hover::after, .crumb, .keep__link code,
  .badge, .areas__scale, .area__delta, .meter__label, .meter__val, .score__sample, .area__range, .crew__skills span,
  .cfg-tag, .conf-row .chip, .cfg-item__price small, .res-mono, .res-mail__line, .res-row__body .res-mono, .how-path, .how-host,
  .how-tag, .how-status, .stack__item, .stack__how code, .res-issues strong, .res-issues__rate, .res-issues__cve, .res-issues__kev,
  .stack__unknown, .frame__domain, .rail__domain, .per { font-size: 14px; }
  .stack__line { font-size: 14px !important; }
  .per { font-size: .6em; }
  .crumb { letter-spacing: .04em; }

  /* Fields: 16px, so iOS doesn't zoom, and a comfortable height. */
  .input, .intro__input, textarea, select { font-size: 16px; }
  .input:not(textarea) { min-height: 48px; }

  /* Buttons and chips: 44px to tap, with room between. */
  .btn, .conf-logo__btns .btn { min-height: 44px; font-size: 15px; }
  .conf-logo__btns .btn { padding: 0 14px; }
  .book-result a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .chips { gap: 8px; }
  .chip, .conf-row .chip { min-height: 44px; padding: 0 14px; font-size: 15px; }
  .tool { height: 44px; padding: 0 14px; }
  .tool--icon { width: 44px; padding: 0; }
  .tour { height: 44px; padding: 0 18px 0 14px; font-size: 14.5px; }
  .res-tab { min-height: 44px; }
  .res-win__copy { min-height: 44px; }
  .stack__sum, .res-row__sum, .res-fold__sum, .how-cat > summary, .stack__how > summary, .res-win__mail > summary { min-height: 44px; }
  .score__info, .strip__info { min-width: 44px; min-height: 44px; margin: -10px; }
  .top__home { display: inline-flex; align-items: center; min-height: 44px; }

  /* Text links: a 44px tap area that doesn't change the line they sit in. */
  button.link, .keep__btn, a.cfg-tag--link { padding-block: 12px; margin-block: -12px; }
  .panel p a:not(.btn) { padding-block: 14px; margin-block: -14px; }
  button.link { min-height: 0; line-height: 20px; }
  /* "Show 5 more options" keeps its room under the last add-on (the tap padding is its gap). */
  button.link.cfg-more { margin-block: 0 -4px; }
  .keep__btn { min-height: 0; }

  /* The header's steps: 44px targets, the numbers a little bigger. */
  .stepper__step { min-height: 44px; min-width: 44px; justify-content: center; padding: 0 6px; }
  .stepper__n, .is-done .ico--check { width: 26px; height: 26px; }
  .stepper li + li::before { width: 10px; margin: 0 2px; }
}
/* Small phones: shorter lines between the steps, so "Pricing Optional" fits beside the numbers. */
@media (max-width: 399px) {
  .stepper li + li::before { width: 6px; margin: 0 1px; }
  .stepper__opt { margin-left: 4px; }
}
