/* Lead Finder. Flat: Archivo headlines, hairline rules, 6px corners, no
   shadows. Green fills carry dark text; links use the darker green. */

@font-face { font-family: "Archivo"; src: url(/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --ink: #0f1a14;
  --muted: #4b5a52;
  --line: #dfe5e1;
  --paper: #ffffff;
  --tint: #f5f8f6;
  --green: #22c55e;
  --green-ink: #15803d;
  --on-green: #052e16;
  --red-ink: #b42318;
  --red-tint: #fef3f2;
  --amber-ink: #92400e;
  --amber-tint: #fffbeb;
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --r: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); }
a { color: var(--green-ink); text-underline-offset: 2px; }
a:hover { color: var(--on-green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 32px; padding-bottom: 64px; min-height: 60vh; }
.wrap.wide { max-width: 1120px; }

h1, h2, h3 { font-family: var(--display); font-stretch: 112%; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; margin: 0 0 16px; }
h2 { font-size: 24px; font-weight: 800; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
p { margin: 0 0 14px; }
small, .fine { color: var(--muted); font-size: 14px; }
.note { color: var(--muted); }
.mono { font-family: var(--mono); }
pre { white-space: pre-wrap; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--tint); padding: 1px 5px; border-radius: 4px; }

/* header and footer */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 18px; height: 18px; border-radius: 4px; background: var(--green); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; }
.top nav a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.top nav a:hover { background: var(--tint); }
.test-banner { margin-top: 12px; margin-bottom: 0; padding: 8px 12px; background: var(--amber-tint); color: var(--amber-ink); border: 1px solid #fde68a; border-radius: var(--r); font-size: 15px; }
.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }

/* home */
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); max-width: 16ch; }
.lead { font-size: 20px; color: var(--muted); max-width: 40em; }
.lede-small { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; padding: 16px 16px 16px 56px; border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 15px; width: 26px; height: 26px; border-radius: 4px; background: var(--green); color: var(--on-green); font: 700 15px/26px var(--mono); text-align: center; }
.steps p { margin: 0; color: var(--muted); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.ticks { padding-left: 0; list-style: none; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; background: var(--green); }
.price-list { border-top: 1px solid var(--line); margin-bottom: 14px; }
.price-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-row form { margin: 0; }

/* app */
.callout { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 20px; }
.callout h2 { border: 0; padding: 0; margin: 0 0 8px; font-size: 20px; }
.callout p:last-child, .callout form:last-child { margin-bottom: 0; }
.flash { padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line); margin: 0 0 20px; }
.flash-ok { background: #f0fdf4; border-color: #bbf7d0; color: var(--on-green); }
.flash-err { background: var(--red-tint); border-color: #fecdca; color: var(--red-ink); }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.flash p { margin: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.stats div { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; min-width: 160px; }
.stats dt { color: var(--muted); font-size: 14px; }
.stats dd { margin: 0; font-size: 26px; font-weight: 700; }
.spec { margin: 0 0 16px; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; overflow-wrap: anywhere; }
.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lead-list { padding-left: 20px; }
.lead-list li { margin-bottom: 6px; }
.pager { display: flex; gap: 16px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--tint); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* forms */
.stack { display: grid; gap: 14px; }
.narrow { max-width: 460px; }
.spaced { margin-top: 10px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; margin: 0; display: grid; gap: 14px; }
legend { font-weight: 700; padding: 0 6px; }
.field { display: grid; gap: 5px; }
.field > span { font-weight: 600; font-size: 15px; }
.field em { font-weight: 400; font-style: normal; color: var(--muted); }
.field-short { max-width: 260px; }
input[type=text], input[type=email], input[type=number], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid #c5cec9; border-radius: var(--r); padding: 9px 11px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--green-ink); outline: 2px solid rgba(34, 197, 94, 0.35); outline-offset: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; }
.checks-wide { grid-template-columns: 1fr; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 16px; }
.check input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--green-ink); flex: none; }
.check small { display: block; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.filters .field { min-width: 160px; }
form.inline { display: inline; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 15px/1.2 var(--body); padding: 10px 16px; border-radius: var(--r);
  border: 1px solid #c5cec9; background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--tint); color: var(--ink); }
.btn-primary { background: var(--green); border-color: var(--green); color: var(--on-green); }
.btn-primary:hover { background: #16a34a; border-color: #16a34a; color: var(--on-green); }
.btn-danger { border-color: #fda29b; color: var(--red-ink); }
.btn-danger:hover { background: var(--red-tint); color: var(--red-ink); }

.email-preview { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; font: 15px/1.55 var(--body); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .cards3 { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .price-row { grid-template-columns: 1fr auto; }
  .price-row .fine { grid-column: 1; }
  h2 { font-size: 21px; }
}
