/* ── Brand font ──────────────────────────────────────────────── */
@font-face {
  font-family: "CriteriaCF";
  src: url("/fonts/criteriacfreg.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "CriteriaCF";
  src: url("/fonts/criteriacfmid.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

/* ── Design tokens — light theme, matches the app's own light-mode
   screens (Profile / Rewards / Notifications) ──────────────────── */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F0F4F8;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text-primary: #1A2B3C;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --teal: #00C9B1;
  --teal-dark: #00A896;
  --teal-light: #E8F5F3;
  --gold: #F5B400;
  --gold-light: #FFF6DD;
  --shadow: 0 4px 24px rgba(26, 43, 60, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 43, 60, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: "CriteriaCF", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { color: var(--text-primary); margin: 0; }

/* ── Reveal-on-scroll ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 34px; width: auto; transition: transform 0.3s ease; }
.nav-brand:hover img { transform: rotate(-6deg) scale(1.06); }
.nav-brand span { font-size: 17px; font-weight: 500; color: var(--text-primary); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--text-secondary); font-size: 15px; text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--teal-dark); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: var(--teal);
  color: #06231F;
  box-shadow: 0 8px 24px rgba(0, 201, 177, 0.32);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(0, 201, 177, 0.42); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

.btn-google-play { padding: 10px 20px 10px 18px; }
.btn-google-play svg { flex-shrink: 0; }
.btn-google-play .gp-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-google-play .gp-text small { font-size: 10px; opacity: 0.85; }
.btn-google-play .gp-text strong { font-size: 16px; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 72px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 .accent { color: var(--teal-dark); }
.hero p.lead {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img {
  width: 100%;
  max-width: 320px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--teal-light) 0%, transparent 70%);
  z-index: -1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ── Section shells ──────────────────────────────────────────── */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-eyebrow {
  color: var(--teal-dark);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}
.section-head h2 { font-size: 32px; margin-bottom: 12px; letter-spacing: -0.3px; }
.section-head p { font-size: 16px; color: var(--text-secondary); }

/* ── Feature grid ────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.feature-card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; margin: 0; color: var(--text-secondary); }

/* ── How it works ────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step { text-align: center; position: relative; }
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 500;
  margin: 0 auto 18px;
  box-shadow: 0 8px 20px rgba(0, 201, 177, 0.3);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; }

/* ── Stat strip ──────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 30px;
  color: var(--text-primary);
  font-weight: 500;
}
.stat span { font-size: 13px; color: var(--text-muted); }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}
.faq-q .chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--teal-dark);
}
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p { padding: 0 4px 22px; margin: 0; font-size: 15px; }

/* ── Final CTA ───────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #06231F 0%, #0A3A33 100%);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  color: white;
}
.cta-banner h2 { color: white; font-size: 30px; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 32px; font-size: 16px; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.footer-links a { color: var(--text-secondary); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ── Legal pages ─────────────────────────────────────────────── */
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-wrap h1 { font-size: 26px; margin-bottom: 4px; }
.legal-wrap .updated { color: var(--text-muted); font-size: 13px; margin-bottom: 32px; }
.legal-wrap h2 { font-size: 18px; margin-top: 32px; margin-bottom: 8px; }
.legal-wrap p { margin: 0 0 12px; }
.legal-wrap ul { padding-left: 20px; margin: 0 0 12px; }
.legal-wrap li { margin-bottom: 8px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-size: 14px; }

/* ── Support form ────────────────────────────────────────────── */
.support-form { margin-top: 28px; max-width: 520px; }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-primary);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-row.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.support-status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.support-status.success { color: var(--teal-dark); }
.support-status.error { color: #C0392B; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-trust { justify-content: center; }
  .hero h1 { font-size: 36px; }
  .hero-visual { order: -1; margin-bottom: 24px; }
  .features-grid, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  footer .wrap { flex-direction: column; text-align: center; }
}
