/* Praxoria Startseite – v517 hero reset + calm alignment
   Scope: index.html only. Goal: remove the shifted panel/background effect and make the hero read on one clean axis. */

body.homeRefinedV517{
  --home-v517-rule: color-mix(in oklab, var(--border) 58%, transparent);
  --home-v517-rule-soft: color-mix(in oklab, var(--border) 30%, transparent);
  --home-v517-ink: color-mix(in oklab, var(--text) 84%, var(--muted));
  --home-v517-muted: color-mix(in oklab, var(--text) 62%, var(--muted));
  --home-v517-marker-a: color-mix(in oklab, var(--accent) 20%, transparent);
  --home-v517-marker-b: color-mix(in oklab, var(--accent2) 16%, transparent);
}

/* Hero is no longer a tinted panel. The old panel background caused the visual split on the left. */
body.homeRefinedV517 .hero.heroPanel{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 510px) !important;
  gap: clamp(32px, 4.8vw, 72px) !important;
  align-items: start !important;
  padding: clamp(40px, 5vw, 64px) 0 clamp(20px, 2.4vw, 30px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  isolation: auto !important;
}

body.homeRefinedV517 .hero.heroPanel::before,
body.homeRefinedV517 .hero.heroPanel::after{
  content: none !important;
  display: none !important;
}

body.homeRefinedV517 .hero.heroPanel > div:first-child{
  min-width: 0;
  max-width: 760px;
  align-self: start;
  padding: 0 !important;
}

body.homeRefinedV517 .heroKicker{
  margin-bottom: clamp(12px, 1.6vw, 18px) !important;
}

body.homeRefinedV517 .hero h1{
  max-width: 11.7ch !important;
  margin: 0 0 clamp(18px, 2.2vw, 26px) !important;
  letter-spacing: -.045em;
}

body.homeRefinedV517 .subline{
  max-width: 62ch !important;
  margin: 0 !important;
  color: var(--home-v517-ink) !important;
  font-size: clamp(1.08rem, 1.18vw, 1.23rem) !important;
  line-height: 1.62 !important;
  letter-spacing: -.012em;
}

body.homeRefinedV517 .heroEditorialNote{
  max-width: 63ch !important;
  margin: clamp(14px, 1.8vw, 20px) 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--home-v517-muted) !important;
  font-size: clamp(1rem, 1.05vw, 1.08rem) !important;
  line-height: 1.68 !important;
}

/* Marker emphasis without pseudo-elements, so the underline cannot drift or create artifacts. */
body.homeRefinedV517 .heroMark{
  position: static !important;
  z-index: auto !important;
  font-weight: 850 !important;
  color: var(--text) !important;
  background: linear-gradient(180deg,
    transparent 0 54%,
    var(--home-v517-marker-a) 54% 86%,
    var(--home-v517-marker-b) 86% 100%
  );
  border-radius: .14em;
  padding: 0 .05em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.homeRefinedV517 .heroMark::after{
  content: none !important;
  display: none !important;
}

/* Benefits are part of the left copy column, not a second full-width hero row. */
body.homeRefinedV517 .heroBenefitBand{
  grid-column: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: clamp(22px, 2.5vw, 32px) 0 0 !important;
  padding: clamp(16px, 1.9vw, 22px) 0 0 !important;
  border-top: 1px solid var(--home-v517-rule) !important;
  border-bottom: 0 !important;
  background: transparent !important;
}

body.homeRefinedV517 .heroBenefitItem{
  min-width: 0;
  padding: 0 clamp(16px, 2vw, 24px) !important;
  border-left: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto 1fr;
  gap: 6px !important;
}

body.homeRefinedV517 .heroBenefitItem:first-child{
  padding-left: 0 !important;
}

body.homeRefinedV517 .heroBenefitItem:last-child{
  padding-right: 0 !important;
}

body.homeRefinedV517 .heroBenefitItem + .heroBenefitItem{
  border-left: 1px solid var(--home-v517-rule-soft) !important;
}

body.homeRefinedV517 .heroBenefitEyebrow{
  color: color-mix(in oklab, var(--accent) 54%, var(--muted)) !important;
  font-size: .65rem !important;
  line-height: 1.1 !important;
  letter-spacing: .17em !important;
  text-transform: uppercase !important;
  font-weight: 820 !important;
}

body.homeRefinedV517 .heroBenefitItem strong{
  color: var(--text) !important;
  font-size: clamp(1rem, 1.08vw, 1.1rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em;
  font-weight: 850 !important;
}

body.homeRefinedV517 .heroBenefitItem span:last-child{
  max-width: 27ch;
  color: color-mix(in oklab, var(--text) 64%, var(--muted)) !important;
  font-size: .9rem !important;
  line-height: 1.42 !important;
}

/* Right product object: contained, aligned, but no longer pulling the whole hero background apart. */
body.homeRefinedV517 .heroProductStage{
  justify-self: end !important;
  align-self: start !important;
  width: min(100%, 510px) !important;
  max-width: 510px !important;
  margin: clamp(4px, .7vw, 10px) 0 0 !important;
  padding: clamp(8px, 1vw, 12px) !important;
  gap: 0 !important;
  border: 1px solid var(--home-v517-rule) !important;
  border-radius: clamp(24px, 2.8vw, 32px) !important;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--surface) 94%, white 6%),
      color-mix(in oklab, var(--surface2) 78%, transparent)
    ) !important;
  box-shadow: 0 22px 58px rgba(15,23,42,.075) !important;
  overflow: hidden !important;
}

body.homeRefinedV517 .heroProductImage{
  aspect-ratio: 1.62 / 1 !important;
  max-height: 268px !important;
  min-height: 0 !important;
  border-radius: clamp(18px, 2vw, 24px) !important;
  box-shadow: none !important;
}

body.homeRefinedV517 .heroProductImage img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
  transform: none !important;
}

body.homeRefinedV517 .heroProductImage::after{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(15,23,42,.10)) !important;
}

body.homeRefinedV517 .heroCockpitSheet{
  margin: clamp(-22px, -2vw, -14px) clamp(10px, 1.35vw, 16px) clamp(5px, .7vw, 8px) !important;
  padding: clamp(14px, 1.45vw, 18px) clamp(15px, 1.6vw, 20px) !important;
  border: 1px solid color-mix(in oklab, var(--border) 56%, transparent) !important;
  border-radius: clamp(19px, 2.2vw, 25px) !important;
  background: color-mix(in oklab, var(--surface) 92%, white 8%) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.082) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.homeRefinedV517 .previewTitle{
  font-size: clamp(1.08rem, 1.35vw, 1.26rem) !important;
  line-height: 1.22 !important;
}

/* The following section should start as a connected continuation, not after a large blank panel. */
body.homeRefinedV517 .band.startBand{
  margin-top: clamp(18px, 2.4vw, 30px) !important;
  padding-top: clamp(26px, 3vw, 38px) !important;
}

body.homeRefinedV517 .band.startBand .sectionTitle{
  margin-bottom: clamp(16px, 2vw, 24px) !important;
}

body.homeRefinedV517 .band.startBand .sectionTitle h2{
  max-width: 30ch !important;
}

@media (max-width: 1080px){
  body.homeRefinedV517 .hero.heroPanel{
    grid-template-columns: minmax(0, 1fr) minmax(310px, 430px) !important;
    gap: clamp(26px, 4vw, 48px) !important;
  }
  body.homeRefinedV517 .heroBenefitItem{
    padding-inline: 13px !important;
  }
}

@media (max-width: 900px){
  body.homeRefinedV517 .hero.heroPanel{
    grid-template-columns: 1fr !important;
    padding-top: 32px !important;
  }
  body.homeRefinedV517 .hero.heroPanel > div:first-child{
    max-width: none;
  }
  body.homeRefinedV517 .heroProductStage{
    justify-self: start !important;
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    margin-top: 4px !important;
  }
  body.homeRefinedV517 .heroProductImage{
    max-height: none !important;
  }
}

@media (max-width: 760px){
  body.homeRefinedV517 .hero.heroPanel{
    padding: 26px 0 20px !important;
  }
  body.homeRefinedV517 .heroBenefitBand{
    grid-template-columns: 1fr !important;
    margin-top: 18px !important;
    padding-top: 10px !important;
  }
  body.homeRefinedV517 .heroBenefitItem,
  body.homeRefinedV517 .heroBenefitItem:first-child{
    padding: 12px 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid var(--home-v517-rule-soft) !important;
  }
  body.homeRefinedV517 .heroBenefitItem:last-child{
    border-bottom: 0 !important;
  }
  body.homeRefinedV517 .heroBenefitItem span:last-child{
    max-width: 42ch;
  }
  body.homeRefinedV517 .band.startBand{
    margin-top: 12px !important;
    padding-top: 24px !important;
  }
}
