/* styles.css — Moyo Health public website
   Real brand colours (Sep 2026), extracted directly from the actual
   Moyo Health logo file: #044D33 (deep green) and #2C9568 (emerald
   accent) — replacing the previous navy/teal placeholder palette,
   which didn't match the real logo at all. */

:root {
  --navy: #044D33;
  --green: #2C9568;
  --green-light: #E3F1EA;
  --cream: #F6FBF8;
  --border: #DCEBE2;
  --text: #1A2B22;
  --text-muted: #5C7268;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #FFFFFF;
  line-height: 1.6;
}

a { color: var(--green); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--navy); text-decoration: none; }
.nav .brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.nav .brand .logo-icon { width: 30px; height: 30px; object-fit: contain; }
.nav .links { display: flex; gap: 28px; align-items: center; }
.nav .links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav .links a.cta {
  background: var(--green); color: white; padding: 9px 18px; border-radius: 20px; font-weight: 600;
}

.hero {
  background: var(--navy);
  color: white;
  padding: 90px 6vw 70px;
  text-align: center;
}
.hero h1 { font-size: 42px; margin: 0 0 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero p { font-size: 18px; color: #C7D3E3; max-width: 560px; margin: 0 auto 32px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 24px; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: none;
}
.btn.primary { background: var(--green); color: white; }
.btn.secondary { background: rgba(255,255,255,0.12); color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn.outline { background: white; color: var(--navy); border: 1.5px solid var(--navy); }

.section { padding: 70px 6vw; max-width: 1100px; margin: 0 auto; }
.section h2 { font-size: 30px; color: var(--navy); text-align: center; margin-bottom: 12px; }
.section .lead { text-align: center; color: var(--text-muted); max-width: 560px; margin: 0 auto 44px; font-size: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.feature-card {
  background: var(--cream); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border);
}
.feature-card .icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; color: var(--navy); margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

.pricing-card {
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center;
  position: relative; background: white;
}
.pricing-card.featured { border-color: var(--green); box-shadow: 0 8px 30px rgba(29,158,117,0.15); }
.pricing-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green); color: white; font-size: 12px; padding: 4px 14px; border-radius: 20px; font-weight: 600; }
.pricing-card h3 { font-size: 20px; color: var(--navy); margin: 8px 0 4px; }
.pricing-card .price { font-size: 34px; font-weight: 700; color: var(--navy); margin: 12px 0 4px; }
.pricing-card .price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { text-align: left; padding: 0; list-style: none; margin: 20px 0; font-size: 14px; color: var(--text); }
.pricing-card ul li { padding: 6px 0; border-bottom: 1px solid #F0EEE6; }
.pricing-card ul li:before { content: "✓ "; color: var(--green); font-weight: 700; }

.currency-picker { text-align: center; margin-bottom: 20px; }
.currency-picker select { padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border); font-size: 14px; }

.period-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}
.period-toggle button {
  padding: 10px 24px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.period-toggle button:first-child { border-radius: 24px 0 0 24px; border-right: none; }
.period-toggle button:last-child { border-radius: 0 24px 24px 0; }
.period-toggle button.active { background: var(--green); border-color: var(--green); color: white; }
.period-toggle .save-badge { font-size: 11px; opacity: 0.85; margin-left: 6px; }

.pricing-cta-annual-link {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
  text-decoration: underline;
}

/* ── AUTH MODAL ── */
.moyo-modal-overlay {
  position: fixed; inset: 0; background: rgba(4, 77, 51, 0.55);
  z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.moyo-modal {
  background: white; border-radius: var(--radius); padding: 36px 32px;
  max-width: 400px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.moyo-modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.4rem; color: var(--text-muted); cursor: pointer; line-height: 1; }
.moyo-modal-title { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.moyo-modal-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }
.moyo-modal-error { background: #FCEAEA; color: #A33B3B; font-size: 0.82rem; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.moyo-modal-input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; margin-bottom: 12px; }
.moyo-modal-submit { width: 100%; border: none; cursor: pointer; margin-top: 4px; text-align: center; }
.moyo-modal-switch { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 16px; }
.moyo-modal-switch a { color: var(--green); font-weight: 600; }

.form-card {
  background: var(--cream); border-radius: var(--radius); padding: 32px; max-width: 480px; margin: 0 auto;
}
.form-card .form-group { margin-bottom: 14px; text-align: left; }
.form-card label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.form-card input, .form-card select {
  width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px;
}

footer {
  background: var(--navy); color: #A9B7CB; padding: 40px 6vw 24px; margin-top: 60px;
}
footer .footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
footer .brand-col .brand { color: white; font-weight: 700; font-size: 17px; margin-bottom: 6px; display: block; }
footer a { color: #A9B7CB; text-decoration: none; font-size: 14px; display: block; margin-bottom: 6px; }
footer .copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 13px; text-align: center; }

@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .nav .links { display: none; }
}
