:root {
  --bg: #fbf8f2;
  --surface: #ffffff;
  --text: #17202e;
  --muted: #5a6270;
  --line: #e6dfd2;
  --accent: #24477a;
  --button: #1f3f6e;
  --button-text: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1420;
    --surface: #162030;
    --text: #f3ede2;
    --muted: #a3acba;
    --line: #283548;
    --accent: #ecd3a4;
    --button: #ecd3a4;
    --button-text: #111a28;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-underline-offset: 3px; }

header, main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}

.brand img { border-radius: 9px; }

nav { display: flex; gap: 18px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

main { padding-top: 24px; padding-bottom: 48px; }

h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
h2 { font-size: 21px; line-height: 1.3; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 8px; }

p, li, td, th { overflow-wrap: break-word; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
h2 + h3 { margin-top: 12px; }
.legal h3 { margin-top: 28px; }

blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
}
blockquote p:last-child { margin-bottom: 0; }

/* A wide table scrolls inside its own box, so the page itself never scrolls sideways on a phone. */
.table-scroll { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); min-width: 120px; }
th { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.crisis {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
}

.hero { text-align: center; padding: 28px 0 8px; }
.hero img { border-radius: 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); margin-bottom: 22px; }
.hero h1 { font-size: 42px; }
.lede { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 auto 18px; }
.soon {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
a.soon:hover { border-color: var(--accent); }

.points { display: grid; gap: 14px; margin-top: 32px; }
.points div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.points h2 { margin: 0 0 4px; font-size: 18px; }
.points p { margin: 0; color: var(--muted); }

@media (min-width: 700px) {
  .points { grid-template-columns: repeat(3, 1fr); }
}

form { margin: 22px 0 8px; }
label { display: block; font-weight: 600; font-size: 15px; margin: 16px 0 6px; }
label span { font-weight: 400; color: var(--muted); }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { resize: vertical; }

button {
  margin-top: 18px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 40px;
  font-size: 13px;
  color: var(--muted);
}

footer p { margin-bottom: 8px; }

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .hero h1 { font-size: 32px; }
  nav { gap: 14px; }
}
