/* Gunter: DAO's title face (Ned, item 23: "Gunter (capitalised + gold) for
   all titles"). A licensed commercial font (That That Type, Commercial EULA):
   it may be served from this site as WOFF/WOFF2 via @font-face only — never
   the OTF — and the files must not be modified, converted, subsetted or
   redistributed. One cut (Regular), so headings never ask for bold. */
@font-face {
  font-family: 'Gunter';
  src: url('/assets/fonts/Gunter-Regular.woff2') format('woff2'),
       url('/assets/fonts/Gunter-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* EB Garamond: the body face, self-hosted so a visit sends nothing to Google
   (Ned's item 23; German courts have held that loading Google Fonts from
   Google's servers shares visitors' IP addresses without consent). SIL Open
   Font License 1.1 (assets/fonts/EBGaramond-OFL.txt). Subset to Latin from
   the OFL files in @expo-google-fonts/eb-garamond, the same family the app
   uses. */
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/EBGaramond-400Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/EBGaramond-400Regular_Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/EBGaramond-500Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('/assets/fonts/EBGaramond-600SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg: #13281E;
  --bg-deep: #0E1F17;
  --card: #1C3227;
  --line: #33503F;
  --edge: #5F7D6B;
  --text: #EDE6D8;
  --muted: #AAB7AD;
  --gold: #DDB26E;
  --gold-soft: rgba(221, 178, 110, .14);
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(221, 178, 110, .10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); }
/* Titles: Gunter, capitalised and gold. Gunter is a wide face (~0.8em a
   capital), so the sizes below sit well under the old serif ones. */
h1, h2, h3 {
  font-family: 'Gunter', 'EB Garamond', Georgia, serif;
  font-weight: 400; font-style: normal;
  text-transform: uppercase; letter-spacing: .03em;
  color: var(--gold); line-height: 1.25;
  overflow-wrap: break-word;
}
img { max-width: 100%; }

/* ─── Header ─────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  background: rgba(19, 40, 30, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; letter-spacing: .28em; font-size: 20px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: 17px; }
nav a[aria-current="page"], nav a:hover { color: var(--gold); }
nav .nav-cta {
  color: var(--bg); background: var(--gold); padding: 7px 16px; border-radius: 999px; font-weight: 600;
}
nav .nav-cta:hover { color: var(--bg); filter: brightness(1.08); }

main { max-width: 1160px; margin: 0 auto; padding: 0 24px 40px; }
section { scroll-margin-top: 80px; }
.sub { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 36px; font-size: 20px; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px;
  padding: 72px 0 56px; min-height: 640px;
}
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .24em; font-size: 14px; margin: 0 0 14px; }
.hero h1 { font-size: 44px; margin: 0 0 22px; }
/* Gunter has no italic: the second line is set apart by colour instead. */
.hero h1 em { display: block; color: var(--text); font-style: normal; }
.lead { font-size: 22px; color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.store { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .15s ease; }
.store:hover { transform: translateY(-2px); }
.store.center { margin: 8px auto 0; }
.badge { height: 60px; width: auto; }
.ghost {
  display: inline-block; color: var(--text); text-decoration: none; font-size: 18px;
  border: 1px solid var(--edge); border-radius: 999px; padding: 12px 22px;
}
.ghost:hover { border-color: var(--gold); color: var(--gold); }
.fine { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
/* Washington My Health My Data Act: a prominent homepage link (item 20). */
.health-link { margin: 10px 0 0; font-size: 16px; }
.health-link a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.mountain {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 28px;
  opacity: .55; mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

/* ─── Phone frames ───────────────────────────────────────── */
.phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone img {
  display: block; width: 100%; height: auto; border-radius: 34px;
  border: 8px solid #0B1611; outline: 1px solid var(--edge);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .03);
  background: var(--bg-deep);
}
.phone figcaption { color: var(--muted); font-size: 16px; text-align: center; max-width: 240px; }
.hero-phone { position: relative; width: 290px; }
.hero-phone figcaption { display: none; }

/* ─── Stat strip ─────────────────────────────────────────── */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden;
}
.strip div { padding: 22px 18px; text-align: center; border-left: 1px solid var(--line); }
.strip div:first-child { border-left: 0; }
.strip strong { display: block; font-size: 40px; font-weight: 500; color: var(--gold); line-height: 1.1; }
.strip span { color: var(--muted); font-size: 16px; }

/* ─── How it works ───────────────────────────────────────── */
.how { padding: 96px 0 24px; }
.how h2, .gallery h2, .areas h2, .final h2 { font-size: 32px; text-align: center; margin: 0 0 12px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; }
.num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); font-size: 18px; margin-bottom: 14px;
}
.steps h3 { font-size: 17px; margin: 0 0 8px; }
.steps p { color: var(--muted); font-size: 17px; margin: 0; }

/* ─── Gallery ────────────────────────────────────────────── */
.gallery { padding: 88px 0 24px; }
.gallery h2 { margin-bottom: 36px; }
.rail {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 28px; justify-content: safe center;
}
.rail .phone { flex: 0 0 240px; scroll-snap-align: center; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* ─── Features ───────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 72px 0 24px; }
.features article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.features h3 { font-size: 17px; margin: 0 0 8px; }
.features p { color: var(--muted); font-size: 17px; margin: 0; }

/* ─── Areas ──────────────────────────────────────────────── */
.areas { padding: 88px 0 24px; }
.areas ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.areas li {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px;
}
.areas li img { flex: 0 0 52px; border-radius: 12px; }
.areas h3 { font-size: 16px; margin: 2px 0 4px; }
.areas p { color: var(--muted); font-size: 17px; margin: 0; }

/* ─── Final CTA ──────────────────────────────────────────── */
.final {
  text-align: center; margin: 96px 0 0; padding: 64px 24px;
  border: 1px solid var(--line); border-radius: 28px;
  background: radial-gradient(600px 300px at 50% 0%, var(--gold-soft), transparent 70%), var(--card);
  display: flex; flex-direction: column; align-items: center;
}
.final p { color: var(--muted); font-size: 21px; margin: 0 0 22px; }

/* ─── Waitlist ───────────────────────────────────────────── */
.waitlist { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 88px 0 24px; }
.waitlist h2 { font-size: 30px; margin: 0 0 10px; }
.waitlist > div p { color: var(--muted); margin: 0; }
.waitlist-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px;
}
.waitlist-card > label { font-size: 17px; color: var(--muted); }
.waitlist-card input[type="email"] {
  font: inherit; color: var(--text); background: var(--bg-deep);
  border: 1px solid var(--edge); border-radius: 12px; padding: 12px 16px; width: 100%;
}
.waitlist-card input[type="email"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.waitlist-card .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; color: var(--muted); cursor: pointer; }
.waitlist-card .consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--gold); }
.waitlist-card button {
  align-self: flex-start; font: inherit; font-weight: 600; font-size: 18px; cursor: pointer;
  color: var(--bg); background: var(--gold); border: 0; border-radius: 999px; padding: 11px 24px;
}
.waitlist-card button:hover { filter: brightness(1.08); }
.waitlist-card button:disabled { opacity: .6; cursor: progress; }
.waitlist-card .status { margin: 0; min-height: 1.6em; font-size: 17px; }
.waitlist-card .status[data-state="ok"] { color: var(--gold); }
.waitlist-card .status[data-state="error"] { color: #E8A39A; }
.waitlist-card .fine { margin: 0; font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ─── Contact ────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 88px 0 24px; }
.contact h2 { font-size: 30px; margin: 0 0 10px; }
.contact p { color: var(--muted); margin: 0; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.contact-card .mail { display: block; font-size: 24px; text-decoration: none; margin-bottom: 6px; word-break: break-all; }
.contact-card .ghost { margin-top: 18px; }

.note { text-align: center; color: var(--muted); font-size: 15px; max-width: 720px; margin: 56px auto 0; }

/* ─── Documents (privacy, terms, support) ────────────────── */
.doc { max-width: 720px; margin: 0 auto; padding-top: 40px; }
.doc h1 { font-size: 32px; margin: 0 0 4px; }
.doc h2 { font-size: 19px; margin: 32px 0 8px; }
.doc h3 { font-size: 15px; margin: 20px 0 4px; }
.doc .meta { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.doc li { margin: 4px 0; }

/* ─── Footer ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); margin-top: 48px; }
.foot { max-width: 1160px; margin: 0 auto; padding: 32px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 16px; }
.foot-links a:hover { color: var(--gold); }
.small { flex-basis: 100%; color: var(--muted); font-size: 13px; margin: 0; opacity: .8; }
.small.company { opacity: 1; font-size: 14px; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 48px; gap: 24px; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-art { min-height: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  main { padding: 0 16px 32px; }
  .bar { padding: 12px 16px; }
  nav a:not(.nav-cta) { display: none; }
  /* Longest word, CONNECTS., must fit a 343px column at 375px. */
  .hero h1 { font-size: 28px; }
  .lead { font-size: 19px; }
  .hero-phone { width: 230px; }
  .hero-art { min-height: 460px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip div:nth-child(3) { border-left: 0; }
  .strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .how h2, .gallery h2, .areas h2, .final h2 { font-size: 23px; }
  .steps, .features, .areas ul, .contact, .waitlist { grid-template-columns: 1fr; }
  .waitlist h2 { font-size: 23px; }
  .rail { justify-content: flex-start; }
  .rail .phone { flex-basis: 210px; }
  .contact h2 { font-size: 23px; }
  .doc h1 { font-size: 24px; }
  .doc h2 { font-size: 17px; }
}

/* Crisis page (/crisis): numbers by country. */
.crisis-country { margin: 16px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.crisis-country h3 { margin-top: 0; }
.crisis-country dl { margin: 0; }
.crisis-country dt { font-weight: 600; margin-top: 10px; }
.crisis-country dd { margin: 2px 0 0; }
.crisis-country dd p { margin: 2px 0; }
.crisis-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crisis-action { display: inline-block; padding: 4px 10px; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; font-size: 15px; text-decoration: none; }
