/* health — the "paper" theme of docs/drafts/health_landing: Newsreader for
   headings and numbers, Instrument Sans for everything else, warm paper ground,
   one accent. Tokens are the handoff's table, verbatim.

   The landing uses the light theme only; the application carries both. */

:root {
  --paper: #F7F4ED;
  --lift: #FFFEFA;
  --ink: #1A1B17;
  --body: #3C3E37;
  --mid: #5D5F57;
  --soft: #8F918A;
  --rule: #DFDACD;
  --strong: #C7C0AF;
  --track: #E8E3D7;
  --wash: #EAE6DB;
  --acc: #7A3455;
  --acc-hover: #54223A;
  --on-acc: #FFFEFA;
  --dest: #8E2F26;
  --scrim: rgba(26, 27, 23, 0.30);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --page: 1120px;
  --gutter: 26px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-hover); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.012em; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

/* ── Header ────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header .inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand img { width: 22px; height: 22px; display: block; }
.brand .word { font-family: var(--serif); font-size: 21px; letter-spacing: -0.01em; }

.site-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { font-size: 15px; color: var(--mid); }
.site-nav a:hover { color: var(--acc); }

.pill {
  display: inline-block;
  background: var(--acc);
  color: var(--on-acc);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
}
.pill:hover { background: var(--acc-hover); color: var(--on-acc); }

.pill-outline {
  display: inline-block;
  border: 1px solid var(--strong);
  border-radius: 999px;
  padding: 9px 19px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.pill-outline:hover { background: var(--wash); color: var(--ink); }

/* ── Hero ──────────────────────────────────────────────────── */

.hero { display: flex; gap: 56px; flex-wrap: wrap; padding-block: 78px 40px; }
.hero .text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; }
.hero h1 {
  font-weight: 300;
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero .lead { font-size: 17px; line-height: 1.65; color: var(--mid); max-width: 46ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.hero .actions .pill { padding: 15px 28px; font-size: 16px; }
.hero .actions .pill-outline { padding: 14px 26px; font-size: 16px; }
.hero .notes { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; color: var(--soft); }

.mock {
  flex: 0 1 330px;
  align-self: start;
  width: 300px;
  max-width: 100%;
  background: var(--lift);
  border: 1px solid var(--rule);
  border-radius: 30px;
  box-shadow: 0 18px 50px rgba(26, 27, 23, 0.13);
  padding: 20px 18px;
  animation: fadeUp 0.4s ease;
}
.mock .status { display: flex; justify-content: space-between; font-size: 13px; color: var(--soft); }
.mock .kcal { font-family: var(--serif); font-size: 32px; margin-top: 14px; }
.mock .kcal span { font-size: 15px; color: var(--soft); font-family: var(--sans); }
.mock .bar { height: 3px; background: var(--track); border-radius: 999px; margin: 10px 0 6px; }
.mock .bar i { display: block; height: 100%; width: 70%; background: var(--acc); border-radius: 999px; }
.mock .row { padding: 12px 0; border-top: 1px solid var(--rule); display: flex; gap: 12px; font-size: 14px; }
.mock .row .when { color: var(--soft); width: 44px; flex: none; }
.mock .row .what { flex: 1; }
.mock .row .what b { display: block; font-weight: 600; }
.mock .row .what small { color: var(--soft); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── Sections ──────────────────────────────────────────────── */

.section { padding-block: 44px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 56ch; margin-bottom: 34px; }
.section-head h2 { font-weight: 300; font-size: clamp(30px, 4vw, 40px); line-height: 1.12; }
.section-head h2 em { font-style: italic; }
.section-head .lead { font-size: 16px; line-height: 1.65; color: var(--mid); }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.tile { background: var(--paper); padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 10px; }
.tile svg { width: 26px; height: 26px; color: var(--acc); }
.tile h3 { font-size: 23px; font-weight: 400; }
.tile p { font-size: 15px; line-height: 1.6; color: var(--mid); }

.two-col { display: flex; gap: 54px; flex-wrap: wrap; }
.steps { flex: 1 1 340px; }
.step { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.step:first-child { border-top: 0; padding-top: 0; }
.step .n { font-family: var(--serif); font-size: 19px; color: var(--soft); width: 26px; flex: none; }
.step h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; }
.step p { font-size: 15px; line-height: 1.6; color: var(--mid); margin-top: 4px; }

.privacy-card {
  flex: 1 1 300px;
  align-self: start;
  background: var(--lift);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.privacy-card svg { width: 26px; height: 26px; color: var(--acc); }
.privacy-card h3 { font-size: 26px; font-weight: 400; }
.privacy-card p { font-size: 15px; line-height: 1.65; color: var(--mid); }

.cta-band { background: var(--wash); padding: 60px var(--gutter); text-align: center; }
.cta-band h2 { font-weight: 300; font-size: clamp(28px, 4vw, 36px); }
.cta-band h2 em { font-style: italic; }
.cta-band p { font-size: 16px; color: var(--mid); margin-top: 10px; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ── Download ──────────────────────────────────────────────── */

.page-head { display: flex; flex-direction: column; gap: 12px; padding-block: 64px 34px; }
.page-head h1 { font-weight: 300; font-size: clamp(34px, 5vw, 46px); line-height: 1.08; }
.page-head .lead { font-size: 17px; line-height: 1.65; color: var(--mid); max-width: 54ch; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.card {
  background: var(--lift);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h2 { font-size: 22px; font-weight: 400; }
.card .req { font-size: 14px; color: var(--soft); }
.card p { font-size: 15px; line-height: 1.6; color: var(--mid); flex: 1; }
.card .btn {
  display: block;
  text-align: center;
  background: var(--acc);
  color: var(--on-acc);
  border-radius: 12px;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 600;
}
.card .btn:hover { background: var(--acc-hover); color: var(--on-acc); }
.card .btn.muted { background: var(--track); color: var(--soft); cursor: default; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1px; background: var(--rule); margin-top: 34px; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.fact { background: var(--paper); padding: 20px 22px; }
.fact dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.fact dd { margin: 6px 0 0; font-size: 16px; }

/* ── Documents, contact, about ─────────────────────────────── */

.doc { max-width: 760px; margin: 0 auto; padding: 64px var(--gutter) 80px; display: flex; flex-direction: column; gap: 26px; }
.doc h1 { font-weight: 300; font-size: clamp(34px, 5vw, 44px); line-height: 1.08; }
.doc .meta { font-size: 14px; color: var(--soft); }
.doc hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.doc section { display: flex; flex-direction: column; gap: 9px; }
.doc h2 { font-weight: 400; font-size: 24px; }
.doc p { font-size: 16px; line-height: 1.7; color: var(--body); }
.doc .warn { background: var(--wash); border-radius: 14px; padding: 18px 20px; font-size: 16px; line-height: 1.6; }
.doc .draft { border-left: 2px solid var(--dest); padding: 14px 18px; font-size: 15px; line-height: 1.6; color: var(--body); }

.doc table { width: 100%; border-collapse: collapse; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; font-size: 15px; }
.doc th { background: var(--wash); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); text-align: left; }
.doc th, .doc td { padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.doc tr:last-child td { border-bottom: 0; }

.contact { max-width: 1000px; margin: 0 auto; padding: 54px var(--gutter) 80px; display: flex; gap: 50px; flex-wrap: wrap; }
.contact .left { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.contact .rows { margin-top: 12px; }
.contact .row { padding: 16px 0; border-top: 1px solid var(--rule); }
.contact .row b { display: block; font-size: 15px; font-weight: 600; }
.contact .row span { font-size: 15px; color: var(--mid); }

.about { max-width: 820px; margin: 0 auto; padding: 54px var(--gutter) 80px; display: flex; flex-direction: column; gap: 30px; }
.about h1 { font-weight: 300; font-size: clamp(34px, 5vw, 46px); line-height: 1.08; }
.about h1 em { font-style: italic; }
.about p { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 64ch; }
.about .numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.about .numbers div { background: var(--paper); padding: 22px 20px; }
.about .numbers b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.about .numbers span { font-size: 14px; color: var(--mid); }

/* ── Footer and cookie banner ──────────────────────────────── */

.site-footer { background: var(--wash); border-top: 1px solid var(--rule); margin-top: 44px; }
.site-footer .inner { max-width: var(--page); margin: 0 auto; padding: 44px var(--gutter) 34px; display: flex; gap: 44px; flex-wrap: wrap; }
.site-footer .about-col { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.site-footer .about-col p { font-size: 15px; color: var(--mid); max-width: 34ch; }
.site-footer .col-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }
.site-footer nav { display: flex; flex-direction: column; gap: 7px; }
.site-footer nav a { font-size: 15px; color: var(--body); }
.site-footer nav a:hover { color: var(--acc); }
.site-footer .bar { border-top: 1px solid var(--rule); padding: 16px var(--gutter); font-size: 13px; color: var(--soft); max-width: var(--page); margin: 0 auto; display: flex; gap: 16px; flex-wrap: wrap; }

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 16px; display: flex; justify-content: center; }
.cookie-banner[hidden] { display: none; }
.cookie-card {
  max-width: 720px;
  background: var(--lift);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(26, 27, 23, 0.16);
  padding: 20px 22px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  animation: fadeUp 0.25s ease;
}
.cookie-card p { flex: 1 1 320px; font-size: 15px; line-height: 1.6; color: var(--body); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { font-family: inherit; font-size: 15px; font-weight: 600; border-radius: 999px; padding: 10px 20px; cursor: pointer; }
.cookie-actions .btn-chip { background: none; border: 1px solid var(--strong); color: var(--ink); }
.cookie-actions .btn-chip:hover { background: var(--wash); }
.cookie-actions .btn-accept { background: var(--acc); border: 1px solid var(--acc); color: var(--on-acc); }
.cookie-actions .btn-accept:hover { background: var(--acc-hover); border-color: var(--acc-hover); }

/* A class rule out-specifies the UA's [hidden] {display:none}, and these pages
   hide the APK button until a HEAD request proves the file is there. */
[hidden] { display: none !important; }
