/* SHE-84 homepage (round 4). Scoped to body.home so feature pages are unchanged.
   Round 4 brings back the pre-round-2 snap (styles.css: html scroll-snap-type,
   .panel-viewport = 100svh minus the header, scroll-snap-align: start) and only
   adds what the homepage still needs on top of it. */

/* --- 1. Snapped, full-screen sections; content centred in the snap frame --- */
body.home .hero.hero-viewport { align-items: center; }
body.home .hero #hero-title {
  font-size: clamp(1.6rem, 2.65vw, 3.1rem);
  line-height: 1.1;
  font-weight: 720;
}
body.home .hero .hero-brand-inline {
  margin-block-end: 0.18em;
  color: var(--ink);
  font-size: clamp(2.8rem, 5.8vw, 6rem);
  font-weight: 850;
  line-height: .95;
}
body.home .hero-media img { box-shadow: none; }
body.home .hero-actions .button { box-shadow: none; }
body.home .hero-actions .button-secondary { background: transparent; }
@media (max-width: 920px) {
  body.home .hero .hero-brand-inline { font-size: clamp(2.6rem, 9vw, 4.5rem); }
}
body.home #how-it-works .panel-inner,
body.home #privacy .panel-inner,
body.home #pricing .panel-inner,
body.home #faq .panel-inner,
body.home #roadmap-teaser .panel-inner {
  justify-content: center;
}

/* FAQ grows past one screen without clipping (it is taller than the frame at
   1280x720); it still starts a snap, but does not trap the scroll. */
body.home .panel-viewport.panel-auto {
  height: auto;
  max-height: none;
  min-height: calc(100svh - var(--header-h));
  overflow: visible;
  scroll-snap-stop: normal;
}
@media (min-width: 921px) {
  /* Same 8px bands as the other snaps, so the FAQ still centres when it fits. */
  body.home #faq.panel-auto {
    padding-top: var(--panel-pad-y);
    padding-bottom: var(--panel-pad-y);
  }
}
@media (max-width: 920px) {
  body.home .panel-viewport.panel-auto { min-height: calc(100dvh - var(--header-h)); }
}

/* Waitlist: a regular snap panel holding only the form cluster, centred with even
   padding. The footer is a sibling after </main>, reached by scrolling past it. */
body.home #waitlist.panel-viewport-end {
  height: calc(100svh - var(--header-h));
  max-height: none;
  min-height: calc(100svh - var(--header-h));
  padding-top: var(--panel-pad-y);
  padding-bottom: var(--panel-pad-y);
  justify-content: center;
  overflow: visible;
}
body.home #waitlist .final-cta-inner {
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0;
}
body.home #waitlist .waitlist-form { grid-template-columns: minmax(0, 1fr); }
body.home #waitlist .waitlist-form :is(input, .button) { min-inline-size: 0; }
body.home #waitlist .waitlist-form .button {
  padding-block: .55em;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
}
@media (max-width: 920px) {
  body.home #waitlist.panel-viewport-end {
    height: auto;
    min-height: calc(100dvh - var(--header-h));
  }
  body.home #waitlist .final-cta-inner { padding: 24px 0; }
  /* Mobile keyboard open (!38): content height, form pinned above the keyboard. */
  body.home #waitlist.keyboard-open.panel-viewport-end {
    min-height: 0;
    height: auto;
    justify-content: flex-start;
    padding-top: 8px;
    padding-bottom: calc(12px + var(--keyboard-inset, 0px) + env(safe-area-inset-bottom, 0px));
  }
  body.home #waitlist.keyboard-open .final-cta-inner { padding: 8px 0 12px; }
}

/* The footer is its own snap point (aligned to the bottom), so mandatory snapping
   does not pull the page back to #waitlist when you scroll past it. */
body.home > .site-footer { scroll-snap-align: end; }

body.home .site-footer {
  margin-top: 0;
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
}

/* --- 2. Alpha label: header, pricing (gated), FAQ heading --- */
body.home .site-header .nav-links > .alpha-pill { flex: none; }
@media (max-width: 640px) {
  body.home .site-header .header-cta { white-space: nowrap; }
}
@media (max-width: 420px) {
  body.home .site-header .nav-links > .alpha-pill { height: 22px; padding: 0 7px; font-size: 12px; letter-spacing: 0; }
  body.home .site-header .nav-links > .alpha-pill .dot { display: none; }
}
body.home .faq-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0;
  text-align: center;
}
body.home .faq-heading h2 { margin: 0; }

/* --- 3. Card slider: every card is a link to its feature page --- */
body.home #how-it-works .section-heading { margin-bottom: 0; }
body.home .story {
  /* Room under the image for the caption line and the link label. */
  --story-text-h: 74px;
}
@media (min-width: 921px) {
  body.home .story {
    --story-h: min(calc(var(--frame-avail) - 178px - var(--story-text-h)), calc((min(100vw, var(--shell-max)) - 2 * var(--shell-gutter) - 200px) * 2 / 3));
  }
}
@media (max-width: 920px) {
  body.home .story {
    --story-text-h: 96px;
    --story-h: min(calc(var(--frame-avail) - 180px - var(--story-text-h)), calc(82vw * 16 / 9));
  }
}
body.home .story-track { user-select: none; -webkit-user-select: none; }
body.home .story-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
body.home .story-track.is-dragging .story-link { cursor: grabbing; }
body.home .story-slide,
body.home .story-slide.is-active { cursor: auto; }
body.home .story-link {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
  cursor: pointer;
  -webkit-user-drag: none;
}
body.home .story-link .story-img {
  box-shadow: none;
  transition: border-color 0.18s ease;
}
body.home .story-link:hover .story-img,
body.home .story-link:focus-visible .story-img {
  border-color: var(--teal);
}
body.home .story-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
body.home .story-slide .story-caption { font-size: clamp(16px, 2.4vw, 34px); }
body.home .story-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Never wider than the image above it. */
  width: 0;
  min-width: 100%;
  height: var(--story-text-h);
  padding: 10px 4px 0;
  overflow: hidden;
  text-align: center;
}
body.home .story-line {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.home .story-more {
  color: var(--teal);
  font-weight: 750;
  font-size: 0.92rem;
}
body.home .story-link:hover .story-more,
body.home .story-link:focus-visible .story-more { color: var(--ink); text-decoration: underline; }
@media (max-width: 920px) {
  body.home .story-slide .story-caption { font-size: clamp(16px, 5vw, 24px); }
  body.home .story-line { font-size: 0.88rem; -webkit-line-clamp: 3; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .story-link .story-img { transition: none; }
  body.home .story-link:hover .story-img,
  body.home .story-link:focus-visible .story-img { transform: none; }
}

/* --- 4. Pricing badges: Alpha (gated), 1-month trial, Price lock (gated) --- */
body.home .price-badge-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
  flex-wrap: wrap;
  width: 100%;
}
body.home .price-badge-row .price-badge { margin: 0; }

/* --- 7. Roadmap teaser: a short snap of its own, centred --- */
body.home #roadmap-teaser .panel-inner {
  align-items: center;
  text-align: center;
  gap: 22px;
}
body.home #roadmap-teaser .section-heading { margin: 0; }
body.home .roadmap-teaser-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  width: min(100%, 520px);
}
body.home .roadmap-teaser-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  text-align: left;
}
body.home .roadmap-teaser-item { color: var(--ink); font-weight: 750; }
body.home .roadmap-teaser-list .roadmap-chip { margin: 0; flex: none; }
body.home .roadmap-teaser-link {
  color: var(--teal);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.home .roadmap-teaser-link:hover { color: var(--ink); }
body.home .roadmap-teaser-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
