/* Home page (Phase B1, 4 Oct 2026). Loaded after assets/growvio.css on index.html only. */

/* --- Hero ---------------------------------------------------------------- */
.home-hero {
  min-height: 0;
  padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 56px);
}

.home-hero .hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.home-hero .headline {
  max-width: 14ch;
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
  line-height: 1;
}

.home-hero .subhead {
  max-width: 34em;
}

.hero-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-terms li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(247, 244, 236, 0.16);
  border-radius: 999px;
  background: rgba(247, 244, 236, 0.05);
  color: rgba(247, 244, 236, 0.86);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero-terms li strong {
  color: var(--accent);
  font-weight: 800;
}

.hero-terms li:last-child {
  border-color: rgba(54, 201, 133, 0.4);
  background: rgba(54, 201, 133, 0.1);
}

.hero-note {
  max-width: 40em;
  margin: 20px 0 0;
  color: rgba(247, 244, 236, 0.6);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero-visual {
  justify-self: end;
  width: 100%;
}

/* --- Shared section bits -------------------------------------------------- */
main > .section {
  padding: clamp(56px, 7vw, 96px) 0;
}

main > #proof {
  padding-top: clamp(24px, 3vw, 40px);
}

#proof .stat-tile strong {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

.home-head {
  margin-bottom: 34px;
}

.home-head .section-title {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.home-foot-note {
  margin: 28px 0 0;
  color: rgba(247, 244, 236, 0.74);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
}

.home-foot-note a {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.section-light .home-foot-note {
  color: var(--muted-dark);
}

.section-light .home-foot-note a {
  color: var(--accent-2);
}

/* --- Proof ---------------------------------------------------------------- */
.home-proof-row {
  margin-top: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-mobile-only {
  display: none;
}

@media (max-width: 820px) {
  .proof-mobile-only {
    display: grid;
  }

  .home-proof-row {
    margin-top: 24px;
  }
}

/* --- Five systems --------------------------------------------------------- */
.system-list {
  display: grid;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.system-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 8px 28px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-dark);
}

.system-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: #06130c;
  background: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.05rem;
  font-weight: 900;
}

.system-name h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.system-promise {
  margin: 8px 0 0;
  color: var(--accent-2);
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
}

.system-detail {
  margin: 0;
  color: var(--muted-dark);
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .system-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px 16px;
    padding: 22px 0;
  }

  .system-detail {
    grid-column: 2;
    font-size: 1rem;
  }
}

/* --- How it works --------------------------------------------------------- */
[data-slot="how-it-works-loop"]:not(:empty) {
  margin-bottom: 24px;
}

/* --- Example sites -------------------------------------------------------- */
.site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.site-card {
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
}

.site-shot {
  display: block;
  border-bottom: 1px solid var(--line-dark);
  background: var(--coal-2);
}

.site-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.site-info {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 20px 22px 24px;
}

.site-info h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-info p {
  margin: 0;
  color: var(--muted-dark);
  line-height: 1.55;
}

.site-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid rgba(20, 23, 19, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(20, 23, 19, 0.06);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-tag--live {
  border-color: rgba(18, 107, 70, 0.4);
  color: var(--accent-2);
  background: rgba(18, 107, 70, 0.1);
}

.site-link {
  margin-top: 4px;
  color: var(--accent-2);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .site-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FAQ ------------------------------------------------------------------ */
#faq .faq-item summary {
  font-size: 1.05rem;
}

/* --- Phone ---------------------------------------------------------------- */
@media (max-width: 820px) {
  .home-hero .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .home-hero {
    padding: 28px 0 32px;
  }

  .home-hero .headline {
    max-width: none;
    font-size: clamp(2.1rem, 9.4vw, 3rem);
    line-height: 1.04;
  }

  .hero-terms {
    gap: 6px;
  }

  .hero-terms li {
    font-size: 0.88rem;
    padding: 6px 11px;
  }

  .home-head .section-title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .home-head {
    gap: 6px;
    margin-bottom: 24px;
  }
}

/* How it works loop (8s, silent, seamless) */
.hiw-loop { max-width: 760px; margin: 28px auto 8px; }
.hiw-loop video { display: block; width: 100%; height: auto; border-radius: 22px; background: #101312; }
