/* CheckMyZipCode — one stylesheet for the whole site.
   Light theme. White background with gray gradients. Headlines: Inter, dark blue.
   Body: Merriweather. Buttons: solid dark red with bold white text (never a gradient). */

:root {
  --blue: #0B2D5B;
  --blue-deep: #071F40;
  --red: #9B1B1B;
  --red-deep: #7F1414;
  --ink: #1f2430;
  --muted: #5b6472;
  --line: #dde2e9;
  --gray-1: #f7f8fa;
  --gray-2: #eef1f5;
  --gray-3: #e3e7ed;
  --white: #ffffff;
  --radius: 12px;
  --wrap: 1080px;
  --head: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body: 'Merriweather', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--blue); line-height: 1.18; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Buttons: solid dark red, bold white text. Inter. */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--head);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  padding: 15px 28px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(155, 27, 27, 0.22);
  transition: background .12s ease, transform .12s ease, box-shadow .12s ease;
}
.btn:hover, .btn:focus-visible { background: var(--red-deep); color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(155, 27, 27, 0.3); }
.btn:active { transform: translateY(0); }
.btn-lg { font-size: 19px; padding: 18px 36px; }
.btn-sm { font-size: 15px; padding: 11px 20px; }
.btn-outline {
  display: inline-block; font-family: var(--head); font-weight: 700; font-size: 15px; line-height: 1.2;
  padding: 11px 20px; border-radius: 8px; border: 2px solid var(--blue); color: var(--blue); background: var(--white);
  text-decoration: none; text-align: center; cursor: pointer; transition: background .12s ease, color .12s ease;
}
.btn-outline:hover, .btn-outline:focus-visible { background: var(--blue); color: var(--white); }
.btn[data-offer-missing] { background: var(--gray-3); color: var(--muted); box-shadow: none; cursor: default; }
.btn[data-offer-missing]:hover { background: var(--gray-3); color: var(--muted); transform: none; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.brand-row { display: inline-flex; align-items: center; gap: 12px; }
.free-pill, .free-badge { display: inline-block; font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); background: #fbecec; border: 1px solid #f1cfcf; border-radius: 999px; padding: 4px 10px; line-height: 1.2; }
.free-badge { display: table; margin: -6px auto 14px; }
.free-line { font-family: var(--head); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.hero .kicker { font-family: var(--head); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand-word { font-family: var(--head); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--blue); line-height: 1; }
.brand-word b { color: var(--red); font-weight: 800; }
.site-nav { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { white-space: nowrap; text-decoration: none; color: var(--blue); font-family: var(--head); font-weight: 600; font-size: 15px; padding: 8px 13px; border-radius: 999px; }
.site-nav a:hover { background: var(--gray-2); }
.site-nav a.is-active { background: var(--blue); color: var(--white); }

/* ZIP form: the only thing the site ever asks for */
.zip-form { display: flex; gap: 10px; justify-content: center; max-width: 520px; margin: 0 auto; flex-wrap: wrap; }
.zip-form input {
  flex: 1 1 200px; min-width: 0; font-family: var(--head); font-size: 20px; font-weight: 600; letter-spacing: 0.06em;
  padding: 14px 16px; border: 2px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--white); outline: none;
}
.zip-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 45, 91, 0.12); }
.zip-form .btn { flex: 0 0 auto; }
.zip-err { color: var(--red); font-family: var(--head); font-weight: 600; font-size: 14px; margin: 10px 0 0; }
.zip-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.zip-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 10px 30px rgba(11, 45, 91, 0.08); }
.zip-box h2 { text-align: center; font-size: 24px; }
.zip-box .zip-note { text-align: center; }

/* Hero: white to gray gradient */
.hero { background: linear-gradient(180deg, var(--white) 0%, var(--gray-2) 100%); text-align: center; padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 820px; margin: 0 auto 16px; }
.hero .sub { max-width: 700px; margin: 0 auto 30px; font-size: 17px; color: var(--muted); }
.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.hero-services { margin: 26px 0 0; font-family: var(--head); font-size: 14px; color: var(--muted); }
.hero-services a { color: var(--blue); font-weight: 600; text-decoration: none; }
.hero-services a:hover { text-decoration: underline; }

/* Vertical + offer page heroes */
.v-hero { background: linear-gradient(180deg, var(--gray-1) 0%, var(--white) 100%); padding: 40px 0 28px; }
.v-hero h1 { max-width: 820px; }
.v-hero .sub { max-width: 760px; font-size: 17px; color: var(--muted); }
.crumb { font-family: var(--head); font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--blue); }
.zip-wrap { padding: 8px 0 36px; }

/* Sections */
.projects { padding: 52px 0 24px; }
.section-title { text-align: center; margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 28px 20px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-1) 100%);
  text-decoration: none; color: var(--ink); transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.card:hover { border-color: var(--blue); box-shadow: 0 12px 28px rgba(11, 45, 91, 0.12); transform: translateY(-2px); }
.card-icon { width: 56px; height: 56px; color: var(--red); }
.card-icon svg { width: 56px; height: 56px; }
.card-title { font-family: var(--head); font-size: 20px; font-weight: 800; color: var(--blue); }
.card-blurb { color: var(--muted); font-size: 15px; min-height: 52px; }
.card-btn { margin-top: 6px; padding: 12px 26px; font-size: 15px; }

.how { padding: 44px 0 24px; background: linear-gradient(180deg, var(--white) 0%, var(--gray-1) 100%); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.steps h3 { margin: 12px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.step-num { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue); color: var(--white); font-family: var(--head); font-weight: 800; font-size: 18px; }

.why { padding: 44px 0 16px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.why-list li { padding: 18px 20px; border-left: 4px solid var(--red); background: linear-gradient(90deg, var(--gray-1) 0%, var(--white) 100%); border-radius: 6px; }
.why-list h3 { margin-bottom: 4px; }
.why-list p { margin: 0; color: var(--muted); font-size: 15px; }

.benefits { padding: 40px 0 16px; }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit-list li { background: linear-gradient(180deg, var(--gray-1) 0%, var(--white) 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.benefit-list p { margin: 0; color: var(--muted); font-size: 15px; }

.faq-section { padding: 40px 0 60px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; background: var(--white); }
.faq summary { cursor: pointer; font-family: var(--head); font-weight: 700; color: var(--blue); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--red); flex: 0 0 auto; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.back-top { text-align: center; margin-top: 26px; }

/* Results (offer list rendered from the API) */
.results { margin-top: 8px; }
.results[hidden] { display: none; }
.results-head { text-align: center; margin: 26px 0 22px; }
.results-head h2 { margin-bottom: 6px; }
.results-head .where { font-family: var(--head); font-weight: 600; color: var(--muted); margin: 0; }
.results-head .where b { color: var(--blue); }
.results-change { font-family: var(--head); font-size: 14px; color: var(--muted); }
.results-change button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.results-group { margin: 26px 0 8px; }
.results-group h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 14px; }
.results-group h3 .g-icon { width: 30px; height: 30px; color: var(--red); }
.results-group h3 .g-icon svg { width: 30px; height: 30px; }
.results-group h3 .g-count { font-size: 14px; font-weight: 600; color: var(--muted); }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.offer {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-1) 100%);
}
.offer-name { font-family: var(--head); font-size: 19px; font-weight: 800; color: var(--blue); margin: 0 0 4px; }
.offer-name a { color: inherit; text-decoration: none; }
.offer-name a:hover { text-decoration: underline; }
.offer-tag { margin: 0; color: var(--muted); font-size: 15px; }
.offer-avail { display: inline-block; font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #1d6b2f; background: #e7f5ea; border-radius: 999px; padding: 4px 10px; margin-bottom: 8px; }
.offer-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.results-empty { text-align: center; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.results-loading { text-align: center; color: var(--muted); font-family: var(--head); padding: 20px; }
.results-error { text-align: center; color: var(--red); font-family: var(--head); font-weight: 600; padding: 20px; }

/* Offer page */
.o-hero { background: linear-gradient(180deg, var(--gray-2) 0%, var(--white) 100%); padding: 40px 0 20px; }
.o-hero .kicker { font-family: var(--head); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); margin: 0 0 8px; }
.o-hero .sub { max-width: 760px; font-size: 18px; color: var(--muted); }
.o-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; padding: 16px 0 48px; align-items: start; }
.o-main h2 { font-size: 24px; margin-top: 8px; }
.o-check { position: sticky; top: 16px; }
.o-check .zip-box h2 { font-size: 22px; }
.o-avail { text-align: center; margin: 0 0 14px; }
.o-avail .o-city { font-family: var(--head); font-weight: 700; color: var(--blue); }
.o-avail-pending { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.o-cta { width: 100%; display: block; }
.o-change { text-align: center; margin: 12px 0 0; font-family: var(--head); font-size: 14px; }
.o-change button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checklist li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--red); font-family: var(--head); font-weight: 800; }
.bestfor { background: linear-gradient(90deg, var(--gray-1) 0%, var(--white) 100%); border-left: 4px solid var(--blue); padding: 14px 18px; border-radius: 6px; margin: 0 0 20px; }
.bestfor strong { font-family: var(--head); color: var(--blue); }
.related { padding: 8px 0 56px; }
.related h2 { text-align: center; margin-bottom: 20px; }
.related .offer-list { grid-template-columns: repeat(2, 1fr); }

/* Static pages */
.page { padding: 44px 0 64px; }
.contact-email { margin: 20px 0; }

/* Footer: gray gradient */
.site-footer { background: linear-gradient(180deg, var(--gray-1) 0%, var(--gray-3) 100%); border-top: 1px solid var(--line); padding: 36px 0 40px; font-size: 13px; color: var(--muted); }
.site-footer .brand { margin-bottom: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; }
.footer-links a { color: var(--blue); font-family: var(--head); font-weight: 600; text-decoration: none; font-size: 13px; }
.footer-links a:hover { text-decoration: underline; }
.site-footer p { margin: 0 0 10px; line-height: 1.6; }

@media (max-width: 860px) {
  h1 { font-size: 32px; }
  h2 { font-size: 25px; }
  .cards, .steps, .benefit-list { grid-template-columns: 1fr 1fr; }
  .o-body { grid-template-columns: 1fr; }
  .o-check { position: static; order: -1; }
  .related .offer-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  h1 { font-size: 28px; }
  .hero { padding: 44px 0 40px; }
  .cards, .steps, .benefit-list, .why-list { grid-template-columns: 1fr; }
  .card-blurb { min-height: 0; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav { width: 100%; }
  .offer { grid-template-columns: 1fr; }
  .offer-actions { justify-content: flex-start; }
  .zip-form .btn { flex: 1 1 100%; }
  .btn-lg { width: 100%; }
}
