/* Awareness Score: shared styles for the public pages (index, about, privacy, terms, health-data), 19 Oct 2026.
   Colours and type follow the app (app/app.css). Many readers are 65+: 18 px body text, buttons
   at least 56 px tall, high contrast, mobile first. No web font: Georgia for headings, the
   system font for text, so pages paint without a font download. */
:root {
  --bg: #FBF7F1;
  --surface: #FFFFFF;
  --primary: #1F5F5B;
  --primary-dark: #143F3C;
  --primary-tint: #E4F0EE;
  --accent: #E1723F;
  /* the darker orange for button fills: white text on it is 4.4:1 (on #E1723F only 3.1:1) */
  --accent-dark: #C25A2B;
  --accent-press: #A8481C;
  --text: #2A2A26;
  --muted: #5E5E56;
  --border: #E8DFD0;
  --font-heading: Georgia, "Times New Roman", Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(30, 26, 14, 0.08);
  --gutter: 16px;
  --measure: 680px;
  --wide: 1040px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* 112.5% = 18 px with the browser's default text size, and it still follows a larger setting */
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}
h1 { font-size: 2.1rem; margin: 0 0 0.4em; }
h2 { font-size: 1.5rem; margin: 0 0 0.55em; }
h3 { font-size: 1.15rem; margin: 0 0 0.25em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
strong { font-weight: 700; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--gutter); top: -200px; z-index: 100;
  padding: 12px 18px; border-radius: 10px;
  background: var(--primary-dark); color: #fff; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.skip:focus-visible { outline-color: var(--accent); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Header ------------------------------------------------------------ */
.sitehead { background: var(--surface); border-bottom: 1px solid var(--border); }
.sitehead__inner {
  max-width: var(--wide); margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px;
}
.sitehead__brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  color: var(--primary-dark); text-decoration: none;
}
.sitehead__brand:hover { color: var(--primary-dark); }
.sitehead__brand img { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.sitehead__signin {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 18px;
  border: 2px solid var(--primary); border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; color: var(--primary-dark); text-decoration: none;
  white-space: nowrap;
}
.sitehead__signin:hover { background: var(--primary-tint); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; margin: 0; padding: 12px 20px;
  border: 2px solid transparent; border-radius: 12px;
  font: 700 1.05rem/1.25 var(--font-body); text-align: center; text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--accent-dark); color: #fff; }
.btn--primary:hover { background: var(--accent-press); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--primary-dark); border-color: var(--primary); }
.btn--secondary:hover { background: var(--primary-tint); color: var(--primary-dark); }
.btn--inline { display: inline-flex; width: auto; }

/* ---- Page sections ----------------------------------------------------- */
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 48px 0; }
.section--tint { background: var(--primary-tint); }
.section--white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__intro { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: block; margin: 0 0 8px;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary);
}
.note { font-size: 0.95rem; color: var(--muted); }

/* ---- Hero -------------------------------------------------------------- */
.hero { padding: 28px 0 44px; }
.hero__grid {
  max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 24px;
}
.hero__icon {
  display: block; width: 84px; height: 84px; margin: 0 0 16px;
  border-radius: 20px; box-shadow: var(--shadow);
}
.hero h1 { font-size: 2.3rem; margin-bottom: 0.3em; }
.hero__lead { font-size: 1.2rem; line-height: 1.5; margin-bottom: 0; }

/* ---- Sign-up card ------------------------------------------------------ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.signup { scroll-margin-top: 16px; }
.signup h2 { font-size: 1.4rem; margin-bottom: 0.35em; }
.signup__intro { color: var(--muted); }
.signup__fine { margin: 14px 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.signup__fine a { color: var(--primary-dark); }
.signup__wait { display: none; margin: 8px 0 0; color: var(--muted); }
/* with JavaScript (the class is set in <head>), the plain link waits while the page checks for a
   signed-in account and Google sign-in; if the script never gets going it comes back */
.js .signup__plain { display: none; }
.js .signup__wait { display: block; }
.signup__google { display: flex; justify-content: center; min-height: 44px; margin: 14px 0 0; }
.signup__google > div { max-width: 100%; }
.signup__hint {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); color: var(--muted); font-size: 0.95rem; text-align: center;
}
.signup__or {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
  color: var(--muted); font-size: 0.95rem;
}
.signup__or::before, .signup__or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.signup__status { margin: 12px 0 0; font-weight: 700; color: var(--primary-dark); }
.signup__status:empty { margin: 0; }
.signup__error { margin: 0; }
.signup__error:not(:empty) {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 10px;
  background: #FCEDE6; border: 1px solid #E9B8A0; color: #7A2E10; font-weight: 600;
}
.signup__signin { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.95rem; }

.consent { margin: 0 0 4px; padding: 0; border: 0; min-width: 0; }
.consent legend { padding: 0; margin: 0 0 10px; font-weight: 700; color: var(--primary-dark); }
.check {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 10px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
  cursor: pointer; line-height: 1.45;
}
.check:hover { border-color: var(--primary); }
.check input {
  flex: none; width: 28px; height: 28px; margin: 0;
  accent-color: var(--primary); cursor: pointer;
}
.check__tag {
  display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 700; line-height: 1.6; vertical-align: 1px;
  background: var(--primary-tint); color: var(--primary-dark);
}
.check__tag--optional { background: #F3ECDF; color: var(--muted); }

/* ---- How it works ------------------------------------------------------ */
.steps { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: step; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; position: relative;
  padding: 16px 16px 16px 72px; min-height: 72px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font: 700 1.1rem/40px var(--font-heading); text-align: center;
}
.steps h3 { margin-bottom: 0.2em; }
.steps p { margin: 0; }

/* ---- The four games ---------------------------------------------------- */
.games { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.game {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.game__icon {
  flex: none; width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary-dark);
}
.game__icon svg { width: 34px; height: 34px; }
.game p { margin: 0; }

/* ---- What it isn't ----------------------------------------------------- */
.plainlist { padding-left: 1.2em; }
.plainlist li { margin: 0 0 0.6em; padding-left: 4px; }
.callout {
  margin: 20px 0 0; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---- On your phone ----------------------------------------------------- */
.phone { display: grid; gap: 12px; margin: 0 0 20px; }
.phone__item {
  padding: 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.phone__item h3 { margin-bottom: 0.3em; }
.phone__item p { margin: 0; }
.badge {
  display: inline-block; margin-left: 6px; padding: 0 10px; border-radius: 999px;
  font: 700 0.9rem/1.7 var(--font-body); vertical-align: 2px;
  background: #F3ECDF; color: var(--muted);
}

/* ---- Founder ----------------------------------------------------------- */
.founder {
  margin: 0; padding: 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.founder blockquote { margin: 0 0 14px; }
.founder blockquote p {
  font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.55; color: var(--text);
}
.founder__sign { margin: 0 0 14px; font-weight: 700; color: var(--primary-dark); }

/* ---- About, privacy and terms (articles) ------------------------------- */
.article { max-width: var(--measure); margin: 0 auto; padding: 32px var(--gutter) 56px; }
.article h1 { font-size: 2rem; }
.article h2 { font-size: 1.35rem; margin-top: 1.8em; scroll-margin-top: 16px; }
.article h3 { margin-top: 1.2em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: 0 0 0.6em; padding-left: 2px; }
.article .lead { font-size: 1.15rem; color: var(--muted); }
.updated { color: var(--muted); font-size: 0.95rem; }
.toc {
  margin: 20px 0 8px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.toc h2 { margin: 0 0 8px; font-size: 1.1rem; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { margin: 0; padding: 5px 0; line-height: 1.45; }
.signoff { margin-top: 1.4em; font-weight: 700; color: var(--primary-dark); }
.article .cta { margin-top: 28px; }
/* the privacy policy's "Cookie settings" opener: a button that reads like a link */
button[data-consent-settings] {
  font: inherit; color: var(--primary); background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---- Footer ------------------------------------------------------------ */
.sitefooter { background: var(--primary-dark); color: #F3EFE6; }
.sitefooter__inner {
  max-width: var(--wide); margin: 0 auto;
  padding: 28px var(--gutter) calc(36px + env(safe-area-inset-bottom));
}
.sitefooter__links { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 0 14px -10px; }
.sitefooter__links a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px;
  color: #fff; font-weight: 600;
}
.sitefooter a { color: #fff; }
.sitefooter a:hover { color: #fff; text-decoration-thickness: 2px; }
.sitefooter :focus-visible { outline-color: #fff; }
.sitefooter p { margin: 0 0 6px; }
.sitefooter__fine { color: #D4E4E1; font-size: 0.95rem; }

/* ---- Wider screens ----------------------------------------------------- */
@media (min-width: 700px) {
  .section { padding: 64px 0; }
  .games { grid-template-columns: 1fr 1fr; }
  .phone { grid-template-columns: 1fr 1fr; }
  .card { padding: 26px; }
}
@media (min-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
  .hero h1 { font-size: 2.9rem; }
  .hero__lead { font-size: 1.3rem; }
  .article h1 { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .sitehead__signin, .skip, .signup { display: none !important; }
  .sitefooter { background: none; color: var(--text); }
  .sitefooter a, .sitefooter__links a { color: var(--text); }
}
