/* Patient app page: quiet editorial framing for real product screens */
.app-page {
  --app-bronze: #564929;
  --app-alabaster: #f9f8f7;
  --app-stone: #e8e1d4;
  color: var(--app-bronze);
  background: var(--app-alabaster);
}

.app-hero {
  top: 59px;
  min-height: min(790px, calc(100svh - 98px));
  color: var(--app-bronze);
  background: var(--app-alabaster);
}

.app-hero .hero-art {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: stretch;
}

.app-hero .hero-art > :first-child {
  padding-top: clamp(44px, 7vw, 88px);
  padding-bottom: clamp(44px, 7vw, 88px);
  padding-right: clamp(24px, 5vw, 72px);
}

.app-hero .eyebrow,
.app-hero .display,
.app-hero .lead,
.app-hero .body {
  color: var(--app-bronze);
}

.app-hero .display {
  max-width: 12ch;
  font-family: "Inter", sans-serif;
  font-size: clamp(27px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.03;
  text-wrap: balance;
}

.app-hero .lead {
  max-width: 36ch;
  font-size: 17px;
  line-height: 1.48;
}

.app-hero .body {
  max-width: 49ch;
  color: rgb(86 73 41 / 76%);
  font-size: 14px;
  line-height: 1.7;
}

.app-hero .btn {
  min-height: 46px;
  border-radius: 999px;
  color: var(--app-bronze);
  border-color: color-mix(in srgb, var(--app-bronze) 38%, transparent);
  white-space: nowrap;
}

.app-hero .btn-fill {
  color: var(--app-alabaster);
  background: var(--app-bronze);
  border-color: var(--app-bronze);
}

.app-hero .btn-fill:hover {
  color: var(--app-alabaster);
  background: #35271b;
  border-color: #35271b;
}

.app-hero .app-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding: clamp(24px, 4vw, 58px);
  overflow: hidden;
  background: var(--app-alabaster);
}

.app-phone-wrap::before {
  position: absolute;
  inset: 7% 8%;
  border: 1px solid rgba(74, 56, 40, .12);
  content: "";
  pointer-events: none;
}

.app-phone {
  position: relative;
  width: min(100%, 650px);
  margin: 0;
  isolation: isolate;
}

.app-phone img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 36px rgba(51, 37, 23, .12));
  transition: transform .7s cubic-bezier(.2,.65,.3,1);
}

.app-phone:hover img {
  transform: translateY(-4px);
}

.app-hero + .section {
  padding-block: clamp(64px, 8vw, 112px) !important;
  background: var(--app-alabaster);
  color: var(--app-bronze);
}

.app-page .section {
  background: var(--app-alabaster);
  color: var(--app-bronze);
}

.app-page .section h2,
.app-page .section h3 {
  color: var(--app-bronze);
  font-family: "Inter", sans-serif;
  font-size: var(--public-section-heading-size);
  font-weight: 500;
  letter-spacing: -.035em;
}

.app-page .section p {
  color: rgb(86 73 41 / 76%);
}

.app-page #download h2 {
  font-size: var(--public-section-heading-size) !important;
}

.app-hero + .section .section-head {
  max-width: 760px !important;
  margin-bottom: clamp(40px, 7vw, 82px) !important;
}

.app-hero + .section .section-head h2 {
  max-width: 18ch !important;
  color: var(--app-bronze);
  font-family: "Inter", sans-serif;
  font-size: var(--public-section-heading-size) !important;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.app-hero + .section .section-head p {
  max-width: 56ch !important;
  color: rgb(86 73 41 / 76%) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.app-features {
  display: flex;
  flex-direction: column;
}

.app-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 8vw, 116px);
  align-items: center;
  padding: clamp(52px, 7vw, 92px) clamp(4px, 2vw, 30px);
  border-top: 1px solid rgba(74, 56, 40, .16);
}

.app-feature:last-child {
  border-bottom: 1px solid rgba(74, 56, 40, .16);
}

.app-feature.flip .app-feat-img { order: 2; }
.app-feature.flip .app-feat-body { order: 1; }

.app-feat-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  padding: clamp(24px, 4vw, 50px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(249, 248, 247, .96) 0, rgba(249, 248, 247, .55) 38%, transparent 70%),
    #eee9df;
}

.app-feat-img::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(74, 56, 40, .09);
  content: "";
  pointer-events: none;
}

.app-feat-img img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 300px);
  max-width: 300px;
  height: auto;
  border: 1px solid rgba(74, 56, 40, .11);
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(56, 42, 27, .15), 0 3px 10px rgba(56, 42, 27, .08);
  transition: transform .65s cubic-bezier(.2,.65,.3,1), box-shadow .65s ease;
}

.app-feature:hover .app-feat-img img {
  transform: translateY(-4px);
  box-shadow: 0 30px 58px rgba(56, 42, 27, .18), 0 3px 10px rgba(56, 42, 27, .08);
}

.app-feat-num {
  display: block;
  margin: 0 0 17px;
  color: var(--app-bronze);
  font-family: "Styrene B", "Inter", sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.app-feat-title {
  max-width: 19ch;
  margin: 0 0 15px;
  color: var(--app-bronze, #564929);
  font-family: "Inter", sans-serif;
  font-size: var(--public-section-heading-size);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.12;
  text-wrap: balance;
}

.app-feat-desc {
  max-width: 54ch;
  margin: 0;
  color: rgb(86 73 41 / 76%);
  font-size: 14px;
  line-height: 1.75;
}

.app-feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 23px;
}

.app-feat-tag {
  padding: 6px 12px;
  border: 1px solid rgba(74, 56, 40, .19);
  border-radius: 999px;
  color: var(--app-bronze, #564929);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  line-height: 1.3;
}

@media (max-width: 880px) {
  .app-hero { min-height: unset; }
  .app-hero .hero-art { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  .app-hero .hero-art > :first-child {
    padding: 52px 28px 52px max(22px, var(--gut));
  }
  .app-hero .app-phone-wrap { padding: 26px 16px; }
  .app-feature { gap: 38px; }
  .app-feat-img { min-height: 340px; padding: 28px; }
}

@media (max-width: 680px) {
  .app-hero {
    position: relative;
    top: auto;
  }
  .app-hero .hero-art { grid-template-columns: 1fr !important; }
  .app-hero .hero-art > :first-child {
    padding: 42px 22px 35px;
  }
  .app-hero .display { max-width: 13ch; font-size: clamp(22px, 6.8vw, 27px); }
  .app-page .section h2,
  .app-page .section h3 { font-size: var(--public-section-heading-size); }
  .app-hero .lead { font-size: 16px; }
  .app-hero .btn-row { margin-top: 22px !important; }
  .app-hero .app-phone-wrap {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0 22px 28px;
    aspect-ratio: auto;
  }
  .app-phone { width: min(100%, 490px); }
  .app-feature {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 38px 0 44px;
  }
  .app-feature.flip .app-feat-img,
  .app-feature.flip .app-feat-body { order: initial; }
  .app-feat-img { min-height: 0; padding: 28px; }
  .app-feat-img img { width: min(76%, 260px); border-radius: 25px; }
  .app-feat-title { font-size: var(--public-section-heading-size); }
}

@media (max-width: 380px) {
  .app-hero .btn { padding-inline: 17px; font-size: 12px; }
  .app-feat-img { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-phone img,
  .app-feat-img img { transition: none; }
  .app-phone:hover img,
  .app-feature:hover .app-feat-img img { transform: none; }
}
