:root {
  --primary: #0f6fae;
  --accent: #20c4d8;
  --navy: #0a2f4a;
  --bg-soft: #f4fafd;
  --white: #ffffff;
  --text: #234158;
  --muted: #5c7386;
  --border: rgba(10, 47, 74, 0.1);
  --shadow-lg: 0 24px 50px rgba(15, 111, 174, 0.14);
  --shadow-md: 0 16px 30px rgba(10, 47, 74, 0.08);
  --radius-lg: 30px;
  --radius-md: 20px;
  --container: 1520px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(32, 196, 216, 0.18), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfe 48%, #f3f8fc 100%);
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

.image-figure {
  margin: 0;
}

.hero-visual .image-figure,
.about-gallery .image-figure,
.promo-collage .image-figure {
  width: 100%;
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(32, 196, 216, 0.16));
  border: 1px solid rgba(32, 196, 216, 0.2);
  pointer-events: none;
  z-index: 0;
  animation: float 11s ease-in-out infinite;
}

.page-shell::before {
  width: 140px;
  height: 140px;
  top: 520px;
  right: 18%;
  animation-delay: -3s;
}

.page-shell::after {
  width: 64px;
  height: 64px;
  top: 1180px;
  left: 22%;
  animation-delay: -7s;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(32, 196, 216, 0.14));
  border: 1px solid rgba(32, 196, 216, 0.2);
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.bubble-a {
  width: 140px;
  height: 140px;
  top: 120px;
  left: -20px;
}

.bubble-b {
  width: 90px;
  height: 90px;
  top: 620px;
  right: 6%;
  animation-delay: -3s;
}

.bubble-c {
  width: 180px;
  height: 180px;
  bottom: 160px;
  left: 4%;
  animation-delay: -6s;
}

.site-footer {
  position: relative;
  z-index: 1;
}

.site-header,
main,
.lead-bar,
.section,
.estimator-shell,
.container,
.estimate-modal-dialog {
  position: relative;
  z-index: 1;
}

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(10, 47, 74, 0.08);
  border-color: rgba(10, 47, 74, 0.08);
}

.nav-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.4rem;
  color: var(--white);
  background: linear-gradient(145deg, var(--primary), var(--accent));
  box-shadow: 0 16px 30px rgba(15, 111, 174, 0.22);
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 18px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.brand-text {
  display: grid;
  gap: 0.1rem;
}

.brand-text strong {
  font-size: 1.05rem;
  color: var(--navy);
}

.brand-text small {
  color: var(--muted);
  font-size: 0.8rem;
}

.site-nav {
  justify-self: center;
  display: inline-flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(10, 47, 74, 0.08);
  position: relative;
}

.site-nav a,
.nav-trigger {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 0.2s ease;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-trigger:hover,
.nav-trigger:focus-visible {
  color: var(--primary);
}

.nav-group {
  position: relative;
}

.nav-group summary {
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 240px;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(10, 47, 74, 0.08);
  box-shadow: var(--shadow-md);
}

.nav-group:not([open]) .nav-menu {
  display: none;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--primary));
  box-shadow: 0 14px 30px rgba(15, 111, 174, 0.24);
}

.button-accent {
  color: var(--navy);
  background: linear-gradient(135deg, #7ff1ff, var(--accent));
  box-shadow: 0 14px 30px rgba(32, 196, 216, 0.24);
}

.button-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(10, 47, 74, 0.12);
}

.hero {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.generated-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.15rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.generated-eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.generated-eyebrow + h1,
.generated-eyebrow + h2,
.generated-eyebrow + h3,
.generated-eyebrow + .mini-grid,
.generated-eyebrow + .faq-list,
.generated-eyebrow + ul,
.generated-eyebrow + ol {
  margin-top: 0.8rem;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.promo-copy h2,
.site-footer h2 {
  margin: 0.85rem 0 0;
  color: var(--navy);
  font-family: "Bebas Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.9rem);
  max-width: 18ch;
}

.hero-text,
.section-heading p,
.about-copy p,
.promo-copy p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 58ch;
  font-size: 1.05rem;
  margin-top: 1.1rem;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0;
  margin: 1.4rem 0;
}

.trust-list li {
  padding: 0.75rem 1rem;
  border-radius: 18px;
  background: rgba(10, 47, 74, 0.04);
  border: 1px solid rgba(15, 111, 174, 0.14);
  font-weight: 800;
  color: var(--navy);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.hero-tagline {
  margin-top: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero-mascot {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  filter: drop-shadow(0 35px 42px rgba(10, 47, 74, 0.18));
}

.hero-logo {
  width: min(100%, 540px);
}

.hero-photo {
  border-radius: 32px;
  object-fit: cover;
  max-height: 520px;
  box-shadow: var(--shadow-lg);
}

.hero:not(.hero-inner) .hero-home-photo {
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.hero-visual video.hero-photo,
.image-figure video {
  display: block;
  width: 100%;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  background: #d7e8f3;
}

.hero-inner {
  padding-top: 2.6rem;
}

.hero-spray {
  position: absolute;
  inset: 80px 30px 70px;
  border-radius: 40px 80px 50px 60px;
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.85), transparent 12%),
    radial-gradient(circle at 30% 72%, rgba(255, 255, 255, 0.75), transparent 10%),
    radial-gradient(circle at 84% 26%, rgba(255, 255, 255, 0.65), transparent 14%),
    linear-gradient(140deg, rgba(15, 111, 174, 0.18), rgba(32, 196, 216, 0.28));
  filter: blur(1px);
}

.lead-bar {
  margin-top: -0.5rem;
}

.lead-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 47, 74, 0.08);
  box-shadow: var(--shadow-lg);
}

.lead-kicker {
  margin: 0;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

.lead-card h2 {
  margin: 0.35rem 0 0;
  color: var(--navy);
  font-size: 1.45rem;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.quote-form label {
  display: grid;
  gap: 0.4rem;
}

.quote-form span {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
}

.quote-form input,
.quote-form select {
  min-width: 180px;
  height: 52px;
  padding: 0 1rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 47, 74, 0.12);
  background: var(--white);
}

.quote-form-section {
  padding-top: 2rem;
}

.quote-form-shell {
  display: grid;
  gap: 1.5rem;
  padding: 1.8rem;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 111, 174, 0.12);
  box-shadow: var(--shadow-lg);
}

.quote-form-copy h2 {
  margin: 0.35rem 0 0.55rem;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
}

.quote-form-copy p {
  margin: 0;
  max-width: 640px;
}

.quote-form-notice {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  font-weight: 700;
}

.quote-form-notice.success {
  color: #115537;
  background: rgba(26, 173, 96, 0.12);
  border: 1px solid rgba(26, 173, 96, 0.2);
}

.quote-form-notice.error {
  color: #8b2a2a;
  background: rgba(201, 54, 54, 0.1);
  border: 1px solid rgba(201, 54, 54, 0.18);
}

.quote-request-form {
  display: grid;
  gap: 1.2rem;
}

.quote-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field span,
.form-field label,
.quote-request-services legend {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(10, 47, 74, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.form-field input,
.form-field select {
  min-height: 54px;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(15, 111, 174, 0.32);
  box-shadow: 0 0 0 4px rgba(32, 196, 216, 0.16);
}

.quote-request-address,
.quote-request-notes {
  grid-column: 1 / -1;
}

.quote-request-services {
  margin: 0;
  padding: 0;
  border: 0;
}

.checkbox-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.checkbox-pill {
  position: relative;
  cursor: pointer;
}

.checkbox-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.checkbox-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 111, 174, 0.16);
  background: rgba(244, 250, 253, 0.9);
  font-weight: 700;
  color: var(--navy);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkbox-pill input:checked + span {
  background: linear-gradient(135deg, rgba(15, 111, 174, 0.14), rgba(32, 196, 216, 0.18));
  border-color: rgba(15, 111, 174, 0.35);
  box-shadow: 0 12px 22px rgba(15, 111, 174, 0.1);
}

.checkbox-pill:hover span,
.checkbox-pill input:focus + span {
  transform: translateY(-1px);
}

.quote-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.quote-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-form-compact {
  padding-bottom: 1rem;
}

.quote-form-compact .quote-form-shell {
  padding: 1.5rem;
}

.quote-embed-card {
  grid-column: 1 / -1;
}

.quote-form-shell-embedded {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.quote-embed-card .quote-form-copy h2 {
  margin-top: 0.35rem;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 2rem;
}

.section-heading h2,
.about-copy h2,
.promo-copy h2,
.site-footer h2 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.services {
  background: linear-gradient(180deg, transparent 0%, rgba(244, 250, 253, 0.82) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.service-card,
.testimonial-card,
.feature-card,
.process-step {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.service-card {
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px rgba(15, 111, 174, 0.18);
}

.service-card img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.service-card video {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background: #d7e8f3;
}

.service-card h3 {
  margin: 1rem 0 0.4rem;
  color: var(--navy);
  font-size: 1.1rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

.about {
  background: linear-gradient(180deg, rgba(220, 244, 250, 0.56), rgba(244, 250, 253, 0.96));
}

.about-grid,
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-gallery,
.promo-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.about-gallery img,
.promo-collage img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.reasons {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #08293f, #0b385a);
}

.section-heading-light h2,
.section-heading-light .eyebrow {
  color: var(--white);
}

.section-heading-light p {
  color: rgba(255, 255, 255, 0.76);
}

.section-heading-light .eyebrow::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), var(--accent));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.35rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

.feature-card span {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(32, 196, 216, 0.16);
  color: #aef6ff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
}

.feature-card h3 {
  margin: 1rem 0 0;
  font-size: 1.15rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-step {
  text-align: center;
  padding: 2rem 1.3rem;
}

.step-badge {
  width: 74px;
  height: 74px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15, 111, 174, 0.12), rgba(32, 196, 216, 0.28));
  color: var(--navy);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
}

.promo {
  color: var(--white);
}

.promo-grid {
  padding: 2rem;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 30%),
    linear-gradient(135deg, #0b4d79, #1599c1 70%, #4ddceb);
  box-shadow: 0 26px 50px rgba(15, 111, 174, 0.2);
}

.promo-copy h2,
.promo-copy p,
.promo .eyebrow {
  color: var(--white);
}

.promo .eyebrow::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  padding: 1.4rem;
}

.stars {
  margin: 0;
  color: #ffb957;
  letter-spacing: 0.1em;
}

.testimonial-card blockquote {
  margin: 1rem 0;
  color: var(--navy);
  line-height: 1.75;
  font-weight: 600;
}

.testimonial-card span {
  display: block;
  color: var(--muted);
  margin-top: 0.25rem;
}

.areas-panel {
  position: relative;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  overflow: hidden;
}

.map-accent {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15, 111, 174, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 111, 174, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
}

.areas-list {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.areas-list li {
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: rgba(244, 250, 253, 0.92);
  font-weight: 800;
  color: var(--navy);
  border: 1px solid rgba(15, 111, 174, 0.08);
}

.inner-content {
  background: linear-gradient(180deg, rgba(244, 250, 253, 0.5), rgba(255, 255, 255, 0.85));
}

.pricing-estimator {
  background: linear-gradient(180deg, rgba(244, 250, 253, 0.9), rgba(255, 255, 255, 0.75));
}

.estimator-shell .section-heading {
  max-width: 760px;
}

.estimator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.estimator-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.estimator-form label {
  display: grid;
  gap: 0.45rem;
}

.estimator-form span {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.estimator-form input,
.estimator-form select {
  height: 56px;
  padding: 0 1rem;
  border-radius: 16px;
  border: 1px solid rgba(10, 47, 74, 0.12);
  background: var(--white);
}

.estimator-result-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.estimate-placeholder {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(244, 250, 253, 0.92);
  border: 1px dashed rgba(15, 111, 174, 0.22);
  color: var(--muted);
  line-height: 1.7;
}

.estimate-output[hidden] {
  display: none;
}

.estimate-range {
  margin-top: 0.9rem;
  color: var(--navy);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.estimate-copy {
  color: var(--muted);
  line-height: 1.75;
  margin: 0.9rem 0 0;
}

.estimate-service-copy {
  margin: 0.9rem 0 0;
  color: var(--navy);
  line-height: 1.75;
  font-weight: 600;
}

.estimate-helper-text {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.estimate-modal[hidden] {
  display: none;
}

.estimate-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.estimate-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 31, 50, 0.56);
  backdrop-filter: blur(4px);
}

.estimate-modal-dialog {
  position: relative;
  width: min(972px, 100%);
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  padding: 1.15rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 70px rgba(10, 47, 74, 0.24);
}

.estimate-modal-dialog h2 {
  margin: 0.5rem 0 0;
  color: var(--navy);
  font-family: "Bebas Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.estimate-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 47, 74, 0.08);
  color: var(--navy);
  font-size: 1.6rem;
  cursor: pointer;
}

.estimate-modal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.estimate-modal-summary {
  margin-top: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 24px;
  background: rgba(244, 250, 253, 0.78);
  border: 1px solid rgba(15, 111, 174, 0.1);
}

.estimate-modal-summary h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.estimate-market-range {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: 24px;
  background: rgba(244, 250, 253, 0.72);
  border: 1px solid rgba(15, 111, 174, 0.1);
}

.estimate-market-heading-row {
  display: grid;
  gap: 0.2rem;
}

.estimate-market-heading-row h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.estimate-market-heading-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.estimate-market-values {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.estimate-market-scale {
  position: relative;
  margin-top: 0.95rem;
  padding-top: 1.55rem;
}

.estimate-market-line {
  display: block;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(10, 47, 74, 0.1), rgba(32, 196, 216, 0.16), rgba(10, 47, 74, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.estimate-market-marker {
  position: absolute;
  top: -0.05rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-grid;
  justify-items: center;
  gap: 0.18rem;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  transition: left 0.35s ease;
}

.estimate-market-marker::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #b6fbff, var(--accent) 55%, #119cb2 100%);
  border: 4px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 6px rgba(32, 196, 216, 0.14),
    0 12px 24px rgba(32, 196, 216, 0.28);
}

.estimate-market-marker strong {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 253, 0.98));
  border: 1px solid rgba(15, 111, 174, 0.14);
  box-shadow: 0 10px 20px rgba(10, 47, 74, 0.08);
}

.estimate-modal-card {
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(244, 250, 253, 0.9);
}

.estimate-modal-card-featured {
  background: linear-gradient(180deg, rgba(32, 196, 216, 0.12), rgba(15, 111, 174, 0.08));
  border-color: rgba(32, 196, 216, 0.22);
  box-shadow: var(--shadow-md);
}

.estimate-modal-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
}

.estimate-modal-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.96rem;
}

.estimate-modal-card li + li {
  margin-top: 0.3rem;
}

.estimate-modal-badge {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.estimate-minimum-note {
  margin: 0.85rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(32, 196, 216, 0.1);
  border: 1px solid rgba(32, 196, 216, 0.2);
  color: var(--navy);
  line-height: 1.7;
}

.estimate-minimum-note[hidden] {
  display: none;
}

.estimate-notes {
  margin-top: 1.2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.content-card {
  padding: 1.6rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.content-card h2 {
  margin: 0.8rem 0 0.5rem;
  color: var(--navy);
  font-family: "Bebas Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.content-card p {
  color: var(--muted);
  line-height: 1.75;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.mini-card {
  padding: 1rem;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid rgba(15, 111, 174, 0.08);
}

.mini-card h3 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(244, 250, 253, 0.92));
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.25rem 1.4rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  color: var(--navy);
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-footer {
  padding: 4rem 0 2rem;
  color: var(--white);
  background: linear-gradient(180deg, #08293f, #061f32);
}

.site-footer h2 {
  color: var(--white);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.72fr) minmax(210px, 0.9fr) minmax(260px, 1fr);
  gap: 2.2rem;
  align-items: start;
}

.footer-brand-block {
  padding: 1.5rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-eyebrow {
  color: #9af1ff;
}

.footer-column h3 {
  margin: 0 0 0.9rem;
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-subheading {
  margin-top: 2rem;
}

.footer-column > .footer-links:first-of-type {
  margin-bottom: 1.2rem;
}

.footer-links {
  display: grid;
  gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #9af1ff;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.footer-badges span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(154, 241, 255, 0.08);
  border: 1px solid rgba(154, 241, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.footer-call {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
}

.footer-call:hover,
.footer-call:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.footer-contact p {
  margin: 0 0 0.7rem;
}

.footer-hours {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.footer-hours li span:first-child {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.footer-online-note {
  margin-top: 1rem;
  color: #9af1ff;
  font-weight: 700;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 14px 30px rgba(15, 111, 174, 0.24);
  }
  50% {
    box-shadow: 0 18px 36px rgba(32, 196, 216, 0.34);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .about-grid,
  .promo-grid,
  .lead-card,
  .footer-grid,
  .estimator-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid,
  .testimonial-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .quote-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: 500px;
  }

  .footer-brand-block {
    padding: 1.3rem;
  }
}

@media (min-width: 1200px) {
  .hero:not(.hero-inner) {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .hero:not(.hero-inner) .hero-grid {
    min-height: calc(100vh - 11rem);
    align-items: center;
  }
}

@media (min-width: 1440px) {
  .container {
    width: min(calc(100% - 3.5rem), var(--container));
  }

  .hero-grid,
  .about-grid,
  .promo-grid {
    gap: 3rem;
  }

  .services-grid {
    gap: 1.4rem;
  }

  .hero-visual {
    min-height: 600px;
  }

  .hero-photo {
    max-height: 600px;
  }

  .hero:not(.hero-inner) .hero-home-photo {
    width: min(100%, 560px);
  }

}

@media (min-width: 1700px) {
  .container {
    width: min(calc(100% - 4.5rem), 1600px);
  }

  .hero-grid {
    grid-template-columns: 1.06fr 0.94fr;
    gap: 3.5rem;
  }

  .section {
    padding: 5.5rem 0;
  }

  .hero-visual {
    min-height: 660px;
  }

  .hero-photo,
  .hero-logo,
  .hero-mascot {
    width: min(100%, 620px);
  }

  .hero-photo {
    max-height: 640px;
  }

  .hero:not(.hero-inner) .hero-home-photo {
    width: min(100%, 620px);
  }

  .lead-card,
  .promo-grid,
  .areas-panel {
    padding-inline: 2.25rem;
  }
}

@media (max-width: 1100px) {
  .hero:not(.hero-inner) .hero-visual {
    display: none;
  }

  .review-hero-visual {
    display: none;
  }
}

@media (max-width: 860px) {
  .quote-request-grid {
    grid-template-columns: 1fr;
  }

  .quote-request-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .checkbox-pill-grid {
    gap: 0.6rem;
  }

  .nav-row {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.8rem;
    justify-items: start;
    padding: 1rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu {
    position: static;
    min-width: 0;
    margin-top: 0.75rem;
    box-shadow: none;
  }

  .nav-group {
    width: 100%;
  }

  .footer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-hours li {
    font-size: 0.9rem;
  }
}

  .areas-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .areas-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .quote-form-shell {
    padding: 1.2rem;
    border-radius: 26px;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .hero-visual {
    min-height: 380px;
  }

  .lead-card,
  .promo-grid {
    padding: 1.2rem;
  }

  .quote-form,
  .services-grid,
  .about-gallery,
  .promo-collage,
  .areas-list,
  .mini-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .trust-list,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .footer-hours li {
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .estimate-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 1100px) {
  .estimate-modal {
    padding: 0.85rem;
  }

  .estimate-modal-dialog {
    width: min(920px, 100%);
    max-height: calc(100vh - 1rem);
    padding: 1rem;
  }

  .estimate-modal-dialog h2 {
    font-size: clamp(1.8rem, 3.8vw, 3rem);
  }

  .estimate-modal-summary {
    padding: 0.85rem 0.95rem;
  }

  .estimate-modal-grid {
    gap: 0.85rem;
  }

  .estimate-modal-card {
    padding: 0.9rem;
  }

  .estimate-modal-card ul {
    font-size: 0.93rem;
    line-height: 1.5;
  }

  .estimate-helper-text {
    line-height: 1.5;
  }
}

.roof-guide-hero .hero-text {
  max-width: 680px;
}

.roof-guide-hero-visual .image-figure {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.roof-guide-hero-visual figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(10, 47, 74, 0.82);
  color: var(--white);
  font-size: 0.92rem;
  line-height: 1.45;
}

.roof-guide-comparison {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 250, 253, 0.72));
}

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid rgba(15, 111, 174, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.roof-comparison-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.roof-comparison-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.roof-comparison-table th,
.roof-comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(15, 111, 174, 0.12);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.roof-comparison-table thead th {
  background: rgba(10, 47, 74, 0.96);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roof-comparison-table tbody th {
  color: var(--navy);
  font-size: 1rem;
}

.roof-comparison-table tbody td {
  color: var(--muted);
}

.roof-comparison-table tbody tr:last-child th,
.roof-comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.roof-guide-card-image {
  margin: 0 0 1.15rem;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(15, 111, 174, 0.1);
  background: rgba(244, 250, 253, 0.8);
  aspect-ratio: 16 / 10;
}

.roof-guide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.roof-guide-services .content-card,
.roof-guide-expectations .content-card,
.roof-decision-card {
  border-radius: 24px;
}

.roof-guide-decision {
  background: linear-gradient(180deg, rgba(244, 250, 253, 0.7), rgba(255, 255, 255, 0.9));
}

.roof-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.roof-decision-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.roof-sign-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.roof-sign-list li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--muted);
  line-height: 1.55;
}

.roof-sign-list li::before {
  content: "";
  position: absolute;
  top: 0.48rem;
  left: 0;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  box-shadow: 0 0 0 4px rgba(32, 196, 216, 0.13);
}

.roof-guide-cta {
  background: linear-gradient(135deg, rgba(10, 47, 74, 0.96), rgba(15, 111, 174, 0.92));
}

.roof-cta-panel {
  max-width: 920px;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--white);
}

.roof-cta-panel h2 {
  margin: 0.7rem 0 0.8rem;
  color: var(--white);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.roof-cta-panel p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.referral-page {
  --reward: #20b86f;
  --reward-dark: #0d6b43;
  --coin: #f5b93c;
  --coin-soft: rgba(245, 185, 60, 0.18);
}

.referral-hero {
  padding-bottom: 4rem;
  background:
    linear-gradient(135deg, rgba(32, 184, 111, 0.1), transparent 34%),
    radial-gradient(circle at 84% 24%, rgba(245, 185, 60, 0.24), transparent 28%);
}

.referral-hero-grid,
.referral-calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.referral-hero h1 {
  max-width: 12ch;
}

.referral-trust-list li {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 28px rgba(10, 47, 74, 0.08);
}

.referral-hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.referral-logo-orbit {
  position: relative;
  width: min(78vw, 440px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 38%, rgba(127, 241, 255, 0.28) 39% 55%, transparent 56%),
    conic-gradient(from 160deg, rgba(32, 184, 111, 0.26), rgba(245, 185, 60, 0.36), rgba(32, 196, 216, 0.3), rgba(32, 184, 111, 0.26));
  box-shadow: 0 28px 65px rgba(10, 47, 74, 0.14);
}

.referral-logo-orbit img {
  position: relative;
  z-index: 2;
  width: 46%;
  filter: drop-shadow(0 24px 26px rgba(10, 47, 74, 0.2));
}

.orbit-ring {
  position: absolute;
  inset: 12%;
  border: 2px dashed rgba(15, 111, 174, 0.24);
  border-radius: 50%;
  animation: referralSpin 28s linear infinite;
}

.orbit-ring-b {
  inset: 25%;
  border-color: rgba(32, 184, 111, 0.28);
  animation-direction: reverse;
  animation-duration: 22s;
}

.referral-ticket {
  position: absolute;
  z-index: 3;
  width: min(270px, 48vw);
  padding: 1.1rem;
  border: 1px solid rgba(10, 47, 74, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 0 50%, transparent 0 15px, rgba(255, 255, 255, 0.94) 16px),
    radial-gradient(circle at 100% 50%, transparent 0 15px, rgba(255, 255, 255, 0.94) 16px);
  box-shadow: 0 22px 44px rgba(10, 47, 74, 0.14);
}

.referral-ticket-main {
  top: 6%;
  left: 0;
  transform: rotate(-5deg);
}

.referral-ticket-alt {
  right: 0;
  bottom: 7%;
  transform: rotate(4deg);
}

.ticket-kicker,
.step-number {
  display: inline-flex;
  color: var(--reward-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.referral-ticket strong {
  display: block;
  margin: 0.1rem 0;
  color: var(--navy);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 8vw, 6.25rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
}

.referral-ticket span:last-child {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.referral-flow-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(244, 250, 253, 0.86));
}

.referral-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: referral-step;
}

.referral-step {
  position: relative;
  min-height: 260px;
  padding: 1.35rem;
  border-radius: 28px;
  border: 1px solid rgba(15, 111, 174, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.referral-step::after {
  content: "$25";
  position: absolute;
  right: -0.1rem;
  bottom: -0.55rem;
  color: rgba(245, 185, 60, 0.18);
  font-family: "Bebas Neue", sans-serif;
  font-size: 7rem;
  line-height: 1;
}

.referral-step h3 {
  position: relative;
  z-index: 1;
  margin: 2.6rem 0 0.65rem;
  color: var(--navy);
  font-size: 1.35rem;
}

.referral-step p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.referral-calculator-section {
  background:
    linear-gradient(135deg, rgba(10, 47, 74, 0.96), rgba(15, 111, 174, 0.9)),
    radial-gradient(circle at 80% 20%, rgba(245, 185, 60, 0.26), transparent 28%);
}

.referral-calculator-copy h2 {
  margin: 0.8rem 0 0.9rem;
  color: var(--white);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.referral-calculator-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
}

.referral-calculator-section .eyebrow {
  color: #9ff4c4;
}

.referral-calculator-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.calculator-control {
  display: grid;
  gap: 0.8rem;
}

.calculator-control label {
  color: var(--navy);
  font-weight: 900;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(82px, auto);
  gap: 1rem;
  align-items: center;
}

.range-row input[type="range"] {
  width: 100%;
  accent-color: var(--reward);
}

.range-row output {
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0 0.9rem;
  border-radius: 16px;
  color: var(--navy);
  background: var(--coin-soft);
  font-weight: 900;
}

.credit-meter {
  height: 18px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(10, 47, 74, 0.08);
  overflow: hidden;
}

.credit-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--reward), var(--coin));
  transition: width 0.25s ease;
}

.referral-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.referral-results div {
  min-width: 0;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(244, 250, 253, 0.92);
  border: 1px solid rgba(15, 111, 174, 0.1);
}

.referral-results dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.referral-results dd {
  margin: 0.35rem 0 0;
  color: var(--navy);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 0.95;
}

.calculator-note {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  color: var(--reward-dark);
  background: rgba(32, 184, 111, 0.12);
  border: 1px solid rgba(32, 184, 111, 0.22);
  font-weight: 800;
  line-height: 1.5;
}

.referral-details-section .content-card {
  border-radius: 28px;
}

.referral-cta-section {
  padding-top: 2rem;
}

.referral-cta-panel {
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 88% 18%, rgba(245, 185, 60, 0.24), transparent 24%);
  border: 1px solid rgba(15, 111, 174, 0.12);
  box-shadow: var(--shadow-lg);
}

.referral-cta-panel h2 {
  max-width: 820px;
  margin: 0.75rem 0 0.8rem;
  color: var(--navy);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.referral-cta-panel p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.referral-landing-grid,
.referral-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-width: 0;
}

.referral-landing-hero h1 {
  max-width: 10ch;
}

.referral-landing-page .referral-landing-hero {
  min-height: auto;
  display: block;
}

.referral-landing-page .reveal {
  opacity: 1;
  transform: none;
}

.referral-discount-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgba(10, 47, 74, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 90% 8%, rgba(245, 185, 60, 0.28), transparent 32%);
  box-shadow: var(--shadow-lg);
}

.referral-discount-card::after {
  content: "$25";
  position: absolute;
  right: -0.4rem;
  bottom: -0.55rem;
  color: rgba(245, 185, 60, 0.14);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(6rem, 18vw, 11rem);
  line-height: 0.82;
  pointer-events: none;
}

.referral-discount-card > * {
  position: relative;
  z-index: 1;
}

.referral-discount-card strong {
  display: block;
  margin: 0.15rem 0 0.5rem;
  color: var(--navy);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5.2rem, 14vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: 0.03em;
}

.referral-discount-card p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.referral-code-summary {
  display: grid;
  gap: 0.8rem;
  margin: 1.4rem 0 0;
}

.referral-code-summary div {
  min-width: 0;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 111, 174, 0.12);
  background: rgba(244, 250, 253, 0.9);
}

.referral-code-summary dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.referral-code-summary dd {
  margin: 0.35rem 0 0;
  color: var(--navy);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.referral-code-summary-dark {
  max-width: 640px;
  margin: 1.3rem 0 0;
}

.referral-code-summary-dark div {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.referral-code-summary-dark dt {
  color: rgba(255, 255, 255, 0.66);
}

.referral-code-summary-dark dd {
  color: var(--white);
}

.referral-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.referral-proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 900;
}

.referral-landing-proof {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(244, 250, 253, 0.9));
}

.referral-lead-section {
  overflow-x: clip;
  background:
    linear-gradient(135deg, rgba(10, 47, 74, 0.96), rgba(15, 111, 174, 0.9)),
    radial-gradient(circle at 16% 20%, rgba(32, 196, 216, 0.2), transparent 30%);
}

.referral-lead-copy,
.referral-lead-card {
  min-width: 0;
}

.referral-lead-copy h2 {
  max-width: 17ch;
  margin: 0.8rem 0 0.9rem;
  color: var(--white);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 5.25vw, 5.1rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.referral-lead-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
}

.referral-lead-copy code {
  padding: 0.1rem 0.32rem;
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.referral-lead-section .eyebrow {
  color: #9ff4c4;
}

.referral-lead-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.referral-lead-card h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--navy);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.referral-lead-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.referral-lead-card .ticket-kicker,
.referral-lead-card .button,
.referral-service-options,
.referral-form-message {
  grid-column: 1 / -1;
}

.referral-service-options {
  margin: 0;
  padding: 0;
  border: 0;
}

.referral-service-options legend {
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.referral-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.referral-service-pill {
  position: relative;
  cursor: pointer;
}

.referral-service-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.referral-service-pill span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 111, 174, 0.14);
  color: var(--navy);
  background: rgba(244, 250, 253, 0.92);
  font-weight: 900;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.referral-service-pill input:checked + span {
  border-color: rgba(32, 184, 111, 0.46);
  background: linear-gradient(135deg, rgba(32, 184, 111, 0.16), rgba(32, 196, 216, 0.14));
  box-shadow: 0 12px 22px rgba(15, 111, 174, 0.1);
}

.referral-service-pill:hover span,
.referral-service-pill input:focus + span {
  transform: translateY(-1px);
  border-color: rgba(15, 111, 174, 0.3);
}

.referral-lead-card .button {
  border: 0;
  cursor: pointer;
}

.referral-lead-card .button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.referral-form-message {
  min-height: 1.5rem;
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  font-weight: 900;
  line-height: 1.55;
}

.referral-form-message.success {
  color: var(--reward-dark);
  background: rgba(32, 184, 111, 0.12);
  border: 1px solid rgba(32, 184, 111, 0.22);
}

.referral-form-message.error {
  color: #8b2a2a;
  background: rgba(201, 54, 54, 0.1);
  border: 1px solid rgba(201, 54, 54, 0.18);
}

.referral-form-message:empty {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.referral-photo-stack {
  position: relative;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.72fr);
  gap: 1rem;
  align-items: start;
}

.referral-photo-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background-color: var(--white);
  background-image: var(--photo);
  background-position: var(--photo-position, center);
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 24px 60px rgba(10, 47, 74, 0.17);
}

.referral-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.referral-photo-card figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.65rem 0.85rem;
  border-radius: 16px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 14px 28px rgba(10, 47, 74, 0.16);
  backdrop-filter: blur(12px);
}

.referral-photo-card-main {
  inset: auto;
  aspect-ratio: 16 / 10;
}

.referral-photo-card-small {
  width: auto;
  height: auto;
  inset: auto;
  margin-top: clamp(1.5rem, 5vw, 4.25rem);
  aspect-ratio: 4 / 5;
}

.referral-photo-card-small img {
  object-position: center center;
}

.referral-results-section {
  background: linear-gradient(180deg, rgba(244, 250, 253, 0.86), rgba(255, 255, 255, 0.95));
}

.referral-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.25rem);
  align-items: start;
}

.referral-feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.referral-feature-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: var(--white);
  background-image: var(--photo);
  background-position: var(--photo-position, center);
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 24px 58px rgba(10, 47, 74, 0.16);
}

.referral-feature-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  object-position: center;
  opacity: 0;
}

.referral-feature-bubble {
  position: relative;
  z-index: 2;
  margin-left: clamp(-5rem, -5vw, -2rem);
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 26px;
  border: 1px solid rgba(15, 111, 174, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at 92% 12%, rgba(245, 185, 60, 0.22), transparent 34%);
  box-shadow: 0 24px 56px rgba(10, 47, 74, 0.14);
}

.referral-feature-bubble h3 {
  margin: 0.55rem 0 0.65rem;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.referral-feature-bubble p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.referral-review-section {
  background:
    linear-gradient(135deg, rgba(10, 47, 74, 0.96), rgba(15, 111, 174, 0.9)),
    radial-gradient(circle at 85% 22%, rgba(245, 185, 60, 0.18), transparent 28%);
}

.referral-review-section .section-heading h2 {
  color: var(--white);
}

.referral-review-section .section-heading p {
  color: rgba(255, 255, 255, 0.78);
}

.referral-review-section .eyebrow {
  color: #9ff4c4;
}

.referral-review-card {
  --review-offset: 0rem;
  position: relative;
  height: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.15rem, 2.2vw, 1.65rem);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 90% 8%, rgba(245, 185, 60, 0.2), transparent 32%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transform: translateY(var(--review-offset));
}

.referral-review-card:nth-child(2) {
  --review-offset: 1.1rem;
}

.referral-review-card:nth-child(3) {
  --review-offset: 2.2rem;
}

.referral-review-card.reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.referral-review-card.reveal.is-visible:nth-child(2) {
  transform: translateY(var(--review-offset));
}

.referral-review-card.reveal.is-visible:nth-child(3) {
  transform: translateY(var(--review-offset));
}

@supports (animation-timeline: view()) {
  .referral-review-card {
    animation: referralReviewFloat both ease-out;
    animation-timeline: view();
    animation-range: entry 0% cover 32%;
  }
}

@keyframes referralReviewFloat {
  from {
    opacity: 0.35;
    transform: translateY(calc(var(--review-offset) + 34px)) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(var(--review-offset)) scale(1);
  }
}

.referral-review-card::before {
  content: "\"";
  position: absolute;
  right: 1rem;
  top: 0.25rem;
  color: rgba(245, 185, 60, 0.2);
  font-family: "Bebas Neue", sans-serif;
  font-size: 7rem;
  line-height: 1;
}

.referral-review-card blockquote,
.referral-review-card strong,
.referral-review-card .stars {
  position: relative;
  z-index: 1;
}

.referral-review-card blockquote {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.58;
}

.referral-review-card strong {
  margin-top: auto;
  color: var(--blue-dark);
}

.referral-dashboard-hero {
  min-height: 72vh;
  padding: clamp(1.5rem, 4vw, 3rem) 0 4rem;
  background:
    radial-gradient(circle at 8% 8%, rgba(32, 196, 216, 0.1), transparent 30%),
    linear-gradient(180deg, #f7fbfd, #ffffff);
}

.referral-dashboard-page .container {
  width: min(calc(100% - 2rem), 1180px);
}

.referral-dashboard-page .nav-row {
  min-height: 78px;
}

.referral-dashboard-shell {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.4rem);
}

.referral-dashboard-page .reveal {
  opacity: 1;
  transform: none;
}

.dashboard-state[hidden],
.dashboard-content[hidden] {
  display: none;
}

.dashboard-state {
  max-width: 860px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 32px;
  border: 1px solid rgba(15, 111, 174, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
}

.dashboard-state h1,
.dashboard-hero-copy h1,
.dashboard-rewards-card h2,
.dashboard-share-card h2,
.dashboard-details-card h2 {
  margin: 0.55rem 0 0.65rem;
  color: var(--navy);
  line-height: 1.04;
  letter-spacing: 0;
}

.dashboard-state h1,
.dashboard-hero-copy h1 {
  max-width: 880px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
}

.dashboard-state p,
.dashboard-hero-copy p,
.dashboard-rewards-card p,
.dashboard-share-card p,
.dashboard-metric-card p,
.dashboard-details-card p {
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  min-width: 0;
}

.dashboard-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.1rem 0 0.5rem;
}

.dashboard-hero-copy p {
  max-width: 620px;
  margin: 0;
}

.dashboard-share-card,
.dashboard-rewards-card,
.dashboard-details-card,
.dashboard-metric-card,
.dashboard-help-card {
  border: 1px solid rgba(15, 111, 174, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.dashboard-share-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 24px;
}

.dashboard-rewards-card h2,
.dashboard-share-card h2,
.dashboard-details-card h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 900;
}

.dashboard-share-intro {
  margin: 0;
  max-width: 760px;
  font-size: 1rem;
}

.dashboard-share-prompt {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid #1877f2;
  border-radius: 0 14px 14px 0;
  color: var(--navy) !important;
  background: rgba(24, 119, 242, 0.07);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55 !important;
}

.dashboard-rewards-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(145deg, #0a2f4a, #0f5270);
  border-color: rgba(10, 47, 74, 0.2);
}

.dashboard-rewards-card .ticket-kicker {
  color: #82e4dc;
}

.dashboard-rewards-card h2 {
  color: var(--white);
}

.dashboard-rewards-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.dashboard-reward-tiers {
  display: grid;
  gap: 0;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.dashboard-reward-tiers li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 55px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.dashboard-reward-tiers span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 700;
}

.dashboard-reward-tiers strong {
  color: #a1f4d0;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  line-height: 1;
}

.dashboard-referral-link {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  color: var(--navy) !important;
  background: #f4fafd;
  border: 1px solid rgba(15, 111, 174, 0.17);
  font-weight: 800;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.dashboard-share-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.dashboard-share-actions .button {
  width: 100%;
  min-height: 50px;
  padding: 0.72rem 1.2rem;
  border-radius: 14px;
  cursor: pointer;
}

.dashboard-share-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.dashboard-share-actions .button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.6;
}

.button-facebook {
  border: 0;
  color: var(--white);
  background: #1877f2;
  box-shadow: 0 18px 28px rgba(24, 119, 242, 0.2);
}

.button-facebook:hover,
.button-facebook:focus {
  color: var(--white);
  background: #0f63cf;
}

#dashboard-share-link {
  display: inline-flex;
}

.dashboard-copy-feedback {
  min-height: 0;
  margin: 0;
  color: var(--reward-dark) !important;
  font-size: 0.9rem;
  font-weight: 800;
}

.dashboard-copy-feedback:empty {
  display: none;
}

.dashboard-more-share {
  border-top: 1px solid rgba(15, 111, 174, 0.12);
  padding-top: 0.7rem;
}

.dashboard-more-share summary {
  width: fit-content;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.dashboard-more-share summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
}

.dashboard-more-share[open] summary::after {
  content: "−";
}

.dashboard-more-share-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.45rem 0 0.15rem;
}

.dashboard-more-share-content a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dashboard-more-share-content p {
  width: 100%;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  grid-column: 1 / -1;
}

.dashboard-metric-card {
  position: relative;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.3rem);
  border-radius: 18px;
  overflow: hidden;
}

.dashboard-metric-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(32, 196, 216, 0.1);
}

.dashboard-metric-card span,
.dashboard-detail-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-metric-card strong {
  display: block;
  margin: 0.35rem 0 0.4rem;
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.dashboard-metric-card p {
  margin: 0;
}

.dashboard-details-card {
  display: grid;
  gap: 1rem;
  grid-column: 1 / -1;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border-radius: 30px;
}

.dashboard-details-heading {
  max-width: 720px;
}

.dashboard-details-heading p {
  margin: 0;
}

.dashboard-detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
}

.dashboard-detail-list div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(244, 250, 253, 0.92);
  border: 1px solid rgba(15, 111, 174, 0.1);
}

.dashboard-detail-list dd {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.dashboard-help-card {
  display: grid;
  gap: 0.95rem;
  grid-column: 1 / -1;
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 1.5rem);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(10, 47, 74, 0.96), rgba(15, 111, 174, 0.9)),
    radial-gradient(circle at 92% 20%, rgba(245, 185, 60, 0.22), transparent 30%);
}

.dashboard-help-card .ticket-kicker,
.dashboard-help-card p {
  color: var(--white);
}

.dashboard-help-card p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-help-card .button {
  justify-self: start;
  background: rgba(255, 255, 255, 0.94);
}

@media (max-width: 420px) {
  .dashboard-metric-card p {
    display: none;
  }

  .dashboard-metric-card strong {
    margin-bottom: 0;
  }
}

@media (min-width: 900px) {
  .dashboard-content {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 1.2rem;
  }

  .dashboard-hero-copy,
  .dashboard-metrics-grid,
  .dashboard-details-card,
  .dashboard-help-card {
    grid-column: 1 / -1;
  }

  .dashboard-hero-copy {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    padding: 0.5rem 0 1rem;
  }

  .dashboard-share-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@keyframes referralSpin {
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 860px) {
  .roof-decision-grid {
    grid-template-columns: 1fr;
  }

  .roof-guide-hero-visual figcaption {
    position: static;
    border-radius: 0;
  }

  .referral-hero-grid,
  .referral-calculator-grid,
  .referral-flow,
  .referral-landing-grid,
  .referral-lead-grid,
  .referral-review-grid,
  .referral-feature-panel {
    grid-template-columns: 1fr;
  }

  .referral-hero-visual {
    min-height: 430px;
  }

  .referral-ticket {
    width: min(236px, 54vw);
  }

  .referral-results {
    grid-template-columns: 1fr;
  }

  .dashboard-detail-list {
    grid-template-columns: 1fr;
  }

  .dashboard-help-card .button {
    justify-self: stretch;
  }

  .referral-photo-stack {
    grid-template-columns: 1fr;
  }

  .referral-feature-bubble {
    margin-left: 0;
  }

  .referral-review-card:nth-child(2),
  .referral-review-card:nth-child(3),
  .referral-review-card.reveal.is-visible:nth-child(2),
  .referral-review-card.reveal.is-visible:nth-child(3) {
    --review-offset: 0rem;
    animation: none;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .referral-dashboard-page .container {
    width: min(calc(100% - 1.5rem), 1180px);
  }

  .referral-dashboard-hero {
    padding-top: 1.25rem;
  }

  .dashboard-share-card,
  .dashboard-rewards-card,
  .dashboard-details-card,
  .dashboard-help-card {
    padding: 1.2rem;
    border-radius: 20px;
  }

  .dashboard-hero-copy h1 {
    font-size: clamp(1.8rem, 7vw, 2.25rem);
  }

  .dashboard-rewards-card h2,
  .dashboard-share-card h2,
  .dashboard-details-card h2 {
    font-size: clamp(1.45rem, 5.5vw, 1.8rem);
  }

  .referral-dashboard-page .nav-row {
    min-height: 70px;
  }

  .referral-dashboard-page .brand-logo {
    width: 48px;
    height: 48px;
  }

  .referral-dashboard-page .brand-text strong {
    font-size: 0.86rem;
  }

  .referral-dashboard-page .brand-text small {
    font-size: 0.72rem;
  }

  .referral-hero {
    padding-bottom: 2.5rem;
  }

  .referral-logo-orbit {
    width: min(86vw, 340px);
  }

  .referral-ticket-main {
    left: -0.5rem;
  }

  .referral-ticket-alt {
    right: -0.5rem;
  }

  .range-row {
    grid-template-columns: 1fr;
  }

  .referral-lead-card {
    grid-template-columns: 1fr;
  }

  .referral-service-grid {
    grid-template-columns: 1fr;
  }

  .referral-lead-copy h2 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 14vw, 3.8rem);
  }

  .referral-lead-copy p {
    max-width: 30ch;
  }

  .referral-lead-card h3 {
    max-width: 11ch;
    font-size: clamp(2.15rem, 11vw, 3.1rem);
  }

  .referral-photo-stack {
    display: grid;
    gap: 1rem;
  }

  .referral-photo-card {
    position: relative;
  }

  .referral-photo-card-main,
  .referral-photo-card-small {
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1.2;
  }

  .referral-proof-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}
/* Public Referral Rewards signup */
.referral-join-page {
  --join-navy: #082f49;
  --join-blue: #0877b9;
  --join-cyan: #27d3df;
  --join-green: #11875d;
  --join-mint: #dff7ec;
  --join-gold: #f6c85f;
  min-height: 100vh;
  color: var(--join-navy);
  background:
    radial-gradient(circle at 8% 16%, rgba(39, 211, 223, 0.18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(17, 135, 93, 0.12), transparent 23%),
    #f7fbfc;
}

.referral-join-page .site-header {
  color: var(--join-navy);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(8, 47, 73, 0.08);
  backdrop-filter: blur(16px);
}

.referral-join-page .nav-row {
  min-height: 76px;
}

.referral-join-page .site-nav {
  justify-self: end;
}

.referral-join-page .site-nav a {
  color: var(--join-navy);
}

.referral-join-page .site-nav .join-nav-cta {
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--join-blue);
  border-radius: 999px;
}

.join-main {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding-block: clamp(3.25rem, 7vw, 7rem);
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.72fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7.5rem);
  max-width: 1280px;
}

.join-copy {
  max-width: 760px;
}

.join-free-pill {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1.4rem;
  padding: 0.55rem 0.8rem;
  color: #0b6849;
  background: var(--join-mint);
  border: 1px solid rgba(17, 135, 93, 0.2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.join-copy .eyebrow,
.join-section-heading .eyebrow,
.join-confidence-copy .eyebrow {
  color: var(--join-blue);
}

.join-copy h1 {
  max-width: 760px;
  margin: 0.18em 0 0.25em;
  color: var(--join-navy);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.8rem, 7.2vw, 7.4rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.join-copy h1 em {
  display: inline;
  color: var(--join-green);
  font-style: normal;
}

.join-lede {
  max-width: 660px;
  margin: 0;
  color: #48677b;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.72;
}

.join-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 660px;
  margin: 1.8rem 0 1.2rem;
}

.join-reward-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.1rem 0.9rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(8, 47, 73, 0.1);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(8, 47, 73, 0.07);
}

.join-reward-grid article:first-child {
  border-top: 4px solid var(--join-cyan);
}

.join-reward-grid article:last-child {
  border-top: 4px solid var(--join-gold);
}

.join-reward-grid span,
.join-reward-grid small {
  grid-column: 2;
  color: #587487;
  font-size: 0.72rem;
  font-weight: 700;
}

.join-reward-grid strong {
  grid-column: 1;
  grid-row: 1 / 3;
  color: var(--join-navy);
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1;
}

.join-assurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: #315469;
  font-size: 0.86rem;
  font-weight: 800;
}

.join-assurance-list li::before {
  content: "✓";
  margin-right: 0.45rem;
  color: var(--join-green);
}

.join-text-link {
  color: var(--join-blue);
  font-weight: 800;
}

.join-mobile-cta {
  display: none;
}

.join-card {
  scroll-margin-top: 100px;
  padding: clamp(1.6rem, 3.2vw, 2.6rem);
  color: #102f42;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(8, 47, 73, 0.1);
  border-top: 5px solid var(--join-cyan);
  border-radius: 26px;
  box-shadow: 0 28px 75px rgba(8, 47, 73, 0.16);
}

.join-card h2 {
  margin: 0.35rem 0 0.45rem;
  color: var(--join-navy);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.join-card-intro {
  margin: 0 0 1.35rem;
  color: #607989;
  font-size: 0.9rem;
  line-height: 1.55;
}

.join-card form,
.join-card form > label {
  display: grid;
  gap: 0.45rem;
}

.join-card form {
  gap: 0.95rem;
}

.join-card label,
.join-card legend {
  color: #294b5f;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.join-card input:not([type="radio"]):not([type="checkbox"]) {
  width: 100%;
  min-height: 48px;
  padding: 0 0.85rem;
  color: #102f42;
  background: #fbfdfe;
  border: 1px solid #c8d8df;
  border-radius: 10px;
  font: inherit;
}

.join-card input:focus,
.join-card input:focus-visible {
  outline: 3px solid rgba(39, 211, 223, 0.2);
  border-color: var(--join-blue);
}

.join-name-grid,
.join-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.join-card fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.join-card legend {
  margin-bottom: 0.55rem;
}

.join-choice-grid label {
  position: relative;
}

.join-choice-grid input {
  position: absolute;
  opacity: 0;
}

.join-choice-grid span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: #fbfdfe;
  border: 1px solid #c8d8df;
  border-radius: 10px;
  cursor: pointer;
}

.join-choice-grid input:checked + span {
  color: #0a6243;
  background: #e9f7f1;
  border-color: var(--join-green);
  box-shadow: inset 0 0 0 1px var(--join-green);
}

.join-choice-grid input:focus-visible + span {
  outline: 3px solid rgba(39, 211, 223, 0.24);
  outline-offset: 2px;
}

.join-terms {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.6rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.5;
  text-transform: none !important;
}

.join-terms input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--join-green);
}

.join-terms a {
  color: var(--join-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.join-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.join-card .button {
  width: 100%;
  min-height: 52px;
  margin-top: 0.1rem;
  border: 0;
  box-shadow: 0 13px 25px rgba(8, 119, 185, 0.2);
}

.join-card .button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.join-submit-note {
  margin: -0.35rem 0 0;
  color: #6a8291;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.join-confirmation {
  grid-column: 2;
}

.join-confirmation p {
  line-height: 1.7;
}

.join-steps-section {
  scroll-margin-top: 80px;
  background: #fff;
  border-block: 1px solid rgba(8, 47, 73, 0.08);
}

.join-section-heading {
  max-width: 720px;
  margin-bottom: 2.4rem;
}

.join-section-heading h2,
.join-confidence-copy h2 {
  margin: 0.35rem 0 0.75rem;
  color: var(--join-navy);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 5.7vw, 5.4rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.01em;
}

.join-section-heading p,
.join-confidence-copy > p {
  color: #5b7485;
  line-height: 1.7;
}

.join-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.join-steps-grid li {
  position: relative;
  min-height: 250px;
  padding: 1.65rem;
  background: #f7fbfc;
  border: 1px solid rgba(8, 47, 73, 0.09);
  border-radius: 22px;
}

.join-steps-grid li > span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--join-blue);
  border-radius: 50%;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
}

.join-steps-grid li:nth-child(2) > span {
  background: var(--join-green);
}

.join-steps-grid li:nth-child(3) > span {
  color: var(--join-navy);
  background: var(--join-gold);
}

.join-steps-grid h3 {
  margin: 1.6rem 0 0.55rem;
  color: var(--join-navy);
  font-size: 1.25rem;
}

.join-steps-grid p {
  margin: 0;
  color: #607989;
  line-height: 1.65;
}

.join-confidence-section {
  background:
    radial-gradient(circle at 12% 22%, rgba(39, 211, 223, 0.15), transparent 32%),
    #edf7f8;
}

.join-confidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.7fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  max-width: 1180px;
}

.join-confidence-copy .button {
  margin-top: 1rem;
}

.join-confidence-card {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--join-navy);
  border-radius: 26px;
  box-shadow: 0 24px 55px rgba(8, 47, 73, 0.18);
}

.join-confidence-card .ticket-kicker {
  color: #6ee7ef;
}

.join-confidence-card ul {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.join-confidence-card li {
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 0;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.join-confidence-card li span {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.join-faq-section {
  background: #fff;
}

.join-faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  max-width: 1180px;
}

.join-faq-list {
  border-top: 1px solid #d8e5ea;
}

.join-faq-list details {
  border-bottom: 1px solid #d8e5ea;
}

.join-faq-list summary {
  position: relative;
  padding: 1.35rem 2.5rem 1.35rem 0;
  color: var(--join-navy);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.join-faq-list summary::-webkit-details-marker {
  display: none;
}

.join-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 1.02rem;
  right: 0;
  color: var(--join-blue);
  font-size: 1.65rem;
  font-weight: 500;
}

.join-faq-list details[open] summary::after {
  content: "−";
}

.join-faq-list p {
  margin: -0.5rem 0 1.35rem;
  color: #607989;
  line-height: 1.65;
}

.referral-join-page .site-footer {
  color: #fff;
  background: var(--join-navy);
}

.referral-join-page .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.referral-join-page .footer-bottom p,
.referral-join-page .footer-bottom a {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 900px) {
  .join-layout,
  .join-confidence-grid,
  .join-faq-layout {
    grid-template-columns: 1fr;
  }

  .join-layout {
    gap: 2.5rem;
  }

  .join-copy {
    max-width: 820px;
  }

  .join-confirmation {
    grid-column: 1;
  }

  .join-steps-grid {
    grid-template-columns: 1fr;
  }

  .join-steps-grid li {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .referral-join-page .nav-row {
    min-height: 68px;
  }

  .referral-join-page .brand-text small,
  .referral-join-page .site-nav a:not(.join-nav-cta) {
    display: none;
  }

  .referral-join-page .site-nav {
    display: flex;
  }

  .join-main {
    min-height: auto;
    padding-block: 2.8rem 4rem;
  }

  .join-copy h1 {
    font-size: clamp(3.6rem, 16vw, 5.5rem);
  }

  .join-mobile-cta {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    margin-top: 1.25rem;
  }

  .join-reward-grid {
    grid-template-columns: 1fr 1fr;
  }

  .join-reward-grid article {
    display: block;
  }

  .join-reward-grid strong,
  .join-reward-grid span,
  .join-reward-grid small {
    display: block;
  }

  .join-reward-grid strong {
    margin: 0.2rem 0;
  }

  .join-name-grid {
    grid-template-columns: 1fr;
  }

  .join-card {
    padding: 1.5rem 1.1rem;
    border-radius: 20px;
  }

  .cf-turnstile {
    max-width: 100%;
    overflow: hidden;
  }

  .join-steps-section,
  .join-confidence-section,
  .join-faq-section {
    padding-block: 4rem;
  }

  .join-section-heading h2,
  .join-confidence-copy h2 {
    font-size: clamp(2.9rem, 13vw, 4.5rem);
  }

  .referral-join-page .footer-bottom {
    display: grid;
  }
}

@media (max-width: 390px) {
  .join-reward-grid {
    grid-template-columns: 1fr;
  }
}

/* Referral landing page v3 - scoped so dashboard, join, and API-driven areas stay unchanged. */
.referral-landing-page {
  --referral-navy: #082f49;
  --referral-blue: #0877b9;
  --referral-cyan: #29d2df;
  --referral-mint: #ccf6e5;
  --referral-ink: #173f58;
  --referral-line: #dce8ee;
  --referral-paper: #f7fbfc;
  color: var(--referral-ink);
  background: #fff;
}

.referral-landing-page::before,
.referral-landing-page::after {
  display: none;
}

.referral-landing-page .container {
  width: min(calc(100% - 2rem), 1180px);
}

.referral-landing-page .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(8, 47, 73, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.referral-landing-page .nav-row {
  min-height: 70px;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.referral-landing-page .brand {
  min-width: 0;
  gap: 0.55rem;
}

.referral-landing-page .brand-logo {
  width: 48px;
  height: 48px;
}

.referral-landing-page .brand-text strong {
  color: var(--referral-navy);
  font-size: 0.92rem;
}

.referral-landing-page .brand-text small {
  font-size: 0.68rem;
}

.referral-landing-page .site-nav {
  display: none;
}

.referral-landing-page .nav-cta {
  display: inline-flex !important;
  min-height: 44px;
  gap: 0.25rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  color: var(--referral-navy);
  background: var(--referral-cyan);
  box-shadow: 0 10px 24px rgba(41, 210, 223, 0.26);
  font-size: 0.78rem;
}

.referral-landing-page .nav-cta-label {
  display: none;
}

.referral-hero-v3 {
  position: relative;
  overflow: hidden;
  padding: 2.1rem 0 4rem;
  background:
    radial-gradient(circle at 95% 2%, rgba(41, 210, 223, 0.17), transparent 25rem),
    linear-gradient(180deg, #ffffff 0%, #f4fafc 100%);
}

.referral-hero-v3::after {
  content: "";
  position: absolute;
  right: -7rem;
  top: 22rem;
  width: 15rem;
  height: 15rem;
  border: 1px solid rgba(41, 210, 223, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2.4rem rgba(41, 210, 223, 0.03);
  pointer-events: none;
}

.referral-hero-v3-grid {
  display: grid;
  gap: 1.5rem;
}

.referral-hero-v3-copy {
  padding-top: 0.5rem;
}

.referral-kicker,
.referral-landing-page .eyebrow,
.referral-landing-page .ticket-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--referral-blue);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.referral-kicker span {
  width: 1.55rem;
  height: 2px;
  border-radius: 99px;
  background: var(--referral-cyan);
}

.referral-landing-page .eyebrow::before {
  background: var(--referral-cyan);
}

.referral-hero-v3 h1,
.referral-section-heading h2,
.referral-review-summary h2,
.referral-process-intro h2,
.referral-final-cta h2,
.referral-lead-card h2 {
  margin: 0;
  color: var(--referral-navy);
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.92;
  text-transform: uppercase;
}

.referral-hero-v3 h1 {
  max-width: 12ch;
  margin-top: 0.85rem;
  font-size: clamp(3.35rem, 16vw, 5rem);
}

.referral-hero-v3-lede {
  max-width: 39rem;
  margin: 1rem 0 0;
  color: #47677b;
  font-size: 1rem;
  line-height: 1.7;
}

.referral-hero-v3-lede strong {
  color: var(--referral-navy);
  font-weight: 900;
}

.referral-offer-ticket {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 1.35rem;
  overflow: hidden;
  border: 1px solid #cce2ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(8, 47, 73, 0.08);
}

.referral-offer-ticket::before,
.referral-offer-ticket::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f6fbfc;
  transform: translate(-50%, -50%);
}

.referral-offer-ticket::before {
  top: 0;
}

.referral-offer-ticket::after {
  bottom: -18px;
}

.referral-offer-ticket div {
  min-width: 0;
  padding: 1rem 1.1rem;
}

.referral-offer-ticket div + div {
  border-top: 1px dashed #bad4de;
  background: linear-gradient(135deg, #e8fbfc, #f2fffa);
}

.referral-offer-ticket span {
  display: block;
  color: #6c8493;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.referral-offer-ticket strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--referral-navy);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.referral-hero-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.referral-landing-page .button {
  min-height: 52px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
}

.referral-landing-page .button-primary {
  color: #fff;
  background: linear-gradient(135deg, #073b5d, #0877b9);
  box-shadow: 0 14px 28px rgba(8, 84, 130, 0.2);
}

.referral-landing-page .button-primary:hover,
.referral-landing-page .button-primary:focus-visible {
  box-shadow: 0 18px 34px rgba(8, 84, 130, 0.28);
}

.referral-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--referral-navy);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--referral-cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.referral-quick-proof {
  display: grid;
  gap: 0.55rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  color: #45657a;
  font-size: 0.78rem;
  font-weight: 800;
}

.referral-quick-proof span {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.25rem;
  place-items: center;
  border-radius: 50%;
  color: #087d60;
  background: var(--referral-mint);
}

.referral-hero-v3-visual {
  position: relative;
  grid-row: 3;
  min-height: 18rem;
  overflow: visible;
  border-radius: 1.2rem 1.2rem 4.5rem 1.2rem;
}

.referral-hero-v3-visual > img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  box-shadow: 0 22px 48px rgba(8, 47, 73, 0.17);
}

.referral-photo-badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(8, 47, 73, 0.18);
  backdrop-filter: blur(12px);
}

.referral-photo-badge span,
.referral-rating-float small {
  display: block;
  color: #66808f;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.referral-photo-badge strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--referral-navy);
  font-size: 0.75rem;
}

.referral-rating-float {
  position: absolute;
  right: 0.8rem;
  top: -0.75rem;
  display: grid;
  min-width: 8.75rem;
  gap: 0.12rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 0.9rem;
  background: rgba(8, 47, 73, 0.94);
  box-shadow: 0 16px 32px rgba(8, 47, 73, 0.25);
}

.referral-rating-float .stars,
.referral-review-card .stars,
.referral-google-score .stars {
  color: #efad16;
  letter-spacing: 0.09em;
}

.referral-rating-float .stars {
  font-size: 0.64rem;
}

.referral-rating-float strong {
  color: #fff;
  font-size: 0.73rem;
}

.referral-rating-float small {
  color: rgba(255, 255, 255, 0.65);
}

.referral-landing-page .referral-lead-card {
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  padding: 1.2rem;
  border: 1px solid #d7e4e9;
  border-top: 4px solid var(--referral-cyan);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 55px rgba(8, 47, 73, 0.12);
}

.referral-form-heading,
.referral-landing-page .referral-service-options,
.referral-landing-page .cf-turnstile,
.referral-landing-page .referral-submit,
.referral-form-reassurance,
.referral-landing-page .referral-form-message {
  grid-column: 1 / -1;
}

.referral-form-heading h2 {
  max-width: 12ch;
  margin-top: 0.45rem;
  font-size: clamp(2.35rem, 11vw, 3.2rem);
}

.referral-form-heading p {
  margin: 0.65rem 0 0;
  color: #607a8a;
  font-size: 0.82rem;
  line-height: 1.55;
}

.referral-landing-page .form-field {
  gap: 0.4rem;
}

.referral-landing-page .form-field label,
.referral-landing-page .referral-service-options legend {
  color: var(--referral-navy);
  font-size: 0.72rem;
  font-weight: 900;
}

.referral-landing-page .form-field input {
  min-height: 50px;
  padding: 0 0.9rem;
  border: 1px solid #cfdee5;
  border-radius: 0.7rem;
  color: var(--referral-navy);
  background: #fbfdfe;
  box-shadow: none;
}

.referral-landing-page .form-field input::placeholder {
  color: #8aa0ad;
}

.referral-landing-page .form-field input:focus {
  border-color: var(--referral-blue);
  outline: 3px solid rgba(41, 210, 223, 0.17);
}

.referral-landing-page .referral-service-options legend {
  margin-bottom: 0.6rem;
}

.referral-landing-page .referral-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.referral-landing-page .referral-service-pill span {
  min-height: 46px;
  padding: 0.6rem;
  border: 1px solid #cfdee5;
  border-radius: 0.7rem;
  color: var(--referral-navy);
  background: #f8fbfc;
  font-size: 0.72rem;
  font-weight: 800;
}

.referral-landing-page .referral-service-pill input:checked + span {
  border-color: #25bfa9;
  color: #075846;
  background: var(--referral-mint);
  box-shadow: inset 0 0 0 1px #25bfa9;
}

.referral-landing-page .referral-service-pill input:focus-visible + span {
  outline: 3px solid rgba(41, 210, 223, 0.22);
  outline-offset: 2px;
}

.referral-landing-page .referral-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.referral-form-reassurance {
  margin: -0.1rem 0 0;
  color: #718895;
  font-size: 0.67rem;
  font-weight: 700;
  text-align: center;
}

.referral-landing-page .referral-form-message {
  font-size: 0.78rem;
}

.referral-services-v3,
.referral-reviews-v3,
.referral-process-v3 {
  padding: 4.5rem 0;
}

.referral-section-heading {
  max-width: 46rem;
  margin-bottom: 1.75rem;
}

.referral-section-heading h2,
.referral-review-summary h2,
.referral-process-intro h2,
.referral-final-cta h2 {
  margin-top: 0.6rem;
  font-size: clamp(3rem, 13vw, 5rem);
}

.referral-section-heading p,
.referral-process-intro > p,
.referral-final-cta p {
  margin: 0.85rem 0 0;
  color: #607a8a;
  line-height: 1.7;
}

.referral-service-showcase {
  display: grid;
  gap: 0.9rem;
}

.referral-service-card {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--referral-navy);
}

.referral-service-card img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.referral-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(3, 29, 47, 0.9) 100%);
}

.referral-service-card:hover img {
  transform: scale(1.035);
}

.referral-service-card-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 1.25rem;
  color: #fff;
}

.referral-service-card-copy > span {
  color: var(--referral-cyan);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.referral-service-card h3 {
  margin: 0.25rem 0 0;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.referral-service-card p {
  max-width: 28rem;
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.55;
}

.referral-services-cta {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1.15rem;
  border: 1px solid var(--referral-line);
  border-radius: 1rem;
  background: var(--referral-paper);
}

.referral-services-cta p {
  margin: 0;
  color: #577284;
  font-size: 0.82rem;
  line-height: 1.55;
}

.referral-services-cta strong {
  color: var(--referral-navy);
}

.referral-reviews-v3 {
  background: #f4f8fa;
}

.referral-review-summary {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.referral-google-score {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.28rem 0.7rem;
  padding: 1rem;
  border-left: 3px solid var(--referral-cyan);
  background: #fff;
}

.referral-google-score strong {
  color: var(--referral-navy);
}

.referral-google-score .stars {
  justify-self: end;
  font-size: 0.72rem;
}

.referral-google-score small {
  color: #6b8493;
  font-size: 0.7rem;
}

.referral-google-score a {
  justify-self: end;
  color: var(--referral-blue);
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: underline;
}

.referral-landing-page .referral-review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.referral-landing-page .referral-review-card {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
  border: 1px solid #d6e2e7;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 15px 30px rgba(8, 47, 73, 0.06);
  transform: none;
}

.referral-landing-page .referral-review-card::before {
  display: none;
}

.referral-review-card .stars {
  margin: 0;
  font-size: 0.78rem;
}

.referral-landing-page .referral-review-card blockquote {
  margin: 0;
  color: var(--referral-navy);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.7;
}

.referral-review-author {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  margin-top: auto;
}

.referral-review-author > span {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--referral-blue);
  font-weight: 800;
}

.referral-review-author div {
  display: grid;
}

.referral-review-author strong {
  margin: 0;
  color: var(--referral-navy);
  font-size: 0.75rem;
}

.referral-review-author small {
  color: #7b909c;
  font-size: 0.63rem;
}

.referral-review-author b {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid #d7e3e8;
  border-radius: 50%;
  color: #4285f4;
  font-size: 0.7rem;
}

.referral-process-v3 {
  background: #fff;
}

.referral-process-v3-grid {
  display: grid;
  gap: 2.25rem;
}

.referral-process-intro .button {
  width: 100%;
  margin-top: 1.25rem;
}

.referral-process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.referral-process-list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--referral-line);
}

.referral-process-list li:first-child {
  border-top: 1px solid var(--referral-line);
}

.referral-process-list li > span {
  color: var(--referral-cyan);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
}

.referral-process-list strong {
  color: var(--referral-navy);
  font-size: 0.9rem;
}

.referral-process-list p {
  margin: 0.35rem 0 0;
  color: #657e8d;
  font-size: 0.78rem;
  line-height: 1.55;
}

.referral-discount-fine-print {
  margin-top: 1.5rem;
}

.referral-discount-fine-print p {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.7rem;
  color: #617b8b;
  background: #f4f8fa;
  font-size: 0.68rem;
  line-height: 1.55;
}

.referral-final-cta {
  padding: 4rem 0;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(41, 210, 223, 0.24), transparent 18rem),
    linear-gradient(135deg, #072e48, #086da9);
}

.referral-final-cta .eyebrow,
.referral-final-cta h2 {
  color: #fff;
}

.referral-final-cta .eyebrow::before {
  background: var(--referral-cyan);
}

.referral-final-cta p {
  color: rgba(255, 255, 255, 0.74);
}

.referral-final-cta-inner,
.referral-final-actions {
  display: grid;
  gap: 1rem;
}

.referral-final-actions {
  margin-top: 1.5rem;
  text-align: center;
}

.referral-final-actions .button-accent {
  color: var(--referral-navy);
  background: var(--referral-cyan);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.17);
}

.referral-final-actions > a:not(.button) {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.referral-footer-v3 {
  padding: 2.5rem 0 1.25rem;
  color: #607a89;
  background: #fff;
}

.referral-footer-v3-grid {
  display: grid;
  gap: 1.35rem;
}

.referral-footer-v3-grid > p {
  max-width: 34rem;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.7;
}

.referral-footer-links {
  display: grid;
  gap: 0.5rem;
  color: var(--referral-navy);
  font-size: 0.77rem;
  font-weight: 800;
}

.referral-footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--referral-line);
}

.referral-footer-bottom p {
  margin: 0;
  font-size: 0.65rem;
}

/* Referral review carousel, adapted from the Suds Doctor theme widget. */
.referral-review-widget {
  --referral-review-gap: 1rem;
  overflow: hidden;
  padding: 3.75rem 0;
  background: #f4f8fa;
}

.referral-review-heading {
  display: grid;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.35rem;
}

.referral-review-heading header {
  margin: 0;
}

.referral-review-heading h2 {
  max-width: 19ch;
  margin-top: 0.55rem;
  color: var(--referral-navy);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 13vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.92;
  text-transform: uppercase;
}

.referral-review-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.75rem;
  align-items: center;
  justify-items: start;
  margin: 0;
  color: var(--referral-navy);
  font-size: 0.78rem;
}

.referral-review-summary > strong {
  font-size: 1rem;
  font-weight: 900;
}

.referral-review-summary > a {
  grid-column: 1 / -1;
  color: var(--referral-blue);
  font-weight: 900;
  text-underline-offset: 0.2em;
}

.referral-review-star-tiles {
  display: inline-flex;
  gap: 0.14rem;
}

.referral-review-star-tiles > span {
  display: grid;
  width: 1.3rem;
  height: 1.3rem;
  place-items: center;
  border-radius: 0.18rem;
  color: #fff;
  background: var(--referral-blue);
  font-size: 0.82rem;
  line-height: 1;
}

.referral-review-viewport {
  display: flex;
  align-items: stretch;
  gap: var(--referral-review-gap);
  margin-inline: auto;
  padding: 0.3rem 0.15rem 0.9rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(8, 119, 185, 0.45) transparent;
  scrollbar-width: thin;
}

.referral-review-viewport:focus-visible {
  border-radius: 0.4rem;
  outline: 3px solid rgba(8, 119, 185, 0.35);
  outline-offset: 4px;
}

.referral-review-widget.is-enhanced .referral-review-viewport {
  scrollbar-width: none;
}

.referral-review-widget.is-enhanced .referral-review-viewport::-webkit-scrollbar {
  display: none;
}

.referral-landing-page .referral-review-card {
  --review-offset: 0rem;
  display: flex;
  flex: 0 0 100%;
  height: auto;
  min-width: 0;
  min-height: 16rem;
  flex-direction: column;
  gap: 0;
  padding: 1.3rem;
  border: 1px solid #d6e2e7;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 35px rgba(8, 47, 73, 0.08);
  scroll-snap-align: start;
  animation: none;
  transform: none;
}

.referral-landing-page .referral-review-card::before {
  display: none;
}

.referral-review-card-stars {
  color: #f7a928;
  font-size: 1rem;
  letter-spacing: 0.11em;
}

.referral-landing-page .referral-review-card blockquote {
  flex: 1;
  margin: 1rem 0 1.35rem;
  color: var(--referral-navy);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.65;
}

.referral-review-card blockquote p {
  margin: 0;
}

.referral-review-card footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
}

.referral-review-avatar {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--referral-blue), var(--referral-cyan));
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.referral-review-person,
.referral-review-person > span {
  display: block;
  min-width: 0;
}

.referral-review-person strong {
  display: block;
  overflow: hidden;
  color: var(--referral-navy);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-review-person > span {
  margin-top: 0.1rem;
  color: #63777f;
  font-size: 0.72rem;
}

.referral-review-card footer > a {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #d8e4e9;
  border-radius: 50%;
  color: #4285f4;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.referral-review-card footer > a:hover,
.referral-review-card footer > a:focus-visible {
  border-color: #4285f4;
  outline: 2px solid rgba(66, 133, 244, 0.25);
  outline-offset: 2px;
}

.referral-review-controls {
  display: none;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.referral-review-widget.is-enhanced .referral-review-controls {
  display: flex;
}

.referral-review-controls button {
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  border: 1px solid #d8e4e9;
  border-radius: 50%;
  color: var(--referral-navy);
  background: #fff;
  box-shadow: 0 5px 16px rgba(8, 47, 73, 0.09);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
}

.referral-review-controls button:hover,
.referral-review-controls button:focus-visible {
  border-color: var(--referral-blue);
  color: #fff;
  background: var(--referral-blue);
  outline: 3px solid rgba(8, 119, 185, 0.2);
  outline-offset: 2px;
}

.referral-review-controls button[hidden] {
  display: none;
}

@media (min-width: 560px) {
  .referral-offer-ticket {
    grid-template-columns: 1fr 1fr;
  }

  .referral-offer-ticket div + div {
    border-top: 0;
    border-left: 1px dashed #bad4de;
  }

  .referral-hero-actions {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .referral-hero-actions .button {
    min-width: 13rem;
  }

  .referral-quick-proof {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0.9rem;
  }

  .referral-landing-page .referral-lead-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.5rem;
  }

  .referral-service-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .referral-service-card-wide {
    grid-column: 1 / -1;
  }

  .referral-services-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .referral-process-intro .button {
    width: auto;
  }
}

@media (min-width: 780px) {
  .referral-landing-page .container {
    width: min(calc(100% - 3.5rem), 1180px);
  }

  .referral-landing-page .nav-row {
    min-height: 82px;
    grid-template-columns: auto 1fr auto;
  }

  .referral-landing-page .brand-logo {
    width: 56px;
    height: 56px;
  }

  .referral-landing-page .brand-text strong {
    font-size: 1rem;
  }

  .referral-landing-page .site-nav {
    display: inline-flex;
    justify-self: center;
    gap: 1.4rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .referral-landing-page .site-nav a {
    color: #5f7786;
    font-size: 0.78rem;
  }

  .referral-landing-page .nav-cta-label {
    display: inline;
  }

  .referral-hero-v3 {
    padding: 4.5rem 0 5.5rem;
  }

  .referral-hero-v3-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 2rem;
    align-items: center;
  }

  .referral-hero-v3-copy {
    padding: 1rem 0;
  }

  .referral-hero-v3 h1 {
    font-size: clamp(4.35rem, 7.2vw, 5.4rem);
  }

  .referral-hero-v3-visual {
    grid-row: auto;
    min-height: 31rem;
  }

  .referral-hero-v3-visual > img {
    min-height: 31rem;
  }

  .referral-landing-page .referral-lead-card {
    grid-row: auto;
    grid-column: 1 / -1;
    max-width: 66rem;
    margin: 0 auto;
    padding: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .referral-form-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 2rem;
    align-items: end;
  }

  .referral-form-heading .ticket-kicker,
  .referral-form-heading h2 {
    grid-column: 1;
  }

  .referral-form-heading p {
    grid-column: 2;
    grid-row: 1 / 3;
    max-width: 20rem;
  }

  .referral-form-heading h2 {
    font-size: 3.6rem;
  }

  .referral-services-v3,
  .referral-reviews-v3,
  .referral-process-v3 {
    padding: 6.5rem 0;
  }

  .referral-service-showcase {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 27rem;
  }

  .referral-service-card,
  .referral-service-card-wide {
    grid-column: span 2;
    min-height: 0;
  }

  .referral-service-card:first-child,
  .referral-service-card:last-child {
    grid-column: span 3;
  }

  .referral-service-card img {
    min-height: 100%;
  }

  .referral-review-heading {
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: end;
  }

  .referral-landing-page .referral-review-card {
    flex-basis: calc((100% - var(--referral-review-gap)) / 2);
  }

  .referral-review-controls {
    justify-content: flex-end;
  }

  .referral-process-v3-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 8vw, 7rem);
    align-items: start;
  }

  .referral-final-cta-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
  }

  .referral-final-actions {
    min-width: 16rem;
    margin-top: 0;
  }

  .referral-footer-v3-grid {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.5rem;
  }

  .referral-footer-links {
    justify-items: end;
  }
}

@media (min-width: 1080px) {
  .referral-hero-v3-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(26rem, 0.78fr);
    gap: 1.5rem clamp(3rem, 6vw, 5rem);
    align-items: start;
  }

  .referral-hero-v3 h1 {
    font-size: clamp(4.65rem, 5.3vw, 5.35rem);
  }

  .referral-landing-page .referral-review-card {
    flex-basis: calc((100% - (2 * var(--referral-review-gap))) / 3);
  }

  .referral-hero-v3-visual {
    grid-column: 1;
    grid-row: 2;
    min-height: 19rem;
    margin-right: 0;
  }

  .referral-hero-v3-visual > img {
    min-height: 19rem;
  }

  .referral-landing-page .referral-lead-card {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    margin: 0;
    padding: 1.5rem;
  }

  .referral-form-heading {
    display: block;
  }

  .referral-form-heading p {
    max-width: none;
  }

  .referral-form-heading h2 {
    font-size: 3.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .referral-landing-page *,
  .referral-landing-page *::before,
  .referral-landing-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
