/* Simple Fitness & Workouts landing page.
 * Palette and components follow the site theme (theme.css) and the orthotics page
 * (thinsole/orthotics/orthotics.css): 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> in index.html when changing this file.
 */

/* ---------- Hero ---------- */
/* Same pattern and image as social-good (social-good/social.css): the site's multipurpose
 * stock hero + dark gradient, .hero-text (theme.css) on top. Swap the url() when the custom
 * fitness-app hero is ready. */
.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;
}

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

/* ---------- Intro (centered, like the orthotics intro block) ---------- */
.fa-intro {
  text-align: center;
  padding: 3rem 0 1rem;
}
.fa-intro .claimText {
  max-width: 62ch;
  margin: 0 auto;
}
.fa-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}
.fa-cta-row .fa-badge img {
  display: block;
  height: 80px; /* Google's badge PNG has built-in padding; 80px reads as ~48px of badge */
  width: auto;
}
.main .fa-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #809fff;
  color: #d6e0f5;
  text-decoration: none;
  font-weight: 500;
}
.main .fa-btn-secondary[hidden] { display: none; } /* feature-poll.js hides it if the poll can't load */
.main .fa-btn-secondary:hover {
  background: rgba(128, 159, 255, 0.12);
}
.fa-note {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ---------- Section headings ---------- */
.fa-section {
  margin-top: 3.5rem;
}
.fa-section > h2.headline {
  text-align: center;
  margin: 0 0 1.5rem;
}

/* ---------- Feature cards ---------- */
.fa-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fa-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 1.25rem 1.4rem;
}
.fa-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #204080;
  color: #d6e0f5;
}
.fa-feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fa-feature h3 {
  font-size: 1.15rem;
  line-height: 1.5rem;
  font-weight: 500;
  margin: 0.9rem 0 0.4rem;
}
.fa-feature p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5rem;
  opacity: 0.88;
}

/* ---------- Text + screenshot rows (zigzag, like orthotics' .zigZagRow) ---------- */
/* Screenshot left/right alternates row to row; on phones the screenshot drops below the text. */
.fa-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;
}
.fa-split:nth-child(even) {
  grid-template-columns: 260px minmax(0, 1fr);
  background: #242a33; /* alternate bands break up the scroll */
}
.fa-split:nth-child(even) .fa-split-img { order: -1; }
.fa-split h2 {
  margin-top: 0;
  font-size: 1.7rem;
  line-height: 1.3;
  font-weight: 500;
}
.fa-split p {
  margin: 0;
  line-height: 1.7;
}
.fa-split-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 0 12px #050a14;
}

/* ---------- Feature poll ---------- */
#feature-poll {
  margin-top: 3.5rem;
  padding: 1.5rem;
  border-radius: 15px;
  background: #242a33;
  border: 1px solid #1a1e24;
  border-top: 3px solid #007acc;
  box-shadow: 0 0 8px #050a14;
  scroll-margin-top: 5rem; /* clear the fixed site header on #feature-poll jumps */
}
#feature-poll[hidden] { display: none; }
#feature-poll h2 { margin-top: 0; font-weight: 500; }
#feature-poll ul { list-style: none; margin: 0; padding: 0; }
#feature-poll .fp-idea { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0.9rem 1rem; margin-top: 0.75rem; border-radius: 10px; background: #1d2129; border: 1px solid #1a1e24; }
#feature-poll .fp-text { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
#feature-poll .fp-title { font-weight: 700; }
#feature-poll .fp-desc { margin: 0.25rem 0 0; font-size: 0.95rem; opacity: 0.85; }
#feature-poll .fp-votes { font-size: 0.9rem; opacity: 0.85; margin-top: 0.25rem; }
#feature-poll .fp-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.7rem 1.2rem; border-radius: 999px; border: none; background: #007acc; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
#feature-poll .fp-btn:hover { background: #0066ab; }
#feature-poll .fp-btn[disabled] { background: #434b5b; opacity: 0.8; cursor: default; }
#feature-poll .fp-btn:focus-visible, #feature-poll input:focus-visible, #feature-poll textarea:focus-visible { outline: 3px solid #809fff; outline-offset: 2px; }
#feature-poll form { margin-top: 1.5rem; }
#feature-poll label { display: block; font-weight: 700; margin-top: 0.75rem; }
#feature-poll input[type=text], #feature-poll textarea { box-sizing: border-box; width: 100%; max-width: 100%; margin-top: 0.35rem; padding: 0.6rem 0.75rem; border-radius: 8px; border: 1px solid #434b5b; background: #1d2129; color: inherit; font: inherit; }
#feature-poll textarea { min-height: 5rem; resize: vertical; }
#feature-poll .fp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#feature-poll .fp-shipped li { margin-top: 0.5rem; }
#feature-poll .fp-status { min-height: 1.4em; margin: 0.75rem 0 0; font-size: 0.95rem; }
#feature-poll .fp-turnstile { margin-top: 0.75rem; }
#feature-poll .fp-idea .fp-turnstile { flex-basis: 100%; margin-top: 0; }
#feature-poll .fp-turnstile:empty { display: none; }
#feature-poll .fp-votes[hidden], #feature-poll .fp-list[hidden] { display: none; }
#feature-poll .fp-submit-row { margin: 0.75rem 0 0; }

/* ---------- FAQ (native <details>: no JS, keyboard accessible, answers stay in the DOM) ---------- */
.fa-faq-group {
  margin: 2rem 0 0.25rem;
  font-size: 0.85rem;
  line-height: 1.2rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #809fff;
}
.fa-faq details {
  margin-top: 0.6rem;
  background: #242a33;
  border: 1px solid #1a1e24;
  border-radius: 10px;
}
.fa-faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 500;
}
.fa-faq summary::-webkit-details-marker { display: none; }
.fa-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;
}
.fa-faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.fa-faq summary:focus-visible {
  outline: 3px solid #809fff;
  outline-offset: 2px;
  border-radius: 10px;
}
.fa-faq details p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.fa-more {
  max-width: 62ch;
  margin: 2.5rem auto 0;
  text-align: center;
}

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

@media screen and (max-width: 576px) {
  .fa-intro { padding-top: 2rem; }
  .fa-intro .claimText { text-align: left; } /* long centered lines are hard to read on phones */
  .fa-section > h2.headline { font-size: 1.8rem; }
}
