:root {
  --bg: #f6f2fb;
  --surface: #ffffff;
  --surface-2: #f2ebff;
  --surface-3: #ebe1ff;
  --text: #1d1630;
  --muted: #645a78;
  --line: rgba(51, 31, 90, 0.12);
  --line-strong: rgba(143, 92, 255, 0.34);
  --purple: #8f5cff;
  --purple-2: #b291ff;
  --purple-soft: rgba(143, 92, 255, 0.14);
  --shadow: 0 16px 42px rgba(54, 31, 95, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background:
    radial-gradient(circle at top right, rgba(143, 92, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #fbf9ff 0%, #f3eefb 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(92, 62, 145, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 62, 145, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 84%);
}

.site-shell {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0 28px;
}

.credibility-strip,
.local-proof {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.credibility-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.local-proof {
  grid-template-columns: 1.05fr 1.4fr;
  align-items: stretch;
}

.topbar,
.hero-copy,
.hero-calc,
.details-form,
.summary-rail,
.seo-card,
.inline-card,
.addon-card,
.process-card,
.proof-quote,
.service-area,
.next-steps {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.topbar,
.hero-shell,
.hero-points,
.micro-trust,
.topbar-meta,
.section-head,
.details-layout,
.segmented,
.stepper,
.submit-row,
.rail-top,
.rail-grid,
.hero-calc-head,
.seo-blocks {
  display: flex;
}

.topbar,
.section-head,
.rail-top,
.hero-calc-head {
  align-items: center;
  justify-content: space-between;
}

.topbar {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.brand img {
  display: block;
  width: 126px;
  height: auto;
}

.topbar-meta {
  gap: 10px;
}

.topbar-link,
.topbar-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button {
  cursor: pointer;
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

a.button,
a.topbar-link,
a.topbar-cta {
  cursor: pointer;
}

.topbar-link {
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
}

.topbar-cta,
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%);
  box-shadow: 0 14px 30px rgba(143, 92, 255, 0.28);
}

.button-secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
}

.topbar-link:hover,
.topbar-cta:hover,
.button:hover,
.segment:hover,
.stepper-btn:hover {
  transform: translateY(-1px);
}

.hero-shell {
  gap: 14px;
  align-items: stretch;
}

.hero-copy,
.hero-calc {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
}

.hero-copy {
  flex: 1 1 44%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(143, 92, 255, 0.1), transparent 36%),
    rgba(255, 255, 255, 0.98);
}

.hero-calc {
  flex: 1 1 56%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(143, 92, 255, 0.14), transparent 50%),
    rgba(255, 255, 255, 0.99);
}

.hero-calc-head {
  margin-bottom: -4px;
}

#hero-live,
#hero-custom {
  display: flex;
  flex-direction: column;
}

.hero-calc .summary-kicker {
  margin-bottom: 4px;
}

.hero-calc .summary-price {
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.hero-calc .summary-price.compact {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}

.custom-prompt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}

.custom-prefix {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-transform: none;
}

.custom-emphasis {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  letter-spacing: -0.01em;
  color: var(--text);
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.summary-rail .custom-emphasis {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.summary-rail .custom-prefix {
  font-size: 0.88rem;
}

.hero-calc .summary-caption {
  margin-bottom: 0;
}

.full-width {
  grid-column: 1 / -1;
}

.hero-continue {
  margin-top: 4px;
  align-self: stretch;
  text-align: center;
}

.hero-phone {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-phone a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.eyebrow,
.summary-kicker,
.rail-pill,
.rail-chip {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.eyebrow,
.summary-kicker,
.rail-pill {
  color: var(--purple-2);
}

h1,
h2,
h3,
.summary-price,
.rail-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 16ch;
  margin: 8px 0 10px;
  font-size: clamp(1.85rem, 3.7vw, 2.95rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}

.hero-text,
.section-head p,
.rail-copy,
.rail-helper,
.submit-note,
.materials-note,
.field-hint,
.seo-card p,
.inline-card span,
.topbar-link {
  color: var(--muted);
}

.hero-points,
.hero-actions,
.hero-summary-grid,
.micro-trust,
.seo-blocks,
.custom-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.hero-points {
  margin: 14px 0 12px;
}

.hero-points span,
.micro-trust span,
.rail-chip {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(143, 92, 255, 0.05);
  font-size: 0.9rem;
}

.hero-subtext {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.micro-trust {
  margin-top: -2px;
}

.micro-trust span {
  color: var(--muted);
  font-size: 0.875rem;
}

.summary-price {
  margin: 8px 0 6px;
  font-size: clamp(2rem, 4.3vw, 3rem);
  line-height: 0.95;
}

.summary-caption {
  margin-bottom: 14px;
  color: var(--muted);
}

.hero-summary-grid,
.rail-grid {
  gap: 10px;
  flex-wrap: wrap;
}

.hero-summary-grid div,
.rail-grid div,
.breakdown-row,
.seo-card,
.inline-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(143, 92, 255, 0.04);
}

.hero-summary-grid div {
  flex: 1 1 calc(50% - 10px);
  min-width: 120px;
  padding: 12px;
}

.hero-summary-grid span,
.rail-grid span,
.breakdown-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.process-card,
.proof-quote,
.next-steps {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.proof-quote {
  padding: 16px 18px;
}

.process-card strong,
.proof-quote strong,
.next-steps strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
}

.process-card span,
.proof-quote p,
.next-steps li {
  color: var(--muted);
  font-size: 0.92rem;
}

.proof-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.proof-stars {
  display: inline-flex;
  gap: 2px;
  color: #f4a623;
}

.proof-stars svg {
  width: 16px;
  height: 16px;
}

.proof-rating-text {
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.proof-rating-text strong {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.proof-line {
  margin: 0;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.45;
  font-style: italic;
}

.proof-attrib {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(143, 92, 255, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.94);
}

.service-area-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--purple-2);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.service-area p {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--text);
}

.service-area-suffix {
  display: block;
  margin-top: 4px;
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--muted);
}

.details-shell {
  margin-top: 14px;
}

.section-head {
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-head p {
  max-width: 360px;
}

.details-layout {
  align-items: flex-start;
  gap: 14px;
}

.details-form {
  flex: 1 1 auto;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-panel {
  width: 330px;
  flex: 0 0 330px;
}

.inline-card.full-bleed {
  align-self: stretch;
}

.summary-rail {
  position: sticky;
  top: 14px;
  padding: 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(143, 92, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.98);
}

.quote-form,
.form-grid {
  display: grid;
  gap: 12px;
}

.top-grid {
  grid-template-columns: 1fr 1fr;
}

.access-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.zip-grid,
.addon-grid,
.lead-grid,
.seo-blocks {
  grid-template-columns: 1fr 1fr;
}

.quote-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.segmented {
  gap: 8px;
  flex-wrap: wrap;
}

.segment {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.93rem;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.segment.is-active {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(143, 92, 255, 0.18), rgba(143, 92, 255, 0.05)),
    #fff;
}

.segmented-wrap .segment {
  flex: 1 1 90px;
}

.inline-card,
.addon-card {
  padding: 12px;
}

.inline-card {
  align-self: end;
}

.addon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stepper {
  align-items: center;
  gap: 8px;
}

.stepper span {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--purple);
  background: var(--surface-2);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.stepper-btn:hover {
  background: var(--purple-soft);
  color: var(--text);
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.field-hint {
  margin: -2px 0 0;
  font-size: 0.875rem;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(143, 92, 255, 0.12);
}

.quote-form input:user-invalid,
.quote-form textarea:user-invalid {
  border-color: rgba(255, 123, 123, 0.6);
}

.quote-form textarea {
  min-height: 78px;
  resize: vertical;
}

.materials-note {
  margin: 0;
  font-size: 0.92rem;
}

.submit-row {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.submit-note {
  max-width: 420px;
  font-size: 0.9rem;
}

.rail-helper {
  margin-top: -4px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.submit-note.is-error {
  color: #ffb1b1;
}

.submit-note.is-success {
  color: #b7f3c5;
}

.seo-blocks {
  margin-top: 14px;
}

.seo-card {
  padding: 14px;
}

.seo-card h2 {
  margin-bottom: 8px;
}

.rail-pill {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--purple-soft);
  font-weight: 700;
}

.rail-price {
  margin: 12px 0 8px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 0.96;
}

.rail-price.compact {
  font-size: 1.75rem;
}

.rail-copy {
  margin-bottom: 14px;
}

.rail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.rail-grid div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(143, 92, 255, 0.04);
  border: 1px solid var(--line);
}

.breakdown-card {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(143, 92, 255, 0.04);
}

.next-steps {
  margin-top: 12px;
}

.next-steps ul {
  margin: 0;
  padding-left: 18px;
}

.breakdown-row {
  padding: 12px;
}

.breakdown-row + .breakdown-row {
  margin-top: 8px;
}

.breakdown-row.total {
  border-color: var(--line-strong);
  background: var(--purple-soft);
}

.hidden {
  display: none;
}

#submit-button {
  position: relative;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spin 720ms linear infinite;
}

#submit-button.is-loading .button-label {
  opacity: 0.85;
}

#submit-button.is-loading .button-spinner {
  display: inline-block;
}

@keyframes button-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .button-spinner {
    animation: none;
  }
  .button:hover,
  .topbar-link:hover,
  .topbar-cta:hover,
  .segment:hover,
  .stepper-btn:hover {
    transform: none;
  }
}

.site-footer {
  margin-top: 18px;
  padding: 22px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(143, 92, 255, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.footer-brand img {
  display: block;
  width: 126px;
  height: auto;
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.footer-trust {
  font-size: 0.85rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple-2) !important;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-2);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 160ms ease, color 160ms ease;
}

.site-footer a:hover {
  color: var(--purple);
  border-bottom-color: var(--line-strong);
}

.footer-fine {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-shell,
  .local-proof,
  .details-layout,
  .section-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .summary-panel {
    width: 100%;
    flex: 1 1 auto;
  }

  .summary-rail {
    position: static;
  }

  .hero-copy {
    order: 1;
  }

  .hero-calc {
    order: 0;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 16px, 1120px);
  }

  .hero-copy,
  .hero-calc,
  .details-form,
  .summary-rail,
  .seo-card,
  .inline-card,
  .addon-card {
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
  }

  .hero-copy,
  .hero-calc {
    padding: 18px;
  }

  h1 {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.15rem, 5.2vw, 1.45rem);
  }

  .summary-price,
  .rail-price {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .topbar,
  .topbar-meta,
  .submit-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-grid,
  .zip-grid,
  .addon-grid,
  .lead-grid,
  .seo-blocks,
  .rail-grid {
    grid-template-columns: 1fr;
  }

  .site-shell {
    padding-bottom: 22px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
  }

  .topbar-link,
  .topbar-cta,
  .button {
    min-height: 44px;
  }

  .submit-row {
    align-items: stretch;
  }

  .submit-note {
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .local-proof {
    grid-template-columns: 1fr;
  }
}
