.app-detail-hero {
  --app-detail-surface: #fff;
  --app-detail-border: #e1e8ee;
  --app-detail-ink: #1a2930;
  --app-detail-muted: #455861;
  container-type: inline-size;
  width: 100%;
  min-width: 0;
  margin-bottom: 1em;
  border: 1px solid var(--app-detail-border);
  border-radius: 16px;
  background: var(--app-detail-surface);
  color: var(--app-detail-ink);
  box-shadow: 0 3px 14px #243d4b08;
}

.app-detail-hero *,
.app-detail-hero *::before,
.app-detail-hero *::after {
  box-sizing: border-box;
}

.app-detail-hero .app-detail-hero-cover {
  position: relative;
  height: 80px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(110deg, #e8f3ff, #f1f7fb 52%, #edf6d8);
}

.app-detail-hero .app-detail-hero-cover::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 240px;
  right: -80px;
  top: -166px;
  border: 30px solid #ffffff50;
  border-radius: 50%;
  transform: rotate(-15deg);
}

.app-detail-hero .app-detail-hero-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, #5caeed60, #a4d6b540, #c5df7660);
}

.app-detail-hero .app-detail-hero-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 0 24px 24px;
}

.app-detail-hero .app-detail-hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 96px;
  margin-top: -32px;
  padding: 18px;
  border: 1px solid var(--app-detail-border);
  border-radius: 12px;
  background: #fff;
  color: #1a2930;
  box-shadow: 0 4px 14px #243d4b0a;
}

.app-detail-hero .app-detail-hero-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-detail-hero .app-detail-hero-brand.has-icon img {
  width: 60px;
  height: 60px;
}

.app-detail-hero .app-detail-hero-brand > span {
  max-width: 100%;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.app-detail-hero .app-detail-hero-copy {
  min-width: 0;
  padding-top: 18px;
}

.app-detail-hero h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.app-detail-hero .app-detail-hero-description {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.app-detail-hero .app-detail-hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.app-detail-hero .app-detail-hero-benefits li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--app-detail-muted);
  font-size: 12px;
  line-height: 1.4;
}

.app-detail-hero .app-detail-hero-benefits svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 50%;
  background: #edf5e6;
  fill: none;
  stroke: #507b38;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@container (max-width: 600px) {
  .app-detail-hero .app-detail-hero-cover {
    height: 64px;
  }

  .app-detail-hero .app-detail-hero-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 0 18px 20px;
  }

  .app-detail-hero .app-detail-hero-brand {
    height: 82px;
    margin-top: -28px;
    padding: 14px;
  }

  .app-detail-hero .app-detail-hero-brand.has-icon img {
    width: 54px;
    height: 54px;
  }

  .app-detail-hero .app-detail-hero-copy {
    padding-top: 0;
  }

  .app-detail-hero h1 {
    font-size: 22px;
  }

  .app-detail-hero .app-detail-hero-benefits {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 16px;
  }
}

:is(.dark, [data-theme-mode="dark"]) .app-detail-hero {
  --app-detail-surface: #1b242b;
  --app-detail-border: #35424c;
  --app-detail-ink: #e8eff3;
  --app-detail-muted: #c0ccd4;
}

:is(.dark, [data-theme-mode="dark"]) .app-detail-hero .app-detail-hero-cover {
  background: linear-gradient(110deg, #20394c, #263a41 52%, #34452f);
}
