/* ═══════════════════════════════════════════
   WV Rewards Landing Page — Styles (v4)
   ═══════════════════════════════════════════
   Page-scoped stylesheet.
   Prefix: wv-rw-
   Typography: handled by global wv-typography.css classes.
   Buttons keep their own typography — not globalized.
   ═══════════════════════════════════════════ */


/* ── Page-Scoped Variables ── */

.wv-rw-page {
  --rw-gold: #B8860B;
  --rw-gold-hover: #9A7209;
  --rw-gold-light: #FDF6E3;
  --rw-gold-pale: #FFFBF0;
  --rw-gold-border: #E8D4A0;
  --rw-surface: #FDFAF5;
  --rw-border-mid: #C8C2B4;
  --rw-text-light: #A09A8E;
  --rw-text-muted: #BDB5AC;
  --rw-ink: #1E1E1C;
  --rw-teal-light: #E4F0F5;
  --rw-teal-border: #B0D0DA;
  --rw-olive-pale: #EEF1E8;
}


/* ═══════════════════════════════════════════
   1. SHARED
   ═══════════════════════════════════════════ */

.wv-rw-wrap {
  max-width: var(--wv-page-content-max);
  margin: 0 auto;
  padding: 0 48px;
}

.wv-rw-wrap-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Local override: frozen CTA button takes page gold ──
   User-authorized 2026-06-04: rewards page CTAs use gold instead of
   olive accent. Scoped to .wv-rw-page so it never leaks site-wide.
   Hover gold from --rw-gold-hover token. */
.wv-rw-page .wv-lg__btn-cta {
  background: var(--rw-gold);
}

.wv-rw-page .wv-lg__btn-cta:hover {
  background: var(--rw-gold-hover);
}

/* ── Outline variant for dark backgrounds ──
   New companion modifier on the frozen .wv-lg__btn-outline.
   Inverts text/border to cream for use on dark hero bg.
   Lives here pending designer sign-off + promotion to wv-components.css. */
.wv-lg__btn-outline--light {
  color: var(--wv-color-text-inverse);
  border-color: rgba(255, 255, 255, 0.3);
}

.wv-lg__btn-outline--light:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--wv-color-text-inverse);
}


/* ═══════════════════════════════════════════
   2. HERO
   ═══════════════════════════════════════════ */

.wv-rw-hero {
  background: var(--rw-ink);
  background-size: cover;
  background-position: center;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.wv-rw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 40%, rgba(184, 134, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.wv-rw-hero .wv-rw-wrap {
  position: relative;
  z-index: 1;
}

.wv-rw-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  /* Top-align columns (2026-06-02) — was `center`, which vertically
     centered the shorter right-column card within the row, leaving
     asymmetric space above/below the card vs the hero padding-top.
     `start` makes both columns top-align at the hero's 88px padding,
     so the card's top space matches the section pill's top space on
     the left. */
  align-items: start;
}

/* Hero — Left */
.wv-rw-hero__title {
  /* wv-h2 on element */
  color: #fff;
  margin: 0 0 16px;
}

.wv-rw-hero__sub {
  /* wv-body-lg on element */
  color: var(--wv-color-text-inverse);
  margin: 0 0 32px;
}

.wv-rw-hero__ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.wv-rw-hero__aside {
  /* wv-body-sm on element */
  font-style: italic;
  color: var(--wv-color-text-inverse);
}

/* Hero — Welcome Card */
.wv-rw-card {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 16px;
  padding: 32px 28px;
}

.wv-rw-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wv-rw-card__row:last-child {
  border-bottom: none;
}

.wv-rw-card__label {
  /* wv-body-sm on element */
  color: var(--wv-color-text-inverse);
}

.wv-rw-card__points {
  /* wv-h5 on element — was serif italic 20px, now 24px sans. Visual review needed. */
  color: var(--rw-gold);
}

.wv-rw-card__value {
  /* wv-label-small on element */
  color: var(--wv-color-text-inverse);
  margin-left: 8px;
}

.wv-rw-card__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 14px 16px;
  background: rgba(184, 134, 11, 0.10);
  border-radius: 8px;
}

.wv-rw-card__total .wv-rw-card__label {
  color: var(--wv-color-text-inverse);
  font-weight: 600;
}


/* ═══════════════════════════════════════════
   3. HOW IT WORKS
   ═══════════════════════════════════════════ */

.wv-rw-how {
  padding: 88px 0;
  border-bottom: 1px solid var(--wv-color-border);
}

.wv-rw-how__intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.wv-rw-how__title {
  /* wv-h2 on element */
  color: var(--wv-color-text-primary);
  margin: 0 0 12px;
}

.wv-rw-how__body {
  color: var(--wv-color-text-secondary);
  margin: 0;
}

.wv-rw-how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.wv-rw-how__step {
  padding: 32px 28px;
  border-right: 1px solid var(--wv-color-border);
  text-align: center;
}

.wv-rw-how__step:last-child {
  border-right: none;
}

.wv-rw-how__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rw-gold-light);
  border: 1px solid var(--rw-gold);
  /* wv-body-lg on element — exact 18px size match */
  color: var(--rw-gold);
  margin-bottom: 16px;
}

.wv-rw-how__step-title {
  /* wv-body on element */
  font-weight: 600;
  color: var(--wv-color-text-primary);
  margin: 0 0 8px;
}

.wv-rw-how__step-body {
  color: var(--wv-color-text-secondary);
  margin: 0;
}

.wv-rw-how__cta {
  text-align: center;
  margin-top: 40px;
}


/* ═══════════════════════════════════════════
   4. EARN POINTS
   ═══════════════════════════════════════════ */

.wv-rw-earn {
  padding: 88px 0;
  background: var(--rw-surface);
  border-bottom: 1px solid var(--wv-color-border);
}

.wv-rw-earn__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.wv-rw-section-title {
  /* wv-h2 on element */
  color: var(--wv-color-text-primary);
  margin: 0 0 12px;
}

/* Earn — Left: Card list */
.wv-rw-earn__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wv-rw-earn-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--wv-color-background);
  border: 1px solid var(--wv-color-border);
  border-radius: 10px;
}

.wv-rw-earn-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--rw-gold-light);
}

.wv-rw-earn-card__icon img {
  display: block;
}

.wv-rw-earn-card__info {
  flex: 1;
  min-width: 0;
}

.wv-rw-earn-card__title {
  /* wv-body on element */
  font-weight: 600;
  color: var(--wv-color-text-primary);
  margin: 0 0 2px;
}

.wv-rw-earn-card__body {
  color: var(--wv-color-text-secondary);
  margin: 0;
}

.wv-rw-earn-card__badge {
  flex-shrink: 0;
  text-align: right;
}

.wv-rw-earn-card__pts {
  /* wv-h5 on element — was serif italic 22px, now 24px sans. Visual review needed. */
  color: var(--rw-gold);
  display: block;
}

.wv-rw-earn-card__pts-label {
  /* wv-label-small on element — was mono 9px, now 12px. Visual review needed. */
  color: var(--rw-text-light);
}

/* Earn — Right: Math Card */
.wv-rw-math {
  position: sticky;
  top: 88px;
  background: var(--rw-surface);
  border: 1px solid var(--wv-color-border);
  border-radius: 14px;
  padding: 28px 24px;
}

.wv-rw-math__title {
  /* wv-body on element */
  font-weight: 600;
  color: var(--wv-color-text-primary);
  margin: 0 0 20px;
}

.wv-rw-math__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--wv-color-border);
  /* wv-body-sm on element */
  color: var(--wv-color-text-secondary);
}

.wv-rw-math__row:last-of-type {
  border-bottom: none;
}

.wv-rw-math__row-value {
  /* wv-label-small on element */
  color: var(--wv-color-text-primary);
}

.wv-rw-math__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--rw-gold-light);
  border: 1px solid var(--rw-gold-border);
  border-radius: 8px;
}

.wv-rw-math__total-label {
  /* wv-body-sm on element */
  font-weight: 600;
  color: var(--rw-gold);
}

.wv-rw-math__total-value {
  /* wv-h5 on element — was serif italic 20px, now 24px sans. Visual review needed. */
  color: var(--rw-gold);
}

.wv-rw-math__note {
  /* wv-body-sm on element */
  font-style: italic;
  color: var(--rw-text-light);
  margin: 14px 0 0;
}


/* ═══════════════════════════════════════════
   5. REDEEM
   ═══════════════════════════════════════════ */

.wv-rw-redeem {
  padding: 88px 0;
  border-bottom: 1px solid var(--wv-color-border);
}

.wv-rw-redeem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.wv-rw-redeem__title {
  /* wv-h2 on element */
  color: var(--wv-color-text-primary);
  margin: 0 0 12px;
}

.wv-rw-redeem__body {
  /* wv-body on element */
  color: var(--wv-color-text-secondary);
  margin: 0 0 28px;
}

.wv-rw-redeem__body p { margin-bottom: 14px; }
.wv-rw-redeem__body p:last-child { margin-bottom: 0; }

.wv-rw-redeem__body strong {
  font-weight: 600;
  color: var(--wv-color-text-primary);
}

.wv-rw-redeem__ctas {
  display: flex;
  gap: 12px;
}

/* Redeem — Right: Cart Mockup */
.wv-rw-cart {
  border: 1px solid var(--wv-color-border);
  border-radius: 12px;
  overflow: hidden;
}

.wv-rw-cart__header {
  background: var(--rw-ink);
  padding: 14px 20px;
  /* wv-body-sm on element + font-weight 600 override */
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wv-rw-cart__body {
  padding: 0;
}

.wv-rw-cart__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--wv-color-border);
}

.wv-rw-cart__item-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--rw-surface);
  object-fit: cover;
}

.wv-rw-cart__item-info {
  flex: 1;
  min-width: 0;
}

.wv-rw-cart__item-name {
  /* wv-body-sm on element */
  font-weight: 600;
  color: var(--wv-color-text-primary);
  margin: 0 0 2px;
}

.wv-rw-cart__item-meta {
  /* wv-body-sm on element */
  color: var(--wv-color-text-secondary);
}

.wv-rw-cart__item-price {
  /* wv-label-small on element */
  color: var(--wv-color-text-primary);
}

/* Redemption Toggle */
.wv-rw-cart__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 14px 20px;
  background: var(--rw-gold-pale);
  border-bottom: 1px solid var(--rw-gold-border);
}

.wv-rw-cart__toggle-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wv-rw-cart__toggle-text {
  flex: 1;
  /* wv-body-sm on element */
  color: var(--wv-color-text-primary);
}

.wv-rw-cart__toggle-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  background: var(--rw-gold);
  color: #fff;
  /* wv-label-small on element — was mono 10px, now 12px. Visual review needed. */
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--wv-radius-pill);
}

/* Cart Total */
.wv-rw-cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.wv-rw-cart__total-label {
  /* wv-body on element */
  font-weight: 600;
  color: var(--wv-color-text-primary);
}

.wv-rw-cart__total-prices {
  text-align: right;
}

.wv-rw-cart__total-original {
  /* wv-body-sm on element */
  color: var(--rw-text-muted);
  text-decoration: line-through;
  margin-right: 8px;
}

.wv-rw-cart__total-final {
  /* wv-h5 on element — was serif italic 20px, now 24px sans. Visual review needed. */
  color: var(--rw-gold);
}


/* ═══════════════════════════════════════════
   6. SUBSCRIBE
   ═══════════════════════════════════════════ */

.wv-rw-subscribe {
  background: var(--rw-ink);
  background-size: cover;
  background-position: center;
  padding: 88px 0;
}

.wv-rw-subscribe__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.wv-rw-subscribe__title {
  /* wv-h2 on element */
  color: #fff;
  margin: 0 0 16px;
}

.wv-rw-subscribe__body {
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 28px;
}

/* Subscribe CTA — keeps own typography */
.wv-rw-subscribe__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  background: var(--wv-color-accent);
  color: var(--wv-color-text-inverse);
  font-family: var(--wv-font-primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--wv-transition-fast);
}

.wv-rw-subscribe__cta:hover {
  background: var(--wv-color-olive-dark);
}

/* Disabled state — 2026-06-02 temporary while /your-practice page is
   refined. cursor: default, no hover, slightly muted. Restore back to
   <a> + remove --disabled modifier when Your Practice is ready. */
.wv-rw-subscribe__cta--disabled,
.wv-rw-subscribe__cta--disabled:hover {
  background: var(--wv-color-accent);
  opacity: 0.55;
  cursor: default;
}

/* "COMING SOON" pairing label next to the disabled CTA — white text,
   uppercase, small letter-spacing. Temporary alongside --disabled. */
.wv-rw-subscribe__cta-coming-soon {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  color: #fff;
  font-family: var(--wv-font-primary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Subscribe — Right: Perk Cards */
.wv-rw-subscribe__perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wv-rw-perk {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px 20px;
}

.wv-rw-perk__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--rw-olive-pale);
  margin-bottom: 14px;
}

.wv-rw-perk__title {
  /* wv-body on element */
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
}

.wv-rw-perk__body {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}


/* ═══════════════════════════════════════════
   7. DETAILS
   ═══════════════════════════════════════════ */

.wv-rw-details {
  padding: 72px 0;
  background: var(--rw-surface);
  border-bottom: 1px solid var(--wv-color-border);
}

.wv-rw-details__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wv-rw-detail {
  background: var(--rw-surface);
  border: 1px solid var(--wv-color-border);
  border-radius: 10px;
  padding: 28px 24px;
}

.wv-rw-detail__icon {
  margin-bottom: 16px;
  height: 32px;
  display: flex;
  align-items: center;
}

.wv-rw-detail__title {
  /* wv-body on element */
  font-weight: 600;
  color: var(--wv-color-text-primary);
  margin: 0 0 6px;
}

.wv-rw-detail__body {
  color: var(--wv-color-text-secondary);
  margin: 0;
}


/* ═══════════════════════════════════════════
   8. FINAL CTA
   ═══════════════════════════════════════════ */

.wv-rw-final {
  padding: 96px 0;
  text-align: center;
}

.wv-rw-final__inner {
  max-width: 560px;
  margin: 0 auto;
}

.wv-rw-final__title {
  /* wv-h2 on element */
  color: var(--wv-color-text-primary);
  margin: 0 0 16px;
}

.wv-rw-final__body {
  color: var(--wv-color-text-secondary);
  margin: 0 0 32px;
}

.wv-rw-final__ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.wv-rw-final__note {
  /* wv-body-sm on element */
  font-style: italic;
  color: var(--rw-text-light);
}


/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet (768–1279px)
   ═══════════════════════════════════════════ */

@media (min-width: 768px) {
  .wv-rw-hero__grid {
    gap: 40px;
  }

  .wv-rw-earn__grid {
    gap: 40px;
  }

  .wv-rw-redeem__grid {
    gap: 40px;
  }

  .wv-rw-subscribe__grid {
    gap: 40px;
  }

  .wv-rw-hero {
    padding-top: 48px;
  }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile-first base + tablet+ restoration
   (Refactored from a max-width: 767px block 2026-06-01.)
   ═══════════════════════════════════════════ */

.wv-rw-wrap,
.wv-rw-wrap-narrow {
  padding: 0 24px;
}

.wv-rw-hero {
  padding-top: 32px;
}

.admin-bar .wv-rw-hero {
  padding-top: calc(32px + 46px);
}

.wv-rw-hero__grid {
  grid-template-columns: 1fr;
  gap: 32px;
}

.wv-rw-hero__title {
  font-size: 36px;
}

/* CTAs stack full-width at mobile — the frozen buttons' inline-flex
   content width plus 12px gap exceeded the mobile viewport content
   area (≈392 needed in ≈327 available), getting clipped by the
   hero's overflow: hidden. Matches the Final CTA stacking pattern. */
.wv-rw-hero__ctas {
  flex-direction: column;
  align-items: stretch;
}

.wv-rw-hero__ctas .wv-lg__btn-cta,
.wv-rw-hero__ctas .wv-lg__btn-outline {
  width: 100%;
  justify-content: center;
}

.wv-rw-how__grid {
  grid-template-columns: 1fr;
}

.wv-rw-how__step {
  border-right: none;
  border-bottom: 1px solid var(--wv-color-border);
  padding: 24px 0;
}

.wv-rw-how__step:last-child {
  border-bottom: none;
}

.wv-rw-earn__grid {
  grid-template-columns: 1fr;
  gap: 32px;
}

.wv-rw-math {
  position: static;
}

.wv-rw-redeem__grid {
  grid-template-columns: 1fr;
  gap: 32px;
}

.wv-rw-subscribe__grid {
  grid-template-columns: 1fr;
  gap: 32px;
}

.wv-rw-subscribe__perks {
  grid-template-columns: 1fr;
}

.wv-rw-details__grid {
  grid-template-columns: 1fr;
}

.wv-rw-final {
  padding: 56px 24px;
}

.wv-rw-final__inner {
  max-width: 100%;
}

.wv-rw-final__title {
  font-size: 36px;
}

.wv-rw-final__ctas {
  flex-direction: column;
  align-items: stretch;
}

.wv-rw-final__ctas .wv-lg__btn-cta,
.wv-rw-final__ctas .wv-lg__btn-outline {
  width: 100%;
  justify-content: center;
}

/* ── Desktop restoration ── */
@media (min-width: 768px) {
  .wv-rw-wrap,
  .wv-rw-wrap-narrow {
    padding: 0 48px;
  }

  .wv-rw-hero {
    padding-top: revert;
  }

  .admin-bar .wv-rw-hero {
    padding-top: revert;
  }

  .wv-rw-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .wv-rw-hero__title {
    font-size: revert;
  }

  /* Restore hero CTAs to inline row at tablet+ */
  .wv-rw-hero__ctas {
    flex-direction: row;
    align-items: center;
  }

  .wv-rw-hero__ctas .wv-lg__btn-cta,
  .wv-rw-hero__ctas .wv-lg__btn-outline {
    width: auto;
    justify-content: revert;
  }

  .wv-rw-how__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wv-rw-how__step {
    border-right: 1px solid var(--wv-color-border);
    border-bottom: revert;
    padding: 32px 28px;
  }

  .wv-rw-how__step:last-child {
    border-bottom: revert;
  }

  .wv-rw-earn__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .wv-rw-math {
    position: sticky;
  }

  .wv-rw-redeem__grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .wv-rw-subscribe__grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .wv-rw-subscribe__perks {
    grid-template-columns: 1fr 1fr;
  }

  .wv-rw-details__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wv-rw-final {
    padding: 96px 0;
  }

  .wv-rw-final__inner {
    max-width: var(--wv-page-content-max);
    margin: 0 auto;
    padding: 0 48px;
  }

  .wv-rw-final__title {
    font-size: revert;
  }

  .wv-rw-final__ctas {
    flex-direction: revert;
    align-items: revert;
  }

  .wv-rw-final__ctas .wv-lg__btn-cta,
  .wv-rw-final__ctas .wv-lg__btn-outline {
    width: revert;
    justify-content: revert;
  }
}

/* Admin bar hero offset — desktop (32px bar) */
@media (min-width: 783px) {
  .admin-bar .wv-rw-hero {
    padding-top: calc(32px + 32px);
  }
}
