/* ClearToText. Ink navy on a cool off-white, signal green for "approved",
   rust for "rejected". Bricolage Grotesque display, IBM Plex for body and data. */
:root {
  --ink: #10213A;
  --ink-soft: #33445C;
  --muted: #5A6B80;
  --paper: #F5F6F3;
  --white: #FFFFFF;
  --line: #D5DAD3;
  --line-soft: #EEF0EC;
  --green: #1F7A52;
  --green-ink: #145338;
  --green-wash: #E1F1E8;
  --green-bright: #7FD3A8;
  --rust: #A63A0E;
  --rust-wash: #FBE6DC;
  --amber: #9A6A00;
  --navy-line: #2B3D58;
  --navy-muted: #A9B6C8;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--ink); }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding-inline: 24px; }

/* Header and footer */
.site-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav .nav-cta { background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.site-nav .nav-cta:hover { color: var(--white); background: var(--green); }
.site-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 28px 40px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }

/* Type */
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); font-weight: 500; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.01em; }
.lede { font-size: 20px; max-width: 34em; color: var(--ink-soft); }
.small { font-size: 14px; color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 48px 72px; }
.hero-copy { flex: 1 1 min(520px, 100%); min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-report { flex: 1 1 min(440px, 100%); min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* Signup form */
.signup { display: flex; flex-direction: column; gap: 10px; max-width: 520px; width: 100%; }
.signup label { font-weight: 600; font-size: 15px; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.input { flex: 1 1 min(240px, 100%); min-width: 0; font: inherit; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); color: var(--ink); }
.button { font: inherit; font-weight: 600; padding: 14px 22px; border: 0; border-radius: 10px; background: var(--green); color: var(--white); cursor: pointer; min-height: 52px; }
.button:hover { background: var(--green-ink); }
.button-dark { background: var(--ink); }
.button-dark:hover { background: var(--green); }
.button-outline { display: inline-block; text-decoration: none; border: 2px solid var(--ink); padding: 10px 18px; border-radius: 10px; font-weight: 600; }
.form-error { color: var(--rust); font-size: 15px; }
.confirmation { padding: 14px 16px; border-radius: 10px; background: var(--green-wash); color: var(--green-ink); font-weight: 500; }
.on-green .confirmation { background: var(--white); }
.flash { margin-block: 12px; }

/* Sample report */
.report { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.report-head { padding: 20px 22px; border-bottom: 1px solid #E6E9E4; display: flex; flex-direction: column; gap: 6px; }
.report-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.verdict { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.pill-reject { background: var(--rust-wash); color: #8A2E0A; }
.report-row { display: flex; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--line-soft); align-items: baseline; font-size: 15px; }
.report-row .status { flex: 0 0 44px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; }
.status-ok { color: var(--green); }
.status-warn { color: var(--amber); }
.status-fail { color: var(--rust); }
.report-foot { padding: 16px 22px; background: var(--ink); color: var(--paper); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: 15px; }
.report-foot .mono { color: var(--green-bright); font-size: 14px; }

/* Sections */
.band-white { background: var(--white); border-block: 1px solid var(--line); }
.band-navy { background: var(--ink); color: var(--paper); }
.band-green { background: var(--green-wash); border-top: 1px solid #C3E2D0; }
.section { padding-block: 80px; display: flex; flex-direction: column; gap: 40px; }
.section-intro { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.section-intro p { color: var(--ink-soft); }

.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.offer { border: 1px solid var(--line); border-radius: 14px; padding: 30px; display: flex; flex-direction: column; gap: 16px; background: var(--paper); }
.offer-featured { border: 2px solid var(--ink); background: var(--white); }
.offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.offer-head h3 { font-size: 22px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 32px; }
.offer ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); }

.causes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.cause { display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--ink); padding-top: 18px; }
.cause h3 { font-size: 19px; }
.cause p { color: var(--ink-soft); font-size: 16px; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.steps .step-num { font-family: var(--font-mono); color: var(--green-bright); }
.steps strong { font-size: 19px; }
.steps .step-body { color: var(--navy-muted); font-size: 16px; }

.faq { display: flex; flex-direction: column; gap: 28px; padding-block: 88px; }
.faq-item { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-size: 19px; }
.faq-item p { color: var(--ink-soft); }

.join { padding-block: 80px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* Legal and simple pages */
.prose { padding-block: 40px 88px; display: flex; flex-direction: column; gap: 18px; max-width: 46em; }
.prose h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 48px); line-height: 1.05; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-top: 16px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose .updated { color: var(--muted); font-size: 15px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; }

@media (max-width: 640px) {
  .site-nav .nav-link { display: none; }
  .hero { padding-block: 24px 56px; gap: 40px; }
  .section { padding-block: 56px; }
}

/* Intake form */
.intake { padding-block: 32px 88px; display: flex; flex-direction: column; gap: 28px; max-width: 760px; }
.intake-section { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 18px; margin: 0; }
.intake-section legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.intake-section legend + * { clear: both; }
.intake-section .hint { font-size: 15px; color: var(--muted); margin-top: -10px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-weight: 600; font-size: 15px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field .help { font-size: 14px; color: var(--muted); }
.field input[type=text], .field input[type=url], .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #B8C0B6; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field-error input, .field-error select, .field-error textarea { border-color: var(--rust); }
.field-error-message { color: var(--rust); font-size: 14px; }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choices.inline { flex-direction: row; flex-wrap: wrap; gap: 10px 24px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.choice input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--green); }
.error-summary { border: 2px solid var(--rust); background: var(--rust-wash); color: #6B2408; border-radius: 12px; padding: 16px 20px; }
.error-summary ul { margin: 8px 0 0; padding-left: 20px; }
