/* Shared type scale, store badges, and accessible text sizing. */
:root {
  --type-h1: clamp(3rem, 6vw, 5rem);
  --type-h2: clamp(2.25rem, 4.2vw, 3.5rem);
  --type-h3: clamp(1.5rem, 2.4vw, 1.75rem);
  --type-body: 1rem;
  --type-lede: 1.125rem;
  --type-label: 0.875rem;
}

body {
  font-size: var(--type-body);
  line-height: 1.6;
}

h1,
.hero h1,
.document-shell h1 {
  font-size: var(--type-h1);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h2,
.intro-copy h2,
.section-heading h2,
.feature-band h2,
.download h2,
.document-content h2 {
  font-size: var(--type-h2);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

h3,
.step-card h3 {
  font-size: var(--type-h3);
  line-height: 1.25;
}

p {
  line-height: 1.65;
}

.site-header nav {
  font-size: 0.9375rem;
  letter-spacing: 0;
}

.nav-cta,
.button,
.text-link,
.document-back {
  font-size: 1rem;
}

.button {
  min-height: 56px;
  padding-right: 28px;
  padding-left: 28px;
}

.nav-cta {
  padding-right: 26px;
  padding-left: 26px;
}

.footer-brand img {
  display: block;
  width: 116px;
  max-width: 100%;
  height: auto;
}

.site-footer {
  grid-template-columns: auto 1fr auto;
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  line-height: 1.4;
}

.hero-lede {
  max-width: 520px;
  font-size: var(--type-lede);
  line-height: 1.65;
}

.intro-copy > p:not(.eyebrow),
.download-copy > p:not(.eyebrow),
.feature-band-copy > p:not(.eyebrow),
.step-card p,
.section-lede,
.document-lede,
.document-content p,
.document-content li,
.notice {
  font-size: var(--type-body);
  line-height: 1.7;
}

.step-number,
.fine-print,
.availability,
.availability-note,
.document-meta,
.mini-chip,
.photo-label,
.art-note,
.image-stamp span,
.saved-tag {
  font-size: var(--type-label);
  line-height: 1.5;
}

.step-card h3 {
  font-size: var(--type-h3);
}

.text-link {
  padding-bottom: 9px;
}

.float-card b {
  font-size: var(--type-label);
}

.promise-row {
  font-size: 1.125rem;
  font-family: var(--sans);
  font-weight: 700;
}

.site-footer p,
.site-footer small,
.site-footer nav {
  font-size: var(--type-label);
  line-height: 1.5;
}

.footer-brand {
  font-size: 1.25rem;
}

.notice {
  border-radius: 12px;
}

.wardrobe-tiles > span {
  font-size: 0.8125rem;
}

.image-stamp b {
  font-size: 1.0625rem;
}

/* The app store badges are official artwork, kept at their original ratio. */
.store-badge {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
  justify-content: center;
}

.store-badge img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 62px;
  object-fit: contain;
}

/* Google Play's PNG includes clear padding, so scale the file up to match
   the visible badge height while keeping its original aspect ratio. */
.store-badge:nth-child(2) img {
  height: 93px;
}

.store-badge:hover {
  transform: none;
}

.hero-store-actions {
  width: 100%;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 12px;
}

.hero-store-actions .store-badge {
  min-width: 0;
  flex: 0 1 auto;
}

/* Highlight the badge group without modifying or animating its artwork. */
.store-links-highlight .store-badge {
  animation: none;
}

.hero-store-actions.store-links-highlight {
  outline: 3px solid rgba(23, 32, 43, 0.22);
  outline-offset: 6px;
  border-radius: 12px;
  animation: store-ring-pulse 1.25s ease-in-out 4;
}

@keyframes store-ring-pulse {
  0%,
  100% {
    outline-color: rgba(23, 32, 43, 0);
    outline-offset: 2px;
  }
  45%,
  65% {
    outline-color: rgba(23, 32, 43, 0.28);
    outline-offset: 7px;
  }
}

/* Small phone UI is illustrative; keep its labels readable at screen scale. */
.phone-status {
  font-size: 0.6875rem;
}

.phone-sub,
.filter,
.garment span,
.phone-nav {
  font-size: 0.75rem;
}

.phone-nav small {
  font-size: 0.6875rem;
}

.avatar {
  font-size: 0.75rem;
}

.float-card small {
  font-size: 0.75rem;
}

.document-content h2 {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.025em;
}

@media (max-width: 700px) {
  .hero-store-actions {
    gap: 8px;
  }

  .hero-store-actions .store-badge img {
    height: 46px;
  }

  .hero-store-actions .store-badge:nth-child(2) img {
    height: 69px;
  }

  .store-badge img {
    height: 46px;
  }

  .store-badge:nth-child(2) img {
    height: 69px;
  }

  .site-header nav {
    font-size: 0.875rem;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .hero-store-actions .store-badge img {
    height: 40px;
  }

  .hero-store-actions .store-badge:nth-child(2) img {
    height: 60px;
  }

  .store-actions .store-badge img {
    height: 40px;
  }

  .store-actions .store-badge:nth-child(2) img {
    height: 60px;
  }

  .eyebrow {
    font-size: 0.75rem;
  }

  .site-header nav {
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-store-actions.store-links-highlight {
    animation: none;
  }
}

@media (max-width: 700px) {
  .site-header {
    justify-content: center;
  }

  .site-header nav {
    display: none;
  }

  .hero-copy,
  .intro-copy,
  .feature-band-copy,
  .step-card {
    text-align: center;
  }

  .hero-lede,
  .intro-copy > p:not(.eyebrow),
  .feature-band-copy > p:not(.eyebrow),
  .step-card p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-note {
    justify-content: center;
  }

  .hero-store-actions {
    width: min(100%, 500px);
    justify-content: center;
    margin-inline: auto;
  }

  .hero-store-actions .store-badge {
    flex: 1 1 0;
    min-width: 0;
    max-width: 240px;
  }

  .button {
    justify-content: center;
  }

  .download {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 12px;
    text-align: center;
  }

  .download-copy {
    display: contents;
  }

  .download-copy > .eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 2px;
    text-align: center;
  }

  .download-mark {
    grid-column: 1;
    grid-row: 2;
  }

  .download-copy > h2 {
    grid-column: 1;
    grid-row: 3;
  }

  .download .store-actions {
    grid-column: 1;
    grid-row: 4;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 500px;
    margin-top: 8px;
  }

  .download .store-badge {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .download .store-badge img {
    max-width: 100%;
    object-fit: contain;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-footer small {
    text-align: center;
  }
}
