/* HomeDen App — product-specific presentation */

.app-hero {
  background:
    radial-gradient(circle at 82% 26%, rgba(49, 132, 246, .11), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, var(--ds-surface-soft) 100%);
}

.app-hero .detail-hero-grid {
  grid-template-columns: minmax(0, 450px) minmax(0, 440px);
}

.app-hero-media {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-hero-composite {
  display: block;
  width: min(520px, 112%);
  max-width: none;
  height: auto;
}

.app-screen-media {
  min-width: 0;
  margin: 0;
  overflow: visible;
}

.app-screen-media img {
  display: block;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-screen-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 230px));
  align-items: start;
  justify-content: center;
  gap: 28px;
}

.app-screen-pair > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-screen-pair img { width: 100%; }

.app-screen-pair .ios-mockup { width: 160%; margin-inline: -30%; }

.app-screen-pair--composite img {
  width: 160%;
  max-width: none;
  margin-inline: -30%;
}

.app-screen-pair--composite > div:first-child img {
  transform: translateY(-3.5%);
}

.app-screen-single {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-chat-visual {
  width: min(100%, 470px);
  min-height: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-chat-heading {
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--ds-line);
}

.app-chat-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ds-white);
  background: var(--ds-blue);
  font-size: 17px;
  line-height: 1;
  font-weight: var(--type-weight-bold);
}

.app-chat-heading div { display: grid; gap: 3px; }
.app-chat-heading strong { color: var(--ds-ink); font-size: var(--detail-body-1); line-height: var(--detail-line-body-1); font-weight: var(--type-weight-bold); }
.app-chat-heading div span { color: var(--ds-muted); font-size: var(--detail-label); line-height: var(--detail-line-label); }

.app-chat-date {
  align-self: center;
  margin: 26px 0 0;
  color: var(--ds-muted);
  font-size: var(--detail-caption);
  line-height: var(--detail-line-caption);
}

.app-chat-bubble {
  max-width: 82%;
  margin: 18px 0 0;
  padding: 18px 20px;
  font-size: var(--detail-body-2);
  line-height: var(--detail-line-body-2);
  font-weight: var(--type-weight-medium);
}

.app-page .app-chat-bubble { margin-top: 24px; }

.app-chat-bubble--hospital {
  align-self: flex-start;
  color: var(--ds-body);
  border-radius: 6px 20px 20px 20px;
  background: var(--ds-white);
}

.app-chat-bubble--patient {
  align-self: flex-end;
  color: var(--ds-white);
  border-radius: 20px 6px 20px 20px;
  background: var(--ds-blue);
}

.app-page .detail-contact .detail-button--secondary {
  color: var(--ds-white);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .5);
}

.app-page .detail-contact .detail-button--secondary:hover {
  color: var(--ds-white);
  background: rgba(255, 255, 255, .16);
  border-color: var(--ds-white);
}

@media (max-width: 1040px) {
  .app-hero .detail-hero-grid { grid-template-columns: 1fr; }
  .app-hero-media { min-height: 520px; }
  .app-hero-composite { width: min(500px, 86vw); }
  .app-screen-pair { grid-template-columns: repeat(2, minmax(0, 250px)); }
  .app-screen-single .ios-mockup { width: min(360px, 68%); }
  .app-chat-visual { min-height: 460px; }
}

@media (max-width: 640px) {
  .app-hero-media { min-height: 460px; }
  .app-hero-composite { width: min(430px, 112vw); }
  .app-screen-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .app-screen-single .ios-mockup { width: min(330px, 82%); }
  .app-chat-visual { min-height: 420px; }
  .app-chat-bubble { max-width: 88%; padding: 16px 17px; }
}
