/*
 * Page styles: / (index.html, .page-home).
 * Loaded after /styles.css on those pages only; the shared components live there.
 */

/* Hero: copy on the container's left edge (where the scrim is darkest), not a centered column */
.page-home .hero--home {
  padding-bottom: clamp(4.5rem, 3rem + 4vw, 7rem);
}

/* The still paints with the first paint, from CSS, so the largest paint doesn't wait for script.js.
   The video draws over it once it has frames; script.js sets the same files as its poster. */
.page-home .hero--home .hero-video {
  background: #0a0a0f url("/hero-poster.jpg") center / cover no-repeat;
}

@media (max-width: 768px) {
  .page-home .hero--home .hero-video {
    background-image: url("/hero-poster-portrait.jpg");
  }
}

.page-home .hero--home .hero-grid.single-column {
  max-width: var(--content-width);
}

.page-home .hero--home .lead {
  max-width: 58ch;
}

/* The two hero points: one row of two, each led by an icon chip (no disc bullets) */
.page-home .hero--home .hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 2rem;
  margin-top: 2rem;
  padding: 1.6rem 0 0;
  border-top: 1px solid rgba(241, 245, 249, 0.12);
  list-style: none;
}

.page-home .hero--home .hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-2);
}

.page-home .hero--home .hero-points strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
  font-weight: 650;
}

.page-home .hero--home .hero-points .icon-chip {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
}

.page-home .hero--home .hero-points .icon-chip .icon {
  width: 1.1rem;
  height: 1.1rem;
}

@media (max-width: 640px) {
  .page-home .hero--home .hero-points {
    grid-template-columns: 1fr;
  }
}

/* Product reveal: the real dashboard, flat and nearly container-wide, rising out of the hero */
.page-home .home-reveal {
  --home-reveal-overlap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--home-reveal-overlap));
  /* the glow (and, on phones, the window) may run past the viewport edge, never into a scrollbar */
  overflow-x: clip;
}

/* Carries the hero's fade on into the page background, so its bottom edge leaves no seam */
.page-home .home-reveal::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: var(--home-reveal-overlap);
  left: 0;
  right: 0;
  height: 16rem;
  background: linear-gradient(180deg, var(--bg), rgba(10, 10, 15, 0));
  pointer-events: none;
}

.page-home .home-reveal-stage {
  position: relative;
  isolation: isolate;
}

.page-home .home-reveal-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4% -3% 22% -3%;
  background:
    radial-gradient(closest-side at 28% 45%, rgba(168, 85, 247, 0.6), transparent),
    radial-gradient(closest-side at 74% 50%, rgba(59, 130, 246, 0.5), transparent);
  filter: blur(70px);
  pointer-events: none;
}

/* A thin line of light along the top edge of the window */
.page-home .home-reveal-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 254, 0.9) 30%, rgba(147, 197, 253, 0.9) 70%, transparent);
  pointer-events: none;
}

.page-home .home-reveal-shot {
  border-color: rgba(192, 132, 252, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
}

.page-home .home-reveal-facts {
  justify-content: center;
  margin-top: 0.5rem;
}

/* Phones: the dashboard runs off the right edge so its type stays legible */
@media (max-width: 720px) {
  .page-home .home-reveal-shot {
    width: 165%;
  }

  .page-home .home-reveal-stage::after {
    left: 6%;
    right: 0;
  }

  .page-home .home-reveal-facts {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.25rem;
  }
}

/* The problem: muted chips, so the pain points read differently from the product's benefits */
.page-home .home-problem .icon-chip {
  color: var(--text-2);
  background: rgba(148, 163, 184, 0.1);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.page-home .home-problem .section-heading {
  max-width: 860px;
}

.page-home .section-heading > p:not(.eyebrow) {
  max-width: 60ch;
}

/* Steps: when one step runs longer, the others stay top-aligned under their numbers */
.page-home .timeline--row li {
  align-content: start;
}

/* Narrow row of steps: every title reserves two lines, so the three bodies start level */
@media (min-width: 900px) and (max-width: 1023px) {
  .page-home .timeline--row h3 {
    min-height: 2lh;
  }
}

/* Stacked feature rows (tablet, phone): keep the copy at a readable measure */
.page-home .feature-row-copy {
  max-width: 40rem;
}

/* What you get: access card closes the feature rows */
.page-home .home-access {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 2.25fr);
  gap: 1.75rem 2.5rem;
  align-items: center;
  margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.page-home .home-access-intro .icon-chip {
  margin-bottom: 1rem;
}

.page-home .home-access-intro h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-home .home-access-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-access-roles li {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line-strong);
}

.page-home .home-access-roles .icon {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--primary-strong);
}

.page-home .home-access-roles p {
  color: var(--text-soft);
}

.page-home .home-access-roles strong {
  color: var(--text);
  font-weight: 650;
}

.page-home .home-features-more {
  margin-top: 1.5rem;
  text-align: center;
}

@media (max-width: 900px) {
  .page-home .home-access {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-home .home-access-roles {
    grid-template-columns: 1fr;
  }
}

/* Proof: the interview video and its pull quote side by side down to tablet, capped when stacked */
.page-home .testimonial-feature {
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  margin-bottom: clamp(1rem, 0.8rem + 0.6vw, 1.5rem);
  padding: clamp(1rem, 0.7rem + 1vw, 1.5rem);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

/* The interview has its own section under the hero, so nothing follows it there. */
.page-home .home-interview .testimonial-feature {
  margin-bottom: 0;
}

.page-home .testimonial-video-wrap {
  border-radius: 12px;
}

.page-home .testimonial-feature-copy {
  padding-right: clamp(0rem, 2vw, 1.5rem);
}

@media (min-width: 769px) and (max-width: 1024px) {
  .page-home .testimonial-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .page-home .testimonial-video-wrap {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  .page-home .testimonial-feature-copy {
    padding: 0 0.25rem 0.25rem;
  }
}

/* Narrow enough that the value line "Everything in one place. Everything in sync." starts its own line */
.page-home .cta-panel h2 + p {
  max-width: 26rem;
}

.page-home .cta-panel .cta-note a {
  white-space: nowrap;
}
