/* ============================================================
   Bath Price Check — lander styles
   Mobile-first. One accent, big targets, zero clutter
   (quarter-second-test discipline: the H1 + ZIP + CTA are the page).
   ============================================================ */
:root {
  --ink: #182830;
  --ink-soft: #46606c;
  --line: #dde7ec;
  --bg: #f4f8fa;
  --card: #ffffff;
  --teal: #0e7c86;
  --teal-soft: #e3f2f4;
  --cta: #f26a1b;
  --cta-press: #d95a10;
  --ok: #178a4c;
  --err: #cc3d2e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(24, 40, 48, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }

/* ---------------- Top bar ---------------- */
.top-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.top-bar__brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 700; letter-spacing: -0.2px;
  color: var(--ink); text-decoration: none;
}
.top-bar__brand b { color: var(--teal); font-weight: 800; }
.top-bar__mark { width: 26px; height: 26px; color: var(--teal); }
.top-bar__note { font-size: 12.5px; color: var(--ink-soft); text-align: right; white-space: nowrap; flex: none; }
/* Small screens: drop the "Updated <month> <year> ·" prefix so the note stays one line. */
@media (max-width: 620px) {
  .top-bar__meta { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  background:
    linear-gradient(160deg, rgba(10, 46, 54, 0.86) 0%, rgba(14, 78, 88, 0.66) 55%, rgba(10, 46, 54, 0.80) 100%),
    url('/assets/hero-bath.jpg?v=2') center / cover no-repeat,
    linear-gradient(160deg, #0a2e36, #0e4e58);
  color: #fff;
  padding: 34px 16px 46px;
}
.hero__inner { max-width: 1060px; margin: 0 auto; display: grid; gap: 26px; }
.hero__eyebrow {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: #9fd6dc; margin-bottom: 10px;
}
.hero__title { font-size: clamp(28px, 6vw, 42px); line-height: 1.14; letter-spacing: -0.5px; font-weight: 800; }
.hero__title em { font-style: normal; color: #ffc9a3; }
.hero__subhead { margin-top: 12px; font-size: 16.5px; color: #d9e8eb; max-width: 46ch; }
.hero__points { list-style: none; margin-top: 16px; display: grid; gap: 7px; }
.hero__points li { padding-left: 26px; position: relative; font-size: 15px; color: #cfe4e8; }
.hero__points li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16); color: #aef0d9;
  font-size: 12px; line-height: 18px; text-align: center; font-weight: 700;
}

/* ---------------- Form card ---------------- */
.form-card {
  background: var(--card); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 18px 20px; max-width: 520px; width: 100%; justify-self: center;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-progress { margin-bottom: 16px; }
.form-progress__track { height: 6px; border-radius: 3px; background: var(--teal-soft); overflow: hidden; }
.form-progress__fill { height: 100%; width: 14%; background: var(--teal); border-radius: 3px; transition: width 0.35s ease; }
.form-progress__row { display: flex; justify-content: space-between; margin-top: 6px; }
.form-progress__label, .form-progress__pct { font-size: 12.5px; color: var(--ink-soft); }

.form-step { border: 0; }
.form-step__title { font-size: 21px; font-weight: 800; letter-spacing: -0.2px; margin-bottom: 6px; }
.form-step__sub { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }

/* Fields */
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field__label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
.field__input {
  width: 100%; min-height: 54px; padding: 12px 14px;
  font-size: 17px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field__input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.15); }
.field__input--zip { font-size: 22px; letter-spacing: 2px; text-align: center; font-weight: 700; }
.field__input.is-valid { border-color: var(--ok); }
.field__input.is-invalid { border-color: var(--err); }
.field__note { margin-top: 7px; font-size: 14px; color: var(--ok); font-weight: 600; }
.field__error { margin-top: 7px; font-size: 13.5px; color: var(--err); }

/* Option tiles */
.tile-grid { display: grid; gap: 10px; margin-bottom: 6px; }
.tile-grid--two { grid-template-columns: 1fr 1fr; }
.tile { display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile__label {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 58px; padding: 12px 14px;
  font-size: 16.5px; font-weight: 700; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  transition: all 0.12s ease;
}
.tile__label b { color: var(--teal); margin: 0 4px; }
.tile:hover .tile__label { border-color: var(--teal); }
.tile input:checked + .tile__label {
  border-color: var(--teal); background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px var(--teal);
}
.tile input:focus-visible + .tile__label { box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 26px;
  font-size: 18px; font-weight: 800; letter-spacing: 0.1px;
  border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
  transition: background 0.12s ease, transform 0.06s ease;
}
.btn--primary { background: var(--cta); color: #fff; box-shadow: 0 6px 18px rgba(242, 106, 27, 0.35); }
.btn--primary:hover { background: var(--cta-press); }
.btn--primary:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn--ghost {
  background: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 600;
  min-height: 44px; padding: 8px 12px; margin-top: 8px;
}
.btn--ghost:hover { color: var(--ink); }
.js-submit.is-loading { opacity: 0.7; pointer-events: none; }
.js-submit.is-loading span::after { content: '…'; }

.trust-chip {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 12px; font-size: 13px; color: var(--ink-soft);
}
.trust-chip svg { width: 15px; height: 15px; color: var(--ok); flex: none; }

/* Consent */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; cursor: pointer; }
.consent input { margin-top: 2px; width: 20px; height: 20px; flex: none; accent-color: var(--teal); }
.consent__label { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.consent__label a { color: var(--teal); }

/* Matching interstitial */
.form-matching { padding: 8px 4px 14px; }
.form-matching__title { font-size: 21px; font-weight: 800; margin-bottom: 16px; }
.form-matching__row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0; font-size: 15.5px; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.form-matching__row:last-child { border-bottom: 0; }
.form-matching__dot {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 2.5px solid var(--line); position: relative;
}
.form-matching__row.is-active .form-matching__dot {
  border-color: var(--teal); border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
.form-matching__row.is-active { color: var(--ink); font-weight: 600; }
.form-matching__row.is-done { color: var(--ink); }
.form-matching__row.is-done .form-matching__dot { border-color: var(--ok); background: var(--ok); }
.form-matching__row.is-done .form-matching__dot::after {
  content: '✓'; position: absolute; inset: 0; color: #fff;
  font-size: 12px; line-height: 15px; text-align: center; font-weight: 800;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.form-success { text-align: center; padding: 18px 6px 12px; }
.form-success__badge {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 30px; font-weight: 800; line-height: 58px;
}
.form-success__title { font-size: 23px; font-weight: 800; margin-bottom: 8px; }
.form-success__body { font-size: 15.5px; color: var(--ink-soft); }
.form-success__hint { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); background: var(--teal-soft); border-radius: 10px; padding: 10px 12px; }

/* ---------------- Bands ---------------- */
.band { padding: 44px 16px; }
.band--tint { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__inner { max-width: 860px; margin: 0 auto; }
.band__title { font-size: clamp(22px, 4.5vw, 28px); font-weight: 800; letter-spacing: -0.3px; margin-bottom: 22px; }
.band__cta-row { margin-top: 26px; text-align: center; }

.hiw { display: grid; gap: 18px; }
.hiw__item h3 { font-size: 17.5px; margin: 8px 0 4px; }
.hiw__item p { font-size: 15px; color: var(--ink-soft); }
.hiw__num {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 16px;
  align-items: center; justify-content: center;
}

.price-factors { list-style: none; display: grid; gap: 12px; }
.price-factors li {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-size: 15px; color: var(--ink-soft);
}
.price-factors li b { color: var(--ink); display: block; margin-bottom: 2px; font-size: 15.5px; }

/* ---------------- Footer ---------------- */
.footer { background: #10202a; color: #93a9b3; padding: 34px 16px 42px; }
.footer__inner { max-width: 860px; margin: 0 auto; }
.footer__disclosure { font-size: 12.5px; line-height: 1.6; margin-bottom: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.footer__links a { color: #c4d6dd; font-size: 13px; }
.footer__copy { font-size: 12.5px; }

/* ---------------- Sticky CTA (mobile) ---------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta a {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; border-radius: 12px;
  background: var(--cta); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none;
}

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Desktop ---------------- */
@media (min-width: 900px) {
  .top-bar { padding: 14px 32px; }
  .hero { padding: 56px 32px 64px; }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: start; gap: 48px; }
  .form-card { padding: 28px 26px 24px; position: sticky; top: 24px; }
  .hiw { grid-template-columns: repeat(3, 1fr); }
  .sticky-cta { display: none; }
}
