/* ------------------------------------------------------------------
   Homepage "Platform Overview" section (added Oct 2026, directly below
   the feature cards): centred header, callouts either side of the portal
   device mockup with decorative connector lines (drawn by
   js/platform-overview.js), a four-column benefits row and a CTA.
   Prefix: pov-  (not used by Webflow's stylesheet).
   Fonts/colours follow the site: DM Sans via .main, Playfair Display
   italic accent, brand blue #0082c8, navy #0b1c2c.
   Breakpoints: desktop (3-column diagram) >= 1200, tablet 768-1199, mobile < 768.
   The brief asked for the diagram from 1024px, but between 1024 and 1199 the
   side columns get too narrow (4-line descriptions, very tall stack), so the
   tablet layout is used there instead.
   ------------------------------------------------------------------ */

.pov-section {
  background-image: linear-gradient(180deg, #f5f9ff, #fff);
  padding: 88px 20px;
  scroll-margin-top: 90px; /* fixed header */
}

.pov-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* --- header --- */
.pov-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 860px;
  text-align: center;
}

.pov-eyebrow {
  color: #0b1c2c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pov-heading {
  margin: 0;
  color: #000;
  font-size: 48px;
  font-weight: 600;
  line-height: 53px;
}

.pov-heading-accent {
  color: #0082c8;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.pov-sub {
  max-width: 640px;
  margin: 0;
  color: #4b5563;
  font-size: 19px;
  line-height: 28px;
  letter-spacing: .3px;
}

/* --- diagram: callouts | mockup | callouts ---------------------------
   Desktop is one 3-column grid with 8 equal rows: each left callout spans
   two rows (1-2, 3-4, ...) and each right callout is shifted down by one
   row (2-3, 4-5, ...) so it sits exactly between the left items. Callouts
   are top-aligned in their slot and share one height, so the icon tiles
   land on a regular vertical rhythm; the mockup spans rows 1-7 so that it
   is centred on the band of tiles rather than on the taller text column. */
.pov-diagram {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr);
  grid-template-rows: repeat(8, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 8px;
  width: 100%;
}

.pov-lines {
  position: absolute;
  inset: 0;
  z-index: 2; /* above the mockup, so the end dots sit on the device screens */
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: .6;
  pointer-events: none;
}

.pov-lines path {
  fill: none;
  stroke: #0082c8;
  stroke-width: 1;
}

.pov-lines circle {
  fill: #0082c8;
}

.pov-visual {
  position: relative;
  grid-area: 1 / 2 / 8 / 3;
  align-self: center;
  min-width: 0;
}

/* soft blue radial glow behind the devices */
.pov-visual::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -6%;
  bottom: -40%;
  left: -6%;
  background-image: radial-gradient(closest-side, #0082c833, #0082c80f 62%, #0082c800);
  pointer-events: none;
}

.pov-mockup {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.pov-callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  padding-bottom: 16px;
  text-align: left;
}

.pov-callout-l1 { grid-area: 1 / 1 / 3 / 2; }
.pov-callout-l2 { grid-area: 3 / 1 / 5 / 2; }
.pov-callout-l3 { grid-area: 5 / 1 / 7 / 2; }
.pov-callout-l4 { grid-area: 7 / 1 / 9 / 2; }
.pov-callout-r1 { grid-area: 2 / 3 / 4 / 4; }
.pov-callout-r2 { grid-area: 4 / 3 / 6 / 4; }
.pov-callout-r3 { grid-area: 6 / 3 / 8 / 4; }

.pov-callout-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: #e8f1fd;
  color: #0082c8;
}

.pov-callout-icon svg {
  width: 26px;
  height: 26px;
}

.pov-callout-title {
  margin: 0;
  color: #0b1c2c;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.pov-callout-text {
  min-height: 66px; /* three lines: keeps every desktop slot the same height */
  margin: -6px 0 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 22px;
}

/* --- benefits row --- */
.pov-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  padding: 8px 0;
}

.pov-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 8px 24px;
  text-align: center;
}

.pov-benefit + .pov-benefit {
  border-left: 1px solid #d5e1ee;
}

.pov-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #e8f1fd;
  color: #0082c8;
}

.pov-benefit-icon svg {
  width: 28px;
  height: 28px;
}

.pov-benefit-title {
  margin: 0;
  color: #0b1c2c;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
}

.pov-benefit-text {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 22px;
}

/* --- CTA --- */
.pov-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.pov-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  background-color: #0b1c2c;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}

.pov-cta-button:hover {
  background-color: #0082c8;
  color: #fff;
  transform: translateY(-2px);
}

.pov-cta-button:focus-visible {
  outline: 2px solid #0082c8;
  outline-offset: 3px;
}

.pov-cta-divider {
  width: 1px;
  height: 32px;
  background-color: #c9d6e5;
}

.pov-cta-text {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 24px;
}

/* --- tablet (and narrow desktops): mockup on top, callouts in two columns, no lines --- */
@media screen and (max-width: 1199px) {
  .pov-section {
    padding: 64px 20px;
  }

  .pov-inner {
    gap: 44px;
  }

  .pov-heading {
    font-size: 40px;
    line-height: 44px;
  }

  .pov-sub {
    font-size: 17px;
    line-height: 26px;
  }

  .pov-diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    column-gap: 32px;
    row-gap: 32px;
  }

  .pov-lines {
    display: none;
  }

  .pov-visual {
    grid-area: auto;
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 760px;
    margin: 0 auto 16px;
  }

  .pov-visual::before {
    top: -12%;
    bottom: -12%;
  }

  .pov-callout {
    grid-area: auto;
    padding-bottom: 0;
  }

  .pov-callout-text {
    min-height: 0;
  }
}

/* --- mobile: everything stacked, benefits 2x2, no dividers --- */
@media screen and (max-width: 767px) {
  .pov-section {
    padding: 48px 16px;
  }

  .pov-inner {
    gap: 36px;
  }

  .pov-heading {
    font-size: 32px;
    line-height: 36px;
  }

  .pov-diagram {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .pov-visual {
    margin-bottom: 4px;
  }

  .pov-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
    padding: 0;
  }

  .pov-benefit {
    padding: 0;
  }

  .pov-benefit + .pov-benefit {
    border-left: 0;
  }

  .pov-cta {
    flex-direction: column;
    gap: 14px;
  }

  .pov-cta-divider {
    display: none;
  }

  .pov-cta-text {
    text-align: center;
  }
}

@media screen and (min-width: 768px) {
  .pov-heading-accent {
    white-space: nowrap; /* keep "Healthcare Business" on one line */
  }
}
