/* ==========================================================================
   Inner pages: banner and the content blocks used on the residential pages.
   Shared pieces (buttons, section heads, CTA) come from components.css and
   home.css.
   ========================================================================== */

.section-head h2 {
  max-width: 18em;
}

/* 1. Banner
   --------------------------------------------------------------------------
   Same frame as the home banner, with breadcrumbs and a tilted photo card.
   ========================================================================== */

.page-hero__frame {
  position: relative;
  isolation: isolate;
  margin-inline: var(--frame);
  border-radius: var(--r-xl);
  background: var(--pine);
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: -3;
  display: block;
  height: 24rem;
}

.page-hero__media img {
  position: absolute;
  top: -9%;
  left: 0;
  width: 100%;
  max-width: none;
  height: 118%;
  object-fit: cover;
  object-position: 50% 30%;
}

.page-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    180deg,
    rgba(6, 40, 29, 0.25) 0,
    rgba(6, 40, 29, 0.35) 7rem,
    rgba(6, 40, 29, 0.92) 15rem,
    var(--pine) 21rem
  );
}

/* Soft sunlight in one corner and faint vertical lines, for depth */
.page-hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 85% 0%, rgba(255, 198, 85, 0.22), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 120px);
  pointer-events: none;
}

.page-hero__inner {
  --bs-gutter-x: calc((var(--gutter) - var(--frame)) * 2);
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding-top: 13rem;
  padding-bottom: 3.5rem;
}

.page-hero__title {
  max-width: 13em;
  margin-top: 1.25rem;
  color: var(--white);
  font-size: clamp(2.25rem, min(0.9rem + 3.3vw, 8vh), 4.1rem);
  letter-spacing: -0.042em;
  line-height: 1.04;
}

.page-hero__lede {
  max-width: 34em;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-lead);
  line-height: 1.6;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.page-hero__actions .button {
  flex: 1 1 100%;
}

@media (min-width: 576px) {
  .page-hero__actions .button {
    flex: 0 1 auto;
  }
}

/* Tilted photo card beside the copy (wide screens) */
.page-hero__card {
  position: relative;
  display: none;
  width: 19rem;
  aspect-ratio: 4 / 5;
  padding: 0.6rem;
  border-radius: calc(var(--r-lg) + 0.6rem);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  rotate: 3deg;
}

.page-hero__card img {
  width: 100%;
  height: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
}

.page-hero__card-icon {
  position: absolute;
  top: -1.4rem;
  left: -1.4rem;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 8px rgba(248, 168, 40, 0.22);
  color: var(--ink);
  rotate: -3deg;
}

.page-hero__card-icon .icon {
  width: 1.75rem;
  height: 1.75rem;
  animation: spin 18s linear infinite;
}

/* Call, email and visit in one glass strip under the title (contact page) */
.hero-reach {
  display: grid;
  gap: 0.5rem;
  max-width: 46rem;
  margin: 2rem 0 0;
  padding: 0.5rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  list-style: none;
}

.hero-reach a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  height: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-md);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color var(--fast) ease;
}

.hero-reach a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.hero-reach small {
  display: block;
  color: var(--sun-bright);
  font-size: var(--text-xs);
  font-weight: 700;
}

.hero-reach__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  transition: transform var(--medium) var(--ease-out);
}

.hero-reach a:hover .hero-reach__icon {
  transform: scale(1.08) rotate(-8deg);
}

.hero-reach__icon .icon {
  width: 1.1rem;
  height: 1.1rem;
}

@media (min-width: 768px) {
  .hero-reach {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }
}

/* Map of the streets around the office, with a route drawn to the pin
   (contact page, wide screens) */
.route-card {
  position: relative;
  display: none;
  width: 19rem;
  aspect-ratio: 4 / 5;
  padding: 0.6rem;
  border-radius: calc(var(--r-lg) + 0.6rem);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 40px 80px -30px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  rotate: 3deg;
}

.route-card svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--r-lg);
}

.route-card__blocks {
  fill: rgba(255, 255, 255, 0.045);
}

.route-card__road {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-linecap: round;
}

.route-card__road--main {
  stroke: rgba(255, 255, 255, 0.28);
}

.route-card__label {
  fill: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.route-card__route {
  fill: none;
  stroke: var(--sun);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(248, 168, 40, 0.8));
  animation: route-draw 5s var(--ease-in-out) infinite;
}

@keyframes route-draw {
  0% { stroke-dashoffset: 1; opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.route-card__pulse {
  fill: none;
  stroke: var(--sun-bright);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: route-pulse 2.6s ease-out infinite;
}

.route-card__pulse:nth-of-type(2) { animation-delay: 0.85s; }
.route-card__pulse:nth-of-type(3) { animation-delay: 1.7s; }

@keyframes route-pulse {
  from { opacity: 0.9; transform: scale(0.3); }
  to { opacity: 0; transform: scale(2.4); }
}

.route-card__pin {
  fill: var(--sun);
}

.route-card__pin-dot {
  fill: var(--pine);
}

/* Without motion the route is shown drawn and the pin still */
@media (prefers-reduced-motion: reduce) {
  .route-card__route {
    stroke-dashoffset: 0;
    animation: none;
  }

  .route-card__pulse {
    display: none;
  }
}

.route-card__tag {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  left: 1.4rem;
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.35;
  rotate: -3deg;
}

.route-card__tag a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--green);
  font-size: var(--text-xs);
  text-decoration: none;
}

.route-card__tag a:hover {
  color: var(--green-deep);
}

.route-card__tag .icon {
  width: 0.9rem;
  height: 0.9rem;
}

/* Breadcrumbs */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  margin: 0;
  padding: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  list-style: none;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.crumbs li + li::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-top: 1.5px solid rgba(255, 255, 255, 0.5);
  border-right: 1.5px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.crumbs a:hover,
.crumbs a[aria-current] {
  color: var(--white);
}

/* Phones: Home and the current page only, so the trail stays on one line */
@media (max-width: 575.98px) {
  .crumbs li:not(:first-child):not(:last-child) {
    display: none;
  }
}

/* Mouse-shaped scroll cue (wide screens) */
.page-hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  display: none;
  width: 1.6rem;
  height: 2.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 1rem;
  translate: -50% 0;
}

.page-hero__scroll span {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 3px;
  height: 0.5rem;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--sun-bright);
  animation: scroll-cue 1.8s var(--ease-in-out) infinite;
}

@keyframes scroll-cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(0.9rem); }
}

@media (min-width: 768px) {
  .page-hero__media {
    bottom: 0;
    height: auto;
  }

  .page-hero__shade {
    background: linear-gradient(90deg, rgba(6, 40, 29, 0.96) 0%, rgba(6, 40, 29, 0.85) 48%, rgba(6, 40, 29, 0.45) 100%);
  }

  .page-hero__inner {
    padding-top: clamp(3.5rem, 9vh, 6rem);
    padding-bottom: clamp(5rem, 11vh, 7rem);
  }
}

@media (min-width: 992px) {
  .page-hero__frame {
    display: grid;
    min-height: clamp(36rem, calc(100vh - 10rem), 48rem);
  }

  .page-hero__media img {
    object-position: 70% 40%;
  }

  .page-hero__shade {
    background: linear-gradient(
        90deg,
        rgba(6, 40, 29, 0.96) 0%,
        rgba(6, 40, 29, 0.88) 36%,
        rgba(6, 40, 29, 0.5) 62%,
        rgba(6, 40, 29, 0.3) 100%
      ),
      linear-gradient(0deg, rgba(6, 40, 29, 0.7) 0%, rgba(6, 40, 29, 0) 40%);
  }

  .page-hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4rem;
  }

  .page-hero__card,
  .route-card,
  .page-hero__scroll {
    display: block;
  }
}

@media (min-width: 1200px) {
  .page-hero__card,
  .route-card {
    width: 21rem;
    margin-right: 2rem;
  }
}

@media (min-width: 1400px) {
  .page-hero__inner {
    --bs-gutter-x: calc(var(--gutter) * 2);
  }
}

/* 2. What's included: text beside two overlapping photos
   ========================================================================== */

.split {
  display: grid;
  gap: 3.5rem clamp(2.5rem, 6vw, 6.5rem);
}

.split__lede {
  max-width: 34em;
  margin-top: 1.5rem;
}

/* Four icons in a row joined by a line, one for each part */
.parts {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 26rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.parts::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.75rem;
  left: 1.75rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}

.parts::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 1.75rem;
  width: 0.6rem;
  height: 4px;
  border-radius: 4px;
  background: var(--sun);
  box-shadow: 0 0 12px var(--sun);
  animation: parts-run 3.4s var(--ease-in-out) infinite;
}

@keyframes parts-run {
  from { left: 1.75rem; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { left: calc(100% - 2.35rem); opacity: 0; }
}

.parts li {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--pine);
  box-shadow: 0 0 0 6px var(--white), 0 12px 24px -12px rgba(6, 40, 29, 0.6);
  color: var(--sun-bright);
}

.parts .icon {
  width: 1.4rem;
  height: 1.4rem;
}

/* Paragraph in a white card with an icon on a small solar panel tile.
   A grid of pale solar cells fades in from the bottom-right corner
   (decorative). */
.callout {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 1.1rem;
  margin-top: 2.25rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  overflow: hidden;
}

.callout::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 15rem;
  height: 9.5rem;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(1.5rem - 3px), var(--white) calc(1.5rem - 3px) 1.5rem),
    repeating-linear-gradient(0deg, transparent 0 calc(1.5rem - 3px), var(--white) calc(1.5rem - 3px) 1.5rem),
    #d3e4da;
  -webkit-mask-image: radial-gradient(110% 110% at 100% 100%, #000 30%, transparent 78%);
  mask-image: radial-gradient(110% 110% at 100% 100%, #000 30%, transparent 78%);
}

.callout__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(33.33% - 1px), rgba(255, 255, 255, 0.16) calc(33.33% - 1px) 33.33%),
    repeating-linear-gradient(0deg, transparent 0 calc(33.33% - 1px), rgba(255, 255, 255, 0.16) calc(33.33% - 1px) 33.33%),
    var(--pine);
  color: var(--sun-bright);
}

.callout p {
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Phones: icon above the text so the paragraph gets the full width */
@media (max-width: 575.98px) {
  .callout {
    flex-direction: column;
    gap: 0.9rem;
  }
}

.split__media {
  position: relative;
  padding-bottom: 18%;
}

.split__photo--main {
  width: 84%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
}

.split__photo--side {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.split__badge {
  position: absolute;
  top: 8%;
  right: 4%;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 10px rgba(248, 168, 40, 0.18), var(--shadow-md);
  color: var(--ink);
}

.split__badge .icon {
  width: 1.75rem;
  height: 1.75rem;
}

/* Tablets stack the photos under the text: flatter frames keep the pair
   from taking a whole screen */
@media (min-width: 576px) and (max-width: 991.98px) {
  .split__media {
    padding-bottom: 14%;
  }

  .split__photo--main,
  .split__photo--side {
    aspect-ratio: 16 / 10;
  }
}

/* Phones and tablets: the photos sit straight under the heading */
@media (max-width: 991.98px) {
  .split {
    row-gap: 0;
  }

  .split__text {
    display: contents;
  }

  .split__text > h2 {
    order: -2;
  }

  .split__media {
    order: -1;
    margin-top: 2rem;
  }
}

@media (min-width: 992px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

/* Tiles: one paragraph per card, with dark and photo versions
   ========================================================================== */

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.8vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--medium) ease, transform var(--medium) var(--ease-out);
}

.tile:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.35rem);
}

.tile p {
  font-size: var(--text-base);
  line-height: 1.7;
}

.tile__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.4rem;
  border-radius: var(--r-sm);
  background: var(--mist-deep);
  color: var(--green-deep);
}

.tile__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.tile__icon--sun {
  background: var(--sun);
  color: var(--ink);
}

/* Dark tile over a faded photo */
.tile--dark {
  justify-content: flex-end;
  min-height: 22rem;
  background: var(--pine);
  color: rgba(255, 255, 255, 0.88);
}

.tile--dark p {
  font-size: var(--text-lead);
  line-height: 1.6;
}

.tile__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  mix-blend-mode: luminosity;
  transition: transform 1.2s var(--ease-out);
}

.tile--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--pine) 25%, rgba(6, 40, 29, 0.4));
}

.tile--dark:hover .tile__bg {
  transform: scale(1.05);
}

/* Photo tile: image on top, text below */
.tile--photo {
  padding: 0;
}

.tile__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

.tile--photo:hover .tile__media img {
  transform: scale(1.05);
}

.tile__body {
  position: relative;
  flex: 1;
  padding: clamp(1.5rem, 2.8vw, 2.25rem);
  padding-top: 2.5rem;
}

.tile__icon--float {
  position: absolute;
  top: -1.6rem;
  margin: 0;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 5px var(--white);
  color: var(--ink);
}

@media (min-width: 768px) {
  .tile--wide {
    grid-column: 1 / -1;
  }

  .tile--wide {
    flex-direction: row;
  }

  .tile--wide .tile__media {
    flex: 0 0 45%;
    aspect-ratio: auto;
    min-height: 15rem;
  }

  .tile--wide .tile__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(1.5rem, 2.8vw, 2.25rem);
    padding-left: clamp(2.25rem, 4vw, 3.5rem);
  }

  .tile--wide .tile__icon--float {
    position: static;
    margin-bottom: 1.25rem;
    box-shadow: none;
  }
}

@media (min-width: 1200px) {
  .tile--wide {
    grid-column: span 2;
  }
}

/* 4. Warranties (dark section)
   ========================================================================== */

.warranties,
.band-dark {
  margin-inline: var(--frame);
  border-radius: var(--r-xl);
  background: var(--pine);
  color: var(--on-dark);
  overflow: hidden;
}

.warranties h2,
.band-dark h2,
.band-dark h3 {
  color: var(--white);
}

.warranties > .container-xxl,
.band-dark > .container-xxl {
  --bs-gutter-x: calc((var(--gutter) - var(--frame)) * 2);
  position: relative;
}

@media (min-width: 1400px) {
  .warranties > .container-xxl,
  .band-dark > .container-xxl {
    --bs-gutter-x: calc(var(--gutter) * 2);
  }
}

.warranties__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 50% at 100% 0%, rgba(43, 182, 115, 0.25), transparent 70%),
    radial-gradient(ellipse 35% 45% at 0% 100%, rgba(248, 168, 40, 0.14), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 64px);
  pointer-events: none;
}

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

.wcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: box-shadow var(--medium) ease, transform var(--medium) var(--ease-out);
}

.wcard:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 198, 85, 0.5);
  transform: translateY(-0.35rem);
}

.wcard p {
  font-size: var(--text-sm);
  line-height: 1.7;
}

.wcard strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--white);
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.wcard__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--sun-bright);
}

@media (min-width: 768px) {
  .wgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .wgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Consumer law panel */
.acl {
  display: grid;
  margin-top: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--body);
  overflow: hidden;
}

.acl__media {
  aspect-ratio: 16 / 9;
}

.acl__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acl__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3.5vw, 3rem);
}

.acl__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
}

.acl p {
  max-width: 30em;
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .acl {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .acl__media {
    aspect-ratio: auto;
    min-height: 17rem;
  }
}

/* 5. Battery
   ========================================================================== */

.battery .section-head .lede {
  max-width: 40em;
}

/* Two photos, day and evening, joined by an arrow (decorative) */
.duo {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

.duo__photo {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  background: var(--pine);
  overflow: hidden;
}

.duo__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 40, 29, 0.5), transparent 50%);
}

.duo__icon {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
}

.duo__icon--sun {
  background: var(--sun);
  color: var(--ink);
}

.duo__link {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 6px var(--white);
  color: var(--sun-bright);
  translate: -50% -50%;
  rotate: 90deg;
}

@media (min-width: 768px) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .duo__link {
    rotate: 0deg;
  }
}

/* Phones and tablets: the photos sit straight under the heading, before
   the intro */
@media (max-width: 991.98px) {
  .battery > .container-xxl {
    display: flex;
    flex-direction: column;
  }

  .battery .section-head,
  .battery .section-head > div {
    display: contents;
  }

  .battery .section-head h2 {
    margin-inline: auto;
  }

  .battery .duo {
    margin-top: 2rem;
  }

  .battery .section-head .lede {
    order: 1;
    margin-top: 2rem;
  }

  .battery .program {
    order: 2;
  }
}

/* Federal battery program */
.program {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(248, 168, 40, 0.2), transparent 40%),
    linear-gradient(135deg, #fffaf0, var(--mist));
  box-shadow: inset 0 0 0 1px #f3e2bd;
}

.program__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--sun-bright);
}

.program__icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.program__text {
  display: grid;
  gap: 1.1rem;
}

.program__text p {
  color: var(--ink);
  font-size: var(--text-lead);
  line-height: 1.65;
}

@media (min-width: 992px) {
  .program {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 2.5rem;
  }

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

/* 6. STC rebate: three paragraphs as numbered steps
   ========================================================================== */

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

.process__step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--medium) ease, transform var(--medium) var(--ease-out);
}

.process__step:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.35rem);
}

.process__num {
  position: absolute;
  top: 0.75rem;
  right: 1.5rem;
  color: var(--mist-deep);
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.process__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
}

.process__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.process__step p {
  position: relative;
  line-height: 1.7;
}

.process__step--dark {
  background: var(--pine);
  color: var(--on-dark);
}

.process__step--dark .process__num {
  color: rgba(189, 239, 212, 0.35);
}

.process__step--dark .process__icon {
  background: var(--sun);
  color: var(--ink);
}

@media (min-width: 992px) {
  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* 7. Quote checklist
   ========================================================================== */

.checklist__grid {
  display: grid;
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
}

.checklist__media {
  aspect-ratio: 4 / 3;
  margin-top: 2.25rem;
  border-radius: var(--r-xl);
  background: var(--mist-deep);
  overflow: hidden;
}

.checklist__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tablets stack the photo above the list, so keep it a short strip */
@media (min-width: 576px) and (max-width: 991.98px) {
  .checklist__media {
    aspect-ratio: 21 / 9;
  }

  /* Crop from nearer the top so faces stay in the strip */
  .checklist__media img {
    object-position: 50% 25%;
  }
}

/* The points as one list in a white panel, a tick badge before each row */
.checks {
  margin: 0;
  padding: 0.5rem clamp(1.25rem, 2.5vw, 1.85rem);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  list-style: none;
}

.section:not(.section--mist) .checks {
  border: 1px solid var(--line);
  box-shadow: none;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.55;
}

.checks li + li {
  border-top: 1px solid var(--line);
}

.checks__tick {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--mist-deep);
  color: var(--green-deep);
}

.checks__tick .icon {
  width: 0.95rem;
  height: 0.95rem;
}

@media (min-width: 992px) {
  .checklist__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }

  .checklist__aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* ==========================================================================
   Blocks shared by the system and battery pages
   ========================================================================== */

/* Body copy under a heading, and the gap between paragraphs */
.copy > * + * {
  margin-top: 1.1rem;
}

.copy a,
.tile a,
.wcard a,
.process__step a,
.highlight a,
.callout a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(24, 120, 80, 0.35);
}

.page-hero__lede a,
.band-dark a,
.tile--dark a,
.process__step--dark a,
.photo-band a {
  color: var(--sun-bright);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 198, 85, 0.45);
}

.page-hero__lede a:hover,
.band-dark a:hover,
.photo-band a:hover {
  color: var(--white);
}

.page-hero__lede + .page-hero__lede {
  margin-top: 0.9rem;
}

/* Split with the photos on the left (wide screens) */
@media (min-width: 992px) {
  .split--reverse .split__media {
    order: -1;
  }
}

/* Editorial: heading and photo on the left, copy on the right */
.editorial {
  display: grid;
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
}

.editorial__media {
  aspect-ratio: 4 / 3;
  margin-top: 2.25rem;
  border-radius: var(--r-xl);
}

.editorial__body > .lede:first-child {
  color: var(--ink);
}

/* Tablets stack the photo above the text, so keep it a short strip */
@media (min-width: 576px) and (max-width: 991.98px) {
  .editorial__media {
    aspect-ratio: 21 / 9;
  }
}

@media (min-width: 992px) {
  .editorial {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .editorial__aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .editorial__media--tall {
    aspect-ratio: 4 / 5;
  }
}

/* A paragraph in a pale box */
.note {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.35rem;
  border-radius: var(--r-md);
  background: var(--mist);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.6;
}

.note .icon {
  flex: none;
  margin-top: 0.15rem;
  color: var(--green);
}

.section--mist .note {
  background: var(--white);
}

/* A note on its own row under text and photos: clear of the photo that
   hangs below the pair */
.split + .note,
.editorial + .note {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

/* Panel combinations: each list item drawn with a tiny array of its panels */
.combos {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.combo {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--medium) ease, transform var(--medium) var(--ease-out);
}

.section:not(.section--mist) .combo {
  border: 1px solid var(--line);
  box-shadow: none;
}

.combo:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.35rem);
}

.combo__array {
  display: grid;
  grid-template-columns: repeat(var(--cols, 8), minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 1.5rem;
  padding: 0.85rem;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, var(--pine-2), var(--pine));
}

.combo__array i {
  aspect-ratio: 3 / 5;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.12) 48% 52%, transparent 52%),
    linear-gradient(180deg, #2a4f8a, #142d55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

html.motion .combo__array i {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
  transition-delay: calc(var(--i) * 35ms);
}

html.motion .combo__array.is-in i {
  opacity: 1;
  transform: none;
}

.combo p {
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
}

/* Phones: the drawing sits beside the sentence, so three cards don't take
   three screens */
@media (max-width: 767.98px) {
  .combo {
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
  }

  .combo__array {
    flex: 0 0 36%;
    gap: 3px;
    margin-bottom: 0;
    padding: 0.6rem;
  }

  .combo p {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .combos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Four cards: two by two on tablets, one row from 1200px */
  .combos--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .combos--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Icon list: list items as cards with an icon */
.ilist {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ilist li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
  transition: border-color var(--fast) ease, box-shadow var(--medium) ease;
}

.ilist li:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.ilist__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: var(--r-sm);
  background: var(--mist-deep);
  color: var(--green-deep);
}

.ilist + .copy,
.ilist + .note,
.copy + .ilist,
.combos + .copy,
.combos + .note,
.olist + .closing {
  margin-top: 1.5rem;
}

/* Heading and text beside the photo pair, an icon list in one row under
   both. Phones show the photos straight under the heading. */
.split-lead {
  display: grid;
  gap: 2rem;
  grid-template-areas: "head" "media" "text";
}

.split-lead > h2 {
  grid-area: head;
  max-width: 13em;
}

.split-lead__text {
  grid-area: text;
}

.split-lead__text p + p {
  margin-top: 1.25rem;
}

.split-lead__media {
  grid-area: media;
}

@media (min-width: 992px) {
  .split-lead {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head media" "text media";
    gap: 1.5rem clamp(2.5rem, 5vw, 5rem);
  }

  .split-lead__media {
    align-self: center;
  }
}

.ilist--row {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

@media (min-width: 576px) {
  .ilist--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .ilist--row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ilist--row + .note {
  justify-content: center;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .ilist--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Beside a photo on small laptops the column is too narrow for two cards */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .editorial .ilist--two {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Numbered list cards (code requirements and the like) */
.olist {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: olist;
}

.olist li {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.75rem;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.55;
  counter-increment: olist;
  transition: box-shadow var(--medium) ease, transform var(--medium) var(--ease-out);
}

.section:not(.section--mist) .olist li {
  border: 1px solid var(--line);
  box-shadow: none;
}

.olist li:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.25rem);
}

.olist li::before {
  content: counter(olist, decimal-leading-zero);
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 800;
}

/* Cards keep one width; a last row that is not full sits in the centre
   rather than leaving a gap on the right */
@media (min-width: 768px) {
  .olist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .olist li {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
}

@media (min-width: 1200px) {
  .olist--three li {
    flex-basis: calc((100% - 2rem) / 3);
  }
}

.section-head .copy {
  max-width: 44em;
  margin-top: 1.25rem;
}

.section-head--center .copy {
  margin-inline: auto;
}

/* Rebate tiers: each list item with a bar sized to its share */
.tiers {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.tiers li {
  padding: 1.1rem 1.35rem 1.25rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 600;
}

.tiers__bar {
  display: block;
  height: 0.55rem;
  margin-top: 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.tiers__bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-bright), var(--sun));
  transform-origin: left;
}

html.motion .tiers__bar i {
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
}

html.motion .tiers.is-in .tiers__bar i {
  transform: none;
}

html.motion .tiers.is-in li:nth-child(2) .tiers__bar i { transition-delay: 0.15s; }
html.motion .tiers.is-in li:nth-child(3) .tiers__bar i { transition-delay: 0.3s; }

/* Two columns of copy inside a dark band */
.band-cols {
  display: grid;
  gap: 2rem clamp(2.5rem, 5vw, 5rem);
}

.band-cols .copy p {
  line-height: 1.75;
}

@media (min-width: 992px) {
  .band-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* Glass cards inside a dark band: two up */
@media (min-width: 1200px) {
  .wgrid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wcard--lead p {
  color: var(--white);
  font-size: var(--text-lead);
  line-height: 1.6;
}

/* Comparison table */
.ctable-wrap {
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.ctable {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
}

.ctable th,
.ctable td {
  padding: 1.25rem clamp(1rem, 2.5vw, 2rem);
  text-align: left;
  vertical-align: middle;
}

.ctable thead th {
  background: var(--pine);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
}

.ctable tbody tr + tr {
  border-top: 1px solid var(--line);
}

.ctable tbody th {
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.ctable td {
  color: var(--ink);
  font-weight: 600;
}

.ctable tbody tr:last-child {
  background: linear-gradient(90deg, var(--mist), rgba(242, 247, 243, 0.2));
}

.ctable tbody tr:last-child th {
  color: var(--green);
}

/* Bar under the output figure (decorative) */
.ctable__bar {
  display: block;
  width: var(--w);
  max-width: 10rem;
  height: 0.45rem;
  margin-top: 0.5rem;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--green), var(--sun));
}

/* Full-width photo with copy on a dark panel */
.photo-band {
  position: relative;
  isolation: isolate;
  margin-inline: var(--frame);
  border-radius: var(--r-xl);
  background: var(--pine);
  overflow: hidden;
}

.photo-band__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 40, 29, 0.95) 0%, rgba(6, 40, 29, 0.84) 50%, rgba(6, 40, 29, 0.4) 100%);
}

.photo-band > .container-xxl {
  --bs-gutter-x: calc((var(--gutter) - var(--frame)) * 2);
}

.photo-band__panel {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.85);
}

.photo-band__panel h2 {
  color: var(--white);
}

.photo-band__panel .copy {
  margin-top: 1.5rem;
}

.photo-band__panel .copy p {
  line-height: 1.75;
}

@media (min-width: 1400px) {
  .photo-band > .container-xxl {
    --bs-gutter-x: calc(var(--gutter) * 2);
  }
}

/* Step card with a strong first sentence */
.process__step strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.process__step--dark strong {
  color: var(--white);
}

@media (min-width: 992px) {
  .process--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process--one {
    grid-template-columns: minmax(0, 1fr);
  }

  .process--one .process__step--dark {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 2.5rem;
  }

  .process--one .process__icon {
    margin: 0;
    padding: 0;
  }

  .process--one p {
    font-size: var(--text-lead);
  }
}

/* Paragraph closing a section, centred under its block */
.closing {
  max-width: 46em;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  text-align: center;
}

/* Highlight panel: a heading and one paragraph set large */
.highlight {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(248, 168, 40, 0.22), transparent 45%),
    linear-gradient(135deg, #fffaf0, var(--mist));
  box-shadow: inset 0 0 0 1px #f3e2bd;
  text-align: center;
}

.highlight h2 {
  max-width: 18em;
  margin-inline: auto;
}

.highlight p {
  max-width: 38em;
  margin: 1.5rem auto 0;
  color: var(--ink);
  font-size: var(--text-lead);
  line-height: 1.65;
}

/* Phones: long centred paragraphs are hard to read, so align left */
@media (max-width: 575.98px) {
  .highlight {
    padding: 1.75rem 1.5rem;
    text-align: left;
  }

  .highlight .highlight__icon {
    margin-left: 0;
  }
}

/* Battery graphic in the banner (decorative) */
.battery-card {
  position: relative;
  display: none;
  place-items: center;
  width: 20rem;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--r-lg) + 0.6rem);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.battery-card__cell {
  position: relative;
  width: 7.5rem;
  height: 13rem;
  padding: 0.6rem;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 1.25rem;
}

.battery-card__cap {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  width: 2.75rem;
  height: 0.6rem;
  border-radius: 0.4rem 0.4rem 0 0;
  background: rgba(255, 255, 255, 0.85);
  translate: -50% 0;
}

.battery-card__level {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
  height: 100%;
}

.battery-card__level i {
  flex: 1;
  border-radius: 0.55rem;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  box-shadow: 0 0 18px rgba(43, 182, 115, 0.45);
  animation: cell-charge 4s ease-in-out infinite;
}

.battery-card__level i:nth-child(2) { animation-delay: 0.35s; }
.battery-card__level i:nth-child(3) { animation-delay: 0.7s; }

.battery-card__level i:nth-child(4),
.battery-card__level i:nth-child(5) {
  background: linear-gradient(90deg, var(--sun-deep), var(--sun));
  box-shadow: 0 0 18px rgba(248, 168, 40, 0.45);
}

.battery-card__level i:nth-child(4) { animation-delay: 1.05s; }
.battery-card__level i:nth-child(5) { animation-delay: 1.4s; }

@keyframes cell-charge {
  0%, 15% { opacity: 0.15; }
  35%, 80% { opacity: 1; }
  100% { opacity: 0.15; }
}

.battery-card__bolt {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  translate: -50% -50%;
}

.battery-card__bolt .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.battery-card__orbit {
  position: absolute;
  top: 12%;
  left: 10%;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 8px rgba(248, 168, 40, 0.2);
  color: var(--ink);
  animation: bob 5s ease-in-out infinite;
}

.battery-card__orbit--2 {
  top: auto;
  right: 10%;
  bottom: 12%;
  left: auto;
  background: var(--white);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.15);
  color: var(--green);
  animation-delay: -2.5s;
}

@keyframes bob {
  50% { transform: translateY(-0.6rem); }
}

@media (min-width: 992px) {
  .battery-card {
    display: grid;
  }
}

@media (min-width: 1200px) {
  .battery-card {
    width: 21rem;
    margin-right: 2rem;
  }
}

/* A single photo tile outside the grid */
.tile--solo {
  margin-top: 1.25rem;
}

/* Program panel holding a single paragraph */
@media (min-width: 992px) {
  .program__text--single {
    grid-template-columns: minmax(0, 1fr);
  }
}

.note a {
  color: var(--green-deep);
  font-weight: 700;
}

/* Captions line up across cards whatever the size of the array */
.combo p {
  margin-top: auto;
}

/* Phones: the comparison table fits the screen instead of scrolling */
@media (max-width: 575.98px) {
  .ctable {
    min-width: 0;
    table-layout: fixed;
  }

  .ctable th,
  .ctable td {
    padding: 0.9rem 0.7rem;
    font-size: var(--text-base);
    line-height: 1.4;
  }

  .ctable thead th:first-child {
    width: 26%;
  }

  .ctable tbody th {
    font-size: 1rem;
    white-space: normal;
  }
}

/* ==========================================================================
   Commercial and battery pages
   ========================================================================== */

/* Size tag on the banner graphics, e.g. "28kWh" (decorative) */
.hero-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* Solar array graphic in the banner (decorative) */
.array-card {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 20rem;
  aspect-ratio: 4 / 5;
  padding: 4rem 2.25rem 2.25rem;
  border-radius: calc(var(--r-lg) + 0.6rem);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.array-card .combo__array {
  position: relative;
  width: 100%;
  margin: 0;
  box-shadow: 0 30px 50px -25px rgba(0, 0, 0, 0.7);
  transform: perspective(700px) rotateX(24deg);
  overflow: hidden;
}

/* Light sweeping across the panels */
.array-card .combo__array::after {
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  animation: array-sweep 4.5s var(--ease-in-out) infinite;
}

@keyframes array-sweep {
  0%, 30% { left: -60%; }
  80%, 100% { left: 130%; }
}

.array-card__sun {
  position: absolute;
  top: -1.4rem;
  left: -1.4rem;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 8px rgba(248, 168, 40, 0.22), 0 0 40px rgba(248, 168, 40, 0.5);
  color: var(--ink);
}

.array-card__sun .icon {
  width: 1.75rem;
  height: 1.75rem;
  animation: spin 18s linear infinite;
}

/* Energy running from the array down to the building */
.array-card__flow {
  position: relative;
  display: block;
  width: 2px;
  height: 3.5rem;
  margin: 1.25rem 0 0.75rem;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0 4px, transparent 4px 9px);
}

.array-card__flow i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: -0.25rem;
  border-radius: 50%;
  background: var(--sun-bright);
  box-shadow: 0 0 10px var(--sun);
  animation: flow-down 1.8s linear infinite;
}

.array-card__flow i:nth-child(2) { animation-delay: 0.6s; }
.array-card__flow i:nth-child(3) { animation-delay: 1.2s; }

@keyframes flow-down {
  from { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  to { top: calc(100% - 0.5rem); opacity: 0; }
}

.array-card__site {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.12);
  color: var(--green);
}

.array-card__site .icon {
  width: 1.6rem;
  height: 1.6rem;
}

@media (min-width: 992px) {
  .array-card {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .array-card {
    width: 21rem;
    margin-right: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .array-card .combo__array::after,
  .array-card__flow i {
    animation: none;
  }
}

/* Usable-capacity meter: the three rebate bands from 0 to 50kWh (decorative) */
.meter {
  margin-top: 1.75rem;
  padding-top: 2.4rem;
}

.meter__track {
  position: relative;
  display: flex;
  height: 0.9rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.meter__track i {
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, var(--green-bright), var(--sun));
  opacity: var(--o);
  transform-origin: left;
}

.meter__track i:first-child {
  border-radius: var(--r-pill) 0 0 var(--r-pill);
}

.meter__track i:nth-child(3) {
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
}

.meter__track i + i {
  border-left: 2px solid var(--pine);
}

html.motion .meter__track i {
  transform: scaleX(0);
  transition: transform 0.8s var(--ease-out);
}

html.motion .meter.is-in .meter__track i { transform: none; }
html.motion .meter.is-in .meter__track i:nth-child(2) { transition-delay: 0.5s; }
html.motion .meter.is-in .meter__track i:nth-child(3) { transition-delay: 1s; }

.meter__pin {
  position: absolute;
  top: -0.55rem;
  bottom: -0.55rem;
  left: var(--at);
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--white);
}

.meter__pin b {
  position: absolute;
  bottom: calc(100% + 0.4rem);
  left: 50%;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--sun);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 800;
  white-space: nowrap;
  translate: -50% 0;
}

html.motion .meter__pin {
  opacity: 0;
  transition: opacity 0.5s ease 1.5s;
}

html.motion .meter.is-in .meter__pin {
  opacity: 1;
}

.meter__scale {
  position: relative;
  height: 1.25rem;
  margin-top: 0.6rem;
  color: var(--on-dark);
  font-size: var(--text-xs);
  font-weight: 600;
}

.meter__scale span {
  position: absolute;
  top: 0;
  left: var(--at, 0);
  translate: -50% 0;
}

.meter__scale span:first-child {
  translate: none;
}

.meter__scale span:last-child {
  right: 0;
  left: auto;
  translate: none;
}

.meter__rates {
  display: flex;
  margin-top: 0.35rem;
  color: var(--sun-bright);
  font-size: var(--text-xs);
  font-weight: 800;
}

.meter__rates span {
  width: var(--w);
  text-align: center;
}

.meter--light .meter__track {
  background: var(--mist-deep);
  box-shadow: none;
}

.meter--light .meter__track i + i {
  border-left-color: var(--white);
}

.meter--light .meter__pin {
  background: var(--ink);
}

.meter--light .meter__scale {
  color: var(--muted);
}

.meter--light .meter__rates {
  color: var(--green-deep);
}

.tile--dark .meter {
  margin-top: 1.25rem;
}

/* Seasons: four glass cards with the sun's path drawn above each (dark band) */
.seasons {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.season {
  --tone: var(--sun);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: box-shadow var(--medium) ease, transform var(--medium) var(--ease-out);
}

.season::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: -1;
  height: 10rem;
  background: radial-gradient(ellipse 70% 100% at 80% 0%, var(--tone), transparent 70%);
  opacity: 0.22;
  transition: opacity var(--medium) ease;
}

.season:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 198, 85, 0.5);
  transform: translateY(-0.35rem);
}

.season:hover::before {
  opacity: 0.38;
}

.season--winter { --tone: #8fc3ff; }
.season--cloudy { --tone: #b9c6c0; }
.season--rest { --tone: var(--green-bright); }

.season__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--tone);
  color: var(--ink);
}

/* The sun's arc across the sky: --a sets where the sun sits */
.season__arc {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 5rem;
  height: 2.5rem;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-bottom: 0;
  border-radius: 5rem 5rem 0 0;
}

.season__arc::after {
  content: "";
  position: absolute;
  bottom: -0.35rem;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: -0.35rem;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 14px var(--tone);
  transform: rotate(var(--a, 0deg)) translateY(-2.5rem);
  transition: transform 1.2s var(--ease-out);
}

.season:hover .season__arc::after {
  transform: rotate(calc(var(--a, 0deg) + 25deg)) translateY(-2.5rem);
}

.season strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-size: 1.375rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.season p {
  font-size: var(--text-sm);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .seasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .seasons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Numbered cards with a bold opening phrase */
.olist strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

/* One card per row */
@media (min-width: 768px) {
  .olist--stack {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Warning style: amber numbers */
.olist--warn li::before {
  background: var(--sun);
  color: var(--ink);
}

/* Two photo tiles side by side */
.pair {
  display: grid;
  gap: 1.25rem;
}

.pair .tile__media {
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A paragraph set on a quote "document", with a header and a stamp */
.quote-doc {
  position: relative;
  margin-top: 2rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.quote-doc::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--green-bright), var(--sun));
}

.quote-doc__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--line);
}

.quote-doc__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-sm);
  background: var(--pine);
  color: var(--sun-bright);
}

.quote-doc__lines {
  display: grid;
  flex: 1;
  gap: 0.45rem;
}

.quote-doc__lines i {
  width: var(--w);
  height: 0.5rem;
  border-radius: var(--r-pill);
  background: var(--mist-deep);
}

.quote-doc__stamp {
  display: grid;
  flex: none;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  rotate: -12deg;
}

.quote-doc p {
  color: var(--ink);
  font-size: var(--text-lead);
  font-weight: 600;
  line-height: 1.6;
}

/* Rules as glass rows with a tick (dark band) */
.rules {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 600;
  line-height: 1.55;
  transition: box-shadow var(--medium) ease, transform var(--medium) var(--ease-out);
}

.rules li:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 198, 85, 0.5);
  transform: translateX(0.25rem);
}

.rules__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
}

.rules__icon .icon {
  width: 1rem;
  height: 1rem;
}

.rules + p {
  margin-top: 1.5rem;
}

/* Icon above a highlight panel's heading */
.highlight__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--sun-bright);
}

.highlight__icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.highlight p + p {
  margin-top: 1rem;
}

/* Spec table: a term and what it tells you */
.ctable--spec {
  min-width: 0;
}

.ctable--spec tbody th {
  width: 34%;
  font-size: 1.125rem;
  white-space: normal;
}

.ctable--spec td {
  color: var(--body);
  font-weight: 500;
  line-height: 1.6;
}

.ctable--spec tbody tr:last-child {
  background: none;
}

.ctable--spec tbody tr:last-child th {
  color: var(--ink);
}

.ctable--spec tbody tr {
  transition: background-color var(--fast) ease;
}

.ctable--spec tbody tr:hover {
  background: var(--mist);
}

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

.ctable__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-sm);
  background: var(--mist-deep);
  color: var(--green-deep);
}

@media (max-width: 575.98px) {
  .ctable--spec thead th:first-child {
    width: 38%;
  }

  /* Two columns leave room for a readable description */
  .ctable--spec td {
    font-size: var(--text-sm);
  }

  .ctable__icon {
    display: none;
  }
}

/* Glass cards stacked in one column */
.wgrid--stack {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* Sentence introducing a checklist */
.checks__lead {
  margin-bottom: 1.5rem;
  color: var(--ink);
  font-size: var(--text-lead);
  font-weight: 700;
  line-height: 1.5;
}

/* Photo tiles in a pair keep a wide photo (wide screens) */
@media (min-width: 1200px) {
  .pair .tile--photo:not(.tile--wide) {
    grid-row: auto;
  }

  .pair .tile--photo:not(.tile--wide) .tile__media {
    flex: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .pair .tile--photo:not(.tile--wide) .tile__body {
    flex: 1;
  }
}

/* Intro paragraph on a dark band */
.band-dark .lede {
  color: var(--on-dark);
}

/* ==========================================================================
   Blocks added for the commercial system pages
   ========================================================================== */

/* Links inside panels that carried none on the residential pages */
.program a,
.ctable a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(24, 120, 80, 0.35);
}

/* Bold opening words that stay part of the sentence */
.wcard .runin {
  display: inline;
  margin: 0;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

/* Text on a dark band */
.band-dark .section-head .lede {
  color: rgba(255, 255, 255, 0.85);
}

.band-dark .closing {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-lead);
  line-height: 1.6;
}

/* Step cards that are light until hovered, then turn dark green */
.process--hover .process__step {
  transition:
    background-color var(--medium) ease,
    color var(--medium) ease,
    box-shadow var(--medium) ease,
    transform var(--medium) var(--ease-out);
}

.process--hover .process__num,
.process--hover .process__icon,
.process--hover .process__step strong {
  transition:
    background-color var(--medium) ease,
    color var(--medium) ease;
}

.process--hover .process__step:hover {
  background: var(--pine);
  color: var(--on-dark);
}

.process--hover .process__step:hover .process__num {
  color: rgba(189, 239, 212, 0.35);
}

.process--hover .process__step:hover .process__icon {
  background: var(--sun);
  color: var(--ink);
}

.process--hover .process__step:hover strong {
  color: var(--white);
}

.process--hover .process__step:hover a {
  color: var(--sun-bright);
}

/* Five step cards: three in the first row, two in the second */
@media (min-width: 992px) {
  .process--five {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .process--five .process__step {
    grid-column: span 2;
  }

  .process--five .process__step:nth-child(n + 4) {
    grid-column: span 3;
  }
}

/* Comparison table that marks one row of its own instead of the last */
.ctable--mark tbody tr:last-child {
  background: none;
}

.ctable--mark tbody tr:last-child th {
  color: var(--ink);
}

.ctable--mark tbody tr.is-marked {
  background: linear-gradient(90deg, var(--mist), rgba(242, 247, 243, 0.2));
}

.ctable--mark tbody tr.is-marked th {
  color: var(--green);
}

.ctable tbody th a {
  color: inherit;
}

/* Three arrays, each wired to its own inverter (decorative) */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 26rem;
  margin-top: 2rem;
}

.trio__col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trio .combo__array {
  width: 100%;
  margin: 0;
  padding: 0.55rem;
  gap: 3px;
}

.trio__wire {
  position: relative;
  width: 2px;
  height: 2.25rem;
  background: repeating-linear-gradient(
    180deg,
    var(--line) 0 6px,
    transparent 6px 12px
  );
}

.trio__wire::after {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 4px;
  height: 0.6rem;
  border-radius: 4px;
  background: var(--sun);
  box-shadow: 0 0 12px var(--sun);
  animation: trio-run 2.6s var(--ease-in-out) infinite;
  animation-delay: calc(var(--i) * 0.45s);
}

@keyframes trio-run {
  from {
    top: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  to {
    top: calc(100% - 0.6rem);
    opacity: 0;
  }
}

.trio__inverter {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--pine);
  box-shadow:
    0 0 0 6px var(--white),
    0 12px 24px -12px rgba(6, 40, 29, 0.6);
  color: var(--sun-bright);
}

.trio__inverter .icon {
  width: 1.4rem;
  height: 1.4rem;
}

/* ==========================================================================
   Contact page: a dark card with how to reach us, beside the quote form
   ========================================================================== */

.contact__grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.contact-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  border-radius: 40px;
  background: var(--pine);
  color: var(--on-dark);
  overflow: hidden;
}

.contact-card .quote__arcs {
  width: min(22rem, 90%);
}

.contact-card__logo {
  width: 12rem;
  height: auto;
}

.contact-card dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.contact-card dt {
  color: var(--sun-bright);
  font-size: var(--text-xs);
  font-weight: 700;
}

.contact-card dd {
  margin: 0.15rem 0 0;
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.45;
}

.contact-card dd a {
  color: var(--white);
  text-decoration: none;
}

.contact-card dd a:hover {
  color: var(--sun-bright);
}

/* The map grows to keep the card level with the form beside it */
.contact-card__map {
  position: relative;
  flex: 1 0 13rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.contact-card__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-card__social {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-card__social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition:
    background-color var(--fast) ease,
    color var(--fast) ease,
    transform var(--medium) var(--ease-out);
}

.contact-card__social a:hover {
  background: var(--sun);
  color: var(--ink);
  transform: translateY(-2px);
}

.contact-card__legal {
  color: var(--on-dark);
  font-size: var(--text-xs);
  font-weight: 600;
}

@media (min-width: 992px) {
  .contact__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  }
}

/* ==========================================================================
   Explainer: the heading (and intro) above a drawing or a photo on the
   left; numbered points on the right, read top to bottom. On the 14kWh
   page each number matches a spot on the drawing; the residential overview
   and the 28kWh page use a photo.
   ========================================================================== */

.explainer {
  display: grid;
  gap: 3rem;
}

.explainer__lead h2 {
  max-width: 11em;
}

.explainer__lead > p {
  max-width: 40em;
  margin-top: 1.25rem;
  line-height: 1.7;
}

.explainer__drawing {
  max-width: 34rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}

.explainer__drawing svg {
  display: block;
  width: 100%;
  height: auto;
}

/* A photo instead of the drawing: on wide screens it runs down to the
   last point */
.explainer__photo {
  aspect-ratio: 4 / 3;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.explainer__photo img {
  position: absolute;
  inset: 0;
}

.explainer__drawing text {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 800;
  text-anchor: middle;
}

.explainer__points {
  align-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each point has one tint: its number takes it, and so does its spot on
   the drawing */
.explainer__point {
  --tint: var(--mist-deep);
  --tint-ink: var(--green-deep);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}

.explainer__point:last-child {
  border-bottom: 1px solid var(--line);
}

.explainer__point--sun {
  --tint: #fdebc8;
  --tint-ink: #9a5b00;
}

.explainer__point--sky {
  --tint: #e2ecfa;
  --tint-ink: #285a9e;
}

.explainer__point--violet {
  --tint: #ebe5fb;
  --tint-ink: #553fa6;
}

.explainer__point p {
  line-height: 1.7;
}

.explainer__point strong {
  color: var(--ink);
}

.explainer__point a {
  color: var(--green-deep);
  font-weight: 700;
}

.explainer__num {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--tint);
  color: var(--tint-ink);
  font-weight: 800;
  line-height: 1;
}

/* Phones and tablets: the drawing sits straight under the heading */
@media (max-width: 991.98px) {
  .explainer__lead {
    display: flex;
    flex-direction: column;
  }

  .explainer__drawing {
    width: 100%;
  }

  .explainer__lead > p {
    order: 1;
    margin-top: 2rem;
  }
}

/* Wide screens: the lead and drawing beside the points */
@media (min-width: 992px) {
  .explainer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 6vw, 6rem);
  }

  .explainer__drawing {
    max-width: none;
    margin-inline: 0;
  }

  .explainer__lead {
    display: flex;
    flex-direction: column;
  }

  .explainer__photo {
    flex: 1;
    aspect-ratio: auto;
    min-height: 20rem;
  }
}

/* Support page (support.php): under the breadcrumb and title band, the
   support form in the quote panel's white card
   -------------------------------------------------------------------------- */

.support {
  padding-block: clamp(2rem, 5vw, 3.5rem) var(--section);
}

.support__panel {
  max-width: 56rem;
  margin-inline: auto;
}

.field__hint {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.4;
}

/* The chosen files, listed under the field */
.support__files {
  display: grid;
  gap: 0.25rem;
  margin: 0.6rem 0 0;
  padding: 0;
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 600;
  list-style: none;
  overflow-wrap: anywhere;
}

.support__files[hidden] {
  display: none;
}
