/* Below-the-fold and inner-page-body styles: everything NOT needed to
   render a page's header/hero correctly on first paint. Loaded async (see
   BaseHead.astro) so it never blocks first paint; a brief unstyled moment
   for content the visitor hasn't scrolled to yet is an acceptable trade.
   Critical, above-the-fold rules live in src/styles/critical.css instead. */

/* .grid and .card moved to critical.css: they render close enough to the
   fold on /features and /support (a card grid right below a compact hero)
   that loading them async caused a real, measured CLS (unstyled cards
   snapping into their grid/border/padding once this file arrived). */

/* Pastel panels used by feature rows */
.panel {
  border-radius: var(--r-xl);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-mint { background: var(--mint); }
.panel-sky { background: #e3f2fb; }
.panel-sun { background: var(--cream-warm); }

.phone-full {
  border-bottom: 9px solid #24321f;
  border-radius: 44px;
  box-shadow: 0 14px 34px rgb(15 55 25 / 0.18);
}

/* Product gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }
.shot { text-align: center; }
.shot .phone { width: min(250px, 78vw); }
.shot h3 { margin-top: 1.1rem; }
.shot p { max-width: 34ch; margin-inline: auto; }

/* FAQ accordion: pure details/summary so every answer is crawlable, no JS */
.faq { display: grid; gap: 0.9rem; max-width: 760px; margin-inline: auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.4rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.06rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 900; color: var(--teal); font-size: 1.3rem; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0.8rem 0 0.2rem; color: var(--ink-soft); font-weight: 600; }

/* Blog teaser cards */
.teaser-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.teaser-head a { font-weight: 800; text-decoration: none; }
.teaser-head a:hover { text-decoration: underline; }

/* Habit sticker strip */
.strip-section { padding: 2.5rem 0 1rem; overflow: hidden; }
.strip {
  display: flex;
  gap: 2.75rem;
  width: max-content;
  padding: 1rem 0;
  animation: strip-scroll 36s linear infinite;
}
.strip:hover { animation-play-state: paused; }
@keyframes strip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .strip { animation: none; width: auto; overflow-x: auto; padding-inline: 1.25rem; }
}
.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.strip-item img { width: 84px; height: 84px; object-fit: contain; }

/* Alternating how-it-works rows */
.how-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.how-row.flip .how-art { order: 2; }
@media (max-width: 800px) {
  .how-row, .how-row.flip .how-art { display: block; order: initial; }
  .how-row { margin-bottom: 3rem; }
  .how-copy { margin-top: 1.25rem; }
}
.how-art img { width: min(340px, 70%); display: block; margin-inline: auto; }
.step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sun);
  color: #fff;
  font-weight: 900;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  box-shadow: 0 3px 0 rgb(0 0 0 / 0.12);
}

/* Final CTA */
.cta-final {
  background: linear-gradient(180deg, var(--meadow), var(--meadow-deep));
  border-radius: var(--r-xl);
  text-align: center;
  padding: 3.2rem 1.5rem;
  color: #fff;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgb(255 255 255 / 0.92); font-weight: 700; }
.cta-final img { width: 150px; margin-bottom: 0.6rem; }

.prose { max-width: 720px; margin-inline: auto; }
.prose :where(h2, h3) { margin-top: 2rem; }
.prose img { border-radius: 12px; }
.prose pre {
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
}

.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.post-list a { text-decoration: none; color: inherit; display: block; }
.post-list time { color: var(--ink-soft); font-size: 0.85rem; font-weight: 700; }
