/* ============================================================
   GAVIA HEALTH — shared site styles
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Brand */
  --teal: #1d9e75;
  --teal-dark: #0c5c42;
  --teal-deep: #084d36;
  --teal-light: #e8f5ef;
  --teal-mist: #f1f8f4;

  /* Surfaces */
  --bg: #f5f2ee;
  --bg-warm: #efe9e0;
  --surface: #ffffff;
  --line: #e8e2d8;
  --line-soft: #efeae1;

  /* Text */
  --ink: #1a1a1a;
  --ink-soft: #3a3a38;
  --muted: #6b6b6b;
  --muted-2: #8a8782;

  /* Accents */
  --coral: #d85a30;
  --coral-soft: #f6e2d6;
  --amber: #b45309;
  --amber-soft: #f6e9cf;

  /* Type */
  --serif: Georgia, "Source Serif Pro", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Geometry */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(20, 30, 25, 0.04), 0 8px 24px rgba(20, 30, 25, 0.06);
  --shadow-card-hover: 0 2px 4px rgba(20, 30, 25, 0.05), 0 16px 36px rgba(20, 30, 25, 0.09);
  --shadow-phone: 0 30px 80px -20px rgba(12, 92, 66, 0.35), 0 12px 30px -10px rgba(20, 30, 25, 0.18);

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.25; }
h4 { font-size: 19px; line-height: 1.3; }

p { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin: 0 0 14px;
}

.lead { font-size: 19px; color: var(--ink-soft); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }

.serif-quote {
  font-family: var(--serif);
  font-style: italic;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--teal-dark);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 6px 18px rgba(12, 92, 66, 0.25);
}
.btn-primary:hover { background: #094a35; box-shadow: 0 10px 24px rgba(12, 92, 66, 0.3); }
.btn-secondary {
  background: transparent;
  color: var(--teal-dark);
  border-color: rgba(12, 92, 66, 0.25);
}
.btn-secondary:hover { background: rgba(12, 92, 66, 0.05); border-color: rgba(12, 92, 66, 0.4); }
.btn-light {
  background: #fff;
  color: var(--teal-dark);
  box-shadow: var(--shadow-card);
}
.btn-light:hover { box-shadow: var(--shadow-card-hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding: 10px 12px;
}
.btn-ghost:hover { color: var(--teal-dark); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }

.apple-btn {
  background: #1a1a1a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--sans);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.apple-btn:hover { background: #000; transform: translateY(-1px); text-decoration: none; }
.apple-btn .apple-icon { width: 22px; height: 22px; }
.apple-btn .apple-label { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.apple-btn .apple-label .tiny { font-size: 10.5px; opacity: .85; letter-spacing: .04em; }
.apple-btn .apple-label .big { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }

/* Google Play / Android download button — mirrors apple-btn */
.google-btn {
  background: #1a1a1a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--sans);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.google-btn:hover { background: #000; transform: translateY(-1px); text-decoration: none; }
.google-btn .gp-icon { width: 22px; height: 22px; }
.google-btn .gp-label { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.google-btn .gp-label .tiny { font-size: 10.5px; opacity: .85; letter-spacing: .04em; }
.google-btn .gp-label .big { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }

/* Dual-CTA pair: wraps Apple + Google buttons */
.dl-pair {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 480px) {
  .dl-pair { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .dl-pair > a { width: 100%; justify-content: center; }
}

/* Compact "Get app" nav CTA */
.nav-get-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--teal-dark);
  color: #fff;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.nav-get-app:hover { background: #094a35; text-decoration: none; transform: translateY(-1px); color: #fff; }
.nav-get-app svg { width: 14px; height: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 238, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(20, 30, 25, 0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .loon { width: 30px; height: 22px; object-fit: contain; }
.brand .wordmark { font-weight: 400; }

.nav-links {
  display: flex; gap: 6px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block; padding: 8px 14px;
  color: var(--ink-soft); font-size: 14.5px; font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-dark); background: rgba(12, 92, 66, 0.06); }
.nav-cta { margin-left: 18px; }

.hamburger {
  display: none;
  background: transparent; border: 0; padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: inline-block; }
  .nav-open .nav-mobile { display: block; }
}
.nav-mobile {
  display: none;
  position: fixed; inset: 68px 0 0 0;
  background: var(--bg);
  padding: 32px 28px;
  z-index: 49;
}
.nav-mobile a {
  display: block; padding: 14px 0;
  font-family: var(--serif); font-size: 22px;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.nav-mobile .btn { margin-top: 24px; width: 100%; justify-content: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(20, 30, 25, 0.04);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }

.feature-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card .icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 15.5px; line-height: 1.55; }

/* Grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-6 { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  background: #1a1f1c;
  color: #c4c8c6;
  padding: 72px 0 32px;
}
.footer a { color: #c4c8c6; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer-top {
  display: grid; gap: 48px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer h5 {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: #fff; margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14.5px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand .wordmark { color: #fff; }
.footer-tag { font-family: var(--serif); font-style: italic; color: #9fb1a8; max-width: 320px; line-height: 1.5; font-size: 15px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
  padding-top: 28px; font-size: 13px; color: #7e8884;
}
.footer-bottom .disclaimer { max-width: 540px; }
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Scroll fade ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1 !important; transform: none !important; }
/* No-JS fallback: if scripts never run, reveal everything after the page loads */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Phone mockup ---------- */
.phone {
  width: 320px;
  aspect-ratio: 320 / 660;
  background: #111;
  border-radius: 46px;
  padding: 12px;
  position: relative;
  box-shadow: var(--shadow-phone);
}
.phone::before, .phone::after {
  /* side buttons */
  content: ""; position: absolute; background: #2a2a2a;
}
.phone::before { right: -2px; top: 100px; width: 3px; height: 56px; border-radius: 2px; }
.phone::after { left: -2px; top: 80px; width: 3px; height: 28px; border-radius: 2px; }
.phone .screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 34px;
  background: var(--bg);
  overflow: hidden;
}
.phone .notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px;
  background: #111; border-radius: 14px;
  z-index: 5;
}
.phone .status {
  position: absolute; top: 14px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 26px;
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink);
  z-index: 4;
}
.phone .status-right { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Section: teal hero ---------- */
.teal-section {
  background: var(--teal-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.teal-section h2 { color: #fff; }
.teal-section .eyebrow { color: rgba(255,255,255,0.7); }

/* ---------- Persona profile card ---------- */
.persona-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.persona-icon svg { width: 28px; height: 28px; }
.persona-card h3 { margin-bottom: 10px; font-size: 22px; }
.persona-card p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.6; }

/* ---------- Misc tag/pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
  background: var(--teal-light); color: var(--teal-dark);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: transparent; border: 0; cursor: pointer;
  padding: 22px 4px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  text-align: left;
  letter-spacing: -.005em;
}
.faq-q .plus {
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s ease, background .2s, color .2s, border-color .2s;
  color: var(--muted);
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
  color: var(--ink-soft);
}
.faq-a > div { padding: 0 4px 22px; font-size: 16px; line-height: 1.65; }
.faq-item.open .faq-a { max-height: 480px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  max-width: 520px; margin: 0 auto;
  background: var(--ink); color: #f0eee9;
  padding: 16px 18px;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  z-index: 80; font-size: 14px;
}
.cookie button {
  background: #fff; color: var(--ink); border: 0;
  padding: 8px 14px; border-radius: 8px; font-weight: 600; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px;
}
.cookie.hidden { display: none; }
.cookie a { color: #fff; text-decoration: underline; }

/* ---------- Page-specific helpers ---------- */
.page-hero {
  padding: 88px 0 64px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  text-align: center;
}
.page-hero .eyebrow { color: var(--teal-dark); }
.page-hero p.lead { max-width: 640px; margin: 14px auto 0; }

/* legal pages */
.legal-body { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); }
.legal-body h2 { margin: 56px 0 18px; font-size: 28px; }
.legal-body h3 { margin: 32px 0 12px; font-size: 21px; }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }

/* ─── Mobile / Small Screen Polish ─── */
@media (max-width: 640px) {
  body { overflow-x: hidden; }
  img, video, iframe, table { max-width: 100%; }
  .wrap, .wrap-narrow { padding-left: 16px; padding-right: 16px; }
  section { padding: 64px 0; }
  section.tight { padding: 48px 0; }

  /* Hero CTAs full-width stack */
  .hero-ctas .dl-pair { width: 100%; }
  .hero-ctas .dl-pair > a, .hero-ctas .dl-pair > button { width: 100%; justify-content: center; }
  .hero-ctas .btn-secondary { width: 100%; justify-content: center; }
  .hero-meta { font-size: 13px; gap: 10px; }

  /* Apple/Google button label tightening */
  .apple-btn, .google-btn, .waitlist-btn { padding: 11px 16px; }

  /* Final CTA stack */
  .final-cta .dl-pair { flex-direction: column; width: 100%; }
  .final-cta .dl-pair > a, .final-cta .dl-pair > button { width: 100%; justify-content: center; }
  .final-cta .btn-secondary { width: 100%; justify-content: center; }

  /* Feature card grid collapses everywhere */
  .grid-2, .grid-3, .grid-6,
  .feature-grid, .preview-pricing, .persona-grid, .problem-cards, .steps,
  .intel-grid, .privacy-list, .related-grid, .blog-grid {
    grid-template-columns: 1fr !important;
  }

  /* Feature/intel card padding */
  .card, .feature-card, .intel-card, .persona-card, .problem-card, .price-card, .plan {
    padding: 24px;
  }
  .price-card { padding: 28px 24px; }

  /* Pricing plan visuals */
  .plan { padding: 30px 24px; }
  .plan h3 { font-size: 26px; }
  .price-big { font-size: 44px; }

  /* Pricing toggle */
  .billing-toggle { width: 100%; padding: 4px; }
  .billing-toggle button { flex: 1; padding: 10px 12px; font-size: 13px; min-height: 44px; }

  /* Compare table — horizontal scroll on tiny screens */
  .compare-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table .row { grid-template-columns: 1.4fr 1fr 1fr; min-width: 460px; }
  .compare-table .cell { padding: 10px 12px; font-size: 13px; }

  /* Legal body tightening */
  .legal-body { font-size: 16px; line-height: 1.65; }
  .legal-body h2 { font-size: 24px; margin: 40px 0 14px; }
  .legal-body h3 { font-size: 18px; margin: 24px 0 10px; }

  /* FAQ tap target boost */
  .faq-q { padding: 18px 4px; font-size: 17px; min-height: 44px; }
  .faq-a > div { font-size: 15px; }
  .faq-q .plus { width: 32px; height: 32px; flex: none; }

  /* Trust bar wrap */
  .trust-inner { gap: 12px 18px; font-size: 13px; }
  .trust-inner .label { font-size: 12px; }

  /* Three-AM / Gavia Standard quote scale */
  .three-am { padding: 80px 0; }
  .three-am blockquote { font-size: 22px; line-height: 1.45; }
  .three-am .attribution { font-size: 12px; }

  /* Page hero */
  .page-hero { padding: 64px 0 40px; }
  .page-hero h1 { font-size: 34px; }
  .page-hero .lead { font-size: 16.5px; }

  /* Heading scale */
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }

  /* Footer */
  .footer { padding: 56px 0 24px; }
  .footer-top { gap: 36px; padding-bottom: 36px; }
  .footer h5 { margin-bottom: 12px; }
  .footer li { margin-bottom: 8px; min-height: 24px; }
  .footer li a { display: inline-block; min-height: 32px; line-height: 32px; }
  .footer-bottom { font-size: 12.5px; }

  /* Tap target floor on all primary buttons */
  .btn, .btn-primary, .btn-secondary, .btn-light, .apple-btn, .google-btn, .waitlist-btn, .nav-get-app { min-height: 44px; }

  /* Mobile nav link tap targets */
  .nav-mobile a { padding: 16px 0; min-height: 48px; line-height: 1.3; }
  .hamburger { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }

  /* Cookie banner */
  .cookie { left: 12px; right: 12px; bottom: 12px; padding: 14px; font-size: 13.5px; gap: 10px; flex-wrap: wrap; }
  .cookie button { width: 100%; padding: 10px 14px; }

  /* Cards section gaps */
  .grid, .feature-grid, .preview-pricing, .persona-grid, .problem-cards, .intel-grid,
  .privacy-list, .related-grid, .blog-grid { gap: 16px; }
}

/* Print styles for legal pages */
@media print {
  .nav, .footer, .cookie, .gavia-tooltip, .waitlist-overlay, .nav-mobile { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-body { font-size: 11pt; line-height: 1.55; max-width: none; padding: 0; }
  .legal-body h2 { font-size: 16pt; margin: 24px 0 10px; page-break-after: avoid; }
  .legal-body h3 { font-size: 13pt; margin: 16px 0 8px; page-break-after: avoid; }
  a { color: #000; text-decoration: none; }
}

/* ─── Android Waitlist Button (outlined) ─── */
.waitlist-btn {
  background: #ffffff;
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-radius: 12px;
  font-family: var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.waitlist-btn:hover {
  background: #f3faf6;
  border-color: var(--teal-dark);
  transform: translateY(-1px);
  text-decoration: none;
}
.waitlist-btn .gp-icon { width: 22px; height: 22px; }
.waitlist-btn .gp-label { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.waitlist-btn .gp-label .tiny { font-size: 10.5px; opacity: .8; letter-spacing: .04em; color: var(--muted); font-weight: 500; }
.waitlist-btn .gp-label .big { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; color: var(--teal-dark); }

.coming-soon-note {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
  font-family: var(--sans);
}

/* ─── Android Waitlist Modal ─── */
.waitlist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out;
}
.waitlist-overlay.open { opacity: 1; pointer-events: auto; }

.waitlist-modal {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 36px 32px 32px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  transform: scale(0.96);
  transition: transform 200ms ease-out;
}
.waitlist-overlay.open .waitlist-modal { transform: scale(1); }

.waitlist-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.waitlist-close:hover { background: var(--bg-warm); color: var(--ink); }
.waitlist-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.waitlist-modal h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--teal-dark);
  margin: 0 0 12px;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.waitlist-modal .lead-sm {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 24px;
}

.waitlist-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  font-family: var(--sans);
}
.waitlist-form .field { margin-bottom: 16px; }
.waitlist-form input {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.waitlist-form input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15);
}
.waitlist-form .help {
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 6px;
  line-height: 1.4;
}
.waitlist-form .error {
  display: none;
  font-size: 13px;
  color: var(--coral);
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--coral-soft);
  border-radius: 8px;
}
.waitlist-form .error.show { display: block; }

.waitlist-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s, transform .15s;
}
.waitlist-form button[type="submit"]:hover:not(:disabled) {
  background: #178a65;
  transform: translateY(-1px);
}
.waitlist-form button[type="submit"]:disabled {
  background: #b5d4c6;
  cursor: not-allowed;
}
.waitlist-form button .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: waitlist-spin 600ms linear infinite;
  display: none;
}
.waitlist-form.submitting .spinner { display: inline-block; }
.waitlist-form.submitting .btn-label::before { content: "Joining…"; }
.waitlist-form.submitting .btn-label .default { display: none; }
@keyframes waitlist-spin { to { transform: rotate(360deg); } }

.waitlist-success { display: none; text-align: center; padding-top: 8px; }
.waitlist-overlay.success-state .waitlist-form { display: none; }
.waitlist-overlay.success-state .waitlist-success { display: block; }
.waitlist-success .check-circle {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
}
.waitlist-success .check-circle svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2.6; }
.waitlist-success h3 { margin-bottom: 12px; }
.waitlist-success .body-text { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 18px; }
.waitlist-success .body-text strong { color: var(--ink); }
.waitlist-success .closing-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 24px;
}
.waitlist-success button {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 11px 28px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.waitlist-success button:hover { background: var(--bg-warm); border-color: var(--muted-2); }

@media (max-width: 480px) {
  .waitlist-modal { padding: 32px 22px 26px; }
  .waitlist-modal h3 { font-size: 21px; }
}

/* ─── Glossary Tooltip System ─── */
  border-bottom: 1.5px dotted #c5c5c5;
  cursor: help;
  position: relative;
}
/* Stronger contrast on dark teal sections */
.teal-section .gavia-term,
.three-am .gavia-term,
.privacy-section .gavia-term,
.footer .gavia-term {
  border-bottom-color: rgba(255,255,255,0.45);
}
.gavia-term:hover,
.gavia-term:focus {
  outline: none;
  border-bottom-color: var(--teal);
}

.gavia-tooltip {
  position: absolute;
  z-index: 9999;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0,0,0,0.06);
  max-width: 280px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease-out;
}
.gavia-tooltip.visible { opacity: 1 !important; pointer-events: auto; }

.gavia-tooltip .term-name {
  font-weight: 700;
  color: var(--teal-dark);
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gavia-tooltip::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
}
.gavia-tooltip.above::after {
  bottom: -6px;
  left: 50%;
  margin-left: -5px;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}
.gavia-tooltip.below::after {
  top: -6px;
  left: 50%;
  margin-left: -5px;
  border-bottom: 0;
  border-right: 0;
  transform: rotate(45deg);
}

@media (max-width: 640px) {
  .gavia-tooltip {
    max-width: calc(100vw - 32px);
  }
}
