:root {
  --blue: #1565c0;
  --blue-dk: #0d47a1;
  --field: #aec6e4;
  --paper: #eeeeee;
  --ink: #1b1b1b;
  --green: #22a45d;
  --warn: #c0392b;
  --warn-bg: #fdecea;
  --max-w: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: var(--blue-dk);
  text-decoration-color: rgba(13, 71, 161, 0.35);
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--blue); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* Masthead - a compact letterhead, not a hero: logo + title, flush left,
   one rule underneath. Deliberately not centered and not tall. */
header.site {
  background: var(--blue-dk);
  color: #fff;
  border-bottom: 4px solid var(--field);
}

.masthead {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.masthead .mark { width: 42px; height: 42px; border-radius: 9px; flex-shrink: 0; }

.masthead h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.masthead .tagline {
  margin: 3px 0 0;
  font-size: 14px;
  opacity: 0.85;
  max-width: 46ch;
}

.site-nav {
  max-width: var(--max-w);
  margin: 16px auto 0;
  padding: 0 24px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
}
.site-nav a:hover { background: #dce7f5; }
.site-nav a[aria-current="page"] {
  background: var(--blue-dk);
  color: #fff;
  font-weight: 600;
}

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px 72px;
}

/* Sections read as one flowing document - a rule between them, not a
   repeated card. Headings are set like the app's own form-section labels:
   small, uppercase, tracked. */
main section {
  padding: 22px 0;
  border-top: 1px solid #d7dbe0;
}
main section:first-of-type { border-top: none; padding-top: 0; }

main h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-dk);
}

main p { margin: 0 0 10px; }
main p:last-child { margin-bottom: 0; }

ul.ticks { list-style: none; margin: 14px 0 0; padding: 0; }
ul.ticks li { position: relative; padding-left: 26px; margin: 8px 0; }
ul.ticks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

/* The one box that earns emphasis on the landing page - reuses the same
   red-outlined treatment the app's own consent screen uses for this exact
   disclaimer (see mobile-app/CLAUDE.md, "Consent / terms screen"). */
.warn {
  border: 1.5px solid var(--warn);
  background: var(--warn-bg);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0 0;
  font-size: 14px;
}

footer.site {
  text-align: center;
  padding: 32px 24px 48px;
  font-size: 13px;
  color: #6b7280;
}
footer.site a { color: #6b7280; }

/* Google Play artwork includes vertical clear space around the badge. */
.store-badges {
  --badge-height: 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0;
}
.store-badge { display: inline-flex; align-items: center; min-height: 72px; }
.store-badge img { display: block; width: auto; }
/* Only 192 of the PNG's 250 pixels contain the visible badge. */
.google-play img { height: calc(var(--badge-height) * 250 / 192); }
.app-store img { height: var(--badge-height); }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 12px 0;
}
.social-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.social-icon { width: 24px; height: 24px; flex-shrink: 0; }
.youtube { color: #ff0000; }
.instagram { color: #c13584; }
