/*
 * WaaFaa homepage -- Product Intelligence OS spotlight.
 *
 * PIOS is not a Chrome extension, so it deliberately does NOT sit in the product
 * slider next to the six extensions; it gets its own band directly beneath, with
 * its own palette. The three stops are PIOS's own landing tokens (--navy #10256B,
 * --accent #1B62E8, --cyan #22D3EE from landing/styles.css in the pios repo), so
 * the mark, the microsite and this band are one palette.
 *
 * Values here are the DARK stops; the light-mode ones live in
 * waafaa-theme-modes.css. Changing one without the other leaves light mode on
 * the dark accent.
 */

body .waafaa-pios {
  --pios-accent: #4d92ff;
  --pios-cyan: #22d3ee;
  --pios-navy: #10256b;
  position: relative;
  /* The section carries id="pios"; the header is fixed, so an anchor jump would
     otherwise land with the heading hidden behind it. Matches pricing.css. */
  scroll-margin-top: 7rem;
}

/* A single wide wash behind the band, so it reads as a spotlight rather than
   another card row. */
body .waafaa-pios::before {
  background:
    radial-gradient(ellipse 60% 70% at 78% 22%, rgba(34, 211, 238, 0.12), transparent 70%),
    radial-gradient(ellipse 55% 80% at 12% 78%, rgba(77, 146, 255, 0.14), transparent 70%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

body .waafaa-pios > * {
  position: relative;
  z-index: 1;
}

body .waafaa-pios__grid {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.92fr);
}

body .waafaa-pios__copy {
  display: grid;
  gap: 1.1rem;
  max-width: 38rem;
}

/*
 * Core's block-gap adds margin-block-start to every sibling block but the first.
 * Each container here is a grid with its own gap, so that margin is doubled-up
 * spacing -- and inside a stat it drops the label away from its number. The
 * homepage has no blanket reset for this the way inner-common.css does for
 * "-grid" containers, so each new container states it.
 */
body .waafaa-pios__grid > *,
body .waafaa-pios__copy > *,
body .waafaa-pios__panel > *,
body .waafaa-pios__stats > *,
body .waafaa-pios-stat > * {
  margin-block-start: 0 !important;
}

body .waafaa-pios .waafaa-eyebrow {
  color: var(--pios-cyan) !important;
}

body .waafaa-pios__lede {
  background: linear-gradient(135deg, var(--pios-accent) 0%, var(--pios-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-size: 1.25rem !important;
  font-weight: 850;
  line-height: 1.3 !important;
}

body .waafaa-pios__points {
  display: grid;
  gap: 0.55rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .waafaa-pios__points li {
  font-size: 0.9rem;
  line-height: 1.55;
  padding-left: 1.5rem;
  position: relative;
}

body .waafaa-pios__points li::before {
  background: linear-gradient(135deg, var(--pios-accent), var(--pios-cyan));
  border-radius: 50%;
  content: "";
  height: 0.45rem;
  left: 0.25rem;
  position: absolute;
  top: 0.55rem;
  width: 0.45rem;
}

body .waafaa-pios__install {
  margin: 0 !important;
}

body .waafaa-pios__install code,
body .waafaa-pios__panel-note code {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 0.35rem;
  color: var(--pios-cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
}

body .waafaa-pios__panel-note code {
  font-size: 0.74rem;
  padding: 0.15rem 0.35rem;
}

body .waafaa-pios__actions .waafaa-button--primary .wp-block-button__link {
  background: linear-gradient(135deg, var(--pios-accent) 0%, var(--pios-cyan) 100%);
  color: #04121f;
}

body .waafaa-pios__actions .waafaa-button--ghost .wp-block-button__link {
  border-color: rgba(34, 211, 238, 0.34);
  color: var(--pios-cyan);
}

/* ---------- Spec panel ---------- */

body .waafaa-pios__panel {
  border-color: rgba(34, 211, 238, 0.22) !important;
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
}

body .waafaa-pios__logo {
  margin: 0 !important;
}

body .waafaa-pios__logo img {
  display: block;
  height: 3.5rem;
  width: auto;
}

body .waafaa-pios__panel-kicker {
  color: var(--waafaa-text) !important;
  font-size: 1.02rem !important;
  font-weight: 800;
  line-height: 1.4 !important;
}

body .waafaa-pios__stats {
  border-top: 1px solid var(--waafaa-border);
  display: grid;
  gap: 1.25rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 1.35rem;
}

body .waafaa-pios-stat {
  display: grid;
  gap: 0.25rem;
}

body .waafaa-pios-stat__value {
  background: linear-gradient(135deg, var(--pios-accent) 0%, var(--pios-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-size: 1.7rem !important;
  font-weight: 900;
  line-height: 1.05 !important;
}

body .waafaa-pios-stat__label {
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
}

body .waafaa-pios__panel-note {
  border-top: 1px solid var(--waafaa-border);
  font-size: 0.8rem !important;
  line-height: 1.65 !important;
  padding-top: 1.1rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  body .waafaa-pios__grid {
    gap: 2.25rem;
    grid-template-columns: minmax(0, 1fr);
  }

  body .waafaa-pios__copy {
    max-width: none;
  }
}

@media (max-width: 660px) {
  body .waafaa-pios__panel {
    padding: 1.5rem;
  }

  body .waafaa-pios__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  body .waafaa-pios-stat__value {
    font-size: 1.4rem !important;
  }

  body .waafaa-pios__install code {
    font-size: 0.74rem;
    white-space: normal;
  }
}
