/* Preview layout — used by this demo deploy only */

body.preview-home .nav {
  top: 0;
}

/* Hero: copy left, stats panel right */
body.preview-home .hero {
  min-height: auto;
  padding: 120px 0 56px;
  align-items: flex-start;
}

body.preview-home .hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 48px;
  align-items: center;
  width: 100%;
}

body.preview-home .hero__copy {
  min-width: 0;
}

body.preview-home .hero__actions {
  margin-bottom: 0;
}

body.preview-home .hero__stats-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

body.preview-home .hero__stats-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(108, 99, 255, 0.12), transparent 50%, rgba(34, 211, 164, 0.08));
  pointer-events: none;
}

body.preview-home .hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
  z-index: 1;
}

body.preview-home .hero__stats .stat {
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

body.preview-home .hero__stats .stat__divider {
  display: none;
}

body.preview-home .hero__stats .stat__number {
  font-size: 1.55rem;
}

body.preview-home .hero__scroll {
  display: none;
}

/* Services: stacked rows */
body.preview-home #services.section--alt {
  background: var(--bg);
}

body.preview-home .services__grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.preview-home .service-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 6px 20px;
  align-items: center;
  padding: 22px 24px;
  transform: none;
}

body.preview-home .service-card > .service-card__icon {
  grid-row: 1 / span 2;
  margin-bottom: 0;
  width: 48px;
  height: 48px;
}

body.preview-home .service-card > .service-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.preview-home .service-card > .service-card__link {
  align-self: center;
  white-space: nowrap;
}

body.preview-home .service-card:hover {
  transform: translateX(6px);
}

body.preview-home .service-card__number {
  display: none;
}

body.preview-home .service-card__title {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

body.preview-home .service-card__tag {
  margin-bottom: 6px;
}

body.preview-home .service-card__desc {
  margin-bottom: 0;
  max-width: 520px;
}

body.preview-home .service-card__badge {
  top: 12px;
  right: 12px;
}

body.preview-home .service-card--featured {
  padding-top: 28px;
}

/* How it works: vertical timeline */
body.preview-home .steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 8px;
}

body.preview-home .steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--green));
  opacity: 0.45;
}

body.preview-home .step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  text-align: left;
  align-items: start;
  padding: 18px 0;
  position: relative;
}

body.preview-home .step__connector {
  display: none;
}

body.preview-home .step__node {
  width: 40px;
  height: 40px;
  margin: 0;
  position: relative;
  z-index: 1;
}

body.preview-home .step__body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

/* Difference: solution first */
body.preview-home .problem__grid {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
}

body.preview-home .problem__col:first-child {
  order: 2;
}

body.preview-home .problem__col:last-child {
  order: 1;
}

body.preview-home .problem__solution {
  height: 100%;
}

/* Who: denser grid */
body.preview-home .who-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  justify-content: stretch;
}

body.preview-home .who-pill {
  justify-content: flex-start;
  width: 100%;
  border-radius: var(--radius-sm);
}

body.preview-home .results__grid {
  gap: 16px;
}

body.preview-home .cta-section {
  padding: 20px 0 72px;
}

@media (max-width: 900px) {
  body.preview-home .hero__content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.preview-home .service-card {
    grid-template-columns: 48px 1fr;
  }

  body.preview-home .service-card > .service-card__icon {
    grid-row: auto;
  }

  body.preview-home .service-card > .service-card__link {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
  }

  body.preview-home .who-pills {
    grid-template-columns: 1fr 1fr;
  }

  body.preview-home .problem__grid {
    grid-template-columns: 1fr;
  }

  body.preview-home .problem__col:first-child,
  body.preview-home .problem__col:last-child {
    order: unset;
  }
}
