/* Shared product-page styles: apps hub (/products/apps/), pedometer, wearables.
 * Same palette and hero as the fitness app page (apps/fitness-app/fitness-app.css) and the
 * site theme: base #1d2129, cards #242a33, card border #1a1e24, text #d6e0f5, links #809fff,
 * navy #204080, CTA blue #007acc, shadow #050a14.
 * Cached 1 year (immutable) via _headers: bump ?v= on the <link> when changing this file.
 */

/* ---------- Hero (site's multipurpose stock image, as on social-good and the fitness app page) ---------- */
.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)),
    url("/assets/biotechhero.webp");
  height: 30vh;
  min-height: 220px;
  max-height: 400px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: block;
}

.ap-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  box-sizing: border-box;
}

/* ---------- Intro ---------- */
.ap-intro {
  text-align: center;
  padding: 3rem 0 0.5rem;
}
.ap-intro .claimText {
  max-width: 62ch;
  margin: 0 auto;
}
.ap-intro-ctas {
  justify-content: center;
}

.ap-section {
  margin-top: 3.5rem;
}
.ap-section > h2.headline {
  text-align: center;
  margin: 0 0 1.5rem;
}

/* ---------- Highlight panel ---------- */
.ap-panel {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 15px;
  background: #242a33;
  border: 1px solid #1a1e24;
  border-top: 3px solid #204080;
  box-shadow: 0 0 8px #050a14;
}
.ap-panel h2 {
  margin-top: 0;
  font-weight: 500;
}
.ap-panel .claimText {
  max-width: 62ch;
  margin: 0 auto;
}
.ap-panel .ap-panel-points {
  padding-top: 1.25rem;
}

/* ---------- App cards ---------- */
.ap-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.ap-card {
  display: flex;
  flex-direction: column;
  background: #242a33;
  border: 1px solid #1a1e24;
  border-radius: 15px;
  box-shadow: 0 0 8px #050a14;
  overflow: hidden;
}
.ap-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.ap-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}
.ap-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.8rem;
  font-weight: 500;
}
.ap-card .claimText {
  margin: 0;
}
.ap-checks {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  line-height: 1.6;
}
.ap-checks li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.6rem;
}
.ap-checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #809fff;
  font-weight: 700;
}
.ap-checks .ap-checks-label {
  padding-left: 0;
  font-weight: 700;
}
.ap-checks .ap-checks-label::before { content: none; }
.ap-card-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: auto; /* pin CTAs to the card bottom so both cards line up */
  padding-top: 1.25rem;
}
.ap-card-ctas .ap-badge img {
  display: block;
  height: 72px; /* Google's badge PNG has built-in padding */
  width: auto;
}
.main .ap-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: #007acc;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.main .ap-btn:hover {
  background: #0066ab;
}
.ap-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- Prose ---------- */
.ap-prose {
  max-width: 62ch;
  margin: 3.5rem auto 0;
}
.ap-prose p {
  line-height: 1.8;
}

/* ---------- Left-aligned panel variant (lists inside a panel) ---------- */
.ap-panel-left {
  text-align: left;
}
.ap-panel-left > h2,
.ap-panel-left > p,
.ap-panel-left > ul {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}
.ap-panel-left > h2 { text-align: center; }

/* ---------- Feature cards (same look as the fitness app page's feature grid) ---------- */
.ap-lead {
  max-width: 62ch;
  margin: 0 auto 1.5rem;
  text-align: center;
}
.ap-label {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #809fff;
  text-align: center;
}
.ap-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ap-feature {
  background-color: #242a33;
  border: 1px solid #1a1e24;
  border-top: 3px solid #204080;
  border-radius: 15px;
  box-shadow: 0 0 8px #050a14;
  padding: 1.25rem;
}
.ap-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #204080;
  color: #d6e0f5;
}
.ap-feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ap-feature p {
  margin: 0.9rem 0 0;
  font-size: 1.05rem;
  line-height: 1.5rem;
  font-weight: 500;
}
/* Titled feature cards (h3 + body), two across: for longer card text */
.ap-features.ap-features-wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.ap-feature h3 {
  margin: 0.9rem 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.5rem;
  font-weight: 500;
}
.ap-feature h3 + p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.9;
}

/* "In Development"-style status pill next to an H1 */
.ap-status {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #809fff;
  color: #809fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: none;
}

/* Brand sign-off line inside a panel */
.ap-tagline {
  margin: 1.5rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #809fff;
}

.ap-after {
  max-width: 62ch;
  margin: 1.25rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ---------- Text + screenshot rows (zigzag; alternation is local to .ap-splits) ---------- */
.ap-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2rem 3rem;
  align-items: center;
  margin-top: 3.5rem;
  padding: 2rem;
  border-radius: 15px;
}
.ap-split.ap-split-flip {
  grid-template-columns: 260px minmax(0, 1fr);
  background: #242a33;
}
.ap-split.ap-split-flip .ap-split-img { order: -1; }
.ap-split h2 {
  margin-top: 0;
  font-size: 1.7rem;
  line-height: 1.3;
  font-weight: 500;
}
.ap-split p {
  line-height: 1.7;
}
.ap-split p:last-child { margin-bottom: 0; }
.ap-split-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 0 12px #050a14;
}

/* ---------- Mid-page CTA band ---------- */
.ap-cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-top: 3.5rem;
  padding: 2rem 1.5rem;
  border-radius: 15px;
  background: #242a33;
  border: 1px solid #1a1e24;
  border-top: 3px solid #007acc;
  box-shadow: 0 0 8px #050a14;
}
.ap-cta-band img.ap-cta-art {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
}
.ap-cta-band .ap-badge img {
  display: block;
  height: 80px;
  width: auto;
}

/* ---------- FAQ (native <details>: no JS, keyboard accessible, answers stay in the DOM) ---------- */
.ap-faq {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.ap-faq details {
  margin-top: 0.6rem;
  background: #242a33;
  border: 1px solid #1a1e24;
  border-radius: 10px;
}
.ap-faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 500;
}
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #809fff;
  border-bottom: 2px solid #809fff;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease-out;
}
.ap-faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.ap-faq summary:focus-visible {
  outline: 3px solid #809fff;
  outline-offset: 2px;
  border-radius: 10px;
}
.ap-faq details p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ---------- Link list ---------- */
.ap-links {
  max-width: 62ch;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.ap-links li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.6rem;
  border-bottom: 1px solid #2c3340;
  line-height: 1.6;
}
.ap-links li:last-child { border-bottom: none; }
.ap-links li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: #809fff;
}

.ap-availability {
  margin-top: 3rem;
  text-align: center;
  opacity: 0.8;
}

@media screen and (max-width: 768px) {
  .ap-split,
  .ap-split.ap-split-flip {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.5rem 1rem;
  }
  .ap-split .ap-split-img,
  .ap-split.ap-split-flip .ap-split-img {
    order: 0;
    max-width: 240px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 576px) {
  .hero-text { font-size: 2.1rem; } /* theme.css's 3rem wraps two-line taglines to four lines on phones */
  .ap-intro { padding-top: 2rem; }
  .ap-intro .claimText { text-align: left; }
  .ap-section > h2.headline { font-size: 1.8rem; }
  .ap-panel { text-align: left; padding: 1.5rem 1.1rem; }
  /* 2x2 instead of four full-width stacked cards */
  .ap-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .ap-feature { padding: 1rem 0.9rem; }
  .ap-feature p { font-size: 0.95rem; line-height: 1.35rem; }
}
