/* ============================================================
   RESET LAB — shared design tokens & components
   ============================================================ */

:root {
  --bg: #F6F5F1;
  --bg-panel: #FFFFFF;
  --bg-panel-alt: #EFEEE7;
  --ink: #16241D;
  --ink-muted: #55645C;
  --ink-faint: #8A9490;
  --green-deep: #0F3D2E;
  --green-mid: #2E8B57;
  --green-pale: #E4EFE8;
  --gold: #A9791F;
  --gold-soft: #F3E9CE;
  --line: #DEDCD3;
  --white: #FFFFFF;
  --radius-s: 4px;
  --radius-m: 10px;
  --max-w: 1120px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

@media (max-width: 640px) {
  .wrap { padding: 0 var(--space-2); }
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: inherit;
  font-weight: 800;
  color: var(--green-deep);
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.3; }

p { margin: 0; }

.lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 46ch;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-mid);
  margin-bottom: var(--space-1);
}

.muted { color: var(--ink-muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  min-height: 48px;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--green-deep);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-mid); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #8f6519; }

.btn-outline {
  background: transparent;
  border-color: var(--green-deep);
  color: var(--green-deep);
}
.btn-outline:hover { background: var(--green-pale); }

.btn-block { width: 100%; }

.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--green-deep);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--green-mid); }

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

.nav-toggle { display: none; }
@media (max-width: 719px) {
  .nav-links-desktop { display: none; }
}

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

.hero {
  padding: var(--space-6) 0 var(--space-5);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero { padding: var(--space-5) 0 var(--space-4); }
}

.hero-copy .lede { margin-top: var(--space-2); }
.hero-actions { margin-top: var(--space-4); }
.trust-line {
  margin-top: var(--space-3);
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* ---- 30-day tracker visual (subject-matter hero device) ---- */

.tracker-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-3);
}
.tracker-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
}
.tracker-card-head strong { font-size: 0.95rem; color: var(--green-deep); }
.tracker-card-head span { font-size: 0.8rem; color: var(--ink-faint); }

.tracker-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.tracker-day {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--bg-panel-alt);
}
.tracker-day.done { background: var(--green-mid); }
.tracker-day.today {
  background: var(--gold);
  position: relative;
}
.tracker-note {
  margin-top: var(--space-2);
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ---------- Sections ---------- */

section { padding: var(--space-5) 0; }
.section-alt { background: var(--bg-panel); }
.section-head { max-width: 640px; margin-bottom: var(--space-4); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 780px) { .grid-3 { grid-template-columns: 1fr; } }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 780px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-3);
}

.benefit-card h3 { margin-bottom: 8px; }
.benefit-card p { color: var(--ink-muted); font-size: 0.95rem; }

/* ---------- Product feature card (home) ---------- */

.product-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-4);
  align-items: center;
  background: var(--green-deep);
  color: var(--white);
  border-radius: var(--radius-m);
  padding: var(--space-4);
}
@media (max-width: 780px) { .product-feature { grid-template-columns: 1fr; } }
.product-feature h2, .product-feature h3 { color: var(--white); }
.product-feature .lede { color: #CFE3D6; }
.pf-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-soft);
  margin: var(--space-2) 0;
}
.pf-visual {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-m);
  padding: var(--space-3);
}

/* ---------- Newsletter / lead capture ---------- */

.lead-box {
  background: var(--gold-soft);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4);
  align-items: center;
}
@media (max-width: 780px) { .lead-box { grid-template-columns: 1fr; } }

.lead-form { display: flex; flex-direction: column; gap: var(--space-2); }
.lead-form input {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: 1rem;
  font-family: inherit;
  min-height: 48px;
}
.lead-form input:focus-visible {
  outline: 3px solid var(--green-mid);
  outline-offset: 1px;
}
.form-note { font-size: 0.8rem; color: var(--ink-faint); }
.form-status { font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form-status.success { color: var(--green-mid); }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  padding: var(--space-2) 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-q:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 2px; }
.faq-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-deep);
}
.faq-a {
  display: none;
  color: var(--ink-muted);
  padding-bottom: var(--space-2);
  max-width: 62ch;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-mark { background: var(--green-deep); color: var(--white); }

/* ---------- Pricing (product page) ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.price-card.featured {
  border: 2px solid var(--green-deep);
  position: relative;
}
.price-tag {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-deep);
}
.price-sub { font-size: 0.85rem; color: var(--ink-faint); }
.price-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.price-list li {
  font-size: 0.92rem;
  color: var(--ink-muted);
  padding-left: 22px;
  position: relative;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--green-mid);
}
.currency-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: var(--space-3);
}
.currency-toggle button {
  border: none;
  background: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-muted);
}
.currency-toggle button.active {
  background: var(--green-deep);
  color: var(--white);
}

/* Currency-specific price elements: hidden by default, shown by JS
   based on which currency is active in #priceGrid[data-currency] */
.cur { display: none; }
.price-grid[data-currency="ngn"] .cur-ngn,
.hero-copy[data-currency="ngn"] .cur-ngn { display: inline-flex; }
.price-grid[data-currency="usd"] .cur-usd,
.hero-copy[data-currency="usd"] .cur-usd { display: inline-flex; }
.price-tag .cur { display: none; }
.price-grid[data-currency="ngn"] .price-tag .cur-ngn { display: block; }
.price-grid[data-currency="usd"] .price-tag .cur-usd { display: block; }
.btn.cur { display: none; }
.price-grid[data-currency="ngn"] .btn.cur-ngn { display: inline-flex; }
.price-grid[data-currency="usd"] .btn.cur-usd { display: inline-flex; }

/* ---------- Steps (how it works) ---------- */

.steps { display: flex; flex-direction: column; gap: var(--space-2); }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-2);
  align-items: start;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-deep);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--ink-muted); font-size: 0.95rem; }

/* ---------- For / Not for ---------- */

.fit-card { border-radius: var(--radius-m); padding: var(--space-3); }
.fit-yes { background: var(--green-pale); }
.fit-no { background: var(--bg-panel-alt); }
.fit-card ul { margin: var(--space-2) 0 0; padding-left: 20px; color: var(--ink-muted); }
.fit-card li { margin-bottom: 6px; }

/* ---------- Guarantee ---------- */

.guarantee {
  background: var(--green-deep);
  color: var(--white);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  text-align: center;
}
.guarantee h2 { color: var(--white); }
.guarantee p { color: #CFE3D6; margin-top: var(--space-2); max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- Sticky mobile buy bar ---------- */

.sticky-buy {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  padding: 12px var(--space-2);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
@media (max-width: 720px) { .sticky-buy.show { display: flex; } }
.sticky-buy .price-tag { font-size: 1.1rem; margin: 0; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-4) 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.footer-links { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--green-mid); }

/* ---------- WhatsApp button ---------- */

.whatsapp-btn {
  position: fixed;
  bottom: 88px;
  right: 20px;
  background: #25D366;
  color: var(--white);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  z-index: 45;
}
@media (min-width: 721px) { .whatsapp-btn { bottom: 24px; } }

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

.legal-content {
  max-width: 72ch;
  margin: 0 auto;
}
.legal-content h2 { margin-top: var(--space-4); margin-bottom: var(--space-1); }
.legal-content p, .legal-content li { color: var(--ink-muted); }
.legal-content ul { padding-left: 20px; }
.legal-updated { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: var(--space-4); }

/* ---------- Utility spacing ---------- */

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }

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

/* ---------- Reduced motion ---------- */

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