/* "Charger architecture" and "Network intelligence" cards */

.stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stack--wide {
  gap: 44px;
}

/* ---------- Charger architecture ("Charging Feature Card") ---------- */

/* Two equal rows: the dark card spans both, the other two sit in the top row
   and stretch to the same height (as on Framer) */
.charger-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 16px;
}

.charger-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 26px;
  background: #f3f7f4;
  transition: transform 340ms var(--ease), box-shadow 340ms ease;
}

/* Thin outline on the grey card, drawn inside so it doesn't change the size */
.charger-card:not(.charger-card--dark):not(.charger-card--mint)::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #e1e8e3;
  border-radius: inherit;
  pointer-events: none;
}

.charger-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -36px rgba(12, 40, 25, 0.4);
}

.charger-card svg {
  width: 28px;
  height: 28px;
  color: #119a4c;
}

.charger-card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--heading);
}

.charger-card p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--body-grey);
}

/* The tall dark card with "600 kW" */
.charger-card--dark {
  grid-row: span 2;
  justify-content: flex-end;
  gap: 18px;
  min-height: 310px;
  background: #101311;
}

.charger-card--dark .charger-card__big {
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2.5px;
  color: #47e88e;
}

.charger-card--dark h3 {
  font-size: 23px;
  color: #fff;
}

.charger-card--dark p {
  font-size: 16px;
  color: #b5c0b9;
}

.charger-card--mint {
  background: #ddfbe8;
}

.charger-card--mint p {
  color: #42604d;
}

/* ---------- Network intelligence cards ---------- */

.intel-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.intel-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 26px;
  border-radius: 24px;
  background: #f7f9f7;
  border: 1px solid #e1e8e3;
  transition: transform 340ms var(--ease), box-shadow 340ms ease, border-color 340ms ease;
}

.intel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 199, 101, 0.3);
  box-shadow: 0 30px 60px -36px rgba(12, 40, 25, 0.35);
}

.intel-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ddfbe8;
  color: #119a4c;
}

.intel-card__icon svg {
  width: 22px;
  height: 22px;
}

.intel-card__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intel-card h3 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.7px;
  color: var(--heading);
}

.intel-card p {
  font-size: 16px;
  line-height: 1.45;
  color: var(--body-grey);
}

/* "GO GREEN. GO FURTHER." — a big eyebrow */
.eyebrow--big {
  font-size: 40px;
}

@media (max-width: 1199px) {
  /* Stacked cards all take the height of the tallest one, as on Framer */
  .charger-cards,
  .intel-cards {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    align-items: stretch;
  }

  .charger-card--dark {
    grid-row: auto;
    min-height: 220px;
  }
}
