/* SurroundMe public site (surroundme.org). Warm-white and soft-tan palette,
   chosen for emotional warmth and for readers with visual disturbances: no
   pure white or black over large areas (less glare), text at 12:1+ contrast,
   SurroundMe blue at 7.5:1+ on the page (AAA), and a blue/warm axis that
   stays distinguishable in common color blindness. Sage is a soft tint only,
   never the sole signal. Plain HTML/CSS, no build step. */
:root {
  --bg: #fdfcfa;
  --bg-alt: #f1edea;
  --card: #f1edea;
  --blue: #1b4e7e;
  --blue-dark: #143b5e;
  --teal: #259ca8;
  --blue-light: #dceff1;
  --text: #2b3340;
  --muted: #464e5c;
  --border: #e2ddd6;
  --radius: 16px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
/* Visible keyboard focus on every link and button */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.site-footer a:focus-visible { outline-color: #fdfcfa; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-header .logo img { height: 32px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--blue); }
.nav .donate { background: var(--blue); color: #fff; padding: 9px 16px; border-radius: 999px; }
.nav .donate:hover { background: var(--blue-dark); color: #fff; }
@media (max-width: 760px) {
  .nav a:not(.donate) { display: none; }
}

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 13px 24px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border: 2px solid var(--blue); color: var(--blue); padding: 11px 22px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 800; color: var(--blue); margin: 0 0 10px; }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 8px; vertical-align: middle; background: var(--teal); border-radius: 2px; }
h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0 0 14px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero .eyebrow { font-size: 16px; letter-spacing: 0.06em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.8rem, 4.3vw, 2.7rem); }
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-art { max-width: 304px; height: auto; align-self: center; justify-self: center; mix-blend-mode: multiply; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 224px; } }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--bg); }
.card p { color: var(--muted); margin: 0; }
.card .icon { font-size: 28px; margin-bottom: 8px; }
.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-light); color: var(--blue); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }

/* App screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin: 36px auto 0; max-width: 720px; }
.shots figure { margin: 0; text-align: center; }
.shots img { height: 600px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 16px; }
@media (max-width: 760px) { .shots img { height: auto; width: 100%; max-width: 240px; } }
.shots h3 { margin-bottom: 6px; }
.shots p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; gap: 36px; } }

/* Mission and approach */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
@media (max-width: 760px) { .mission-grid { grid-template-columns: 1fr; } }
.statement { color: var(--text); font-size: 1.2rem; line-height: 1.5; font-weight: 600; }
.card p.statement { color: var(--text); }
.welcome { margin-top: 28px; max-width: 760px; }
.prose { max-width: 760px; }
.prose p { color: var(--muted); font-size: 1.1rem; }
.features-more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 36px auto 0; max-width: 720px; text-align: center; }
@media (max-width: 520px) { .features-more { grid-template-columns: 1fr; } }
.features-more h3 { margin-bottom: 6px; }
.features-more p { font-size: 16px; }
.card p.card-link { margin-top: 12px; font-weight: 700; }
.principles { padding: 0; margin: 0; list-style: none; columns: 2; column-gap: 32px; }
@media (max-width: 760px) { .principles { columns: 1; } }
.principles li { break-inside: avoid; padding: 8px 0 8px 22px; position: relative; }
.principles li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }

/* Development path */
.path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 28px; }
@media (max-width: 760px) { .path { grid-template-columns: 1fr; } }
.path div { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: center; font-weight: 700; color: var(--muted); }
.path .done { background: var(--blue-light); color: #0f5159; border-color: #bfe0e4; }
.path .now { background: var(--blue); color: #fff; border-color: var(--blue); }
.path small { display: block; font-weight: 600; font-size: 12px; opacity: 0.85; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.note { font-size: 14px; color: var(--muted); font-style: italic; }
.placeholder { background: #fff6dc; border: 1px dashed #d4a017; padding: 2px 6px; border-radius: 6px; }

/* FAQ */
.faq h2 { font-size: 1.25rem; margin-top: 32px; margin-bottom: 8px; }
.faq h2 + p { margin-top: 0; }

/* Plain document pages (privacy, join, reset) */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 720px; }
.doc h2 { font-size: 1.35rem; margin-top: 32px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.updated { color: var(--muted); font-size: 15px; }
form label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 6px; }
form input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); margin-bottom: 16px; }
form button { width: 100%; font: inherit; font-weight: 700; background: var(--blue); color: #fff; border: none; border-radius: 999px; padding: 14px 18px; font-size: 16px; cursor: pointer; }
form button:disabled { opacity: 0.5; cursor: default; }
.error { color: #9b2d1a; font-weight: 700; }
.hidden { display: none; }
ol.how { padding-left: 22px; color: var(--muted); }
ol.how li { margin-bottom: 10px; }

/* Footer */
.site-footer { background: #2b3340; color: #dfe3ea; padding: 40px 0; font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #fdfcfa; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
