/* v53 Kevin review fixes
   - Section 3: match eyebrow/title sizing rhythm with other sections, reduce vertical gaps, widen cards, tighter card gutters.
   - Section 5 Mobile Control: restore the approved light app-section treatment and prevent later broad responsive overrides from turning it into a dark/changed block. */

/* SECTION 3 — Product Ecosystem compact/wider-card pass */
.ecosystem-section {
  padding-top: clamp(46px, 4.9vw, 78px) !important;
  padding-bottom: clamp(54px, 5.4vw, 86px) !important;
}

.ecosystem-intro {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .72fr) !important;
  gap: clamp(32px, 5vw, 64px) !important;
  margin-bottom: 6px !important;
  align-items: end !important;
}

.ecosystem-section .eyebrow-dark--inverse {
  margin-bottom: 18px !important;
  padding: 9px 14px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: .105em !important;
  font-weight: 700 !important;
}

.ecosystem-intro h2 {
  font-size: clamp(34px, 4.35vw, 64px) !important;
  line-height: .98 !important;
  letter-spacing: -.055em !important;
}

.ecosystem-lead {
  margin-bottom: 0 !important;
  font-size: clamp(15.5px, 1.04vw, 18px) !important;
  line-height: 1.58 !important;
}

.ecosystem-grid {
  width: min(100%, 1180px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  grid-template-columns: repeat(4, minmax(238px, 1fr)) !important;
  gap: clamp(14px, 1.35vw, 18px) !important;
}

.ag-property-section {
  width: 100% !important;
  margin: -2px auto 3px !important;
}

.installer-comparison--proof {
  margin-top: 8px !important;
}

.ecosystem-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ecosystem-card--link:focus-visible {
  outline: 3px solid #25d8d1;
  outline-offset: 5px;
}

.ag-event-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 20px !important;
  align-items: center !important;
  padding: 16px 18px !important;
  background:
    radial-gradient(circle at 14% 12%, rgba(255,248,240,.34), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.10), transparent 24%),
    linear-gradient(135deg, #C5A67E 0%, #C5A67E 68%, #CF945F 100%) !important;
  box-shadow: 0 16px 38px rgba(98, 65, 43, .18) !important;
}

.ag-event-copy {
  min-width: 0;
}

.ag-event-card span,
.ag-event-card small {
  color: rgba(255, 255, 255, .78) !important;
}

.ag-event-learn-more {
  display: inline-flex;
  min-height: 42px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #744b38;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.ag-event-learn-more:hover,
.ag-event-learn-more:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 10px 24px rgba(95,60,39,.18);
}

.ecosystem-card {
  border-radius: 30px !important;
}

.ecosystem-card figure img,
.ecosystem-abstract {
  height: clamp(190px, 15vw, 218px) !important;
}

.ecosystem-card__body {
  padding: clamp(20px, 1.65vw, 24px) !important;
}

.card-index {
  margin-bottom: 10px !important;
}

.ecosystem-card h3 {
  margin-bottom: 10px !important;
  font-size: clamp(25px, 2.25vw, 36px) !important;
  line-height: 1.02 !important;
}

.ecosystem-card p:not(.card-index) {
  font-size: 15px !important;
  line-height: 1.52 !important;
}

/* SECTION 5 — restore approved light Mobile Control section */
.mobile-app-section {
  color: var(--apeiron-black) !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(253,230,214,.88), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(52,214,211,.10), transparent 24%),
    linear-gradient(180deg, #fffaf6 0%, #f7f1ea 58%, #ffffff 100%) !important;
  padding: clamp(74px, 8vw, 118px) 0 !important;
}

.mobile-app-section::before {
  opacity: 1 !important;
  background-image:
    linear-gradient(rgba(14,17,19,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,17,19,.028) 1px, transparent 1px) !important;
  background-size: 56px 56px !important;
}

.mobile-app-shell {
  display: grid !important;
  grid-template-columns: minmax(320px, .74fr) minmax(520px, 1.16fr) !important;
  gap: clamp(44px, 6vw, 86px) !important;
  align-items: center !important;
}

.mobile-app-copy,
.mobile-app-copy h2,
.mobile-app-copy p:not(.mobile-app-kicker) {
  max-width: 520px !important;
}

.mobile-app-kicker {
  margin: 0 0 20px !important;
  color: rgba(42,46,49,.70) !important;
  font-size: 13px !important;
  letter-spacing: .22em !important;
}

.mobile-app-copy h2 {
  color: var(--apeiron-black) !important;
  font-size: clamp(42px, 4.9vw, 72px) !important;
  line-height: .97 !important;
  letter-spacing: -.06em !important;
}

.mobile-app-copy p:not(.mobile-app-kicker) {
  margin-top: 24px !important;
  color: rgba(42,46,49,.72) !important;
  font-size: clamp(16px, 1.1vw, 18px) !important;
  line-height: 1.68 !important;
}

.mobile-mode-tabs {
  margin-top: 30px !important;
  background: rgba(255,255,255,.88) !important;
  border-color: rgba(42,46,49,.08) !important;
  box-shadow: 0 18px 50px rgba(42,46,49,.08) !important;
}

.mobile-app-visual {
  transform: none !important;
  min-height: clamp(430px, 44vw, 620px) !important;
  background: #ead6c6 !important;
  border-color: rgba(42,46,49,.08) !important;
  box-shadow: 0 30px 90px rgba(42,46,49,.13) !important;
}

.mobile-app-visual img {
  min-height: clamp(430px, 44vw, 620px) !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: none !important;
  opacity: 1 !important;
}

.mobile-app-visual figcaption {
  background: rgba(255,255,255,.82) !important;
  border-color: rgba(255,255,255,.60) !important;
  box-shadow: 0 18px 60px rgba(42,46,49,.16) !important;
  color: var(--apeiron-black) !important;
}

@media (min-width: 1041px) {
  .ecosystem-shell {
    width: min(1080px, calc(100% - 54px)) !important;
  }
}

@media (max-width: 1040px) {
  .ecosystem-section {
    padding-top: clamp(52px, 7vw, 72px) !important;
    padding-bottom: clamp(56px, 8vw, 82px) !important;
  }

  .ecosystem-intro {
    margin-bottom: 26px !important;
  }

  .ecosystem-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
    gap: 18px !important;
  }

  .mobile-app-shell {
    grid-template-columns: 1fr !important;
  }

  .mobile-app-copy,
  .mobile-app-copy h2,
  .mobile-app-copy p:not(.mobile-app-kicker) {
    max-width: none !important;
  }
}

@media (max-width: 700px) {
  .ecosystem-grid {
    grid-template-columns: 1fr !important;
  }

  .ag-event-card {
    grid-template-columns: 1fr !important;
  }

  .ag-event-learn-more {
    width: 100%;
  }

  .mobile-app-section {
    padding: 64px 0 !important;
  }

  .mobile-app-copy h2 {
    font-size: clamp(38px, 12vw, 54px) !important;
  }

  .mobile-app-visual,
  .mobile-app-visual img {
    min-height: 360px !important;
  }
}
