/* ==========================================================================
   Opal — Batch 1: Global foundation
   Tokens, buttons, typography, nav, shared modules.
   Loaded after style.css + assets/css/main.css so these rules win.
   ========================================================================== */

:root {
  --opal-blue: #2A70EA;
  --opal-blue-hover: #1F5BC9;
  --opal-blue-soft: rgba(42, 112, 234, 0.08);
  --opal-blue-glow: rgba(42, 112, 234, 0.45);
  --opal-blue-glow-soft: rgba(42, 112, 234, 0.32);
  --opal-blue-glow-faint: rgba(42, 112, 234, 0.18);
  --opal-text-glow: rgba(42, 112, 234, 0.35);

  --opal-white: #ffffff;
  --opal-dark: #18222A;
  --opal-darkgray: #0B101B;

  --opal-radius-btn: 4px;
  --opal-font-body: "Apercu", system-ui, sans-serif;
  --opal-font-display: "VC Garamond Condensed", "Garamond", serif;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.opal-btn,
.opal-btn--primary,
.opal-btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  font-family: var(--opal-font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border-radius: var(--opal-radius-btn);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 150ms ease;
}

.opal-btn--primary {
  background-color: var(--opal-blue);
  color: var(--opal-white);
  border-color: var(--opal-blue);
}

.opal-btn--primary:hover,
.opal-btn--primary:focus-visible {
  background-color: var(--opal-blue-hover);
  border-color: var(--opal-blue-hover);
  color: var(--opal-white);
  box-shadow: 0 0 18px var(--opal-blue-glow);
  transform: translateY(-1px);
  outline: none;
}

.opal-btn--secondary {
  background-color: transparent;
  color: var(--opal-blue);
  border-color: var(--opal-blue);
}

.opal-btn--secondary:hover,
.opal-btn--secondary:focus-visible {
  background-color: var(--opal-blue-soft);
  color: var(--opal-blue);
  box-shadow: 0 0 14px var(--opal-blue-glow-soft);
  transform: translateY(-1px);
  outline: none;
}

.opal-btn-arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

.opal-btn:hover .opal-btn-arrow,
.opal-btn--primary:hover .opal-btn-arrow,
.opal-btn--secondary:hover .opal-btn-arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Typography globals
   -------------------------------------------------------------------------- */

h1 {
  font-weight: 400;
}

/* Tighter line-heights on large display text */
h1,
.opal-page-header h1,
.opal-hero h1,
.opal-home-hero h1 {
  line-height: 1.02;
}

h2,
.opal-section h2 {
  line-height: 1.06;
}

/* Large stat / number callouts */
.opal-stat,
.stat-large,
.opal-feature-grid .stat,
.opal-feature-callout .stat {
  line-height: 0.95;
}

/* 6-up icon block — keep labels from breaking the grid */
.opal-feature-grid.six-up .grid-feature,
.opal-feature-grid--six-up .grid-feature {
  min-height: 11rem;
}

.opal-feature-grid.six-up .grid-feature h3,
.opal-feature-grid--six-up .grid-feature h3 {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  max-width: 18ch;
  line-height: 1.15;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Nav & header
   -------------------------------------------------------------------------- */

/* Announcement bar — smaller text, hover highlight */
#notification-bar.site-notification {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

#notification-bar.site-notification p {
  font-size: inherit;
  margin: 0;
}

/* Wrapped in an <a>, so hover is on the parent */
a:hover > #notification-bar.site-notification,
a:focus-visible > #notification-bar.site-notification {
  background-color: var(--opal-blue-glow-faint);
  color: var(--opal-white);
  box-shadow: inset 0 0 24px var(--opal-blue-glow-faint);
}

/* Top-level nav hover — soft color glow */
#masthead .main-nav .nav-menu > li > a {
  transition: color 200ms ease, text-shadow 220ms ease, background 200ms ease;
}

#masthead .main-nav .nav-menu > li > a:hover,
#masthead .main-nav .nav-menu > li > a:focus-visible {
  background: transparent;
  color: var(--opal-blue);
  text-shadow: 0 0 12px var(--opal-text-glow);
  outline: none;
}

/*
 * "Talk to Opal" CTA menu item.
 * In WP Admin → Menus → expand the "Talk to Opal" item → add `cta-menu-item`
 * to the CSS Classes field (toggle "CSS Classes" on via Screen Options).
 */
.nav-menu .cta-menu-item > a,
.nav-menu .menu-item-talk-to-opal > a {
  border: 1px solid var(--opal-blue);
  color: var(--opal-blue);
  border-radius: var(--opal-radius-btn);
  padding: 0.55em 1em;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    box-shadow 220ms ease,
    border-color 200ms ease;
}

.nav-menu .cta-menu-item > a::after,
.nav-menu .menu-item-talk-to-opal > a::after {
  content: " \2192"; /* → */
  display: inline-block;
  margin-left: 0.35em;
  transition: transform 200ms ease;
}

.nav-menu .cta-menu-item > a:hover,
.nav-menu .cta-menu-item > a:focus-visible,
.nav-menu .menu-item-talk-to-opal > a:hover,
.nav-menu .menu-item-talk-to-opal > a:focus-visible {
  background-color: var(--opal-blue);
  color: var(--opal-white);
  box-shadow: 0 0 16px var(--opal-blue-glow);
  text-shadow: none;
  outline: none;
}

.nav-menu .cta-menu-item > a:hover::after,
.nav-menu .menu-item-talk-to-opal > a:hover::after {
  transform: translateX(2px);
}

/* Mobile nav — top-level items in VC Garamond Condensed */
.mobile-menu-overlay .mobile-nav-menu > li > a {
  font-family: var(--opal-font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: -0.005em;
}

/* --------------------------------------------------------------------------
   Nav continuity — only explicit opt-ins override existing nav styles.
   `hero-light` is the default and intentionally a no-op so we don't
   regress pages that already work with the existing nav treatment.
   `hero-dark` is an explicit override for pages that want the nav to
   sit transparently over a dark hero with light logo + links.
   -------------------------------------------------------------------------- */

/*
 * Make the masthead itself dark on hero-dark pages so the nav area
 * shows dark (matching the hero) and white logo + links are visible
 * against it. Scoped to masthead only — previous body bg approach
 * broke content sections below the hero that expect a white page bg.
 */
body.hero-dark #masthead.site-header {
  background-color: var(--opal-darkgray);
  border-bottom: none;
  box-shadow: none;
  position: relative;
  z-index: 10;
}

body.hero-dark #masthead .nav-menu > li > a,
body.hero-dark #masthead .main-nav .nav-menu > li > a,
body.hero-dark #masthead .nav-menu > li > a:link,
body.hero-dark #masthead .nav-menu > li > a:visited,
body.hero-dark #masthead .nav-menu .nav-link,
body.hero-dark #masthead .nav-menu .nav-link * {
  color: #ffffff !important;
}

/* Dropdown caret/arrow indicators next to Platform / Solutions / About */
body.hero-dark #masthead .nav-menu .nav-link::before,
body.hero-dark #masthead .nav-menu .nav-link::after,
body.hero-dark #masthead .nav-menu > li > a::before,
body.hero-dark #masthead .nav-menu > li > a::after,
body.hero-dark #masthead .menu-item-has-children > a::after,
body.hero-dark #masthead .nav-menu .dropdown-arrow,
body.hero-dark #masthead .nav-menu .arrow {
  color: #ffffff !important;
  fill: #ffffff !important;
  border-color: #ffffff !important;
}

body.hero-dark #masthead .nav-menu svg,
body.hero-dark #masthead .nav-menu svg path {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

body.hero-dark #masthead .nav-menu > li > a:hover,
body.hero-dark #masthead .nav-menu > li > a:focus-visible {
  color: #cce7ff !important;
  text-shadow: 0 0 12px rgba(204, 231, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Homepage integrations module — full-bleed blue section
   Blue gradient bg with scattered square decorations, uniform white tile
   cards with color logos, white Garamond headline, light body,
   text-link CTA with chevron. Specificity (.site-main #post-431) beats
   existing narrow-width rules.
   -------------------------------------------------------------------------- */

.site-main #post-431 .integrations {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -50px;
  margin-bottom: -50px;
  max-width: none;
  background:
    radial-gradient(900px 420px at 50% 30%, rgba(58, 132, 255, 0.22), transparent 70%),
    radial-gradient(600px 320px at 18% 78%, rgba(120, 80, 255, 0.14), transparent 72%),
    radial-gradient(700px 360px at 82% 82%, rgba(42, 112, 234, 0.16), transparent 72%),
    linear-gradient(180deg, #1A1438 0%, #110B2A 50%, #07051A 100%);
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  border-radius: 0;
}

/* Strip any border-radius inherited from parent .opal-container-block */
.site-main #post-431 .opal-container-block.integrations {
  border-radius: 0;
}

/* Hide wp-block-spacer adjacent to this section so there are no
   white gaps top/bottom. Uses :has() for the spacer immediately
   before — sibling selector covers the one after. */
.site-main #post-431 .opal-container-block.integrations + .wp-block-spacer,
.site-main #post-431 .wp-block-spacer:has(+ .opal-container-block.integrations) {
  display: none;
}

/* ~100 scattered decorative squares for dense texture, ambient drift */
.site-main #post-431 .integrations::before {
  content: "";
  position: absolute;
  inset: -40px;
  will-change: transform;
  animation: opal-integrations-squares-drift 22s ease-in-out infinite alternate;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 700' preserveAspectRatio='xMidYMid slice'><g fill='%23ffffff'><rect x='80' y='80' width='18' height='18' opacity='0.10'/><rect x='320' y='200' width='14' height='14' opacity='0.12'/><rect x='600' y='50' width='20' height='20' opacity='0.07'/><rect x='820' y='80' width='16' height='16' opacity='0.10'/><rect x='1040' y='70' width='12' height='12' opacity='0.13'/><rect x='1240' y='130' width='14' height='14' opacity='0.09'/><rect x='1440' y='170' width='20' height='20' opacity='0.07'/><rect x='60' y='280' width='14' height='14' opacity='0.11'/><rect x='290' y='420' width='10' height='10' opacity='0.14'/><rect x='510' y='410' width='8' height='8' opacity='0.16'/><rect x='740' y='420' width='14' height='14' opacity='0.10'/><rect x='980' y='420' width='24' height='24' opacity='0.07'/><rect x='1220' y='400' width='18' height='18' opacity='0.08'/><rect x='1460' y='400' width='10' height='10' opacity='0.14'/><rect x='110' y='500' width='20' height='20' opacity='0.08'/><rect x='340' y='520' width='16' height='16' opacity='0.11'/><rect x='580' y='540' width='14' height='14' opacity='0.10'/><rect x='820' y='560' width='8' height='8' opacity='0.16'/><rect x='1060' y='540' width='18' height='18' opacity='0.08'/><rect x='1300' y='560' width='16' height='16' opacity='0.08'/><rect x='1540' y='540' width='22' height='22' opacity='0.07'/><rect x='1580' y='240' width='14' height='14' opacity='0.11'/><rect x='130' y='30' width='10' height='10' opacity='0.12'/><rect x='370' y='40' width='14' height='14' opacity='0.09'/><rect x='560' y='150' width='18' height='18' opacity='0.08'/><rect x='760' y='100' width='14' height='14' opacity='0.10'/><rect x='990' y='80' width='10' height='10' opacity='0.14'/><rect x='1180' y='40' width='12' height='12' opacity='0.12'/><rect x='1390' y='240' width='10' height='10' opacity='0.13'/><rect x='250' y='480' width='14' height='14' opacity='0.11'/><rect x='450' y='480' width='12' height='12' opacity='0.09'/><rect x='680' y='370' width='16' height='16' opacity='0.08'/><rect x='910' y='370' width='14' height='14' opacity='0.09'/></g><g fill='%237EB0FF'><rect x='160' y='140' width='10' height='10' opacity='0.16'/><rect x='420' y='110' width='8' height='8' opacity='0.18'/><rect x='700' y='180' width='10' height='10' opacity='0.16'/><rect x='940' y='160' width='22' height='22' opacity='0.10'/><rect x='1140' y='200' width='18' height='18' opacity='0.12'/><rect x='1340' y='60' width='10' height='10' opacity='0.18'/><rect x='1520' y='110' width='14' height='14' opacity='0.11'/><rect x='180' y='350' width='22' height='22' opacity='0.08'/><rect x='400' y='300' width='16' height='16' opacity='0.10'/><rect x='620' y='320' width='20' height='20' opacity='0.07'/><rect x='860' y='340' width='10' height='10' opacity='0.16'/><rect x='1100' y='320' width='12' height='12' opacity='0.14'/><rect x='1340' y='320' width='14' height='14' opacity='0.11'/><rect x='1560' y='330' width='18' height='18' opacity='0.09'/><rect x='220' y='580' width='12' height='12' opacity='0.16'/><rect x='460' y='620' width='10' height='10' opacity='0.18'/><rect x='700' y='620' width='20' height='20' opacity='0.07'/><rect x='940' y='620' width='14' height='14' opacity='0.12'/><rect x='1180' y='620' width='12' height='12' opacity='0.16'/><rect x='1420' y='620' width='10' height='10' opacity='0.16'/><rect x='40' y='420' width='12' height='12' opacity='0.13'/><rect x='270' y='270' width='12' height='12' opacity='0.12'/><rect x='470' y='240' width='8' height='8' opacity='0.18'/><rect x='660' y='240' width='10' height='10' opacity='0.16'/><rect x='870' y='240' width='16' height='16' opacity='0.08'/><rect x='1090' y='240' width='20' height='20' opacity='0.07'/><rect x='1280' y='220' width='14' height='14' opacity='0.11'/><rect x='1490' y='40' width='16' height='16' opacity='0.10'/><rect x='150' y='240' width='10' height='10' opacity='0.16'/><rect x='370' y='370' width='8' height='8' opacity='0.18'/><rect x='550' y='370' width='10' height='10' opacity='0.15'/><rect x='790' y='480' width='10' height='10' opacity='0.16'/><rect x='1020' y='480' width='12' height='12' opacity='0.13'/><rect x='1240' y='480' width='16' height='16' opacity='0.08'/></g><g fill='%23B89AFF'><rect x='240' y='60' width='24' height='24' opacity='0.08'/><rect x='520' y='220' width='12' height='12' opacity='0.10'/><rect x='1340' y='60' width='10' height='10' opacity='0'/><rect x='20' y='620' width='14' height='14' opacity='0.14'/><rect x='20' y='160' width='12' height='12' opacity='0.15'/><rect x='1580' y='460' width='16' height='16' opacity='0.10'/><rect x='60' y='550' width='16' height='16' opacity='0.09'/><rect x='180' y='640' width='10' height='10' opacity='0.15'/><rect x='280' y='660' width='14' height='14' opacity='0.10'/><rect x='400' y='560' width='8' height='8' opacity='0.18'/><rect x='520' y='670' width='12' height='12' opacity='0.12'/><rect x='640' y='560' width='10' height='10' opacity='0.15'/><rect x='760' y='670' width='14' height='14' opacity='0.10'/><rect x='880' y='540' width='10' height='10' opacity='0.16'/><rect x='1000' y='670' width='12' height='12' opacity='0.12'/><rect x='1120' y='540' width='14' height='14' opacity='0.10'/><rect x='1240' y='670' width='10' height='10' opacity='0.16'/><rect x='1360' y='540' width='16' height='16' opacity='0.08'/><rect x='1480' y='670' width='12' height='12' opacity='0.13'/><rect x='1560' y='620' width='14' height='14' opacity='0.11'/><rect x='1560' y='160' width='10' height='10' opacity='0.15'/><rect x='1560' y='400' width='10' height='10' opacity='0.15'/><rect x='1560' y='500' width='12' height='12' opacity='0.12'/><rect x='10' y='40' width='12' height='12' opacity='0.13'/><rect x='10' y='340' width='14' height='14' opacity='0.12'/><rect x='10' y='540' width='10' height='10' opacity='0.15'/><rect x='10' y='240' width='8' height='8' opacity='0.18'/><rect x='100' y='180' width='8' height='8' opacity='0.17'/><rect x='100' y='450' width='10' height='10' opacity='0.15'/><rect x='370' y='600' width='10' height='10' opacity='0.16'/><rect x='890' y='40' width='12' height='12' opacity='0.13'/><rect x='1130' y='370' width='10' height='10' opacity='0.16'/><rect x='1380' y='460' width='8' height='8' opacity='0.18'/><rect x='1510' y='250' width='10' height='10' opacity='0.15'/></g></svg>");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

@keyframes opal-integrations-squares-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(10px, -8px, 0) scale(1.015);
  }
  100% {
    transform: translate3d(-8px, 6px, 0) scale(1.005);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-main #post-431 .integrations::before {
    animation: none;
  }
}

.site-main #post-431 .integrations > .wrapper.container-fluid,
.site-main #post-431 .integrations .wrapper.container-fluid {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  display: block;
  text-align: center;
}

.site-main #post-431 .integrations .integrations-tiles-wrapper {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.4rem);
  width: 100%;
  max-width: 980px;
  padding: 0;
  margin: 0 auto clamp(1.75rem, 3.5vw, 3rem);
  background: transparent;
  align-items: stretch;
  justify-items: stretch;
  flex-wrap: nowrap;
}

/* Uniform white tile cards — square via aspect-ratio, capped width */
.site-main #post-431 .integrations .integrations-tiles-wrapper .tile {
  background: var(--opal-white);
  border-radius: 14px;
  padding: clamp(0.75rem, 1.5vw, 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  max-width: 115px;
  min-width: 0;
  justify-self: center;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 2px 5px rgba(0, 0, 0, 0.28);
  transition:
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-main #post-431 .integrations .integrations-tiles-wrapper .tile:hover,
.site-main #post-431 .integrations .integrations-tiles-wrapper .tile:focus-within {
  transform: none;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 2px 5px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(140, 170, 255, 0.32);
}

/* Lock icon aspect ratio — beat any inherited img width rules */
.site-main #post-431 .integrations .integrations-tiles-wrapper .tile img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

/* Headline */
.site-main #post-431 .integrations h3 {
  display: block;
  font-family: var(--opal-font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--opal-white);
  text-align: center;
  max-width: 28ch;
  margin: 0 auto clamp(0.85rem, 1.6vw, 1.25rem);
  padding: 0;
}

/* Body — must override existing .site-main #post-431 .integrations p
   rule that sets padding: 12px 120px (which was squeezing the
   content area to one-word-per-line at certain viewports). */
.site-main #post-431 .integrations p {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  max-width: 58ch;
  width: 100%;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  padding: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.6;
  box-sizing: border-box;
}

/* Media-query specificity match to defeat existing @media padding rule */
@media (min-width: 992px) {
  .site-main #post-431 .integrations p {
    padding: 0;
  }
}

/* Text-link "Learn More >" CTA */
.site-main #post-431 .integrations a.button {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--opal-white);
  font-weight: 600;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  text-decoration: none;
  margin: 0 auto;
  transition: color 200ms ease, text-shadow 220ms ease, transform 180ms ease;
}

.site-main #post-431 .integrations a.button::after {
  content: " \2192"; /* → */
  display: inline-block;
  margin-left: 0.3em;
  font-weight: 400;
  transition: transform 200ms ease;
}

.site-main #post-431 .integrations a.button:hover,
.site-main #post-431 .integrations a.button:focus,
.site-main #post-431 .integrations a.button:focus-visible,
.site-main #post-431 .integrations a.button:active {
  color: var(--opal-white);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
  text-decoration: none;
}

.site-main #post-431 .integrations a.button:hover::after,
.site-main #post-431 .integrations a.button:focus-visible::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Icon value props — optional 3-up row rendered below hero/feature-callout
   body copy via ACF repeater. Inherits color from surrounding context, so
   it works in both light-hero (dark text) and dark-hero (light text) layouts.
   -------------------------------------------------------------------------- */

.opal-icon-value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0;
  padding: 0;
  align-items: start;
}

.opal-icon-value-prop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  text-align: left;
}

.opal-icon-value-prop__icon {
  display: block;
  width: clamp(36px, 4vw, 56px);
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.opal-icon-value-prop__text {
  margin: 0;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.45;
  color: inherit;
  font-weight: 500;
}

/* On dark-hero pages, soften body color slightly */
body.hero-dark .opal-icon-value-prop__text {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 600px) {
  .opal-icon-value-props {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Product page (/product/) — SIMPLIFIED
   White bg, default light nav, dark eyebrow + headline, product mockup
   hidden, hero flows straight into the Plans section below.
   -------------------------------------------------------------------------- */

/* Strip the bg PNG and collapse the hero to its natural content height */
body.page-id-10031 #post-10031 .hero,
body.page-product #post-10031 .hero,
.site-main #post-10031 .hero {
  background: none !important;
  padding-top: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* Hide the product mockup figure entirely */
body.page-id-10031 #post-10031 .hero .product-hero,
body.page-id-10031 #post-10031 .hero figure.product-hero,
body.page-product #post-10031 .hero .product-hero,
body.page-product #post-10031 .hero figure.product-hero {
  display: none !important;
}

/* Hero text: static layout, dark colors, breathing padding */
body.page-id-10031 #post-10031 .hero .hero-text,
body.page-product #post-10031 .hero .hero-text {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem) !important;
  text-align: center;
  color: var(--opal-dark) !important;
  font-weight: 400 !important;
}

body.page-id-10031 #post-10031 .hero .hero-text h1,
body.page-id-10031 #post-10031 .hero .hero-text h2,
body.page-id-10031 #post-10031 .hero .hero-text h1 .highlight,
body.page-id-10031 #post-10031 .hero .hero-text h1 span.highlight,
body.page-product #post-10031 .hero .hero-text h1,
body.page-product #post-10031 .hero .hero-text h2,
body.page-product #post-10031 .hero .hero-text h1 .highlight,
body.page-product #post-10031 .hero .hero-text h1 span.highlight {
  color: var(--opal-dark) !important;
}

/* Spacer below the hero is no longer needed since there's no image overlap */
body.page-id-10031 #post-10031 .hero + .spacer,
body.page-id-10031 #post-10031 #spacer.spacer,
body.page-product #post-10031 .hero + .spacer,
body.page-product #post-10031 #spacer.spacer {
  display: none !important;
  height: 0 !important;
}

/* --------------------------------------------------------------------------
   Batch 3 — Plans / Boards / Calendar
   Mid-page demo CTA stripe: subtle rotating conic gradient bg.

   DEFERRED 2026-05-15 — selectors `.opal-demo-cta` do not exist on
   /campaign-planner/, /project-boards/, or /content-calendar/ (verified
   via curl). Rules below render nothing today. Re-target to the real
   demo-CTA block class after DB sync; design intent preserved here.
   -------------------------------------------------------------------------- */

body.page-campaign-planner .opal-demo-cta,
body.page-project-boards .opal-demo-cta,
body.page-content-calendar .opal-demo-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body.page-campaign-planner .opal-demo-cta::before,
body.page-project-boards .opal-demo-cta::before,
body.page-content-calendar .opal-demo-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    rgba(42, 112, 234, 0.55),
    rgba(122, 160, 255, 0.4),
    rgba(184, 154, 255, 0.5),
    rgba(42, 112, 234, 0.55)
  );
  animation: opal-demo-stripe-rotate 8s linear infinite;
  opacity: 0.22;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

@keyframes opal-demo-stripe-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  body.page-campaign-planner .opal-demo-cta::before,
  body.page-project-boards .opal-demo-cta::before,
  body.page-content-calendar .opal-demo-cta::before {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Batch 4 — Enterprise page
   Line-height tightening, 3-up spacing, customer love bg, security
   spacing, integrations Learn More hover, hide-avatars-and-show-Users-icon.
   -------------------------------------------------------------------------- */

/* Line-height tightening on big display text */
body.page-enterprise .opal-hero h1,
body.page-enterprise .opal-feature-callout h1,
body.page-enterprise .opal-feature-callout h2,
body.page-enterprise .change-management h2,
body.page-enterprise .customer-love h2,
body.page-enterprise .stat-large,
body.page-enterprise .opal-stat,
body.page-enterprise [class*="stat"] h2,
body.page-enterprise [class*="stat"] h3 {
  line-height: 1.02;
}

/* Customer Love quote: tighter, with more space below */
body.page-enterprise .customer-love blockquote,
body.page-enterprise .customer-love .quote,
body.page-enterprise [class*="customer-love"] blockquote {
  line-height: 1.12;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Change management headline + body spacing */
body.page-enterprise .change-management h2,
body.page-enterprise [class*="change-management"] h2,
body.page-enterprise [class*="change_management"] h2 {
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
}

/* Built for Enterprise 3-up spacing — open up icon → headline → subhead */
body.page-enterprise .built-for-enterprise .grid-feature,
body.page-enterprise .opal-feature-grid.built-for-enterprise .grid-feature,
body.page-enterprise .enterprise-grade-wrapper .grid-feature,
body.page-enterprise [class*="enterprise"] .grid-feature {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.6vw, 1.4rem);
}

body.page-enterprise .built-for-enterprise .grid-feature h3,
body.page-enterprise .enterprise-grade-wrapper .grid-feature h3,
body.page-enterprise [class*="enterprise"] .grid-feature h3 {
  margin: clamp(0.5rem, 1vw, 1rem) 0 clamp(0.4rem, 0.8vw, 0.75rem);
}

/* Customer Love section: subtle light gradient bg */
body.page-enterprise .customer-love,
body.page-enterprise [class*="customer-love"],
body.page-enterprise [class*="customer_love"] {
  background: linear-gradient(180deg, #ffffff 0%, #F4F7FB 60%, #ECF1F7 100%);
}

/* Hide avatar images in "Success Built on Relationships" and show a
   Users (Lucide) icon via ::before pseudo. */
body.page-enterprise .success-built-on-relationships .avatars,
body.page-enterprise .success-built-on-relationships .avatar,
body.page-enterprise [class*="success-built"] .avatars,
body.page-enterprise [class*="success-built"] img[src*="avatar"],
body.page-enterprise [class*="relationships"] .avatars,
body.page-enterprise [class*="relationships"] img[src*="headshot"] {
  display: none !important;
}

body.page-enterprise .success-built-on-relationships::before,
body.page-enterprise [class*="success-built-on-relationships"]::before,
body.page-enterprise [class*="relationships"]::before {
  content: "";
  display: block;
  width: clamp(48px, 5vw, 72px);
  height: clamp(48px, 5vw, 72px);
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A70EA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='4'/><path d='M22 21v-2a4 4 0 0 0-3-3.87'/><path d='M16 3.13a4 4 0 0 1 0 7.75'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Integrations module Learn More hover glow on Enterprise page */
body.page-enterprise .opal-integrations a,
body.page-enterprise .block-integrations-wrapper a,
body.page-enterprise .integrations a.button {
  transition: color 200ms ease, text-shadow 220ms ease;
}

body.page-enterprise .opal-integrations a:hover,
body.page-enterprise .block-integrations-wrapper a:hover,
body.page-enterprise .integrations a.button:hover {
  text-shadow: 0 0 14px var(--opal-blue-glow);
}

/* --------------------------------------------------------------------------
   Shared utility: scroll-triggered fade-up stagger (consumed by Solutions)
   -------------------------------------------------------------------------- */

.opal-fade-up-stagger .opal-fade-up-item {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.opal-fade-up-stagger .opal-fade-up-item.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .opal-fade-up-stagger .opal-fade-up-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Batch 3 — Plans / Boards eyebrows (color #2A70EA above hero headline)
   Injected via ::before pseudo since eyebrows aren't always set in
   the existing hero block content.
   -------------------------------------------------------------------------- */

body.page-campaign-planner .opal-hero .hero-text > h2:first-child,
body.page-campaign-planner .opal-page-header .eyebrow,
body.page-project-boards .opal-hero .hero-text > h2:first-child,
body.page-project-boards .opal-page-header .eyebrow {
  color: var(--opal-blue);
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Batch 5 — Integrations page

   DEFERRED 2026-05-15 — selectors `.integration-card`, `.opal-integration-card`,
   `.zapier-tray-section`, `.icon-feature-set`, `.icon-features` do NOT exist
   on /integrations/ (verified via curl). Real page uses generic
   `.opal-container-block` wrappers + `.integration-main-wrap`. Rules below
   render nothing today. Re-target after DB sync; design intent preserved.
   -------------------------------------------------------------------------- */

/* Uniform card heights so two-line subtext doesn't break the grid */
body.page-integrations .integration-card,
body.page-integrations .opal-integration-card,
body.page-integrations [class*="integration"] .card,
body.page-integrations [class*="integration-stack"] > * {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  height: 100%;
}

body.page-integrations [class*="integration"] .grid,
body.page-integrations [class*="integration"] .row {
  align-items: stretch;
}

/* Zapier + Tray.io section — full-width dark */
body.page-integrations .zapier-tray-section,
body.page-integrations [class*="zapier-tray"],
body.page-integrations [class*="zapier_tray"] {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(180deg, #18222A 0%, #0B101B 100%);
  color: var(--opal-white);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

body.page-integrations .zapier-tray-section .logos,
body.page-integrations [class*="zapier-tray"] .logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

body.page-integrations .zapier-tray-section h2,
body.page-integrations [class*="zapier-tray"] h2 {
  font-family: var(--opal-font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  margin: 0 0 clamp(1rem, 2vw, 1.75rem);
}

/* Icon feature sets — centered 3-up alignment */
body.page-integrations .icon-feature-set,
body.page-integrations .icon-features,
body.page-integrations [class*="icon-feature"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  justify-items: center;
  text-align: center;
  margin-inline: auto;
  max-width: 1180px;
}

/* --------------------------------------------------------------------------
   Batch 6 — Solutions ×3 (MPM, Content Marketing, Comms)
   -------------------------------------------------------------------------- */

/* Hero type size standardized to match Plans/Boards/Calendar.
   Solutions pages render hero inside .solutions-page-hero (not .opal-hero). */
body.page-marketing-project-management-software .solutions-page-hero h1,
body.page-content-marketing-platform .solutions-page-hero h1,
body.page-communication-management-software .solutions-page-hero h1,
body.page-marketing-project-management-software .opal-hero h1,
body.page-content-marketing-platform .opal-hero h1,
body.page-communication-management-software .opal-hero h1,
body.page-marketing-project-management-software .opal-page-header h1,
body.page-content-marketing-platform .opal-page-header h1,
body.page-communication-management-software .opal-page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.02;
}

/* Dark narrative sections — open up vertical rhythm */
body.page-marketing-project-management-software [class*="dark"] h2,
body.page-content-marketing-platform [class*="dark"] h2,
body.page-communication-management-software [class*="dark"] h2 {
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
}

body.page-marketing-project-management-software [class*="dark"] h2 + p,
body.page-content-marketing-platform [class*="dark"] h2 + p,
body.page-communication-management-software [class*="dark"] h2 + p,
body.page-marketing-project-management-software [class*="dark"] p + p,
body.page-content-marketing-platform [class*="dark"] p + p,
body.page-communication-management-software [class*="dark"] p + p {
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

/* Why Opal — checkmarks before each item.
   ACF block wraps content as .block-why-opal > .row > .content > <h2>+<p>...
   so selectors MUST be descendant, not direct-child. */
.block-why-opal p,
[class*="why-opal"] p,
[class*="why-opal"] li {
  list-style: none !important;
  position: relative !important;
  padding-left: 2.4rem !important;
  margin-bottom: 0.95rem !important;
}

.block-why-opal p::before,
[class*="why-opal"] p::before,
[class*="why-opal"] li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.32em !important;
  width: 1.3em !important;
  height: 1.3em !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A70EA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}

/* Headings inside .block-why-opal must NOT get the checkmark/indent */
.block-why-opal h1,
.block-why-opal h2,
.block-why-opal h3,
[class*="why-opal"] h1,
[class*="why-opal"] h2,
[class*="why-opal"] h3 {
  padding-left: 0 !important;
}

/* By the Numbers — subtle hover lift on stat tiles */
body.page-marketing-project-management-software [class*="by-the-numbers"] [class*="stat"],
body.page-content-marketing-platform [class*="by-the-numbers"] [class*="stat"],
body.page-communication-management-software [class*="by-the-numbers"] [class*="stat"],
body.page-marketing-project-management-software [class*="by_the_numbers"] [class*="stat"],
body.page-content-marketing-platform [class*="by_the_numbers"] [class*="stat"],
body.page-communication-management-software [class*="by_the_numbers"] [class*="stat"] {
  transition: opacity 240ms ease, transform 240ms ease;
}

body.page-marketing-project-management-software [class*="by-the-numbers"] [class*="stat"]:hover,
body.page-content-marketing-platform [class*="by-the-numbers"] [class*="stat"]:hover,
body.page-communication-management-software [class*="by-the-numbers"] [class*="stat"]:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Batch 7 — Verticals ×5 (QSR / Retail / Healthcare / Grocery / Software)
   -------------------------------------------------------------------------- */

/* Wide-viewport hero column ratio adjustment (≥1440px) */
@media (min-width: 1440px) {
  body.page-qsr .opal-hero .row,
  body.page-retail .opal-hero .row,
  body.page-healthcare .opal-hero .row,
  body.page-grocery .opal-hero .row,
  body.page-software .opal-hero .row {
    align-items: center;
  }

  body.page-qsr .opal-hero .content,
  body.page-retail .opal-hero .content,
  body.page-healthcare .opal-hero .content,
  body.page-grocery .opal-hero .content,
  body.page-software .opal-hero .content {
    flex-basis: 45%;
    max-width: 45%;
  }

  body.page-qsr .opal-hero .image,
  body.page-retail .opal-hero .image,
  body.page-healthcare .opal-hero .image,
  body.page-grocery .opal-hero .image,
  body.page-software .opal-hero .image {
    flex-basis: 55%;
    max-width: 55%;
  }

  body.page-qsr .opal-hero h1,
  body.page-retail .opal-hero h1,
  body.page-healthcare .opal-hero h1,
  body.page-grocery .opal-hero h1,
  body.page-software .opal-hero h1 {
    font-size: clamp(3.25rem, 4.2vw, 5rem);
  }
}

/* Form styling — Software + QSR.
   DEFERRED 2026-05-15 — no element matching `[class*="contact-form"]` or
   `[class*="talk-to-opal"]` exists on /software/ or /qsr/ (verified via curl).
   Rules below render nothing today. Re-target after DB sync. */
body.page-software [class*="contact-form"],
body.page-software [class*="talk-to-opal"],
body.page-qsr [class*="contact-form"],
body.page-qsr [class*="talk-to-opal"] {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 540px;
  margin-inline: auto;
}

body.page-software [class*="contact-form"] h2,
body.page-software [class*="talk-to-opal"] h2,
body.page-qsr [class*="contact-form"] h2,
body.page-qsr [class*="talk-to-opal"] h2 {
  font-family: var(--opal-font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  text-align: center;
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
}

body.page-software [class*="contact-form"] input[type="submit"],
body.page-software [class*="contact-form"] button[type="submit"],
body.page-software [class*="talk-to-opal"] input[type="submit"],
body.page-software [class*="talk-to-opal"] button[type="submit"],
body.page-qsr [class*="contact-form"] input[type="submit"],
body.page-qsr [class*="contact-form"] button[type="submit"],
body.page-qsr [class*="talk-to-opal"] input[type="submit"],
body.page-qsr [class*="talk-to-opal"] button[type="submit"] {
  width: 100%;
  background: var(--opal-blue);
  color: var(--opal-white);
  border: 0;
  border-radius: var(--opal-radius-btn);
  padding: 0.95em 1.5em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease, box-shadow 220ms ease;
}

body.page-software [class*="contact-form"] input[type="submit"]:hover,
body.page-qsr [class*="contact-form"] input[type="submit"]:hover,
body.page-software [class*="talk-to-opal"] button[type="submit"]:hover,
body.page-qsr [class*="talk-to-opal"] button[type="submit"]:hover {
  background: var(--opal-blue-hover);
  box-shadow: 0 0 18px var(--opal-blue-glow);
}

/* --------------------------------------------------------------------------
   Batch 8 — Customers page
   -------------------------------------------------------------------------- */

/* Customer stories — consistent vertical gap between image / headline / subtext.
   Real DOM: .opal-customer-stories > .row > .col-xs-12.col-sm-6.story (verified via curl 2026-05-15). */
body.page-customers .opal-customer-stories .story {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.6vw, 1.4rem);
}

/* Customer story images — enforce consistent aspect ratio */
body.page-customers .opal-customer-stories .story > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Testimonial.io widget — white bg, full width, no extra whitespace */
body.page-customers [class*="testimonial-io"],
body.page-customers [id*="testimonial"],
body.page-customers [class*="t-widget"],
body.page-customers .testimonial-widget {
  background: var(--opal-white);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0;
  margin-bottom: 0;
}

body.page-customers [class*="testimonial-io"] iframe,
body.page-customers [id*="testimonial"] iframe,
body.page-customers .testimonial-widget iframe {
  width: 100%;
  display: block;
  margin: 0;
}

/* Responsive tile grid */
@media (max-width: 900px) {
  .site-main #post-431 .integrations .integrations-tiles-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .site-main #post-431 .integrations .integrations-tiles-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}
