/* BenefitProof — system-font stylesheet. No external fonts, no framework. */

:root {
  --navy: #243b5a;
  --navy-deep: #182a42;
  --navy-ink: #16283e;
  --gold: #d9a441;
  --gold-deep: #b9862c;
  --sage: #97a987;
  --sage-deep: #798c6b;

  --bg: #faf8f4;
  --bg-alt: #f2ede3;
  --surface: #ffffff;
  --surface-border: #e7e0d2;
  --text: #1c2e46;
  --text-muted: #4c5c72;
  --text-soft: #6b7789;

  --shadow-sm: 0 1px 2px rgba(24, 42, 66, 0.06), 0 1px 1px rgba(24, 42, 66, 0.04);
  --shadow-md: 0 8px 24px rgba(24, 42, 66, 0.08), 0 2px 6px rgba(24, 42, 66, 0.05);
  --shadow-lg: 0 24px 60px rgba(24, 42, 66, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --max-w: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.eyebrow.on-dark { color: var(--gold); }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin: 0 0 16px; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.16; }
h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 8px; }

p { margin: 0 0 16px; color: var(--text-muted); }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 46ch; }

section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin: 0 auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--surface-border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav .nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav .nav-link:hover { color: var(--navy); background: rgba(36, 59, 90, 0.06); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy-ink); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: #e3b25a; box-shadow: var(--shadow-md); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: rgba(36, 59, 90, 0.35); }
.btn-outline-navy:hover { background: rgba(36, 59, 90, 0.06); border-color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

/* Mobile nav */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--navy);
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
@media (max-width: 899px) { .main-nav .nav-link, .main-nav .nav-cta { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--surface-border);
}
.mobile-menu .btn { margin-top: 18px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 40px;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(217, 164, 65, 0.16) 0%, rgba(217, 164, 65, 0) 55%),
    radial-gradient(90% 70% at 8% 0%, rgba(36, 59, 90, 0.10) 0%, rgba(36, 59, 90, 0) 60%);
  overflow: hidden;
}
@media (min-width: 900px) { .hero { padding: 104px 0 60px; } }

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; }
}

.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede { margin-bottom: 30px; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-ink);
  color: #fff;
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.store-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: #1d3350; }
.store-btn:active { transform: translateY(0); }
.store-btn svg { flex: none; }
.store-btn .store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .store-sub { font-size: 0.68rem; opacity: 0.75; letter-spacing: 0.02em; text-transform: uppercase; }
.store-btn .store-main { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.86rem;
  color: var(--text-soft);
  font-weight: 600;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 7px; }
.trust-strip svg { flex: none; color: var(--sage-deep); }

/* Phone mockup */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.phone-shell {
  position: relative;
  width: 290px;
  max-width: 78vw;
  aspect-ratio: 375 / 780;
  border-radius: 46px;
  background: linear-gradient(160deg, #223a56, #101d30);
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
  transform: rotate(1.5deg);
  animation: floaty 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .phone-shell { animation: none; } }
@keyframes floaty {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-10px); }
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 20px;
  background: #101d30;
  border-radius: 12px;
  z-index: 5;
}

.badge-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  animation: floaty2 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .badge-float { animation: none; } }
@keyframes floaty2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.badge-float.top { top: 4%; left: -8%; }
.badge-float.bottom { bottom: 8%; right: -10%; animation-delay: 1.4s; }
@media (max-width: 640px) {
  .badge-float { display: none; }
}
.badge-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.badge-dot.sage { background: var(--sage-deep); }
.badge-dot.gold { background: var(--gold-deep); }

.alt-bg { background: var(--bg-alt); }

/* Phone screen mockup content */
.app-review-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
}
.app-review-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 16px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}
.app-review-back { color: var(--text-soft); font-weight: 700; }
.app-review-title { font-size: 0.86rem; }
.app-review-body { padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; overflow: hidden; }

.app-review-merchant {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 12px;
}
.app-review-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(36, 59, 90, 0.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex: none;
}
.app-review-merchant-name { font-size: 0.86rem; font-weight: 800; color: var(--text); }
.app-review-merchant-sub { font-size: 0.72rem; color: var(--text-soft); font-weight: 600; }

.app-review-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 11px 12px;
  box-shadow: 0 1px 3px rgba(24, 42, 66, 0.05);
}
.app-review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.app-review-card-text { font-size: 0.72rem; color: var(--text-muted); margin: 0; line-height: 1.4; }

.app-status-pill {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}
.app-status-pill.sage { background: rgba(151, 169, 135, 0.22); color: var(--sage-deep); }
.app-status-pill.gold { background: rgba(217, 164, 65, 0.22); color: var(--gold-deep); }
.app-status-pill.navy { background: rgba(36, 59, 90, 0.12); color: var(--navy); }

/* ---------- Value section ---------- */

.value-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .value-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.value-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.value-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--navy);
}
.value-icon.gold { background: rgba(217, 164, 65, 0.16); color: var(--gold-deep); }
.value-icon.navy { background: rgba(36, 59, 90, 0.10); color: var(--navy); }
.value-icon.sage { background: rgba(151, 169, 135, 0.20); color: var(--sage-deep); }
.value-card p { margin-bottom: 0; font-size: 0.97rem; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 780px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
}
.step-num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.94rem; margin-bottom: 0; }

/* ---------- Feature snapshot ---------- */

.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
}
.feature-item svg { flex: none; margin-top: 2px; color: var(--sage-deep); }
.feature-item strong { display: block; color: var(--text); font-size: 0.97rem; margin-bottom: 3px; }
.feature-item span.desc { font-size: 0.88rem; color: var(--text-soft); }

/* ---------- Privacy / trust ---------- */

.trust-section {
  background: linear-gradient(175deg, var(--navy-ink), #1b3050 65%, #223a56);
  color: #eef1f5;
  position: relative;
  overflow: hidden;
}
.trust-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 85% 10%, rgba(217, 164, 65, 0.14), transparent 60%);
  pointer-events: none;
}
.trust-section .section-head { color: #fff; }
.trust-section .section-head h2 { color: #fff; }
.trust-section .section-head p { color: rgba(238, 241, 245, 0.78); }

.trust-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}
@media (min-width: 780px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

.trust-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.trust-card h3 { color: #fff; }
.trust-card p { color: rgba(238, 241, 245, 0.75); margin-bottom: 0; font-size: 0.95rem; }
.trust-card .value-icon { margin-bottom: 16px; background: rgba(217, 164, 65, 0.18); color: var(--gold); }

.disclaimer-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  color: rgba(238, 241, 245, 0.72);
  text-align: center;
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
  background: var(--bg-alt);
}
.final-cta h2 { max-width: 620px; margin-left: auto; margin-right: auto; }
.final-cta .store-badges { justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-ink);
  color: rgba(238, 241, 245, 0.7);
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-tagline { font-size: 0.92rem; max-width: 34ch; }

.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 14px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; color: rgba(238, 241, 245, 0.7); font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* ---------- Legal / simple pages ---------- */

.legal-page { padding: 120px 0 100px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .updated { color: var(--text-soft); font-size: 0.88rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.25rem; margin-top: 36px; }
.legal-page ul { color: var(--text-muted); padding-left: 1.2em; }
.legal-page li { margin-bottom: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-decoration: none; margin-bottom: 28px; font-size: 0.92rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Dark mode ---------- */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #10192a;
    --bg-alt: #0c1420;
    --surface: #172439;
    --surface-border: #263a56;
    --text: #eef1f5;
    --text-muted: #b7c2d4;
    --text-soft: #8b98ad;
    --gold-deep: #e3b45c;
    --sage-deep: #aebfa0;
  }
  :root:not([data-theme="light"]) .site-header { background: rgba(16, 25, 42, 0.82); }
  :root:not([data-theme="light"]) .hero {
    background:
      radial-gradient(120% 90% at 82% -10%, rgba(217, 164, 65, 0.10) 0%, rgba(217, 164, 65, 0) 55%),
      radial-gradient(90% 70% at 8% 0%, rgba(151, 169, 135, 0.08) 0%, rgba(151, 169, 135, 0) 60%);
  }
  :root:not([data-theme="light"]) .store-btn { background: #0c1420; }
  :root:not([data-theme="light"]) .final-cta { background: var(--bg-alt); }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10192a;
  --bg-alt: #0c1420;
  --surface: #172439;
  --surface-border: #263a56;
  --text: #eef1f5;
  --text-muted: #b7c2d4;
  --text-soft: #8b98ad;
  --gold-deep: #e3b45c;
  --sage-deep: #aebfa0;
}
:root[data-theme="dark"] .site-header { background: rgba(16, 25, 42, 0.82); }
:root[data-theme="dark"] .hero {
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(217, 164, 65, 0.10) 0%, rgba(217, 164, 65, 0) 55%),
    radial-gradient(90% 70% at 8% 0%, rgba(151, 169, 135, 0.08) 0%, rgba(151, 169, 135, 0) 60%);
}
:root[data-theme="dark"] .store-btn { background: #0c1420; }
:root[data-theme="dark"] .final-cta { background: var(--bg-alt); }

/* The phone mockup always renders as a light app screenshot, like a real
   device photo — it should not invert with the page theme. */
.phone-screen,
.app-review-screen {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-border: #e7e0d2;
  --text: #1c2e46;
  --text-muted: #4c5c72;
  --text-soft: #6b7789;
  --sage-deep: #798c6b;
  --gold-deep: #b9862c;
}
