:root {
  --bg: #f3f6f4;
  --surface: #e1e8e3;
  --ink: #14241f;
  --muted: #4d5f58;
  --accent: #1b6b45;
  --accent-ink: #ffffff;
  --rule: #c9d3cd;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1714;
    --surface: #1d2a24;
    --ink: #e4ece7;
    --muted: #9fb0a8;
    --accent: #6fd3a0;
    --accent-ink: #0f1714;
    --rule: #2b3a33;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0 auto;
  max-width: 66rem;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2 { line-height: 1.15; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw + 0.9rem, 3.75rem); letter-spacing: -0.015em; margin: 0 0 1.25rem; }
h2 { font-size: 1.5rem; margin: 0 0 0.75rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--sans);
  font-size: 1rem;
}
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); text-decoration: underline; }

/* Home sections */
main > section { max-width: 40rem; padding: 2.5rem 0; border-top: 1px solid var(--rule); }

main > .hero {
  max-width: none;
  border-top: 0;
  padding: 2rem 0 3.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 54rem) {
  main > .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4rem; padding: 4rem 0 5rem; }
}

.lead { font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 34rem; margin-bottom: 1.75rem; }

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { text-decoration: underline; }

/* Text thread: the caller's phone. Incoming = the service, outgoing = the caller. */
.thread {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
}
.thread p { margin: 0; }
.thread .event { align-self: center; color: var(--muted); font-size: 0.875rem; margin-bottom: 0.4rem; }
.thread .msg { max-width: 85%; padding: 0.7rem 1rem; border-radius: 1.25rem; }
.thread .in { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 0.3rem; }
.thread .out { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 0.3rem; }
.thread figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.875rem; }

.steps { padding-left: 1.5rem; }
.steps li { padding-left: 0.4rem; margin-bottom: 1rem; }
.steps li::marker { font-family: var(--sans); font-weight: 700; color: var(--accent); }

/* Policy pages */
.doc { max-width: 40rem; padding: 2rem 0 3rem; }
.doc h1 { font-size: clamp(2rem, 3vw + 1.2rem, 2.75rem); margin-bottom: 0.5rem; }
.doc h2 { font-size: 1.3rem; margin-top: 2.5rem; }
.doc .meta { color: var(--muted); font-family: var(--sans); font-size: 0.95rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.site-footer p { margin: 0 0 0.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
