/* Layout: full-width bands with alternating grounds (Gestalt common region separates sections); content in a 1360px container with gutters that grow with the screen;
   running text capped at 34–46em so lines stay at 45–75 characters (readability research). The hero pairs the promise with a real example report (Flood-It!, public data). */
:root {
  color-scheme: only light;
  --bg: #f3f5f8; --surface: #ffffff; --raised: #f8f9fb; --ink: #16202b; --muted: #586575; --line: #dde3ea;
  --accent: #2a4fc4; --on-accent: #ffffff; --accent-soft: #e4e9fb;
  --good: #00707a; --good-bg: #e0f2f1; --bad: #b5470b; --bad-bg: #fbe9e1; --neutral-bg: #eaedf1; --control: #7b8796;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 8px; --r-md: 10px; --r-lg: 12px; --r-xl: 14px; --max: 1360px; --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-ui); }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: var(--r-sm); font: 600 17px/1.2 var(--font-ui); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--control); }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-good { color: var(--good); background: var(--good-bg); }
.pill-neutral { color: var(--muted); background: var(--neutral-bg); }
.pill-accent { color: var(--accent); background: var(--accent-soft); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; }
.top .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--accent-soft) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 750; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 15px; color: var(--muted); }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-block: 40px 48px; } }

/* Example report (mirrors the Monday email) */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; min-width: 0; }
.report-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.report-body { padding: 18px; display: grid; gap: 14px; }
.report h2 { font-size: 20px; line-height: 1.35; font-weight: 650; }
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.mini .q { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; align-items: center; }
.mini b { font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mini span.s { font-size: 13px; color: var(--muted); }
.ask { background: var(--raised); border-radius: var(--r-sm); padding: 10px 12px; font-size: 15px; }
.attn { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--bad); }
@media (max-width: 420px) { .minis { grid-template-columns: 1fr; } }

/* Sections */
section.band { padding-block: clamp(56px, 7vw, 96px); }
section.band.alt { background: var(--surface); }
.alt .card, .alt .steps li, .alt .faq details { background: var(--raised); }
section.band.cta { background: var(--accent-soft); }
.section-head { display: grid; gap: 12px; max-width: 52em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 720; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid3, .grid4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card h3 { font-size: 19px; line-height: 1.3; }
.card p { color: var(--muted); font-size: 16px; }
.card .ex { font-size: 14px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; font-variant-numeric: tabular-nums; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.check { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--good-bg); color: var(--good); font-weight: 700; font-size: 13px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; }
.faq details p { padding-bottom: 14px; color: var(--muted); }

/* Request form */
.signup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; gap: 24px; } }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label small { font-weight: 400; color: var(--muted); }
input { font: 400 16px/1.4 var(--font-ui); color: var(--ink); background: var(--surface); border: 1px solid var(--control); border-radius: var(--r-sm); min-height: 46px; padding: 10px 12px; width: 100%; }
.formnote { font-size: 14px; color: var(--muted); }
.need { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.stores { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.stores legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.opt { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 16px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--control); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); }
[hidden] { display: none !important; }
.done { background: var(--good-bg); color: var(--ink); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; }

footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 32px 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer .brand { font-size: 18px; }
footer .brand svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }

/* Trust strip under the hero (references put proof here; Noonsight has no customers to quote yet, so it states verifiable facts). */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding-block: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; }
.trust li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font-size: 15px; color: var(--muted); }
.trust b { color: var(--ink); }
@media (max-width: 860px) { .trust ul { grid-template-columns: 1fr; } }

/* Comparison with Google Analytics: a real table, so screen readers read row and column headers. */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: 16px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--raised); }
.compare thead th.us { color: var(--accent); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td { color: var(--muted); width: 39%; }
.compare td.us { color: var(--ink); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tbody th { padding-bottom: 4px; border-bottom: 0; }
  .compare td { padding-top: 4px; border-bottom: 0; }
  .compare td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
  .compare tr { border-bottom: 1px solid var(--line); padding-block: 6px; }
}

/* Pricing: one plan */
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; max-width: 520px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 48px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.includes li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }

/* Final call to action */
.closing { display: grid; gap: 18px; justify-items: start; }
.closing h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 720; }

/* Sign-up page */
.top-min .wrap { justify-content: space-between; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.stepper li { display: inline-flex; align-items: center; gap: 8px; }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--control); font-weight: 700; font-size: 13px; }
.stepper li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.stepper li[aria-current="step"] span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.signup-page { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 96px); }

/* Sign-up result and errors */
.form-error { background: var(--bad-bg); color: var(--bad); border-radius: var(--r-sm); padding: 10px 12px; font-size: 15px; font-weight: 600; }
.done-panel { display: grid; gap: 14px; align-content: start; outline: none; }
.done-panel .check { width: 40px; height: 40px; font-size: 20px; }
.done-panel h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
