/* ============================================================
   Green to Gold — marketing site
   Style: Soft UI Evolution · Pattern: Trust & Authority
   Fonts: Lexend (headings) + Source Sans 3 (body)
   ============================================================ */

:root {
  /* Brand (from the app icon) */
  --navy: #002779;
  --navy-600: #0a3a9e;
  --navy-ink: #0e1b33;     /* body headings */
  --teal: #2d9899;
  --teal-dark: #1c6f70;    /* teal that meets AA on white for text */
  --gold: #c99a2e;
  --gold-dark: #9a7016;    /* gold that meets AA on white for text */

  /* Neutrals */
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --ink: #14233f;          /* primary text */
  --muted: #54627a;        /* secondary text (>=4.5:1 on white & --bg) */
  --border: #dde4ef;

  /* Type */
  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  /* Soft UI Evolution shadows */
  --shadow-sm: 0 1px 2px rgba(14, 27, 51, .06), 0 2px 8px rgba(0, 39, 121, .05);
  --shadow-md: 0 8px 24px rgba(0, 39, 121, .08), 0 2px 6px rgba(14, 27, 51, .05);
  --shadow-lg: 0 24px 60px rgba(0, 39, 121, .14);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --container: 1120px;
  --transition: 220ms cubic-bezier(.2, .7, .3, 1);
}

/* ───────────── Base ───────────── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy-ink);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}
.container--narrow { max-width: 760px; }

/* Inline check / generic stroke icons */
.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: var(--teal-dark); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Accessibility helpers */
.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-130%);
  top: 8px; z-index: 200;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); text-decoration: none; }

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

/* ───────────── Header ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 248, 252, .85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy-ink); }
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }

.nav-menu {
  display: flex; align-items: center; gap: .4rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  display: inline-block; padding: .55rem .8rem; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-menu a:hover { background: var(--surface-2); text-decoration: none; }
.nav-cta {
  background: var(--navy); color: #fff !important;
}
.nav-cta:hover { background: var(--navy-600) !important; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--radius-sm);
  color: var(--navy-ink); cursor: pointer;
}

/* ───────────── Hero ───────────── */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark);
  margin-bottom: .8rem;
}
.eyebrow--center { text-align: center; }
.lede { font-size: 1.18rem; color: var(--muted); margin-top: 1.1rem; max-width: 36ch; }

.hero-trust {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
}
.hero-trust li {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; color: var(--ink); font-size: .98rem;
}

.hero-art { position: relative; display: grid; place-items: center; }
.hero-icon {
  width: clamp(200px, 26vw, 300px); height: auto; border-radius: 26%;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
}
.hero-glow {
  position: absolute; inset: 0; margin: auto;
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 152, 153, .35), rgba(0, 39, 121, .12) 60%, transparent 72%);
  filter: blur(36px); z-index: -1;
}

/* ───────────── Store badges ───────────── */
.store-badges { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.store-badges--center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--navy-ink); color: #fff;
  padding: .6rem 1.1rem; border-radius: 13px; min-height: 56px;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.store-badge:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); background: #0a1730; }
.store-badge svg { flex: none; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge-text small { font-size: .68rem; opacity: .85; font-weight: 400; }
.store-badge-text strong { font-size: 1.05rem; font-weight: 600; font-family: var(--font-head); }
.store-badge--invert { background: #fff; color: var(--navy-ink); }
.store-badge--invert:hover { background: #f1f4fb; }

/* ───────────── Stat strip ───────────── */
.stats {
  background: var(--navy);
  color: #fff;
}
.stats-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.1rem, 4vw, 2rem);
}
.stat { display: flex; flex-direction: column; gap: .35rem; }
.stat-num {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem);
  color: #ffd66b; font-variant-numeric: tabular-nums;
}
.stat-label { color: #cdd7ef; font-size: .98rem; line-height: 1.45; }

/* ───────────── Sections ───────────── */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--muted { background: var(--surface-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: .7rem; }

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  counter-reset: step;
}
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--teal); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); }

/* Features */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; margin-bottom: 1.1rem;
}
.feature-ico svg {
  width: 26px; height: 26px; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature-ico--navy { background: rgba(0, 39, 121, .1); }
.feature-ico--navy svg { stroke: var(--navy); }
.feature-ico--teal { background: rgba(45, 152, 153, .14); }
.feature-ico--teal svg { stroke: var(--teal-dark); }
.feature-ico--gold { background: rgba(201, 154, 46, .16); }
.feature-ico--gold svg { stroke: var(--gold-dark); }
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { color: var(--muted); }

/* Reassurance */
.reassure-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.reassure-inner h2 { margin-bottom: 1rem; }
.reassure-inner p { color: var(--muted); font-size: 1.15rem; }

/* Support / tip */
.support {
  display: flex; align-items: center; gap: 1.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.support-ico {
  display: inline-grid; place-items: center; flex: none;
  width: 60px; height: 60px; border-radius: 16px;
  background: rgba(201, 154, 46, .16);
}
.support-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.support-text h2 { font-size: 1.45rem; margin-bottom: .4rem; }
.support-text p { color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 600;
  color: var(--navy-ink); font-size: 1.06rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.4px solid var(--teal-dark); border-bottom: 2.4px solid var(--teal-dark);
  transform: rotate(45deg); transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { background: var(--surface-2); }
.faq-body { padding: 0 1.3rem 1.2rem; }
.faq-body p { color: var(--muted); }

/* Final CTA */
.cta-final {
  background: linear-gradient(135deg, var(--navy) 0%, #022a82 55%, var(--teal-dark) 140%);
  color: #fff; padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta-final-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #d6def4; font-size: 1.15rem; margin-top: .8rem; }
.cta-final .store-badges { margin-top: 2rem; }

/* ───────────── Footer ───────────── */
.site-footer { background: #081229; color: #aeb9d2; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.footer-inner { display: grid; gap: 1.3rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.footer-brand img { border-radius: 8px; }
.footer-disclaimer { max-width: 70ch; font-size: .95rem; line-height: 1.6; }
.footer-disclaimer strong { color: #fff; }
.footer-meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: center;
  padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .95rem;
}
.footer-meta a { color: #ffd66b; }
.footer-copy { color: #8190ad; }

/* ───────────── Responsive ───────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-trust, .store-badges { justify-content: center; }
  .steps { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .8rem clamp(1.1rem, 4vw, 2rem) 1.2rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .8rem 1rem; }
  .nav-cta { text-align: center; margin-top: .3rem; }
  .stats-inner { grid-template-columns: 1fr; gap: 1.1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .support { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .hero-icon { transform: none; }
}
