/* ──────────────────── Family Nudge Marketing Site ──────────────────── */
:root {
  --teal: #01696F;
  --teal-dark: #0C4E54;
  --teal-light: #E8F5F5;
  --bg: #FAF9F6;
  --bg-card: #FFFFFF;
  --text: #28251D;
  --text-muted: #7A7974;
  --border: #D4D1CA;
  --accent: #D97706;
  --radius: 12px;
  --max-w: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.7; color: var(--text-muted); }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

/* ── Nav ── */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(250, 249, 246, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.125rem; }
.nav-brand svg { flex-shrink: 0; }
.nav-controls { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9375rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--teal); color: #fff; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; transition: background 0.2s, transform 0.15s; }
.nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger svg { width: 24px; height: 24px; stroke: var(--text); }

/* ── Language Toggle in Nav ── */
.nav-lang-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 100px; overflow: hidden; background: var(--bg-card); }
.nav-lang-toggle span { padding: 6px 12px; font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.nav-lang-toggle .active { background: var(--teal); color: #fff; }
.nav-lang-toggle .inactive { background: transparent; color: var(--text-muted); }
.nav-lang-toggle .inactive:hover { color: var(--teal); }

.nav-login { display: none; }
@media (max-width: 768px) {
  .nav-controls { gap: 12px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .nav-cta-desktop { display: none; }
  .nav-login { display: block; }
  .nav-login .nav-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--teal); color: #fff; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
  .nav-lang-toggle span { padding: 5px 10px; font-size: 0.75rem; }
}

/* ── Hero ── */
.hero { padding: 100px 0 80px; text-align: center; background: linear-gradient(180deg, var(--teal-light) 0%, var(--bg) 100%); }
.hero p.lead { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 640px; margin: 20px auto 0; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: #fff; padding: 14px 28px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; box-shadow: 0 2px 8px rgba(1,105,111,0.2); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(1,105,111,0.3); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-card); color: var(--text); padding: 14px 28px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 1rem; border: 1px solid var(--border); transition: border-color 0.2s, transform 0.15s; }
.btn-secondary:hover { border-color: var(--teal); transform: translateY(-2px); }

.hero-screenshot { margin-top: 56px; position: relative; }
.hero-screenshot img { max-width: 900px; width: 100%; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04); }
.badge-row { display: flex; gap: 24px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--bg-card); border-radius: 100px; border: 1px solid var(--border); font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.badge svg { width: 18px; height: 18px; stroke: var(--teal); flex-shrink: 0; }

/* ── Features Grid ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 48px; }
.feature-card { background: var(--bg-card); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-light); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon svg { width: 24px; height: 24px; stroke: var(--teal); fill: none; }
.feature-card h3 { margin-bottom: 8px; }

/* ── Screenshot showcase ── */
.showcase { background: var(--teal-light); }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.showcase-item { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
.showcase-item:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.showcase-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; display: block; }
.showcase-item .caption { padding: 16px 20px; }
.showcase-item .caption h3 { font-size: 1rem; margin-bottom: 4px; }
.showcase-item .caption p { font-size: 0.875rem; }

/* ── Split sections ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-text { display: flex; flex-direction: column; gap: 16px; }
.split-text ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.split-text li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; color: var(--text-muted); }
.split-text li svg { width: 20px; height: 20px; stroke: var(--teal); flex-shrink: 0; margin-top: 2px; }
.split img { width: 100%; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
@media (max-width: 768px) { .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; direction: ltr; } }

/* ── Stats bar ── */
.stats-bar { background: var(--teal); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: #fff; }
.stat-label { font-size: 0.9375rem; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* ── CTA Banner ── */
.cta-banner { text-align: center; background: linear-gradient(180deg, var(--bg) 0%, var(--teal-light) 100%); }
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { max-width: 560px; margin: 0 auto 32px; }

/* ── Use Cases page ── */
.use-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; margin-top: 48px; }
.use-case-card { background: var(--bg-card); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); }
.use-case-card .uc-icon { font-size: 2rem; margin-bottom: 16px; }
.use-case-card h3 { margin-bottom: 8px; }
.use-case-card ul { margin-top: 12px; padding-left: 20px; }
.use-case-card li { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 6px; }

/* ── Timeline (future plans) ── */
.timeline { position: relative; margin-top: 48px; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 3px solid var(--bg); }
.timeline-item.future::before { background: var(--border); }
.timeline-item h3 { margin-bottom: 6px; }
.timeline-item .phase-tag { display: inline-block; background: var(--teal-light); color: var(--teal); padding: 2px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; margin-bottom: 8px; }
.timeline-item.future .phase-tag { background: #FEF3C7; color: #92400E; }

/* ── Disclaimer ── */
.disclaimer { background: #FFF7ED; border: 1px solid #FED7AA; border-radius: var(--radius); padding: 20px 24px; margin-top: 32px; }
.disclaimer p { font-size: 0.875rem; color: #92400E; }
.disclaimer strong { color: #78350F; }

/* ── Footer ── */
.site-footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 0.875rem; margin-top: 12px; line-height: 1.6; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: #fff; font-size: 0.875rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8125rem; color: rgba(255,255,255,0.4); }

/* ── Page headers ── */
.page-header { background: linear-gradient(180deg, var(--teal-light) 0%, var(--bg) 100%); padding: 100px 0 48px; text-align: center; }
.page-header p { max-width: 640px; margin: 16px auto 0; }

/* ── Nonprofit banner ── */
.nonprofit-banner { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; margin-top: 48px; }
.nonprofit-banner h3 { margin-bottom: 8px; color: var(--teal); }

/* ── Contact section ── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }
.contact-card { background: var(--bg-card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); text-align: center; }
.contact-card svg { width: 32px; height: 32px; stroke: var(--teal); margin-bottom: 12px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card a { color: var(--teal); text-decoration: none; font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }

/* ── Accessibility & misc ── */
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Bilingual badge ── */
.lang-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 100px; overflow: hidden; }
.lang-toggle span { padding: 6px 14px; font-size: 0.8125rem; font-weight: 600; cursor: default; }
.lang-toggle .active { background: var(--teal); color: #fff; }
.lang-toggle .inactive { background: var(--bg-card); color: var(--text-muted); }
