/* ─────────── Tokens ─────────── */
:root {
  --bg:        #eef3f4;
  --bg-top:    #ffffff;
  --surface:   #ffffff;
  --border:    #dde7e9;
  --ink:       #0c1f29;
  --muted:     #51646d;
  --brand:     #0b4f55;
  --cta:       #0c9466;
  --cta-press: #0a7d57;
  --amber:     #b9760a;
  --ring:      rgba(12,148,102,.4);
}

/* ─────────── Reset / base ─────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(125% 55% at 50% -8%, var(--bg-top) 0%, var(--bg) 62%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

/* ─────────── Header ─────────── */
.site-header {
  width: 100%; max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 18px 22px 4px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 23px; height: 23px; display: block; flex: 0 0 auto; }
.brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 17.5px; letter-spacing: -0.02em; color: var(--brand);
}
.brand-tag {
  margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); display: inline-flex; align-items: center; gap: 5px;
}
.brand-tag::before {
  content: ''; width: 12px; height: 12px; background: var(--cta);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 11V8a6 6 0 0112 0v3' fill='none' stroke='black' stroke-width='2'/%3E%3Crect x='4' y='11' width='16' height='9' rx='2' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 11V8a6 6 0 0112 0v3' fill='none' stroke='black' stroke-width='2'/%3E%3Crect x='4' y='11' width='16' height='9' rx='2' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ─────────── Layout ─────────── */
/* Flex column so mobile can show the ZIP gate before the rate card without moving
   the DOM (desktop's grid overrides this and places via grid-template-areas). */
.wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 14px 22px 40px; display: flex; flex-direction: column; }
.headline  { order: 1; }
.subhead   { order: 2; }
.cta-card  { order: 3; }
.rate-card { order: 4; }

/* ─────────── Headline ─────────── */
.headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; letter-spacing: -0.032em; line-height: 1.06;
  font-size: clamp(29px, 8.4vw, 39px); margin: 10px 0 0; color: var(--ink);
  text-wrap: balance;
}
.headline em { font-style: normal; color: var(--cta); }
.subhead {
  margin: 13px 0 0; font-size: clamp(15px, 4.1vw, 17px); font-weight: 500;
  color: var(--muted); line-height: 1.5; max-width: 38ch;
}

/* ─────────── Rate card ("What homeowners pay" — static visual) ─────────── */
.rate-card {
  display: block; margin: 24px 0 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 20px 20px 18px;
  box-shadow: 0 1px 2px rgba(12,31,41,.04), 0 22px 46px -20px rgba(12,31,41,.28);
}
.rc-head {
  margin: 0 0 18px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.rc-head mark { background: #cfe6ef; color: var(--brand); padding: 2px 5px; border-radius: 4px; }
.rc-row + .rc-row { margin-top: 18px; }
.rc-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rc-name { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.rc-row-new .rc-name { font-weight: 800; }
.rc-amt { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rc-per { font-size: .62em; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.rc-amt-old { font-size: 21px; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.rc-amt-new { font-size: 27px; color: var(--cta); }
.rc-amt-new .rc-per { color: var(--cta); }
.rc-bar { height: 14px; border-radius: 999px; background: #dfe6f2; margin-top: 11px; }
.rc-bar-wrap { display: flex; align-items: center; gap: 11px; margin-top: 11px; }
/* Green bar width ≈ $50 / $279.50 of the full gray bar */
.rc-bar-new { flex: 0 0 18%; margin-top: 0; background: var(--cta); transform-origin: left center; }
.rc-pct { font-size: 14.5px; font-weight: 800; color: var(--cta); letter-spacing: -.01em; }
.rc-keep {
  margin-top: 20px; display: flex; align-items: center; gap: 14px;
  background: #e9f7f1; border-radius: 14px; padding: 14px 16px;
}
.rc-keep-icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; background: var(--cta); position: relative; }
.rc-keep-icon::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v14M6 12l6 6 6-6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v14M6 12l6 6 6-6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.rc-keep-label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.rc-keep-amt {
  display: block; font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 25px; font-weight: 800; line-height: 1.15; color: var(--ink); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.rc-keep-amt em { font-style: normal; font-family: 'Hanken Grotesk', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0; }

/* ─────────── Qualifier chips ─────────── */
.quals { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quals li {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 600; color: #2c3e46;
  padding: 8px 12px 8px 11px; border-radius: 11px;
}
.quals li::before {
  content: ''; width: 15px; height: 15px; flex: 0 0 auto; background: var(--cta);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ─────────── ZIP gate card ─────────── */
.cta-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 18px 18px 15px; margin: 22px 0 0;
  box-shadow: 0 1px 2px rgba(12,31,41,.04), 0 20px 44px -22px rgba(12,31,41,.26);
}
.zip-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 8px; letter-spacing: -.005em; }
.zip-input {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 56px; padding: 0 16px; margin: 0;
  font-family: 'Hanken Grotesk', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: .14em;
  text-align: center; color: var(--ink); background: var(--bg);
  border: 2px solid #c5d4d8; border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.zip-input::placeholder { color: var(--muted); font-weight: 600; letter-spacing: .04em; opacity: .8; }
.zip-input:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 4px var(--ring); }
.zip-input[aria-invalid="true"] { border-color: #d4493a; box-shadow: 0 0 0 4px rgba(212,73,58,.16); }
.zip-error { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: #c23b2e; }
.cta-card .cta { margin-top: 12px; }
.cta-card .assure { margin: 12px 0 0; }

/* ─────────── CTA ─────────── */
.cta {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .45em;
  width: 100%; min-height: 60px; padding: 17px 24px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(18px, 5vw, 21px); letter-spacing: .005em;
  color: #fff; background: var(--cta); border-radius: 15px;
  box-shadow: 0 16px 28px -10px rgba(12,148,102,.55), 0 2px 0 rgba(0,0,0,.04);
  transition: transform .12s ease, box-shadow .25s ease, background .2s ease;
}
.cta:hover { background: var(--cta-press); }
.cta:active { transform: translateY(1px) scale(.995); box-shadow: 0 8px 16px -8px rgba(12,148,102,.5); }
.cta-arrow { width: .95em; height: .95em; background: currentColor; transition: transform .25s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.cta:hover .cta-arrow { transform: translateX(4px); }
.assure { margin: 14px 2px 0; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.assure::before {
  content: ''; width: 14px; height: 14px; flex: 0 0 auto; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 11V8a6 6 0 0112 0v3' fill='none' stroke='black' stroke-width='2'/%3E%3Crect x='4' y='11' width='16' height='9' rx='2' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 11V8a6 6 0 0112 0v3' fill='none' stroke='black' stroke-width='2'/%3E%3Crect x='4' y='11' width='16' height='9' rx='2' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ─────────── Footer ─────────── */
footer { margin-top: 30px; padding: 24px 22px 30px; border-top: 1px solid var(--border); }
.footer-inner { width: 100%; max-width: 480px; margin: 0 auto; }
footer p { margin: 0 0 9px; font-size: 12px; line-height: 1.55; color: var(--muted); }
footer a { color: var(--muted); text-decoration: underline; }
.footer-disclaimer { color: #8595a0; font-size: 11.5px; margin-bottom: 0; }

/* ─────────── Sticky mobile CTA ─────────── */
#sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(12,31,41,.1);
  transform: translateY(130%); transition: transform .32s cubic-bezier(.4,0,.2,1);
}
#sticky-cta.visible { transform: translateY(0); }
#sticky-cta .cta { min-height: 52px; padding: 13px 20px; font-size: 18px; box-shadow: 0 10px 20px -10px rgba(12,148,102,.6); }
@media (min-width: 760px) { #sticky-cta { display: none; } }
@media (max-width: 759px) { body { padding-bottom: 80px; } }

/* ─────────── Carrier logo strip (all viewports) ─────────── */
.section-inner { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.carriers { padding: 30px 0 6px; }
.carriers-title {
  margin: 0 0 22px; text-align: center;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.carriers-row {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 18px 30px; flex-wrap: wrap;
}
.carriers-row img {
  display: block; width: auto;
  filter: grayscale(1); opacity: .6;
  transition: filter .2s ease, opacity .2s ease;
}
.carriers-row li:hover img { filter: none; opacity: 1; }
/* Optical balance — wide wordmarks smaller, tall marks larger */
.carriers-row img[src*="progressive"]   { height: 19px; }
.carriers-row img[src*="allstate"]      { height: 22px; }
.carriers-row img[src*="libertymutual"] { height: 29px; }
.carriers-row img[src*="farmers"]       { height: 38px; }
.carriers-row img[src*="nationwide"]    { height: 20px; }

/* ─────────── Desktop-depth sections (hidden on mobile — flow stays untouched) ─────────── */
.dx { display: none; }

@media (min-width: 760px) {
  .dx { display: block; }

  .section-inner { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 36px; }
  .dx section { padding: 64px 0; }
  .section-head h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800; letter-spacing: -0.028em; line-height: 1.08;
    font-size: clamp(28px, 3.4vw, 38px); margin: 0; color: var(--ink);
    text-wrap: balance;
  }
  .section-head p { margin: 12px 0 0; font-size: 16px; font-weight: 500; color: var(--muted); max-width: 34ch; }

  /* Carrier logo strip — desktop sizing (base styles live above, outside this query) */
  .carriers { padding: 44px 0 52px; }
  .carriers-title { font-size: 12.5px; letter-spacing: .14em; margin-bottom: 30px; }
  .carriers-row { gap: clamp(32px, 5vw, 64px); }
  .carriers-row img[src*="progressive"]   { height: 23px; }
  .carriers-row img[src*="allstate"]      { height: 27px; }
  .carriers-row img[src*="libertymutual"] { height: 36px; }
  .carriers-row img[src*="farmers"]       { height: 46px; }
  .carriers-row img[src*="nationwide"]    { height: 24px; }

  /* How it works — white band, numbered editorial steps */
  .hiw { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .hiw-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 32px; }
  .hiw-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; }
  .step-num {
    width: 46px; height: 46px; border-radius: 999px;
    display: grid; place-items: center;
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 19px;
    color: var(--cta); background: #e9f7f1;
  }
  .hiw-steps h3 {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
    font-size: 19px; letter-spacing: -0.015em; margin: 0 0 5px; color: var(--ink);
  }
  .hiw-steps li p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; max-width: 46ch; }

  /* Testimonials — one featured quote, two supporting */
  .quote-grid { margin-top: 36px; display: grid; gap: 20px; }
  .quote { margin: 0; border-radius: 18px; padding: 26px 26px 24px; position: relative; }
  .quote { background: var(--surface); border: 1px solid var(--border); }
  .quote-featured { background: #e9f7f1; border-color: #cdeadd; }
  .stars { display: block; color: var(--amber); font-size: 14px; letter-spacing: .18em; margin-bottom: 12px; }
  .quote blockquote {
    margin: 0; font-size: 16.5px; font-weight: 500; line-height: 1.55; color: var(--ink);
    text-wrap: pretty;
  }
  .quote-featured blockquote {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
    font-size: clamp(19px, 2vw, 23px); letter-spacing: -0.015em; line-height: 1.34;
  }
  .quote figcaption { margin-top: 16px; display: flex; align-items: baseline; gap: 10px; }
  .q-name { font-weight: 800; font-size: 14px; color: var(--ink); }
  .q-meta { font-size: 13px; font-weight: 600; color: var(--muted); }
  .quote-note { margin: 22px 0 0; font-size: 12.5px; font-weight: 500; color: #8595a0; }

  /* FAQ */
  .faq { border-top: 1px solid var(--border); }
  .faq-list { margin-top: 36px; }
  .faq-list details { border-bottom: 1px solid var(--border); }
  .faq-list details:first-child { border-top: 1px solid var(--border); }
  .faq-list summary {
    cursor: pointer; list-style: none; padding: 18px 36px 18px 2px; position: relative;
    font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; color: var(--ink);
  }
  .faq-list summary::-webkit-details-marker { display: none; }
  .faq-list summary::after {
    content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px;
    transform: translateY(-50%); background: var(--muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform .2s ease;
  }
  .faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
  .faq-list details p { margin: 0; padding: 0 2px 20px; font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 62ch; }

  /* Final CTA band */
  .final-cta { background: var(--brand); }
  .final-cta .section-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
  .final-copy h2 {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
    font-size: clamp(28px, 3.2vw, 36px); letter-spacing: -0.025em; margin: 0; color: #f4faf9;
  }
  .final-copy p { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: #9ec4c1; }
  .final-cta .cta { width: auto; flex: 0 0 auto; padding: 17px 32px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.45); }

  /* Footer loses its top border where the dark band sits flush above it */
  .dx + footer { border-top: 0; margin-top: 0; }
}

/* ─────────── Tablet (≥760px) — wider single column ─────────── */
@media (min-width: 760px) {
  .site-header, .wrap, .footer-inner { max-width: 620px; }
  .wrap { padding-bottom: 56px; }
}

/* ─────────── Desktop (≥980px) — two-column hero, no HTML reorder ─────────── */
@media (min-width: 980px) {
  .site-header { max-width: 1080px; padding: 26px 36px 6px; }
  .brand-name { font-size: 19px; }

  .wrap {
    max-width: 1080px; padding: 40px 36px 44px;
    display: grid; column-gap: clamp(48px, 6vw, 88px);
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    grid-template-areas:
      "headline cta"
      "subhead  cta"
      "rate     rate";
    grid-template-rows: auto 1fr auto;
    align-items: start;
  }
  .headline  { grid-area: headline; font-size: clamp(42px, 4.5vw, 56px); margin-top: 4px; }
  .subhead   { grid-area: subhead; font-size: 18.5px; max-width: 42ch; margin-top: 16px; }

  /* ZIP gate moves to the right column, top-aligned with the headline */
  .cta-card  { grid-area: cta; align-self: start; margin: 10px 0 0; padding: 28px 26px 22px; }
  .cta-card .zip-label { font-size: 15px; }

  /* Rate card spans both columns — wider, centered under the hero pair */
  .rate-card { grid-area: rate; justify-self: center; width: 100%; max-width: 720px; margin: 48px 0 0; padding: 26px 30px 24px; }

  .hiw .section-inner,
  .faq .section-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 72px; align-items: start; }
  .hiw-steps, .faq-list { margin-top: 6px; }
  .quote-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-auto-rows: 1fr; }
  .quote-featured { grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; padding: 34px 34px 30px; }

  .footer-inner { max-width: 1080px; }
  footer { padding-left: 36px; padding-right: 36px; }
}

/* ─────────── Motion ─────────── */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.014); } }
@keyframes grow-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Sonar ping on the empty ZIP field — the page's first action. The ring starts
   tight and visible, then expands and fades; the border flashes to CTA green at
   the same beat. Runs only while untouched: typing hides the placeholder, focus
   and the error state opt out below. */
@keyframes zip-beckon {
  0%   { border-color: #c5d4d8; box-shadow: 0 0 0 0 rgba(12,148,102,.4); }
  45%  { border-color: var(--cta); }
  70%  { border-color: #c5d4d8; box-shadow: 0 0 0 12px rgba(12,148,102,0); }
  100% { border-color: #c5d4d8; box-shadow: 0 0 0 0 rgba(12,148,102,0); }
}
/* Horizontal shake when the CTA is tapped without a valid ZIP. */
@keyframes zip-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: no-preference) {
  /* `both` fill keeps the final state visible even if another animation later wins the cascade. */
  .reveal { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
  .d0 { animation-delay: .02s; } .d1 { animation-delay: .09s; } .d2 { animation-delay: .17s; }
  .d3 { animation-delay: .26s; } .d4 { animation-delay: .36s; } .d5 { animation-delay: .46s; } .d6 { animation-delay: .54s; }
  /* Attention pulse only once a valid ZIP is entered (.cta-ready set in scripts.js). */
  .cta-pulse.cta-ready { animation: breathe 2.6s ease-in-out .6s infinite; }
  .zip-input:placeholder-shown:not(:focus):not([aria-invalid="true"]) {
    animation: zip-beckon 2.6s cubic-bezier(.25,1,.5,1) 1.4s infinite;
  }
  .zip-shake { animation: zip-shake .38s cubic-bezier(.36,.07,.19,.97); }
  /* Green savings bar sweeps in after the card reveal */
  .rc-bar-new { animation: grow-bar .9s cubic-bezier(.16,1,.3,1) .75s both; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
