/* Reusable section/heading pieces, shared by every page.
   The eyebrow + heading + rule pattern is NetSuite's signature detail
   (DESIGN-REFERENCE.md §3.1) — teal instead of mustard, same structure. */

.section {
  padding: 96px 0;
  background: var(--surface-page);
}

.section--white {
  background: var(--surface-white);
}

.section--dark {
  color: #F1F5F9;
  /* Same layered treatment as the hero bands, so every dark section on the
     site is visually consistent. */
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 12% 88%, rgba(34, 211, 238, 0.08), transparent 45%),
    linear-gradient(160deg, #0F172A 0%, #16213A 55%, #0F172A 100%);
  background-size: 28px 28px, auto, auto;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-eyebrow-size);
  font-weight: var(--text-eyebrow-weight);
  line-height: var(--text-eyebrow-leading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  /* A darker teal than --accent-primary: the bright brand teal is 1.8:1 on light
     backgrounds (fails WCAG's 4.5:1), caught by a real Lighthouse audit. This
     shade holds 5.1-5.4:1 while still reading as the same brand color. */
  color: #0E7490;
  margin: 0 0 12px;
}

/* On dark sections, the bright brand teal has excellent contrast (9.9:1) --
   safe and correct to use there, unlike on light backgrounds above. */
.section--dark .eyebrow {
  color: var(--accent-primary);
}

.section-heading {
  font-family: var(--font-sans);
  font-size: var(--text-subdisplay-size);
  font-weight: var(--text-subdisplay-weight);
  line-height: var(--text-subdisplay-leading);
  margin: 0;
  max-width: 720px;
}

.section--dark .section-heading {
  color: #FFFFFF;
}

.rule {
  display: block;
  width: var(--rule-width);
  height: var(--rule-height);
  background: var(--accent-rule);
  margin: 24px 0;
  border-radius: 0;
}

.section-lede {
  font-size: var(--text-body-size);
  line-height: var(--text-body-leading);
  color: var(--text-color-muted);
  max-width: 640px;
  margin: 0;
}

.section--dark .section-lede {
  color: #CBD5E1;
}

/* ---- alternating text/visual row ---- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split--reverse .split__visual {
  order: -1;
}

.split--3col {
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 32px;
}

.split-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.2), 0 6px 16px rgba(15, 23, 42, 0.1);
}

.placeholder-box {
  background: var(--surface-white);
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

/* ---- card grid (solutions, platform preview) ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text-color);
  display: block;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  border-top: 3px solid transparent;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  transform: translateY(-3px);
  border-top-color: var(--accent-primary);
}

.card__heading {
  font-family: var(--font-sans);
  font-size: var(--text-card-heading-size);
  font-weight: var(--text-card-heading-weight);
  line-height: var(--text-card-heading-leading);
  margin: 0 0 8px;
  color: var(--text-color);
}

.card__body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-color-muted);
  margin: 0;
}

/* ---- CTA band ---- */

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

.cta-band .section-heading {
  margin: 0 auto;
}

.cta-band__actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 899px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split--reverse .split__visual {
    order: 0;
  }

  .card-grid,
  .card-grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 599px) {
  .section {
    padding: 56px 0;
  }

  .section-heading {
    font-size: 32px;
    line-height: 1.15;
  }

  .card-grid,
  .card-grid--3 {
    grid-template-columns: 1fr;
  }
}
