/* ==========================================================================
   Heliobond — landing page styles
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colour — taken from the Heliobond logo */
  --c-navy: #042439;
  --c-navy-2: #0c3552;
  --c-amber: #feb204;
  --c-amber-2: #f2a600;

  --c-bg: #f7f6f2;
  --c-surface: #ffffff;
  --c-surface-2: #efeee8;
  --c-ink: var(--c-navy);
  --c-ink-2: #2d4556;
  --c-muted: #5b6b77;
  --c-line: #e3e2db;
  --c-on-dark: #f4f6f8;
  --c-on-dark-muted: #a9b7c2;

  /* Type */
  --f-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 1.8vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.3rem + 3.6vw, 4.25rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section-y: clamp(5rem, 3rem + 7vw, 9rem);

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 1.5rem);
  --header-h: 68px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--c-amber-2);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

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

.section { padding-block: var(--section-y) 0; }

/* ---------- Typography helpers ---------- */
.h2 {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-2);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-amber);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.9); }

.lead { font-size: var(--fs-md); line-height: 1.55; }
.text-muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); }
.nowrap { white-space: nowrap; }

.pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-ink-2);
  background: var(--c-surface);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-navy);
  --btn-fg: #fff;
  --btn-icon-bg: #fff;
  --btn-icon-fg: var(--c-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 52px;
  padding: 6px 6px 6px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:not(:has(.btn__icon)) { padding-right: 22px; }
.btn:active { transform: translateY(1px); }

.btn__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 6px;
  background: var(--btn-icon-bg);
  color: var(--btn-icon-fg);
  transition: transform 0.2s var(--ease);
}
.btn__icon svg { width: 16px; height: 16px; }
.btn:hover .btn__icon { transform: translateX(2px); }

.btn--sm { min-height: 44px; padding-left: 16px; font-size: var(--fs-sm); }
.btn--sm .btn__icon { width: 32px; height: 32px; }
.btn--sm:not(:has(.btn__icon)) { padding-right: 16px; }

.btn--dark:hover { --btn-bg: var(--c-navy-2); }

.btn--accent {
  --btn-bg: var(--c-amber);
  --btn-fg: var(--c-navy);
  --btn-icon-bg: var(--c-navy);
  --btn-icon-fg: #fff;
}
.btn--accent:hover { --btn-bg: #ffc433; }

.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.18); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Media (images with graceful fallback) ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(254, 178, 4, 0.28), transparent 55%),
    linear-gradient(160deg, #123c5a, var(--c-navy));
}
.media > picture { display: contents; }
.media > img,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent; /* hide alt text glyphs if the image fails */
}
.media.is-broken > img,
.media.is-broken > picture > img { visibility: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.brand img { width: auto; height: 30px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  flex: 1;
  justify-content: space-between;
  margin-left: var(--s-7);
}
.site-nav__list { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.site-nav__list a {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--c-amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav__list a:hover { color: var(--c-ink); }
.site-nav__list a:hover::after { transform: scaleX(1); }

.site-nav__arrow,
.site-nav__note,
.site-nav__cta-mobile { display: none; }
.site-nav__actions { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -6px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav-toggle__bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle__bars > span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--c-navy);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease), width 0.3s var(--ease);
}
.nav-toggle__bars > span:nth-child(1) { top: 0; }
.nav-toggle__bars > span:nth-child(2) { top: 5px; width: 70%; }
.nav-toggle__bars > span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] { background: var(--c-navy); border-color: var(--c-navy); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span { background: #fff; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: var(--s-2); }

.hero__frame {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-rows: 1fr auto;
  min-height: clamp(600px, 80vh, 720px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(254, 178, 4, 0.12), transparent 60%),
    var(--c-navy);
  color: #fff;
}
.hero__media {
  grid-column: 2;
  grid-row: 1;
  border-radius: 0;
}
.hero__media img { object-position: 40% 50%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--c-navy) 0%, rgba(4, 36, 57, 0) 18%);
  pointer-events: none;
}

.hero__content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: clamp(2.5rem, 1rem + 4vw, 4rem) clamp(1.5rem, 0.5rem + 3vw, 3.5rem);
}
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 3.55vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
/* Desktop: three deliberate lines. */
.hero__line { display: block; white-space: nowrap; }
.hero__title .hl { color: var(--c-amber); }
.hero__points {
  display: grid;
  gap: var(--s-3);
  max-width: 540px;
  margin: var(--s-5) 0 var(--s-6);
}
.hero__points li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.hero__points strong { font-weight: 600; color: #fff; }
.hero__points svg {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: var(--c-amber);
  color: var(--c-navy);
}

.hero__stats {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 20, 33, 0.6);
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5) clamp(1rem, 2vw, 1.75rem);
}
.hero-stat + .hero-stat { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.hero-stat__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(254, 178, 4, 0.14);
  color: var(--c-amber);
}
.hero-stat__icon svg { width: 24px; height: 24px; }
.hero-stat__icon--google { background: #fff; }
.hero-stat__icon--google svg { width: 26px; height: 26px; }
.hero-stat p { display: grid; gap: 2px; }
.hero-stat__num {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-stat__label { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.72); }
.hero-stat__star { width: 0.7em; height: 0.7em; color: var(--c-amber); }

/* ---------- As seen on / Partners ---------- */
.logos { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.logo-strip {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  align-items: center;
  gap: var(--s-6);
  padding-block: var(--s-5);
}
.logo-strip + .logo-strip { border-top: 1px solid var(--c-line); }
.logo-strip__title {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.logo-strip__viewport { overflow: hidden; }
.logo-strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
}
.logo-strip__item {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
.logo-strip__img {
  width: auto;
  height: 32px;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.15);
  opacity: 0.9;
  transition: filter 0.2s var(--ease), opacity 0.2s var(--ease);
}
.logo-strip__item:hover .logo-strip__img { filter: none; opacity: 1; }
/* Round badge logos need more height to read at the same visual size. */
.logo-strip__img[src$="rea.png"],
.logo-strip__img[src$="rea.webp"] { height: 44px; }
.logo-strip__item .wordmark { display: none; }
.logo-strip__item.no-logo .logo-strip__img,
.no-js .logo-strip__img { display: none; }
.logo-strip__item.no-logo .wordmark,
.no-js .logo-strip__item .wordmark { display: inline; }

/* Slider: main.js duplicates the list and adds .is-sliding */
.logo-strip.is-sliding .logo-strip__viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-strip.is-sliding .logo-strip__track {
  display: flex;
  width: max-content;
  animation: logo-slide var(--slide-duration, 30s) linear infinite;
}
.logo-strip--reverse.is-sliding .logo-strip__track { animation-direction: reverse; }
.logo-strip.is-sliding:hover .logo-strip__track,
.logo-strip.is-sliding:focus-within .logo-strip__track { animation-play-state: paused; }
.logo-strip.is-sliding .logo-strip__list {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
}
.logo-strip.is-sliding .logo-strip__item { padding-inline: clamp(1.5rem, 3vw, 3rem); }
@keyframes logo-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Text stand-ins until the official logo files are added */
.wordmark {
  font-size: 1.375rem;
  line-height: 1;
  white-space: nowrap;
  color: #7b8892;
  transition: color 0.2s var(--ease);
}
.logo-strip__item:hover .wordmark { color: var(--c-navy); }
.wordmark--serif { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0.02em; font-size: 1.2rem; }
.wordmark--serif-heavy { font-family: Georgia, "Times New Roman", serif; font-weight: 900; letter-spacing: 0.01em; }
.wordmark--serif-italic { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-style: italic; }
.wordmark--sans { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; }
.wordmark--sans-heavy { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.03em; }

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
.section-head .h2 { max-width: 16em; }
.section-head__aside { max-width: 360px; }
.section-head--center {
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}
.section-head--center .h2 { max-width: 20em; }
.section-head--center .lead { max-width: 38em; margin-top: var(--s-4); }

.pill-label {
  display: inline-block;
  margin-bottom: var(--s-4);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: #fff1cc;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a5200;
}

/* ---------- Why Heliobond (pains we solve) ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: var(--s-4);
}
.pain-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.pain-card__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: var(--s-5);
  border-radius: 12px;
  background: rgba(254, 178, 4, 0.16);
  color: var(--c-navy);
}
.pain-card__icon svg { width: 22px; height: 22px; }
.pain-card__problem {
  margin-bottom: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  font-style: italic;
  color: #a5432f;
}
.pain-card__title { font-size: var(--fs-md); font-weight: 600; line-height: 1.3; }
.pain-card__text { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--c-muted); }

.pain-card--feature {
  grid-row: span 3;
  justify-content: flex-end;
  padding: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  border: 0;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(254, 178, 4, 0.28), transparent 60%),
    var(--c-navy);
  color: #fff;
}
.pain-card--feature .pain-card__problem { color: #ffd27a; font-size: var(--fs-base); }
.pain-card__big {
  margin: var(--s-4) 0 var(--s-2);
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}
.pain-card__big span {
  display: block;
  font-size: clamp(4.5rem, 3rem + 5vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--c-amber);
}
.pain-card--feature .pain-card__title { margin-top: var(--s-4); font-size: var(--fs-lg); }
.pain-card--feature .pain-card__text { color: rgba(255, 255, 255, 0.78); font-size: var(--fs-base); }
.pain-card--feature .btn { align-self: flex-start; margin-top: var(--s-6); }

.homes-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-6);
  font-size: var(--fs-sm);
  color: var(--c-muted);
  text-align: center;
}
.homes-note svg { flex: none; width: 18px; height: 18px; color: var(--c-amber-2); }
.homes-note strong { color: var(--c-ink); }

/* ---------- Going it alone vs Heliobond ---------- */
.vs2 {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--s-5);
  max-width: 1080px;
  margin-inline: auto;
}
.vs2__card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--r-lg);
}
.vs2__card--bad {
  background: #efeee9;
}
.vs2__card--good {
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(254, 178, 4, 0.16), transparent 70%),
    var(--c-surface);
  border: 1px solid #f1dfae;
  box-shadow: 0 30px 60px -36px rgba(4, 36, 57, 0.28);
}

.vs2__head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-2);
  border-bottom: 1px solid rgba(4, 36, 57, 0.08);
}
.vs2__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
}
.vs2__icon svg { width: 20px; height: 20px; }
.vs2__icon--bad { background: #fbe4df; color: #c2412d; }
.vs2__icon--good { background: var(--c-surface); border: 1px solid var(--c-line); }
.vs2__icon--good img { width: 30px; height: 30px; }
.vs2__title {
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-ink);
}
.vs2__card--bad .vs2__title { color: #4a5259; }
.vs2__sub { margin-top: 2px; font-size: var(--fs-sm); color: var(--c-muted); }

.vs2__list { display: grid; }
.vs2__item {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) 0;
}
.vs2__item + .vs2__item { border-top: 1px dashed rgba(4, 36, 57, 0.1); }
.vs2__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  margin-top: 2px;
  border-radius: 50%;
}
.vs2__mark svg { width: 13px; height: 13px; }
.vs2__card--bad .vs2__mark { background: #fbe4df; color: #c2412d; }
.vs2__card--good .vs2__mark { background: #1f9254; color: #fff; }
.vs2__topic {
  display: block;
  margin-bottom: 2px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b8f94;
}
.vs2__card--good .vs2__topic { color: #1b7a47; }
.vs2__text { display: block; font-size: var(--fs-base); line-height: 1.5; }
.vs2__card--bad .vs2__text { color: #5d6369; }
.vs2__card--good .vs2__text { color: var(--c-ink); font-weight: 500; }
.vs2__cta { align-self: flex-start; margin-top: var(--s-5); }

/* Keep rows lined up across both cards where subgrid is supported. */
@supports (grid-template-rows: subgrid) {
  .vs2 { grid-template-rows: auto repeat(6, auto) auto; }
  .vs2__card { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; }
  .vs2__card--bad { grid-column: 1; }
  .vs2__card--good { grid-column: 2; }
  .vs2__list { display: contents; }
  .vs2__cta { justify-self: start; }
}

.vs2__vs {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--c-navy);
  border: 4px solid var(--c-bg);
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

/* ---------- How it works (timeline) ---------- */
.steps__title { max-width: 18em; }
.timeline {
  max-width: 880px;
  margin: var(--s-7) auto 0;
}
.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--s-5);
  padding-bottom: var(--s-7);
}
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 60px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--c-line);
}
.timeline__num {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff6dd;
  border: 2px solid #f6d98c;
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #7a5200;
}
.timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding-top: 10px;
}
.timeline__title { font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; }
.timeline__body > p { margin-top: var(--s-2); max-width: 46em; font-size: 0.9375rem; line-height: 1.6; color: var(--c-muted); }
.timeline__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag-chip {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.tag-chip--you { background: #e4edff; color: #1d4ed8; }
.tag-chip--us { background: #fff1cc; color: #7a5200; }
.tag-chip--installer { background: #dcf3e5; color: #15703d; }
.tag-chip--save { background: #dcf3e5; color: #15703d; }

.steps__cta--center {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  margin-top: var(--s-7);
  text-align: center;
}

/* ---------- Video testimonials ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7) var(--s-5);
}
.video-grid > li { display: flex; }
.video-card { display: flex; flex-direction: column; width: 100%; }
.video-card__media { aspect-ratio: 4 / 4.4; border-radius: var(--r-lg); }
.video-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 22, 36, 0.45), rgba(4, 22, 36, 0) 45%);
  pointer-events: none;
}
.video-card__media > video,
.video-card__media > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: cover;
}
.video-card.is-playing .video-card__media::after { display: none; }

.video-card__play {
  position: absolute;
  top: 72%; left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  translate: -50% -50%;
  border: 0;
  border-radius: 50%;
  background: var(--c-amber);
  color: var(--c-navy);
  cursor: pointer;
  box-shadow: 0 0 0 10px rgba(254, 178, 4, 0.25);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.video-card__play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-card__play:hover { transform: scale(1.06); background: #ffc433; }
.video-card__play:disabled { cursor: default; opacity: 0.85; transform: none; }

.video-card__soon {
  position: absolute;
  left: var(--s-4);
  bottom: var(--s-4);
  z-index: 1;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-navy);
}
.video-card.has-video .video-card__soon { display: none; }

/* Swipe indicator: only shown when the cards scroll sideways (tablet and mobile). */
.swipe-hint { display: none; }

.video-card__caption { display: grid; margin-top: var(--s-4); padding-inline: var(--s-1); }
.video-card__caption strong { font-weight: 600; }
.video-card__caption span { font-size: var(--fs-sm); color: var(--c-muted); }

.case-note {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.case-note__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-amber-2);
}
.case-note__result {
  margin-top: var(--s-2);
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.case-note__detail {
  margin: var(--s-2) 0 var(--s-5);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-ink-2);
}
.case-note__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);
}
.case-note__specs li {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding-inline: var(--s-3);
}
.case-note__specs li:first-child { padding-left: 0; }
.case-note__specs li + li { border-left: 1px solid var(--c-line); }
.case-note__specs svg { width: 18px; height: 18px; margin-bottom: 4px; color: var(--c-amber-2); }
.case-note__specs strong {
  font-family: var(--f-display);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-ink);
  white-space: nowrap;
}
.case-note__specs span { font-size: var(--fs-xs); color: var(--c-muted); }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.about__copy .lead { margin-top: var(--s-5); color: var(--c-ink-2); }
.about__copy .lead + .text-muted { margin-top: var(--s-4); max-width: 30em; }
.about__image { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.about__image img { object-position: 50% 85%; }

/* ---------- For installers ---------- */
.installers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.installers__panel { display: grid; }
.installers__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
}
.installers__media img { object-position: 40% 35%; }
.installers__copy { container-type: inline-size; }
.installers__copy > :not(.h2) { max-width: 480px; }
/* Keep "Are you a COREN-accredited installer?" on one line: the size
   follows the column width (the sentence is ~17x its font size wide). */
#installers-title {
  max-width: none;
  white-space: nowrap;
  font-size: min(var(--fs-h2), calc(100cqi / 17.4));
}
.installers__copy .lead { margin-top: var(--s-5); }

.tick-list { display: grid; gap: var(--s-3); margin: var(--s-6) 0 var(--s-7); color: var(--c-ink-2); }
.tick-list li { display: flex; align-items: center; gap: var(--s-3); }
.tick-list svg {
  flex: none;
  width: 20px; height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--c-amber);
  color: var(--c-navy);
}

/* ---------- Promo ---------- */
.promo__frame {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(460px, 64vh, 600px);
  padding: clamp(1.75rem, 1rem + 4vw, 4rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.promo__media { position: absolute; inset: 0; z-index: -1; border-radius: 0; }
.promo__media img { object-position: 50% 60%; }
.promo__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(4, 22, 36, 0.85) 0%, rgba(4, 22, 36, 0.2) 60%),
    linear-gradient(90deg, rgba(4, 22, 36, 0.5), rgba(4, 22, 36, 0) 65%);
}
.promo__content { max-width: 560px; }
.promo__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.promo__lead { margin: var(--s-4) 0 var(--s-6); font-size: var(--fs-md); color: rgba(255, 255, 255, 0.88); }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-7) var(--s-5);
}
.blog-grid > li { display: flex; }
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.blog-card:hover .blog-card__title a { text-decoration: underline; text-decoration-color: var(--c-amber-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
img.avatar { object-fit: cover; }
.resources__more { margin-top: var(--s-6); }

/* Only one or two guides so far: they fill the row rather than leave gaps. */
.blog-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-grid--1 { grid-template-columns: minmax(0, 1fr); }
.blog-grid--1 .blog-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
  padding: var(--s-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.blog-grid--1 .blog-card__body { padding: var(--s-3) var(--s-6) var(--s-3) 0; }
.blog-grid--1 .blog-card__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.12; letter-spacing: -0.02em; }
.blog-grid--1 .blog-card__excerpt { font-size: var(--fs-base); }
.blog-card__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
}
/* A guide with no photo: the sun path, with the sun at that guide's stage. Shared with the blog. */
.hb-cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.hb-cover__path { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 3; stroke-dasharray: 3 15; stroke-linecap: round; }
.hb-cover__sun { fill: var(--c-amber); }
.hb-cover__glow { fill: var(--c-amber); opacity: 0.18; }
.blog-card__media img { transition: transform 0.5s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__cat {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-navy);
}
.blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--s-5) var(--s-1) 0;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-muted);
}
.blog-card__title {
  margin-top: var(--s-2);
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.blog-card__excerpt {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-5);
}
.blog-card__author strong { display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.blog-card__author span span { display: block; font-size: var(--fs-xs); color: var(--c-muted); }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.avatar--ao { background: #fff1cc; color: #7a5200; }
.avatar--tb { background: #e4edff; color: #1d4ed8; }
.avatar--zm { background: #dcf3e5; color: #15703d; }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--section-y) var(--s-6); }
.footer__panel {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1.2fr;
  gap: var(--s-7) var(--s-6);
  padding: clamp(2rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--r-lg);
  background: var(--c-navy);
  color: var(--c-on-dark);
}
.footer__brand .brand img { height: 30px; }
.footer__brand p {
  max-width: 280px;
  margin-top: var(--s-5);
  font-size: var(--fs-sm);
  color: var(--c-on-dark-muted);
}
.footer__heading {
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-on-dark-muted);
}
.footer__heading--spaced { margin-top: var(--s-5); }
.footer__col ul { display: grid; gap: var(--s-2); }
.footer__col a,
.footer__bottom a {
  font-size: var(--fs-sm);
  color: var(--c-on-dark);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover,
.footer__bottom a:hover { color: var(--c-amber); text-decoration: underline; text-underline-offset: 3px; }
.footer__panel :focus-visible { outline-color: var(--c-amber); }

.footer__contact { display: grid; gap: var(--s-4); align-content: start; }
.contact-item { display: flex; gap: var(--s-4); align-items: center; color: inherit; text-decoration: none; }
.contact-item__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item .footer__heading {
  margin-bottom: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-on-dark);
}
.contact-item .footer__heading { display: block; }
.contact-item__value { display: block; font-size: var(--fs-sm); color: var(--c-on-dark-muted); transition: color 0.2s var(--ease); }
a.contact-item:hover .contact-item__value { color: var(--c-amber); }
a.contact-item:hover .contact-item__icon { border-color: var(--c-amber); color: var(--c-amber); }

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-xs);
  color: var(--c-on-dark-muted);
}
.footer__bottom ul { display: flex; gap: var(--s-5); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .pain-card--feature { grid-row: auto; grid-column: 1 / -1; }

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

@media (max-width: 960px) {
  :root { --header-h: 60px; }

  .brand img { height: 26px; }

  .nav-toggle { display: grid; }
  html.nav-open { overflow: hidden; }
  /* A backdrop-filter would trap the fixed menu panel inside the header, so use a solid bar on mobile. */
  .site-header { background: var(--c-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.nav-open .site-header { border-bottom-color: var(--c-line); }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--s-6);
    margin: 0;
    padding: var(--s-5) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
    overflow-y: auto;
    background:
      radial-gradient(90% 50% at 100% 100%, rgba(254, 178, 4, 0.16), transparent 60%),
      var(--c-navy);
    color: #fff;
  }
  .js .site-nav {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }

  .site-nav__list { flex-direction: column; gap: 0; counter-reset: nav; }
  .site-nav__list li { counter-increment: nav; }
  .site-nav__list a {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-4) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--f-display);
    font-size: 1.625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
  }
  .site-nav__list a::before {
    content: counter(nav, decimal-leading-zero);
    min-width: 1.75rem;
    font-family: var(--f-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--c-amber);
  }
  .site-nav__list a::after { display: none; }
  .site-nav__list a:hover,
  .site-nav__list a:focus-visible { color: var(--c-amber); }
  .site-nav__arrow {
    display: block;
    flex: none;
    width: 34px; height: 34px;
    margin-left: auto;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    transform: rotate(-45deg);
    transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
  }
  .site-nav__list a:hover .site-nav__arrow,
  .site-nav__list a:focus-visible .site-nav__arrow {
    transform: none;
    background: var(--c-amber);
    border-color: var(--c-amber);
    color: var(--c-navy);
  }

  /* Staggered entrance */
  .js .site-nav__list li,
  .js .site-nav__actions {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .js .site-nav.is-open .site-nav__list li,
  .js .site-nav.is-open .site-nav__actions { opacity: 1; transform: none; }
  .site-nav.is-open .site-nav__list li:nth-child(2) { transition-delay: 0.04s; }
  .site-nav.is-open .site-nav__list li:nth-child(3) { transition-delay: 0.08s; }
  .site-nav.is-open .site-nav__list li:nth-child(4) { transition-delay: 0.12s; }
  .site-nav.is-open .site-nav__list li:nth-child(5) { transition-delay: 0.16s; }
  .site-nav.is-open .site-nav__list li:nth-child(6) { transition-delay: 0.2s; }
  .site-nav.is-open .site-nav__actions { transition-delay: 0.24s; }

  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-3);
    margin-top: auto;
  }
  .site-nav__cta {
    --btn-bg: var(--c-amber);
    --btn-fg: var(--c-navy);
    --btn-icon-bg: var(--c-navy);
    --btn-icon-fg: #fff;
    min-height: 56px;
    justify-content: space-between;
    font-size: var(--fs-base);
  }
  .site-nav__cta:hover { --btn-bg: #ffc433; }
  .site-nav__cta-desktop { display: none; }
  .site-nav__cta-mobile { display: inline; }
  .site-nav__note {
    display: block;
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--c-on-dark-muted);
  }

  /* Without JavaScript the nav simply stays visible in the page flow. */
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav { position: static; margin-inline: calc(var(--gutter) * -1); }

  .hero__line { display: inline; white-space: normal; }
  .hero__title { text-wrap: balance; }
  .hero__frame { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .hero__media { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 10; }
  .hero__media img { object-position: 45% 50%; }
  .hero__media::after { background: linear-gradient(0deg, var(--c-navy) 0%, rgba(4, 36, 57, 0) 30%); }
  .hero__content { grid-row: 2; padding-top: var(--s-5); }
  .hero__stats { grid-row: 3; grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(3) { border-left: 0; }
  .hero-stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }

  .logo-strip { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .logo-strip__title { text-align: center; }
  .logo-strip__list { justify-content: center; gap: var(--s-4) var(--s-7); }

  .about__grid,
  .installers__grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid--1 { grid-template-columns: minmax(0, 1fr); }
  /* Three guides in two columns: the third takes the full row, picture beside text, so no gap is left. */
  .blog-grid--3 > li:last-child { grid-column: 1 / -1; }
  .blog-grid--3 > li:last-child .blog-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-items: center; }
  .blog-grid--3 > li:last-child .blog-card__body { padding-top: 0; }


  .video-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(280px, 44%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--s-3);
  }
  .video-grid > li { scroll-snap-align: start; }
  .video-grid { scrollbar-width: none; }
  .video-grid::-webkit-scrollbar { display: none; }

  .swipe-hint {
    display: grid;
    justify-items: center;
    gap: var(--s-3);
    margin-top: var(--s-5);
  }
  .swipe-hint__track {
    position: relative;
    width: 96px;
    height: 6px;
    border-radius: var(--r-pill);
    background: var(--c-line);
    overflow: hidden;
  }
  .swipe-hint__thumb {
    position: absolute;
    top: 0; left: 0;
    width: var(--thumb-w, 33%);
    height: 100%;
    border-radius: inherit;
    background: var(--c-amber);
    transform: translateX(var(--thumb-x, 0%));
    transition: transform 0.15s linear;
  }
  /* Until the visitor scrolls, the thumb glides to show the row moves sideways. */
  .swipe-hint:not(.is-used) .swipe-hint__thumb { animation: swipe-nudge 2.4s var(--ease) infinite; }
  .swipe-hint__label {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--c-muted);
  }
  .swipe-hint__label::after {
    content: "";
    width: 18px; height: 10px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M1 5h15M12 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M1 5h15M12 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .swipe-hint:not(.is-used) .swipe-hint__label::after { animation: swipe-arrow 1.2s ease-in-out infinite; }
  .swipe-hint.is-used .swipe-hint__label { opacity: 0.7; }

  @keyframes swipe-nudge {
    0%, 15% { transform: translateX(0%); }
    55%, 70% { transform: translateX(200%); }
    100% { transform: translateX(0%); }
  }
  @keyframes swipe-arrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
  }

  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head--center { align-items: center; }
}

@media (max-width: 700px) {
  /* Comparison: stack the two cards with the VS badge between them. */
  .vs2 { grid-template-columns: 1fr; gap: var(--s-3) 0; }
  @supports (grid-template-rows: subgrid) {
    .vs2 { grid-template-rows: none; }
    .vs2__card { display: flex; grid-row: auto; grid-column: 1 !important; }
    .vs2__list { display: grid; }
  }
  .vs2__vs { position: static; translate: none; justify-self: center; margin-block: calc(var(--s-5) * -1); }
  .vs2__cta { align-self: stretch; }
}

@media (max-width: 640px) {
  /* Consistent left alignment for every section heading on phones. */
  .section-head--center { align-items: flex-start; text-align: left; }
  .section-head--center .lead { margin-inline: 0; }

  /* Full-width primary buttons on phones: easy to tap, same shape everywhere. */
  .pain-card--feature .btn,
  .steps__cta .btn,
  .installers__copy .btn,
  .promo__content .btn { width: 100%; }
  .pain-card--feature .btn { align-self: stretch; min-height: 52px; font-size: var(--fs-sm); }
  .steps__cta--center { justify-items: stretch; }

  /* Hero points: a clear step down from the headline on phones. */
  .hero__points { gap: var(--s-3); margin: var(--s-4) 0 var(--s-5); }
  .hero__points li { font-size: 0.9375rem; gap: 10px; }
  .hero__points svg { width: 20px; height: 20px; margin-top: 1px; }

  /* Hero headline: same three phrases as desktop, sized so the longest
     line ("Installers in Your Region") fills the width on any phone. */
  .hero__line { display: block; white-space: nowrap; }
  .hero__title { font-size: min(calc(9.2vw - 6.6px), 2.75rem); line-height: 1.1; text-wrap: nowrap; }

  /* About: the roof photo adds length without adding meaning on phones. */
  .about__image { display: none; }

  .wordmark { font-size: 1.125rem; }
  .wordmark--serif { font-size: 1rem; }
  .hero__media { aspect-ratio: 4 / 3.2; }
  .hero__content { padding: var(--s-4) 20px var(--s-6); }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero-stat { flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-4); }
  .hero-stat__icon { width: 40px; height: 40px; border-radius: 12px; }
  .hero-stat__icon svg { width: 20px; height: 20px; }

  .pain-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .pain-card { padding: var(--s-5); }
  .pain-card__icon { margin-bottom: var(--s-4); }
  .homes-note { align-items: flex-start; text-align: left; }

  .timeline__step { grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-4); padding-bottom: var(--s-6); }
  .timeline__step:not(:last-child)::before { left: 19px; top: 48px; }
  .timeline__num { width: 40px; height: 40px; font-size: 1rem; }
  .timeline__head { flex-direction: column; padding-top: 6px; }
  .timeline__title { font-size: var(--fs-md); }
  .timeline__body > p { font-size: var(--fs-sm); }

  .video-grid { grid-auto-columns: 85%; }


  .blog-grid, .blog-grid--2 { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .blog-grid--1 .blog-card { display: flex; gap: 0; padding: 0; border: 0; background: none; }
  .blog-grid--3 > li:last-child .blog-card { display: flex; gap: 0; }
  .blog-grid--3 > li:last-child .blog-card__body { padding-top: var(--s-5); }
  .blog-grid--1 .blog-card__body { padding: var(--s-5) var(--s-1) 0; }

  .footer__panel { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Placeholder pages (get-started, legal) ---------- */
.placeholder-page { padding-block: clamp(3rem, 8vw, 6rem); }
.placeholder-page .h2 { max-width: 16em; }
.placeholder-page__intro { max-width: 40em; margin-top: var(--s-4); }
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.placeholder-card {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  justify-items: start;
  padding: var(--s-6);
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.placeholder-card h2 { font-family: var(--f-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.placeholder-card p { color: var(--c-muted); }
.placeholder-card .tick-list { margin: var(--s-2) 0 0; }
.simple-footer { padding-block: var(--s-6); border-top: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-muted); }
.simple-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); }
.simple-footer a { color: var(--c-ink-2); }

/* ==========================================================================
   Quote request popup (assets/js/quote.js)
   ========================================================================== */
html.qm-open { overflow: hidden; }

.qm {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--s-5);
  background: rgba(4, 22, 36, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.qm[hidden] { display: none; }
.qm.is-open { opacity: 1; }

.qm__panel {
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(860px, calc(100dvh - 2 * var(--s-5)));
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: 0 40px 80px -30px rgba(4, 22, 36, 0.55);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s var(--ease);
}
.qm.is-open .qm__panel { transform: none; }

.qm__top {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-6) var(--s-4);
}
.qm__logo { width: auto; height: 26px; }
.qm__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: #fff6dd;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #7a5200;
  white-space: nowrap;
}
.qm__badge svg { width: 14px; height: 14px; }
.qm-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.qm-close:hover { background: var(--c-surface-2); }
.qm-close svg { width: 16px; height: 16px; }

.qm-progress { padding: 0 var(--s-6); }
.qm-progress__track { height: 6px; border-radius: var(--r-pill); background: var(--c-surface-2); overflow: hidden; }
.qm-progress__bar { width: 0; height: 100%; border-radius: inherit; background: var(--c-amber); transition: width 0.35s var(--ease); }
.qm-progress__text { margin-top: var(--s-2); font-size: var(--fs-xs); font-weight: 600; color: var(--c-muted); }

.qm-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-4) var(--s-6) var(--s-6);
}
.qm-step.is-entering { animation: qm-in 0.28s var(--ease); }
@keyframes qm-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.qm-head {
  display: flex;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
}
.qm-head__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(254, 178, 4, 0.18);
  color: var(--c-navy);
}
.qm-head__icon svg { width: 20px; height: 20px; }
.qm-head__title {
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  outline: none;
}
.qm-head__sub { margin-top: 4px; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-muted); }

/* Zone tiles */
.qm-zones { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.qm-zone,
.qm-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font: inherit;
  text-align: left;
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.qm-zone:hover,
.qm-option:hover { border-color: #e7c66b; background: #fffcf3; }
.qm-zone.is-selected,
.qm-option.is-selected { border-color: var(--c-amber); background: #fff8e4; box-shadow: 0 0 0 1px var(--c-amber) inset; }
.qm-zone__name { font-weight: 600; font-size: var(--fs-base); }
.qm-zone__states {
  width: 100%;
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--c-muted);
}

/* Generic options */
.qm-options { display: grid; gap: var(--s-2); }
.qm-options--grid { grid-template-columns: 1fr 1fr; }
.qm-option { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px var(--s-4); }
.qm-option__label { font-weight: 500; font-size: var(--fs-sm); line-height: 1.4; }
.qm-option__meta { font-size: var(--fs-xs); font-weight: 600; color: #8a5a00; white-space: nowrap; }
.qm-option__sub { flex-basis: 100%; font-size: var(--fs-xs); line-height: 1.5; color: var(--c-muted); }

.qm-option--check { justify-content: flex-start; gap: var(--s-3); }
.qm-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border: 1.5px solid #c9cdd1;
  border-radius: 6px;
  color: transparent;
}
.qm-check svg { width: 12px; height: 12px; }
.qm-option.is-selected .qm-check { border-color: var(--c-amber); background: var(--c-amber); color: var(--c-navy); }

.qm-tier { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
.qm-tier .qm-option__sub { flex-basis: auto; }
.qm-tier__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.qm-tier__top .qm-option__label { font-weight: 700; }
.qm-tier__warranty { font-size: var(--fs-xs); font-weight: 700; color: #8a5a00; }
.qm-badge { padding: 2px 9px; border-radius: var(--r-pill); font-size: 0.6875rem; font-weight: 700; }
.qm-badge--green { background: #dcfce7; color: #15803d; }
.qm-badge--blue { background: #dbeafe; color: #1d4ed8; }
.qm-badge--orange { background: #ffedd5; color: #9a3412; }

/* Fields */
.qm-label { display: block; margin: var(--s-4) 0 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.qm-label:first-child { margin-top: 0; }
.qm-input {
  width: 100%;
  min-height: 50px;
  padding: 0 var(--s-4);
  border: 1px solid #d5d8d3;
  border-radius: var(--r-sm);
  background: var(--c-surface);
  font: inherit;
  font-size: var(--fs-base);
  color: var(--c-ink);
}
.qm-input:focus { outline: none; border-color: var(--c-amber); box-shadow: 0 0 0 3px rgba(254, 178, 4, 0.25); }
.qm-textarea {
  display: block;
  width: 100%;
  padding: var(--s-3) var(--s-4);
  border: 1px solid #d5d8d3;
  border-radius: var(--r-sm);
  background: var(--c-surface);
  font: inherit;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--c-ink);
  resize: vertical;
}
.qm-textarea:focus { outline: none; border-color: var(--c-amber); box-shadow: 0 0 0 3px rgba(254, 178, 4, 0.25); }
.qm-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.qm-affix {
  display: flex;
  align-items: center;
  border: 1px solid #d5d8d3;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.qm-affix:focus-within { border-color: var(--c-amber); box-shadow: 0 0 0 3px rgba(254, 178, 4, 0.25); }
.qm-affix > span { padding: 0 var(--s-3); font-weight: 600; color: var(--c-muted); }
.qm-affix .qm-input { border: 0; box-shadow: none; padding-inline: 0; }
.qm-affix--phone > span:nth-child(2) { padding-left: 0; color: var(--c-ink); }
.qm-flag { display: flex !important; gap: 0; padding-right: var(--s-2) !important; }
.qm-flag i { display: block; width: 7px; height: 14px; background: #008751; }
.qm-flag i:nth-child(2) { background: #fff; outline: 1px solid #e5e7eb; }
.qm-otp { text-align: center; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.5em; }

.qm-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-2); }
.qm-chip {
  min-width: 56px;
  min-height: 42px;
  padding: 0 var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
}
.qm-chip.is-selected { border-color: var(--c-navy); background: var(--c-navy); color: #fff; }

.qm-note {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--c-bg);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.qm-note--warm { background: #fff6dd; color: #7a5200; }
.qm-note--ok { background: #e7f6ec; color: #166b3a; }
.qm-note svg { flex: none; width: 16px; height: 16px; }
.qm-hint { margin-top: 6px; font-size: var(--fs-xs); color: var(--c-muted); }
.qm-center { text-align: center; margin-top: var(--s-3); }
.qm-error { margin-top: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: #fdecea; font-size: var(--fs-sm); color: #b42318; }

.qm-primary { width: 100%; margin-top: var(--s-5); }
.qm-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.qm-back,
.qm-link {
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--c-muted);
  cursor: pointer;
}
.qm-back { display: block; margin: var(--s-4) auto 0; padding: var(--s-2) var(--s-3); font-size: var(--fs-sm); }
.qm-back:hover,
.qm-link:hover { color: var(--c-ink); }
.qm-link { padding: 0; font-size: inherit; color: #8a5a00; text-decoration: underline; text-underline-offset: 2px; }

.qm-done { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-6) 0 var(--s-2); text-align: center; }
.qm-done__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #1f9254; color: #fff; }
.qm-done__icon svg { width: 30px; height: 30px; }
.qm-done__title { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; outline: none; }
.qm-done p { max-width: 32em; color: var(--c-muted); }
.qm.is-done .qm-progress { display: none; }

@media (max-width: 640px) {
  .qm { padding: 0; place-items: end stretch; }
  .qm__panel { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .qm__top { padding: var(--s-4); }
  .qm__logo { height: 22px; }
  .qm-progress { padding: 0 var(--s-4); }
  .qm-body { padding: var(--s-4) var(--s-4) var(--s-6); }
  .qm-head { padding: var(--s-3) var(--s-4); gap: var(--s-3); }
  .qm-head__icon { width: 34px; height: 34px; }
  .qm-head__title { font-size: var(--fs-md); }
  .qm-zones { grid-template-columns: 1fr; }
  .qm-row { grid-template-columns: 1fr; gap: 0; }
  .qm-row > div + div .qm-label { margin-top: var(--s-4); }
}
@media (max-width: 400px) {
  .qm-options--grid { grid-template-columns: 1fr; }
  .qm__badge { display: none; }
  .qm-close { margin-left: auto; }
}

/* ---------- Quote form on its own page (get-quotes) ---------- */
.qm--page {
  position: static;
  min-height: 100dvh;
  place-items: start center;
  padding: clamp(1rem, 4vw, 3rem) var(--s-4);
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(254, 178, 4, 0.12), transparent 70%),
    var(--c-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
}
.qm--page .qm__panel {
  max-height: none;
  transform: none;
  box-shadow: 0 30px 60px -36px rgba(4, 36, 57, 0.3);
  border: 1px solid var(--c-line);
}
.qm--page .qm-body { overflow: visible; }
.qm__home { display: inline-flex; }
.qm-noscript { max-width: 640px; margin: var(--s-4) auto; padding: 0 var(--s-4); }
@media (max-width: 640px) {
  .qm--page { padding: 0; }
  .qm--page .qm__panel { height: auto; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
}

/* ---------- Appliance calculator (quote form) ---------- */
.qm-group {
  margin: var(--s-5) 0 var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.qm-group:first-child { margin-top: 0; }
.qm-stepper { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-surface); }
.qm-stepper button {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--c-ink);
  cursor: pointer;
}
.qm-stepper button:hover:not(:disabled) { background: var(--c-surface-2); }
.qm-stepper button:disabled { color: #c3c7cb; cursor: default; }
.qm-stepper span { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qm-select {
  min-height: 36px;
  padding: 0 var(--s-6) 0 var(--s-3);
  border: 1px solid #d5d8d3;
  border-radius: var(--r-sm);
  background: var(--c-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%235b6b77' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 10px no-repeat;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--c-ink);
  -webkit-appearance: none;
          appearance: none;
}
.qm-select { width: 100%; min-height: 50px; }

.qm-picker {
  padding: var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg);
}
.qm-picker .qm-label:first-child { margin-top: 0; }
.qm-stepper--lg { display: flex; justify-content: space-between; min-height: 50px; border-radius: var(--r-sm); border-color: #d5d8d3; padding: 0 4px; }
.qm-stepper--lg button { width: 42px; height: 42px; }
.qm-add { width: 100%; margin-top: var(--s-4); padding-right: 20px; }
.qm-add:disabled { opacity: 0.4; cursor: not-allowed; }

.qm-list { display: grid; gap: var(--s-2); }
.qm-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 10px 10px var(--s-4);
  border: 1px solid #f1dfae;
  border-radius: var(--r-md);
  background: #fffaf0;
}
.qm-list__qty { font-family: var(--f-display); font-size: var(--fs-md); font-weight: 700; color: #8a5a00; }
.qm-list__info { display: grid; }
.qm-list__info strong { font-size: var(--fs-sm); font-weight: 600; }
.qm-list__info span { font-size: var(--fs-xs); color: var(--c-muted); }
.qm-list__remove {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--c-muted);
  cursor: pointer;
}
.qm-list__remove:hover { background: #fde4df; color: #c2412d; }
.qm-list__remove svg { width: 14px; height: 14px; }
.qm-empty { margin-top: var(--s-4); padding: var(--s-4); border: 1px dashed #d5d8d3; border-radius: var(--r-md); font-size: var(--fs-sm); text-align: center; color: var(--c-muted); }
.qm-calc.qm-calc--3 { grid-template-columns: repeat(3, 1fr); }
.qm-picker .qm-row { margin-top: var(--s-4); }
.qm-picker .qm-row .qm-label { margin-top: 0 !important; }
.qm-disclaimer {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-sm);
  background: #fff6dd;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: #6b4a00;
}
.qm-disclaimer svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.qm-calc {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: var(--s-5);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  box-shadow: 0 -12px 24px -18px rgba(4, 36, 57, 0.35);
}
.qm-calc > div { display: grid; gap: 2px; padding: var(--s-3); background: var(--c-surface); }
.qm-calc span { font-size: var(--fs-xs); color: var(--c-muted); }
.qm-calc strong { font-family: var(--f-display); font-size: var(--fs-md); font-weight: 700; color: var(--c-ink); }
.qm-calc__hl { background: var(--c-navy) !important; }
.qm-calc__hl span { color: var(--c-on-dark-muted); }
.qm-calc__hl strong { color: var(--c-amber); }
.qm-option .qm-badge { margin-left: auto; margin-right: var(--s-2); }

/* Thank-you page */
.ty { padding-bottom: 0; }
.ty .qm-done__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
.ty__estimate { position: static; width: 100%; grid-template-columns: repeat(3, 1fr); margin-top: var(--s-2); box-shadow: none; text-align: left; }
.ty__next { display: grid; gap: var(--s-3); width: 100%; margin-top: var(--s-3); padding: 0; counter-reset: ty; text-align: left; }
.ty__next li {
  counter-increment: ty;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.ty__next li::before {
  content: counter(ty);
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff6dd;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #7a5200;
}
.ty .qm-primary { margin-top: var(--s-4); }

@media (max-width: 640px) {
  .qm-calc { grid-template-columns: 1fr 1fr; }
  .qm-calc.qm-calc--3 { grid-template-columns: 1fr 1fr; }
  .qm-calc--3 > div:last-child { grid-column: 1 / -1; }
  .qm-picker .qm-row { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .ty__estimate { grid-template-columns: repeat(3, 1fr); }
  .ty__estimate strong { font-size: var(--fs-base); }
}

/* ==========================================================================
   Quote page (get-quotes): journey panel + question canvas
   ========================================================================== */
.qa {
  --qa-line: #e6e4dd;
  --qa-line-strong: #cfd3d6;
  --qa-hover: #fffbf0;
  --qa-selected: #fff6dc;
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  min-height: 100dvh;
  background: var(--c-surface);
}

/* Journey panel */
.qa-side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
  height: 100dvh;
  padding: var(--s-7) var(--s-7) var(--s-6);
  overflow-y: auto;
  background:
    radial-gradient(80% 45% at 100% 0%, rgba(254, 178, 4, 0.18), transparent 70%),
    radial-gradient(60% 40% at 0% 100%, rgba(254, 178, 4, 0.08), transparent 70%),
    var(--c-navy);
  color: var(--c-on-dark);
}
.qa-side__logo img { width: auto; height: 28px; }
.qa-kicker {
  margin-bottom: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-amber);
}
.qa-side__title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.qa-side__lead { margin-top: var(--s-3); font-size: var(--fs-sm); line-height: 1.6; color: var(--c-on-dark-muted); }

.qa-stages { display: grid; }
.qa-stages li {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
}
.qa-stages li:last-child { padding-bottom: 0; }
.qa-stages li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.qa-stages li.is-done:not(:last-child)::before { background: var(--c-amber); }
.qa-stages__dot {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: transparent;
  transition: all 0.25s var(--ease);
}
.qa-stages__dot svg { width: 14px; height: 14px; }
.qa-stages li.is-current .qa-stages__dot { border-color: var(--c-amber); box-shadow: 0 0 0 5px rgba(254, 178, 4, 0.18); }
.qa-stages li.is-current .qa-stages__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-amber); }
.qa-stages li.is-done .qa-stages__dot { border-color: var(--c-amber); background: var(--c-amber); color: var(--c-navy); }
.qa-stages strong { display: block; padding-top: 3px; font-size: var(--fs-base); font-weight: 600; color: rgba(255, 255, 255, 0.6); transition: color 0.2s var(--ease); }
.qa-stages small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.42); }
.qa-stages li.is-current strong,
.qa-stages li.is-done strong { color: #fff; }
.qa-stages li.is-current small { color: var(--c-on-dark-muted); }

.qa-trust {
  display: grid;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.qa-trust li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-sm); line-height: 1.45; color: var(--c-on-dark-muted); }
.qa-trust svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--c-amber); }
.qa-side__help { margin-top: calc(var(--s-6) * -1 + var(--s-3)); font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.5); }
.qa-side__help a { color: #fff; text-underline-offset: 3px; }

/* Main canvas */
.qa-main { display: flex; flex-direction: column; min-width: 0; }
.qa-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s-4);
  min-height: 72px;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.qa-top__logo { display: none; }
.qa-top__logo img { width: auto; height: 24px; }
.qa-segments { display: none; }
.qa-exit {
  width: auto;
  height: 40px;
  gap: var(--s-2);
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
}
.qa-exit svg { width: 14px; height: 14px; }

.qa-canvas {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(1rem, 4vh, 3rem) clamp(1.25rem, 4vw, 3rem) var(--s-8);
}
.qa .qm-body { overflow: visible; padding: 0; }

/* Question header */
.qa .qm-head { display: block; margin-bottom: var(--s-6); padding: 0; border: 0; background: none; }
.qm-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a6700;
}
.qm-eyebrow span { color: #d9c18a; }
.qa .qm-head__title {
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.qa .qm-head__sub { max-width: 52ch; margin-top: var(--s-3); font-size: var(--fs-base); line-height: 1.6; }

/* Options */
.qa .qm-options { gap: 10px; }
.qa .qm-option,
.qa .qm-zone {
  position: relative;
  gap: var(--s-3);
  border: 1.5px solid var(--qa-line);
  border-radius: 14px;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.qa .qm-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 60px;
  padding: 14px 18px;
}
.qa .qm-option__label { font-size: var(--fs-base); font-weight: 500; }
.qa .qm-option__meta { grid-column: 3; font-size: var(--fs-sm); }
.qa .qm-option__sub { grid-column: 2 / -1; margin-top: -4px; font-size: var(--fs-sm); }
.qa .qm-option .qm-badge { grid-column: 3; margin: 0; }
.qa .qm-option:has(.qm-badge):has(.qm-option__meta) { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
.qa .qm-option:has(.qm-badge):has(.qm-option__meta) .qm-option__meta { grid-column: 4; }
.qa .qm-option:hover,
.qa .qm-zone:hover { border-color: #e2c26a; background: var(--qa-hover); }
.qa .qm-option:active,
.qa .qm-zone:active { transform: scale(0.995); }
.qa .qm-option.is-selected,
.qa .qm-zone.is-selected { border-color: var(--c-amber); background: var(--qa-selected); box-shadow: none; }

.qm-radio {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border: 1.5px solid var(--qa-line-strong, #cfd3d6);
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.15s var(--ease);
}
.qm-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-amber); transform: scale(0); transition: transform 0.15s var(--ease); }
.qm-option:hover .qm-radio,
.qm-zone:hover .qm-radio { border-color: #c9a646; }
.is-selected > .qm-radio { border-color: var(--c-amber); border-width: 2px; }
.is-selected > .qm-radio::after { transform: scale(1); }

.qa .qm-zones { gap: 10px; }
.qa .qm-zone { display: block; padding: 18px 18px 16px; }
.qa .qm-zone .qm-radio { position: absolute; top: 18px; right: 18px; }
.qa .qm-zone__name { display: block; padding-right: 32px; font-size: var(--fs-md); }
.qa .qm-zone__states { margin-top: var(--s-3); padding-top: var(--s-3); font-size: var(--fs-sm); line-height: 1.55; }

.qa .qm-tier { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; padding: 18px; }
.qa .qm-tier .qm-radio { grid-row: span 3; margin-top: 1px; }
.qa .qm-tier__top { grid-column: 2; }
.qa .qm-tier__warranty,
.qa .qm-tier .qm-option__sub { grid-column: 2; margin: 0; }

/* Fields */
.qa .qm-label { margin-top: var(--s-5); font-size: var(--fs-sm); }
.qa .qm-input,
.qa .qm-select { min-height: 54px; border: 1.5px solid #d9dcd8; border-radius: 12px; }
.qa .qm-textarea { border: 1.5px solid #d9dcd8; border-radius: 12px; }
.qa .qm-affix { border: 1.5px solid #d9dcd8; border-radius: 12px; }
.qa .qm-chip { min-height: 46px; padding: 0 var(--s-5); border-width: 1.5px; }
.qa .qm-picker { padding: var(--s-5); border-radius: 16px; background: #faf9f6; border-color: var(--qa-line); }
.qa .qm-list__item { border-radius: 14px; }
.qa .qm-calc { position: static; margin-top: var(--s-6); border-radius: 16px; box-shadow: none; }
.qa .qm-calc > div { padding: var(--s-4); }
.qa .qm-calc strong { font-size: 1.25rem; }
.qa .qm-disclaimer { border-radius: 12px; padding: var(--s-3) var(--s-4); }
.qa .qm-note { border-radius: 12px; }

/* Action bar */
.qm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--qa-line, var(--c-line));
}
.qm-actions .qm-primary { width: auto; min-width: 200px; margin: 0; }
.qm-actions .qm-back { margin: 0; }
.qa .qm-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-3) 0 0;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.qa .qm-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.qa .qm-back:hover { color: var(--c-ink); }
.qa .qm-center { margin-top: var(--s-4); }

.qa .qm-step.is-entering { animation: qa-in 0.32s var(--ease); }
@keyframes qa-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Tablet and phone: the journey panel collapses into the top bar. */
@media (max-width: 960px) {
  .qa { grid-template-columns: 1fr; }
  .qa-side { display: none; }
  .qa-top {
    justify-content: space-between;
    min-height: 64px;
    border-bottom: 1px solid var(--qa-line);
  }
  .qa-top__logo { display: inline-flex; }
  .qa-segments {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 0 4px;
  }
  .qa-segments span { height: 3px; border-radius: 3px; background: transparent; overflow: hidden; }
  .qa-segments i { display: block; width: 0; height: 100%; background: var(--c-amber); transition: width 0.35s var(--ease); }
}
@media (max-width: 640px) {
  .qa-canvas { padding: var(--s-5) var(--s-4) 0; }
  .qa .qm-head { margin-bottom: var(--s-5); }
  .qa .qm-head__title { font-size: 1.5rem; }
  .qa .qm-head__sub { font-size: var(--fs-sm); }
  .qa .qm-zones { grid-template-columns: 1fr; }
  .qa .qm-option { min-height: 56px; padding: 12px 14px; grid-template-columns: 20px minmax(0, 1fr) auto; }
  .qa .qm-option__label { font-size: 0.9375rem; }
  .qm-radio { width: 20px; height: 20px; }
  .qa-exit span { display: none; }
  .qa-exit { width: 40px; padding: 0; justify-content: center; }
  /* Sticky action bar within thumb reach. */
  .qm-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: var(--s-6) calc(var(--s-4) * -1) 0;
    padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .qm-actions .qm-primary { flex: 1; min-width: 0; }
  .qm-actions--back-only { position: static; margin: var(--s-6) 0 0; padding: var(--s-3) 0 0; border-top: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* The sticky bar bleeds to the screen edges; never let that make the page scroll sideways. */
  .qa-canvas { overflow-x: clip; }
}
.qa .qm-zone__states { display: block; }
.qa-stages li.is-current .qa-stages__dot svg { display: none; }
.qa .qm-affix .qm-input { border: 0; min-height: 52px; box-shadow: none; }
@media (max-width: 640px) {
  .qa .qm-chips { flex-wrap: nowrap; gap: 6px; }
  .qa .qm-chip { flex: 1; min-width: 0; padding: 0 6px; }
}
.qa .qm-zone { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }

/* ---------- Quote page: step transitions ---------- */
.qa .qm-step.is-entering { animation: none; }
.qa .qm-step.is-entering--fwd { animation: qa-in-fwd 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qa .qm-step.is-entering--back { animation: qa-in-back 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qa .qm-step.is-leaving { pointer-events: none; }
.qa .qm-step.is-leaving--fwd { animation: qa-out-fwd 0.17s ease-in both; }
.qa .qm-step.is-leaving--back { animation: qa-out-back 0.17s ease-in both; }
@keyframes qa-in-fwd { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes qa-in-back { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes qa-out-fwd { to { opacity: 0; transform: translateX(-28px); } }
@keyframes qa-out-back { to { opacity: 0; transform: translateX(28px); } }

/* Answers rise in one after another. */
.qa .qm-step.is-entering .qm-options > *,
.qa .qm-step.is-entering .qm-zones > *,
.qa .qm-step.is-entering .qm-tip,
.qa .qm-step.is-entering .qm-picker,
.qa .qm-step.is-entering .qm-row,
.qa .qm-step.is-entering .qm-chips {
  animation: qa-rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: 0.1s;
}
.qa .qm-step.is-entering .qm-options > :nth-child(2),
.qa .qm-step.is-entering .qm-zones > :nth-child(2) { animation-delay: 0.14s; }
.qa .qm-step.is-entering .qm-options > :nth-child(3),
.qa .qm-step.is-entering .qm-zones > :nth-child(3) { animation-delay: 0.18s; }
.qa .qm-step.is-entering .qm-options > :nth-child(4),
.qa .qm-step.is-entering .qm-zones > :nth-child(4) { animation-delay: 0.22s; }
.qa .qm-step.is-entering .qm-options > :nth-child(5),
.qa .qm-step.is-entering .qm-zones > :nth-child(5) { animation-delay: 0.26s; }
.qa .qm-step.is-entering .qm-options > :nth-child(n + 6),
.qa .qm-step.is-entering .qm-zones > :nth-child(n + 6) { animation-delay: 0.3s; }
.qa .qm-step.is-entering .qm-picker { animation-delay: 0.16s; }
@keyframes qa-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* The chosen answer gives a quick confirmation before the slide. */
.qa .qm-step.is-leaving .qm-option.is-selected,
.qa .qm-step.is-leaving .qm-zone.is-selected { animation: qa-pick 0.17s ease-out; }
@keyframes qa-pick { 50% { transform: scale(0.985); } }

@media (prefers-reduced-motion: reduce) {
  .qa .qm-step,
  .qa .qm-step * { animation: none !important; }
}

/* ---------- Quote page: consistent alignment ---------- */
.qa .qm-options,
.qa .qm-zones,
.qa .qm-picker,
.qa .qm-list,
.qa .qm-calc,
.qa .qm-proj,
.qa .qm-note,
.qa .qm-tip,
.qa .qm-disclaimer { width: 100%; }
/* One answer per row on every question (the appliance and contact steps have their own layouts). */
.qa .qm-options--grid,
.qa .qm-zones { grid-template-columns: 1fr; }
.qa .qm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); align-items: end; }
.qa .qm-row .qm-label { margin-top: var(--s-5); }
.qa .qm-picker .qm-row .qm-label { margin-top: 0 !important; }
.qa .qm-stepper--lg { min-height: 54px; border: 1.5px solid #d9dcd8; border-radius: 12px; }
.qa .qm-label { line-height: 1.3; }
.qa .qm-note { margin-bottom: var(--s-5); }

/* ---------- Appliance tip ---------- */
.qm-tip {
  display: flex;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7df, #fffbf0);
  border: 1px solid #f3e1a8;
}
.qm-tip__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--c-amber);
  color: var(--c-navy);
}
.qm-tip__icon svg { width: 20px; height: 20px; }
.qm-tip__title { margin-bottom: 4px; font-family: var(--f-display); font-size: var(--fs-base); font-weight: 700; color: var(--c-ink); }
.qm-tip p { font-size: var(--fs-sm); line-height: 1.6; color: #5a4a22; }
.qm-tip strong { color: var(--c-ink); }

/* ---------- Editable appliance list ---------- */
.qa .qm-list__item {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "info remove" "edit edit";
  gap: var(--s-3) var(--s-3);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
  animation: qa-rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.qa .qm-list__info { grid-area: info; align-self: center; }
.qa .qm-list__info strong { font-size: var(--fs-base); }
.qa .qm-list__remove { grid-area: remove; }
.qm-list__edit {
  grid-area: edit;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  align-items: center;
  padding-top: var(--s-3);
  border-top: 1px dashed #ecd9a6;
}
.qm-list__edit .qm-stepper { height: 44px; border-color: #e7d7a8; }
.qm-list__edit .qm-stepper button { width: 40px; height: 40px; }
.qm-list__night { display: flex; flex: 1 1 260px; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--c-ink-2); white-space: nowrap; }
.qm-list__night .qm-dd { flex: 1; min-width: 0; }
@media (max-width: 400px) {
  .qm-list__night > span { display: none; }
}

/* ==========================================================================
   Thank-you page (thank-you)
   ========================================================================== */
.ty2 .qa-side__title { font-size: clamp(1.5rem, 1.1rem + 1vw, 1.875rem); }
.ty2-journey li:not(:last-child)::before { top: 32px; }
.ty2 .qa-exit svg { width: 14px; height: 14px; }

.ty2-canvas { display: grid; gap: var(--s-6); max-width: 720px; padding-top: clamp(1rem, 5vh, 3.5rem); }

/* Confirmation */
.ty2-hero { display: grid; justify-items: start; }
.ty2-mark { width: 64px; height: 64px; margin-bottom: var(--s-5); }
.ty2-mark svg { width: 100%; height: 100%; overflow: visible; }
.ty2-mark__ring { fill: #1f9254; stroke: #1f9254; stroke-width: 2; transform-origin: center; animation: ty2-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.ty2-mark__tick { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: ty2-draw 0.4s 0.35s ease-out forwards; }
@keyframes ty2-pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ty2-draw { to { stroke-dashoffset: 0; } }
.ty2-hero .qm-eyebrow { color: #1b7a47; }
.ty2-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.ty2-lead { max-width: 46ch; margin-top: var(--s-3); font-size: var(--fs-md); line-height: 1.55; color: var(--c-muted); }

.ty2-wa {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  margin-top: var(--s-5);
  padding: var(--s-4);
  border-radius: 14px;
  background: #e9f7ef;
  border: 1px solid #c7ebd5;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: #1d4f33;
}
.ty2-wa strong { color: #123d27; }
.ty2-wa__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #25d366; color: #fff; }
.ty2-wa__icon svg { width: 22px; height: 22px; }

/* Cards */
.ty2-card { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 1px solid #e6e4dd; border-radius: 18px; background: var(--c-surface); }
.ty2-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.ty2-h2 { font-family: var(--f-display); font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; }
.ty2-card > .ty2-h2 { margin-bottom: var(--s-5); }
.ty2-h2--sm { margin-bottom: var(--s-4); font-size: var(--fs-md); }
.ty2-pill { padding: 4px 12px; border-radius: var(--r-pill); background: #fff6dd; font-size: var(--fs-xs); font-weight: 700; color: #7a5200; white-space: nowrap; }
.ty2-calc { margin: 0; border-radius: 14px; }
.ty2-calc > div { padding: var(--s-4); }
.ty2-calc strong { font-size: 1.375rem; }
.ty2-fine { margin-top: var(--s-4); font-size: var(--fs-xs); line-height: 1.6; color: var(--c-muted); }
.ty2-body { color: var(--c-ink-2); line-height: 1.65; }

/* Next steps timeline */
.ty2-steps { display: grid; }
.ty2-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); padding-bottom: var(--s-5); }
.ty2-steps li:last-child { padding-bottom: 0; }
.ty2-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px; width: 2px; border-radius: 2px; background: #ece9df; }
.ty2-steps__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff6dd; color: #7a5200; }
.ty2-steps li:first-child .ty2-steps__icon { background: var(--c-amber); color: var(--c-navy); }
.ty2-steps__icon svg { width: 20px; height: 20px; }
.ty2-steps__when { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9a6700; }
.ty2-steps h3 { margin-top: 2px; font-size: var(--fs-base); font-weight: 600; }
.ty2-steps li p:last-child { margin-top: 4px; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-muted); }

/* While you wait */
.ty2-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.ty2-link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1.5px solid #e6e4dd;
  border-radius: 14px;
  color: var(--c-ink);
  text-decoration: none;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.ty2-link:hover { border-color: #e2c26a; background: #fffbf0; }
.ty2-link__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c-surface-2); }
.ty2-link__icon svg { width: 18px; height: 18px; }
.ty2-link strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.ty2-link small { display: block; font-size: var(--fs-xs); color: var(--c-muted); }
.ty2-link__arrow { width: 16px; height: 16px; color: var(--c-muted); transition: transform 0.2s var(--ease); }
.ty2-link:hover .ty2-link__arrow { transform: translateX(3px); color: var(--c-ink); }
.ty2-home { margin-top: var(--s-6); }

/* Sections fade up in sequence */
.ty2-reveal { animation: qa-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ty2-canvas > .ty2-reveal:nth-child(2) { animation-delay: 0.15s; }
.ty2-canvas > .ty2-reveal:nth-child(3) { animation-delay: 0.25s; }
.ty2-canvas > .ty2-reveal:nth-child(4) { animation-delay: 0.35s; }
.ty2-canvas > .ty2-reveal:nth-child(5) { animation-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  .ty2-reveal, .ty2-mark__ring { animation: none; }
  .ty2-mark__tick { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 640px) {
  .ty2-canvas { gap: var(--s-5); padding-bottom: var(--s-7); }
  .ty2-mark { width: 56px; height: 56px; }
  .ty2-lead { font-size: var(--fs-base); }
  .ty2-links { grid-template-columns: 1fr; }
  .ty2-home { width: 100%; }
  .ty2 .qa-exit { width: auto; padding: 0 var(--s-4); }
  .ty2 .qa-exit span { display: inline; }
  .ty2-card__head { flex-wrap: wrap; }
}

/* Thank-you: tracking ID + actions */
.ty2-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  width: 100%;
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 1.5px dashed #d9c27f;
  border-radius: 16px;
  background: #fffbf0;
}
.ty2-track__label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9a6700; }
.ty2-track__code { display: block; margin-top: 2px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 700; letter-spacing: 0.08em; color: var(--c-ink); }
.ty2-track__hint { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--c-muted); }
.ty2-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 var(--s-4);
  border: 1.5px solid #e2cf96;
  border-radius: var(--r-pill);
  background: #fff;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
}
.ty2-copy svg { width: 16px; height: 16px; }
.ty2-copy.is-copied { border-color: #1f9254; color: #1b7a47; }
.ty2-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.btn--ghost-dark {
  --btn-bg: transparent;
  --btn-fg: var(--c-ink);
  border-color: #d9dcd8;
  padding-right: 22px;
}
.btn--ghost-dark:hover { --btn-bg: var(--c-surface-2); }
@media (max-width: 640px) {
  .ty2-actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Tracking page (track)
   ========================================================================== */
.track-page { background: #f7f6f2; }
.tr-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.tr-wrap--narrow { max-width: 560px; }
.tr-top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid #e6e4dd; }
.tr-top__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.tr-top__logo img { width: auto; height: 26px; }
.tr { padding-bottom: var(--s-8); }
.tr-loading { padding: var(--s-8) 0; text-align: center; color: var(--c-muted); }
.tr-foot { padding: var(--s-6) 0 var(--s-7); border-top: 1px solid #e6e4dd; font-size: var(--fs-sm); color: var(--c-muted); }
.tr-foot a { color: var(--c-ink); }

.tr-h1 { font-family: var(--f-display); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.tr-h2 { font-family: var(--f-display); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.tr-h3 { margin-bottom: var(--s-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.tr-h3--spaced { margin-top: var(--s-5); }
.tr-lead, .tr-body { color: var(--c-muted); line-height: 1.6; }
.tr-lead { margin-top: var(--s-3); font-size: var(--fs-md); }
.tr-body { margin-top: var(--s-2); font-size: var(--fs-base); }
.tr-body strong { color: var(--c-ink); }
.tr-small { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-small a { color: var(--c-ink); }
.tr-kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9a6700; }
.tr-alert { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: 12px; background: #fdecea; font-size: var(--fs-sm); color: #b42318; }

/* Lookup */
.tr-lookup { margin-top: clamp(2rem, 8vh, 5rem); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid #e6e4dd; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -40px rgba(4, 36, 57, 0.3); }
.tr-lookup__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s-5); border-radius: 16px; background: #fff6dd; color: #7a5200; }
.tr-lookup__icon svg { width: 24px; height: 24px; }
.tr-lookup__form { margin-top: var(--s-5); }
.tr-lookup__form .qm-label { margin-top: 0; }
.tr-lookup__row { display: flex; gap: var(--s-3); }
.tr-lookup__input { flex: 1; min-width: 0; min-height: 54px; border: 1.5px solid #d9dcd8; border-radius: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tr-lookup__input:focus { outline: none; border-color: var(--c-amber); box-shadow: 0 0 0 3px rgba(254, 178, 4, 0.25); }
.tr-lookup__example { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid #ece9df; font-size: var(--fs-sm); color: var(--c-muted); }
.tr-lookup__example a { color: #8a5a00; font-weight: 600; }

/* Header */
.tr-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: 22px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(254, 178, 4, 0.22), transparent 60%),
    var(--c-navy);
  color: #fff;
}
.tr-head .tr-kicker { color: var(--c-amber); }
.tr-head__id { display: flex; align-items: center; gap: var(--s-3); margin-top: 4px; }
.tr-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 700; letter-spacing: 0.06em; }
.tr-head .ty2-copy { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.tr-head .ty2-copy.is-copied { border-color: #7ee2a8; color: #7ee2a8; }
.tr-head__hello { margin-top: var(--s-2); color: var(--c-on-dark-muted); }
.tr-head__meta { display: grid; grid-template-columns: repeat(3, auto); gap: var(--s-2) var(--s-6); }
.tr-head__meta dt { font-size: var(--fs-xs); color: var(--c-on-dark-muted); }
.tr-head__meta dd { font-weight: 600; white-space: nowrap; }

/* Progress */
.tr-steps { display: grid; grid-template-columns: repeat(6, 1fr); margin: var(--s-6) 0; }
.tr-steps li { position: relative; display: grid; justify-items: center; gap: var(--s-2); text-align: center; }
.tr-steps li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; border-radius: 2px; background: #e0ddd3; }
.tr-steps li.is-done:not(:last-child)::after { background: var(--c-amber); }
.tr-steps__dot { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #d6d3c9; border-radius: 50%; background: #fff; color: var(--c-navy); }
.tr-steps__dot svg { width: 14px; height: 14px; }
.tr-steps li.is-done .tr-steps__dot { border-color: var(--c-amber); background: var(--c-amber); }
.tr-steps li.is-current .tr-steps__dot { border-color: var(--c-amber); box-shadow: 0 0 0 5px rgba(254, 178, 4, 0.2); }
.tr-steps li.is-current .tr-steps__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-amber); }
.tr-steps__label { font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; color: var(--c-muted); }
.tr-steps li.is-done .tr-steps__label,
.tr-steps li.is-current .tr-steps__label { color: var(--c-ink); }

/* Cards */
.tr-card, .tr-rec, .tr-compare { border: 1px solid #e6e4dd; border-radius: 22px; background: #fff; }
.tr-card { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.tr-intro { margin-bottom: var(--s-4); }

/* Estimate only, expiry, expired and closed */
.tr-estimate .qm-eyebrow, .tr-ended .qm-eyebrow { margin-bottom: var(--s-2); }
.tr-estimate__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.tr-estimate .tr-small { display: flex; align-items: center; gap: 6px; margin-top: var(--s-3); }
.tr-estimate .tr-small svg { flex: none; width: 15px; height: 15px; }
.tr-ended { margin-top: var(--s-6); }
.tr-ended .tr-small { margin-top: var(--s-5); }
.tr-expiry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3) var(--s-4); margin-bottom: var(--s-4); padding: 14px 18px; border: 1px solid #f1dfae; border-radius: 16px; background: #fffaf0; font-size: var(--fs-sm); line-height: 1.55; color: #5a4a22; }
.tr-expiry.is-soon { border-color: #f4b8b0; background: #fff4f2; color: #7a271a; }
.tr-expiry__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: #9a6700; }
.tr-expiry.is-soon .tr-expiry__icon { color: #b42318; }
.tr-expiry__icon svg { width: 20px; height: 20px; }
.tr-expiry strong { color: var(--c-ink); }
.tr-expiry__rule { margin-top: 2px; font-size: var(--fs-xs); opacity: 0.85; }
.tr-expiry__close { min-height: 40px; padding: 0 14px; border: 1px solid currentColor; border-radius: var(--r-pill); background: #fff; font: inherit; font-size: var(--fs-xs); font-weight: 600; color: inherit; white-space: nowrap; cursor: pointer; }
.tr-expiry__close:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.tr-reasons { display: grid; gap: 8px; margin-top: var(--s-4); }
.tr-reason { min-height: 48px; padding: 10px 16px; border: 1.5px solid #e3e1d9; border-radius: 12px; background: #fff; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.tr-reason:hover, .tr-reason:focus-visible { border-color: var(--c-amber); background: #fffaf0; outline: none; }
.tr-reason:disabled { opacity: 0.6; cursor: progress; }
.tr-dialog .tr-reasons { margin-bottom: var(--s-4); }
@media (max-width: 599px) {
  .tr-expiry { grid-template-columns: auto minmax(0, 1fr); }
  .tr-expiry__close { grid-column: 1 / -1; justify-self: start; }
}

/* Matching state */
.tr-matching { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s-5); }
.tr-pulse { position: relative; display: grid; place-items: center; width: 72px; height: 72px; }
.tr-pulse svg { position: relative; width: 28px; height: 28px; color: var(--c-navy); }
.tr-pulse span { position: absolute; inset: 0; border-radius: 50%; background: rgba(254, 178, 4, 0.25); animation: tr-pulse 2s ease-out infinite; }
.tr-pulse span + span { animation-delay: 1s; }
.tr-pulse::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--c-amber); }
.tr-progress { margin-top: var(--s-4); padding: 14px 16px; border: 1px solid #f1dfae; border-radius: 14px; background: #fffaf0; }
.tr-progress p { margin-top: 6px; font-size: var(--fs-sm); color: var(--c-muted); }
.tr-progress .tr-progress__wait { color: var(--c-ink); }
.tr-progress__top { display: flex; align-items: center; gap: 12px; color: var(--c-ink); }
.tr-progress--done { border-color: #cfe8d9; background: #f2faf5; }
.tr-dots { display: inline-flex; gap: 5px; }
.tr-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d9c488; background: #fff; }
.tr-dots i.is-on { border-color: var(--c-amber); background: var(--c-amber); }
.tr-progress--done .tr-dots i { border-color: #9fd2b5; }
.tr-progress--done .tr-dots i.is-on { border-color: #1f9d63; background: #1f9d63; }
@keyframes tr-pulse { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

/* Recommended installer */
.tr-rec { overflow: hidden; box-shadow: 0 30px 60px -40px rgba(4, 36, 57, 0.35); border-color: #f1dfae; }
.tr-rec__band { display: flex; align-items: center; gap: var(--s-2); padding: 10px clamp(1.25rem, 1rem + 1.5vw, 2rem); background: var(--c-amber); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-navy); }
.tr-rec__band svg { width: 16px; height: 16px; }
.tr-rec__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding: var(--s-6) clamp(1.25rem, 1rem + 1.5vw, 2rem) var(--s-5); border-bottom: 1px solid #ece9df; }
.tr-who { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.tr-avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--c-navy); font-family: var(--f-display); font-size: 1.125rem; font-weight: 700; color: var(--c-amber); }
.tr-avatar--sm { width: 32px; height: 32px; border-radius: 10px; font-size: var(--fs-xs); }
.tr-avatar--lg { width: 64px; height: 64px; margin-bottom: var(--s-4); font-size: 1.375rem; }
.tr-who__name { font-family: var(--f-display); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; }
.tr-who__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; font-size: var(--fs-sm); color: var(--c-muted); }
.tr-who__meta svg { width: 14px; height: 14px; }
.tr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); }
.tr-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--c-surface-2); font-size: var(--fs-xs); font-weight: 600; color: var(--c-ink-2); }
.tr-tag svg { width: 12px; height: 12px; }
.tr-tag--green { background: #e3f5ea; color: #1b7a47; }
.tr-score { display: flex; align-items: center; gap: var(--s-3); }
.tr-score p { display: grid; }
.tr-score strong { font-family: var(--f-display); font-size: var(--fs-md); color: #1b7a47; }
.tr-score span { font-size: var(--fs-xs); color: var(--c-muted); }

.tr-ring { position: relative; width: 84px; height: 84px; }
.tr-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tr-ring__track { fill: none; stroke: #ece9df; stroke-width: 9; }
.tr-ring__value { fill: none; stroke: #1f9254; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tr-ring__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--c-ink); }
.tr-ring__num small { margin-top: 2px; font-family: var(--f-body); font-size: 0.625rem; font-weight: 600; color: var(--c-muted); }

.tr-rec__grid { display: grid; grid-template-columns: 1fr 1fr; }
.tr-rec__grid--one { grid-template-columns: 1fr; }
.tr-block { padding: var(--s-5) clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.tr-block + .tr-block { border-left: 1px solid #ece9df; }
.tr-block--quote { background: #fcfbf8; }
.tr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.tr-stats li { padding: var(--s-3); border-radius: 12px; background: #f7f6f2; }
.tr-stats strong { display: flex; align-items: center; gap: 4px; font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; }
.tr-stats span { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-star { width: 16px; height: 16px; color: var(--c-amber); }
.tr-bars { display: grid; gap: 10px; }
.tr-bars li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 2rem; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); }
.tr-bars__label { color: var(--c-ink-2); }
.tr-bars__track { height: 8px; border-radius: 8px; background: #ece9df; overflow: hidden; }
.tr-bars__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f6c445, var(--c-amber)); transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tr-match { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4) var(--s-5); align-items: center; margin: var(--s-4) 0; padding: var(--s-4); border-radius: 14px; background: #fbf7ea; border: 1px solid #efe3bd; }
.tr-match__num { display: grid; justify-items: center; line-height: 1.1; }
.tr-match__num strong { font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; color: var(--c-ink); }
.tr-match__num span { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 600; }
.tr-match .tr-spec__hint { grid-column: 1 / -1; }
@media (max-width: 560px) { .tr-match { grid-template-columns: 1fr; } .tr-match__num { justify-items: start; } }
.tr-sort { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-3); }
.tr-sort__btn { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c-line, #e2dfd3); background: #fff; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; }
.tr-sort__btn[aria-pressed="true"] { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.tr-new { display: block; font-size: 0.7rem; color: var(--c-muted); font-weight: 600; }
.tr-bars__val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.tr-price { font-family: var(--f-display); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; }
.tr-price__plan { margin-top: 4px; font-size: var(--fs-sm); color: var(--c-muted); }
.tr-price__plan strong { color: var(--c-ink); }
.tr-spec { display: grid; margin-top: var(--s-4); }
.tr-spec div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--s-3); padding: 10px 0; border-top: 1px solid #ece9df; font-size: var(--fs-sm); }
.tr-spec dt { color: var(--c-muted); }
.tr-spec dd { font-weight: 500; }

.tr-why { padding: var(--s-5) clamp(1.25rem, 1rem + 1.5vw, 2rem); border-top: 1px solid #ece9df; background: #f3faf6; }
.tr-why .tr-h3 { color: #1b7a47; }
.tr-why ul { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-5); }
.tr-why li { display: flex; gap: var(--s-2); font-size: var(--fs-sm); line-height: 1.5; }
.tr-why svg { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 3px; border-radius: 50%; background: #1f9254; color: #fff; }

.tr-rec__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) clamp(1.25rem, 1rem + 1.5vw, 2rem); border-top: 1px solid #ece9df; }
.tr-compare-toggle { display: inline-flex; align-items: center; gap: 6px; padding: var(--s-2) 0; border: 0; background: none; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); text-decoration: underline; text-decoration-color: #d6d3c9; text-underline-offset: 4px; cursor: pointer; }
.tr-compare-toggle:hover { color: var(--c-ink); }
.tr-chev { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.tr-compare-toggle[aria-expanded="true"] .tr-chev { transform: rotate(180deg); }

/* Comparison table */
.tr-compare { margin-top: var(--s-5); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); animation: qa-rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); scroll-margin-top: 80px; }
.tr-compare__intro { max-width: 60ch; margin-bottom: var(--s-5); }
.tr-table-wrap { overflow-x: auto; border: 1px solid #ece9df; border-radius: 16px; }
.tr-table-wrap:focus-visible { outline: 2px solid var(--c-amber); }
.tr-table { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.tr-table th, .tr-table td { padding: 12px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid #f0eee7; }
.tr-table thead th { position: sticky; top: 0; padding-top: 16px; background: #fff; font-weight: 600; vertical-align: bottom; }
.tr-table tbody th { width: 11rem; font-weight: 500; color: var(--c-muted); }
.tr-table th[scope="row"] { position: sticky; left: 0; z-index: 1; background: #fff; }
.tr-table .is-rec { background: #fffaf0; }
.tr-table thead .is-rec { border-top: 3px solid var(--c-amber); }
.tr-table__who { display: flex; align-items: center; gap: var(--s-2); }
.tr-rec-flag { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--c-amber); font-size: 0.6875rem; font-weight: 700; color: var(--c-navy); }
.tr-table__section th { padding-top: 18px; background: #faf9f6 !important; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink); }
.tr-table td small { color: var(--c-muted); }
.tr-table td.is-best { font-weight: 600; color: #145c36; }
.tr-best { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: var(--r-pill); background: #dcf3e5; font-size: 0.6875rem; font-weight: 700; color: #15703d; vertical-align: 1px; }
.tr-ok { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: #1f9254; color: #fff; vertical-align: -3px; }
.tr-ok svg { width: 10px; height: 10px; }
.tr-table tfoot td, .tr-table tfoot th { border-bottom: 0; padding-top: 16px; padding-bottom: 16px; }
.tr-choose { width: 100%; padding-right: 14px; }

/* Chosen state */
.tr-chosen { display: grid; justify-items: start; }
.tr-chosen__mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--s-4); border-radius: 50%; background: #1f9254; color: #fff; animation: ty2-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.tr-chosen__mark svg { width: 26px; height: 26px; }
.tr-chosen__eyebrow { color: #1b7a47; }
.tr-chosen__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); width: 100%; margin-top: var(--s-5); padding: var(--s-4); border-radius: 16px; background: #f7f6f2; }
.tr-chosen__summary .tr-who strong, .tr-chosen__price strong { display: block; font-weight: 700; }
.tr-chosen__summary .tr-who > div span, .tr-chosen__price span { display: block; font-size: var(--fs-xs); color: var(--c-muted); }
.tr-chosen__price { text-align: right; }
.tr-chosen__price strong { font-family: var(--f-display); font-size: 1.25rem; }
.tr-next { display: grid; gap: var(--s-3); width: 100%; margin: var(--s-5) 0; counter-reset: trn; }
.tr-next li { counter-increment: trn; display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); font-size: var(--fs-sm); line-height: 1.5; color: var(--c-ink-2); }
.tr-next li::before { content: counter(trn); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff6dd; font-size: var(--fs-xs); font-weight: 700; color: #7a5200; }

/* Confirm dialog */
.tr-dialog { width: min(480px, calc(100% - 2rem)); padding: 0; border: 0; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(4, 22, 36, 0.6); }
.tr-dialog::backdrop { background: rgba(4, 22, 36, 0.55); backdrop-filter: blur(4px); }
.tr-dialog[open] { animation: qa-rise 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tr-dialog__inner { position: relative; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.tr-dialog__x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--c-surface-2); cursor: pointer; }
.tr-dialog__x svg { width: 14px; height: 14px; }
.tr-dialog__sum { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; margin-top: var(--s-5); border-radius: 14px; overflow: hidden; background: #ece9df; }
.tr-dialog__sum div { padding: var(--s-3); background: #faf9f6; }
.tr-dialog__sum dt { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-dialog__sum dd { font-weight: 700; }
.tr-dialog__note { margin-top: var(--s-4); }
.tr-dialog__wait { margin-top: var(--s-4); padding: 12px 14px; border: 1px solid #f1dfae; border-radius: 12px; background: #fffaf0; font-size: var(--fs-sm); color: var(--c-ink); text-align: left; }
.tr-dialog__actions { display: flex; justify-content: flex-end; gap: var(--s-3); margin-top: var(--s-6); }

@media (max-width: 960px) {
  .tr-head { grid-template-columns: 1fr; align-items: start; }
  .tr-head__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-rec__grid { grid-template-columns: 1fr; }
  /* Phones: price and the installer's own explanation first, trust details after. */
  .tr-block--quote { order: -1; }
  .tr-block + .tr-block { border-left: 0; border-top: 1px solid #ece9df; }
  .tr-why ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tr-head__meta { grid-template-columns: 1fr 1fr; }
  .tr-head__meta div:last-child { grid-column: 1 / -1; }
  .tr-head__meta dd { white-space: normal; }
  /* Vertical progress on phones */
  /* Phones: one compact row of dots, with the current step named underneath. */
  .tr-steps { margin: var(--s-5) 0 0; padding: 14px 10px 0; border: 1px solid #e6e4dd; border-bottom: 0; border-radius: 18px 18px 0 0; background: #fff; }
  .tr-steps li:not(:last-child)::after { top: 10px; left: calc(50% + 13px); right: calc(-50% + 13px); }
  .tr-steps__dot { width: 22px; height: 22px; }
  .tr-steps__dot svg { width: 12px; height: 12px; }
  .tr-steps li.is-current .tr-steps__dot::after { width: 8px; height: 8px; }
  .tr-steps__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tr-steps__now { display: block !important; margin: 0 0 var(--s-5); padding: 10px 14px 14px; border: 1px solid #e6e4dd; border-top: 0; border-radius: 0 0 18px 18px; background: #fff; font-size: var(--fs-sm); color: var(--c-muted); text-align: center; }
  .tr-steps__now strong { color: var(--c-ink); }
  .tr-matching { grid-template-columns: 1fr; }
  .tr-rec__top { flex-direction: column; align-items: flex-start; }
  .tr-bars li { grid-template-columns: 8rem minmax(0, 1fr) 1.75rem; }
  .tr-spec div { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .tr-rec__actions { flex-direction: column; align-items: stretch; }
  .tr-rec__actions .btn { width: 100%; }
  .tr-compare-toggle { justify-content: center; }
  .tr-lookup__row { flex-direction: column; }
  .tr-chosen__price { text-align: left; }
  .tr-dialog__actions { flex-direction: column-reverse; }
  .tr-dialog__actions .btn { width: 100%; }
  .tr-table tbody th { width: 8.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-pulse span { animation: none; }
}

/* ---------- Appliance step: how solar works explainer ---------- */
.qm-explain {
  margin-bottom: var(--s-6);
  padding: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  border: 1px solid #f1dfae;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf0, #fffdf8);
}
.qm-explain__kicker { margin-bottom: var(--s-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9a6700; }
.qm-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.qm-parts li { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-3); border-radius: 12px; background: #fff; border: 1px solid #f3e6bf; }
.qm-parts__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c-amber); color: var(--c-navy); }
.qm-parts__icon svg { width: 18px; height: 18px; }
.qm-parts strong { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); }
.qm-parts span { display: block; margin-top: 2px; font-size: var(--fs-xs); line-height: 1.5; color: var(--c-ink-2); }
.qm-parts b { font-weight: 600; color: var(--c-ink); }

.qm-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--s-4); }
.qm-chain span { padding: 5px 10px; border-radius: var(--r-pill); background: #fff; border: 1px solid #ecd9a6; font-size: var(--fs-xs); font-weight: 600; color: var(--c-ink-2); white-space: nowrap; }
.qm-chain .qm-chain__end { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-amber); }
.qm-chain svg { width: 14px; height: 14px; color: #c9a646; }

.qm-explain__why { margin-top: var(--s-4); padding: var(--s-4); border-radius: 12px; background: #fff; border-left: 3px solid var(--c-amber); }
.qm-explain__q { margin-bottom: 4px; font-family: var(--f-display); font-size: var(--fs-base); font-weight: 700; color: var(--c-ink); }
.qm-explain__why p:last-child { font-size: var(--fs-sm); line-height: 1.6; color: var(--c-ink-2); }
.qm-explain__why strong { color: var(--c-ink); }

.qm-explain__tip { display: flex; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-sm); line-height: 1.55; color: #1d4f33; }
.qm-explain__tip svg { flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 4px; border-radius: 50%; background: #1f9254; color: #fff; }
.qm-explain__tip strong { color: #123d27; }

.qa .qm-step.is-entering .qm-explain { animation: qa-rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }

@media (max-width: 640px) {
  .qm-parts { grid-template-columns: 1fr; }
  .qm-parts li { grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: var(--s-3); }
  .qm-chain span { white-space: normal; }
}

/* ==========================================================================
   Custom dropdown (appliance picker and night hours)
   ========================================================================== */
.qm-dd { position: relative; min-width: 0; }
.qm-dd [hidden] { display: none !important; }
/* Finished entrance animations still count as transforms, which would trap the phone sheet. */
.qa *:has(.qm-dd.is-open) { animation: none !important; }
.qa .qm-picker:has(.qm-dd.is-open),
.qa .qm-row > div:has(.qm-dd.is-open),
.qa .qm-list__item:has(.qm-dd.is-open) { position: relative; z-index: 30; }

.qm-dd__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 14px 0 10px;
  border: 1.5px solid #d9dcd8;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--c-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.qm-dd__btn:hover { border-color: #e2c26a; }
.qm-dd__btn:focus-visible,
.qm-dd.is-open .qm-dd__btn { outline: none; border-color: var(--c-amber); box-shadow: 0 0 0 4px rgba(254, 178, 4, 0.18); }
.qm-dd__btn.is-empty .qm-dd__label { font-weight: 500; color: var(--c-muted); }

.qm-dd__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff4d6;
  color: #9a6700;
}
.qm-dd__icon svg { width: 18px; height: 18px; }
.qm-dd__btn.is-empty .qm-dd__icon { background: var(--c-surface-2, #f3f4f2); color: var(--c-muted); }
.qm-dd__label { flex: 1; min-width: 0; overflow: hidden; font-size: var(--fs-base); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.qm-dd__meta {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f3f0;
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--c-muted);
  white-space: nowrap;
}
.qm-dd__meta--warn { background: #fff1e0; color: #b54708; }
.qm-dd__btn .qm-dd__meta { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qm-row .qm-dd__btn .qm-dd__meta { display: none; }
@media (max-width: 599px) {
  .qm-row .qm-dd__btn { gap: 8px; padding-left: 14px; padding-right: 10px; }
  .qm-row .qm-dd__btn .qm-dd__icon { display: none; }
}
.qm-dd__chev { display: grid; flex: none; color: var(--c-muted); transition: transform 0.2s var(--ease); }
.qm-dd__chev svg { width: 18px; height: 18px; }
.qm-dd.is-open .qm-dd__chev { transform: rotate(180deg); color: var(--c-ink); }

/* Compact version inside the appliance list */
.qm-dd--sm .qm-dd__btn { min-height: 44px; gap: 8px; padding: 0 10px 0 6px; border-color: #e7d7a8; border-radius: 10px; }
.qm-dd--sm .qm-dd__icon { width: 30px; height: 30px; border-radius: 8px; }
.qm-dd--sm .qm-dd__icon svg { width: 16px; height: 16px; }
.qm-dd--sm .qm-dd__label { font-size: var(--fs-sm); }
.qm-dd--sm .qm-dd__btn .qm-dd__meta { display: none; }

.qm-dd__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-height: 360px;
  overflow: hidden;
  border: 1px solid #e6e2d6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 48px -16px rgba(4, 22, 36, 0.28), 0 4px 12px rgba(4, 22, 36, 0.06);
  white-space: normal;
  animation: qm-dd-in 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: top center;
}
.qm-dd--sm .qm-dd__panel { left: auto; width: 300px; }
@keyframes qm-dd-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }

.qm-dd__head { display: none; }
.qm-dd__search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 10px 4px;
  padding: 0 12px;
  border: 1.5px solid #e6e2d6;
  border-radius: 10px;
  background: #faf9f6;
  color: var(--c-muted);
}
.qm-dd__search:focus-within { border-color: var(--c-amber); background: #fff; }
.qm-dd__search svg { flex: none; width: 17px; height: 17px; }
.qm-dd__search input { flex: 1; min-width: 0; height: 42px; border: 0; background: none; font: inherit; font-size: 1rem; color: var(--c-ink); outline: none; }

.qm-dd__list { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px; scrollbar-width: thin; }
.qm-dd__group {
  position: sticky;
  top: -6px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 -6px;
  padding: 10px 16px 6px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a6700;
}
.qm-dd__group svg { width: 13px; height: 13px; }
.qm-dd__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 6px 10px 6px 6px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  color: var(--c-ink);
  text-align: left;
  cursor: pointer;
}
.qm-dd__opt .qm-dd__icon { width: 30px; height: 30px; border-radius: 8px; background: #f6f5f1; color: var(--c-muted); }
.qm-dd__opt .qm-dd__icon svg { width: 16px; height: 16px; }
.qm-dd__opt .qm-dd__label { font-size: var(--fs-sm); font-weight: 500; }
.qm-dd__opt:hover,
.qm-dd__opt:focus-visible { outline: none; background: #fdf6e3; }
.qm-dd__opt:focus-visible { box-shadow: inset 0 0 0 2px rgba(254, 178, 4, 0.6); }
.qm-dd__opt.is-selected { background: #fff4d6; }
.qm-dd__opt.is-selected .qm-dd__label { font-weight: 700; }
.qm-dd__opt.is-selected .qm-dd__icon { background: var(--c-amber); color: var(--c-navy, #041624); }
.qm-dd__tick { display: grid; flex: none; width: 18px; color: #9a6700; opacity: 0; }
.qm-dd__tick svg { width: 16px; height: 16px; }
.qm-dd__opt.is-selected .qm-dd__tick { opacity: 1; }
.qm-dd__empty { padding: 18px 12px; font-size: var(--fs-sm); text-align: center; color: var(--c-muted); }

/* Phones: open as a bottom sheet */
@media (max-width: 599px) {
  html.qm-dd-lock { overflow: hidden; }
  .qm-dd.is-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(4, 22, 36, 0.45);
    animation: qm-dd-fade 0.2s ease;
  }
  .qm-dd__panel,
  .qm-dd--sm .qm-dd__panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 201;
    width: auto;
    min-width: 0;
    max-height: min(78vh, 560px);
    padding-bottom: env(safe-area-inset-bottom);
    border: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(4, 22, 36, 0.2);
    animation: qm-dd-sheet 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .qm-dd__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 16px 8px 20px;
    font-family: var(--f-display);
    font-size: var(--fs-md);
  }
  .qm-dd__head::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 4px;
    background: #d9dcd8;
  }
  .qm-dd__close {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f0;
    color: var(--c-ink);
    cursor: pointer;
  }
  .qm-dd__close svg { width: 16px; height: 16px; }
  .qm-dd__search { margin: 4px 16px 6px; }
  .qm-dd__list { padding: 6px 10px 14px; }
  .qm-dd__group { margin: 0 -10px; padding-inline: 20px; }
  .qm-dd__opt { min-height: 52px; }
}
@keyframes qm-dd-fade { from { opacity: 0; } }
@keyframes qm-dd-sheet { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .qm-dd__panel, .qm-dd.is-open::before { animation: none !important; }
}

/* ==========================================================================
   Projected system card (appliance step)
   ========================================================================== */
.qm-proj {
  position: relative;
  margin-top: var(--s-6);
  padding: 22px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(254, 178, 4, 0.16), transparent 55%),
    linear-gradient(160deg, #0a2a40 0%, #041624 100%);
  color: #fff;
  isolation: isolate;
}
.qm-proj__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qm-proj__kicker { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-amber); }
.qm-proj__kicker svg { width: 16px; height: 16px; }
.qm-proj__pill { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; font-size: 0.6875rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); }

.qm-proj__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.qm-proj__spec {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}
.qm-proj__spec > div { display: grid; gap: 2px; min-width: 0; }
.qm-proj__ico { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: rgba(254, 178, 4, 0.14); color: var(--c-amber); }
.qm-proj__ico svg { width: 20px; height: 20px; }
.qm-proj__label { font-size: var(--fs-xs); font-weight: 500; color: rgba(255, 255, 255, 0.62); }
.qm-proj__spec strong { font-family: var(--f-display); font-size: 1.375rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: #fff; }
.qm-proj__spec small { font-size: 0.75rem; line-height: 1.4; color: rgba(255, 255, 255, 0.55); }

.qm-proj__spend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
}
.qm-proj__spend > div:first-child { display: grid; gap: 2px; }
.qm-proj__spend > div:first-child strong { font-family: var(--f-display); font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--c-amber); }

.qm-proj__note { display: flex; gap: 10px; margin-top: 16px; font-size: var(--fs-xs); line-height: 1.55; color: rgba(255, 255, 255, 0.62); }
.qm-proj__note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--c-amber); }
.qm-proj__note strong { color: #fff; }

.qm-proj.is-empty .qm-proj__spec strong,
.qm-proj.is-empty .qm-proj__spend strong { color: rgba(255, 255, 255, 0.35); }

@media (max-width: 599px) {
  .qm-proj { padding: 18px 16px; border-radius: 18px; }
  .qm-proj__spec { flex-direction: column; gap: 10px; padding: 14px; }
  .qm-proj__ico { width: 34px; height: 34px; }
  .qm-proj__spend { flex-direction: column; align-items: stretch; gap: 12px; }
}

/* ---------- How many run at night ---------- */
.qm-list__edit { display: flex; flex-wrap: wrap; }
.qm-list__edit .qm-stepper { flex: none; }
.qm-list__info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.qm-list__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: #0a2a40;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}
.qm-list__tag svg { width: 13px; height: 13px; color: var(--c-amber); }
.qm-list__tag--day { background: #fff1c7; color: #7a5200; }
.qm-list__tag--day svg { color: #b07800; }

.qm-nightqty { margin-top: var(--s-4); animation: qa-rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qa .qm-picker .qm-nightqty .qm-label { margin-top: 0; }
.qm-nightqty__hint { display: flex; gap: 8px; margin-top: 8px; font-size: var(--fs-xs); line-height: 1.5; color: var(--c-muted); }
.qm-nightqty__hint svg { flex: none; width: 14px; height: 14px; margin-top: 2px; color: #9a6700; }

.qm-explain__dayonly { display: block; margin-top: 6px; }
.qm-explain__tip .qm-explain__dayonly svg { display: inline-block; width: 15px; height: 15px; margin: 0 3px -3px 2px; padding: 0; border-radius: 0; background: none; color: #b07800; }
.qm-list__info .qm-list__tag { font-size: 0.75rem; color: #fff; }
.qm-list__info .qm-list__tag--day { color: #7a5200; }

/* ---------- Appliance search: clear button ---------- */
.qm-dd__search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.qm-dd__clear {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-right: -4px;
  border: 0;
  border-radius: 50%;
  background: #e9e7e0;
  color: var(--c-ink);
  cursor: pointer;
}
.qm-dd__clear:hover { background: #dedbd2; }
.qm-dd__clear svg { width: 12px; height: 12px; }
.qm-dd__empty { line-height: 1.55; }

/* ---------- Instalments on the price steps ---------- */
.qm-instal-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: var(--s-5);
  padding: 14px 16px;
  border: 1px solid #f1dfae;
  border-radius: 14px;
  background: #fffaf0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: #5a4a22;
}
.qm-instal-line svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #9a6700; }
.qm-instal-line strong { color: var(--c-ink); }

.qm-instal {
  margin-top: var(--s-5);
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(160deg, #0a2a40 0%, #041624 100%);
  color: #fff;
  animation: qa-rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.qm-instal__title { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: var(--fs-md); font-weight: 700; }
.qm-instal__title svg { width: 22px; height: 22px; color: var(--c-amber); }
.qm-instal__steps { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.qm-instal__steps li { display: flex; gap: 12px; align-items: flex-start; }
.qm-instal__steps li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-amber);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #041624;
}
.qm-instal__steps div { display: grid; gap: 2px; }
.qm-instal__steps strong { font-size: var(--fs-sm); }
.qm-instal__steps small { font-size: var(--fs-xs); line-height: 1.5; color: rgba(255, 255, 255, 0.68); }
.qa .qm-instal .qm-label { margin-top: 20px; color: #fff; }
.qm-optional { margin-left: 6px; font-weight: 500; color: rgba(255, 255, 255, 0.6); }
.qa .qm-instal .qm-affix { border-color: transparent; background: #fff; }
.qm-instal .qm-hint { color: rgba(255, 255, 255, 0.6); }
.qm-instal .qm-primary { width: 100%; margin-top: 18px; }

/* ---------- Free home audit explainer (How it works) ---------- */
.audit-note {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 760px;
  margin: var(--s-8, 48px) auto 0;
  padding: 24px;
  border: 1px solid #f1dfae;
  border-radius: 20px;
  background: #fffaf0;
}
.audit-note__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--c-amber); color: var(--c-navy, #041624); }
.audit-note__icon svg { width: 24px; height: 24px; }
.audit-note__title { font-family: var(--f-display); font-size: var(--fs-md); font-weight: 700; color: var(--c-ink); }
.audit-note p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.6; color: var(--c-muted); }
.audit-note__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; padding: 0; list-style: none; }
.audit-note__facts li { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.audit-note__facts svg { width: 16px; height: 16px; color: #1f9254; }
@media (max-width: 599px) {
  .audit-note { flex-direction: column; gap: 14px; padding: 20px; }
  .audit-note__facts { flex-direction: column; }
}

/* ==========================================================================
   All-in-one track (quiz) — reuses the option, badge and card patterns above
   ========================================================================== */
/* Live counter in the appliance builder */
.qm-fits { margin-top: var(--s-5); border: 1px solid #cfe3d6; border-radius: 14px; background: #f1f8f3; overflow: hidden; }
.qm-fits.is-none { border-color: #ecd9a6; background: #fffaf0; }
.qm-fits__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--c-ink);
  text-align: left;
  cursor: pointer;
}
.qm-fits__btn:disabled { cursor: default; }
.qm-fits__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: #1f9254; color: #fff; }
.qm-fits.is-none .qm-fits__icon { background: #f5c451; color: #3d2c00; }
.qm-fits__icon svg { width: 18px; height: 18px; }
.qm-fits__text { flex: 1; min-width: 0; font-size: var(--fs-sm); line-height: 1.4; }
.qm-fits__text strong { font-family: var(--f-display); font-size: var(--fs-md); }
.qm-fits__text small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--c-muted); }
.qm-fits__chev { display: grid; color: var(--c-muted); transition: transform 0.2s var(--ease); }
.qm-fits__chev svg { width: 18px; height: 18px; }
.qm-fits__btn[aria-expanded="true"] .qm-fits__chev { transform: rotate(180deg); }
.qm-fits__list { margin: 0; padding: 0 14px 12px 62px; list-style: none; display: grid; gap: 6px; }
.qm-fits__list li { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); }
.qm-fits__list span { color: var(--c-muted); white-space: nowrap; }

/* Results: side-by-side comparison */
.qm-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: var(--s-4); }
.qm-compare__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1.5px solid var(--qa-line, var(--c-line));
  border-radius: 16px;
  background: #fff;
}
.qm-compare__col.is-picked { border-color: var(--c-amber); background: var(--qa-selected, #fffaf0); }
.qm-compare__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9a6700; }
.qm-compare__kicker .qm-badge { margin: 0; letter-spacing: 0; text-transform: none; }
.qm-compare__col > strong { font-family: var(--f-display); font-size: var(--fs-md); line-height: 1.3; color: var(--c-ink); }
.qm-compare__col > span { font-size: var(--fs-sm); color: var(--c-muted); }
.qm-compare__col > .qm-compare__price { margin-top: 6px; font-weight: 700; color: var(--c-ink); }
.qm-compare__col > .qm-compare__down { font-size: var(--fs-xs); }
.qm-compare__col ul { display: grid; gap: 4px; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--qa-line, var(--c-line)); list-style: none; font-size: var(--fs-xs); color: var(--c-ink-2, var(--c-ink)); }
.qm-compare__col li::before { content: "•"; margin-right: 6px; color: #9a6700; }
.qm-tradeoff { display: flex; gap: 10px; margin-bottom: var(--s-4); padding: 12px 14px; border-radius: 12px; background: #f3f4f2; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-ink-2, var(--c-ink)); }
.qm-tradeoff svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #9a6700; }

/* Track sections */
.qm-track { margin-top: var(--s-6); }
.qm-track > .qm-group { margin-bottom: 4px; }
.qm-track > .qm-hint { margin: 0 0 var(--s-3); }
.qm-track__go { width: 100%; margin-top: var(--s-4); }
.qm-radio--box { border-radius: 6px; }
.qm-radio--box::after { border-radius: 2px; }
.qm-unit[aria-disabled="true"] { opacity: 0.55; }
.qm-unit.is-intent { box-shadow: inset 0 0 0 1px #93c5fd; }
.qm-unit .qm-badge { margin-left: 6px; vertical-align: 1px; }
.qa .qm-unit .qm-option__meta { font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.qm-unit__price { color: var(--c-ink-2, var(--c-ink)); }
.qm-unit__gap { color: #b54708; }
.qm-note--intent { align-items: flex-start; background: #eef4ff; color: #1e3a6b; }
.qm-note--intent svg { flex: none; margin-top: 2px; }

/* Fork when nothing fits */
.qm-fork { display: grid; gap: 14px; }
.qm-fork__lead { display: grid; gap: 6px; padding: 16px 18px; border-radius: 14px; background: #fffaf0; border: 1px solid #f1dfae; font-size: var(--fs-sm); line-height: 1.6; color: #5a4a22; }
.qm-fork__lead strong { color: var(--c-ink); }
.qm-door { padding: 18px; border: 1.5px solid var(--qa-line, var(--c-line)); border-radius: 16px; background: #fff; }
.qm-door__kicker { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9a6700; }
.qm-door__title { margin-top: 4px; font-family: var(--f-display); font-size: var(--fs-md); color: var(--c-ink); }
.qm-door__body { margin: 6px 0 var(--s-4); font-size: var(--fs-sm); line-height: 1.6; color: var(--c-ink-2, var(--c-ink)); }
.qm-door__price { font-size: var(--fs-sm); color: var(--c-muted); }
.qm-door__price strong { color: var(--c-ink); }

@media (max-width: 599px) {
  .qm-compare { grid-template-columns: 1fr; }
  .qm-fits__list { padding-left: 14px; }
}

/* Thank-you: all-in-one shortlist */
.ty2-units { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ty2-units li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #041624; color: #fff; }
.ty2-units span { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.7); }

/* ==========================================================================
   All-in-one catalogue (units)
   ========================================================================== */
body:has(.un) { background: #faf9f6; }
.un-hero { padding: clamp(40px, 6vw, 72px) 0 24px; }
.un-hero__title { max-width: 18ch; margin-top: var(--s-3); font-family: var(--f-display); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--c-ink); }
.un-hero__lead { max-width: 60ch; margin-top: var(--s-4); }
.un-body { padding-bottom: clamp(48px, 8vw, 96px); }

.un-filters { display: grid; gap: 18px; padding: 20px; border: 1px solid #ebe7dc; border-radius: 18px; background: #fff; }
.un-filter__label { margin-bottom: 10px; font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); }
.un-filter--brand .un-filter__label { font-size: var(--fs-xs); font-weight: 600; color: var(--c-muted); }
.un-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.un-chip {
  min-height: 42px;
  padding: 8px 16px;
  border: 1.5px solid #d9dcd8;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.un-chip:hover { border-color: #e2c26a; }
.un-chip[aria-pressed="true"] { border-color: var(--c-amber); background: #fff4d6; font-weight: 700; }
.un-chips--sm .un-chip { min-height: 36px; padding: 6px 14px; font-size: var(--fs-xs); }

.un-count { margin: 24px 0 12px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); }
.un-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.un-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ebe7dc; border-radius: 20px; background: #fff; }
.un-card__media { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #0a2a40, #041624); color: var(--c-amber); }
.un-card__media svg { width: 56px; height: 56px; }
.un-card__media img { width: 100%; height: 100%; object-fit: cover; }
.un-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 20px; }
.un-card__brand { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9a6700; }
.un-card__title { font-family: var(--f-display); font-size: var(--fs-md); line-height: 1.3; color: var(--c-ink); }
.un-card__runs { font-size: 0.9375rem; line-height: 1.55; color: var(--c-ink-2, var(--c-ink)); }
.un-card__price { display: grid; gap: 2px; margin-top: 6px; }
.un-card__price strong { font-family: var(--f-display); font-size: 1.125rem; color: var(--c-ink); }
.un-card__price span { font-size: var(--fs-xs); color: var(--c-muted); }
.un-card__specs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; padding: 10px 0 0; border-top: 1px dashed #ebe7dc; list-style: none; font-size: var(--fs-xs); color: var(--c-muted); }
.un-card__specs li { display: inline-flex; align-items: center; gap: 5px; }
.un-card__specs svg { width: 14px; height: 14px; color: #9a6700; }
.un-card__cta { margin-top: auto; justify-content: center; width: 100%; }
.un-card__specs + .un-card__cta { margin-top: 16px; }
.un-empty { display: grid; justify-items: start; gap: 14px; padding: 24px; border: 1px dashed #e2c26a; border-radius: 18px; background: #fffaf0; color: #5a4a22; }
.un-empty strong { color: var(--c-ink); }
.un-note { display: flex; gap: 16px; margin-top: 32px; padding: 22px; border-radius: 18px; background: #041624; color: rgba(255, 255, 255, 0.78); }
.un-note__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(254, 178, 4, 0.14); color: var(--c-amber); }
.un-note__icon svg { width: 22px; height: 22px; }
.un-note__title { font-family: var(--f-display); font-size: var(--fs-md); color: #fff; }
.un-note p { margin-top: 6px; font-size: var(--fs-sm); line-height: 1.6; }
@media (max-width: 599px) {
  .un-filters { padding: 16px; }
  .un-note { flex-direction: column; }
}
.qm-track__go:disabled { opacity: 0.4; cursor: not-allowed; }
@media (max-width: 599px) {
  .qm-door { padding: 16px 12px; }
  .qm-door__kicker, .qm-door__title, .qm-door__body, .qm-door__price { padding-inline: 4px; }
}
.un-empty[hidden], .un-filters[hidden] { display: none; }

/* ==========================================================================
   Shorter quote flow
   ========================================================================== */
/* Collapsible "why night use changes your price" */
.qm-explain__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.qm-explain__toggle .qm-explain__kicker { margin: 0; }
.qm-explain__more { display: inline-flex; flex: none; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-ink); }
.qm-explain__more svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.qm-explain.is-open .qm-explain__more svg { transform: rotate(180deg); }
.qm-explain.is-open #qm-explain-body { margin-top: var(--s-3); }

.qm-note--spend { align-items: flex-start; background: #f3f4f2; color: var(--c-ink-2, var(--c-ink)); }
.qm-note--spend svg { flex: none; margin-top: 2px; color: #9a6700; }
.qm-note--spend strong { color: var(--c-ink); }

/* State step */
.qa .qm-label.qm-label--first { margin-top: 0; }

/* Contact step: decision chips and consent */
.qm-optional--light { color: var(--c-muted); }
.qm-consent { display: grid; gap: 10px; margin-top: var(--s-5); padding: 14px; border-radius: 14px; background: #f3f4f2; }
.qm-consent p { display: flex; gap: 10px; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-ink-2, var(--c-ink)); }
.qm-consent p svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #1f9254; }
.qm-consent strong { color: var(--c-ink); }
.qm-consent .qm-consent__rules { font-size: var(--fs-xs); color: #5b6158; }
.qm-consent .qm-consent__rules svg { width: 16px; height: 16px; color: #8b8f87; }
.qm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--c-ink);
  text-align: left;
  cursor: pointer;
}
.qm-check__box { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid #c3c7cb; border-radius: 5px; background: #fff; color: transparent; }
.qm-check__box svg { width: 14px; height: 14px; }
.qm-check[aria-checked="true"] .qm-check__box { border-color: var(--c-amber); background: var(--c-amber); color: #041624; }
.qm-check > span:last-child { flex: 1; min-width: 0; white-space: normal; }
.qm-chips--states .qm-chip { white-space: nowrap; }
.qm-consent .qm-check { width: 100%; }
.qa .qm-chips.qm-chips--states { display: flex; flex-wrap: wrap; grid-template-columns: none; }
.qa .qm-chips--states .qm-chip { flex: 0 0 auto; width: auto; padding-inline: 18px; }
.qa .qm-chips.qm-chips--wrap { display: flex; flex-wrap: wrap; grid-template-columns: none; }
.qa .qm-chips--wrap .qm-chip { flex: 0 0 auto; width: auto; padding-inline: 16px; white-space: nowrap; }
.qm-gridhours { margin-top: 0; padding: 16px; border-radius: 14px; background: #fffaf0; border: 1px solid #f1dfae; animation: qa-rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qa .qm-gridhours .qm-label { margin-top: 0; }
.qm-badge--lead { margin: 0 8px 0 0; vertical-align: 2px; }
.qm-badge.qm-badge--lead { display: block; width: fit-content; margin: 0 0 6px; }
/* "Used now and then" note in the appliance list */
.qm-occasional { display: grid; gap: 10px; margin-top: var(--s-4); padding: 14px; border-radius: 14px; background: #f3f4f2; }
.qm-occasional p { display: flex; gap: 10px; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-ink-2, var(--c-ink)); }
.qm-occasional p svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #9a6700; }
.qm-occasional strong { color: var(--c-ink); }
.qm-occasional .qm-check { width: 100%; }
/* Instalment months on the payment question */
.qm-plan { margin-top: var(--s-5); padding: 16px; border: 1px solid #f1dfae; border-radius: 16px; background: #fffaf0; animation: qa-rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qa .qm-plan .qm-label { margin-top: 0; margin-bottom: 10px; }
.qm-plan__note { display: flex; gap: 10px; margin-top: 12px; font-size: var(--fs-xs); line-height: 1.55; color: #5a4a22; }
.qm-plan__note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: #9a6700; }
/* Short "Estimate · installers set the final price" line; opens to the full disclaimer */
.qm-fine { margin: var(--s-3) 0; font-size: var(--fs-xs); line-height: 1.5; color: #7a5200; }
.qm-fine summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; list-style: none; }
.qm-fine summary::-webkit-details-marker { display: none; }
.qm-fine summary > svg { flex: none; width: 15px; height: 15px; color: #9a6700; }
.qm-fine__i { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 700; line-height: 1; font-style: italic; }
.qm-fine summary:hover span:first-of-type { text-decoration: underline; text-underline-offset: 2px; }
.qm-fine summary:focus-visible { outline: 2px solid var(--c-amber); outline-offset: 2px; border-radius: 6px; }
.qm-fine[open] .qm-fine__i { background: #9a6700; border-color: #9a6700; color: #fff; }
.qm-fine p { margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1px dashed #e2c26a; background: #fffdf6; color: #5a4a22; }
/* Typical-home quick start on the appliance step */
.qm-presets { display: grid; gap: 10px; margin-bottom: var(--s-4); padding: 14px; border-radius: 16px; border: 1px solid #e3e6e1; background: #f7f8f5; }
.qm-presets__title { font-size: var(--fs-sm); line-height: 1.5; color: var(--c-ink-2, var(--c-ink)); }
.qm-presets__title strong { display: block; color: var(--c-ink); }
.qm-presets__main { justify-content: center; width: 100%; gap: 10px; }
.qm-presets__main svg { width: 18px; height: 18px; }
.qm-presets__more { font-size: var(--fs-xs); text-align: center; color: #5b6158; }
.qm-preset-note { margin-bottom: var(--s-3); }
/* Welcome-back card: resume a saved request */
.qm-resume { display: grid; gap: 12px; margin-bottom: var(--s-4); padding: 14px 16px; border-radius: 16px; border: 1px solid #b7e2c5; background: #eef9f2; font-size: var(--fs-sm); line-height: 1.5; color: #14532d; animation: qa-rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qm-resume strong { color: #0f3d22; }
.qm-resume__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.qm-consent .qm-link { justify-self: start; font-size: var(--fs-sm); font-weight: 600; }
.qm-link:disabled { color: #8b8f87; text-decoration: none; cursor: default; }
/* Optional number for the other decision maker */
.qm-other { margin-top: var(--s-3); padding: 14px; border-radius: 14px; border: 1px solid #f1dfae; background: #fffaf0; animation: qa-rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qa .qm-other .qm-label { margin-top: 0; }
.qm-other__note { display: flex; gap: 8px; margin-top: 10px; font-size: var(--fs-xs); line-height: 1.5; color: #5a4a22; }
.qm-other__note svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: #1f9254; }
.qm-other .qm-affix { background: #fff; }

/* ---------- Appliance step: calmer layout ----------
   Search box first, extra fields only after a pick; one line per added appliance,
   with Edit opening that line's controls. Later in the file so it wins over the older rules. */
.qa .qm-picker { padding: var(--s-5); }
.qm-picker__title { margin-bottom: 10px; font-family: var(--f-display); font-size: var(--fs-base); font-weight: 700; color: var(--c-ink); }
.qm-picker__more { animation: qa-rise 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qm-why { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px dashed #e3e1d9; }
.qm-why__line { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-xs); line-height: 1.55; color: #5b6158; }
.qm-why__line > svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: #b07800; }
.qm-why__line strong { color: var(--c-ink); }
.qm-why__line .qm-link { flex: none; margin-left: auto; font-size: var(--fs-xs); font-weight: 600; }
.qm-why__body { margin-top: var(--s-3); animation: qa-rise 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qm-presets__or { position: relative; margin-top: 4px; text-align: center; font-size: var(--fs-xs); color: #8b8f87; }
.qm-presets__or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #e3e6e1; }
.qm-presets__or span { position: relative; padding: 0 10px; background: #f7f8f5; }

.qm-mylist { margin-top: var(--s-5); }
.qm-mylist__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.qm-mylist__head .qm-group { margin: 0; }
.qm-mylist__hint { font-size: var(--fs-xs); color: #5b6158; }
.qa .qm-mylist .qm-list { gap: 0; border: 1px solid #e6e4dd; border-radius: 16px; background: #fff; overflow: visible; }
.qa .qm-mylist .qm-list__item { display: block; padding: 0; border: 0; border-radius: 0; background: none; animation: none; }
.qa .qm-mylist .qm-list__item + .qm-list__item { border-top: 1px solid #efede6; }
.qa .qm-mylist .qm-list__item.is-editing { background: #fffaf0; }
.qa .qm-mylist .qm-list__item:first-child { border-radius: 16px 16px 0 0; }
.qa .qm-mylist .qm-list__item:last-child { border-radius: 0 0 16px 16px; }
.qa .qm-mylist .qm-list__item:only-child { border-radius: 16px; }
.qm-list__line { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 8px 10px 14px; }
.qm-list__ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: #f3f1ea; color: #5a4a22; }
.qm-list__ico svg { width: 18px; height: 18px; }
.qa .qm-mylist .qm-list__info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.qa .qm-mylist .qm-list__info strong { font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa .qm-mylist .qm-list__when { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: #3f4a5a; }
.qm-list__when svg { width: 13px; height: 13px; color: #6b7cff; }
.qm-list__when.is-day svg { color: #b07800; }
.qm-list__edit-btn { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid #e3e1d9; border-radius: 999px; background: #fff; font-size: var(--fs-xs); font-weight: 600; color: var(--c-ink); cursor: pointer; }
.qm-list__edit-btn:hover, .qm-list__edit-btn[aria-expanded="true"] { border-color: var(--c-ink); }
.qa .qm-mylist .qm-list__remove { flex: none; width: 36px; height: 36px; }
.qa .qm-mylist .qm-list__edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 4px 14px 16px 62px; border: 0; animation: qa-rise 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qa .qm-mylist .qm-list__edit .qm-label { margin: 0 0 6px; font-size: var(--fs-xs); }
.qa .qm-mylist .qm-list__edit .qm-stepper { display: flex; justify-content: space-between; height: 44px; }
@media (max-width: 599px) {
  .qa .qm-picker { padding: var(--s-4); }
  .qa .qm-mylist .qm-list__edit { grid-template-columns: 1fr; padding-left: 14px; }
  .qm-list__ico { display: none; }
}

/* ---------- Size and setup step: one decision at a time ---------- */
.qm-need { padding: 18px 20px; border: 1px solid #cfe9d9; border-radius: 18px; background: #f2faf5; }
.qm-need__title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #166b3a; }
.qm-need__title svg { width: 16px; height: 16px; }
.qm-need__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.qm-need__nums > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #fff; }
.qm-need__nums span { font-size: var(--fs-xs); color: #5b6158; }
.qm-need__nums strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--c-ink); }
.qm-need__nums small { font-size: 0.75rem; color: #5b6158; }
.qm-need__nums > div:nth-child(3) { grid-column: 1 / -1; }
.qm-need__goal { margin-top: 12px; font-size: var(--fs-sm); color: #1d4f33; }
.qa .qm-need .qm-note--spend { margin: 8px 0 0; padding: 0; background: none; font-size: var(--fs-xs); color: #3f4a3f; }
.qa .qm-need .qm-note--spend svg { width: 14px; height: 14px; }
.qm-need .qm-fine { margin-bottom: 0; }

.qm-setups { display: grid; gap: 10px; margin-top: var(--s-5); }
.qm-setup { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 1.5px solid #e3e1d9; border-radius: 16px; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.qm-setup:hover { border-color: var(--c-amber); background: #fffaf0; }
.qm-setup:focus-visible { outline: 3px solid rgba(254, 178, 4, 0.45); outline-offset: 2px; }
.qm-setup.is-selected { border-color: var(--c-amber); background: #fffaf0; }
.qm-setup__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff3d6; color: #8a5a00; }
.qm-setup__ico svg { width: 22px; height: 22px; }
.qm-setup__text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.qm-setup__text strong { font-family: var(--f-display); font-size: var(--fs-base); font-weight: 700; color: var(--c-ink); }
.qm-setup__text span { font-size: var(--fs-sm); line-height: 1.5; color: #4b5563; }
.qm-setup__text small { font-size: 0.75rem; color: #8b8f87; }
.qm-setup__go { flex: none; color: #b8bbb3; }
.qm-setup__go svg { width: 18px; height: 18px; }
.qm-setup:hover .qm-setup__go { color: var(--c-ink); }

.qm-chosen { display: flex; align-items: center; gap: 12px; margin-top: var(--s-4); padding: 12px 16px; border: 1px solid #e3e1d9; border-radius: 14px; background: #fff; }
.qm-chosen__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff3d6; color: #8a5a00; }
.qm-chosen__ico svg { width: 18px; height: 18px; }
.qm-chosen > div { display: grid; flex: 1; }
.qm-chosen > div span { font-size: 0.75rem; color: #5b6158; }
.qm-chosen > div strong { font-weight: 600; color: var(--c-ink); }
.qm-chosen .qm-link { font-size: var(--fs-sm); font-weight: 600; }

.qm-sizes { margin-top: var(--s-5); }
.qm-sizes__title { margin-bottom: 4px; font-family: var(--f-display); font-size: var(--fs-base); font-weight: 700; color: var(--c-ink); }
.qm-sizes .qm-fine { margin-top: 0; }
@media (max-width: 599px) {
  .qm-need { padding: 16px; }
  .qm-need__nums strong { font-size: 1.3rem; }
  .qm-setup { padding: 14px; gap: 12px; }
  .qm-setup__ico { width: 40px; height: 40px; }
}
.qm-sizes__hint { margin-bottom: 6px; font-size: var(--fs-sm); color: #4b5563; }
/* Size labels ("15 kVA") stay on one line; on phones the Recommended badge drops under the size. */
.qm-sizes .qm-option__label { white-space: nowrap; }
@media (max-width: 479px) {
  .qa .qm-sizes .qm-option:has(.qm-badge):has(.qm-option__meta) { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .qa .qm-sizes .qm-option:has(.qm-badge):has(.qm-option__meta) .qm-option__meta { grid-column: 3; grid-row: 1; }
  .qa .qm-sizes .qm-option .qm-badge { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 4px; }
}
/* "Who is making the decision?": one row where the three fit, stacked full width on phones. */
.qa .qm-deciders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qa .qm-deciders .qm-chip { flex: none; width: 100%; min-width: 0; padding: 0 14px; white-space: nowrap; }
@media (max-width: 479px) {
  .qa .qm-deciders { grid-template-columns: 1fr; }
  .qa .qm-deciders .qm-chip { justify-content: flex-start; padding: 0 18px; text-align: left; }
}
/* Repair replacement: hint under the value, and a plain-language note on the comparison section */
.tr-spec__hint { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: 400; color: var(--c-muted); }
.tr-table__section th small { margin-left: 8px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--c-muted); }
/* What the installer attached: note, proposal file, previous work */
.tr-from { padding: var(--s-5) clamp(1.25rem, 1rem + 1.5vw, 2rem); border-top: 1px solid #ece9df; }
.tr-note { margin: var(--s-3) 0 0; padding: 12px 16px; border-left: 3px solid var(--c-amber); border-radius: 0 12px 12px 0; background: #fffaf0; font-size: var(--fs-sm); line-height: 1.6; color: var(--c-ink); }
.tr-work__lead { margin: var(--s-3) 0 0; font-size: .875rem; color: #5b6472; }
.tr-work { display: grid; gap: 16px; margin-top: 12px; }
.tr-work__item { margin: 0; }
.tr-work__shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.tr-work__shots--one { grid-template-columns: minmax(0, 420px); }
.tr-work__shot { display: block; overflow: hidden; border-radius: 10px; background: #f1efe8; aspect-ratio: 4 / 3; }
.tr-work__shot img, .tr-work__shot video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tr-work__shot video { background: #000; }
.tr-work__ext { position: relative; display: grid; place-items: center; max-width: 420px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #0d2236; color: #fff; text-decoration: none; font-weight: 700; }
.tr-work__ext img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.tr-work__ext span { position: relative; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .6); }
.tr-work__item figcaption { margin-top: 6px; font-size: .875rem; font-weight: 600; color: #1d2b3a; }
.tr-work__item figcaption small { font-weight: 500; color: #5b6472; }
.tr-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-4); }
.tr-file { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid #e3e1d9; border-radius: 10px; background: #fff; font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); text-decoration: none; }
.tr-file:hover { border-color: var(--c-ink); }
.tr-file svg { flex: none; width: 16px; height: 16px; color: #8a5a00; }
.tr-file small { margin-left: 4px; font-weight: 500; color: var(--c-muted); }
.tr-file .tr-file__out { width: 14px; height: 14px; color: var(--c-muted); }
.tr-explain { margin-top: 4px; }
.tr-explain summary { display: inline-block; cursor: pointer; font-size: var(--fs-xs); font-weight: 600; color: #8a5a00; text-decoration: underline; text-underline-offset: 2px; }
.tr-explain p { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: #f6f5f1; font-size: var(--fs-xs); font-weight: 400; line-height: 1.6; color: var(--c-ink); }
.tr-cell-note { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-width: 180px; max-width: 240px; font-size: var(--fs-xs); line-height: 1.55; white-space: normal; }
.tr-none { color: var(--c-muted); }
.tr-table .tr-file { white-space: nowrap; max-width: 230px; }
/* A long proposal file name is cut with an ellipsis so it never widens its column; the full name is the tooltip. */
.tr-table .tr-file > span:not(.visually-hidden) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tr-table-wrap { position: relative; }
/* Instalment terms in the comparison: interest-type hint and the example-length picker */
.tr-cell-hint { display: block; margin-top: 2px; font-size: 0.75rem; white-space: normal; color: var(--c-muted); }
.tr-example-row td { background: #faf9f6; }
.tr-example-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--c-muted); }
.tr-example-pick button { min-height: 32px; padding: 0 12px; border: 1px solid #e3e1d9; border-radius: 999px; background: #fff; font: inherit; font-weight: 600; color: var(--c-ink); cursor: pointer; }
.tr-example-pick button[aria-pressed="true"] { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
/* The installer's own explanation, under their price */
.tr-inote { margin: var(--s-4) 0 0; padding: 14px 16px; border-left: 3px solid var(--c-amber); border-radius: 0 12px 12px 0; background: #fffaf0; }
.tr-inote figcaption { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a5a00; }
.tr-inote figcaption svg { width: 15px; height: 15px; }
.tr-inote blockquote { margin: 8px 0 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--c-ink); }
.tr-inote__by { margin-top: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-muted); }
.tr-cell-note.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.tr-more { margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-xs); font-weight: 600; color: #8a5a00; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.tr-steps__now { display: none; }
/* Quotes-close countdown */
.tr-expiry { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s-4) var(--s-6); padding: 18px 22px; }
.tr-expiry__title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8a5a00; }
.tr-expiry__title svg { width: 16px; height: 16px; }
.tr-expiry__shut, .tr-expiry.is-closed .tr-expiry__open { display: none; }
.tr-expiry.is-closed .tr-expiry__shut { display: inline; }
.tr-cd { display: flex; gap: 8px; }
.tr-cd__box { display: grid; justify-items: center; min-width: 62px; padding: 8px 6px 6px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(4, 36, 57, 0.06), inset 0 0 0 1px #f1dfae; }
.tr-cd__box b { font-family: var(--f-display); font-size: 1.75rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--c-ink); }
.tr-cd__box small { margin-top: 2px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-muted); }
.tr-expiry.is-soon .tr-expiry__title { color: #b42318; }
.tr-expiry.is-soon .tr-cd__box { box-shadow: inset 0 0 0 1px #f4b8b0; }
.tr-expiry.is-soon .tr-cd__box b { color: #b42318; }
.tr-expiry.is-closed { border-color: #e3e1d9; background: #f6f5f1; color: var(--c-muted); }
.tr-expiry.is-closed .tr-expiry__title { color: var(--c-muted); }
.tr-expiry.is-closed .tr-cd__box b { color: #a3a6a0; }
.tr-expiry__text p:first-child { color: var(--c-ink); }
.tr-expiry__text .tr-expiry__close { margin-top: 10px; }
.tr-choose-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tr-choose-left { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: #8a5a00; }
.tr-choose-left.is-soon { color: #b42318; }
.tr-choose-left svg { width: 14px; height: 14px; }
.tr-cd--inline { font-variant-numeric: tabular-nums; }
@media (max-width: 599px) {
  .tr-expiry { grid-template-columns: 1fr; padding: 16px; }
  .tr-cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tr-cd__box { min-width: 0; }
  .tr-cd__box b { font-size: 1.5rem; }
}
/* Countdown bar pinned to the bottom while quotes are open */
.tr-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--c-navy); color: #fff; box-shadow: 0 -12px 30px -18px rgba(4, 36, 57, 0.55); }
.tr-sticky__inner { display: flex; align-items: center; justify-content: center; gap: 12px 18px; max-width: 1080px; margin: 0 auto; }
.tr-sticky__label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; color: var(--c-amber); }
.tr-sticky__label svg { width: 18px; height: 18px; }
.tr-sticky .tr-cd { gap: 6px; }
.tr-sticky .tr-cd__box { min-width: 50px; padding: 5px 4px 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.tr-sticky .tr-cd__box b { font-size: 1.25rem; color: #fff; }
.tr-sticky .tr-cd__box small { font-size: 0.625rem; color: rgba(255, 255, 255, 0.65); }
.tr-sticky .tr-expiry__shut, .tr-sticky.is-closed .tr-expiry__open { display: none; }
.tr-sticky.is-closed .tr-expiry__shut { display: inline; }
.tr-sticky.is-soon { background: #7a1d14; }
.tr-sticky.is-soon .tr-sticky__label { color: #ffd2cc; }
.tr-sticky.is-closed { background: #3c4650; }
.tr-sticky.is-closed .tr-sticky__go { display: none; }
.tr-sticky__go { flex: none; white-space: nowrap; }
body.has-tr-sticky { padding-bottom: 84px; }
@media (max-width: 599px) {
  .tr-sticky__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .tr-sticky__label { grid-column: 1 / -1; font-size: var(--fs-xs); }
  .tr-sticky .tr-cd__box { min-width: 0; flex: 1; }
  .tr-sticky .tr-cd__box b { font-size: 1.05rem; }
  .tr-sticky .tr-cd { gap: 4px; }
  .tr-sticky .tr-cd__box small { font-size: 0.5625rem; letter-spacing: 0; }
  .tr-sticky__go { align-self: stretch; padding-inline: 14px; }
  body.has-tr-sticky { padding-bottom: 116px; }
}
.tr-sticky__short { display: none; }
@media (max-width: 599px) {
  .tr-sticky__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tr-sticky__short { display: inline; }
}

/* Installer logo inside the avatar tile */
.tr-avatar { overflow: hidden; }
.tr-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* "Find my request" pop-up on the home page */
.fr-title { font-family: var(--ff-display, inherit); font-size: var(--fs-xl, 1.5rem); line-height: 1.2; color: var(--c-ink); }
.fr-lead { margin: var(--s-3) 0 var(--s-4); font-size: var(--fs-sm); color: var(--c-muted); }
.fr-dialog .tr-alert { margin: 0 0 var(--s-4); }
.fr-dialog .tr-lookup__row { margin-top: 6px; }
@media (max-width: 480px) { .fr-dialog .tr-lookup__row { flex-direction: column; } }

/* Privacy Policy and Terms of Service */
.doc { padding-block: clamp(2.5rem, 6vw, 5rem); }
.doc__wrap { max-width: 820px; }
.doc__meta { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--c-muted); }
.doc__lead { margin-top: var(--s-4); font-size: 1.0625rem; color: var(--c-ink-2); }
.doc__toc { margin-top: var(--s-6); padding: var(--s-5); border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-surface-2); }
.doc__toc h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); }
.doc__toc ol { margin: var(--s-3) 0 0; padding-left: 1.5rem; list-style: decimal; columns: 2; column-gap: var(--s-6); font-size: var(--fs-sm); }
.doc__toc li { margin-bottom: 6px; break-inside: avoid; }
.doc__toc a { color: var(--c-ink); text-decoration: none; }
.doc__toc a:hover { text-decoration: underline; }
.doc__body { margin-top: var(--s-7, 2.5rem); }
.doc__body section { margin-top: var(--s-7, 2.5rem); scroll-margin-top: 90px; }
.doc__body h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); line-height: 1.25; color: var(--c-ink); }
.doc__body h3 { margin-top: var(--s-5); font-size: 1.0625rem; color: var(--c-ink); }
.doc__body p, .doc__body li { line-height: 1.7; color: var(--c-ink-2); }
.doc__body p { margin-top: var(--s-3); }
.doc__body ul { margin: var(--s-3) 0 0; padding-left: 1.25rem; list-style: disc; }
.doc__body li { margin-top: 6px; }
.doc__body a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 2px; }
.doc__body code { padding: 1px 6px; border-radius: 6px; background: var(--c-surface-2); font-size: 0.875em; }
.doc__table-wrap { margin-top: var(--s-4); overflow-x: auto; border: 1px solid var(--c-line); border-radius: 12px; }
.doc__table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-sm); }
.doc__table th, .doc__table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); line-height: 1.55; color: var(--c-ink-2); }
.doc__table th { background: var(--c-surface-2); color: var(--c-ink); font-weight: 600; }
.doc__table tr:last-child td { border-bottom: 0; }
.doc__other { margin-top: var(--s-7, 2.5rem); padding-top: var(--s-5); border-top: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-muted); }
@media (max-width: 640px) { .doc__toc ol { columns: 1; } }

.qm-legal { margin: var(--s-4) 0 0; }
.qm-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Booking the Load Confirmation Audit */
.tr-dialog:has(.tr-book) { width: min(680px, calc(100% - 2rem)); max-height: min(94vh, 880px); overflow-y: auto; }
.tr-book { --book-pad: clamp(1.25rem, 0.9rem + 1.8vw, 2rem); display: grid; gap: var(--s-5); padding: var(--book-pad) var(--book-pad) 0; text-align: left; }
.tr-book__head { display: flex; align-items: center; gap: var(--s-4); padding-right: 40px; }
.tr-book__head .tr-avatar { width: 52px; height: 52px; border-radius: 15px; }
.tr-book__head .qm-eyebrow { margin: 0 0 4px; }
.tr-book .tr-h2 { margin: 0; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem); line-height: 1.15; }
.tr-book__why { display: flex; gap: var(--s-3); padding: 14px 16px; border-radius: 16px; background: #f1f5f8; }
.tr-book__why svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--c-navy); }
.tr-book__why p { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-ink-2); }
.tr-book__why strong { color: var(--c-ink); }
.tr-book__promise { display: flex; align-items: center; gap: var(--s-2); margin: calc(var(--s-2) * -1) 0 0; font-size: var(--fs-sm); color: var(--c-muted); }
.tr-book__promise svg { flex: none; width: 16px; height: 16px; color: #a06a00; }
.tr-book__promise strong { color: var(--c-ink); }
.tr-book__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.tr-book__group legend { margin-bottom: var(--s-2); padding: 0; font-size: var(--fs-sm); font-weight: 700; }
.tr-book__methods { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tr-book__methods--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-book__method { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: 14px; border: 1.5px solid var(--c-line); border-radius: 16px; background: #fff; font: inherit; color: inherit; cursor: pointer; text-align: left; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.tr-book__method:hover { border-color: #d3d0c4; }
.tr-book__mi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-navy); transition: background 0.15s, color 0.15s; }
.tr-book__mi svg { width: 20px; height: 20px; }
.tr-book__mt { display: grid; gap: 2px; }
.tr-book__mt strong { font-size: var(--fs-sm); }
.tr-book__mt small { font-size: var(--fs-xs); line-height: 1.35; color: var(--c-muted); }
.tr-book__method[aria-pressed="true"], .tr-book__day[aria-pressed="true"], .tr-book__time[aria-pressed="true"] { border-color: var(--c-amber); background: #fff7df; box-shadow: 0 0 0 3px rgba(254, 178, 4, 0.22); }
.tr-book__method[aria-pressed="true"] .tr-book__mi { background: var(--c-navy); color: var(--c-amber); }
.tr-book__single { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: #f2faf5; font-size: var(--fs-sm); }
.tr-book__single svg { width: 18px; height: 18px; flex: none; color: #1f9d63; }
.tr-book__group--days { position: relative; }
.tr-book__nav { position: absolute; top: -36px; right: 0; display: flex; gap: var(--s-2); }
.tr-book__nav button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1.5px solid var(--c-line); border-radius: 50%; background: #fff; color: var(--c-navy); cursor: pointer; }
.tr-book__nav button:hover { border-color: #d3d0c4; background: var(--c-surface-2); }
.tr-book__nav svg { width: 16px; height: 16px; }
.tr-book__nav button:first-child svg { transform: rotate(90deg); }
.tr-book__nav button:last-child svg { transform: rotate(-90deg); }
.tr-book__days { display: flex; gap: var(--s-2); margin: 0 calc(var(--book-pad) * -1); padding: 8px var(--book-pad) 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--book-pad); scrollbar-width: none; }
.tr-book__days::-webkit-scrollbar { display: none; }
.tr-book__day { flex: none; display: grid; justify-items: center; gap: 1px; min-width: 78px; padding: 10px 10px 9px; border: 1.5px solid var(--c-line); border-radius: 16px; background: #fff; font: inherit; color: inherit; cursor: pointer; scroll-snap-align: start; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.tr-book__day small { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.tr-book__day strong { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; }
.tr-book__day span { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-book__day em { margin-top: 4px; font-size: 0.6875rem; font-style: normal; font-weight: 600; color: #1b7a47; }
.tr-book__day.is-full { border-style: dashed; background: #f6f5f0; cursor: not-allowed; }
.tr-book__day.is-full strong, .tr-book__day.is-full small, .tr-book__day.is-full span, .tr-book__day.is-full em { color: #9aa5ad; }
.tr-book__part p { margin: 0 0 var(--s-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.tr-book__part + .tr-book__part { margin-top: var(--s-4); }
.tr-book__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: var(--s-2); }
.tr-book__time { min-height: 46px; border: 1.5px solid var(--c-line); border-radius: 12px; background: #fff; font: inherit; font-weight: 600; color: inherit; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.tr-book__time:hover:not([disabled]) { border-color: #d3d0c4; }
.tr-book__time.is-taken { border-style: dashed; background: #f6f5f0; color: #9aa5ad; font-weight: 500; cursor: not-allowed; }
.tr-book__time s { text-decoration-thickness: 1.5px; }
.tr-book__legend { margin: var(--s-4) 0 0; font-size: var(--fs-xs); color: var(--c-muted); }
.tr-book__legend s { color: #7d8a94; }
.tr-book__empty { margin: 0; padding: 14px; border-radius: 12px; background: #fffaf0; font-size: var(--fs-sm); }
.tr-book__foot { position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin: 0 calc(var(--book-pad) * -1); padding: var(--s-4) var(--book-pad); border-top: 1px solid var(--c-line); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(6px); }
.tr-book__sum { display: grid; gap: 2px; min-width: 0; }
.tr-book__sum strong { font-size: var(--fs-base); }
.tr-book__sum small { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-book__sum--hint { font-size: var(--fs-sm); color: var(--c-muted); }
.tr-book__buttons { display: flex; flex: none; gap: var(--s-3); }
.tr-book .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.tr-audit { display: flex; align-items: center; gap: var(--s-4); width: 100%; margin-top: var(--s-5); padding: var(--s-4); border: 1px solid #f1dfae; border-radius: 16px; background: #fffaf0; }
.tr-audit.is-booked { border-color: #cfe8d9; background: #f2faf5; }
.tr-audit__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #a06a00; }
.tr-audit.is-booked .tr-audit__icon { color: #1f9d63; }
.tr-audit__icon svg { width: 20px; height: 20px; }
.tr-audit__text { flex: 1; min-width: 0; }
.tr-audit__text strong { display: block; }
.tr-audit__text span { display: block; font-size: var(--fs-sm); color: var(--c-muted); }
@media (max-width: 560px) {
  .tr-audit { flex-wrap: wrap; }
  .tr-audit .btn { width: 100%; }
  .tr-book__methods, .tr-book__methods--3 { grid-template-columns: 1fr; }
  .tr-book__method { flex-direction: row; align-items: center; padding: 12px 14px; }
  .tr-book__foot { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .tr-book__buttons .btn { flex: 1; justify-content: center; padding-inline: var(--s-3); }
}

/* The final quotation: review, sign, pay */
.tr-inv { margin-top: var(--s-5); text-align: left; }
.tr-inv .tr-h3 { margin: var(--s-6) 0 var(--s-3); }
.tr-inv__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin: var(--s-5) 0 var(--s-4); padding: 0; list-style: none; }
.tr-inv__steps li { display: flex; align-items: center; gap: var(--s-2); padding: 10px 12px; border: 1.5px solid var(--c-line); border-radius: 14px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); }
.tr-inv__steps li span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c-surface-2); font-size: var(--fs-xs); font-weight: 700; }
.tr-inv__steps li span svg { width: 13px; height: 13px; }
.tr-inv__steps li.is-current { border-color: var(--c-amber); background: #fff7df; color: var(--c-ink); }
.tr-inv__steps li.is-current span { background: var(--c-navy); color: var(--c-amber); }
.tr-inv__steps li.is-done { border-color: #cfe8d9; background: #f2faf5; color: #1b7a47; }
.tr-inv__steps li.is-done span { background: #1f9d63; color: #fff; }
.tr-inv__notice { display: flex; gap: var(--s-3); margin-top: var(--s-4); padding: 14px 16px; border-radius: 16px; background: #f1f5f8; }
.tr-inv__notice svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--c-navy); }
.tr-inv__notice p { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-ink-2); }
.tr-chg { margin-bottom: var(--s-4); border: 1px solid var(--c-line); border-radius: 18px; background: #fff; overflow: hidden; }
.tr-chg__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px var(--s-3); padding: 12px 18px; border-bottom: 1px solid var(--c-line); background: #faf9f5; }
.tr-chg__top > span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.tr-chg__delta { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.tr-chg__delta small { font-size: var(--fs-xs); font-weight: 600; opacity: 0.8; }
.tr-chg__delta--up { background: #fff1d6; color: #8a5a00; }
.tr-chg__delta--down { background: #e2f4ea; color: #17724a; }
.tr-chg__prices { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-3); padding: 18px; }
.tr-chg__prices small { display: block; margin-bottom: 2px; font-size: var(--fs-xs); color: var(--c-muted); }
.tr-chg__prices s { font-family: var(--f-display); font-size: var(--fs-lg, 1.15rem); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--c-muted); text-decoration-thickness: 1.5px; }
.tr-chg__prices strong { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tr-chg__arrow svg { width: 22px; height: 22px; color: var(--c-muted); }
.tr-chg__why { margin: 0; padding: 14px 18px 16px; border-top: 1px solid var(--c-line); }
.tr-chg__why figcaption { margin-bottom: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-muted); }
.tr-chg__why blockquote { margin: 0; font-size: var(--fs-md, 1rem); line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 440px) { .tr-chg__prices { grid-template-columns: 1fr; gap: 6px; } .tr-chg__arrow { transform: rotate(90deg); width: 22px; } }
.tr-inv__table { overflow-x: auto; border: 1px solid var(--c-line); border-radius: 16px; }
.tr-inv__table table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tr-inv__table th, .tr-inv__table td { padding: 11px 16px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.tr-inv__table thead th { background: var(--c-surface-2); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.tr-inv__table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.tr-inv__table td small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--c-muted); }
.tr-inv__table tfoot td { border-bottom: 0; }
.tr-inv__table tr.was td { color: var(--c-muted); }
.tr-inv__table tr.total td { border-top: 2px solid var(--c-navy); background: var(--c-surface-2); font-family: var(--f-display); font-size: var(--fs-md); font-weight: 800; }
.tr-inv__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border-radius: 16px; background: var(--c-line); }
.tr-inv__specs div { padding: 11px 16px; background: #fff; }
.tr-inv__specs dt { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-inv__specs dd { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 600; overflow-wrap: anywhere; }
.tr-inv__modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.tr-inv__modes button { display: grid; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--c-line); border-radius: 16px; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.tr-inv__modes button small { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-inv__modes button[aria-pressed="true"] { border-color: var(--c-amber); background: #fff7df; box-shadow: 0 0 0 3px rgba(254, 178, 4, 0.22); }
.tr-inv__calc { margin-top: var(--s-4); }
.tr-inv__chosen { margin: 0 0 var(--s-3); font-size: var(--fs-sm); }
.tr-inv__slider { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); font-size: var(--fs-sm); }
.tr-inv__slider input[type="range"] { width: 100%; height: 28px; accent-color: var(--c-navy); cursor: pointer; }
.tr-inv__range { display: flex; justify-content: space-between; }
.tr-inv__range small { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-inv__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 0 0 var(--s-3); overflow: hidden; border-radius: 16px; background: var(--c-line); }
.tr-inv__stats div { padding: 12px 16px; background: #faf9f6; }
.tr-inv__stats dt { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-inv__stats dd { margin: 2px 0 0; font-family: var(--f-display); font-size: var(--fs-md); font-weight: 800; font-variant-numeric: tabular-nums; }
.tr-inv__sign, .tr-inv__pay { display: grid; gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--c-line); }
.tr-inv__sign .tr-h3, .tr-inv__pay .tr-h3 { margin: 0; }
.tr-inv__sign p, .tr-inv__pay p { margin: 0; }
.tr-inv__dl { justify-self: start; }
.tr-inv__dl svg { width: 16px; height: 16px; }
.tr-inv__field { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 600; }
.tr-inv__field input { min-height: 48px; padding: 0 14px; border: 1.5px solid var(--c-line); border-radius: 12px; background: #fff; font: inherit; font-size: 1rem; font-weight: 500; }
.tr-inv__field input:focus { border-color: var(--c-navy); outline: 0; box-shadow: 0 0 0 3px rgba(4, 36, 57, 0.12); }
.tr-sig { position: relative; height: 170px; border: 1.5px dashed #c9c7bb; border-radius: 14px; background: #fff; }
.tr-sig canvas { display: block; width: 100%; height: 100%; border-radius: 14px; touch-action: none; cursor: crosshair; }
.tr-sig__hint { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-sm); font-weight: 500; color: #9aa5ad; pointer-events: none; }
.tr-sig__clear { position: absolute; top: 8px; right: 8px; padding: 4px 12px; border: 0; border-radius: 999px; background: var(--c-surface-2); font: inherit; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; }
.tr-inv__agree { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-sm); line-height: 1.5; cursor: pointer; }
.tr-inv__agree input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-navy); }
.tr-inv__sign .btn { justify-self: start; }
.tr-inv__sign .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.tr-inv__signed { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-4) 0 0; }
.tr-inv__signed svg { flex: none; width: 16px; height: 16px; color: #1f9d63; }
.tr-inv__due { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); padding: 14px 16px; border-radius: 16px; background: var(--c-navy); color: #fff; }
.tr-inv__due span { font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
.tr-inv__due strong { font-family: var(--f-display); font-size: 1.6rem; font-variant-numeric: tabular-nums; color: var(--c-amber); }
.tr-inv__bank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border-radius: 16px; background: var(--c-line); }
.tr-inv__bank div { padding: 12px 16px; background: #fff; }
.tr-inv__bank dt { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-inv__bank dd { display: flex; align-items: center; gap: var(--s-2); margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.tr-inv__bank .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.02em; }
.tr-inv__copy { margin-left: auto; padding: 3px 10px; border: 0; border-radius: 999px; background: var(--c-surface-2); font: inherit; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; }
.tr-inv__got, .tr-inv__done { display: flex; align-items: flex-start; gap: var(--s-3); padding: 14px 16px; border-radius: 16px; background: #f2faf5; font-size: var(--fs-sm); }
.tr-inv__got svg, .tr-inv__done svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #1f9d63; }
.tr-inv__done { margin-top: var(--s-5); }
.tr-inv__signedby { display: flex; align-items: flex-start; gap: var(--s-3); margin: 0; padding: 12px 14px; border-radius: 14px; background: #f2faf5; font-size: var(--fs-sm); }
.tr-inv__signedby svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #1f9d63; }
.tr-inv__signedby strong { display: block; }
/* Finished: confirm the work and rate it */
.tr-fin__choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.tr-fin__pick { display: flex; align-items: flex-start; gap: var(--s-3); padding: 16px; border: 1.5px solid var(--c-line); border-radius: 16px; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.tr-fin__pick:hover { border-color: var(--c-amber); box-shadow: 0 0 0 3px rgba(254, 178, 4, 0.18); }
.tr-fin__pick svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: #b06a00; }
.tr-fin__pick--yes svg { color: #1f9d63; }
.tr-fin__pick strong { display: block; font-size: var(--fs-md, 1rem); }
.tr-fin__pick small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--c-muted); }
.tr-fin__form { display: grid; gap: var(--s-4); }
.tr-fin__q { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.tr-fin__q > span { font-weight: 600; }
.tr-fin__label { font-weight: 600; font-size: var(--fs-sm); }
.tr-fin__label span { font-weight: 400; color: var(--c-muted); }
.tr-fin__form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: 14px; background: #fff; font: inherit; resize: vertical; }
.tr-fin__form textarea:focus { outline: none; border-color: var(--c-amber); box-shadow: 0 0 0 3px rgba(254, 178, 4, 0.22); }
.tr-fin__yn { display: inline-flex; gap: 6px; }
.tr-fin__yn button { min-width: 64px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--c-line); border-radius: 999px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tr-fin__yn button[aria-pressed="true"] { border-color: var(--c-amber); background: #fff7df; box-shadow: 0 0 0 3px rgba(254, 178, 4, 0.22); }
.tr-fin__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.tr-fin__done { display: grid; gap: var(--s-3); }
.tr-fin__facts { list-style: none; display: grid; gap: 6px; padding: 0; font-size: var(--fs-sm); }
.tr-fin__facts li { display: flex; align-items: center; gap: 8px; }
.tr-fin__facts svg { width: 18px; height: 18px; color: #1f9d63; }
.tr-fin__done blockquote { margin: 0; padding: 12px 16px; border-left: 4px solid var(--c-amber); border-radius: 6px; background: #fff8e6; font-size: var(--fs-sm); }
.tr-stars { display: inline-flex; gap: 4px; }
.tr-star { padding: 0; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; color: #d6d4cb; cursor: pointer; transition: transform 0.12s, color 0.12s; }
.tr-star.is-on { color: var(--c-amber); }
.tr-star:hover { transform: scale(1.12); }
.tr-stars--static .tr-star { width: auto; height: auto; font-size: 28px; cursor: default; pointer-events: none; }
@media (max-width: 640px) { .tr-fin__choice { grid-template-columns: 1fr; } .tr-star { width: 48px; } }
@media (prefers-reduced-motion: reduce) { .tr-star { transition: none; } .tr-star:hover { transform: none; } }

.tr-inv__done strong { display: block; }
.tr-inv__done span { color: var(--c-ink-2); }
.tr-inv__upload { display: flex; align-items: center; gap: var(--s-4); padding: 16px; border: 1.5px dashed #c9c7bb; border-radius: 16px; background: #fff; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.tr-inv__upload:hover { border-color: var(--c-amber); background: #fffaf0; }
.tr-inv__upload.is-busy { opacity: 0.6; pointer-events: none; }
.tr-inv__upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tr-inv__upico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-navy); }
.tr-inv__upico svg { width: 20px; height: 20px; }
.tr-inv__upload strong { display: block; font-size: var(--fs-sm); }
.tr-inv__upload > span:last-child span { display: block; font-size: var(--fs-xs); color: var(--c-muted); }
@media (max-width: 640px) {
  .tr-inv__steps, .tr-inv__specs, .tr-inv__bank { grid-template-columns: 1fr; }
  .tr-inv__modes { grid-template-columns: 1fr; }
  .tr-inv__due { flex-direction: column; gap: 2px; }
  .tr-inv__table th, .tr-inv__table td { padding: 10px 12px; }
}

.tr-inv__about { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.tr-inv__about .tr-h3 { margin: 0; }
.tr-inv__about p { margin: 0; }
.tr-inv__notice--care { margin-top: 0; background: #fff8e6; }
.tr-inv__notice--care svg { color: #a06a00; }
.tr-inv__who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border-radius: 16px; background: var(--c-line); }
.tr-inv__who div { display: grid; align-content: start; gap: 4px; padding: 12px 16px; background: #fff; }
.tr-inv__who dt { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-inv__who dd { display: grid; justify-items: start; gap: 4px; margin: 0; font-size: var(--fs-sm); font-weight: 600; overflow-wrap: anywhere; }
.tr-inv__who .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.02em; }
.tr-inv__acts { display: flex; gap: var(--s-2); }
.tr-inv__acts a { padding: 3px 12px; border-radius: 999px; background: var(--c-surface-2); font-size: var(--fs-xs); font-weight: 700; color: var(--c-ink); text-decoration: none; }
.tr-inv__acts a:hover { background: #e4e2d8; }
.tr-inv__link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: #0b5ea8; text-decoration: underline; text-underline-offset: 2px; }
.tr-inv__link svg { width: 12px; height: 12px; }
.tr-inv__work { display: grid; gap: var(--s-2); }
.tr-inv__work > span { font-size: var(--fs-sm); font-weight: 700; }
.tr-inv__work > div { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tr-inv__work .tr-inv__link { padding: 8px 14px; border: 1.5px solid var(--c-line); border-radius: 999px; background: #fff; font-size: var(--fs-sm); text-decoration: none; color: var(--c-ink); }
.tr-inv__work .tr-inv__link:hover { border-color: #d3d0c4; background: var(--c-surface-2); }
.tr-inv__checklist { padding: 14px 16px; border-radius: 16px; background: #f2faf5; font-size: var(--fs-sm); }
.tr-inv__checklist ul { margin: 8px 0 0; padding-left: 20px; list-style: disc; display: grid; gap: 6px; color: var(--c-ink-2); }
@media (max-width: 640px) { .tr-inv__who { grid-template-columns: 1fr; } }

.tr-inv__tip { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-inv__tip strong { color: #1b7a47; }
.tr-inv__identity { display: grid; gap: var(--s-4); }
.tr-inv__identity[hidden] { display: none; }
.tr-inv__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (max-width: 640px) { .tr-inv__pair { grid-template-columns: 1fr; } }
.tr-sig__hint[hidden] { display: none; }

/* After choosing an installer: the journey, what to do next, the installer beside it all */
.tr-steps { grid-template-columns: repeat(var(--n, 6), 1fr); }
.tr-now { display: flex; align-items: center; gap: var(--s-4); margin: 0 0 var(--s-5); padding: 14px 18px; border: 1.5px solid #e6e4dd; border-radius: 18px; background: #fff; }
.tr-now__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-navy); }
.tr-now__ic svg { width: 20px; height: 20px; }
.tr-now__t { flex: 1; min-width: 0; }
.tr-now__t strong { display: block; font-size: var(--fs-base); }
.tr-now__t span { display: block; font-size: var(--fs-sm); color: var(--c-ink-2); }
.tr-now .btn { flex: none; }
.tr-now--action { border-color: var(--c-amber); background: #fff8e4; }
.tr-now--action .tr-now__ic { background: var(--c-navy); color: var(--c-amber); }
.tr-now--ok { border-color: #cfe8d9; background: #f2faf5; }
.tr-now--ok .tr-now__ic { background: #1f9d63; color: #fff; }
.tr-ph { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-5); align-items: start; }
.tr-ph__main { display: grid; gap: var(--s-5); min-width: 0; text-align: left; }
.tr-ph__main > .tr-small { margin: 0; }
.tr-side { position: sticky; top: 88px; display: grid; gap: var(--s-3); }
.tr-side__card { padding: var(--s-4); border: 1px solid #e6e4dd; border-radius: 22px; background: #fff; }
.tr-side__rows { display: grid; gap: 1px; margin: var(--s-4) 0 0; overflow: hidden; border-radius: 14px; background: var(--c-line); }
.tr-side__rows div { display: flex; justify-content: space-between; gap: var(--s-3); padding: 10px 12px; background: #faf9f6; font-size: var(--fs-sm); }
.tr-side__rows dt { color: var(--c-muted); }
.tr-side__rows dd { margin: 0; font-weight: 700; text-align: right; }
.tr-side__rows dd small { display: block; font-weight: 500; color: var(--c-muted); }
.tr-side__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.tr-side__acts .btn { flex: 1; justify-content: center; }
.tr-side__acts svg { width: 16px; height: 16px; }
.tr-side__check { display: grid; gap: var(--s-3); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--c-line); }
.tr-side__h { margin: 0; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.tr-side__page { display: flex; align-items: center; gap: var(--s-3); padding: 12px 14px; border-radius: 14px; background: var(--c-navy); color: #fff; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.tr-side__page:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -16px rgba(4, 36, 57, 0.9); }
.tr-side__page:focus-visible, .tr-side__chip:focus-visible, .tr-side__verify:focus-visible { outline: 2px solid var(--c-amber-2); outline-offset: 2px; }
.tr-side__page > svg:first-child { flex: none; width: 22px; height: 22px; color: var(--c-amber); }
.tr-side__page > svg:last-child { flex: none; width: 16px; height: 16px; margin-left: auto; color: var(--c-amber); }
.tr-side__page span { display: grid; min-width: 0; }
.tr-side__page strong { font-size: var(--fs-sm); }
.tr-side__page small { font-size: var(--fs-xs); color: var(--c-on-dark-muted); }
.tr-side__reg { display: grid; gap: 1px; margin: 0; overflow: hidden; border-radius: 14px; background: var(--c-line); }
.tr-side__reg div { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: var(--s-2); padding: 9px 12px; background: #faf9f6; font-size: var(--fs-sm); }
.tr-side__reg dt { color: var(--c-muted); }
.tr-side__reg dd { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-width: 0; margin: 0; font-weight: 700; }
.tr-side__reg .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-side__verify { display: inline-flex; flex: none; align-items: center; gap: 3px; font-size: var(--fs-xs); font-weight: 700; color: #8a5a00; text-decoration: none; }
.tr-side__verify:hover { text-decoration: underline; }
.tr-side__verify svg { width: 12px; height: 12px; }
.tr-side__links { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-side__chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 10px; border: 1px solid #e6e4dd; border-radius: 999px; background: #fff; font-size: var(--fs-xs); font-weight: 700; color: var(--c-ink); text-decoration: none; }
.tr-side__chip:hover { border-color: var(--c-ink-2); }
.tr-side__chip svg { flex: none; width: 14px; height: 14px; color: var(--c-muted); }
.tr-side__alert { display: flex; align-items: center; gap: var(--s-3); padding: 12px 14px; border: 2px solid #f0c24b; border-radius: 18px; background: #fffbea; color: var(--c-ink); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.tr-side__alert:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -14px rgba(160, 106, 0, 0.7); }
.tr-side__alert > svg:first-child { flex: none; width: 24px; height: 24px; color: #a06a00; }
.tr-side__alert > svg:last-child { flex: none; width: 16px; height: 16px; margin-left: auto; }
.tr-side__alert span { display: grid; font-size: var(--fs-sm); }
.tr-side__alert small { color: var(--c-muted); }

/* Section cards: the four things to do are numbered because they happen in that order */
.tr-sec { position: relative; padding: clamp(1.1rem, 0.9rem + 1.2vw, 1.75rem); border: 1px solid #e6e4dd; border-radius: 22px; background: #fff; scroll-margin-top: 88px; }
.tr-sec__h { display: flex; align-items: flex-start; gap: var(--s-3); margin-bottom: var(--s-4); }
.tr-sec__h > div { flex: 1; min-width: 0; }
.tr-sec__h h3 { margin: 0; font-family: var(--f-display); font-size: 1.125rem; line-height: 1.25; }
.tr-sec__h p { margin: 4px 0 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-ink-2); }
.tr-sec__n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c-navy); color: var(--c-amber); font-size: var(--fs-sm); font-weight: 800; }
.tr-sec__n svg { width: 14px; height: 14px; }
.tr-sec__chip { flex: none; padding: 3px 12px; border-radius: 999px; background: #e6f4ec; font-size: var(--fs-xs); font-weight: 700; color: #1b7a47; }
.tr-sec.is-current { border-color: var(--c-amber); box-shadow: 0 0 0 4px rgba(254, 178, 4, 0.16); }
.tr-sec.is-done .tr-sec__n { background: #1f9d63; color: #fff; }
.tr-sec .tr-inv__calc { margin-top: var(--s-4); }
.tr-sec .tr-inv__sign, .tr-sec .tr-inv__pay { margin-top: 0; padding-top: 0; border-top: 0; }
.tr-sec .tr-inv__done { margin-top: 0; }
.tr-after { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.tr-after li { display: flex; gap: var(--s-3); align-items: flex-start; }
.tr-after li > span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: #fff6dd; color: #a06a00; }
.tr-after li > span svg { width: 18px; height: 18px; }
.tr-after strong { display: block; font-size: var(--fs-sm); }
.tr-after small { display: block; font-size: var(--fs-sm); line-height: 1.5; color: var(--c-ink-2); }
.tr-sec .tr-audit { margin-top: 0; }

/* Before the final quotation: the free Load Confirmation Audit is the one thing to do.
   Left: what the homeowner told us (what gets confirmed). Right: how the price can move. */
.tr-step { position: relative; overflow: hidden; padding: 0; border: 2px solid var(--c-amber); scroll-margin-top: 88px; }
.tr-step.is-booked { border-color: #9fd3b6; }
.tr-step > :not(.tr-step__grid) { margin-left: clamp(1.1rem, 0.8rem + 1.4vw, 2rem); margin-right: clamp(1.1rem, 0.8rem + 1.4vw, 2rem); }
.tr-step__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); margin-top: clamp(1.1rem, 0.8rem + 1.4vw, 1.75rem); }
.tr-step__eyebrow { margin: 0; color: #a06a00; }
.tr-step.is-booked .tr-step__eyebrow { color: #1b7a47; }
.tr-step__free { padding: 4px 12px; border: 1.5px dashed #1f9d63; border-radius: 999px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #1b7a47; transform: rotate(-2deg); }
.tr-step .tr-h2 { margin-top: var(--s-3); margin-bottom: 0; font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); line-height: 1.1; }
.tr-step__lead { max-width: 52ch; margin-top: var(--s-3); margin-bottom: 0; font-size: var(--fs-base); line-height: 1.55; color: var(--c-ink-2); }
.tr-step__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-5); margin-bottom: var(--s-5); }
.tr-step__act > span { font-size: var(--fs-sm); line-height: 1.45; color: var(--c-muted); }
/* Delivery day on the tracking page (pay on delivery). */
.tr-dl__ask { margin-top: var(--s-4); padding: 16px; border-radius: 16px; background: #fff8e6; }
.tr-dl__ask strong { display: block; margin-bottom: 12px; }
.tr-dl__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tr-dl__ask .tr-dl__acts { margin-top: 0; }
.tr-dl__acts .btn svg { width: 16px; height: 16px; margin-right: 6px; }
.tr-dl__form { margin-top: var(--s-4); }
.tr-dl__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.tr-dl__fields label { display: grid; gap: 6px; font-size: var(--fs-xs); font-weight: 700; }
.tr-dl__fields input, .tr-dl__fields select { min-height: 46px; padding: 0 12px; border: 1px solid #d6dbe0; border-radius: 12px; background: #fff; font: inherit; font-weight: 500; color: inherit; }
.tr-dl__err { margin: 10px 0 0; color: #b42318; font-size: var(--fs-sm); font-weight: 600; }
.tr-dl__change { margin-top: var(--s-4); }
.tr-now__acts { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
#tr-delivery .tr-inv__checklist { margin-top: var(--s-4); }
.tr-note { margin: var(--s-3) 0 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-ink-2); }
/* The quotation, checks and contract fold away once the delivery day is booked. */
.tr-fold { margin-top: var(--s-5); border: 1px solid #e3e7eb; border-radius: 20px; background: #fff; }
.tr-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; list-style: none; cursor: pointer; }
.tr-fold > summary::-webkit-details-marker { display: none; }
.tr-fold > summary strong { display: block; font-size: var(--fs-base); }
.tr-fold > summary small { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--c-muted); }
.tr-fold > summary svg { flex: none; width: 20px; height: 20px; transform: rotate(90deg); transition: transform .2s; }
.tr-fold[open] > summary svg { transform: rotate(-90deg); }
.tr-fold[open] { padding: 0 12px 12px; background: transparent; border-color: transparent; }
.tr-fold[open] > summary { margin: 0 -12px 8px; border: 1px solid #e3e7eb; border-radius: 20px; background: #fff; }
/* An odd last cell spans the row, so the grid never shows an empty grey box. */
.tr-inv__who > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tr-dl__pay { margin: var(--s-4) 0 0; padding: 14px 16px; border: 1px solid #e3e7eb; border-radius: 16px; }
.tr-dl__pay .tr-dl__payh { margin-bottom: 8px; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5b6770; }
.tr-dl__pay div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px solid #eef1f3; }
.tr-dl__pay div:first-of-type { border-top: 0; }
.tr-dl__pay dd { margin: 0; font-weight: 700; white-space: nowrap; }
@media (max-width: 520px) { .tr-dl__fields { grid-template-columns: 1fr; } }
.tr-step__when { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); margin-bottom: var(--s-5); padding: 14px 16px; border-radius: 16px; background: #f2faf5; }
.tr-step__when > svg { flex: none; width: 22px; height: 22px; color: #1f9d63; }
.tr-step__when > div { flex: 1; min-width: 0; }
.tr-step__when strong { display: block; font-size: 1.0625rem; }
.tr-step__when span { display: block; font-size: var(--fs-sm); color: var(--c-ink-2); }
.tr-step__wait { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); margin-bottom: var(--s-5); padding: 14px 16px; border-radius: 16px; background: #f1f5f8; font-size: var(--fs-sm); }
.tr-step__wait svg { flex: none; width: 20px; height: 20px; color: var(--c-navy); }
.tr-step__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-top: 1px solid var(--c-line); background: #faf9f6; }
.tr-step__grid h3 { margin: 0; font-family: var(--f-display); font-size: 1rem; line-height: 1.3; }
.tr-told, .tr-move { padding: clamp(1.1rem, 0.8rem + 1.4vw, 1.75rem); }
.tr-move { border-left: 1px solid var(--c-line); }
.tr-told__sub { margin: 4px 0 var(--s-3); font-size: var(--fs-sm); color: var(--c-muted); }
.tr-told__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.tr-told__list li { display: grid; padding: 8px 10px; border: 1px solid #e6e4dd; border-radius: 12px; background: #fff; }
.tr-told__list b { font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.tr-told__list span { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-told__list li.is-extra { display: none; }
.tr-told__list.is-all li.is-extra { display: grid; }
.tr-told__list.is-all .tr-told__more { display: none; }
.tr-told__more { padding: 0 !important; border-style: dashed !important; background: transparent !important; }
.tr-told__more button { display: grid; width: 100%; height: 100%; padding: 8px 10px; border: 0; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.tr-told__more button:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 2px; border-radius: 12px; }
.tr-told__none { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-2); }
.tr-told__extra { display: grid; gap: 6px; margin: var(--s-3) 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--c-ink-2); }
.tr-told__extra li { display: flex; align-items: center; gap: var(--s-2); }
.tr-told__extra svg { flex: none; width: 16px; height: 16px; color: #a06a00; }
.tr-told__tip { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: var(--c-muted); }
.tr-move__now { display: grid; margin: var(--s-3) 0; padding: 12px 14px; border-radius: 14px; background: var(--c-navy); color: #fff; }
.tr-move__now small { font-size: var(--fs-xs); color: var(--c-on-dark-muted); }
.tr-move__now strong { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -0.01em; }
.tr-move__ways { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tr-move__ways li { display: flex; align-items: center; gap: var(--s-3); }
.tr-move__ways li > span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; }
.tr-move__ways li > span svg { width: 14px; height: 14px; }
.tr-move__ways .is-same > span { background: #e6f4ec; color: #1b7a47; }
.tr-move__ways .is-up > span { background: #fff1d6; color: #a06a00; }
.tr-move__ways .is-up svg { transform: rotate(-90deg); }
.tr-move__ways .is-down > span { background: #e7eef4; color: var(--c-navy); }
.tr-move__ways .is-down svg { transform: rotate(90deg); }
.tr-move__ways b { display: block; font-size: var(--fs-sm); }
.tr-move__ways small { display: block; font-size: var(--fs-xs); color: var(--c-muted); }
.tr-move__note { display: flex; gap: var(--s-2); margin: var(--s-4) 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--c-ink-2); }
.tr-move__note svg { flex: none; width: 16px; height: 16px; color: #1f9d63; }
.tr-chose { display: flex; align-items: flex-start; gap: var(--s-2); margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--c-ink-2); }
.tr-chose svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #1f9d63; }
.tr-later { border: 1px solid #e6e4dd; border-radius: 18px; background: #fff; }
.tr-later summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.tr-later summary::-webkit-details-marker { display: none; }
.tr-later summary svg { width: 18px; height: 18px; color: var(--c-muted); transition: transform 0.2s; }
.tr-later[open] summary svg { transform: rotate(180deg); }
.tr-later summary:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 2px; border-radius: 18px; }
.tr-later__steps { display: grid; gap: var(--s-3); margin: 0; padding: 0 18px 18px 40px; font-size: var(--fs-sm); }
.tr-later__steps li::marker { font-weight: 800; color: #a06a00; }
.tr-later__steps b { display: block; }
.tr-later__steps small { display: block; font-size: var(--fs-sm); color: var(--c-ink-2); }
@media (max-width: 900px) {
  .tr-ph--audit .tr-side { order: 0; }
}
@media (max-width: 760px) {
  .tr-step__grid { grid-template-columns: 1fr; }
  .tr-move { border-left: 0; border-top: 1px solid var(--c-line); }
  .tr-step__act .btn { width: 100%; justify-content: center; }
  .tr-step__act > span br { display: none; }
  .tr-step__when { flex-wrap: wrap; }
  .tr-step__when > div { flex-basis: calc(100% - 40px); }
  .tr-step__when .btn { width: 100%; justify-content: center; }
}
@media (max-width: 380px) { .tr-told__list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tr-later summary svg { transition: none; } }

/* The quotation, as a document */
.tr-paper { overflow: hidden; border: 1px solid #d9d6c9; border-radius: 22px; background: #fffefb; box-shadow: 0 28px 40px -34px rgba(4, 36, 57, 0.55); scroll-margin-top: 88px; }
.tr-paper__top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); padding: 18px clamp(1.1rem, 0.9rem + 1.2vw, 1.75rem); background: var(--c-navy); color: #fff; }
.tr-paper__top small { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-amber); }
.tr-paper__top strong { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.2; }
.tr-paper__ref { display: grid; gap: 2px; text-align: right; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: var(--fs-xs); color: var(--c-on-dark-muted); }
.tr-paper__body { padding: clamp(1rem, 0.8rem + 1vw, 1.5rem) clamp(1.1rem, 0.9rem + 1.2vw, 1.75rem) clamp(1.1rem, 0.9rem + 1.2vw, 1.75rem); }
.tr-paper .tr-inv__table { border: 0; border-radius: 0; }
.tr-paper .tr-inv__table th, .tr-paper .tr-inv__table td { padding-inline: 4px; }
.tr-paper .tr-inv__table thead th { background: transparent; border-bottom: 2px solid var(--c-navy); }
.tr-paper .tr-inv__table tr.total td { background: transparent; border-top: 3px double var(--c-navy); font-size: 1.25rem; }

/* The caution card: an amber tab peeks over its top edge so the checks are not missed */
.tr-caution { position: relative; margin-top: 12px; padding: clamp(1.9rem, 1.6rem + 1vw, 2.2rem) clamp(1.1rem, 0.9rem + 1.2vw, 1.75rem) clamp(1.1rem, 0.9rem + 1.2vw, 1.75rem); border: 2px solid #f0c24b; border-radius: 22px; background: #fffbea; scroll-margin-top: 88px; }
.tr-caution__tab { position: absolute; top: -15px; left: clamp(1rem, 0.8rem + 1vw, 1.5rem); display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 10px; border-radius: 999px; background: #f2a600; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #2b1b00; box-shadow: 0 8px 16px -8px rgba(160, 106, 0, 0.8); }
.tr-caution__tab svg { width: 18px; height: 18px; }
.tr-caution__tab::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid rgba(242, 166, 0, 0.55); opacity: 0; animation: tr-peek 2.8s ease-out 1s 3; }
@keyframes tr-peek { 0% { opacity: 0.9; transform: scale(0.96); } 100% { opacity: 0; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .tr-caution__tab::after { animation: none; } }
.tr-caution .tr-sec__n { background: #f2a600; color: #2b1b00; }
.tr-caution .tr-inv__who div, .tr-caution .tr-inv__work .tr-inv__link { background: #fff; }
.tr-inv__recheck { display: flex; align-items: flex-start; gap: var(--s-3); padding: 12px 14px; border: 2px solid #f0c24b; border-radius: 14px; background: #fffbea; font-size: var(--fs-sm); color: var(--c-ink); text-decoration: none; }
.tr-inv__recheck svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #a06a00; }

@media (max-width: 900px) {
  .tr-ph { grid-template-columns: 1fr; }
  .tr-side { position: static; order: -1; }
  .tr-ph--day .tr-side { order: 1; }
  .tr-side__rows { display: none; }
  .tr-side__acts { margin-top: var(--s-3); }
}
@media (max-width: 560px) {
  .tr-now { flex-wrap: wrap; }
  .tr-now .btn { width: 100%; justify-content: center; }
  .tr-paper__top { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
  .tr-paper__ref { text-align: left; }
}

.tr-side .tr-who > div strong, .tr-side .tr-who > div span { display: block; }
.tr-side .tr-who > div span { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-side .tr-who { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.tr-side .tr-who .tr-avatar { flex: none; width: 48px; height: 48px; border-radius: 14px; }
.tr-side .tr-who > div { min-width: 0; }

/* Quote form: the all-in-one route (unit picker and the capacity check) */
.qm-units { display: grid; gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.qm-unit {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 22px; align-items: center; gap: 14px; width: 100%;
  padding: 12px 16px 12px 12px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface);
  font: inherit; text-align: left; color: var(--c-ink); cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.qm-unit:hover { border-color: #e2c26a; background: var(--qa-hover, #fffcf3); }
.qm-unit.is-selected { border-color: var(--c-amber); background: var(--qa-selected, #fff8e4); box-shadow: 0 0 0 1px var(--c-amber) inset; }
.qm-unit__media { display: grid; place-items: center; width: 76px; height: 76px; overflow: hidden; border-radius: 12px; background: var(--c-surface-2); color: var(--c-muted); }
.qm-unit__media img { width: 100%; height: 100%; object-fit: cover; }
.qm-unit__media svg { width: 30px; height: 30px; }
.qm-unit__body { display: grid; gap: 2px; min-width: 0; }
.qm-unit__brand { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.qm-unit__body strong { font-size: var(--fs-base); line-height: 1.25; }
.qm-unit__spec { font-size: var(--fs-sm); color: var(--c-ink-2); }
.qm-unit__price { font-size: var(--fs-sm); font-weight: 600; color: #8a5a00; }
.qm-unit__price small { font-weight: 400; color: var(--c-ink-2, #5b5b5b); }
.qm-unit__blurb { font-size: var(--fs-xs); line-height: 1.45; color: var(--c-muted); }
.qm-unit__note { display: flex; gap: 8px; align-items: flex-start; margin: var(--s-4) 0 0; font-size: var(--fs-xs); color: var(--c-muted); }
.qm-unit__note svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.qm-alert { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 var(--s-4); padding: 14px 16px; border: 1px solid #e0a43a; border-left-width: 5px; border-radius: var(--r-md); background: #fff6e0; color: #4a3200; }
.qm-alert svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: #b36b00; }
.qm-alert strong { display: block; font-size: var(--fs-md, 1rem); color: #3a2600; }
.qm-alert p { margin: 4px 0 0; font-size: var(--fs-sm); line-height: 1.45; }
.qm-unit__skip { margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--c-muted); }

.qm-ucheck { margin: 0 0 var(--s-5); padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
.qm-ucheck.is-ok { border-color: #8fd0a8; background: #f4fbf6; }
.qm-ucheck.is-over { border-color: #f0b4a4; background: #fff6f3; }
.qm-ucheck__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.qm-ucheck__unit { display: flex; align-items: center; gap: 12px; min-width: 0; }
.qm-ucheck__unit > div { display: grid; min-width: 0; }
.qm-ucheck__unit strong { font-size: var(--fs-sm); line-height: 1.3; }
.qm-ucheck__unit span:not(.qm-ucheck__ico) { font-size: var(--fs-xs); color: var(--c-muted); }
.qm-ucheck__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 10px; background: var(--c-surface-2); color: var(--c-muted); }
.qm-ucheck__ico img { width: 100%; height: 100%; object-fit: cover; }
.qm-ucheck__ico svg { width: 22px; height: 22px; }
.qm-ucheck__hint { margin: 0; font-size: var(--fs-sm); color: var(--c-muted); }
.qm-meter { margin-top: 10px; }
.qm-meter__top { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); color: var(--c-ink-2); }
.qm-meter__top b { font-weight: 700; font-variant-numeric: tabular-nums; }
.qm-meter__bar { height: 8px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: rgba(4, 36, 57, 0.1); }
.qm-meter__bar i { display: block; height: 100%; border-radius: 999px; background: #2e9b62; transition: width 0.25s var(--ease); }
.qm-meter.is-over .qm-meter__bar i { background: #d9512c; }
.qm-meter.is-over .qm-meter__top b { color: #b53a1b; }
.qm-ucheck__ok, .qm-ucheck__no > p:first-child { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: var(--fs-sm); line-height: 1.5; }
.qm-ucheck__ok svg, .qm-ucheck__no svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.qm-ucheck__ok svg { color: #2e9b62; } .qm-ucheck__no svg { color: #d9512c; }
.qm-ucheck__try { margin: 10px 0 4px; font-size: var(--fs-sm); font-weight: 600; }
.qm-ucheck__no ul { margin: 0; padding-left: 20px; font-size: var(--fs-sm); line-height: 1.6; color: var(--c-ink-2); }
@media (prefers-reduced-motion: reduce) { .qm-meter__bar i, .qm-unit { transition: none; } }
.qm-ubar { margin: 0 0 var(--s-4); padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
.qm-ubar .qm-ucheck__head { margin: 0; }
.qm-ucheck { margin: var(--s-5) 0 0; }

/* ==========================================================================
   Installers page (/installers)
   ========================================================================== */
.ip-hero__promise {
  display: inline-flex; align-items: center; gap: var(--s-3);
  margin-top: var(--s-5); padding: 10px 16px 10px 10px;
  border-radius: var(--r-pill); background: rgba(254, 178, 4, 0.14); border: 1px solid rgba(254, 178, 4, 0.4);
  font-size: 1.0625rem; color: #fff;
}
.ip-hero__promise strong { color: var(--c-amber); font-weight: 600; }
.ip-hero__promise svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--c-amber); color: var(--c-navy); }
.ip-hero .hero__points { margin-top: var(--s-5); }

/* The promise, as a ledger of outcomes */
.ip-ledger__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.ip-ledger__copy .lead { margin-top: var(--s-5); }
.ip-ledger__note { margin-top: var(--s-5); padding-left: var(--s-4); border-left: 3px solid var(--c-amber); font-size: var(--fs-sm); color: var(--c-muted); max-width: 34em; }
.ip-book { margin: 0; padding: clamp(1.25rem, 0.8rem + 1.5vw, 2rem); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: 0 30px 60px -40px rgba(4, 36, 57, 0.45); }
.ip-book__head { display: flex; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--c-line); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.ip-book__rows { display: grid; }
.ip-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px dashed var(--c-line); }
.ip-row__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--c-line); }
.ip-row__what { display: grid; gap: 2px; }
.ip-row__what strong { font-weight: 600; color: var(--c-ink); }
.ip-row__what span { font-size: var(--fs-sm); color: var(--c-muted); }
.ip-row__pay { display: grid; justify-items: end; text-align: right; }
.ip-row__pay b { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; color: var(--c-ink); }
.ip-row__pay small { font-size: var(--fs-xs); color: var(--c-muted); }
.ip-row__pay--zero b { color: #1b7a47; }
.ip-row--won { margin: var(--s-2) calc(-1 * var(--s-3)) 0; padding-inline: var(--s-3); border: 0; border-radius: var(--r-md); background: var(--c-navy); }
.ip-row--won .ip-row__dot { border: 0; background: var(--c-amber); color: var(--c-navy); }
.ip-row--won .ip-row__dot svg { width: 16px; height: 16px; }
.ip-row--won .ip-row__what strong, .ip-row--won .ip-row__pay b { color: #fff; }
.ip-row--won .ip-row__what span, .ip-row--won .ip-row__pay small { color: var(--c-on-dark-muted); }
.ip-row--won em { font-style: normal; color: var(--c-amber); font-weight: 600; }
.ip-book__foot { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink-2); }
.ip-book__foot svg { flex: none; width: 20px; height: 20px; color: var(--c-amber-2); }

/* What you stop paying for */
.ip-stop__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); max-width: 980px; margin-inline: auto; }
.ip-stop__list li { display: inline-flex; align-items: center; gap: var(--s-2); padding: 12px 18px 12px 12px; border-radius: var(--r-pill); background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-ink-2); }
.ip-stop__list span { text-decoration: line-through; text-decoration-color: rgba(214, 69, 46, 0.7); text-decoration-thickness: 2px; }
.ip-stop__list svg { flex: none; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: rgba(214, 69, 46, 0.12); color: #b8391f; }

/* How it works */
.ip-steps__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); counter-reset: ipstep; }
.ip-step { position: relative; display: flex; flex-direction: column; padding: var(--s-5); border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); counter-increment: ipstep; }
.ip-step::before { content: counter(ipstep); position: absolute; top: var(--s-5); right: var(--s-5); font-family: var(--f-display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--c-surface-2); }
.ip-step__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s-4); border-radius: 12px; background: rgba(254, 178, 4, 0.16); color: var(--c-navy); }
.ip-step__icon svg { width: 22px; height: 22px; }
.ip-step__who { margin-bottom: var(--s-2); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.ip-step__title { margin-bottom: var(--s-3); font-family: var(--f-display); font-size: 1.125rem; font-weight: 700; line-height: 1.25; color: var(--c-ink); }
.ip-step p:last-child { font-size: var(--fs-sm); line-height: 1.55; color: var(--c-ink-2); }
.ip-step--you { background: var(--c-navy); border-color: var(--c-navy); }
.ip-step--you::before { color: rgba(255, 255, 255, 0.1); }
.ip-step--you .ip-step__icon { background: var(--c-amber); }
.ip-step--you .ip-step__who { color: var(--c-amber); }
.ip-step--you .ip-step__title { color: #fff; }
.ip-step--you p:last-child { color: var(--c-on-dark-muted); }

/* Payments */
.ip-pay__frame { padding: clamp(1.75rem, 1rem + 4vw, 4rem); border-radius: var(--r-lg); background: radial-gradient(60% 80% at 100% 0%, rgba(254, 178, 4, 0.14), transparent 60%), var(--c-navy); color: #fff; }
.ip-pay__head .h2 { max-width: 18em; }
.ip-pay__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.ip-pay__steps li { padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ip-pay__num { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: var(--s-4); border-radius: 50%; background: var(--c-amber); font-family: var(--f-display); font-weight: 700; color: var(--c-navy); }
.ip-pay__steps h3 { margin-bottom: var(--s-2); font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; }
.ip-pay__steps p { color: var(--c-on-dark-muted); line-height: 1.6; }
.ip-pay__fine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-7); }
.ip-pay__fine p { display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.06); font-size: var(--fs-sm); line-height: 1.55; color: var(--c-on-dark-muted); }
.ip-pay__fine strong { color: #fff; font-weight: 600; }
.ip-pay__fine svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--c-amber); }

/* Requirements checklist: ticks are counted with CSS, so it needs no script */
.ip-req__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.ip-req__copy { position: sticky; top: calc(var(--header-h) + 24px); }
.ip-req__copy .lead { margin: var(--s-5) 0 var(--s-6); }
.ip-req__small { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--c-muted); }
.ip-check { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: 0; padding: 0; border: 0; counter-reset: ready; }
.ip-check__item { position: relative; display: flex; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.ip-check__item input { position: absolute; opacity: 0; pointer-events: none; }
.ip-check__item > span:last-child { display: grid; gap: 4px; font-size: var(--fs-sm); line-height: 1.5; color: var(--c-muted); }
.ip-check__item strong { font-size: var(--fs-base); font-weight: 600; color: var(--c-ink); }
.ip-check__box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; border: 2px solid #c9c7bd; background: #fff; color: transparent; transition: background 0.2s, border-color 0.2s; }
.ip-check__box svg { width: 15px; height: 15px; }
.ip-check__item:hover { border-color: #cdcbc1; }
.ip-check__item:has(input:checked) { counter-increment: ready; border-color: var(--c-amber-2); background: #fffaeb; }
.ip-check__item:has(input:checked) .ip-check__box { background: var(--c-amber); border-color: var(--c-amber); color: var(--c-navy); }
.ip-check__item:has(input:focus-visible) { outline: 2px solid var(--c-navy); outline-offset: 2px; }
.ip-check__tally { grid-column: 1 / -1; margin-top: var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink-2); }
.ip-check__tally::after { content: counter(ready) " of 9 ready"; }
.ip-check:not(:has(input:checked)) .ip-check__tally::after { content: "Tick each one you have ready."; font-weight: 500; color: var(--c-muted); }
.ip-check:not(:has(input:not(:checked))) .ip-check__tally::after { content: "All 9 ready. You can apply today."; color: #1b7a47; }

/* Console tools */
.ip-tools__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.ip-tools__grid li { padding: var(--s-5); border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); }
.ip-tools__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--s-4); border-radius: 12px; background: var(--c-navy); color: var(--c-amber); }
.ip-tools__icon svg { width: 20px; height: 20px; }
.ip-tools__grid h3 { margin-bottom: var(--s-2); font-family: var(--f-display); font-size: 1.125rem; font-weight: 700; color: var(--c-ink); }
.ip-tools__grid p { font-size: var(--fs-sm); line-height: 1.55; color: var(--c-muted); }

/* Standards */
.ip-standards__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.ip-standards__grid .lead { margin-top: var(--s-5); }
.ip-standards__card { padding: clamp(1.25rem, 0.8rem + 1.5vw, 2rem); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); }
.ip-standards__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-5); }
.ip-standards__list li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-sm); line-height: 1.5; color: var(--c-ink-2); }
.ip-standards__list svg { flex: none; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: rgba(27, 122, 71, 0.12); color: #1b7a47; }
.ip-standards__note { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-muted); }

/* Questions */
.ip-faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.ip-faq__grid .lead { margin-top: var(--s-5); }
.ip-faq__grid .lead a { color: var(--c-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ip-faq__list { border-top: 1px solid var(--c-line); }
.ip-faq__list details { border-bottom: 1px solid var(--c-line); }
.ip-faq__list summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) 0; font-family: var(--f-display); font-size: 1.125rem; font-weight: 600; color: var(--c-ink); cursor: pointer; list-style: none; }
.ip-faq__list summary::-webkit-details-marker { display: none; }
.ip-faq__list summary svg { flex: none; width: 22px; height: 22px; color: var(--c-muted); transition: transform 0.25s var(--ease); }
.ip-faq__list details[open] summary svg { transform: rotate(180deg); }
.ip-faq__list summary:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 4px; border-radius: 4px; }
.ip-faq__list details p { max-width: 40em; padding-bottom: var(--s-5); line-height: 1.6; color: var(--c-ink-2); }

@media (max-width: 1100px) {
  .ip-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-step:last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .ip-ledger__grid, .ip-req__grid, .ip-standards__grid, .ip-faq__grid { grid-template-columns: minmax(0, 1fr); }
  .ip-req__copy { position: static; }
  .ip-pay__steps, .ip-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-pay__steps li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ip-hero__promise { display: flex; font-size: 0.9375rem; border-radius: var(--r-md); }
  .ip-steps__list, .ip-pay__steps, .ip-tools__grid, .ip-check, .ip-standards__list, .ip-pay__fine { grid-template-columns: minmax(0, 1fr); }
  .ip-step:last-child, .ip-pay__steps li:last-child { grid-column: auto; }
  .ip-row { gap: var(--s-3); }
  .ip-row__pay b { font-size: 1.0625rem; }
  .ip-stop__list { justify-content: flex-start; }
  .ip-stop__list li { font-size: var(--fs-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .ip-check__item, .ip-check__box, .ip-faq__list summary svg { transition: none; }
}

/* Trust rating: a word and a colour in place of the score number. */
.tr-rate { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; line-height: 1.4; white-space: nowrap; }
.tr-rate::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tr-rate--excellent { background: #d9f1e3; color: #14633a; }
.tr-rate--verygood { background: #e3f5ea; color: #1b7a47; }
.tr-rate--good { background: #dff3f1; color: #0f6e69; }
.tr-rate--average { background: #fdf0cf; color: #8a6100; }
.tr-rate--fair { background: #fde6d3; color: #9a4a0c; }
.tr-rate--building { background: #e6eaf3; color: #44506b; }
.tr-rate--new { background: #e4eefc; color: #1f4e9c; }
.tr-rate--none { background: #f0eee8; color: #6b6a64; }
.tr-score { flex-direction: column; align-items: flex-start; gap: 4px; }
.tr-score > span { flex-basis: 100%; max-width: 22rem; }
.tr-parts { display: grid; gap: 10px; }
.tr-parts li, .tr-bars li.tr-bars__word { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-sm); }
.tr-parts li > span { color: var(--c-ink-2); }

/* Tracking page: agree and pay the installer directly (linker) */
.tr-agree__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.tr-agree__acts svg { width: 18px; height: 18px; flex: none; }

/* Linker mode: the installer's Heliobond page is the one link, made big; the quotation document sits under the final quotation. */
.tr-pagecard { margin-top: var(--s-3); padding: 16px 18px; }
.tr-from .tr-pagecard { max-width: 520px; }
.tr-inv__work .tr-pagecard { margin-top: 6px; }
.tr-inv__doc { margin: var(--s-4) 0 0; }
.tr-chosen { text-align: center; display: grid; justify-items: center; gap: var(--s-3); padding-block: var(--s-6); }
.tr-chosen .tr-body svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--c-amber-2); }
.tr-pagecard > svg { flex: none; width: 22px; height: 22px; color: var(--c-amber); }
.tr-pagecard > svg + span + svg { width: 18px; height: 18px; margin-left: auto; }

/* Tracking page: the saved estimate, and the "ready to install?" pop-up */
.tr-est__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-top: var(--s-4); border-radius: 14px; overflow: hidden; background: #ece9df; }
.tr-est__grid div { padding: var(--s-3) var(--s-4); background: #faf9f6; }
.tr-est__grid dt { font-size: var(--fs-xs); color: var(--c-muted); }
.tr-est__grid dd { margin-top: 2px; font-weight: 700; font-size: 1.15rem; }
.tr-est__lines { margin-top: var(--s-4); }
.tr-est__lines summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); }
.tr-est__lines dl { margin-top: var(--s-3); }
.tr-est__lines dl div { display: flex; justify-content: space-between; gap: var(--s-3); padding: 8px 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-sm); }
.tr-est__lines dd { font-weight: 700; white-space: nowrap; }
.tr-est .tr-small { display: flex; align-items: flex-start; gap: 6px; margin-top: var(--s-4); }
.tr-est .tr-small svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.tr-ready__q { margin-top: var(--s-5); margin-bottom: var(--s-2); font-weight: 700; }
.tr-select { position: relative; }
.tr-select__btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; border: 1.5px solid var(--c-line); border-radius: 12px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tr-select__btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.tr-select.is-open .tr-select__btn { border-color: var(--c-ink); }
.tr-select.is-open .tr-select__btn svg { transform: rotate(180deg); }
.tr-select__btn:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.tr-select__list { margin-top: 6px; padding: 6px; list-style: none; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; box-shadow: 0 16px 32px -18px rgba(4, 22, 36, 0.35); }
.tr-select__list button { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; cursor: pointer; }
.tr-select__list button:hover, .tr-select__list button:focus-visible { background: var(--c-surface-2); }
.tr-select__list [aria-selected="true"] button { font-weight: 700; }
.tr-est__appl { margin-top: var(--s-4); }
.tr-est__label { font-size: var(--fs-xs); color: var(--c-muted); margin-bottom: var(--s-2); }
.tr-est__appl ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.tr-est__appl li { padding: 5px 10px; border-radius: 999px; background: var(--c-surface-2); font-size: var(--fs-sm); }
.tr-est__stale, .tr-est__ready { display: flex; align-items: flex-start; gap: 8px; margin-top: var(--s-4); padding: 12px 14px; border-radius: 12px; font-size: var(--fs-sm); }
.tr-est__stale { border: 1px solid #f1dfae; background: #fffaf0; }
.tr-est__ready { border: 1px solid #cfe7d6; background: #f3fbf5; }
.tr-est__stale svg, .tr-est__ready svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.tr-est__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-4); padding: 0; list-style: none; counter-reset: none; }
.tr-est__steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; background: #faf9f6; text-align: center; font-size: var(--fs-xs); font-weight: 600; }
.tr-est__steps svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .tr-est__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tr-est__rule { margin: var(--s-6) 0; border: 0; border-top: 1px solid var(--c-line); }

/* Quote form: the commitment check after the code, before a request goes to installers */
.qm-gate { text-align: left; }
.qm-gate__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #e7f6ec; color: #166b3a; font-size: var(--fs-xs); font-weight: 700; }
.qm-gate__eyebrow svg { width: 14px; height: 14px; }
.qm-gate__title { margin-top: var(--s-3); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; outline: none; }
.qm-gate__spend { display: grid; gap: 2px; margin-top: var(--s-4); padding: 18px 20px; border-radius: 16px; background: var(--c-ink, #042439); color: #fff; }
.qm-gate__spend span { font-size: var(--fs-sm); opacity: 0.75; }
.qm-gate__spend strong { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); letter-spacing: -0.02em; color: #f5b841; }
.qm-gate__spend small { opacity: 0.75; }
.qm-gate__lead { margin-top: var(--s-4); }
.qm-gate__warn { display: flex; gap: 10px; margin-top: var(--s-4); padding: 14px 16px; border: 1px solid #f1dfae; border-radius: 14px; background: #fffaf0; font-size: var(--fs-sm); }
.qm-gate__warn svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #b7791f; }
.qm-gate__choices { display: grid; gap: 10px; margin-top: var(--s-5); }
.qm-gate__choices .btn { width: 100%; justify-content: center; padding: 16px 18px; white-space: normal; line-height: 1.35; text-align: center; }
.qm-gate__save { font-size: 1.05rem; font-weight: 700; }
.qm-gate__commit { margin-top: var(--s-3); padding: 14px; border: 1px solid var(--c-line); border-radius: 14px; }
.qm-gate__tick { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-sm); text-align: left; color: var(--c-ink); cursor: pointer; }
.qm-gate__tick:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; border-radius: 4px; }
.qm-gate__box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--c-ink); border-radius: 5px; background: #fff; }
.qm-gate__tick[aria-checked="true"] .qm-gate__box { background: var(--c-ink); color: #fff; }
.qm-gate__box svg { width: 13px; height: 13px; }
.qm-gate__send { margin-top: 12px; border: 1.5px solid var(--c-ink); background: #fff; color: var(--c-ink); font-weight: 600; font-size: var(--fs-sm); }
.qm-gate__send:not(:disabled):hover { background: var(--c-ink); color: #fff; }
.qm-gate__choices .btn:disabled { opacity: 0.55; cursor: not-allowed; }
