/* Use wide desktop screens without changing the established tablet/mobile layout. */
@media (min-width: 1280px) {
  .container-x {
    width: 100% !important;
    max-width: none !important;
    padding-inline: clamp(2.5rem, 4.5vw, 6rem) !important;
  }

  .hero-stage {
    grid-template-columns: minmax(0, 1.08fr) minmax(30rem, 0.92fr) !important;
    gap: clamp(3rem, 5vw, 7rem) !important;
  }

  /* Keep the visual card centred in its own half of the hero. */
  .hero-stage .hero-visual {
    width: min(100%, 46rem) !important;
    max-width: 46rem !important;
    justify-self: center !important;
  }

  header .container-x,
  footer .container-x,
  .site-footer-inner {
    max-width: none !important;
    padding-inline: clamp(2.5rem, 4.5vw, 6rem) !important;
  }
}

.hero-headline-visual[data-hero-media="video"] .hero-stage-video-v4 {
  object-fit: contain !important;
  object-position: center !important;
}

/* Products page service selector and injected category links. */
.product-service-tabs {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(10rem, max-content));
  align-items: stretch;
  gap: 0.75rem !important;
  width: 100%;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.product-service-tabs > a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

@media (max-width: 639px) {
  .product-service-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .product-service-tabs > a {
    width: 100%;
    padding-inline: 0.75rem !important;
  }
}

@media (max-width: 374px) {
  .product-service-tabs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Renewable Energy catalogue: image-led Explore treatment. */
@keyframes renewableCardReveal {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.renewable-products-view .product-card {
  position: relative;
  border-radius: 1.65rem !important;
  border-color: color-mix(in srgb, var(--primary) 18%, var(--border)) !important;
  background: linear-gradient(155deg, color-mix(in srgb, var(--surface) 94%, white), var(--background)) !important;
  box-shadow: 0 18px 48px rgba(15, 35, 67, 0.1);
  animation: renewableCardReveal 620ms cubic-bezier(.2, .8, .2, 1) both !important;
  transition: transform 320ms cubic-bezier(.2, .8, .2, 1), box-shadow 320ms ease, border-color 320ms ease !important;
}

.renewable-products-view .product-card:nth-child(2) { animation-delay: 90ms !important; }
.renewable-products-view .product-card:nth-child(3) { animation-delay: 180ms !important; }
.renewable-products-view .product-card:nth-child(4) { animation-delay: 270ms !important; }
.renewable-products-view .product-card:nth-child(5) { animation-delay: 360ms !important; }
.renewable-products-view .product-card:nth-child(n + 6) { animation-delay: 420ms !important; }

.renewable-products-view .product-card:hover {
  transform: translateY(-9px) !important;
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border)) !important;
  box-shadow: 0 28px 62px rgba(37, 99, 235, 0.17) !important;
}

.renewable-products-view .product-card > div:first-child {
  aspect-ratio: 16 / 10 !important;
  isolation: isolate;
  background: linear-gradient(145deg, #eef6ff, #dcecff 55%, #edf9f7) !important;
}

.renewable-products-view .product-card > div:first-child::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(6, 20, 43, 0.34), transparent);
}

.renewable-products-view .product-card-image {
  width: 100% !important;
  height: 100% !important;
  transform: scale(1.01);
  transition: transform 700ms cubic-bezier(.2, .8, .2, 1), filter 350ms ease !important;
  filter: saturate(1.04) contrast(1.025);
}

.renewable-products-view .product-card:not(.product-card--mini) .product-card-image {
  object-fit: cover !important;
}

.renewable-products-view .product-card--mini .product-card-image {
  object-fit: contain !important;
  padding: clamp(0.8rem, 2vw, 1.35rem) !important;
}

.renewable-products-view .product-card:hover .product-card-image {
  transform: scale(1.075) !important;
}

/* Renewable catalogue — based on the supplied Pinterest ecommerce reference. */
@keyframes renewableFeaturedEnter {
  from { opacity: 0; transform: translate3d(42px, 14px, 0) scale(.96); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes renewableProductFloat {
  0%, 100% { transform: translate3d(0, 2px, 0) rotate(-1deg) scale(1.01); }
  50% { transform: translate3d(0, -8px, 0) rotate(1deg) scale(1.035); }
}

.renewable-products-view .renewable-showcase,
.renewable-products-view .renewable-collection-heading,
.renewable-products-view .renewable-catalog-grid {
  width: 100%;
}

.renewable-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.1rem;
}

.renewable-section-heading span {
  display: block;
  margin-bottom: .35rem;
  color: var(--primary);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.renewable-section-heading h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 850;
  letter-spacing: -.035em;
}

.renewable-section-heading > p {
  color: var(--muted-foreground);
  font-size: .78rem;
}

.renewable-featured-rail {
  display: grid;
  grid-auto-columns: 20rem;
  grid-auto-flow: column;
  gap: 1rem;
  margin-inline: calc(var(--page-gutter) * -1);
  padding: .25rem var(--page-gutter) 1.25rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.renewable-products-view .renewable-featured-card {
  display: grid !important;
  grid-template-rows: 17rem minmax(0, 1fr);
  grid-column: auto !important;
  width: 20rem !important;
  min-width: 20rem !important;
  max-width: 20rem !important;
  height: 31rem;
  min-height: 31rem;
  max-height: 31rem;
  border: 0 !important;
  border-radius: 1.55rem !important;
  color: white;
  scroll-snap-align: start;
  box-shadow: 0 20px 42px rgba(15, 35, 67, .16) !important;
  opacity: 0;
  animation: renewableFeaturedEnter 700ms cubic-bezier(.2, .8, .2, 1) forwards !important;
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1), box-shadow 420ms ease, filter 420ms ease !important;
}

.renewable-products-view .renewable-featured-card:nth-child(2) { animation-delay: 100ms !important; }
.renewable-products-view .renewable-featured-card:nth-child(3) { animation-delay: 200ms !important; }
.renewable-products-view .renewable-featured-card:nth-child(4) { animation-delay: 300ms !important; }

.renewable-products-view .renewable-featured-card:hover {
  transform: translateY(-8px) rotate(-.35deg) !important;
  box-shadow: 0 30px 58px rgba(15, 35, 67, .24) !important;
  filter: saturate(1.06);
}

.renewable-products-view .renewable-featured-card.renewable-accent-1,
.renewable-products-view .renewable-featured-card.renewable-accent-2,
.renewable-products-view .renewable-featured-card.renewable-accent-3,
.renewable-products-view .renewable-featured-card.renewable-accent-4 {
  background: linear-gradient(155deg, #3478ee 0%, #2563eb 52%, #174ea6 100%) !important;
}

.renewable-products-view .renewable-featured-card > div:first-child {
  aspect-ratio: auto !important;
  width: calc(100% - 1.2rem);
  min-height: 0;
  margin: .6rem .6rem 0;
  border-radius: 1.15rem;
  background: #eef5ff !important;
}

.renewable-products-view .renewable-featured-card > div:first-child::after {
  height: 28%;
  background: linear-gradient(to top, rgba(8, 20, 40, .17), transparent);
}

.renewable-products-view .renewable-featured-card .product-card-image {
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  filter: saturate(1.03) contrast(1.015) !important;
  mix-blend-mode: normal;
  animation: none !important;
  transform: none !important;
  transition: transform 560ms cubic-bezier(.22, .61, .36, 1), filter 420ms ease !important;
}

.renewable-products-view .renewable-featured-card:hover .product-card-image {
  transform: scale(1.025) !important;
  filter: saturate(1.06) contrast(1.025) !important;
}

.dark .renewable-products-view .renewable-featured-card .product-card-image {
  mix-blend-mode: normal;
}

.renewable-products-view .renewable-featured-card > div:last-child {
  position: relative;
  z-index: 3;
  min-height: 0;
  padding: 1rem 1.1rem 1.15rem !important;
  overflow: hidden;
}

.renewable-products-view .renewable-featured-card > div:last-child > ul {
  display: none !important;
}

.renewable-products-view .renewable-featured-card > div:last-child > span {
  display: block !important;
  color: rgba(255,255,255,.72) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.renewable-products-view .renewable-featured-card h3 {
  margin-top: 0 !important;
  color: white !important;
  font-size: 1.15rem !important;
  font-weight: 850 !important;
}

.renewable-products-view .renewable-featured-card > div:last-child > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: .7rem !important;
  margin-top: .75rem !important;
  padding-top: .8rem !important;
  border-color: rgba(255,255,255,.24) !important;
}

.renewable-products-view .renewable-featured-card > div:last-child > div > div:last-child {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100% !important;
  gap: .5rem !important;
}

.renewable-products-view .renewable-featured-card > div:last-child > div > div:last-child > a,
.renewable-products-view .renewable-featured-card > div:last-child > div > div:last-child > button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding-inline: .55rem !important;
  white-space: nowrap;
}

.renewable-products-view .renewable-featured-card p,
.renewable-products-view .renewable-featured-card a:not([class*="bg-primary"]) {
  color: rgba(255,255,255,.92) !important;
}

.renewable-products-view .renewable-featured-card a {
  border-color: rgba(255,255,255,.48) !important;
}

.renewable-collection-heading {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.renewable-products-view .renewable-catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  margin-top: 0 !important;
}

.renewable-products-view .renewable-catalog-grid .product-card {
  display: grid !important;
  grid-template-columns: 8rem minmax(0, 1fr);
  min-height: 11rem;
  border-radius: 1.25rem !important;
  box-shadow: 0 10px 30px rgba(15, 35, 67, .075) !important;
  isolation: isolate;
  transition: transform 520ms cubic-bezier(.22, .61, .36, 1), box-shadow 520ms ease, border-color 520ms ease, background 520ms ease !important;
}

.renewable-products-view .renewable-catalog-grid .product-card:hover {
  transform: translateY(-3px) !important;
  border-color: color-mix(in srgb, var(--primary) 72%, var(--border)) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 90%, #dcecff), var(--background)) !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, .14) !important;
}

.renewable-products-view .renewable-catalog-grid .product-card::after {
  content: none;
}

.renewable-products-view .renewable-catalog-grid .product-card > div:first-child {
  aspect-ratio: auto !important;
  min-height: 100%;
  border-radius: 1rem;
  margin: .65rem;
  overflow: hidden !important;
  contain: paint;
}

.renewable-products-view .renewable-catalog-grid .product-card .product-card-image {
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  animation: none !important;
  transform: none !important;
  transition: transform 560ms cubic-bezier(.22, .61, .36, 1), filter 560ms ease !important;
}

.renewable-products-view .renewable-catalog-grid .product-card:hover .product-card-image {
  transform: scale(1.045) !important;
  filter: saturate(1.04) contrast(1.015);
}

.renewable-products-view .renewable-catalog-grid .product-card > div:last-child {
  transition: transform 520ms cubic-bezier(.22, .61, .36, 1) !important;
}

.renewable-products-view .renewable-catalog-grid .product-card:hover > div:last-child {
  transform: translateX(1px);
}

.renewable-products-view .package-detail-link {
  cursor: pointer;
}

.renewable-products-view .package-detail-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 44%, transparent);
  outline-offset: 4px;
}

.renewable-products-view .package-detail-link h3 {
  transition: color 220ms ease, transform 220ms ease;
}

.renewable-products-view .renewable-catalog-grid .package-detail-link:hover h3 {
  color: var(--primary);
  transform: translateX(2px);
}

.renewable-products-view .renewable-catalog-grid .product-card > div:last-child {
  min-width: 0;
  padding: 1rem 1rem 1rem .35rem !important;
}

.renewable-products-view .renewable-catalog-grid .product-card h3 {
  font-size: .98rem !important;
}

.renewable-products-view .renewable-catalog-grid .product-card ul {
  display: none !important;
}

.renewable-products-view .renewable-catalog-grid .product-card > div:last-child > div {
  margin-top: .75rem !important;
  padding-top: .75rem !important;
}

@media (max-width: 767px) {
  .renewable-section-heading > p { display: none; }
  .renewable-featured-rail {
    grid-auto-columns: min(20rem, 84vw);
  }
  .renewable-products-view .renewable-featured-card {
    width: min(20rem, 84vw) !important;
    min-width: min(20rem, 84vw) !important;
    max-width: min(20rem, 84vw) !important;
  }
  .renewable-products-view .renewable-catalog-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 420px) {
  .renewable-products-view .renewable-catalog-grid .product-card {
    grid-template-columns: 6.7rem minmax(0, 1fr);
  }
  .renewable-products-view .renewable-catalog-grid .product-card > div:last-child > div {
    display: block !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .renewable-products-view .renewable-featured-card,
  .renewable-products-view .renewable-featured-card .product-card-image,
  .renewable-products-view .renewable-catalog-grid .product-card,
  .renewable-products-view .renewable-catalog-grid .product-card-image {
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .renewable-products-view .product-card,
  .renewable-products-view .product-card-image {
    animation: none !important;
    transition: none !important;
  }
}

/* Sign-in and signup — mirrors the app's animated blue auth experience. */
@keyframes authBackdropDrift {
  0%, 100% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
}

@keyframes authContourFloat {
  from { transform: translate3d(-2%, -1%, 0) rotate(-2deg); }
  to { transform: translate3d(2%, 3%, 0) rotate(2deg); }
}

.auth-page-view body {
  background: var(--background) !important;
}

.auth-page-view main {
  position: relative;
  isolation: isolate;
  min-height: auto;
  overflow: visible !important;
  background: transparent !important;
  animation: none;
}

.auth-page-view main::before,
.auth-page-view main::after {
  content: none;
}

.auth-page-view main::before {
  width: min(48rem, 70vw);
  height: min(34rem, 54vw);
  top: 7rem;
  left: -12rem;
  box-shadow: 0 0 0 2rem rgba(255,255,255,.035), 0 0 0 5rem rgba(255,255,255,.025), 0 0 0 8rem rgba(255,255,255,.018);
}

.auth-page-view main::after {
  width: min(40rem, 62vw);
  height: min(30rem, 48vw);
  right: -10rem;
  bottom: -8rem;
  animation-delay: -3s;
  box-shadow: 0 0 0 2.2rem rgba(255,255,255,.04), 0 0 0 5rem rgba(255,255,255,.025);
}

.auth-page-view main > section:first-of-type {
  padding-top: clamp(7.5rem, 10vw, 10rem) !important;
  padding-bottom: 1rem !important;
}

.auth-page-view main > section:first-of-type .eyebrow,
.auth-page-view main > section:first-of-type h1 {
  color: var(--foreground) !important;
}

.auth-page-view main > section:first-of-type .eyebrow > span {
  background: var(--primary) !important;
}

.auth-form-card {
  width: min(calc(100% - 2rem), 27rem) !important;
  max-width: none !important;
  border: 1px solid rgba(255,255,255,.58) !important;
  border-radius: 1.75rem !important;
  background: color-mix(in srgb, var(--surface) 94%, transparent) !important;
  box-shadow: 0 28px 80px rgba(5, 25, 64, .28), inset 0 1px rgba(255,255,255,.48) !important;
  backdrop-filter: blur(22px) saturate(1.12);
}

.auth-form-card input,
.auth-form-card select,
.auth-form-card textarea {
  min-height: 3.25rem !important;
  border: 1px solid color-mix(in srgb, var(--primary) 17%, var(--border)) !important;
  border-radius: .95rem !important;
  background: color-mix(in srgb, var(--background) 91%, transparent) !important;
  box-shadow: inset 0 1px 2px rgba(15, 35, 67, .035), 0 8px 24px rgba(37, 99, 235, .035);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease !important;
}

.auth-form-card input:focus,
.auth-form-card select:focus,
.auth-form-card textarea:focus {
  border-color: var(--primary) !important;
  background: var(--background) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent), 0 12px 30px rgba(37, 99, 235, .1) !important;
  outline: none !important;
}

.auth-form-card button[type="submit"] {
  min-height: 3.25rem !important;
  border-radius: .95rem !important;
  background: linear-gradient(135deg, #3478ee, #174ea6) !important;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .28) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease !important;
}

.auth-form-card button[type="submit"]:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(37, 99, 235, .34) !important;
}

.auth-form-card button[type="submit"]:disabled {
  cursor: wait;
  opacity: .78 !important;
}

@media (min-width: 900px) {
  .auth-sign-up .auth-form-card {
    display: block !important;
    width: min(calc(100% - 2rem), 31rem) !important;
    overflow: visible !important;
  }

  .auth-sign-up .auth-form-card > aside {
    display: none !important;
  }

  .auth-sign-up .auth-form-card > aside + div {
    padding: 1.5rem 1.65rem 2rem !important;
  }
}

@media (max-width: 639px) {
  .auth-page-view main > section:first-of-type {
    padding-top: 7rem !important;
    padding-bottom: .8rem !important;
  }

  .auth-form-card {
    width: calc(100% - 1.25rem) !important;
    border-radius: 1.4rem 1.4rem 0 0 !important;
    box-shadow: 0 -10px 42px rgba(5, 25, 64, .2) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page-view main,
  .auth-page-view main::before,
  .auth-page-view main::after {
    animation: none !important;
  }
}

/* Keep the desktop hero stacked: copy first, centred media underneath. */
@media (min-width: 1024px) {
  .hero-stage {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: clamp(2.5rem, 4vw, 4.5rem) !important;
  }

  .hero-stage .hero-copy {
    width: 100%;
    max-width: 72rem;
  }

  .hero-stage .hero-visual {
    width: min(100%, 64rem) !important;
    max-width: 64rem !important;
    margin-inline: auto !important;
    justify-self: center !important;
  }
}
