/* Product pages inherit navigation and typography from zeopoxa.css. */
.profile-hero {
  position: relative;
  isolation: isolate;
  background: var(--profile-tint);
  border-bottom: 1px solid var(--line);
}
.profile-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgb(255 255 255 / 97%) 3%, rgb(255 255 255 / 90%) 32%, rgb(255 255 255 / 55%) 61%, rgb(255 255 255 / 69%));
  pointer-events: none;
}
.profile-spread {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(2rem, 4vw, 4rem);
}
.catalog-back { margin-bottom: 1.6rem; }
.catalog-back a { color: var(--muted); font-size: .94rem; }
.profile-identity, .profile-actions, .profile-close {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.profile-identity { color: var(--muted); font-weight: 650; margin-bottom: 1rem; }
.identity-icon { border-radius: .65rem; }
.profile-spread h1 { font-size: clamp(2.75rem, 5.5vw, 5.7rem); margin: 0 0 .24em; }
.profile-intro { max-width: 49ch; font-size: clamp(1.04rem, 1.5vw, 1.25rem); color: var(--muted); }
.profile-actions { margin-top: 1.5rem; }
.install {
  display: inline-block;
  padding: .85rem 1.25rem;
  color: white;
  background: var(--profile-accent);
  border-radius: .55rem;
  font-weight: 700;
  text-decoration: none;
}
.install:hover { text-decoration: underline; }
.profile-art {
  display: grid;
  place-items: center;
  border-radius: 1.5rem;
  overflow: hidden;
}
.session-phone { height: clamp(230px, 30vw, 365px); width: auto; margin: 1.3rem; }
.session-phone { filter: drop-shadow(0 8px 10px rgb(17 44 57 / 18%)); }
.store-screen { border-radius: .6rem; }
.detail-section { padding-block: clamp(2.25rem, 4.4vw, 4.5rem); }
.detail-section + .detail-section { border-top: 1px solid var(--line); }
.detail-section > h2, .profile-close h2 { font-size: clamp(1.8rem, 3.5vw, 3.4rem); }
.profile-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 1rem; }
.profile-facts article {
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--profile-accent);
  border-radius: .8rem;
  padding: 1.25rem;
}
.profile-facts h3 { font-size: 1.35rem; }
.profile-facts p { color: var(--muted); margin-bottom: 0; }
.app-profile .gallery a { color: var(--muted); text-decoration: none; }
.app-profile .gallery span { display: block; margin-top: .55rem; font-size: .94rem; }
.guide-shortcuts { display: flex; flex-wrap: wrap; gap: .6rem; }
.guide-shortcuts a { padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 2rem; background: white; }
.profile-bottom { margin-top: 2.5rem; padding-block: 2.4rem; background: var(--profile-tint); }
.profile-close { justify-content: space-between; }
@media (max-width: 680px) {
  .profile-spread { grid-template-columns: 1fr; }
  .profile-art { max-width: 100%; }
  .profile-hero::before {
    background: linear-gradient(180deg, rgb(255 255 255 / 95%) 0%, rgb(255 255 255 / 91%) 45%, rgb(255 255 255 / 62%) 75%);
  }
  .profile-background { object-position: center 50%; }
}

/* Direct links to a feature land on its complete card. */
.app-profile article[id], #screenshots { scroll-margin-top: 1rem; }
.app-profile article[id]:target { outline: 2px solid var(--profile-accent); outline-offset: 3px; }
.heat-feature { grid-column: 1 / -1; grid-template-columns: 1fr 1.15fr; }
.heat-feature figure img { width: 100%; max-height: none; height: auto; border: 0; border-radius: .65rem; }
.heat-options { margin: .8rem 0 1rem; }
.heat-options dt { font-weight: 700; }
.heat-options dd { margin: 0 0 .4rem; }
@media (max-width: 680px) {
  .heat-feature { grid-template-columns: 1fr; }
}

/* Feature previews use separate files so gallery images can be updated independently. */
.option-preview { margin: 1rem 0 0; padding: .85rem; background: var(--profile-tint); border-radius: .65rem; }
.option-preview a { display: block; width: fit-content; max-width: 100%; margin: auto; }
.option-preview img { display: block; width: auto; height: 13rem; max-width: 100%; object-fit: contain; }

/* Shared tracker screenshot layouts. */
:is(.cycling-profile, .running-profile, .pedometer-profile) .profile-hero::before {
  background: linear-gradient(100deg, #fbfcf9fa 8%, #fbfcf9e8 36%, #f6f9f58c 60%, #192d3e38);
}
.app-profile .session-phone:not(.preframed) {
  border: 4px solid #1e303d;
  border-radius: 1.25rem;
  height: clamp(300px, 34vw, 435px);
}
:is(.cycling-profile, .running-profile, .pedometer-profile) .heat-feature {
  background: linear-gradient(110deg, #e1f4ed, #edf7fb);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
:is(.cycling-profile, .running-profile, .pedometer-profile) .heat-feature .story-copy { max-width: 40ch; justify-self: center; }
:is(.cycling-profile, .running-profile, .pedometer-profile) .heat-feature figure img {
  width: auto;
  max-height: 25rem;
  border: 4px solid #263c46;
  border-radius: 1rem;
}
:is(.cycling-profile, .running-profile, .pedometer-profile) .profile-facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
:is(.cycling-profile, .running-profile, .pedometer-profile) .option-preview { background: #eff4f7; }
@media (max-width: 760px) {
  :is(.cycling-profile, .running-profile, .pedometer-profile) .profile-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  :is(.cycling-profile, .running-profile, .pedometer-profile) .heat-feature, :is(.cycling-profile, .running-profile, .pedometer-profile) .profile-facts { grid-template-columns: 1fr; }
  :is(.cycling-profile, .running-profile, .pedometer-profile) .profile-hero::before { background: linear-gradient(#fbfcf9fa, #fbfcf9ed 40%, #f6f9f563); }
}

:is(.cycling-profile, .running-profile, .pedometer-profile) #share {
  grid-column: 1 / -1;
  background: #e9edf9;
}
@media (min-width: 761px) {
  :is(.cycling-profile, .running-profile, .pedometer-profile) #share { grid-template-columns: 1fr 1fr; }
  :is(.cycling-profile, .running-profile, .pedometer-profile) #share .story-copy { justify-self: center; max-width: 40ch; }
  :is(.cycling-profile, .running-profile, .pedometer-profile) #share figure img { max-height: 21rem; }
}

:is(.cycling-profile, .running-profile, .pedometer-profile) .share-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.5rem, 2vw, 1.5rem);
  align-items: start;
}
:is(.cycling-profile, .running-profile, .pedometer-profile) .share-pair img { max-width: 100%; }
@media (max-width: 760px) {
  :is(.cycling-profile, .running-profile, .pedometer-profile) #share { grid-template-columns: minmax(0, 1fr); }
}

.watch-screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 2rem);
  margin-top: 1.5rem;
}
.watch-screens figure { margin: 0; text-align: center; }
.watch-screens a {
  display: block;
  max-width: 13rem;
  margin-inline: auto;
  border-radius: 50%;
  background: #000;
}
.watch-screens img { display: block; width: 100%; height: auto; border-radius: inherit; }
.watch-screens figcaption { margin-block: .75rem; font-weight: 650; }
@media (max-width: 720px) {
  .watch-screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Match the tracker phone bezel on screenshot thumbnails. */
.app-profile .gallery img,
.app-profile .option-preview img {
  box-sizing: border-box;
  border: 4px solid #1e303d;
  border-radius: 1rem;
}
