/* Homepage zigzag bands — alternating visual + copy folds (light-theme first) */

.home-band {
  --home-band-gap: clamp(1rem, 2.5vw, 1.75rem);
  --home-band-visual-max: min(17.5rem, 38vw);
}

.home-band__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--home-band-visual-max));
  gap: var(--home-band-gap);
  align-items: center;
  max-width: min(var(--content-max-wide, 72rem), 100%);
  margin-inline: auto;
  padding-inline: var(--page-gutter, clamp(1.25rem, 3.5vw, 2rem));
}

.home-band--visual-right .home-band__layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--home-band-visual-max));
}

.home-band--visual-left .home-band__layout {
  grid-template-columns: minmax(0, var(--home-band-visual-max)) minmax(0, 1fr);
}

.home-band--visual-right .home-band__visual {
  order: 2;
}

.home-band--visual-left .home-band__visual {
  order: 0;
}

.home-band__content {
  min-width: 0;
}

.home-band__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(0.5rem, 1.25vw, 0.85rem);
  border-radius: 14px;
  background: var(--surface-band);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card, 0 4px 18px rgba(15, 23, 42, 0.06));
}

.home-band__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.home-band__svg-bg {
  fill: color-mix(in srgb, var(--surface-elevated) 88%, var(--accent) 4%);
}

.home-band__svg-panel {
  fill: color-mix(in srgb, var(--surface) 92%, var(--accent) 6%);
  stroke: color-mix(in srgb, var(--accent) 32%, var(--border));
  stroke-width: 1.2;
}

.home-band__svg-panel--niche {
  fill: color-mix(in srgb, var(--accent) 10%, var(--surface-elevated));
  stroke: color-mix(in srgb, var(--accent) 48%, var(--border));
}

.home-band__svg-label {
  fill: var(--text-main);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
}

.home-band__svg-caption {
  fill: var(--text-muted);
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 9px;
}

.home-band__svg-caption--accent {
  fill: color-mix(in srgb, var(--accent) 72%, var(--text-main));
  font-weight: 600;
}

.home-band__svg-ray {
  stroke: color-mix(in srgb, var(--accent) 55%, var(--text-muted));
}

.home-band__svg-dot {
  fill: color-mix(in srgb, var(--accent) 70%, var(--text-main));
}

.home-band__svg-bar--high {
  fill: color-mix(in srgb, var(--text-muted) 28%, var(--surface-band));
  stroke: color-mix(in srgb, var(--text-muted) 40%, var(--border));
  stroke-width: 1;
}

.home-band__svg-bar--low {
  fill: color-mix(in srgb, var(--accent) 22%, var(--surface-elevated));
  stroke: color-mix(in srgb, var(--accent) 42%, var(--border));
  stroke-width: 1;
}

.home-band__svg-chip {
  fill: color-mix(in srgb, var(--text-muted) 18%, var(--surface));
  stroke: color-mix(in srgb, var(--text-muted) 30%, var(--border));
  stroke-width: 0.8;
}

.home-band__svg-chip--managed {
  fill: color-mix(in srgb, var(--accent) 16%, var(--surface-elevated));
  stroke: color-mix(in srgb, var(--accent) 38%, var(--border));
}

.home-band__svg-spine {
  stroke: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.home-band__svg-step circle {
  fill: color-mix(in srgb, var(--accent) 14%, var(--surface-elevated));
  stroke: color-mix(in srgb, var(--accent) 45%, var(--border));
  stroke-width: 1.2;
}

.home-band__svg-step text {
  fill: color-mix(in srgb, var(--accent) 78%, var(--text-main));
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 9px;
  font-weight: 700;
}

/* Second-site callout band */
.second-site-callout.home-band {
  margin: clamp(0.65rem, 2vw, 1rem) 0 1.1rem;
  padding: 0;
}

.second-site-callout.home-band .home-band__layout {
  padding-inline: 0;
  max-width: min(var(--content-max-wide, 72rem), 100%);
}

.second-site-callout.home-band .second-site-callout__inner {
  max-width: none;
  margin: 0;
  text-align: left;
}

.second-site-callout.home-band .second-site-callout__lede {
  margin-inline: 0;
}

/* Managed vs DIY — keep section-header centred rhythm inside content column */
#managed-vs-diy.home-band .managed-vs-diy__lede {
  margin-inline: 0;
  text-align: left;
  max-width: none;
}

/* How-it-works — panel fills content column */
#how-it-works.home-band .how-it-works__panel {
  max-width: none;
  margin: 0;
}

@media (max-width: 768px) {
  /* Beat .home-band--visual-left/right two-column rules (higher specificity). */
  .home-band__layout,
  .home-band--visual-right .home-band__layout,
  .home-band--visual-left .home-band__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .home-band--visual-right .home-band__visual,
  .home-band--visual-left .home-band__visual {
    order: -1;
    width: 100%;
    max-width: min(16rem, 88vw);
    margin-inline: auto;
  }

  .home-band__content {
    width: 100%;
    max-width: none;
  }

  .second-site-callout.home-band .second-site-callout__inner {
    text-align: center;
  }

  .second-site-callout.home-band .second-site-callout__lede {
    margin-inline: auto;
  }

  #managed-vs-diy.home-band .managed-vs-diy__lede {
    text-align: center;
    margin-inline: auto;
    max-width: 60ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-band__svg * {
    animation: none !important;
  }
}
