/* FairSolar — shared stylesheet
   Tokens and layout translated from the design handoff (design_handoff_fairsolar). */

:root {
  --ink: #0B1B33;
  --ink-muted: #4A5E7D;
  --ink-faint: #7A8DA8;
  --ink-ondark: #93A6C2;
  --blue: #0D47B8;
  --blue-bright: #1E6BF0;
  --sky: #EAF2FF;
  --sky-soft: #F4F8FF;
  --sky-line: #E7EEFA;
  --sun: #FFC42E;
  --sun-deep: #B37400;
  --white: #FFFFFF;
  --error: #C6353B;
  --green-deep: #0B3B28;
  --display: 'Bricolage Grotesque', sans-serif;
  --body-font: 'Figtree', system-ui, sans-serif;
  --shadow-float: 0 4px 22px rgba(11, 27, 51, 0.07);
  --shadow-modal: 0 30px 70px rgba(4, 22, 14, 0.45);
  --pad-x: clamp(20px, 3.5vw, 36px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ink); }
button { font-family: inherit; }
img { max-width: 100%; }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset;
  box-shadow: 0 0 0 1000px #FFFFFF inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 9999s ease-out 0s;
}

@keyframes v2-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes v2-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(-3deg); } }
@keyframes v2-marq-a { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes v2-marq-b { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes v2-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px var(--pad-x) 0;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  border-radius: 99px;
  padding: 12px 12px 12px 26px;
  box-shadow: var(--shadow-float);
  position: sticky;
  top: 14px;
  z-index: 60;
  flex-wrap: wrap;
}

.header-logo-link { display: flex; align-items: center; color: var(--ink); }
.header-logo { height: 42px; width: auto; display: block; }

.site-header nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.nav-links > a,
.legal-tabs > button {
  padding: 9px 12px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}
.nav-links > a:hover { background: var(--sky); color: var(--ink-muted); }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: var(--sky-soft);
}
.menu-btn.open { background: var(--sky); }
.menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); display: block; }

.header-cta {
  background: var(--ink);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 700;
  margin-left: 6px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--sun); color: var(--ink); }

.menu-drawer {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--sky);
  margin-top: 4px;
  padding: 8px 4px 4px;
}
.menu-drawer.open { display: flex; }
.menu-drawer a,
.menu-drawer button {
  padding: 14px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-drawer a:hover,
.menu-drawer button:hover { background: var(--sky); }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .site-header .menu-btn { display: inline-flex; }
}

/* ---------- Buttons ---------- */

.btn-sun {
  background: var(--sun);
  color: var(--ink);
  padding: 19px 34px;
  border-radius: 99px;
  font-size: 17px;
  font-weight: 700;
  display: inline-block;
}
.btn-sun:hover { background: var(--white); color: var(--ink); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 19px 34px;
  border-radius: 99px;
  font-size: 17px;
  font-weight: 600;
  display: inline-block;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  background-color: var(--green-deep);
  background-image: linear-gradient(100deg, rgba(6, 44, 30, 0.92) 0%, rgba(6, 44, 30, 0.80) 40%, rgba(6, 44, 30, 0.66) 68%, rgba(6, 44, 30, 0.60) 100%), url('../assets/hero-sky.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 40px;
  margin-top: 18px;
  padding: clamp(34px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 48px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  animation: v2-rise 0.6s ease both;
}

.hero-col { position: relative; min-width: 0; align-self: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-radius: 99px;
  padding: 8px 16px 8px 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 26px;
}
.hero-badge .new-pill {
  background: var(--sun);
  color: var(--ink);
  border-radius: 99px;
  padding: 3px 10px;
  font-weight: 700;
}

.hero-h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 22px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: #D6EADC;
  max-width: 32em;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-proof { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-stars { font-size: 19px; letter-spacing: 0.12em; color: var(--sun); line-height: 1; }
.hero-score { font-size: 15px; font-weight: 600; color: var(--white); }
.hero-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); display: block; }
.hero-reviews-link {
  font-size: 15px;
  font-weight: 600;
  color: #D6EADC;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-reviews-link:hover { color: var(--white); }

.chip-row { display: flex; gap: 7px; flex-wrap: nowrap; align-items: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 99px;
  padding: 8px 13px;
  font-size: clamp(10px, 1.15vw, 14px);
  font-weight: 600;
  white-space: nowrap;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); display: block; flex: none; }

/* Before / after slider */

.slider-shell {
  position: relative;
  min-width: 0;
  min-height: clamp(300px, 32vw, 430px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.slider-frame {
  position: relative;
  flex: 1;
  border-radius: 30px;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: var(--ink);
}
.slider-after,
.slider-before { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slider-after { background-image: url('../assets/house-after.jpg'); }
.slider-before { background-image: url('../assets/house-before.jpg'); clip-path: inset(0 50% 0 0); }

.slider-chip {
  position: absolute;
  top: 16px;
  border-radius: 99px;
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}
.slider-chip-l { left: 16px; background: rgba(11, 27, 51, 0.72); color: var(--white); }
.slider-chip-r { right: 16px; background: var(--sun); color: var(--ink); }

.slider-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  box-shadow: 0 0 14px rgba(11, 27, 51, 0.45);
  pointer-events: none;
}
.slider-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(11, 27, 51, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.05em;
}

.hero-card {
  position: absolute;
  left: -16px;
  bottom: 26px;
  background: var(--white);
  border-radius: 22px;
  padding: 16px 22px;
  box-shadow: 0 12px 30px rgba(11, 27, 51, 0.18);
  animation: v2-bob 5s ease-in-out infinite;
  pointer-events: none;
}
.hero-card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.hero-card-value {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ---------- Stat rail ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(178px, 100%), 1fr));
  gap: 14px;
  margin-top: 14px;
}
.stat-card { background: var(--white); border-radius: 26px; padding: 28px 26px; }
.stat-num {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--blue);
}
.stat-label { font-size: 15px; line-height: 1.45; color: var(--ink-muted); text-wrap: pretty; }

/* ---------- Section scaffolding ---------- */

.section { margin-top: 70px; scroll-margin-top: 92px; }

.section-head { text-align: center; max-width: 20em; margin: 0 auto 30px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  line-height: 1;
  text-wrap: balance;
}
.section-head p { font-size: 18px; color: var(--ink-muted); margin: 0; text-wrap: pretty; }

.eyebrow-pill {
  display: inline-block;
  background: var(--sky);
  color: var(--blue);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ---------- Quote section (landing embed) ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 14px;
  align-items: start;
}

.quote-card {
  background: var(--white);
  border-radius: 32px;
  padding: clamp(24px, 3vw, 38px);
  min-width: 0;
}

.quote-dark {
  background-color: var(--green-deep);
  background-image: linear-gradient(rgba(6, 44, 30, 0.88), rgba(6, 44, 30, 0.80)), url('../assets/hero-sky.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  border-radius: 32px;
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}
.quote-dark-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun);
}
.why-list { display: flex; flex-direction: column; gap: 22px; }
.why-num {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--sun);
  margin-bottom: 8px;
}
.why-body { font-size: 16px; line-height: 1.55; color: #C9DFD0; text-wrap: pretty; }
.reassure-list {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reassure-item { display: flex; gap: 12px; align-items: center; font-size: 15px; font-weight: 600; }
.reassure-item::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); flex: none; }

/* ---------- Funnel component (shared: landing embed + /quote) ---------- */

.f-progress { height: 8px; background: var(--sky); border-radius: 99px; margin-bottom: 28px; }
.f-progress-bar { height: 8px; background: var(--sun); border-radius: 99px; transition: width 0.35s ease; width: 0%; }

.f-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sun-deep);
  margin-bottom: 12px;
}

.f-title {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 10px;
  text-wrap: balance;
}
.funnel-card .f-title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.08; }

.f-sub { font-size: 16px; line-height: 1.55; color: var(--ink-muted); margin: 0 0 24px; text-wrap: pretty; }

.f-options { display: flex; flex-direction: column; gap: 10px; }
.f-opt {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--body-font);
  color: var(--ink);
  border-radius: 18px;
  padding: 17px 20px;
  cursor: pointer;
  border: 2px solid var(--sky-line);
  background: var(--white);
}
.f-opt:hover { border-color: var(--blue); }
.f-opt .f-tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: transparent;
  background: transparent;
}
.f-opt.on { border-color: var(--blue); background: var(--sky-soft); }
.f-opt.on .f-tick { background: var(--sun); color: var(--ink); }

.f-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.f-input {
  width: 100%;
  background: var(--white);
  border-radius: 16px;
  padding: 15px 18px;
  font-size: 16px;
  font-family: var(--body-font);
  color: var(--ink);
  outline: none;
  border: 2px solid var(--sky-line);
}
.f-input:focus { border-color: var(--blue); }
.f-input.error { border-color: var(--error); }
.f-error { font-size: 14px; color: var(--error); margin-top: 8px; font-weight: 600; }
.f-hint { font-size: 13px; color: var(--ink-faint); margin-top: 7px; }
.f-field { margin: 0; }
.f-contact-form { display: flex; flex-direction: column; gap: 16px; }

.f-submit {
  margin-top: 18px;
  width: 100%;
  background: var(--sun);
  color: var(--ink);
  border: none;
  padding: 19px 24px;
  border-radius: 99px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.f-submit:hover { background: var(--ink); color: var(--white); }
.f-contact-form .f-submit { margin-top: 0; padding: 20px 24px; }

.f-micro { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--ink-muted); }
.f-micro span { display: flex; align-items: center; gap: 7px; }
.f-micro span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); flex: none; }

.f-consent { font-size: 13px; line-height: 1.55; color: var(--ink-faint); margin: 0; text-wrap: pretty; }

.f-back {
  margin-top: 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 15px;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.f-map {
  width: 100%;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--sky-line);
  background: var(--sky);
}
.f-map-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 10px;
  text-wrap: pretty;
}
.f-map-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); flex: none; margin-top: 5px; }
.f-resolved {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--sky-soft);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
.f-resolved::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; margin-top: 6px; }
.f-map-label { margin: 20px 0 8px; }

.f-end-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 12px;
  text-wrap: balance;
}
.f-end-body { font-size: 17px; line-height: 1.6; color: var(--ink-muted); margin: 0; text-wrap: pretty; }
.f-end-back {
  margin-top: 22px;
  background: var(--sky-soft);
  color: var(--blue);
  border: none;
  padding: 14px 24px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.f-end-back:hover { background: var(--sky); }

.f-done { display: flex; flex-direction: column; gap: 18px; }
.f-done-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sun);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
}
.f-done-title {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}
.f-done strong { color: var(--ink); }
.f-next { display: flex; flex-direction: column; gap: 2px; }
.f-next-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--sky-line); }
.f-next-num { font-family: var(--display); font-weight: 800; color: var(--sun-deep); flex: none; }
.f-next-body { font-size: 16px; line-height: 1.55; color: var(--ink-muted); text-wrap: pretty; }

/* ---------- Savings section ---------- */

.savings {
  --sec-pad: clamp(28px, 3.5vw, 52px);
  background: var(--white);
  border-radius: 40px;
  padding: var(--sec-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 48px;
  align-items: start;
}
.savings-img {
  min-width: 0;
  height: clamp(320px, 40vw, 540px);
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--sky);
}
/* Desktop: photo pins below the sticky header while the points scroll past.
   z-index must stay below the header's 60 or the photo rides over it. */
@media (min-width: 781px) {
  .savings-img { position: sticky; top: 98px; z-index: 1; }
}
.savings-img > div {
  position: absolute;
  inset: 0;
  background-image: url('../assets/home-savings.jpg');
  background-size: cover;
  background-position: center;
}
.savings-copy { min-width: 0; }
.savings-copy h2 {
  font-family: var(--display);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 18px;
  text-wrap: balance;
}
.savings-copy > p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 28px;
  max-width: 34em;
  text-wrap: pretty;
}

.spec-list { display: flex; flex-direction: column; gap: 10px; }
.spec-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--sky-soft);
  border-radius: 18px;
  padding: 16px 20px;
}
.spec-item::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); flex: none; margin-top: 7px; }
.spec-item > div { min-width: 0; }
.spec-k { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.spec-full { font-size: 15px; line-height: 1.5; color: var(--ink-muted); text-wrap: pretty; }
.spec-short { display: none; font-size: 14px; line-height: 1.45; color: var(--ink-muted); text-wrap: pretty; }

/* ---------- Reviews ---------- */

.reviews-head { text-align: center; max-width: 20em; margin: 0 auto 26px; }

.rating-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--white);
  border-radius: 26px;
  padding: 20px 28px;
  max-width: 640px;
  margin: 0 auto 22px;
}
.rating-score { display: flex; align-items: baseline; gap: 10px; }
.rating-num {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--blue);
}
.rating-outof { font-size: 15px; color: var(--ink-muted); font-weight: 600; }
.rating-vrule { width: 1px; height: 34px; background: var(--sky-line); }
.rating-stars { font-size: 17px; letter-spacing: 0.1em; color: var(--sun); line-height: 1; margin-bottom: 5px; }
.rating-count { font-size: 14px; color: var(--ink-muted); font-weight: 600; }

.marquee-mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-row { display: flex; width: max-content; align-items: stretch; }
.marquee-row-a { animation: v2-marq-a 46s linear infinite; margin-bottom: 14px; }
.marquee-row-b { animation: v2-marq-b 52s linear infinite; }

.review-card {
  flex: none;
  width: 330px;
  margin-right: 14px;
  background: var(--white);
  border-radius: 24px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-stars { font-size: 15px; letter-spacing: 0.1em; color: var(--sun); line-height: 1; }
.review-quote { font-size: 16px; line-height: 1.55; color: var(--ink); margin: 0; flex: 1; text-wrap: pretty; }
.review-name { font-size: 15px; font-weight: 700; }
.review-meta { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }

/* ---------- Home size ---------- */

.size-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.size-tab {
  border: none;
  cursor: pointer;
  border-radius: 99px;
  padding: 14px 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--ink);
}
.size-tab-name { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.size-tab-tier {
  font-size: 12px;
  font-weight: 700;
  border-radius: 99px;
  padding: 4px 10px;
  background: var(--sky);
  color: var(--blue);
}
.size-tab.on { background: var(--ink); color: var(--white); }
.size-tab.on .size-tab-tier { background: var(--sun); color: var(--ink); }

.size-panel {
  --sec-pad: clamp(26px, 3.2vw, 46px);
  background: var(--white);
  border-radius: 40px;
  padding: var(--sec-pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 44px;
  align-items: center;
}
.size-copy { min-width: 0; }
.size-blurb { font-size: 21px; line-height: 1.5; margin: 0 0 26px; max-width: 26em; text-wrap: pretty; }
.home-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr));
  gap: 10px;
}
.home-stat { background: var(--sky-soft); border-radius: 20px; padding: 20px 18px; }
.home-stat-v {
  font-family: var(--display);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 6px;
  color: var(--blue);
  overflow-wrap: anywhere;
}
.home-stat-k { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.size-note { margin-top: 22px; font-size: 16px; color: var(--ink-muted); line-height: 1.55; text-wrap: pretty; }

.home-img {
  min-width: 0;
  height: clamp(300px, 30vw, 430px);
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--sky);
}
.home-img-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.home-img-pill {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(11, 27, 51, 0.78);
  color: var(--white);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(232px, 100%), 1fr));
  gap: 14px;
}
.process-card {
  background: var(--white);
  border-radius: 28px;
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}
.process-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  flex: none;
}
.process-title {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}
.process-body { font-size: 15px; line-height: 1.55; color: var(--ink-muted); text-wrap: pretty; }
.process-when { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--blue); }

/* ---------- Vetting ---------- */

.vetting {
  background: var(--blue);
  border-radius: 40px;
  padding: clamp(30px, 3.8vw, 54px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.vetting-circle {
  position: absolute;
  bottom: -160px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--blue-bright);
  opacity: 0.5;
}
.vetting-copy { position: relative; min-width: 0; }
.vetting-copy .eyebrow-pill { background: rgba(255, 255, 255, 0.15); color: var(--white); }
.vetting-copy h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--white);
  margin: 0 0 18px;
  text-wrap: balance;
}
.vetting-copy p { font-size: 17px; line-height: 1.6; color: #C3D8FA; margin: 0; max-width: 30em; text-wrap: pretty; }

.cred-grid {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cred-card {
  min-width: 0;
  background: var(--white);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cred-img {
  width: 64px;
  flex: none;
  aspect-ratio: 1;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.cred-card > div { min-width: 0; }
.cred-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; line-height: 1.25; text-wrap: pretty; }
.cred-reg { font-size: 12px; font-weight: 600; color: var(--ink-faint); line-height: 1.35; text-wrap: pretty; }

/* ---------- FAQ ---------- */

.faq-section { background: var(--white); border-radius: 40px; padding: clamp(28px, 3.5vw, 52px); }
.faq-section .section-head { margin-bottom: 22px; }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-radius: 24px; margin-bottom: 10px; background: var(--white); }
.faq-item.open { background: var(--sky-soft); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.faq-q span:first-child { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.faq-sign {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}
.faq-a {
  display: none;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  padding: 0 26px 24px;
  max-width: 62ch;
  text-wrap: pretty;
}
.faq-item.open .faq-a { display: block; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--sun);
  border-radius: 40px;
  padding: clamp(34px, 4.5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 12px;
  max-width: 13em;
  text-wrap: balance;
}
.cta-band p { font-size: 18px; color: #5C4A10; margin: 0; font-weight: 500; }
.cta-band-btn {
  background: var(--ink);
  color: var(--white);
  padding: 22px 42px;
  border-radius: 99px;
  font-size: 19px;
  font-weight: 700;
  flex: none;
}
.cta-band-btn:hover { background: var(--white); color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 40px;
  padding: clamp(30px, 3.5vw, 52px);
  margin-bottom: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 40px;
}
.footer-brand { min-width: 0; }
.footer-logo { height: 40px; width: auto; display: block; margin-bottom: 18px; }
.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-ondark);
  max-width: 28em;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.footer-email { font-size: 15px; font-weight: 600; line-height: 1.9; color: #C3D8FA; }
.footer-col { min-width: 0; }
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 16px;
}
.footer-col-links { display: flex; flex-direction: column; gap: 11px; }
.footer-col-links a { font-size: 15px; color: #C3D8FA; line-height: 1.35; text-wrap: pretty; }
.footer-col-links a:hover { color: var(--white); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 38px;
  padding-top: 22px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-faint);
  max-width: 80ch;
}

/* ---------- Cookie consent banner ---------- */

.consent-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  margin: 0 auto;
  max-width: 560px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(11, 27, 51, 0.22);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  z-index: 100;
  animation: v2-rise 0.4s ease both;
}
.consent-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  flex: 1 1 260px;
  text-wrap: pretty;
}
.consent-banner p a { font-weight: 600; color: var(--blue); }
.consent-banner p a:hover { color: var(--ink); }
.consent-actions { display: flex; gap: 8px; flex: none; margin-left: auto; }
.consent-accept,
.consent-decline {
  border: none;
  cursor: pointer;
  border-radius: 99px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--body-font);
}
.consent-accept { background: var(--sun); color: var(--ink); }
.consent-accept:hover { background: var(--ink); color: var(--white); }
.consent-decline { background: var(--sky-soft); color: var(--ink-muted); }
.consent-decline:hover { background: var(--sky); }

/* ---------- Funnel page (/quote) ---------- */

.funnel-page { background: var(--ink); }

.funnel-bg-house {
  position: fixed;
  inset: 0;
  background-image: url('../assets/house-after.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(0.8);
  transform: scale(1.1);
}
.funnel-bg-scrim {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(6, 44, 30, 0.78), rgba(11, 27, 51, 0.90)), url('../assets/hero-sky.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

.funnel-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: clamp(20px, 4vw, 44px) clamp(14px, 4vw, 44px) clamp(28px, 4vw, 44px);
}

.funnel-logo { height: 46px; width: auto; display: block; }

.funnel-card {
  width: 100%;
  max-width: 600px;
  background: var(--white);
  border-radius: 32px;
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-modal);
  animation: v2-rise 0.5s ease both;
  color: var(--ink);
}

.funnel-chips { display: flex; gap: 8px; flex-wrap: nowrap; align-items: center; justify-content: center; }

.badge-marquee {
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.badge-marquee-row {
  display: flex;
  align-items: center;
  width: max-content;
  animation: v2-marquee 16s linear infinite;
}
.badge-marquee-row span {
  flex: none;
  width: 74px;
  height: 74px;
  margin-right: 56px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.95;
}

.funnel-legal {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 70ch;
  text-align: center;
}
.funnel-page a { color: var(--sun); }
.funnel-page a:hover { color: var(--white); }

/* ---------- Legal page ---------- */

.legal-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.legal-tabs > button {
  padding: 10px 16px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  background: var(--sky-soft);
  color: var(--ink);
}
.legal-tabs > button.on { background: var(--blue); color: var(--white); }

.menu-drawer button.on { background: var(--sky); color: var(--blue); }

.legal-hero {
  margin-top: 18px;
  background: var(--blue);
  border-radius: 40px;
  padding: clamp(30px, 4vw, 54px);
  position: relative;
  overflow: hidden;
}
.legal-hero-circle {
  position: absolute;
  bottom: -170px;
  right: -90px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--blue-bright);
  opacity: 0.45;
}
.legal-hero-inner { position: relative; }
.legal-hero .eyebrow-pill { background: rgba(255, 255, 255, 0.15); color: var(--white); }
.legal-hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--white);
  margin: 0 0 16px;
  max-width: 16em;
  text-wrap: balance;
}
.legal-hero p { font-size: 18px; line-height: 1.6; color: #C3D8FA; margin: 0; max-width: 44em; text-wrap: pretty; }
.legal-updated { margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--sun); }

.legal-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.legal-main { background: var(--white); border-radius: 32px; padding: clamp(24px, 3vw, 40px); min-width: 0; }
.legal-block { padding: 0 0 26px; }
.legal-block h2 {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 10px;
  text-wrap: balance;
}
.legal-block p { font-size: 16px; line-height: 1.65; color: var(--ink-muted); margin: 0 0 12px; text-wrap: pretty; }
.legal-list { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.legal-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--sky-soft);
  border-radius: 14px;
  padding: 13px 16px;
}
.legal-list-item::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); flex: none; margin-top: 7px; }
.legal-list-item span { font-size: 15px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }

.legal-side {
  background: var(--ink);
  color: var(--white);
  border-radius: 32px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  position: sticky;
  top: 92px;
}
.legal-side-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun);
}
.legal-side p { font-size: 15px; line-height: 1.6; color: var(--ink-ondark); margin: 0; text-wrap: pretty; }
.legal-side-btn {
  align-self: flex-start;
  background: var(--sun);
  color: var(--ink);
  padding: 14px 24px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 700;
}
.legal-side-btn:hover { background: var(--white); color: var(--ink); }

.legal-footer {
  margin-top: 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 40px;
  padding: clamp(26px, 3vw, 40px);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.legal-footer img { height: 36px; width: auto; display: block; }
.legal-footer a { font-size: 15px; font-weight: 600; color: #C3D8FA; }
.legal-footer a:hover { color: var(--white); }

.legal-line {
  padding: 0 clamp(8px, 2vw, 20px) 40px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-faint);
  max-width: 80ch;
}

@media (max-width: 900px) {
  .legal-page .legal-tabs { display: none; }
  .legal-page .menu-btn { display: inline-flex; }
}
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-side { position: static; }
}

/* ---------- Responsive: ≤780px ---------- */

@media (max-width: 780px) {
  .stat-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: calc(var(--pad-x) * -1);
    margin-right: calc(var(--pad-x) * -1);
    padding: 0 var(--pad-x) 4px;
    scroll-padding-left: var(--pad-x);
    scroll-padding-right: var(--pad-x);
  }
  .stat-strip::-webkit-scrollbar { display: none; }
  .stat-strip > * { flex: 0 0 74%; scroll-snap-align: start; }

  .hero { display: flex; flex-direction: column; gap: 0; }
  .hero-col { display: contents; }
  .hero-badge { order: 1; }
  .hero-h1 { order: 2; }
  .hero-sub { order: 3; }
  .hero-ctas { order: 4; margin-bottom: 24px; }
  .slider-shell { order: 5; }
  .hero-proof { order: 6; margin: 18px 0 0; }
  .hero .chip-row {
    order: 7;
    margin-top: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px 2px;
    font-size: 13px;
  }
  .hero .chip-row::-webkit-scrollbar { display: none; }
  .hero .chip-row > span { flex: 0 0 auto; font-size: 13px; }

  .hero-card { position: static; margin-top: 14px; animation: none; }

  .spec-list {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-left: calc(var(--sec-pad) * -1);
    margin-right: calc(var(--sec-pad) * -1);
    padding: 0 var(--sec-pad) 4px;
    scroll-padding-left: var(--sec-pad);
    scroll-padding-right: var(--sec-pad);
    gap: 10px;
  }
  .spec-list::-webkit-scrollbar { display: none; }
  .spec-item { flex: 0 0 78%; scroll-snap-align: start; }
  .spec-full { display: none; }
  .spec-short { display: block; }

  .quote-grid { gap: 12px; }
  .quote-card { padding: 22px 18px; border-radius: 26px; }

  .home-stats {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    margin-left: calc(var(--sec-pad) * -1);
    margin-right: calc(var(--sec-pad) * -1);
    padding: 0 var(--sec-pad) 4px;
    scroll-padding-left: var(--sec-pad);
    scroll-padding-right: var(--sec-pad);
  }
  .home-stats::-webkit-scrollbar { display: none; }
  .home-stat { flex: 0 0 52%; scroll-snap-align: start; }

  .savings-img { height: 64vw; min-height: 240px; max-height: 360px; }
  .home-img { height: auto; aspect-ratio: 4 / 5; max-height: 62vh; }

  .cred-grid {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    margin-left: -30px;
    margin-right: -30px;
    padding: 0 0 4px;
    scroll-padding-left: 30px;
  }
  .cred-grid::-webkit-scrollbar { display: none; }
  .cred-card:first-child { margin-left: 30px; }
  .cred-card:last-child { margin-right: 30px; }
  .cred-card {
    flex: 0 0 43%;
    scroll-snap-align: start;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 2px solid var(--white);
    padding: 10px 8px 12px;
    border-radius: 16px;
  }
  .cred-img { width: 100%; max-width: 62px; margin: 0 auto; }
  .cred-name { font-size: 12px; }
  .cred-reg { font-size: 10px; }

  .rating-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .rating-vrule { display: none; }

  .badge-marquee { max-width: 100%; }
}

@media (max-width: 780px) and (min-width: 621px) {
  .funnel-chips { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Responsive: ≤620px ---------- */

@media (max-width: 620px) {
  .f-micro { flex-wrap: nowrap; gap: 10px; font-size: 12px; }
  .f-micro > span { white-space: nowrap; gap: 5px; }

  .stat-card { padding: 24px 22px; }
  .stat-num { font-size: 36px; }

  .slider-frame { border-radius: 22px; }
  .slider-chip { top: 10px; font-size: 10px; padding: 5px 11px; letter-spacing: 0.07em; }
  .slider-chip-l { left: 10px; }
  .slider-chip-r { right: 10px; }
  .slider-knob { width: 34px; height: 34px; font-size: 13px; }
  .slider-shell { height: auto; min-height: 0; aspect-ratio: 5 / 4; }
  .hero-card { display: none; }
  .hero-h1 { font-size: 34px; line-height: 1.06; letter-spacing: -0.03em; }
  .hero-sub { font-size: 16px; line-height: 1.45; margin-bottom: 22px; }
  .hero-badge { font-size: 12px; padding: 6px 12px 6px 8px; margin-bottom: 18px; }
  .hero-ctas .btn-sun, .hero-ctas .btn-ghost { padding: 16px 24px; font-size: 16px; }
  .hero { padding: 26px 20px 30px; border-radius: 28px; }

  .site-header { padding: 9px 9px 9px 16px; gap: 10px; border-radius: 26px; }
  .header-logo { height: 32px; }
  .header-cta { padding: 11px 16px; font-size: 14px; margin-left: 0; }

  .legal-page .site-header { padding: 10px 12px; gap: 10px; border-radius: 24px; }

  .funnel-shell {
    justify-content: flex-start;
    padding: max(22px, env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom));
    gap: 16px;
  }
  .funnel-card { padding: 22px 18px; border-radius: 26px; }
  .funnel-logo { height: 36px; }
  .funnel-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 2px;
  }
  .funnel-chips::-webkit-scrollbar { display: none; }
  .funnel-chips > span { flex: 0 0 auto; }
}
