/* Reprise web app: layout on top of the DS kit (tokens.css + kit.css + site.css).
   Mirrors the webapp-* boards of the Reprise Screens artifact; change the boards first. */
.wa-flex { flex: 1; }
.wa-tap { min-height: 44px; display: inline-flex; align-items: center; }
.wa-show-phone { display: none; }

/* Header */
.wa-header { border-bottom: 1px solid var(--divider); }
.wa-header__in { max-width: 1200px; margin: 0 auto; padding: 10px 24px; box-sizing: border-box; display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.wa-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 44px; }
.wa-brand img { width: 36px; height: 36px; border-radius: 8px; display: block; }
.wa-brand span { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.wa-brand--sm img { width: 32px; height: 32px; border-radius: 7px; }
.wa-brand--sm span { font-size: 20px; }
.wa-nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }

/* Footer */
.wa-footer { border-top: 1px solid var(--divider); background: var(--bg); }
.wa-footer__in { max-width: 1200px; margin: 0 auto; box-sizing: border-box; display: flex; flex-wrap: wrap; }
.wa-footer__in--full { padding: 32px 24px 40px; gap: 24px; align-items: flex-start; }
.wa-footer__in--slim { padding: 24px 24px 32px; gap: 4px 24px; align-items: center; }
.wa-footer__brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.wa-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Store badges */
.wa-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wa-badge { display: inline-flex; align-items: center; }
.wa-badge img { width: auto; display: block; }

/* Page frame */
.wa-main { max-width: 1200px; margin: 0 auto; padding: 48px 24px 80px; box-sizing: border-box; display: flex; flex-direction: column; gap: 48px; }
.wa-section { display: flex; flex-direction: column; gap: 16px; }
.wa-col { display: flex; flex-direction: column; min-width: 0; }

/* Home */
.wa-hero { position: relative; overflow: hidden; border-radius: 0; background: radial-gradient(60% 80% at 78% 40%, rgba(210,178,119,0.30), transparent 70%), var(--stage); }
.wa-hero__in { max-width: 1200px; margin: 0 auto; padding: 80px 24px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.wa-hero__title { color: var(--on-stage); font-size: clamp(44px, 6vw, 72px); margin: 0; }
.wa-compare-card { flex: 1 1 400px; min-width: 0; max-width: 480px; margin: 0; padding: 28px; box-sizing: border-box; border-radius: var(--r-xl); background: var(--surface-2); color: var(--text); box-shadow: var(--elev-stage); display: flex; flex-direction: column; gap: 16px; }
.wa-hero .wa-compare-card .t-overline { color: var(--accent-text); }
.wa-hero .wa-compare-card .t-title-2 { color: var(--text); margin: 0; }
.wa-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.wa-poster { width: 44%; max-width: 220px; height: auto; aspect-ratio: 9/16; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--elev-4); }

/* Grids of tiles */
.wa-grid-artists { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 20px 12px; }
.wa-grid-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.wa-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 560px; }
.wa-grid-artists .rp-tile, .wa-grid-albums .rp-tile, .wa-grid-3 .rp-tile { width: auto; min-width: 0; }
.wa-grid-artists .rp-tile__title, .wa-grid-albums .rp-tile__title, .wa-grid-3 .rp-tile__title,
.wa-grid-albums .rp-tile__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Compare: shared artists, "See all N" */
.wa-pair { display: flex; align-items: center; gap: 8px; }
.wa-pair .t-caption { width: 88px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-more:not(.is-open) > .rp-rank-row:nth-child(n+6) { display: none; }
.rp-legend { font-size: 12px; }
.wa-how summary { list-style: none; }
.wa-how summary::-webkit-details-marker { display: none; }
.wa-how[open] p { margin: 8px 0 0; max-width: 640px; }

@media (min-width: 601px) {
  .wa-more__btn--phone { display: none; }
}

@media (max-width: 600px) {
  a.w-link { display: none !important; }
  .wa-hide-phone { display: none; }
  .wa-show-phone { display: inline; }
  .wa-duo { display: none !important; }
  .wa-header__in { padding: 8px 16px; gap: 12px; }
  .wa-brand img { width: 30px; height: 30px; border-radius: 7px; }
  .wa-brand span { font-size: 19px; }
  .wa-main { padding: 16px 16px 40px; gap: 32px; }
  .wa-hero__in { padding: 48px 16px; gap: 32px; }
  .wa-compare-card { padding: 20px; }
  .wa-footer__in--full, .wa-footer__in--slim { padding: 12px 16px 24px; gap: 4px 20px; }
  .wa-footer__note { flex-basis: 100%; }
  .wa-more:not(.is-open) > .rp-rank-row:nth-child(n+4) { display: none; }
  .wa-pair .t-caption { width: 72px; }
  .wa-grid-3 { gap: 12px; }
  .wa-section { gap: 12px; }
}

/* Compare result */
.wa-cmp-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding: 40px; }
.wa-cmp-hero__text { flex: 1 1 420px; gap: 12px; }
.wa-cmp-hero__title { margin: 0; color: var(--on-stage); overflow-wrap: anywhere; }
.wa-cmp-hero__sum { margin: 0; max-width: 560px; }
.wa-cmp-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.wa-cmp-cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.wa-again { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 32px; padding: 32px; margin: 0; }
.wa-again .rp-field { flex: 1 1 260px; }
.wa-again__go { height: 52px; }
.wa-show-phone-flex { display: none !important; }
.wa-art-56 { display: contents; }

@media (max-width: 600px) {
  .wa-hide-phone-flex { display: none !important; }
  .wa-show-phone-flex { display: inline-flex !important; }
  .wa-cmp-hero { flex-direction: column; text-align: center; gap: 12px; padding: 28px 20px; }
  .wa-cmp-hero__text { flex: none; width: 100%; align-items: center; gap: 12px; }
  .wa-cmp-hero__title { font-size: 28px; line-height: 1.12; letter-spacing: -0.28px; }
  .wa-cmp-hero__sum { font-size: 14px; line-height: 1.45; }
  .wa-cmp-hero__actions { width: 100%; gap: 8px; margin-top: 4px; flex-wrap: nowrap; }
  .wa-cmp-hero__actions > * { flex: 1; min-width: 0; }
  .wa-cmp-story { height: 44px; padding: 0 16px; font-size: 14px; }
  .wa-cmp-cols { gap: 32px; }
  .wa-cmp-cols > .wa-col { gap: 32px !important; }
  .wa-again { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; }
  .wa-again .rp-field { flex: none !important; }
  .wa-again__go { width: 100%; }
  .wa-cmp-cols .rp-rank-row .rp-art { width: 48px !important; height: 48px !important; }
}

/* Profile */
@media (max-width: 600px) {
  .wa-prof { gap: 16px !important; align-items: flex-start !important; }
  .wa-prof > .rp-avatar { width: 72px !important; height: 72px !important; font-size: 28px !important; }
}
