/* ============================================================
   AI OPS PAGE — Task #532 redesign.
   Six sections: hero, static capability-by-industry matrix,
   engagement steps, in-production stats band, insights strip,
   end CTA. Hero + stats keep the prior visual language; the rest
   is new. All older AI Ops styles (live signal, hard truth,
   contained chat on-ramp) are intentionally removed.
   ============================================================ */

/* ---------- shell ---------- */
.proof-pane--bleed { padding: 0; }

.aiops {
  background: var(--ink);
  color: var(--text);
  position: relative;
  overflow: hidden;
  font-family: var(--sans);
}

.aiops::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  opacity: 0.6;
}

.aiops-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-20) var(--sp-12) var(--sp-20);
  position: relative;
}

/* ---------- Section 1 · Hero ----------
   .aiops-eyebrow composes the shared .eyebrow--rule primitive in
   main.css (flex + yellow rule + --sp-8 margin). The old inline-flex
   / --sp-6 local override made the AI OPS eyebrow sit ~8px lower
   than every other hero — removed in Task #612. */

.aiops-hero-title {
  font-family: var(--serif);
  font-weight: var(--fw-light);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-headline);
  margin: 0 0 var(--sp-8);
  color: var(--white);
}
.aiops-hero-title em {
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--be-yellow);
}

.aiops-hero-lede {
  font-family: var(--sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-sublede);
  line-height: var(--lh-base);
  color: var(--text-mute);
  margin: 0 0 var(--sp-24);
}

/* ---------- Section 2 · Capabilities ---------- */
.aiops-cap {
  margin-bottom: var(--sp-24);
}
.aiops-cap__head {
  margin-bottom: var(--sp-8);
}
/* .aiops-cap__eyebrow, .aiops-eng__eyebrow, .aiops-insights__eyebrow
   are aliased onto the shared .eyebrow--rule primitive in main.css
   (Task #554) so the section-intro eyebrows on /ai-ops match the
   identical yellow-rule treatment used on /home, /work, /insights and
   /about. No per-page font / colour / size deltas are needed. */
/* Section headlines — editorial DM Sans light, matching the
   hero pattern used across /work and /insights (Task #549). */
.aiops-cap__headline,
.aiops-eng__headline,
.aiops-insights__headline {
  font-family: var(--serif);
  font-weight: var(--fw-light);
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-headline);
  color: var(--text);
  margin: 0 0 var(--sp-4);
}
.aiops-cap__lede {
  font-family: var(--sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-sublede);
  line-height: var(--lh-base);
  color: var(--text-mute);
  margin: 0 0 var(--sp-8);
}

/* Four operating disciplines, with one optional open panel at a time. */
.aiops-operating-accordion {
  margin-top: var(--sp-8);
  border-top: 1px solid var(--ink-line);
}
.aiops-operating__error {
  margin: 0;
  padding: var(--sp-6);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xs);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-mute);
}
.aiops-operating-chapter {
  border-bottom: 1px solid var(--ink-line);
}
.aiops-operating-chapter__title {
  margin: 0;
}
.aiops-operating-chapter__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 24px;
  gap: var(--sp-4);
  align-items: center;
  border: 0;
  padding: var(--sp-6) 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.aiops-operating-chapter__trigger:focus-visible {
  outline: 1px solid var(--be-yellow);
  outline-offset: var(--sp-2);
}
.aiops-operating-chapter__num {
  font-family: var(--mono);
  font-weight: var(--fw-medium);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-caps);
  line-height: var(--lh-snug);
  color: var(--be-yellow);
}
.aiops-operating-chapter__name {
  font-family: var(--serif);
  font-weight: var(--fw-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  transition: color 160ms ease;
}
.aiops-operating-chapter__trigger:hover .aiops-operating-chapter__name {
  color: var(--be-yellow);
}
.aiops-operating-chapter__indicator {
  width: 14px;
  height: 14px;
  position: relative;
  justify-self: end;
  color: var(--text-faint);
}
.aiops-operating-chapter__indicator::before,
.aiops-operating-chapter__indicator::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 500ms ease, color 500ms ease;
}
.aiops-operating-chapter__indicator::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 1px;
}
.aiops-operating-chapter__indicator::after {
  top: 0;
  left: 6px;
  width: 1px;
  height: 14px;
}
.aiops-operating-chapter[data-state="open"] .aiops-operating-chapter__indicator {
  color: var(--be-yellow);
}
.aiops-operating-chapter[data-state="open"] .aiops-operating-chapter__indicator::after {
  transform: scaleY(0);
}
.aiops-operating-chapter__panel {
  display: grid;
  grid-template-rows: 0fr;
  padding-left: 96px;
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  transition:
    grid-template-rows 500ms ease,
    opacity 500ms ease,
    transform 500ms ease,
    visibility 0s linear 500ms;
}
.aiops-operating-chapter[data-state="open"] .aiops-operating-chapter__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition:
    grid-template-rows 500ms ease,
    opacity 500ms ease,
    transform 500ms ease,
    visibility 0s linear 0s;
}
.aiops-operating-chapter__panel-inner {
  min-height: 0;
  overflow: hidden;
  margin: 0;
}
.aiops-operating-note {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: var(--sp-8);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--ink-line);
}
.aiops-operating-note__sector {
  font-family: var(--mono);
  font-size: var(--fs-label);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
}
.aiops-operating-note__example {
  font-family: var(--sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-sublede);
  line-height: var(--lh-snug);
  color: var(--text);
  margin: 0;
  overflow-wrap: anywhere;
}
.aiops-operating-note[data-sector="hospitality"] .aiops-operating-note__sector { color: var(--sec-hospitality); }
.aiops-operating-note[data-sector="finance"] .aiops-operating-note__sector { color: var(--sec-finance-light); }
.aiops-operating-note[data-sector="retail"] .aiops-operating-note__sector { color: var(--sec-retail-light); }
.aiops-operating-note[data-sector="technology"] .aiops-operating-note__sector { color: var(--sec-technology-light); }
.aiops-operating-note[data-sector="public-sector"] .aiops-operating-note__sector { color: var(--sec-public-sector-light); }
.aiops-operating-note[data-sector="media"] .aiops-operating-note__sector { color: var(--sec-media-light); }
.aiops-cap__closing {
  max-width: 900px;
  margin: var(--sp-8) 0 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-mute);
}

/* ---------- Section 3 · Engagement ---------- */
.aiops-eng {
  margin-bottom: var(--sp-24);
  padding-top: var(--sp-16);
  border-top: 1px solid var(--ink-line);
}
.aiops-eng__head {
  margin-bottom: var(--sp-12);
}
.aiops-eng__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-8);
}
.aiops-eng__step {
  display: flex;
  flex-direction: column;
}
.aiops-eng__step-num {
  font-family: var(--display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  color: var(--be-yellow);
  margin-bottom: var(--sp-4);
}
.aiops-eng__step-title {
  font-family: var(--sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  color: var(--text);
  margin: 0 0 var(--sp-3);
}
/* Step body — DM Sans (paragraph copy rule). */
.aiops-eng__step-body {
  font-family: var(--sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-mute);
  margin: 0;
}

/* ---------- Section 4 · Stats band ----------
   Wrapper chrome lives on the shared .stats-band-section class in
   main.css (Task #537) so /home, /about, and /ai-ops all render
   the band identically. No /ai-ops-local rules needed here. */

/* ---------- Section 5 · Insights strip ---------- */
.aiops-insights {
  margin-bottom: var(--sp-24);
}
.aiops-insights__head {
  margin-bottom: var(--sp-8);
}
.aiops-insights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-8);
}
/* Insights cards — share the insight-card surface + hover.
   See insight-card.md and the site-wide hover rule in
   docs/design-system/reference/README.md. */
.aiops-insights__card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xs);
  text-decoration: none;
  color: var(--text);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.aiops-insights__card:hover {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}
.aiops-insights__card:focus-visible {
  outline: 2px solid var(--be-yellow);
  outline-offset: 2px;
}
.aiops-insights__pillar {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
}
/* Sector-colored pillar tag (Task #532). */
.aiops-insights__card[data-sector="hospitality"] .aiops-insights__pillar { color: var(--sec-hospitality); }
.aiops-insights__card[data-sector="finance"] .aiops-insights__pillar { color: var(--sec-finance-light); }
.aiops-insights__card[data-sector="retail"] .aiops-insights__pillar { color: var(--sec-retail-light); }
.aiops-insights__card[data-sector="technology"] .aiops-insights__pillar { color: var(--sec-technology-light); }
.aiops-insights__card[data-sector="public-sector"] .aiops-insights__pillar { color: var(--sec-public-sector-light); }
.aiops-insights__card[data-sector="media"] .aiops-insights__pillar { color: var(--sec-media-light); }
.aiops-insights__card[data-sector="professional-services"] .aiops-insights__pillar { color: var(--sec-professional-services-light); }
.aiops-insights__card[data-sector="energy-utilities"] .aiops-insights__pillar { color: var(--sec-energy-utilities-light); }
.aiops-insights__card[data-sector="industrial"] .aiops-insights__pillar { color: var(--sec-industrial-light); }
.aiops-insights__card[data-sector="education-research"] .aiops-insights__pillar { color: var(--sec-education-research-light); }
/* Insights card title — matches `.insights-card__title`. */
.aiops-insights__title {
  font-family: var(--serif);
  font-weight: var(--fw-regular);
  font-size: var(--fs-sublede);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-body);
  color: var(--text);
  margin: 0 0 var(--sp-4);
}
.aiops-insights__deck {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-mute);
  margin: 0 0 var(--sp-4);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aiops-insights__cta {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--be-yellow);
}

/* ---------- Section 6 · End CTA ----------
   /ai-ops now renders the shared `.insight-endcta` band (see
   BE.proof._renderAiOpsCta + insight.css) so its end-CTA is identical
   to every other page. The former framed `.aiops-cta*` panel styles
   were removed — the shared band carries all the typography. */

/* ---------- Tablet ---------- */
/* Engagement steps drop to 2x2 between 768px and 1024px (tablet). */
@media (max-width: 1023px) {
  .aiops-eng__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8); }
  .aiops-insights__grid { grid-template-columns: 1fr; }
}
/* Engagement steps stack to a single column under 768px per brief.
   The shell padding and section rhythm switch here too — the mobile
   shell breakpoint is md (767px) on every page (Task #612; this block
   previously switched at 639px, leaving 640–767px on desktop padding
   while the other five pages had already collapsed). */
@media (max-width: 767px) {
  .aiops-eng__steps { grid-template-columns: 1fr; gap: var(--sp-8); }
  .aiops-wrap { padding: var(--sp-14) var(--sp-5) var(--sp-14); }
  .aiops-hero-lede { margin-bottom: 64px; }
  .aiops-cap, .aiops-eng, .aiops-insights { margin-bottom: 64px; }
  .aiops-operating-chapter__trigger {
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    gap: var(--sp-3);
  }
  .aiops-operating-chapter__panel { padding-left: 0; }
  .aiops-operating-note {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
    padding: var(--sp-5) 0;
  }
  .aiops-operating-note__example { font-size: var(--fs-body); }
}
@media (prefers-reduced-motion: reduce) {
  .aiops-operating-chapter__name,
  .aiops-operating-chapter__indicator::before,
  .aiops-operating-chapter__indicator::after,
  .aiops-operating-chapter__panel {
    transition: none;
  }
}
