/* Shared base/nav/footer styles, linked by every landing page including index.html.
   Page-specific styles (hero, features, pricing, etc.) stay inline in each page. */

:root {
  /* Exact values from mobile/constants/theme.ts — single source of truth */
  --navy: #0EA78E;
  --navy-mid: #0C9680;
  --navy-light: #3DCAB1;
  --yellow: #FFD84D;
  --yellow-soft: #FFF9D4;
  --yellow-dim: #C9A010;
  --coral: #FF7648;
  --ivory: #CFEBED;
  --white: #FFFFFF;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #888888;
  --border-light: #EBEBEB;
  --border-mid: #CBCBCB;
  --icon-blue-soft: #D8EAF5;
  --icon-green-soft: #C9F0DC;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.13);
  --shadow-xl: 0 20px 48px rgba(14,167,142,0.16);
  --gradient-brand: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Sticky footer: main grows to fill leftover space so footer stays pinned
     to the viewport bottom on short pages, and flows naturally on tall ones. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
.container {
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  transition: box-shadow 0.2s ease;
}
header.site-nav.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.wordmark .little { color: var(--white); }
.wordmark .guest { color: var(--yellow); }
.nav-links {
  display: none;
}
.nav-links a.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  position: relative;
  transition: color 0.15s ease;
}
.nav-links a.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transition: right 0.2s ease;
}
.nav-links a.nav-link:hover {
  color: var(--white);
}
.nav-links a.nav-link:hover::after { right: 0; }
.nav-cta {
  background: var(--yellow);
  color: var(--navy-mid);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  border-radius: var(--radius-full);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}
.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--white);
  cursor: pointer;
}
header.site-nav.open .nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #e6f6f3;
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}
header.site-nav.open .nav-links a.nav-link {
  color: var(--text-secondary);
}
header.site-nav.open .nav-links a.nav-link::after {
  background: var(--navy);
}
header.site-nav.open .nav-links a.nav-link:hover {
  color: var(--text-primary);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .nav-toggle { display: none; }
}

/* ---------- Page content (stub pages) ---------- */
.page-hero {
  padding: 20px 0 24px;
}
.page-hero .section-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.page-hero h1 {
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
}
.page-content {
  padding: 8px 0 96px;
}
.page-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.page-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
}
.page-content h2:first-of-type { margin-top: 0; }
.page-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 8px;
}
.page-content ul, .page-content ol {
  margin: 0 0 16px 20px;
  color: var(--text-secondary);
  font-size: 15px;
}
.page-content li { margin-bottom: 6px; }
.page-content .policy-date {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}
.page-content .placeholder-note {
  display: inline-block;
  background: var(--yellow-soft);
  color: var(--yellow-dim);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}
.page-content a.text-link {
  color: var(--navy);
  text-decoration: underline;
}
.page-content a.text-link:hover {
  color: var(--navy-mid);
}
.page-content .signature {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-content .signature .heart-icon {
  width: 16px;
  height: 16px;
  fill: var(--yellow);
  stroke: var(--navy);
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
footer {
  padding: 10px 0;
  background: #FAFCFC;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding-bottom: 10px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.footer-wordmark {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.footer-wordmark .little { color: var(--text-primary); }
.footer-wordmark .guest { color: var(--navy); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: 13px;
  color: var(--text-secondary);
}
/* Same underline-grow-on-hover treatment as .nav-link, in navy instead of
   yellow since it's sitting on a light background rather than the teal nav. */
.footer-links a {
  position: relative;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: right 0.2s ease;
}
.footer-links a:hover { color: var(--navy); }
.footer-links a:hover::after { right: 0; }
.footer-bottom {
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
}

@media (min-width: 900px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
