/* site.css — shared by every landing page: palette, type, nav, footer.
   The palette matches the App Store screenshots (cream, deep green,
   Fraunces + Poppins). Page-specific layout stays in each page's <style>. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #EFF0E6;
  --bg-elevated: #E3E7D7;
  --bg-card: #FBFCF7;
  --bg-card-hover: #FFFFFF;
  --text: #14231A;
  --text-soft: #4E5A52;
  --text-muted: #6F7A72;
  --accent: #2E8B37;          /* headlines, large text, fills */
  --accent-ink: #256B2D;      /* small accent text (AA on cream) */
  --accent-hover: #24702C;
  --accent-bright: #57BA50;   /* the app's own green */
  --accent-glow: rgba(87, 186, 80, 0.14);
  --accent-glow-strong: rgba(87, 186, 80, 0.22);
  --accent-dim: rgba(87, 186, 80, 0.08);
  --green: #2E8B37;
  --border: rgba(20, 35, 26, 0.10);
  --border-hover: rgba(46, 139, 55, 0.35);
  --shadow: 0 24px 60px rgba(20, 35, 26, 0.12);
  --error: #C2412D;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Poppins', system-ui, sans-serif;
  --radius: 24px;
  --radius-sm: 14px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Display headings: Fraunces 600, italic accent like the screenshots */
h1, h2, .section-title { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(239, 240, 230, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease, background 0.3s ease;
}
nav.site-nav.scrolled {
  padding: 0.7rem 2rem;
  background: rgba(239, 240, 230, 0.95);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
}
.nav-logo img { height: 30px; width: auto; }
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-text span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-download {
  font-size: 0.82rem; font-weight: 600;
  color: #FFFFFF;
  background: var(--accent-ink);
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.nav-links a.nav-download:hover {
  color: #FFFFFF;
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46, 139, 55, 0.28);
}

/* ── FOOTER ── */
footer.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.45rem; text-decoration: none; }
.footer-logo img { height: 24px; width: auto; }
.footer-logo .logo-text { font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--text); }
/* i18n.js injects the EN·ES switch styles; these win on specificity */
footer.site-footer .lang-switch { color: var(--text-muted); }
footer.site-footer .lang-switch a.active { color: var(--accent-ink); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── STORE BADGES ── */
.store-badge {
  height: 52px;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 8px;
}
.store-badge:hover { transform: translateY(-2px); opacity: 0.9; }
/* The Spanish Play badge (set by i18n.js) is a PNG with transparent bands
   above and below it; grow it so the badge itself stays 52px tall. */
html[lang="es"] .store-badge-play { height: 67.7px; margin: -7.85px 0; }

/* ── PHONE FRAME (real app captures) ── */
.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 600 / 1300;
  padding: 10px;
  border-radius: 48px;
  background: #0E0E0E;
  box-shadow: 0 0 0 2px #2A2A2A inset, 0 40px 80px rgba(20, 35, 26, 0.22);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #FFFFFF;
}
.phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-screen::before {          /* Dynamic Island */
  content: '';
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 24px;
  border-radius: 20px;
  background: #050505;
  z-index: 2;
}

/* Speech bubble from Arya, as in the screenshots */
.arya-bubble {
  background: #FFFFFF;
  border-radius: 22px 22px 22px 6px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 14px 34px rgba(20, 35, 26, 0.16);
  font-size: 0.98rem; font-weight: 500; line-height: 1.3;
  color: var(--text);
}
.arya-bubble b {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 0.15rem;
}

@media (max-width: 900px) {
  .nav-links a:not(.nav-download) { display: none; }
}
@media (max-width: 640px) {
  nav.site-nav, nav.site-nav.scrolled { padding: 0.8rem 1.2rem; }
}
