.detail-page {
  width: min(1180px, 100% - 40px);
  margin: 48px auto 110px;
}
.detail-page > .back {
  display: inline-block;
  margin-bottom: 8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0 78px;
}
.detail-grid h1 {
  margin: 14px 0 24px;
  font-size: clamp(4rem, 7vw, 7.4rem);
  line-height: .92;
}
.detail-grid .lead {
  max-width: 590px;
  color: var(--muted);
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.72;
}
.detail-art {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: 28px;
  position: relative;
  min-height: 0;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.detail-art:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--lime) 62%, var(--line));
  box-shadow: 0 30px 80px #00000066;
}
.detail-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  display: block;
  background: transparent;
  transition: transform .55s ease;
}
.detail-art:hover img { transform: scale(1.025); }
.detail-art .status-pill {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent-ink, var(--lime));
  padding: 9px 12px;
  font-size: .72rem;
  font-weight: 800;
}
.app-compat-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 10px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--lime);
  color: #132014;
  transform: rotate(-.8deg) scale(1.01);
}
.app-compat-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  padding: 15px 0;
  will-change: transform;
  animation: app-compat-marquee 28s linear infinite;
}
.app-compat-marquee-group {
  display: flex;
  flex: none;
  align-items: center;
}
.app-compat-marquee span {
  margin-right: 34px;
  letter-spacing: .11em;
  font-size: .76rem;
  font-weight: 900;
}
@keyframes app-compat-marquee { to { transform: translateX(-50%); } }
.detail-page > section {
  position: relative;
  border: 0;
  padding: 50px 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.detail-page > section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--line) 60%, transparent) 14%, color-mix(in srgb, var(--line) 76%, transparent) 50%, color-mix(in srgb, var(--line) 60%, transparent) 86%, transparent 100%);
  opacity: .58;
}
.detail-page > section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, white 30%, var(--lime)) 0 7%, var(--lime) 8% 20%, color-mix(in srgb, var(--lime) 45%, transparent) 38%, transparent 72%);

  opacity: 0;
  pointer-events: none;
  background-size: 92px 18px;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  animation: app-divider-pulse 4.35s linear infinite;
}
.app-compat-marquee + section::after { display: none; }
.detail-page > section:nth-of-type(odd)::after { animation-direction: reverse; }
@keyframes app-divider-pulse {
  0% { transform: translate(0, -50%); opacity: 0; }
  3% { transform: translate(0, -50%); opacity: .95; }
  97% { transform: translate(calc(100% - 92px), -50%); opacity: .95; }
  100% { transform: translate(calc(100% - 92px), -50%); opacity: 0; }
}
.detail-page > section > .eyebrow { margin-bottom: 10px; }
.detail-page > section > h2,
.detail-page > section .app-compat-heading {
  max-width: 860px;
  margin: 10px 0 20px;
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.04em;
}
.detail-section > p:not(.eyebrow),
.ai-detail > p:not(.eyebrow),
.data-section > p:not(.eyebrow),
.feature-section > p:not(.eyebrow),
.resource-section > p:not(.eyebrow),
.detail-note {
  color: var(--muted);
  max-width: 880px;
  font-size: 1rem;
  line-height: 1.78;
}
.ai-detail {
  border-left: 4px solid var(--coral) !important;
  padding-left: 24px !important;
}
.feature-list,
.feature-list.expanded {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-height: none !important;
  overflow: visible !important;
}
.feature-list > div {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 22px 19px;
  min-height: 150px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.feature-list > div:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--lime) 58%, var(--line));
  box-shadow: 0 18px 42px #00000038;
  background: color-mix(in srgb, var(--surface) 88%, var(--lime));
}
.feature-list b {
  display: block;
  color: var(--accent-ink, var(--lime));
  letter-spacing: .1em;
  font-size: .68rem;
  margin-bottom: 28px;
}
.feature-list span {
  display: block;
  font-size: .94rem;
  line-height: 1.5;
}
.feature-toggle { margin-top: 18px; }
.resource-section .release-group,
.resource-section > .resource-links {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  padding: 22px 20px;
  margin-top: 14px;
}
.resource-section .resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.resource-section .release-group > p {
  margin: 0 0 12px;
  color: var(--muted);
}
.resource-section .release-group strong { color: var(--ink); }
.resource-section .release-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.6;
}
.detail-page .action-row a,
.detail-page .resource-links a,
.detail-page .feature-toggle {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.detail-page .action-row a:hover,
.detail-page .resource-links a:hover,
.detail-page .feature-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px #00000035;
}
.detail-page .action-row a:not(.secondary):hover {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--lime) 28%, transparent);
}
.detail-note {
  margin: 18px 0 0;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  font-size: .8rem;
  line-height: 1.6;
}
.app-compat-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2,.75,.25,1);
}
.app-compat-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (width <= 850px) {
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-list,
  .feature-list.expanded { grid-template-columns: repeat(2, 1fr); }
}
@media (width <= 640px) {
  .detail-page {
    width: min(100% - 28px, 760px);
    margin-top: 31px;
  }
  .detail-grid { padding: 35px 0 52px; }
  .detail-grid h1 { font-size: clamp(2.5rem, 12vw, 4.9rem); }
  .app-compat-marquee-track { padding: 13px 0; }
  .app-compat-marquee span { margin-right: 26px; font-size: .66rem; }
  .detail-page > section { padding: 40px 0; }
  .detail-page > section > h2,
  .detail-page > section .app-compat-heading {
    font-size: clamp(2.05rem, 9vw, 2.8rem);
    line-height: 1.04;
  }
  .detail-page > section::after { height: 15px; background-size: 70px 15px; }
  .feature-list,
  .feature-list.expanded { grid-template-columns: 1fr; }
  .ai-detail { padding-left: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .app-compat-marquee-track { animation: none; transform: none; }
  .detail-page > section::after { animation: none; opacity: .55; left: 0; background-position: center; transform: translateY(-50%); }
  .detail-art,
  .detail-art img,
  .feature-list > div,
  .detail-page .action-row a,
  .detail-page .resource-links a,
  .detail-page .feature-toggle,
  .app-compat-reveal { transition: none; transform: none; }
  .app-compat-reveal { opacity: 1; }
}

/* Shared product-home presentation used by HealthAtlas while preserving its current visual layout. */
.health-product {
  width: min(1180px, 100% - 40px);
  margin: 48px auto 110px;
}
.health-hero {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0 78px;
}
.health-hero h1 {
  margin: 14px 0 24px;
  font-size: clamp(4rem, 7vw, 7.4rem);
}
.health-hero-copy {
  max-width: 590px;
  color: var(--muted);
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.72;
}
.health-hero-media {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: 28px;
  position: relative;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.health-hero-media:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--lime) 62%, var(--line));
  box-shadow: 0 30px 80px #00000066;
}
.health-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}
.health-hero-media:hover img { transform: scale(1.025); }
.health-version {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent-ink, var(--lime));
  padding: 9px 12px;
  font-size: .72rem;
  font-weight: 800;
}
.health-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 10px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--lime);
  color: #132014;
  transform: rotate(-.8deg) scale(1.01);
}
.health-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  padding: 15px 0;
  will-change: transform;
  animation: health-marquee 28s linear infinite;
}
.health-marquee-group { display: flex; flex: none; align-items: center; }
.health-marquee span {
  margin-right: 34px;
  letter-spacing: .11em;
  font-size: .76rem;
  font-weight: 900;
}
@keyframes health-marquee { to { transform: translateX(-50%); } }
.health-section { position: relative; border-top: 0; padding: 50px 0; }
.health-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--line) 60%, transparent) 14%, color-mix(in srgb, var(--line) 76%, transparent) 50%, color-mix(in srgb, var(--line) 60%, transparent) 86%, transparent 100%);
  opacity: .58;
}
.health-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, white 30%, var(--lime)) 0 7%, var(--lime) 8% 20%, color-mix(in srgb, var(--lime) 45%, transparent) 38%, transparent 72%);

  opacity: 0;
  pointer-events: none;
  background-size: 92px 18px;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  animation: health-divider-pulse 4.35s linear infinite;
}
.health-marquee + .health-section::after { display: none; }
.health-section:nth-of-type(odd)::after { animation-direction: reverse; }
@keyframes health-divider-pulse {
  0% { transform: translate(0, -50%); opacity: 0; }
  3% { transform: translate(0, -50%); opacity: .95; }
  97% { transform: translate(calc(100% - 92px), -50%); opacity: .95; }
  100% { transform: translate(calc(100% - 92px), -50%); opacity: 0; }
}
.health-section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  max-width: 940px;
  margin-bottom: 34px;
}
.health-section h2 {
  max-width: 860px;
  margin: 10px 0 0;
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  line-height: 1.02;
}
.health-section-intro,
.health-copy p {
  color: var(--muted);
  margin: 0;
  max-width: 880px;
  font-size: 1rem;
  line-height: 1.78;
}
.health-copy { display: grid; gap: 18px; max-width: 880px; }
.health-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.health-step,
.health-feature,
.health-privacy-card,
.health-download { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease; }
.health-step {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 23px 20px;
  min-height: 180px;
}
.health-step:hover,
.health-feature:hover,
.health-privacy-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--lime) 58%, var(--line));
  box-shadow: 0 18px 42px #00000038;
}
.health-step:hover,
.health-feature:hover { background: color-mix(in srgb, var(--surface) 88%, var(--lime)); }
.health-step b { display: block; color: var(--accent-ink, var(--lime)); letter-spacing: .1em; font-size: .72rem; margin-bottom: 34px; }
.health-step h3 { margin: 0 0 9px; font-size: 1.3rem; }
.health-step p { color: var(--muted); margin: 0; font-size: .9rem; line-height: 1.55; }
.health-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.health-shot {
  border: 1px solid var(--line);
  border-radius: 22px;
  position: relative;
  transform: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: border-color .28s ease, box-shadow .28s ease;
}
.health-shot:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--lime) 62%, var(--line));
  box-shadow: 0 24px 60px #00000052;
  background: transparent;
}
.health-shot-link { display: block; overflow: visible; background: transparent; transform: none; }
.health-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  transform: none;
  filter: none;
  background: transparent;
  transition: none;
}
.health-shot:hover img { transform: none; filter: none; }
.health-shot figcaption { padding: 17px 18px 19px; background: var(--surface); border-radius: 0 0 21px 21px; }
.health-shot strong { display: block; font-size: .98rem; }
.health-shot span { display: block; color: var(--muted); margin-top: 6px; font-size: .84rem; line-height: 1.5; }
.health-shot .health-shot-open { color: var(--accent-ink, var(--lime)); margin-top: 11px; font-size: .76rem; font-weight: 800; letter-spacing: .02em; }
.health-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.health-feature {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 22px 19px;
  min-height: 150px;
}
.health-feature b { color: var(--accent-ink, var(--lime)); letter-spacing: .1em; font-size: .68rem; }
.health-feature p { margin: 28px 0 0; font-size: .94rem; line-height: 1.5; }
.health-privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.health-privacy-card { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 26px 23px; }
.health-privacy-card h3 { margin: 0 0 10px; font-size: 1.4rem; }
.health-privacy-card p { color: var(--muted); margin: 0; font-size: .93rem; line-height: 1.65; }
.health-download { border: 1px solid var(--line); background: var(--surface); border-radius: 24px; padding: 30px; }
.health-download:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--lime) 48%, var(--line));
  box-shadow: 0 20px 54px #0000003d;
}
.health-download-top { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.health-download h2 { margin-top: 9px; }
.health-release-line { color: var(--muted); margin: 0 0 7px; font-size: .9rem; }
.health-release-line strong { color: var(--ink); }
.health-note { color: var(--muted); max-width: 780px; margin: 24px 0 0; font-size: .8rem; line-height: 1.6; }
.health-ai { border-left: 4px solid var(--coral); }
.health-ai .health-copy { max-width: 880px; }
.health-product .action-row a,
.health-product .resource-links a { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease; }
.health-product .action-row a:hover,
.health-product .resource-links a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #00000035; }
.health-product .action-row a:not(.secondary):hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--lime) 28%, transparent); }
.health-product .action-row .secondary:hover,
.health-product .resource-links a:hover { border-color: var(--accent-ink, var(--lime)); color: var(--accent-ink, var(--lime)); }
.health-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2,.75,.25,1);
}
.health-reveal.is-visible { opacity: 1; transform: translateY(0); }
.health-shot.health-reveal { opacity: 0; transform: none; transition: opacity .62s ease, border-color .28s ease, box-shadow .28s ease; }
.health-shot.health-reveal.is-visible { opacity: 1; transform: none; }
@media (width <= 850px) {
  .health-hero { grid-template-columns: 1fr; gap: 28px; }
  .health-steps { grid-template-columns: repeat(2, 1fr); }
  .health-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (width <= 640px) {
  .health-product { width: min(100% - 28px, 760px); margin-top: 31px; }
  .health-hero { padding: 35px 0 52px; }
  .health-hero h1 { font-size: clamp(2.5rem, 12vw, 4.9rem); }
  .health-section h2 { font-size: clamp(2.05rem, 9vw, 2.8rem); line-height: 1.04; }
  .health-marquee-track { padding: 13px 0; }
  .health-marquee span { margin-right: 26px; font-size: .66rem; }
  .health-section { padding: 40px 0; }
  .health-section-heading { gap: 17px; margin-bottom: 26px; }
  .health-section::after { height: 15px; background-size: 70px 15px; }
  .health-steps,
  .health-gallery,
  .health-feature-grid,
  .health-privacy { grid-template-columns: 1fr; }
  .health-step { min-height: 0; }
  .health-step b { margin-bottom: 18px; }
  .health-download { padding: 23px 19px; }
  .health-download-top { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .health-marquee-track { animation: none; transform: none; }
  .health-section::after { animation: none; opacity: .55; left: 0; background-position: center; transform: translateY(-50%); }
  .health-hero-media,
  .health-hero-media img,
  .health-shot,
  .health-shot img,
  .health-step,
  .health-feature,
  .health-privacy-card,
  .health-download,
  .health-product .action-row a,
  .health-product .resource-links a,
  .health-reveal { transition: none; transform: none; }
  .health-reveal { opacity: 1; }
}
