/* ============================================================
   REDEEM — Polished Storefront
   Light. Modern. Indigo accent. Tier cards as the product.
   ============================================================ */

:root {
  --bg:           #f7f7f4;
  --bg-2:         #ffffff;
  --bg-soft:      #efefe9;
  --ink:          #0a0a0f;
  --ink-2:        #2b2b34;
  --muted:        #56565e;
  --muted-2:      #9696a0;
  --hair:         rgba(10, 10, 15, 0.07);
  --hair-2:       rgba(10, 10, 15, 0.12);
  --hair-strong:  rgba(10, 10, 15, 0.18);

  --accent:        #5145fa;
  --accent-2:      #7269ff;
  --accent-press:  #4036e0;
  --accent-tint:   rgba(81, 69, 250, 0.06);
  --accent-tint-2: rgba(81, 69, 250, 0.12);

  --success:        #16a34a;
  --success-tint:   rgba(22, 163, 74, 0.10);
  --danger:         #dc2626;
  --danger-tint:    rgba(220, 38, 38, 0.06);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(10,10,15,0.04), 0 1px 1px rgba(10,10,15,0.03);
  --shadow-md: 0 4px 12px rgba(10,10,15,0.05), 0 2px 4px rgba(10,10,15,0.04);
  --shadow-lg: 0 20px 60px rgba(10,10,15,0.08), 0 10px 24px rgba(10,10,15,0.05);
  --shadow-popular: 0 16px 50px rgba(81,69,250,0.18), 0 6px 18px rgba(81,69,250,0.12);

  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --nav-h: 64px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  min-height: 100vh;
}

a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0;
  height: var(--nav-h);
  background: rgba(247, 247, 244, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hair);
  z-index: 50;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex; align-items: center;
  gap: 16px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.nav-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(81,69,250,0.25);
}
.nav-name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.nav-links {
  margin-left: auto;
  display: flex; align-items: center; gap: 24px;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--ink); }

/* ============================================================
   PAGE — generic
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

h1, h2, h3 { margin: 0; }
.h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lede {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 640px;
  letter-spacing: -0.005em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 84px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle at center, var(--accent-tint-2) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 20px; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 36px;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--hair);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.trust-pill svg {
  width: 14px; height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding-top: 40px; }
.pricing-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.pricing-head .h2 { max-width: 540px; }
.pricing-head .lede { font-size: 17px; max-width: 420px; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tier-card {
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 28px 24px 24px;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.tier-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--hair-2);
}
.tier-card.popular {
  border: 1.5px solid var(--accent);
  box-shadow: var(--shadow-popular);
}
.tier-card.popular:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(81,69,250,0.22), 0 10px 24px rgba(81,69,250,0.16);
}
.tier-card .badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.tier-face {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.tier-face-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.tier-divider {
  height: 1px;
  background: var(--hair);
  margin: 24px 0;
}
.tier-price-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 4px;
}
.tier-price {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.tier-savings {
  display: inline-block;
  margin-top: 12px;
  background: var(--success-tint);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.tier-card .tier-cta {
  margin-top: 24px;
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.tier-card .tier-cta:hover { background: var(--accent); }
.tier-card .tier-cta:active { transform: scale(0.985); }
.tier-card.popular .tier-cta { background: var(--accent); }
.tier-card.popular .tier-cta:hover { background: var(--accent-press); }
.tier-card[data-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.tier-card[data-selected="true"] .tier-cta {
  background: var(--accent);
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout {
  background: var(--bg-soft);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.checkout-card {
  background: var(--bg-2);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
}

.checkout-summary {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px;
  background: var(--accent-tint);
  border-radius: var(--r-md);
  margin-bottom: 32px;
}
.checkout-summary.empty {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px dashed var(--hair-strong);
}
.checkout-summary-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 14px;
  flex-shrink: 0;
}
.checkout-summary.empty .checkout-summary-icon {
  background: var(--bg-2);
  color: var(--muted-2);
  border: 1px solid var(--hair);
}
.checkout-summary-text {
  display: flex; flex-direction: column; gap: 2px;
}
.checkout-summary-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.checkout-summary.empty .checkout-summary-title { color: var(--muted); }
.checkout-summary-sub {
  font-size: 13px;
  color: var(--muted);
}
.checkout-summary-edit {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--hair-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.checkout-summary-edit:hover { background: var(--bg-2); }
.checkout-summary.empty .checkout-summary-edit { display: none; }

.form-group { display: flex; flex-direction: column; gap: 22px; margin-bottom: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.field input {
  background: var(--bg-2);
  border: 1.5px solid var(--hair);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint-2);
}
.field .hint {
  font-size: 12.5px;
  color: var(--muted);
}

.cta-row {
  margin-top: 8px;
  display: flex; flex-direction: column; gap: 14px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 15px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent-press); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { background: var(--muted-2); cursor: not-allowed; opacity: 0.7; }
.btn-primary svg { width: 16px; height: 16px; }

.legal {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.form-error {
  background: var(--danger-tint);
  border: 1px solid rgba(220,38,38,0.2);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { background: var(--bg); }
.how-head { text-align: center; margin-bottom: 56px; }
.how-head .h2 { max-width: 720px; margin: 0 auto 16px; }
.how-head .lede { margin: 0 auto; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-step {
  background: var(--bg-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
.how-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
}
.how-step h3 { margin-bottom: 8px; font-size: 18px; }
.how-step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg); padding-top: 48px; }
.faq-head { text-align: center; margin-bottom: 40px; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--hair);
}
.faq-item:last-child { border-bottom: 1px solid var(--hair); }
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-q::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--muted-2);
  transition: transform 0.25s;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  color: var(--muted);
  font-size: 15px;
  padding: 0 0 22px;
  max-width: 640px;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--hair);
  padding: 36px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }

/* ============================================================
   POST-PAY OVERLAY (progress / complete / failed)
   When body[data-scene] != "store", main content hides and this shows.
   ============================================================ */
body[data-scene="progress"] .store-main,
body[data-scene="complete"] .store-main,
body[data-scene="failed"]   .store-main { display: none; }

body[data-scene="store"] .postpay { display: none; }

.postpay {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: flex-start; justify-content: center;
  padding: 72px 24px 96px;
}
.postpay-card {
  background: var(--bg-2);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--hair);
  max-width: 600px;
  width: 100%;
  animation: postpay-in 0.5s cubic-bezier(0.16, 0.84, 0.18, 1) both;
}
@keyframes postpay-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.postpay-status-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.postpay-status-icon.progress {
  background: var(--accent-tint);
  color: var(--accent);
}
.postpay-status-icon.success {
  background: var(--success-tint);
  color: var(--success);
}
.postpay-status-icon.fail {
  background: var(--danger-tint);
  color: var(--danger);
}
.postpay-status-icon svg { width: 24px; height: 24px; }

/* Spinner for in-progress icon */
.spinner {
  width: 24px; height: 24px;
  border: 2.5px solid var(--accent-tint-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.postpay-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.postpay-sub {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 28px;
  line-height: 1.55;
}

.postpay-rows {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--hair);
  margin-bottom: 24px;
}
.postpay-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  gap: 16px;
}
.postpay-row .k {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.postpay-row .v {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
  word-break: break-all;
}
.postpay-row .v.success { color: var(--success); }
.postpay-row .v code {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 13px;
  background: var(--bg-soft);
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 500;
}

.postpay-meter {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 16px;
}
.postpay-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.postpay-meter-label {
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.postpay-meter-label .delivered { color: var(--ink); font-weight: 600; }

.postpay-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.btn-secondary {
  background: var(--bg-2);
  border: 1px solid var(--hair-2);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--hair-strong);
}
.btn-secondary.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-secondary.primary:hover {
  background: var(--accent-press);
  border-color: var(--accent-press);
}

/* ============================================================
   OUT OF STOCK banner
   ============================================================ */
.oos-banner {
  background: linear-gradient(90deg, rgba(220,38,38,0.06), rgba(220,38,38,0.02));
  border-bottom: 1px solid rgba(220,38,38,0.18);
}
.oos-banner-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 24px;
  font-size: 13.5px;
  color: var(--danger);
  flex-wrap: wrap;
}
.oos-banner-inner strong { font-weight: 600; }
.oos-banner-inner span:last-child { color: var(--ink-2); font-weight: 500; }
.oos-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(220,38,38,0.15);
  animation: oos-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes oos-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(220,38,38,0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(220,38,38,0.05); }
}

/* When OOS, dim and disable the buy buttons + form */
body[data-oos="true"] .tier-card { opacity: 0.55; pointer-events: none; }
body[data-oos="true"] .tier-card.popular { box-shadow: var(--shadow-md); }
body[data-oos="true"] .checkout-card { opacity: 0.55; pointer-events: none; }

/* ============================================================
   CELEBRATION banner (shown on complete scene when bonus ≥ 25%)
   ============================================================ */
.celebration {
  position: relative;
  margin: -12px -16px 24px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(81,69,250,0.10) 0%, rgba(22,163,74,0.10) 100%);
  border: 1px solid rgba(81,69,250,0.25);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.celebration::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.6) 0%, transparent 40%);
  pointer-events: none;
}
.celebration-row {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; gap: 16px;
}
.celebration-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--success));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(81,69,250,0.30);
}
.celebration-text { flex: 1; }
.celebration-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 4px;
}
.celebration-bonus-amount {
  color: var(--success);
  font-weight: 700;
}
.celebration-body {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}
.celebration-screenshot-hint {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
}

/* Tiny confetti — animated dots, no JS needed */
.confetti {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.confetti span {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  opacity: 0;
  animation: confetti-rain 2.6s ease-out forwards;
}
.confetti span:nth-child(1)  { left: 8%;  background: var(--accent);  animation-delay: 0.0s; }
.confetti span:nth-child(2)  { left: 22%; background: var(--success); animation-delay: 0.2s; }
.confetti span:nth-child(3)  { left: 38%; background: var(--accent-2);animation-delay: 0.4s; }
.confetti span:nth-child(4)  { left: 55%; background: var(--success); animation-delay: 0.1s; }
.confetti span:nth-child(5)  { left: 70%; background: var(--accent);  animation-delay: 0.3s; }
.confetti span:nth-child(6)  { left: 84%; background: var(--accent-2);animation-delay: 0.5s; }
.confetti span:nth-child(7)  { left: 12%; background: var(--success); animation-delay: 0.6s; }
.confetti span:nth-child(8)  { left: 48%; background: var(--accent);  animation-delay: 0.7s; }
.confetti span:nth-child(9)  { left: 78%; background: var(--accent-2);animation-delay: 0.8s; }
@keyframes confetti-rain {
  0%   { transform: translateY(-20px) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(120px) rotate(360deg); opacity: 0; }
}

/* ============================================================
   REFUND ADDRESS form (within postpay card)
   ============================================================ */
.refund-form { margin-top: 8px; }
.refund-form .field input {
  font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 14px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 24px; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
  .nav-links { gap: 16px; }
  section { padding: 48px 0; }
  .tier-grid { grid-template-columns: 1fr; }
  .tier-face { font-size: 42px; }
  .checkout-card { padding: 24px 20px; border-radius: var(--r-lg); }
  .postpay-card { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}
