/* fallow-ignore-file unused-file -- linked from the static public pages in public/, not imported by the bundle */
/* Public, unauthenticated pages (/messaging-policy, /terms, /privacy, /sms-signup).
   Text between <!-- region:… --> markers can be edited in Admin → Public pages (server.js puts the published
   text in); everything else, including the form and its consent wording, is fixed.
   Plain documents served as static HTML outside the SPA — no auth gate, and no JS except the
   sign-up form's own small script — so a reviewer clicking the link from a compliance form
   gets the text immediately.
   Tokens mirror src/index.css :root so the pages sit next to the app without importing it. */
:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #17181c;
  --ink-2: #4b4f58;
  --ink-3: #8a8f9b;
  --border: #e6e7ea;
  --brand: #c94a1a;
  --brand-d: #a33b13;
  --danger: #c0392b;
  --ok-l: #e4f4eb;
  --font: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}
.site-header .wordmark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
h1 { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; }
.updated { color: var(--ink-3); font-size: 14px; margin: 0 0 32px; }
h2 { font-size: 17px; font-weight: 600; margin: 32px 0 8px; }
p { margin: 0 0 16px; }
p.intro { color: var(--ink-2); }
/* Editable regions (Admin → Public pages) hold plain paragraphs, so the styling keys on their wrapper. */
.updated p { margin: 0; }
.intro p, .doc-body > p:first-child { color: var(--ink-2); }

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  border-top: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 14px;
}
.site-footer nav a { color: var(--ink-2); text-decoration: none; margin-right: 18px; }
.site-footer nav a:hover { color: var(--brand); text-decoration: underline; }
.site-footer p { margin: 12px 0 0; }

/* --- /sms-signup form --- */
.signup { margin: 8px 0 0; }
.field { margin: 0 0 20px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.field input {
  display: block;
  width: 100%;
  max-width: 420px;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  color: var(--ink);
  background: var(--panel);
  border: 1px solid #c9ccd3;
  border-radius: 8px;
  padding: 11px 12px;
}
.field input:focus, .consent input:focus-visible, .submit:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.hint { color: var(--ink-3); font-size: 14px; margin: 6px 0 0; }
.field-error, .form-error { color: var(--danger); font-size: 14px; font-weight: 500; margin: 6px 0 0; }
.form-error { margin: 0 0 16px; }
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 8px 0 0;
}
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.consent label { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
#consent-error { margin: 0 0 8px; }
.policy-links { font-size: 14px; color: var(--ink-3); margin: 10px 0 24px; }
.policy-links a { color: var(--ink-2); }
.submit {
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
}
.submit:hover { background: var(--brand-d); }
.submit:disabled { opacity: .6; cursor: progress; }
.done {
  background: var(--ok-l);
  border: 1px solid #b9e0c9;
  border-radius: 8px;
  padding: 16px 18px;
}
.done:focus { outline: none; }
.done p { margin: 0; color: var(--ink); }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
  body { font-size: 15px; }
  main { padding: 28px 18px 48px; }
  h1 { font-size: 24px; }
  /* 22px-tall links side by side were small, close targets; padding brings each to ~40px. */
  .site-footer nav a { display: inline-block; margin: 0 14px 0 0; padding: 9px 0; }
  .submit { width: 100%; padding: 14px 22px; }
  .policy-links a { display: inline-block; padding: 6px 0; }
}
