/* Illinois Gutter Pros — brand blue & white, mobile-first, easy on older
   eyes: large type, big tap targets, high contrast, one action per screen.
   (Token names kept as --green* to avoid churn; values are the brand blue.) */

:root {
  --green: #0460d9;       /* Illinois Gutter Pros brand blue */
  --green-dark: #0349ab;  /* darker blue for hover */
  --green-soft: #e8f1fd;  /* light blue tint */
  --text: #14202b;
  --muted: #5c6b7a;
  --border: #dce3ea;
  --white: #ffffff;
  --bg: #f5f7f9;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); }
.header-inner {
  max-width: 540px; margin: 0 auto; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 800; font-size: 19px; color: var(--green); letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
}
.header-note { font-size: 13px; font-weight: 600; color: var(--muted); }

/* Layout */
.wrap { max-width: 540px; margin: 0 auto; padding: 0 18px; }

/* Hero background: real photo (/hero.jpg) layered over the SVG fallback,
   under a green overlay so white text stays readable. Drop a real gutter
   photo at public/hero.jpg and it takes over automatically; if it's
   missing the browser just skips it and shows the SVG. */
.hero {
  background:
    linear-gradient(180deg, rgba(9,33,66,0.52), rgba(6,25,52,0.72)),
    url("/hero.jpg"),
    url("/hero-bg.svg");
  background-size: cover;
  background-position: center;
  padding: 40px 18px 36px;
  text-align: center;
  color: var(--white);
}
.hero h1 { text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.hero-sub { text-shadow: 0 1px 6px rgba(0,0,0,0.30); }

h1 {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 auto 14px;
  max-width: 480px;
}
/* Highlighted phrase in the headline */
.hl { color: #7fb8ff; }

.hero-sub {
  font-size: 19px;
  line-height: 1.45;
  margin: 0 auto 22px;
  max-width: 430px;
  opacity: 0.97;
}

.hero-card { max-width: 420px; margin: 0 auto; text-align: left; }

/* Address autocomplete dropdown */
.ac-wrap { position: relative; margin-bottom: 12px; }
.ac-wrap input { margin-bottom: 0; }
.ac-list {
  list-style: none; margin: 0; padding: 4px;
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 10px 28px rgba(20,32,43,0.16);
  max-height: 260px; overflow-y: auto;
}
.ac-list li {
  padding: 12px; font-size: 15px; color: var(--text);
  border-radius: 7px; cursor: pointer;
}
.ac-list li:hover { background: var(--green-soft); }

/* A2P / TCPA consent checkbox */
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; line-height: 1.45; color: var(--muted);
  margin: 2px 0 14px; text-align: left; cursor: pointer;
}
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.consent a { color: var(--green); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(28, 42, 34, 0.06);
}

h2 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; }

label { display: block; font-size: 15px; font-weight: 600; margin: 8px 0 6px; }

input, select {
  width: 100%;
  padding: 15px;
  font-size: 17px; /* 16px+ stops iOS zoom-on-focus */
  border: 2px solid var(--border);
  border-radius: 11px;
  margin-bottom: 12px;
  color: var(--text);
  background: var(--white);
}
input:focus, select:focus { outline: none; border-color: var(--green); }

.btn-primary {
  width: 100%;
  padding: 17px;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: 11px;
  cursor: pointer;
  min-height: 54px;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.reassure { font-size: 16px; line-height: 1.5; color: var(--text); margin: 14px 0 0; text-align: center; font-weight: 500; }
/* Opposing-color highlight for important phrases (amber against the blue) */
.hl-op { color: #e0651f; font-weight: 700; }
.error { color: #b3261e; font-size: 15px; margin: 10px 0 0; font-weight: 600; }
.hidden { display: none; }

/* 3-step row under hero */
.steps-row { display: flex; gap: 10px; padding: 20px 0 4px; }
.mini-step {
  flex: 1; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted);
}
.mini-step .num {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin: 0 auto 8px;
  background: var(--green-soft); color: var(--green);
  border-radius: 50%; font-size: 17px; font-weight: 800;
}

/* Quiz */
.choice-list { display: grid; gap: 12px; margin-top: 8px; }
.choice {
  width: 100%; text-align: left;
  padding: 18px; font-size: 17px; font-weight: 600; color: var(--text);
  background: var(--white); border: 2px solid var(--border); border-radius: 11px;
  cursor: pointer; min-height: 56px;
}
.choice:hover { border-color: var(--green); background: var(--green-soft); }

/* Scanning */
.scan-card { padding: 22px; }
.scan-spinner {
  width: 44px; height: 44px; margin: 0 auto 12px;
  border: 5px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scan photo (their house) — the hook */
.scan-photo-wrap {
  position: relative;
  width: 100%; aspect-ratio: 5 / 3;
  border-radius: 12px; overflow: hidden;
  background: #16273a; margin-bottom: 16px;
}
.scan-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-photo-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; gap: 2px;
}
/* Sweeping scan line over the photo */
.scan-scanline {
  position: absolute; left: 0; right: 0; height: 40px; top: -40px;
  background: linear-gradient(180deg, rgba(4,96,217,0) 0%, rgba(90,160,255,0.6) 50%, rgba(4,96,217,0) 100%);
  pointer-events: none;
}
.scan-scanline.scanning { animation: sweep 1.5s ease-in-out infinite; }
@keyframes sweep { 0% { top: -40px; } 100% { top: 100%; } }

/* Personalized step checklist */
.scan-steps { list-style: none; margin: 0; padding: 0; }
.scan-steps li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 4px; font-size: 16px; font-weight: 600;
  color: #9aa8a0; opacity: 0.55; transition: opacity 0.25s, color 0.25s;
}
.scan-steps li.active, .scan-steps li.done { opacity: 1; color: var(--text); }
.scan-steps .tick {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  border: 2px solid var(--border); position: relative;
}
.scan-steps li.active .tick {
  border-color: var(--green); border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}
.scan-steps li.done .tick {
  background: var(--green); border-color: var(--green);
}
.scan-steps li.done .tick::after {
  content: ""; position: absolute; left: 8px; top: 4px;
  width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Report */
.report-eyebrow {
  font-size: 13px; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 6px;
}
/* Report photo + mapping-animation overlay */
.report-photo-wrap {
  position: relative; width: 100%; margin: 12px 0 14px;
  border-radius: 11px; overflow: hidden; border: 1px solid var(--border);
  background: #16273a;
}
.report-photo-wrap .house-photo {
  width: 100%; display: block; margin: 0; border: 0; border-radius: 0;
}
.map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-poly {
  fill: rgba(4,96,217,0.18); stroke: #4d9bff; stroke-width: 1.1;
  stroke-dasharray: 300; stroke-dashoffset: 300;
}
.map-overlay.animate .map-poly { animation: mapDraw 1.6s ease forwards; }
@keyframes mapDraw { to { stroke-dashoffset: 0; } }
.map-corners path { stroke: #8fc0ff; stroke-width: 1.6; fill: none; opacity: 0; }
.map-overlay.animate .map-corners path { animation: mapPulse 1.4s ease-in-out infinite; }
@keyframes mapPulse { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }
.map-scan { stroke: rgba(130,185,255,0.9); stroke-width: 2; opacity: 0; }
.map-overlay.animate .map-scan { animation: mapSweep 1.3s ease-in-out infinite; }
@keyframes mapSweep {
  0% { transform: translateY(0); opacity: 0.9; }
  90% { opacity: 0.9; }
  100% { transform: translateY(60px); opacity: 0; }
}

/* Settled state after the animation finishes: outline stays drawn, scan
   line and pulsing stop, and a "measured — enter your info" badge shows. */
.map-overlay.done .map-poly { stroke-dashoffset: 0; }
.map-overlay.done .map-corners path { opacity: 0.85; }
.map-overlay.done .map-scan { opacity: 0; }
.map-badge {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(16,72,40,0.86); color: #fff;
  font-size: 13px; font-weight: 700; line-height: 1.35;
  text-align: center; padding: 9px 12px;
}

/* Blur gate: numbers load blurred until contact info is entered */
.results { transition: filter 0.5s ease; }
.results.locked { filter: blur(10px); pointer-events: none; user-select: none; }
.finance { font-size: 13px; font-weight: 700; color: var(--green-dark); margin: 6px 0 0; }
.finance strong { color: var(--green); }

.unlock-gate { margin-top: 6px; }
.lock-line {
  text-align: center; font-weight: 800; font-size: 17px; margin: 0 0 12px;
  background: var(--green-soft); border: 1px dashed var(--green);
  border-radius: 10px; padding: 12px;
}
.post-unlock { text-align: center; }

.stat-row { display: flex; gap: 12px; margin: 16px 0; }
.stat { flex: 1; background: var(--green-soft); border-radius: 12px; padding: 16px; text-align: center; }
.stat.big { flex: 1.3; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--green-dark); margin: 0; }
.stat.big .stat-value { font-size: 26px; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 5px 0 0; }

.range-viz { margin-top: 6px; }
.range-bar { height: 16px; background: #e6ebe8; border-radius: 999px; position: relative; overflow: hidden; }
.range-band { position: absolute; top: 0; bottom: 0; background: var(--green); border-radius: 999px; min-width: 26px; }
.range-ends {
  display: flex; justify-content: space-between; font-size: 14px; color: var(--muted);
  margin-top: 7px; font-variant-numeric: tabular-nums;
}

/* Step label (quiz progress + gate) */
.step-label {
  font-size: 13px; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 6px;
}

/* Lead gate */
.gate-sub { color: var(--muted); font-size: 16px; margin: 0 0 14px; }
.gate-fields { display: grid; gap: 10px; margin-top: 6px; }
.micro-trust { font-size: 13px; color: var(--muted); margin: 12px 0 2px; }
.micro-urgent { font-size: 13px; color: var(--green-dark); font-weight: 700; margin: 2px 0 0; }

.trust { margin-top: 22px; }
.stars { color: #e8a300; font-size: 20px; letter-spacing: 2px; margin-bottom: 10px; }

/* Landing: on-your-side block + reviews + repeat CTA */
.side-card {
  background: var(--green-soft);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 20px;
}
.side-card h2 { color: var(--green-dark); margin-bottom: 8px; }
.side-card p { margin: 0; font-size: 16px; color: var(--text); }

.reviews-home { margin-top: 22px; }
.reviews-heading {
  font-size: 13px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 12px;
}
.reviews-home .review { background: var(--white); border: 1px solid var(--border); }

.reviews-report { margin-top: 4px; }
.reviews-report .review { background: var(--white); border: 1px solid var(--border); }

.cta-repeat { margin: 20px 0 8px; }
.review {
  margin: 0 0 10px; padding: 14px 16px;
  background: var(--green-soft); border-radius: 11px; font-size: 15px;
}
.review p { margin: 0 0 5px; }
.review footer { color: var(--muted); font-size: 14px; }

.check {
  width: 52px; height: 52px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--white);
  border-radius: 50%; font-size: 30px; font-weight: 800;
}

/* Header phone */
.header-phone { color: var(--green); font-weight: 800; font-size: 15px; text-decoration: none; }

/* Rating note next to stars */
.rating-note { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0; }

/* Product compare toggle on the report */
.product-toggle { display: flex; gap: 8px; margin: 14px 0 2px; }
.product-toggle button {
  flex: 1; padding: 10px 6px; font-size: 13px; font-weight: 700;
  border: 2px solid var(--border); border-radius: 9px;
  background: var(--white); color: var(--muted); cursor: pointer; min-height: 44px;
}
.product-toggle button.active { border-color: var(--green); color: var(--green); background: var(--green-soft); }

/* Accuracy disclaimer on the report */
.disclaimer {
  font-size: 13px; line-height: 1.5; color: var(--muted);
  background: #fff8e6; border: 1px solid #f2e2b6; border-radius: 10px;
  padding: 11px 13px; margin: 14px 0 0;
}

/* Footer */
.site-footer {
  max-width: 540px; margin: 0 auto; padding: 24px 18px 44px;
  font-size: 13px; color: var(--muted); text-align: center;
}
.footer-brand { font-weight: 700; color: var(--text); margin: 0 0 4px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--green); text-decoration: none; }
.footer-fine { font-size: 12px; opacity: 0.9; margin-top: 10px; }
.footer-links { margin-top: 8px; }

@media (min-width: 640px) {
  h1 { font-size: 36px; }
  .hero { padding: 60px 18px 52px; }
}
