/* ==========================================================================
   Stonebridge Financial — Direct mail landing page
   Design tokens mirror stonebridgefi.org (css/styles.css :root)
   ========================================================================== */

:root {
  /* Color */
  --bg: #FFFFFF;
  --bg-2: #F4F5F7;
  --bg-3: #EDEFF3;
  --ink: #0B0D12;
  --ink-2: #14171F;
  --ink-3: #1D212B;
  --text: #1F1F1F;
  --text-2: #5A6070;
  --text-3: #6B7280;
  --line: #E4E7EC;
  --line-2: #D3D7DE;
  --field-border: #878E9B; /* input outlines: 3.3:1 on white */
  --blue: #1847ED;
  --blue-deep: #0D36C5;
  --blue-hover: #1340D6;
  --blue-tint: #E9EDFF;
  --blue-tint-2: #D6DEFF;
  --sky-top: #06407A;
  --sky-bottom: #094F87;
  --on-dark: #FFFFFF;
  --on-dark-2: #B3B9C6;
  --star: #FFB800;
  --success: #16A34A;
  --success-text: #15803D; /* 5:1 on white for small text */
  --success-bg: #EAF7EE;
  --error: #DC2626;
  --error-bg: #FDECEC;

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-h1: clamp(2.25rem, 1.35rem + 3.3vw, 3.75rem);
  --fs-h2: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  --fs-h3: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);

  /* Space (4pt rhythm) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --container: 1200px;
  --nav-h: 76px;

  /* Shape + depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 13, 18, 0.06), 0 1px 3px rgba(11, 13, 18, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 13, 18, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 13, 18, 0.18);
  --shadow-blue: 0 16px 40px rgba(24, 71, 237, 0.28);

  /* Motion */
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 600ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layers */
  --z-bar: 90;
  --z-nav: 100;
  --z-toast: 1000;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
strong { font-weight: 600; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.hero__copy :focus-visible, .cta :focus-visible, .footer :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: calc(var(--z-nav) + 10);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.028em;
  color: var(--ink); text-wrap: balance;
}
.lead { font-size: var(--fs-lead); line-height: 1.55; }
.eyebrow {
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--blue); margin-bottom: var(--s-4);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bg-h: #22262F;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0.875rem 1.5rem;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  touch-action: manipulation; cursor: pointer;
}
.btn:hover { background: var(--btn-bg-h); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--blue); --btn-bg-h: var(--blue-hover); box-shadow: 0 8px 24px rgba(24, 71, 237, 0.22); }
.btn--primary:hover { box-shadow: var(--shadow-blue); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bg-h: #EDEFF3; }
.btn--ghost { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bg-h: var(--bg-2); border-color: var(--line-2); }
.btn--sm { min-height: 44px; padding: 0.625rem 1.125rem; font-size: 0.9375rem; }
.btn--lg { min-height: 60px; padding: 1.125rem 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading svg { opacity: 0; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.btn--white.is-loading::after { border-color: rgba(11, 13, 18, 0.2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
/* spin.js line animations used by the platform's submit spinner (were in the old /common/css/main.min.css) */
@keyframes spinner-line-fade-more { 0%, 100% { opacity: 0; } 1% { opacity: 1; } }
@keyframes spinner-line-fade-quick { 0%, 39%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes spinner-line-fade-default { 0%, 100% { opacity: 0.22; } 1% { opacity: 1; } }
@keyframes spinner-line-shrink { 0%, 25%, 100% { transform: scale(0.5); opacity: 0.25; } 26% { transform: scale(1); opacity: 1; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: var(--nav-h); display: flex; align-items: center;
  /* Solid by default, so the header stays readable even if mailer.js is blocked */
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
/* Transparent over the dark photo / title band until the page scrolls (mailer.js adds .js and .is-scrolled) */
.js .nav:not(.is-scrolled) {
  color: #fff; background: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.nav__logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.nav__logo img { width: 150px; height: auto; }
.nav__logo .logo-light { display: none; }
.js .nav:not(.is-scrolled) .logo-light { display: block; }
.js .nav:not(.is-scrolled) .logo-dark { display: none; }
.nav__call { display: flex; align-items: center; gap: var(--s-4); }
.nav__call-label { display: none; font-size: var(--fs-small); font-weight: 500; opacity: 0.9; }
.js .nav:not(.is-scrolled) .nav__phone { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bg-h: #EDEFF3; box-shadow: none; }
.nav__phone { padding-inline: 0.875rem 1.125rem; font-variant-numeric: tabular-nums; }
.nav :focus-visible { outline-color: var(--blue); }
.js .nav:not(.is-scrolled) :focus-visible { outline-color: #fff; }

@media (max-width: 359px) {
  .nav__inner { gap: var(--s-3); }
  .nav__logo img { width: 124px; }
  .nav__phone { gap: 6px; padding-inline: 0.75rem; font-size: 0.8125rem; }
  .nav__phone svg { width: 16px; height: 16px; }
}
@media (min-width: 480px) {
  .nav__logo img { width: 177px; }
}
@media (min-width: 760px) {
  .nav__logo img { width: 195px; }
  .nav__call-label { display: inline; }
}

/* ---------- Rating ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 14px; height: 14px; }
.google-g { width: 16px; height: 16px; flex: none; }

.rating-pill {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 26px; padding: 0.125rem 0.6875rem 0.125rem 0.5rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff;
  font-size: var(--fs-xs); font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.rating-pill:hover { background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.6); }
.rating-pill .google-g { width: 12px; height: 12px; }
.rating-pill .stars { gap: 1px; }
.rating-pill .stars svg { width: 11px; height: 11px; }
.rating-pill__muted { opacity: 0.85; font-weight: 400; }
.rating-pill--light { background: var(--bg-2); border-color: var(--line); color: var(--text); }
.rating-pill--light:hover { background: var(--bg-3); border-color: var(--line-2); }
.rating-pill--light .rating-pill__muted { color: var(--text-2); opacity: 1; }

/* ==========================================================================
   Hero
   Mobile: copy on the sky → photo → offer card overlapping the photo
   Desktop: full-bleed photo, copy left, offer card right (like .org)
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter);
  grid-template-rows: auto min(66.6vw, 440px) auto;
  background: var(--bg);
}
.hero__media {
  /* Photo sits this far above the bottom of its band, so she rises behind the copy.
     Must stay below the card overlap so the photo's bottom edge is hidden by the card. */
  --photo-lift: calc(min(10.8vw, 71.5px) - 30px);
  grid-column: 1 / -1; grid-row: 1 / 3;
  position: relative; overflow: hidden; z-index: -1;
  /* Bottom stop matches the photo's lower sky, which shows beside the card under the lifted photo */
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 50%, #5A93BE 88%);
}
.hero__img {
  position: absolute; left: 0; right: 0; bottom: var(--photo-lift);
  width: 100%; height: calc(min(66.6vw, 440px) + 48px);
  object-fit: cover; object-position: 50% 12%;
  /* Feather both edges: the top into the copy, the bottom into the sky beside the card */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 18, 0.35) 0%, rgba(11, 13, 18, 0.08) 180px, rgba(11, 13, 18, 0) 320px);
}
.hero__copy {
  grid-column: 2; grid-row: 1;
  padding: calc(var(--nav-h) + var(--s-5)) 0 var(--s-5);
  color: #fff;
}
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(11, 13, 18, 0.18);
}
.hero__title strong { font-weight: 700; }
.hero__lead { margin-top: var(--s-5); max-width: 32ch; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 14px rgba(11, 13, 18, 0.35); }
.hero__proof { display: none; margin-top: var(--s-5); }
.offer-card__proof { margin-bottom: var(--s-3); }

.hero__card-wrap {
  grid-column: 2; grid-row: 3;
  /* Pulled up over the photo: the card starts at her mid-chest, keeping her face and shoulders in view */
  margin-top: calc(17.7px - min(28.1vw, 186px));
  padding-bottom: var(--s-4);
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns:
      minmax(var(--gutter), 1fr)
      minmax(0, 540px)
      clamp(3rem, 13vw, 14rem)
      minmax(0, 460px)
      minmax(var(--gutter), 1fr);
    grid-template-rows: auto;
    min-height: min(100svh, 900px);
    background: var(--sky-top);
  }
  .hero__media { grid-column: 1 / -1; grid-row: 1; }
  .hero__img {
    inset: 0; height: 100%;
    object-position: 50% 30%;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(11, 13, 18, 0.28) 0%, rgba(11, 13, 18, 0) 18%),
      radial-gradient(70% 80% at 14% 62%, rgba(11, 13, 18, 0.42) 0%, rgba(11, 13, 18, 0.26) 45%, rgba(11, 13, 18, 0) 80%);
  }
  .hero__copy {
    grid-column: 2; grid-row: 1; align-self: center;
    padding: calc(var(--nav-h) + var(--s-7)) 0 var(--s-8);
  }
  .hero__card-wrap {
    grid-column: 4; grid-row: 1; align-self: center;
    margin-top: 0; padding: calc(var(--nav-h) + var(--s-6)) 0 var(--s-8);
  }
  /* Desktop: rating back under the hero text */
  .hero__proof { display: block; }
  .offer-card__proof { display: none; }
}

/* ---------- Offer card ---------- */
.offer-card {
  background: #fff; color: var(--text);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  box-shadow: 0 30px 80px rgba(11, 13, 18, 0.28);
}
.offer-form__label {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink);
}
.field { position: relative; margin-top: var(--s-4); }
.field__icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--text-3); pointer-events: none;
}
.field__input {
  width: 100%; min-height: 60px;
  padding: 0 1rem 0 3.25rem;
  border: 1.5px solid var(--field-border); border-radius: var(--r-md);
  background: var(--bg-2);
  font-size: 1.125rem; font-weight: 500; letter-spacing: 0.04em;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field__input::placeholder { color: var(--text-3); font-weight: 400; letter-spacing: 0; opacity: 1; }
.field__input:hover { border-color: var(--text-2); }
.field__input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(24, 71, 237, 0.18); }
.field__input[aria-invalid="true"] { border-color: var(--error); background: #fff; }
.field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16); }
.field__error {
  display: flex; align-items: center; gap: 6px;
  margin-top: var(--s-2); font-size: var(--fs-small); font-weight: 500; color: var(--error);
}
.field__error::before, .error-message::before {
  content: ""; flex: none; width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%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' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.offer-form__help { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--text-2); }
.offer-form__help a {
  color: var(--blue-deep); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.offer-form__help a:hover { color: var(--blue); }
.offer-form .btn { margin-top: var(--s-5); }
.offer-form__assure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: var(--s-3); font-size: var(--fs-small); font-weight: 500; color: var(--success-text);
}
.offer-form__assure svg { width: 16px; height: 16px; flex: none; }

.offer-card__call {
  margin-top: var(--s-5); padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.offer-card__call-label { font-size: var(--fs-small); color: var(--text-2); }
.call-link {
  display: inline-flex; align-items: center; gap: var(--s-3);
  margin-top: var(--s-2); min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em;
  color: var(--ink); font-variant-numeric: tabular-nums;
  transition: color var(--dur-fast) var(--ease-out);
}
.call-link:hover { color: var(--blue); }
.call-link__icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue-deep);
}
.call-link__icon svg { width: 18px; height: 18px; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; } /* same-colour sections back to back: keep one gap, not two */
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5); }

/* ---------- Benefits (feature split) ---------- */
.feature { display: grid; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature { align-items: start; }
  .feature__visual { order: -1; } /* goals + Offer Code box on the left, text on the right */
}
@media (min-width: 900px) and (min-height: 640px) {
  .feature__copy { position: sticky; top: calc(var(--nav-h) + var(--s-6)); }
}
.feature__copy .h2 { max-width: 14ch; }
.checklist { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.checklist li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: 1.125rem; line-height: 1.45; color: var(--text); }
.checklist svg { width: 24px; height: 24px; flex: none; color: var(--blue); margin-top: 1px; }
.checklist strong { color: var(--ink); }
.feature__copy .btn { margin-top: var(--s-6); }

.feature__visual { max-width: 560px; width: 100%; justify-self: center; }
@media (max-width: 899px) { .feature__visual { max-width: none; } }

/* ---------- Goals (compact list above the blue Offer Code box) ---------- */
.goals-mini { margin-bottom: var(--s-6); }
.goals-mini .eyebrow { margin-bottom: var(--s-2); }
.goals-mini__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: balance;
}
.goals { display: grid; gap: var(--s-2); grid-template-columns: minmax(0, 1fr); margin-top: var(--s-4); }
@media (min-width: 600px) {
  .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 5th item spans the row instead of leaving a gap */
}
@media (min-width: 900px) and (max-width: 1099px) {
  .goals { grid-template-columns: minmax(0, 1fr); } /* the feature column is only ~380–470px wide here */
}
.goal {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-3);
  border-radius: var(--r-md); background: var(--bg-2);
}
.goal__icon {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--blue-tint); color: var(--blue-deep);
}
.goal__icon svg { width: 20px; height: 20px; }
.goal__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1rem; line-height: 1.3; color: var(--ink);
}

/* ---------- Reviews ---------- */
.rating-badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 48px; padding: 0.625rem 1.125rem; border-radius: var(--r-pill);
  background: #fff; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
  font-weight: 500; color: var(--text);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.rating-badge:hover { box-shadow: var(--shadow-md), 0 0 0 1px var(--line-2); }
.rating-badge:active { transform: scale(0.98); }
.rating-badge .google-g { width: 20px; height: 20px; }
.rating-badge .stars svg { width: 16px; height: 16px; }
.rating-badge strong { font-weight: 700; color: var(--ink); }
.rating-badge__muted { color: var(--text-2); font-size: var(--fs-small); }

.reviews { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
.review {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border-radius: var(--r-lg); background: var(--bg-2);
}
.quote { display: flex; flex-direction: column; flex: 1; }
.quote .stars svg { width: 18px; height: 18px; }
.quote__text { margin-top: var(--s-4); font-size: 1.0625rem; line-height: 1.6; color: var(--text); flex: 1; }
.quote__text::before { content: "“"; }
.quote__text::after { content: "”"; }
.quote__meta { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--blue-tint); color: var(--blue-deep); font-size: var(--fs-small); font-weight: 600;
}
.quote__who { display: flex; flex-direction: column; line-height: 1.35; }
.quote__name { font-weight: 600; color: var(--ink); }
.quote__where { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--text-2); }
.quote__where .google-g { width: 13px; height: 13px; }
.quote__link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: var(--s-4); min-height: 44px;
  font-size: var(--fs-small); font-weight: 600; color: var(--blue-deep);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.quote__link:hover { color: var(--blue); }
.quote__link svg { width: 14px; height: 14px; }

/* ---------- Offer Code box (blue, in the benefits section) ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 100% at 90% 0%, #3F63FF 0%, var(--blue) 50%, var(--blue-deep) 100%);
  color: #fff; border-radius: var(--r-xl);
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) clamp(1.25rem, 1rem + 2.5vw, 2.75rem);
  text-align: center;
}
.cta__deco { position: absolute; z-index: -1; right: -6%; bottom: -30%; width: 46%; max-width: 520px; opacity: 0.12; pointer-events: none; }
.cta__title { color: #fff; max-width: 16ch; margin-inline: auto; font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); }
.cta__lead { color: rgba(255, 255, 255, 0.85); margin-top: var(--s-3); }
.cta-form { max-width: 560px; margin: var(--s-6) auto 0; text-align: left; }
.cta-form__label { display: block; font-weight: 600; font-size: 1.0625rem; }
.cta-form__row { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
@media (min-width: 600px) { .cta-form__row { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-form .field { margin-top: 0; }
.field--on-blue .field__input { background: #fff; border-color: transparent; color: var(--ink); }
.field--on-blue .field__input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45); }
.field--on-blue .field__input[aria-invalid="true"] { border-color: var(--error); }
.field__error--on-blue { color: #fff; background: rgba(220, 38, 38, 0.9); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); }
.cta__note { margin-top: var(--s-4); font-size: 0.9375rem; color: rgba(255, 255, 255, 0.85); }
.cta-form + .cta__note { margin-top: var(--s-6); }
.cta__note a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; white-space: nowrap; }
.cta__note a:hover { text-decoration-thickness: 2.5px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-2); padding-block: var(--s-8) var(--s-7); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding-bottom: var(--s-6); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer__logo { width: 177px; }
.footer__links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #fff; font-weight: 500; font-size: 0.9375rem;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4);
}
.footer__links a:hover { text-decoration-color: #fff; }
.footer__legal { margin-top: var(--s-6); max-width: 90ch; font-size: var(--fs-small); line-height: 1.65; }
.footer__copy { margin-top: var(--s-5); font-size: var(--fs-small); color: #fff; }

/* ---------- Mobile sticky action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3);
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(11, 13, 18, 0.06);
  transform: translateY(110%); visibility: hidden;
  transition: transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.action-bar.is-visible { transform: none; visibility: visible; transition: transform var(--dur) var(--ease-out), visibility 0s; }
.action-bar .btn { min-height: 48px; }
.action-bar__call { padding-inline: 1.125rem; }
@media (max-width: 359px) {
  .action-bar .btn { padding-inline: 0.875rem; }
  .action-bar__main svg { display: none; }
}
@media (min-width: 760px) { .action-bar { display: none; } }
@media (max-width: 759px) { .page-landing .footer { padding-bottom: calc(var(--s-7) + 76px); } } /* room for the action bar */

/* ---------- Cookie consent (markup + IDs from the platform) ---------- */
.cookie-consent-banner {
  position: fixed; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); z-index: var(--z-toast);
  max-width: 960px; margin-inline: auto;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--ink-2); color: var(--on-dark-2);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-small); line-height: 1.5;
}
.cookie-consent-content { display: flex; flex-direction: column; gap: var(--s-4); }
.cookie-consent-text { display: flex; gap: var(--s-3); align-items: flex-start; }
.cookie-consent-text strong { color: #fff; }
.cookie-consent-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; flex: none; }
.cookie-consent-icon svg { width: 18px; height: 18px; }
.cookie-consent-actions { display: flex; gap: var(--s-2); justify-content: flex-end; }
.cookie-consent-btn {
  min-height: 44px; padding: 0.5rem 1.25rem; border-radius: var(--r-pill);
  font-weight: 500; font-size: 0.9375rem; border: 1.5px solid transparent;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.cookie-consent-btn-reject { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.cookie-consent-btn-reject:hover { background: rgba(255, 255, 255, 0.08); }
.cookie-consent-btn-accept { background: var(--blue); color: #fff; }
.cookie-consent-btn-accept:hover { background: var(--blue-hover); }
.cookie-consent-banner :focus-visible { outline-color: #fff; }
@media (min-width: 760px) {
  .cookie-consent-content { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s-6); }
  .cookie-consent-actions { flex: none; }
}

/* ==========================================================================
   Verify page + Thank-you page
   ========================================================================== */
/* Bootstrap helpers the platform markup relies on (the old site loaded Bootstrap) */
.d-none { display: none !important; }
.text-start { text-align: left !important; } /* beats the inline right-align the currency mask adds */

/* ---------- Title band (sky gradient, no photo) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(60% 90% at 92% 0%, rgba(24, 71, 237, 0.55) 0%, rgba(24, 71, 237, 0) 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  padding: calc(var(--nav-h) + clamp(1.5rem, 1rem + 2vw, 3rem)) 0 clamp(7rem, 5.5rem + 5vw, 9.5rem);
}
.page-hero--short { padding: calc(var(--nav-h) + 2rem) 0 clamp(8rem, 6rem + 6vw, 11rem); }
.page-hero__deco { position: absolute; z-index: -1; right: -3%; top: 12%; width: clamp(220px, 34vw, 460px); opacity: 0.08; pointer-events: none; }
.page-hero__inner { max-width: calc(820px + var(--gutter) * 2); }
.chip-secure {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 0.25rem 0.75rem 0.25rem 0.625rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.chip-secure svg { width: 14px; height: 14px; }
.page-hero__title {
  margin-top: var(--s-4);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance;
}
.page-hero__lead { margin-top: var(--s-3); max-width: 46ch; font-size: var(--fs-lead); line-height: 1.5; color: rgba(255, 255, 255, 0.9); }

/* ---------- Verify form card ---------- */
.verify { padding-bottom: var(--section-y); }
.verify .container { max-width: calc(820px + var(--gutter) * 2); }
.form-card {
  position: relative; margin-top: calc(-1 * clamp(5rem, 3.75rem + 4vw, 7rem));
  background: #fff; border-radius: var(--r-xl);
  padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.75rem);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11, 13, 18, 0.04);
}
.form-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-section + .form-section { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }
/* float takes the legend out of the fieldset border, so the divider line runs above it instead of through it */
.form-section__title { float: left; width: 100%; padding: 0; margin-bottom: var(--s-4); font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.form-section__title + * { clear: both; }
.form-grid { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
  .form-group--full { grid-column: 1 / -1; }
}
.form-group { min-width: 0; }
.form-label { display: block; margin-bottom: 6px; font-size: var(--fs-small); font-weight: 500; color: var(--text); }
.req { color: var(--blue-deep); }
.opt { color: var(--text-2); font-weight: 400; }
.form-control {
  display: block; width: 100%; min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--field-border); border-radius: var(--r-md);
  background: #fff; color: var(--ink);
  font-size: 1rem; line-height: 1.4;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.form-control::placeholder { color: var(--text-3); opacity: 1; }
.form-control:hover { border-color: var(--text-2); }
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(24, 71, 237, 0.18); }
.form-select {
  padding-right: 2.75rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 18px;
}
.form-select:has(option:disabled:checked) { color: var(--text-3); }
.form-select option { color: var(--ink); }
input[type="date"].form-control { display: flex; align-items: center; }
input[type="date"].form-control::-webkit-date-and-time-value { text-align: left; }
.input-group { position: relative; }
.input-group-text { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-weight: 500; color: var(--text-2); pointer-events: none; }
.input-group .form-control { padding-left: 2rem; }

/* Inline errors are inserted by the platform script as label.error-message inside .form-group */
.error-message { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-small); font-weight: 500; color: var(--error); }
.form-group:has(.error-message) .form-control { border-color: var(--error); }
.form-group:has(.error-message) .form-control:focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--error); }

.form-required-note { margin-top: var(--s-6); font-size: var(--fs-xs); color: var(--text-2); }
.verify-submit { margin-top: var(--s-3); }
.verify-submit[disabled] { opacity: 0.6; cursor: progress; box-shadow: none; }

/* Shown by the platform script (style.display = block) when a submission fails */
.server-error, .server-error-reason {
  display: none; margin-top: var(--s-4); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md); background: var(--error-bg); color: #991B1B;
  font-size: var(--fs-small); font-weight: 500; line-height: 1.5;
}
.server-error-reason { margin-top: var(--s-2); }

.consent { margin-top: var(--s-5); font-size: 0.8125rem; line-height: 1.6; color: var(--text-2); }
.consent p + p { margin-top: var(--s-3); }
.consent a, .text-link { color: var(--blue-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.text-link { display: inline; cursor: pointer; }
.consent a:hover, .text-link:hover { color: var(--blue); }

/* ---------- Offer disclosures (verbatim legal copy) ---------- */
.disclosures {
  margin-top: var(--s-7); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--r-lg); background: var(--bg-2);
  font-size: 0.8125rem; line-height: 1.65; color: var(--text-2);
}
.disclosures__title { margin-bottom: var(--s-3); font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.disclosures p + p, .disclosures ul + p { margin-top: var(--s-3); }
.disclosures__subhead { font-weight: 600; color: var(--text); }
.disclosures__strong { font-weight: 700; color: var(--text); }
.disclosures ul { display: grid; gap: var(--s-2); margin-top: var(--s-2); padding-left: 1.25rem; list-style: disc; }
.disclosures a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
/* Verify page: the disclosures sit in the dark footer, styled like the footer's legal text */
.disclosures--footer {
  max-width: 90ch; margin-top: var(--s-6); padding: 0;
  border-radius: 0; background: none; color: var(--on-dark-2);
}
.disclosures--footer .disclosures__title,
.disclosures--footer .disclosures__subhead,
.disclosures--footer .disclosures__strong { color: #fff; }
.disclosures--footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.5); }
.disclosures--footer a:hover { text-decoration-color: #fff; }

/* ---------- Legal pop-ups ---------- */
.legal-dialog {
  width: min(640px, calc(100% - 2rem)); max-height: min(85dvh, 760px);
  padding: 0; border: 0; border-radius: var(--r-lg);
  background: #fff; color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden;
}
.legal-dialog[open] { display: flex; flex-direction: column; animation: dialog-in 220ms var(--ease-out) both; }
.legal-dialog::backdrop { background: rgba(11, 13, 18, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.legal-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); }
.legal-dialog__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.legal-dialog__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--text-2); transition: background-color var(--dur-fast) var(--ease-out); }
.legal-dialog__close:hover { background: var(--bg-2); color: var(--ink); }
.legal-dialog__close svg { width: 20px; height: 20px; }
.legal-dialog__body { padding: var(--s-5); overflow-y: auto; font-size: 0.9375rem; line-height: 1.65; }
.legal-dialog__body p + p { margin-top: var(--s-3); }
.legal-dialog__body a { color: var(--blue-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.legal-dialog__foot { display: flex; justify-content: flex-end; padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); }
.legal-dialog__foot .btn { min-width: 140px; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Thank-you card ---------- */
.thanks { padding-bottom: var(--section-y); }
.thanks .container { max-width: calc(640px + var(--gutter) * 2); }
.result-card {
  margin-top: calc(-1 * clamp(6rem, 4.5rem + 5vw, 8.5rem));
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) clamp(1.25rem, 1rem + 3vw, 3rem);
  border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11, 13, 18, 0.04);
  text-align: center;
}
.result-card__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--success-bg); color: var(--success); box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.08); }
.result-card__icon svg { width: 34px; height: 34px; }
.result-card__title { margin-top: var(--s-5); font-family: var(--font-display); font-weight: 500; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.result-card__lead { max-width: 36ch; margin: var(--s-3) auto 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); }
.result-card__call { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); color: var(--text-2); }
.result-card__call .btn { margin-top: var(--s-3); font-variant-numeric: tabular-nums; }
.result-card__hours { margin-top: var(--s-3); font-size: var(--fs-small); }

.js .form-card, .js .result-card { animation: card-in 800ms var(--ease-out) 120ms both; }

/* ==========================================================================
   Motion (mailer.js adds .reveal-on to <html>; content stays visible if it never runs)
   ========================================================================== */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-on .reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }


.js .hero__copy > * { animation: fade-up 700ms var(--ease-out) both; }
.js .hero__copy > :nth-child(2) { animation-delay: 80ms; }
.js .hero__copy > :nth-child(3) { animation-delay: 160ms; }
.js .hero__copy > :nth-child(4) { animation-delay: 240ms; }
.js .offer-card { animation: card-in 800ms var(--ease-out) 200ms both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }

.offer-card.is-attention { animation: attention 900ms var(--ease-out) both; }
@keyframes attention {
  0% { box-shadow: 0 30px 80px rgba(11, 13, 18, 0.28), 0 0 0 0 rgba(24, 71, 237, 0.55); }
  100% { box-shadow: 0 30px 80px rgba(11, 13, 18, 0.28), 0 0 0 18px rgba(24, 71, 237, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
}
