/* Reward My Data — partner site styles */

:root {
  --accent: #14805A;
  --accent-dark: #0f6646;
  --accent-soft: #e3f1ea;
  --gold: #F2C94C;
  --bg: #fffdf8;
  --bg-alt: #f4f1ea;
  --surface: #ffffff;
  --text: #15181a;
  --muted: #5c625f;
  --line: #e4dfd3;
  --radius: 14px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: inline-block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); max-width: 22ch; margin-bottom: 0.6rem; }
h3 { font-size: 1.1rem; }

.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { color: var(--text); }
.brand-short { display: none; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.logo-mark { flex-shrink: 0; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 42px; height: 42px; padding: 0 10px; background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle-bar { display: block; height: 2px; background: var(--text); border-radius: 2px; }

.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: 4px; padding: 12px 20px 18px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-nav.is-open { display: flex; }
.site-nav a { color: var(--text); font-weight: 500; padding: 10px 0; }
.site-nav a:hover { color: var(--accent); }
.site-nav .btn { margin-top: 8px; color: #fff; align-self: flex-start; }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 26px; padding: 0; background: transparent; border: 0; }
  .site-nav a { padding: 0; }
  .site-nav .btn { margin: 0; }
}

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .section { padding: 96px 0; } }

.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin-top: 8px; }
.note { margin-top: 28px; color: var(--muted); font-size: 0.95rem; max-width: 60ch; }
.link { font-weight: 600; display: inline-block; margin-top: 24px; border-bottom: 1.5px solid transparent; }
.link:hover { border-bottom-color: currentColor; }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-title { font-size: clamp(2.1rem, 1.4rem + 3.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; max-width: 14ch; }
.hero-sub { margin-top: 18px; font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }

.tooltip-wrap { position: relative; display: inline-block; }
.tooltip {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%) translateY(-4px);
  background: var(--text); color: #fff; font-size: 0.72rem; padding: 6px 10px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.tooltip-wrap:hover .tooltip, .tooltip-wrap:focus-within .tooltip, .tooltip.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 0.9rem; color: var(--muted); }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.check { width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); position: relative; flex-shrink: 0; }
.check::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

@media (min-width: 820px) {
  .hero { padding: 96px 0; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

/* Phone mockup */
.hero-mock { display: flex; justify-content: center; }
.phone {
  width: 100%; max-width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 18px; box-shadow: 0 24px 60px -24px rgba(21, 24, 26, 0.3), 0 2px 6px rgba(21, 24, 26, 0.05);
}
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--muted); }
.phone-pill { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; }
.phone-balance { margin-top: 18px; }
.phone-balance .label, .phone-foot .label { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.phone-balance .big { display: block; font-size: 2rem; font-weight: 600; color: var(--accent); margin-top: 2px; }
.phone-balance .big small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.receipt-list { margin-top: 18px; border-top: 1px solid var(--line); }
.receipt-list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem;
}
.receipt-list .store { font-weight: 600; }
.receipt-list .date { font-size: 0.78rem; color: var(--muted); }
.receipt-list .dr { font-size: 0.82rem; color: var(--accent); font-weight: 600; background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.receipt-list .bonus .store { font-weight: 500; color: var(--muted); font-size: 0.86rem; }
.phone-foot { margin-top: 16px; background: var(--bg-alt); border-radius: 12px; padding: 12px 14px; }
.phone-foot strong { display: block; margin-top: 2px; }

/* Tiles */
.tiles { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px;
  transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile h3 { margin: 26px 0 6px; font-size: 1.05rem; }
.tile p { color: var(--muted); font-size: 0.92rem; }
.tile.soon { background: transparent; }
.tag { position: absolute; top: 16px; right: 16px; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.tag.live { background: var(--accent-soft); color: var(--accent); }
.tag.soon { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }

/* Steps */
.steps { display: grid; gap: 20px; margin-top: 36px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.step-num { display: inline-block; color: var(--accent); font-weight: 600; font-size: 0.85rem; margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }
.scrub { margin-top: 16px; display: grid; gap: 4px; font-size: 0.74rem; background: var(--bg-alt); border-radius: 10px; padding: 12px; }
.scrub-line.removed { color: var(--muted); text-decoration: line-through; }
.scrub-line.kept { color: var(--accent); }

/* Stats */
.stats { display: grid; gap: 14px; margin: 32px 0 28px; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.stat-num { display: block; font-size: 2.2rem; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.stat-label { display: block; margin-top: 10px; color: var(--muted); font-size: 0.9rem; }

/* Data use columns */
.use-cols { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 820px) { .use-cols { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.use-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.use-sub { color: var(--muted); font-size: 0.9rem; margin: 4px 0 14px; }
.q-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.q-list li::before { content: "? "; font-family: var(--mono); color: var(--accent); font-weight: 600; }

/* Rewards */
.reward-grid { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 820px) { .reward-grid { grid-template-columns: repeat(3, 1fr); } }
.reward { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.reward-num { display: block; font-size: 1.8rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.reward p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

.draw {
  margin-top: 24px; display: grid; gap: 24px; align-items: center;
  background: var(--accent); color: #fff; border-radius: var(--radius); padding: 28px 24px;
}
@media (min-width: 820px) { .draw { grid-template-columns: 1fr auto; padding: 36px; } }
.draw .eyebrow { color: var(--gold); }
.draw h3 { font-size: 1.3rem; max-width: 30ch; }
.draw p { margin-top: 12px; opacity: 0.92; }
.draw p strong { color: var(--gold); }
.draw .link { color: #fff; }
.draw-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  width: 150px; height: 150px; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.5); margin: 0 auto;
}
.draw-badge .amount { font-size: 2.2rem; font-weight: 600; color: var(--gold); line-height: 1; margin: 4px 0; }
.draw-badge .small { font-size: 0.72rem; opacity: 0.85; }

/* Privacy */
.privacy-list { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 700px) { .privacy-list { grid-template-columns: repeat(2, 1fr); } }
.privacy-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; border-left: 4px solid var(--accent); }
.privacy-list h3 { font-size: 1.02rem; margin-bottom: 6px; }
.privacy-list p { color: var(--muted); font-size: 0.93rem; }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.02rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.3rem; transition: transform .15s;
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 65ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 36px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--text); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-nav a.mono { font-size: 0.84rem; word-break: break-all; }
.copyright { font-size: 0.78rem; color: var(--muted); }
@media (min-width: 820px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
}

/* Dark mode (optional, light touch) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181a; --bg-alt: #1c2023; --surface: #1f2427; --text: #f2efe8; --muted: #a9b0ab; --line: #2e3438;
    --accent-soft: #1d3a2e;
  }
  .site-header { background: rgba(21, 24, 26, 0.9); }
  .tooltip { background: #f2efe8; color: #15181a; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile, .tooltip { transition: none; }
}
