:root {
  --paper: #f6f5f2;
  --card: #ffffff;
  --ink: #17161a;
  --ink-body: #35332e;
  --ink-muted: #6f6c63;
  --rule: #e3e1db;
  --rule-strong: #d9d6cf;
  --accent: #1c5f3f;
  --font: system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

html {
  /* Committed to one light, papery world — opt out of forced dark so browser
     surfaces (scrollbars, caret, controls) stay in the palette. */
  color-scheme: light;
  scrollbar-color: var(--rule-strong) var(--paper);
}

body {
  font-family: var(--font);
  color: var(--ink);
}

::selection {
  background: #cfe0d5;
  color: var(--ink);
}

.page {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  justify-content: center;
  padding: 0 20px 56px;
}

.col {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
}

/* ── Masthead ─────────────────────────────────────────────── */

.brand {
  padding: 22px 0 0;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}

.kicker {
  margin: 20px 0 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-muted);
}

h1 {
  margin: 8px 0 0;
  font-size: 33px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: pretty;
}

.lead {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-body);
  text-wrap: pretty;
}

.meta {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.section-head {
  margin: 22px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}

/* Every offer is US-only. Stated once on the list rather than repeated per
   card, in the same bordered-tag motif as the cash card's $ mark. */
.geo-tag {
  flex: none;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-muted);
}

/* ── Offer cards ──────────────────────────────────────────── */

.offers {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.card-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
}

.card-label--reward { color: var(--ink-muted); }
.card-label--earn { color: var(--accent); }

.card-head {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.logo {
  display: block;
  flex: none;
  width: auto;
}

.logo--walmart { height: 16px; }
.logo--amazon { height: 22px; }
.logo--paypal { height: 17px; }

.mark {
  flex: none;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 2px 9px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.card-desc {
  margin: 5px 0 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-body);
}

.card-note {
  margin: 3px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.cta {
  margin-top: 12px;
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 12px;
  border-radius: 3px;
  min-height: 50px;
  transition: opacity 140ms ease;
}

.cta:hover { opacity: 0.88; }
.cta:active { opacity: 0.78; }

.card-disclosure {
  margin: 9px 0 0;
  max-width: 66ch;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ── How it works ─────────────────────────────────────────── */

.how {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.how-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.how-steps {
  margin: 9px 0 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-body);
}

.how-note {
  margin: 11px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-body);
  text-wrap: pretty;
}

/* ── Footer ───────────────────────────────────────────────── */

.foot {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.foot p {
  margin: 0;
  max-width: 66ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.foot-links {
  display: flex;
  gap: 14px;
  margin-top: -3px;
  font-size: 12.5px;
}

/* Padded to a 25px hit area without moving the baseline (the -3px above
   absorbs the extra 5px of leading padding). */
.foot-links a {
  display: inline-block;
  padding: 5px 0;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Prose pages (privacy, terms) ─────────────────────────── */

.doc-title { font-size: 28px; }

/* Section heads borrow the home page's small-caps label treatment, so the
   legal pages read as the same document family. */
.prose h2 {
  margin: 26px 0 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}

.prose p, .prose li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-body);
  text-wrap: pretty;
}

.prose p { margin: 9px 0 0; }

.prose ul {
  margin: 9px 0 0;
  padding-left: 20px;
}

.prose a {
  color: var(--ink);
  text-underline-offset: 2px;
}

.back {
  margin: 22px 0 0;
  font-size: 12.5px;
}

.back a {
  display: inline-block;
  padding: 5px 0;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Focus + motion ───────────────────────────────────────── */

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}

@media (max-width: 400px) {
  h1 { font-size: 29px; }
  .card-title { font-size: 20px; }
}
