/* fallow-ignore-file unused-file -- linked from the public site pages in public/ (home.html, join.html), not imported by the bundle */
/* The public site: the home page (/ on the public host, /home everywhere) and the sign-up form (/join).
   Plain documents served as static HTML outside the SPA and the sign-in, like the legal pages
   (legal.css), in the look of the client's mock-ups: Inter, warm off-white, one green.
   The page content is plain semantic HTML (headings, paragraphs, links, lists) and every bit of styling
   comes from here, keyed on the section it sits in, so the text can be edited without touching layout. */
:root {
  --bg: #fbfaf7;
  --panel: #ffffff;
  --ink: #1c1b19;
  --ink-2: #3d3b37;
  --ink-3: #5f5d58;
  --rule: #e4e2dc;
  --field: #c9c6bf;
  --green: #1f5c4a;
  --green-d: #174637;
  --danger: #b3261e;
  --ok-l: #e7f1ec;
  --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: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-d); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* --- Header --- */
.site-top { display: flex; align-items: center; justify-content: space-between; padding: 30px 0 0; }
.site-top .wordmark { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.site-top .signup-link { font-size: 16px; }

/* --- Sections, separated by a hairline --- */
.section { padding: 56px 0; border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section h2 { font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 18px; }
.section p { margin: 0 0 14px; color: var(--ink-3); max-width: 640px; }
.section p:last-child { margin-bottom: 0; }

/* --- Hero --- */
.hero { padding: 72px 0 56px; }
.hero h1 {
  font-size: 66px; line-height: 1.04; font-weight: 800; letter-spacing: -0.035em;
  max-width: 560px; margin: 0 0 22px;
}
.hero p { font-size: 20px; line-height: 1.65; color: var(--ink-2); max-width: 520px; }

/* A paragraph that holds only a link, in a section that asks for it, is the call-to-action button. */
.cta p:last-child a,
.button {
  display: inline-block;
  margin-top: 14px;
  font: inherit; font-weight: 600; font-size: 17px; line-height: 1.3;
  color: #fff; background: var(--green);
  border: 0; border-radius: 6px;
  padding: 17px 22px;
  text-decoration: none;
  cursor: pointer;
}
.cta p:last-child a:hover, .button:hover { background: var(--green-d); color: #fff; }
.button:disabled { opacity: .6; cursor: progress; }

/* --- How it works --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 6px; }
.step { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 26px 24px 32px; }
.step p:first-child { color: var(--green); font-weight: 600; margin: 0 0 12px; }
.step h3 { font-size: 19px; line-height: 1.55; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.step p { color: var(--ink-3); margin: 0; }

/* --- The sign-up form (/join) --- */
.signup { margin-top: 22px; max-width: 640px; }
.field { margin: 0 0 22px; }
.field label, .reach legend { display: block; font-weight: 600; font-size: 17px; margin: 0 0 10px; color: var(--ink); }
.field input {
  display: block; width: 100%;
  font: inherit; font-size: 17px; /* 16px or more stops iOS zooming into the field */
  color: var(--ink); background: var(--panel);
  border: 1px solid var(--field); border-radius: 6px;
  padding: 13px 14px;
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.section .field-error, .section .form-error { color: var(--danger); font-size: 15px; font-weight: 500; margin: 6px 0 0; }
.section .form-error { margin: 0 0 16px; }
.reach { border: 0; padding: 0; margin: 0 0 8px; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin: 0 0 12px; }
.choice input { width: 18px; height: 18px; margin: 4px 0 0 2px; accent-color: var(--green); }
.choice label { color: var(--ink-2); }
/* The SMS disclosure that must sit with the Text box (TCPA / Twilio): part of the label, set smaller. */
.choice .disclosure { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-3); margin-top: 4px; }
.section .policy-links { font-size: 14px; color: var(--ink-3); margin: 0 0 18px 32px; }
.policy-links a { color: var(--ink-2); }
.section .opt-out-note { margin: 22px 0 0; max-width: 560px; }
.section .opt-out-note p { margin: 0 0 8px; color: var(--ink-3); }
.done { background: var(--ok-l); border: 1px solid #c3dccf; border-radius: 8px; padding: 18px 20px; max-width: 640px; margin-top: 22px; }
.done:focus { outline: none; }
.done p { margin: 0; color: var(--ink); }
.done p + p { margin-top: 8px; }
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* --- Footer --- */
.site-foot { border-top: 1px solid var(--rule); padding: 36px 0 56px; font-size: 15px; color: var(--ink-3); }
.site-foot p { margin: 0 0 10px; max-width: 640px; }
.site-foot nav { margin: 18px 0 14px; }
.site-foot nav a { color: var(--ink-2); text-decoration: none; margin-right: 18px; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot .legal { margin-top: 14px; }

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .hero h1 { font-size: 46px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .site-top { padding-top: 22px; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 18px; }
  .section { padding: 40px 0; }
  .section h2 { font-size: 24px; }
  .cta p:last-child a, .button { display: block; width: 100%; text-align: center; }
  .site-foot nav a { display: inline-block; padding: 8px 0; }
  .section .policy-links { margin-left: 0; }
  .policy-links a { display: inline-block; padding: 6px 0; }
}
