/* ═══════════════════════════════════════════════════════════════════
   Rewards page (/rewards) — the public loyalty explainer.
   Ink on Paper, two Cream bands for rhythm, tier seals bring their own
   hues. The one red dot stays the logo mark's alone (headings only).
   Reuses the storefront tokens + .kdb-cta / .kdb-eyebrow / .kdb-sechead;
   the tier seals are drawn by tier-badge.css.
   ═══════════════════════════════════════════════════════════════════ */

/* Full-bleed like the home template — neutralise Astra's content container. */
body.kdb-rewards-page #content > .ast-container {
  display: block; width: 100%; max-width: none; padding-left: 0; padding-right: 0;
}

.kdb-rw-main { background: var(--kdb-paper); }
.kdb-rw { --rw-inner: 1080px; color: var(--kdb-ink); }
.kdb-rw section { padding-inline: clamp(18px, 4vw, 56px); }

/* ── hero ── */
.kdb-rw-hero {
  max-width: var(--rw-inner); margin: 0 auto; text-align: center;
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(28px, 4vw, 50px);
}
.kdb-rw-hero h1 {
  font-family: var(--kdb-disp); font-style: italic; font-weight: 500;
  font-size: clamp(40px, 6.4vw, 80px); line-height: 1.05;
  margin: 10px auto 22px; max-width: 16ch; color: var(--kdb-ink);
}
.kdb-rw-lede {
  max-width: 56ch; margin: 0 auto; color: var(--kdb-ink-soft);
  font-size: 16px; line-height: 1.6;
}
.kdb-rw-kicker { margin: 24px auto 4px; font-size: 13.5px; font-weight: 500; color: var(--kdb-ink); }
.kdb-rw-hero .kdb-cta-row { justify-content: center; margin-top: 28px; }
.kdb-rw-you {
  display: inline-flex; align-items: center; gap: 13px; flex-wrap: wrap;
  justify-content: center; margin: 26px auto 8px;
}
.kdb-rw-you-txt { font-size: 13.5px; color: var(--kdb-ink-soft); }

/* ── the three steps ── */
.kdb-rw-steps {
  max-width: var(--rw-inner); margin: 0 auto; text-align: center;
  padding-top: clamp(30px, 5vw, 64px); padding-bottom: clamp(30px, 5vw, 64px);
}
.kdb-rw-h {
  font-family: var(--kdb-ui); font-size: 12px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--kdb-taupe);
  margin: 0 0 clamp(44px, 5vw, 60px);
}
.kdb-rw-steplist {
  list-style: none; margin: 0; padding: 0; text-align: left;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px);
}
.kdb-rw-steplist h3 {
  font-family: var(--kdb-disp); font-style: italic; font-weight: 500;
  font-size: 24px; margin: 0 0 8px; color: var(--kdb-ink);
}
.kdb-rw-steplist p { margin: 0; color: var(--kdb-ink-soft); font-size: 14.5px; line-height: 1.6; }

/* footnotes — always LEFT-aligned, muted; shared by How-it-works + the tier block */
.kdb-rw-foot { max-width: 68ch; margin: 30px 0 0; display: grid; gap: 8px; text-align: left; }
.kdb-rw-foot p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--kdb-taupe); }

/* ── welcome band (Cream) ── */
.kdb-rw-welcome {
  background: var(--kdb-cream); text-align: center;
  padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px);
}
.kdb-rw-welcome > * { max-width: var(--rw-inner); margin-inline: auto; }
.kdb-rw-gifts {
  display: flex; gap: clamp(16px, 3vw, 28px); justify-content: center;
  flex-wrap: wrap; margin-bottom: 22px;
}
.kdb-rw-gift {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  min-width: 150px; padding: 22px 28px; background: var(--kdb-paper);
  border: 1px solid var(--kdb-line); border-radius: 2px;
}
.kdb-rw-gift-pts {
  font-family: var(--kdb-disp); font-style: italic; font-weight: 500;
  font-size: 40px; line-height: 1; color: var(--kdb-ink);
}
.kdb-rw-gift-btn {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  border: 1.5px solid var(--kdb-line); background: transparent;
  font-family: var(--kdb-ui); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--kdb-ink);
  padding: 9px 16px; border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s;
}
/* Fill only on real hover; focus (incl. when the drawer returns focus on close)
   shows a ring, never a stuck ink fill. */
.kdb-rw-gift-btn:hover { background: var(--kdb-ink); color: var(--kdb-cream); border-color: var(--kdb-ink); }
.kdb-rw-gift-btn:focus-visible { outline: 2px solid var(--kdb-ink); outline-offset: 2px; }
.kdb-rw-gift-done {
  font-family: var(--kdb-ui); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--kdb-taupe); padding: 9px 2px;
}
.kdb-rw-gift-note { max-width: 48ch; margin: 0 auto; color: var(--kdb-ink-soft); font-size: 14px; line-height: 1.6; }

/* ── tiers (the showpiece) ── */
.kdb-rw-tiers {
  max-width: 1180px; margin: 0 auto;
  padding-top: clamp(48px, 6vw, 82px); padding-bottom: clamp(28px, 4vw, 52px);
}
.kdb-rw-tiers .kdb-sechead { justify-content: center; text-align: center; margin-bottom: 18px; }
.kdb-rw-tiers .kdb-sechead h2 { font-size: clamp(26px, 3.4vw, 40px); max-width: 22ch; }
.kdb-rw-tiers-intro {
  max-width: 60ch; margin: 0 auto 42px; text-align: center;
  color: var(--kdb-ink-soft); font-size: 15px; line-height: 1.6;
}
.kdb-rw-ladder {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 30px);
}
.kdb-rw-rung {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px; padding: 28px 14px 22px;
  border: 1px solid var(--kdb-line); border-radius: 2px; background: var(--kdb-surface);
}
.kdb-rw-rung.is-you {
  border-color: var(--kdb-t-line);
  box-shadow: 0 0 0 1px var(--kdb-t-line) inset;
  background: var(--kdb-t-wash);
}
.kdb-rw-rung-rate {
  font-family: var(--kdb-disp); font-style: italic; font-weight: 500;
  font-size: 26px; color: var(--kdb-t-deep, var(--kdb-ink)); margin-top: 2px;
}
.kdb-rw-rung-th { font-size: 12px; color: var(--kdb-taupe); }
.kdb-rw-rung-you {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--kdb-t-deep, var(--kdb-ink)); margin-top: 2px;
}


/* ── closing band (Cream) ── */
.kdb-rw-end {
  background: var(--kdb-cream); text-align: center;
  padding: clamp(56px, 7vw, 90px) 24px;
}
.kdb-rw-end h2 {
  font-family: var(--kdb-disp); font-style: italic; font-weight: 500;
  font-size: clamp(30px, 4vw, 52px); margin: 0 0 26px; color: var(--kdb-ink);
}
.kdb-rw-end .kdb-cta-row { justify-content: center; }

/* ── responsive ── */
@media (max-width: 820px) {
  .kdb-rw-steplist { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .kdb-rw-steplist li { display: flex; flex-direction: column; align-items: center; }
  .kdb-rw-ladder { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .kdb-rw-ladder { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; }
}
