/* Home redesign, home page only. Blocks: shared motion base, the audiences grid (the section sits before pricing; its glass lives in home-audiences.css), then 03 to 06.
   Layout applies in both themes; [data-theme="dark"] rules change colours and surfaces only; animations run only under html.motion. */

/* ---- Shared motion base ---- */
html.da-home.motion [data-loop].is-paused,
html.da-home.motion [data-loop].is-paused * {
  animation-play-state: paused;
}
html.da-home.is-lowfps [data-loop],
html.da-home.is-lowfps [data-loop] *,
html.da-home.is-lowfps [data-play] *,
html.da-home.is-lowfps [data-play] *::before,
html.da-home.is-lowfps [data-play] *::after {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html.da-home [data-play] *,
  html.da-home [data-play] *::before,
  html.da-home [data-play] *::after {
    animation: none !important;
  }
}

/* ---- Audiences grid: four equal columns; subgrid rows keep each "For example:" divider at one height ---- */
@supports (grid-template-rows: subgrid) {
  html.da-home #audiences .capgrid.four > .capcard {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  html.da-home #audiences .capgrid.four .cap-ic {
    justify-self: start;
  }
  html.da-home #audiences .capgrid.four .cap-eg {
    align-self: start;
    margin-top: 0;
  }
  html.da-home #audiences .capgrid.four .cap-t {
    align-self: end;
  }
}

/* Orphan guards: even logo and chip rows, journey is one column; each column count starts where its widest tile (150px logo, 147px chip) fits. */
html.da-home .logo-row {
  display: grid;
  grid-template-columns: repeat(6, auto);
  justify-content: center;
}
@media (max-width: 1100px) {
  html.da-home .logo-row {
    grid-template-columns: repeat(3, auto);
  }
}
@media (max-width: 560px) {
  html.da-home .logo-row {
    grid-template-columns: repeat(2, auto);
    gap: 14px 16px;
  }
}
@media (max-width: 359px) {
  html.da-home .logo-row {
    grid-template-columns: auto;
  }
}

/* ---- 03 How it works: the route chart lives in public/home-route.css ---- */

/* ---- 05 Pricing and ROI ---- */

/* ---- 06 Built, deployment, integrations, security and closing ---- */

/* ---- 04 Pipeline: public/home-steps.css ---- */
