/* =========================================================
   EpiCopilot — Collaborative ERP AI workspace (ACC product page)
   Scoped: body.epc-page, classes prefixed epc-
   Typography inherits style.css (--font-sans)
   ========================================================= */

:root {
  --epc-brand: #025064;
  --epc-brand-deep: #012a33;
  --epc-accent: #1fb394;
  --epc-hero-grad-start: #004d61;
  --epc-hero-grad-end: #87c0b0;
  /* Hero base canvas (same layers as .epc-hero; reused by scenario animation page) */
  --epc-hero-canvas-layers: radial-gradient(
      ellipse 85% 70% at 92% 10%,
      rgba(120, 235, 215, 0.42) 0%,
      transparent 52%
    ),
    radial-gradient(ellipse 55% 45% at 8% 78%, rgba(0, 38, 46, 0.85) 0%, transparent 55%),
    linear-gradient(122deg, #012a32 0%, #034a52 32%, #0d6b64 58%, #6ec5b2 100%);
  --epc-hero-canvas-fallback: #012a32;
  --epc-hero-cyan: #5eead4;
  --epc-hero-cyan-strong: #26c1c1;
  --epc-accent-soft: rgba(31, 179, 148, 0.14);
  --epc-ink: #0f172a;
  --epc-ink-2: #1f2937;
  --epc-muted: #64748b;
  --epc-border: rgba(15, 23, 42, 0.12);
  --epc-card: #ffffff;
  --epc-surface: #f0f4f8;
  --epc-surface-2: #f7f9fb;
  --epc-shadow-sm: 0 2px 12px rgba(2, 80, 100, 0.08);
  --epc-shadow-md: 0 12px 40px rgba(2, 42, 51, 0.14);
  --epc-radius: 12px;
  --epc-radius-lg: 16px;
}

/* Horizontal clip on main only — body.clip breaks position:sticky on the injected ACC header */
body.epc-page {
  overflow-x: visible;
  /* Offset for fixed ACC header (see block below); tuned to .site-header bar height */
  --epc-acc-header-h: 84px;
}

@media (max-width: 768px) {
  body.epc-page {
    --epc-acc-header-h: 80px;
  }
}

body.epc-page #main-content {
  margin-top: 0 !important;
  /* Do not pad main: that area uses body’s white bg and looked like a gap under the fixed bar. */
  padding-top: 0 !important;
  overflow-x: clip;
}

/*
 * ACC header: same partial as main site (../partials/acc-header-unified.html).
 * Sticky on the inner <header> fails because it sits inside #header-placeholder — a box only
 * as tall as the bar, so the sticky element’s containing block scrolls away with the page.
 * Fixed positions relative to the viewport; hero top padding reserves the bar + safe-area;
 * comfortable spacing is on .epc-hero-inner (no main padding — avoids white gap).
 */
body.epc-page #header-placeholder .site-header.acc-site-header {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  margin: 0;
}

body.epc-page .container {
  max-width: 1200px;
  padding-left: 24px;
  padding-right: 24px;
}

.epc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero ---------- */
.epc-hero {
  padding: clamp(40px, 5.5vw, 72px) 0 clamp(64px, 8vw, 96px);
  color: #fff;
  background: var(--epc-hero-canvas-layers);
  background-color: var(--epc-hero-canvas-fallback);
  position: relative;
  /* Allow interface mock shadows/glow to extend (premium floating card) */
  overflow-x: clip;
  overflow-y: visible;
  isolation: isolate;
}

body.epc-page .epc-hero {
  margin-top: 0;
  /* Gradient starts at main top (flush under fixed bar in the layout); this band sits under the bar in the viewport */
  padding-top: calc(var(--epc-acc-header-h) + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(64px, 8vw, 96px);
  padding-left: 0;
  padding-right: 0;
}

/* Matches pre-gap layout: former #main-content offset + original hero rhythm */
body.epc-page .epc-hero > .container.epc-hero-inner {
  padding-top: clamp(40px, 5.5vw, 72px);
}

@media (max-width: 768px) {
  body.epc-page .epc-hero > .container.epc-hero-inner {
    padding-top: clamp(48px, 6vw, 76px);
  }
}

/* Subtle depth: orbs, diagonal streaks, sparkles (decorative) */
.epc-hero-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.epc-hero-decor-orb--lg {
  position: absolute;
  width: min(62vw, 760px);
  height: min(62vw, 760px);
  right: -12%;
  top: -22%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(180, 255, 245, 0.16) 0%,
    rgba(90, 200, 185, 0.08) 42%,
    transparent 68%
  );
}

.epc-hero-decor-orb--sm {
  position: absolute;
  width: min(28vw, 280px);
  height: min(28vw, 280px);
  right: 8%;
  top: 32%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 62%);
  filter: blur(12px);
  opacity: 0.65;
}

.epc-hero-decor-streak {
  position: absolute;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 45%,
    rgba(200, 255, 245, 0.12) 55%,
    transparent 100%
  );
  opacity: 0.28;
  filter: blur(0.5px);
}

.epc-hero-decor-streak--1 {
  width: min(52vw, 520px);
  left: -6%;
  bottom: 22%;
  transform: rotate(-38deg);
}

.epc-hero-decor-streak--2 {
  width: min(42vw, 420px);
  left: 8%;
  bottom: 38%;
  transform: rotate(-38deg);
  opacity: 0.2;
  height: 8px;
}

.epc-hero-decor-streak--3 {
  width: min(36vw, 380px);
  right: -4%;
  top: 48%;
  transform: rotate(-38deg);
  opacity: 0.18;
  height: 7px;
}

.epc-hero-decor-sparkles {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    radial-gradient(rgba(200, 255, 245, 0.45) 1px, transparent 1px);
  background-size: 56px 56px, 72px 72px;
  background-position: 0 0, 28px 36px;
  mask-image: radial-gradient(ellipse 85% 70% at 70% 45%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 70% 45%, #000 15%, transparent 72%);
}

body.epc-page .epc-hero > .container {
  max-width: min(1200px, 100%);
}

.epc-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  /* 40% : 60% */
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(20px, 2.5vw, 32px);
  /* Top-align columns so the interface image can line up with the logo */
  align-items: start;
}

.epc-hero-copy {
  padding-top: 0;
  max-width: none;
  min-width: 0;
}

@media (min-width: 1101px) {
  .epc-hero-copy {
    padding-right: clamp(8px, 1.2vw, 20px);
    margin-top: clamp(-16px, -2.2vw, -36px);
  }

  /* Match left column uplift so interface top aligns with EpiCopilot logo top */
  .epc-hero-mock {
    margin-top: clamp(-16px, -2.2vw, -36px);
  }
}

.epc-hero-brand {
  margin-bottom: 12px;
}
.epc-hero-logo {
  height: clamp(88px, 9.5vw, 112px);
  width: auto;
  max-width: min(520px, 100%);
  display: block;
  filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.25));
}

/* Positioning line — below logo, above headline; premium pill emphasis */
.epc-hero-tagline {
  display: inline-block;
  margin: 0 0 18px;
  padding: 0.55rem 1.05rem;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: clamp(1.08rem, 1.75vw, 1.38rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #ecfeff;
  background: linear-gradient(
    145deg,
    rgba(0, 22, 32, 0.58) 0%,
    rgba(0, 36, 44, 0.42) 100%
  );
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 0 rgba(0, 0, 0, 0.15),
    0 6px 28px rgba(0, 25, 35, 0.4);
  text-shadow: 0 0 32px rgba(94, 234, 212, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Align with ACC homepage `.hero-title` (css/style.css) */
body.epc-page .epc-hero h1.hero-title.epc-hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: normal;
  max-width: 620px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.epc-hero-support {
  margin: 0 0 16px;
  max-width: 620px;
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  line-height: 1.35;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.04em;
}

.epc-hero-highlight {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 18, 26, 0.45);
  border: 1px solid rgba(94, 234, 212, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.epc-hero-highlight-line {
  margin: 0;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.45;
  font-weight: 700;
  color: var(--epc-hero-cyan);
}
.epc-hero-highlight-line + .epc-hero-highlight-line {
  margin-top: 6px;
}

.epc-hero-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 100%;
}
.epc-hero-lead p {
  margin: 0;
}

.epc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

body.epc-page .epc-hero-btn-primary.btn.btn-primary {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 0;
  background: linear-gradient(180deg, #3dd4c0 0%, #1fb394 100%);
  box-shadow: 0 8px 24px rgba(0, 40, 45, 0.35);
}

body.epc-page .epc-hero-btn-primary.btn.btn-primary:hover {
  filter: brightness(1.06);
}

body.epc-page .epc-hero-btn-ghost.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  background: rgba(0, 30, 40, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

body.epc-page .epc-hero-btn-ghost.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---------- Hero interface image (static mockup) ---------- */
.epc-hero-mock {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
  isolation: isolate;
  perspective: 1400px;
  perspective-origin: 52% 42%;
  padding-bottom: clamp(8px, 1.5vw, 20px);
}

/* Soft teal “stage light” behind the card — reads as depth, not a flat paste-in */
.epc-hero-mock::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(108%, 760px);
  height: min(62%, 420px);
  bottom: -6%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 70% 55% at 50% 40%,
    rgba(45, 212, 191, 0.28) 0%,
    rgba(20, 120, 110, 0.08) 42%,
    transparent 72%
  );
  filter: blur(28px);
  opacity: 0.95;
  pointer-events: none;
  z-index: -1;
}

/* Premium frame — HTML UI mock or legacy screenshot */
.interface-hero-frame {
  margin: 0;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(72, 235, 220, 0.32);
  background: linear-gradient(
    165deg,
    rgba(6, 28, 36, 0.92) 0%,
    rgba(3, 18, 26, 0.88) 45%,
    rgba(2, 14, 22, 0.95) 100%
  );
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 14px 28px rgba(0, 8, 18, 0.42),
    0 36px 72px rgba(0, 12, 28, 0.52),
    0 52px 100px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 36px rgba(40, 210, 195, 0.22),
    0 0 80px rgba(25, 160, 150, 0.12);
  line-height: normal;
  transform: translateY(-8px) rotateX(1.1deg);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

.interface-hero-frame--ui {
  background: #0b1520;
}

.interface-hero-frame img,
.epc-hero-interface-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  object-fit: contain;
  object-position: center top;
  filter: saturate(1.03) contrast(1.02);
}

/* Responsive */
@media (max-width: 1100px) {
  .interface-hero-frame {
    transform: translateY(-4px) rotateX(0.6deg);
  }

  .epc-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .epc-hero-copy {
    max-width: none;
    margin-top: 0;
  }

  .epc-hero-mock {
    width: 100%;
    margin-left: 0;
    max-width: 100%;
    margin-top: 0;
  }
}

/* No 3D tilt when user requests reduced motion (must follow viewport rules above) */
@media (prefers-reduced-motion: reduce) {
  .interface-hero-frame {
    transform: translateY(-4px);
  }
}

/* ---------- Hero HTML/CSS workspace mock + demo states ---------- */
.epc-ui-mock {
  position: relative;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: clamp(10px, 0.82vw, 12px);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: clamp(300px, 42vw, 440px);
  background: linear-gradient(180deg, #0d1824 0%, #0a121c 100%);
  user-select: text;
}

/* Demo-only cursor that moves to Send (product-like interaction; not a second pointer device) */
.epc-ui-demo-pointer {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 200;
  width: 28px;
  height: 28px;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
  transition: opacity 0.2s ease;
  will-change: transform, opacity;
}

.epc-ui-demo-pointer-svg {
  display: block;
}

.epc-ui-demo-pointer--click .epc-ui-demo-pointer-svg {
  transform: scale(0.9);
  transition: transform 0.1s ease;
}

.epc-ui-send-btn.epc-ui-send-btn--demo-press {
  transform: scale(0.94);
  filter: brightness(0.92);
  transition: transform 0.08s ease, filter 0.08s ease;
}

@media (prefers-reduced-motion: reduce) {
  .epc-ui-demo-pointer {
    transition: none !important;
  }

  .epc-ui-demo-pointer--click .epc-ui-demo-pointer-svg {
    transform: none !important;
  }

  .epc-ui-send-btn.epc-ui-send-btn--demo-press {
    transform: none !important;
    filter: none !important;
  }
}

.epc-ui-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(94, 234, 212, 0.12);
  flex-shrink: 0;
  background: rgba(8, 18, 28, 0.95);
}

.epc-ui-topbar-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

/* Hero UI mock only: full wordmark (replaces .epc-ui-logo-mark + .epc-ui-logo-text in markup) */
.epc-ui-mock .epc-ui-topbar-left .epc-ui-brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.epc-ui-mock .epc-ui-topbar-left .epc-ui-brand-logo-img {
  height: 22px;
  width: auto;
  max-width: 152px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.epc-ui-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85em;
  background: rgba(20, 184, 166, 0.22);
  color: #5eead4;
}

.epc-ui-logo-text {
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: -0.02em;
  color: #fff;
}

.epc-ui-topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(148, 163, 184, 0.35);
}

.epc-ui-workspace-label {
  font-size: 0.88em;
  color: rgba(226, 232, 240, 0.72);
}

.epc-ui-topbar-center {
  justify-self: center;
}

.epc-ui-erp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(15, 78, 92, 0.55);
  border: 1px solid rgba(94, 234, 212, 0.22);
}

.epc-ui-erp-ico {
  opacity: 0.85;
}

.epc-ui-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.epc-ui-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(226, 232, 240, 0.75);
  cursor: default;
}

.epc-ui-icon-btn--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.epc-ui-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.epc-ui-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72em;
  font-weight: 700;
  background: linear-gradient(145deg, #14b8a6, #0d9488);
  color: #042f2e;
}

.epc-ui-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.epc-ui-user-name {
  font-weight: 600;
  font-size: 0.88em;
  color: #f8fafc;
}

.epc-ui-user-role {
  font-size: 0.75em;
  color: rgba(148, 163, 184, 0.95);
}

.epc-ui-body {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) minmax(130px, 24%);
  flex: 1;
  min-height: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.65);
}

.epc-ui-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(94, 234, 212, 0.08);
  background: rgba(6, 14, 22, 0.88);
  padding: 10px 8px;
  min-height: 0;
}

.epc-ui-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
}

.epc-ui-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.88em;
  font-weight: 500;
  color: rgba(203, 213, 225, 0.85);
  text-decoration: none;
  cursor: default;
}

.epc-ui-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.epc-ui-nav-link.is-active {
  background: rgba(20, 184, 166, 0.14);
  color: #5eead4;
}

.epc-ui-nav-link--bottom {
  margin-top: auto;
}

.epc-ui-nav-ico {
  flex-shrink: 0;
  opacity: 0.88;
}

.epc-ui-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: rgba(10, 18, 28, 0.35);
}

.epc-ui-chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.epc-ui-chat-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.epc-ui-thread {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

/* Summary text + KPI/table/chart = one answer unit */
.epc-ui-answer-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.epc-ui-answer-stack > .epc-ui-msg--assistant {
  margin-top: 0;
}

.epc-ui-msg-meta {
  font-size: 0.78em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 4px;
}

.epc-ui-msg-who {
  font-weight: 600;
  color: #cbd5e1;
}

.epc-ui-msg-bubble {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.epc-ui-msg-bubble--user {
  background: rgba(21, 36, 51, 0.98);
  border-color: rgba(94, 234, 212, 0.14);
}

.epc-ui-msg-bubble--user p {
  margin: 0;
  font-size: 0.92em;
  line-height: 1.45;
  color: #f1f5f9;
}

.epc-ui-msg--assistant {
  margin-top: 4px;
}

.epc-ui-assistant-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.epc-ui-assistant-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65em;
  font-weight: 700;
  background: rgba(94, 234, 212, 0.18);
  color: #5eead4;
}

.epc-ui-assistant-name {
  font-weight: 700;
  font-size: 0.88em;
  color: #fff;
}

.epc-ui-msg-bubble--assistant {
  background: rgba(15, 26, 38, 0.97);
  border-color: rgba(94, 234, 212, 0.12);
}

.epc-ui-assistant-body {
  margin: 0;
  font-size: 0.92em;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.96);
}

/* Assistant reply area: 3-dot “thinking” wave (matches assistant bubble tone) */
.epc-ui-assistant-loading {
  display: flex;
  align-items: center;
  min-height: 1.5em;
}

/* [hidden] must win over display:flex (dots never overlap answer text) */
.epc-ui-assistant-loading[hidden] {
  display: none !important;
}

/* Safety: when answer body is shown, loading dots must not appear */
.epc-ui-msg-bubble--assistant:has(.epc-ui-assistant-body:not([hidden]))
  .epc-ui-assistant-loading {
  display: none !important;
  visibility: hidden;
}

.epc-ui-chat-loading-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.epc-ui-chat-loading-dots span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.82);
  box-shadow: 0 0 6px rgba(94, 234, 212, 0.25);
  animation: epc-ui-chat-dot-wave 1.05s ease-in-out infinite;
}

.epc-ui-chat-loading-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.epc-ui-chat-loading-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes epc-ui-chat-dot-wave {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.epc-ui-thinking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(94, 234, 212, 0.1);
  font-size: 0.9em;
  color: rgba(203, 213, 225, 0.95);
}

.epc-ui-dots {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
}

.epc-ui-dots > span {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.85);
  animation: epc-ui-dot-pulse 1.05s ease-in-out infinite;
}

.epc-ui-dots > span:nth-child(2) {
  animation-delay: 0.18s;
}

.epc-ui-dots > span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes epc-ui-dot-pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(1px);
  }
  35% {
    opacity: 1;
    transform: translateY(0);
  }
}

.epc-ui-result-blocks {
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(94, 234, 212, 0.14);
  /* Top-down reveal: expand visible band from the top downward (not rising from bottom) */
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.epc-ui-result-blocks.epc-ui-result-blocks--visible {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}

/* Loop reset: hide result blocks without reverse clip-path animation */
.epc-ui-mock[data-instant-reset="true"] .epc-ui-result-blocks {
  transition: none !important;
}

.epc-ui-mock[data-static="true"] .epc-ui-result-blocks {
  clip-path: inset(0 0 0 0);
  transition: none;
  pointer-events: auto;
}

.epc-ui-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.epc-ui-kpi {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(17, 28, 42, 0.98);
  border: 1px solid rgba(94, 234, 212, 0.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.epc-ui-kpi-label {
  display: block;
  font-size: 0.72em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 4px;
}

.epc-ui-kpi-value {
  display: block;
  font-size: 1.25em;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.epc-ui-kpi-delta {
  display: block;
  font-size: 0.72em;
  margin-top: 4px;
  color: rgba(148, 163, 184, 0.85);
}

.epc-ui-kpi-delta.is-up {
  color: #fb923c;
}

.epc-ui-panel-title {
  font-size: 0.82em;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.92);
  margin-bottom: 6px;
}

.epc-ui-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.1);
  margin-bottom: 12px;
}

.epc-ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78em;
}

.epc-ui-table th,
.epc-ui-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(30, 41, 59, 0.85);
}

.epc-ui-table th {
  font-weight: 600;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(12, 22, 34, 0.95);
}

.epc-ui-table tbody tr:last-child td {
  border-bottom: 0;
}

.epc-ui-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92em;
}

.epc-ui-tag--danger {
  background: rgba(185, 28, 28, 0.22);
  color: #fecaca;
}

.epc-ui-tag--warn {
  background: rgba(180, 83, 9, 0.24);
  color: #fde68a;
}

.epc-ui-tag--info {
  background: rgba(30, 64, 175, 0.22);
  color: #bfdbfe;
}

.epc-ui-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.epc-ui-subtitle {
  font-size: 0.78em;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.88);
  margin-bottom: 8px;
}

.epc-ui-risk-chart {
  display: flex;
  align-items: center;
  gap: 12px;
}

.epc-ui-donut {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(
    #14b8a6 0deg 137deg,
    #3b82f6 137deg 234deg,
    #f59e0b 234deg 302deg,
    #475569 302deg 360deg
  );
  box-shadow: inset 0 0 0 10px #0f172a;
}

.epc-ui-risk-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.74em;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.9);
}

.epc-ui-risk-legend strong {
  color: #f1f5f9;
  font-weight: 600;
}

.epc-ui-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.epc-ui-dot--a {
  background: #14b8a6;
}
.epc-ui-dot--b {
  background: #3b82f6;
}
.epc-ui-dot--c {
  background: #f59e0b;
}
.epc-ui-dot--d {
  background: #64748b;
}

.epc-ui-risk-block,
.epc-ui-insight-block {
  padding: 10px;
  border-radius: 10px;
  background: rgba(14, 24, 36, 0.92);
  border: 1px solid rgba(94, 234, 212, 0.1);
}

.epc-ui-insight-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78em;
  font-weight: 700;
  color: #5eead4;
  margin-bottom: 6px;
}

.epc-ui-insight-text {
  margin: 0;
  font-size: 0.78em;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.92);
}

.epc-ui-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.epc-ui-action-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 600;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: rgba(15, 30, 42, 0.95);
  color: rgba(226, 232, 240, 0.92);
  cursor: default;
}

.epc-ui-action-btn--primary {
  background: linear-gradient(180deg, #2dd4bf 0%, #14b8a6 100%);
  border-color: rgba(45, 212, 191, 0.45);
  color: #042f2e;
}

.epc-ui-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(94, 234, 212, 0.12);
  background: rgba(8, 16, 26, 0.92);
  flex-shrink: 0;
}

.epc-ui-composer-field {
  position: relative;
  flex: 1;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(18, 28, 42, 0.98);
  border: 1px solid rgba(94, 234, 212, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Typed question + cursor sit inside the field above the placeholder layer */
.epc-ui-composer-input-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 1.35em;
  line-height: 1.45;
}

.epc-ui-composer-placeholder {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
  z-index: 0;
  font-size: 0.88em;
  color: rgba(148, 163, 184, 0.65);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.epc-ui-mock[data-state="idle"] .epc-ui-composer-placeholder {
  opacity: 0.55;
}

.epc-ui-composer-typed {
  font-size: 0.88em;
  font-weight: 500;
  color: #f8fafc;
  word-break: break-word;
}

.epc-ui-cursor {
  display: inline-block;
  width: 0;
  height: 1em;
  vertical-align: -0.15em;
  margin-left: 0;
  background: rgba(94, 234, 212, 0.95);
  opacity: 0;
  overflow: hidden;
}

.epc-ui-mock[data-state="typing-q"] .epc-ui-cursor--composer {
  width: 1px;
  margin-left: 1px;
  opacity: 1;
  animation: epc-ui-cursor-blink 1s step-end infinite;
}

.epc-ui-mock[data-state="typing-a"] .epc-ui-cursor--assistant {
  width: 1px;
  margin-left: 1px;
  opacity: 1;
  animation: epc-ui-cursor-blink 1s step-end infinite;
}

@keyframes epc-ui-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.epc-ui-composer-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.epc-ui-send-btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82em;
  border: 0;
  cursor: default;
  background: linear-gradient(180deg, #2dd4bf 0%, #14b8a6 100%);
  color: #042f2e;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
}

.epc-ui-collab {
  border-left: 1px solid rgba(94, 234, 212, 0.1);
  background: rgba(7, 14, 22, 0.92);
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.epc-ui-collab-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.epc-ui-collab-title {
  font-weight: 700;
  font-size: 0.92em;
  color: #f8fafc;
}

.epc-ui-tabs {
  display: flex;
  gap: 6px;
  font-size: 0.75em;
}

.epc-ui-tab {
  padding: 4px 8px;
  border-radius: 8px;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(255, 255, 255, 0.04);
}

.epc-ui-tab.is-on {
  color: #5eead4;
  background: rgba(20, 184, 166, 0.12);
}

.epc-ui-collab-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.epc-ui-collab-card {
  padding: 8px;
  border-radius: 10px;
  background: rgba(15, 26, 38, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.08);
  font-size: 0.78em;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.9);
}

.epc-ui-collab-card-h {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.92em;
}

.epc-ui-collab-avatar {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65em;
  font-weight: 700;
  background: rgba(94, 234, 212, 0.15);
  color: #5eead4;
}

.epc-ui-collab-avatar--2 {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.epc-ui-collab-time {
  margin-left: auto;
  font-weight: 500;
  font-size: 0.85em;
  color: rgba(148, 163, 184, 0.85);
}

.epc-ui-collab-actions-h {
  font-size: 0.72em;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.epc-ui-collab-actions {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.74em;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.88);
}

.epc-ui-collab-actions li {
  padding: 6px 0;
  border-top: 1px solid rgba(30, 41, 59, 0.65);
}

.epc-ui-collab-actions li:first-child {
  border-top: 0;
  padding-top: 0;
}

.epc-ui-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.82em;
  font-weight: 600;
  margin-right: 6px;
}

.epc-ui-pill--prog {
  background: rgba(234, 179, 8, 0.18);
  color: #fde68a;
}

.epc-ui-pill--open {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
}

.epc-ui-mock[data-static="true"] .epc-ui-dots span {
  animation: none !important;
  opacity: 0.55;
}

.epc-ui-mock[data-static="true"] .epc-ui-cursor {
  display: none !important;
}

@media (max-width: 900px) {
  .epc-ui-body {
    grid-template-columns: 96px minmax(0, 1fr) minmax(110px, 28%);
  }

  .epc-ui-nav-link {
    font-size: 0.78em;
    padding: 5px 6px;
  }

  .epc-ui-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .epc-ui-bottom-grid {
    grid-template-columns: 1fr;
  }

  .epc-ui-topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .epc-ui-topbar-center {
    justify-self: start;
  }

  .epc-ui-topbar-right {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .epc-ui-result-blocks {
    transition: none !important;
  }

  .epc-ui-dots > span {
    animation: none !important;
    opacity: 0.55;
  }

  .epc-ui-chat-loading-dots span {
    animation: none !important;
    opacity: 0.65;
  }

  .epc-ui-cursor {
    animation: none !important;
  }
}

@media (max-width: 520px) {
  .epc-hero-logo {
    height: 76px;
    max-width: min(420px, 92vw);
  }

  .epc-hero-decor-sparkles {
    opacity: 0.14;
  }
}

/* ---------- Sections shared ---------- */
.epc-section {
  padding: 72px 0;
}
@media (max-width: 768px) {
  .epc-section {
    padding: 52px 0;
  }
}

.epc-surface {
  background: var(--epc-surface-2);
}

.epc-section-head {
  max-width: 48rem;
  margin: 0 auto 36px;
  text-align: center;
}

.epc-lead-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.epc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(2, 80, 100, 0.85);
}
.epc-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--epc-accent);
  box-shadow: 0 0 0 5px var(--epc-accent-soft);
}

.epc-title {
  margin: 12px 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--epc-ink);
}

.epc-lead {
  margin: 0;
  color: var(--epc-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Band shell (shared with themed bands e.g. trust) ---------- */
.epc-band {
  padding: 56px 0 64px;
  color: #fff;
}

/* ---------- ERP execution gap — Record → Understand → Act ---------- */
.epc-exec-gap {
  padding: clamp(56px, 8vw, 92px) 0;
  background: linear-gradient(
    185deg,
    #ffffff 0%,
    rgba(247, 251, 252, 0.95) 38%,
    rgba(232, 245, 242, 0.55) 100%
  );
  color: var(--epc-ink);
  border-top: 1px solid rgba(2, 80, 100, 0.06);
  border-bottom: 1px solid rgba(2, 80, 100, 0.06);
}

.epc-exec-gap-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.epc-exec-gap-eyebrow {
  color: rgba(2, 80, 100, 0.92);
}

.epc-exec-gap-head {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.epc-exec-gap-title {
  margin: 14px auto 0;
  max-width: 44rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--epc-ink);
}

.epc-exec-gap-title-line {
  display: block;
}

.epc-exec-gap-title-line--accent {
  margin-top: 6px;
  color: var(--epc-brand);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .epc-exec-gap-title-line--accent {
    background: linear-gradient(90deg, var(--epc-brand) 0%, #0d9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.epc-exec-gap-lead {
  margin: 22px auto 0;
  max-width: 46rem;
  text-align: left;
}

.epc-exec-gap-lead p {
  margin: 0 0 14px;
  font-size: clamp(0.98rem, 1.45vw, 1.08rem);
  line-height: 1.68;
  color: var(--epc-muted);
}

.epc-exec-gap-lead p:last-child {
  margin-bottom: 0;
}

.epc-exec-gap-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-bottom: 28px;
}

.epc-exec-gap-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.85);
  color: var(--epc-muted);
}

.epc-exec-gap-pill strong {
  font-weight: 700;
  color: var(--epc-ink);
}

.epc-exec-gap-pill--erp {
  border-color: rgba(2, 80, 100, 0.18);
}

.epc-exec-gap-pill--epi {
  border-color: rgba(31, 179, 148, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 253, 249, 0.65) 100%);
}

.epc-exec-gap-flow {
  margin: 0 auto;
}

.epc-exec-gap-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
}

.epc-exec-gap-step {
  flex: 1 1 0;
  min-width: 0;
  padding: 24px 20px 26px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 12px 40px rgba(2, 42, 51, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.22s ease;
}

.epc-exec-gap-step:hover {
  border-color: rgba(31, 179, 148, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 16px 48px rgba(2, 80, 100, 0.09);
}

.epc-exec-gap-step--accent {
  border-color: rgba(31, 179, 148, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, rgba(245, 255, 252, 0.55) 100%);
}

.epc-exec-gap-step-ico {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(31, 179, 148, 0.12) 0%, rgba(2, 80, 100, 0.08) 100%);
  border: 1px solid rgba(31, 179, 148, 0.22);
  color: var(--epc-brand);
}

.epc-exec-gap-step--accent .epc-exec-gap-step-ico {
  background: linear-gradient(145deg, rgba(31, 179, 148, 0.22) 0%, rgba(2, 80, 100, 0.12) 100%);
  border-color: rgba(31, 179, 148, 0.35);
  color: #0f766e;
}

.epc-exec-gap-step-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(2, 80, 100, 0.75);
}

.epc-exec-gap-step-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--epc-ink);
}

.epc-exec-gap-step-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--epc-muted);
}

.epc-exec-gap-connector {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 44px;
  color: rgba(2, 80, 100, 0.38);
}

.epc-exec-gap-arrow--v {
  display: none;
}

@media (max-width: 960px) {
  .epc-exec-gap-track {
    flex-direction: column;
    align-items: stretch;
    max-width: 26rem;
  }

  .epc-exec-gap-connector {
    width: 100%;
    height: 36px;
  }

  .epc-exec-gap-arrow--h {
    display: none;
  }

  .epc-exec-gap-arrow--v {
    display: block;
  }

  .epc-exec-gap-step:hover {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 12px 40px rgba(2, 42, 51, 0.06);
  }
}

/* ERP execution gap — CTA band (hero canvas + decor; no white card) */
.epc-exec-gap-cta-band.epc-band-trust {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(2, 42, 51, 0.35);
}

.epc-exec-gap-cta-band .epc-exec-gap-callout {
  margin: 0 auto;
  padding: 0;
  max-width: 46rem;
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.epc-exec-gap-cta-band .epc-exec-gap-callout-title {
  margin: 0 auto;
  max-width: 42rem;
  font-size: clamp(1.06rem, 2.65vw, 1.92rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: #fff;
}

.epc-exec-gap-callout-title-line {
  display: block;
}

.epc-exec-gap-callout-title-line + .epc-exec-gap-callout-title-line {
  margin-top: 6px;
}

.epc-exec-gap-cta-band .epc-exec-gap-callout-title-line + .epc-exec-gap-callout-title-line {
  margin-top: 8px;
}

@media (max-width: 639px) {
  .epc-exec-gap-cta-band .epc-exec-gap-callout-title {
    font-size: clamp(1.04rem, 4.1vw, 1.28rem);
    line-height: 1.3;
  }

  .epc-exec-gap-cta-band .epc-exec-gap-callout-title-line + .epc-exec-gap-callout-title-line {
    margin-top: 6px;
  }
}

.epc-exec-gap-cta-band .epc-exec-gap-callout-text {
  margin: clamp(16px, 2.5vw, 22px) auto clamp(24px, 3.5vw, 32px);
  max-width: 40rem;
  font-size: clamp(0.96rem, 1.35vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.epc-exec-gap-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius, 8px);
}

@media (prefers-reduced-motion: reduce) {
  .epc-exec-gap-step {
    transition: none;
  }
}

/* ---------- One workspace — role grid (must load epicopilot.css; paths use ../ from epicor-extension/) ---------- */
.epc-role-workspace {
  padding: clamp(56px, 8vw, 88px) 0;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.epc-role-workspace__container {
  max-width: 1200px;
}

.epc-role-workspace__head {
  margin: 0 auto clamp(32px, 4.5vw, 44px);
  max-width: 52rem;
  text-align: center;
}

/* Eyebrow matches ERP execution gap (.epc-exec-gap-eyebrow) */
.epc-role-workspace__eyebrow {
  color: rgba(2, 80, 100, 0.92);
}

.epc-role-workspace__headline.epc-title {
  margin: 14px auto 0;
  max-width: 44rem;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--epc-ink);
}

/* Desktop: wider measure so “Shared Execution.” stays on one row when space allows */
@media (min-width: 900px) {
  .epc-role-workspace__head {
    max-width: min(80rem, 100%);
  }

  .epc-role-workspace__headline.epc-title {
    max-width: min(80rem, 100%);
    margin-left: auto;
    margin-right: auto;
  }
}

/* Supporting copy: same scale as .epc-exec-gap-lead; centered for this section */
.epc-role-workspace__lead {
  margin: 22px auto 0;
  max-width: 46rem;
  text-align: center;
}

.epc-role-workspace__lead p {
  margin: 0;
  font-size: clamp(0.98rem, 1.45vw, 1.08rem);
  line-height: 1.68;
  color: var(--epc-muted);
}

/* Grid + cards: explicit rules (Epicor extension page) */
.epc-role-workspace .epc-role-workspace__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.epc-role-workspace .epc-role-workspace__card {
  background: #ffffff;
  border: 1px solid rgba(15, 35, 55, 0.08);
  border-radius: 18px;
  padding: 22px 18px 18px;
  min-height: 0;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 35, 55, 0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  margin: 0;
  color: inherit;
  cursor: default;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.epc-role-workspace .epc-role-workspace__card:hover {
  border-color: rgba(31, 179, 148, 0.28);
  box-shadow: 0 14px 36px rgba(15, 35, 55, 0.12);
  transform: translateY(-2px);
}

.epc-role-workspace .epc-role-workspace__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: rgba(31, 179, 148, 0.06);
  border: 1px solid rgba(31, 179, 148, 0.2);
  flex-shrink: 0;
}

.epc-role-workspace .epc-role-workspace__icon img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.epc-role-workspace .epc-role-workspace__title {
  margin: 0 0 12px;
  font-size: clamp(0.94rem, 1.25vw, 1.05rem);
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
}

.epc-role-workspace .epc-role-workspace__question {
  flex: 0 1 auto;
  margin: 0;
  padding-bottom: 0;
  font-size: clamp(0.8rem, 1.05vw, 0.875rem);
  line-height: 1.55;
  color: #475569;
}

@media (max-width: 1200px) {
  .epc-role-workspace .epc-role-workspace__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile: keep 2 columns per row (narrow phones previously forced 1 col at max-width:520px) */
@media (max-width: 768px) {
  .epc-role-workspace .epc-role-workspace__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .epc-role-workspace .epc-role-workspace__card {
    padding: 16px 12px 14px;
    min-height: 0;
  }

  .epc-role-workspace .epc-role-workspace__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .epc-role-workspace .epc-role-workspace__icon img {
    width: 40px;
    height: 40px;
  }

  .epc-role-workspace .epc-role-workspace__title {
    font-size: 0.9375rem;
    margin-bottom: 8px;
    line-height: 1.25;
  }

  .epc-role-workspace .epc-role-workspace__question {
    font-size: 0.8125rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* ---------- Collaborative execution demo (hero-aligned canvas) ---------- */
.epc-collab-demo {
  position: relative;
  padding: clamp(72px, 10vw, 112px) 0 clamp(80px, 11vw, 120px);
  color: #fff;
  background: var(--epc-hero-canvas-layers);
  background-color: var(--epc-hero-canvas-fallback);
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
}

.epc-collab-demo__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.epc-collab-demo__inner {
  position: relative;
  z-index: 1;
}

.epc-collab-demo__intro.epc-section-head {
  max-width: min(52rem, 100%);
  margin-bottom: clamp(48px, 6vw, 72px);
}

.epc-collab-demo__lead {
  margin: clamp(16px, 2vw, 22px) auto 0;
  max-width: min(44rem, 100%);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.9);
}

.epc-eyebrow-on-dark {
  color: rgba(255, 255, 255, 0.75);
}
.epc-eyebrow-on-dark::before {
  background: var(--epc-accent);
  box-shadow: 0 0 0 5px rgba(31, 179, 148, 0.2);
}

.epc-collab-demo__intro .epc-eyebrow .epc-eyebrow-keep-case {
  text-transform: none;
}

.epc-collab-demo__intro .epc-collab-demo__heading-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.35rem, 1.2vw, 0.55rem);
  max-width: min(38rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.epc-collab-demo__intro .epc-collab-demo__heading-row {
  display: block;
  text-wrap: balance;
}

.epc-title-on-dark {
  color: #fff;
}

.epc-collab-demo__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  margin-bottom: clamp(72px, 9vw, 104px);
}

.epc-collab-demo__row:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .epc-collab-demo__row--mock-first .epc-collab-demo__copy {
    order: 2;
  }

  .epc-collab-demo__row--mock-first .epc-collab-demo__mock {
    order: 1;
  }
}

.epc-collab-demo__copy {
  min-width: 0;
}

.epc-collab-demo__step-title {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
}

.epc-collab-demo__body {
  margin: 0 0 18px;
  font-size: clamp(0.98rem, 1.25vw, 1.06rem);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.88);
}

.epc-collab-demo__bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
  font-size: clamp(0.92rem, 1.15vw, 1rem);
}

.epc-collab-demo__bullets li {
  margin-bottom: 8px;
}

.epc-collab-demo__bullets li::marker {
  color: var(--epc-accent);
}

.epc-collab-demo__mock {
  min-width: 0;
  position: relative;
}

.epc-collab-demo__mock .interface-hero-frame {
  transform: translateY(-6px) rotateX(1deg);
}

.epc-collab-demo__frame {
  margin: 0;
}

/* Fixed-size demo stage — prevents layout jump during scripted demos */
.epc-collab-demo__stage {
  width: 100%;
  height: clamp(400px, 41vw, 472px);
  max-height: min(472px, 92vw);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}

.epc-collab-demo__stage .epc-ui-mock.epc-collab-demo__ui-root {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  font-size: clamp(11px, 1.05vw, 13px);
}

.epc-collab-demo__stage .epc-ui-mock .epc-ui-body {
  flex: 1 1 auto;
  min-height: 0;
}

.epc-collab-demo__stage .epc-collab-demo__split {
  flex: 1 1 auto;
  min-height: 0;
}

.epc-collab-demo__stage .epc-collab-demo__split > .epc-ui-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.epc-collab-demo__stage .epc-collab-demo__split .epc-ui-chat-scroll {
  flex: 1 1 auto;
  min-height: 0;
}

.epc-collab-demo__stage .epc-cd-plan,
.epc-collab-demo__stage .epc-cd-act {
  height: 100%;
  min-height: 0 !important;
  max-height: 100%;
  box-sizing: border-box;
}

.epc-collab-demo__stage .epc-cd-act__feed {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.epc-collab-demo__stage .epc-cd-plan__tasks,
.epc-collab-demo__stage .epc-collab-demo__d2-assigned-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.epc-collab-demo__stage .epc-collab-demo__d2-task {
  min-height: 52px;
  box-sizing: border-box;
}

.epc-collab-demo__stage .epc-cd-act__attach {
  flex-shrink: 0;
  min-height: 28px;
}

.epc-collab-demo__stage .epc-cd-act__pill-row {
  /* Pill swaps text vs. SVG+Completed — keep row height stable */
  min-height: 28px;
}

/* Reset loop clears manager post text briefly — reserve lines so the card/thread height does not collapse */
.epc-collab-demo__stage .epc-collab-demo__manager-post-text {
  min-height: 3em;
  display: block;
  box-sizing: border-box;
}

/* Demo 2 — AI answer + suggested plan + assigned tasks (stacked, fixed frame) */
.epc-collab-demo__d2-top {
  justify-content: flex-start;
}

.epc-collab-demo__d2-ai {
  flex-shrink: 0;
  margin-bottom: 6px;
}

.epc-collab-demo__d2-ai-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.epc-collab-demo__d2-ai-bubble {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 34, 42, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.epc-collab-demo__d2-ai-name {
  display: block;
  font-size: 0.68em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: 4px;
}

.epc-collab-demo__d2-ai-text {
  margin: 0;
  font-size: 0.85em;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.96);
}

.epc-collab-demo__d2-section-title {
  flex-shrink: 0;
  margin: 0 0 8px;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(94, 234, 212, 0.95);
}

.epc-collab-demo__d2-stack {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 2px;
}

.epc-collab-demo__stage .epc-collab-demo__d2-stack {
  min-height: 156px;
}

.epc-collab-demo__d2-suggest-panel,
.epc-collab-demo__d2-assigned-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.epc-collab-demo__d2-suggest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8em;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.96);
}

.epc-collab-demo__d2-suggest-list li {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 26, 38, 0.65);
  border: 1px solid rgba(94, 234, 212, 0.08);
}

.epc-collab-demo__d2-suggest-sep {
  opacity: 0.45;
  margin: 0 0.2em;
}

.epc-collab-demo__d2-cta-btn {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: auto;
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__d2-suggest-panel {
  display: none;
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__d2-assigned-list {
  position: relative;
  opacity: 1;
  visibility: visible;
  inset: auto;
  min-height: 0;
}

.epc-collab-demo--js .epc-collab-demo__d2.epc-collab-demo__d2--pre .epc-collab-demo__d2-assigned-list {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.epc-collab-demo--js .epc-collab-demo__d2.epc-collab-demo__d2--pre .epc-collab-demo__d2-suggest-panel {
  opacity: 1;
  visibility: visible;
}

.epc-collab-demo--js .epc-collab-demo__d2:not(.epc-collab-demo__d2--pre) .epc-collab-demo__d2-suggest-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.4s;
}

.epc-collab-demo--js .epc-collab-demo__d2:not(.epc-collab-demo__d2--pre) .epc-collab-demo__d2-assigned-list {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

/* Demo 3 — ask + AI summary + timeline */
.epc-collab-demo__d3-chat {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.epc-collab-demo__d3-query {
  position: relative;
  padding: 8px 11px;
  padding-right: 40px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.epc-collab-demo__d3-query-label {
  display: block;
  font-size: 0.65em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 4px;
}

/* Fixed vertical footprint — avoids layout shift during typewriter */
.epc-collab-demo__d3-query-input {
  display: block;
  min-height: 2.95em;
  font-size: 0.82em;
  line-height: 1.45;
  color: #f1f5f9;
  word-wrap: break-word;
}

.epc-collab-demo__d3-query-text {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.epc-collab-demo__d3-caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: rgba(241, 245, 249, 0.92);
  opacity: 0;
  pointer-events: none;
}

@keyframes epc-d3-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__d3-caret {
  display: none;
}

.epc-collab-demo--js .epc-collab-demo__d3.epc-collab-demo__d3--caret-on .epc-collab-demo__d3-caret {
  opacity: 1;
  animation: epc-d3-caret-blink 1.05s steps(1, end) infinite;
}

.epc-collab-demo__d3-send {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(94, 234, 212, 0.28);
  background: rgba(45, 212, 191, 0.14);
  color: #5eead4;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s ease,
    visibility 0s linear 0.28s;
}

.epc-collab-demo--js .epc-collab-demo__d3.epc-collab-demo__d3--show-send .epc-collab-demo__d3-send {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.28s ease,
    visibility 0s linear 0s;
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__d3-send {
  display: none;
}

.epc-collab-demo__d3-ai-reply {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 34, 42, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.18);
}

.epc-collab-demo__d3-ai-reply-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.epc-collab-demo__d3-ai-reply-name {
  font-size: 0.68em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5eead4;
}

.epc-collab-demo__d3-ai-reply-body {
  margin: 0;
  font-size: 0.82em;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.96);
}

.epc-collab-demo__d3-focus {
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.epc-collab-demo__d3-focus-text {
  margin: 0;
  font-size: 0.78em;
  line-height: 1.45;
  color: rgba(254, 243, 199, 0.96);
}

.epc-collab-demo__d3-focus-text strong {
  color: #fcd34d;
  font-weight: 800;
}

.epc-collab-demo__d3-timeline {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.epc-collab-demo__d3-trow {
  display: grid;
  grid-template-columns: minmax(76px, 26%) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 26, 38, 0.85);
  border: 1px solid rgba(94, 234, 212, 0.1);
}

.epc-collab-demo__d3-trow-dept {
  font-size: 0.72em;
  font-weight: 800;
  color: #cbd5e1;
}

.epc-collab-demo__d3-trow-desc {
  font-size: 0.78em;
  color: rgba(226, 232, 240, 0.92);
  min-width: 0;
}

.epc-collab-demo__stage .epc-collab-demo__d3-timeline .epc-cd-act__mini-pill {
  justify-self: end;
}

/* Demo 1: sidebar + (main | collaboration) — fixed column widths (no grid track animation) */
.epc-collab-demo__ui-body--share.epc-ui-body {
  grid-template-columns: 88px minmax(0, 1fr);
}

.epc-collab-demo__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 34%);
  min-width: 0;
  min-height: 0;
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__split {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 34%);
}

.epc-collab-demo__split > .epc-ui-main {
  min-width: 0;
  border-right: 1px solid rgba(94, 234, 212, 0.06);
}

.epc-collab-demo__split .epc-ui-collab {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.epc-collab-demo__collab-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__collab-inner {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.epc-collab-demo--js .epc-collab-demo__d1:not(.epc-collab-demo__d1--panel-open) .epc-collab-demo__collab-inner {
  transform: translateX(104%);
  opacity: 0;
  visibility: hidden;
}

.epc-collab-demo--js .epc-collab-demo__d1.epc-collab-demo__d1--panel-open .epc-collab-demo__collab-inner {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.epc-collab-demo__split .epc-ui-collab-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.epc-collab-demo__compose {
  display: none;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(94, 234, 212, 0.1);
  gap: 8px;
  align-items: flex-end;
}

.epc-collab-demo--js .epc-collab-demo__compose {
  display: flex;
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__compose {
  display: none !important;
}

.epc-collab-demo__compose-field {
  flex: 1;
  min-height: 38px;
  max-height: 52px;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(12, 22, 34, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.14);
  font-size: 0.82em;
  line-height: 1.45;
  color: #e2e8f0;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.epc-collab-demo--js .epc-collab-demo__d1.epc-collab-demo__d1--compose-focus .epc-collab-demo__compose-field {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.25),
    0 0 20px rgba(20, 184, 166, 0.12);
}

.epc-collab-demo__compose-type {
  font-weight: 500;
  color: #f8fafc;
}

.epc-collab-demo__compose-caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -0.12em;
  background: rgba(94, 234, 212, 0.9);
  animation: epc-collab-compose-caret 1s step-end infinite;
}

.epc-collab-demo--js .epc-collab-demo__d1.epc-collab-demo__d1--typing .epc-collab-demo__compose-caret {
  opacity: 1;
}

@keyframes epc-collab-compose-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.epc-collab-demo__compose-send {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 0;
  font-weight: 700;
  font-size: 0.78em;
  cursor: default;
  background: linear-gradient(180deg, #2dd4bf 0%, #14b8a6 100%);
  color: #042f2e;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.32);
  transition: transform 0.08s ease, filter 0.08s ease;
}

.epc-collab-demo--js .epc-collab-demo__d1.epc-collab-demo__d1--post-press .epc-collab-demo__compose-send {
  transform: scale(0.94);
  filter: brightness(0.92);
}

.epc-collab-demo--js .epc-collab-demo__d1.epc-collab-demo__d1--btn-press .epc-collab-demo__share-btn {
  transform: scale(0.96);
  filter: brightness(0.93);
}

/* Demo 1 motion: hide thread messages until phases */
.epc-collab-demo--js .epc-collab-demo__collab-msg,
.epc-collab-demo--js .epc-collab-demo__file-row--d1 {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.epc-collab-demo--js .epc-collab-demo__d1.epc-collab-demo__d1--show-manager .epc-collab-demo__collab-msg--manager {
  opacity: 1;
  transform: translateY(0);
}

.epc-collab-demo--js .epc-collab-demo__d1.epc-collab-demo__d1--show-proc .epc-collab-demo__collab-msg--proc {
  opacity: 1;
  transform: translateY(0);
}

.epc-collab-demo--js .epc-collab-demo__d1.epc-collab-demo__d1--show-prod .epc-collab-demo__collab-msg--prod {
  opacity: 1;
  transform: translateY(0);
}

.epc-collab-demo--js .epc-collab-demo__d1.epc-collab-demo__d1--show-files .epc-collab-demo__file-row--d1 {
  opacity: 1;
  transform: translateY(0);
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__collab-msg,
.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__file-row--d1 {
  opacity: 1;
  transform: none;
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__split {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 34%);
}

/* Demo 2 motion — assigned tasks reveal (opacity/transform only) */
.epc-collab-demo--js .epc-collab-demo__d2-task {
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition:
    opacity 0.42s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.45s;
}

.epc-collab-demo--js .epc-collab-demo__d2.epc-collab-demo__d2--show-0 .epc-collab-demo__d2-task[data-epc-d2-i='0'],
.epc-collab-demo--js .epc-collab-demo__d2.epc-collab-demo__d2--show-1 .epc-collab-demo__d2-task[data-epc-d2-i='1'],
.epc-collab-demo--js .epc-collab-demo__d2.epc-collab-demo__d2--show-2 .epc-collab-demo__d2-task[data-epc-d2-i='2'],
.epc-collab-demo--js .epc-collab-demo__d2.epc-collab-demo__d2--show-3 .epc-collab-demo__d2-task[data-epc-d2-i='3'] {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition:
    opacity 0.42s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__d2-task {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.epc-collab-demo--js .epc-collab-demo__d2.epc-collab-demo__d2--t1-prog .epc-collab-demo__d2-task[data-epc-d2-i='0'] .epc-cd-plan__task-tag {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.epc-collab-demo--js .epc-collab-demo__d2.epc-collab-demo__d2--create-press .epc-collab-demo__d2-cta-btn {
  transform: scale(0.96);
  filter: brightness(0.94);
}

.epc-cd-plan__icon-btn {
  transition: transform 0.1s ease, filter 0.1s ease;
}

/* Demo 3 motion — AI reply, focus, timeline stagger, blocker emphasis */
.epc-collab-demo--js .epc-collab-demo__d3-ai-reply,
.epc-collab-demo--js .epc-collab-demo__d3-focus {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.epc-collab-demo--js .epc-collab-demo__d3.epc-collab-demo__d3--show-answer .epc-collab-demo__d3-ai-reply {
  opacity: 1;
  transform: translateY(0);
}

.epc-collab-demo--js .epc-collab-demo__d3.epc-collab-demo__d3--show-focus .epc-collab-demo__d3-focus {
  opacity: 1;
  transform: translateY(0);
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__d3-ai-reply,
.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__d3-focus {
  opacity: 1;
  transform: none;
}

.epc-collab-demo--js .epc-collab-demo__d3-trow.epc-collab-demo__d3-item {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.42s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.epc-collab-demo--js .epc-collab-demo__d3.epc-collab-demo__d3--show-0 .epc-collab-demo__d3-trow[data-epc-d3-i='0'],
.epc-collab-demo--js .epc-collab-demo__d3.epc-collab-demo__d3--show-1 .epc-collab-demo__d3-trow[data-epc-d3-i='1'],
.epc-collab-demo--js .epc-collab-demo__d3.epc-collab-demo__d3--show-2 .epc-collab-demo__d3-trow[data-epc-d3-i='2'],
.epc-collab-demo--js .epc-collab-demo__d3.epc-collab-demo__d3--show-3 .epc-collab-demo__d3-trow[data-epc-d3-i='3'] {
  opacity: 1;
  transform: translateY(0);
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__d3-trow.epc-collab-demo__d3-item {
  opacity: 1;
  transform: none;
}

.epc-collab-demo--js
  .epc-collab-demo__d3.epc-collab-demo__d3--highlight-blockers
  .epc-collab-demo__d3-trow--blocker {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.07);
}

.epc-cd-act__pill-row {
  margin: 0 0 6px;
}

.epc-cd-act__mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.68em;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

.epc-cd-act__mini-pill--prog {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.epc-cd-act__mini-pill--done {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.epc-cd-act__mini-pill--idle {
  background: rgba(30, 41, 59, 0.85);
  color: rgba(148, 163, 184, 0.95);
  border: 1px solid rgba(71, 85, 105, 0.5);
}

.epc-cd-act__mini-pill--done svg {
  flex-shrink: 0;
}

.epc-collab-demo__answer-p {
  margin: 0 0 10px;
  font-size: 0.92em;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.96);
}

.epc-collab-demo__kpis-tight.epc-ui-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.epc-collab-demo__share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.epc-collab-demo__share-btn.epc-ui-action-btn--primary {
  transition: transform 0.08s ease, filter 0.1s ease;
}

.epc-collab-demo__file-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.epc-collab-demo__file-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.72em;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(15, 78, 92, 0.45);
  border: 1px solid rgba(94, 234, 212, 0.15);
}

.epc-collab-demo__pointer {
  position: absolute;
  z-index: 20;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.epc-collab-demo--js .epc-collab-demo__pointer--on {
  opacity: 1;
}

.epc-collab-demo__pointer--click .epc-collab-demo__pointer-svg {
  transform: scale(0.9);
  transition: transform 0.1s ease;
}

/* Fallback layout when JS pointer positions are not used */
.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__pointer--share {
  right: 26%;
  bottom: 11%;
  left: auto;
  top: auto;
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__pointer--task {
  right: 6%;
  top: 9%;
  left: auto;
}

.epc-collab-demo:not(.epc-collab-demo--js) .epc-collab-demo__pointer--feed {
  left: 10%;
  top: 22%;
}

@media (max-width: 1100px) {
  .epc-collab-demo__ui-body--share.epc-ui-body {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

@media (max-width: 899px) {
  .epc-collab-demo__row {
    grid-template-columns: 1fr;
    margin-bottom: clamp(56px, 12vw, 80px);
  }

  .epc-collab-demo__row--mock-first .epc-collab-demo__copy {
    order: 0;
  }

  .epc-collab-demo__row--mock-first .epc-collab-demo__mock {
    order: 0;
  }

  .epc-collab-demo__ui-body--share.epc-ui-body {
    grid-template-columns: 1fr;
  }

  .epc-collab-demo__ui-body--share .epc-ui-sidebar {
    display: none;
  }

  .epc-collab-demo__split {
    grid-template-columns: 1fr !important;
  }

  .epc-collab-demo__split > .epc-ui-main {
    border-right: 0;
  }

  .epc-collab-demo__split .epc-ui-collab {
    border-left: 0;
    border-top: 1px solid rgba(94, 234, 212, 0.1);
    max-height: 240px;
    overflow: hidden;
  }

  .epc-collab-demo__pointer {
    display: none;
  }

  .epc-collab-demo__mock .interface-hero-frame {
    transform: translateY(-2px) rotateX(0.4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .epc-collab-demo__mock .interface-hero-frame {
    transform: translateY(-2px);
  }

  .epc-collab-demo__split {
    transition: none !important;
  }
}

/* Demo 2 — action plan (dark shell) */
.epc-cd-plan {
  position: relative;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: clamp(11px, 1.05vw, 13px);
  color: #e2e8f0;
  min-height: clamp(360px, 38vw, 460px);
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #0d1824 0%, #0a121c 100%);
  border-radius: inherit;
}

.epc-cd-plan__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(94, 234, 212, 0.12);
}

.epc-cd-plan__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.epc-cd-plan__brand img {
  height: 22px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.epc-cd-plan__pill {
  font-size: 0.78em;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.9);
  background: rgba(15, 78, 92, 0.55);
  border: 1px solid rgba(94, 234, 212, 0.22);
}

.epc-cd-plan__icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 0;
  font-weight: 700;
  font-size: 0.82em;
  cursor: default;
  flex-shrink: 0;
  background: linear-gradient(180deg, #2dd4bf 0%, #14b8a6 100%);
  color: #042f2e;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

.epc-cd-plan__ctx {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(12, 22, 34, 0.92);
  border: 1px solid rgba(94, 234, 212, 0.12);
  margin-bottom: 12px;
  font-size: 0.85em;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.95);
}

.epc-cd-plan__ctx strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5eead4;
}

.epc-cd-plan__ctx p {
  margin: 0;
}

.epc-cd-plan__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.epc-cd-plan__title {
  margin: 0;
  font-size: 1.05em;
  font-weight: 800;
  line-height: 1.35;
  color: #f8fafc;
  max-width: min(22rem, 100%);
}

.epc-cd-plan__status {
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(31, 179, 148, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.epc-cd-plan__tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.epc-cd-plan__task {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(15, 26, 38, 0.95);
  border: 1px solid rgba(94, 234, 212, 0.1);
}

.epc-cd-plan__task-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.epc-cd-plan__task-title {
  font-weight: 700;
  font-size: 0.88em;
  color: #f1f5f9;
}

.epc-cd-plan__task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.78em;
  color: rgba(148, 163, 184, 0.95);
}

.epc-cd-plan__owner {
  font-weight: 600;
  color: #cbd5e1;
}

.epc-cd-plan__task-tag {
  flex-shrink: 0;
  font-size: 0.68em;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.epc-cd-plan__task-tag--prog {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.epc-cd-plan__task-tag--idle {
  background: rgba(30, 41, 59, 0.85);
  color: rgba(148, 163, 184, 0.95);
  border: 1px solid rgba(71, 85, 105, 0.5);
}

/* Demo 3 — activity / timeline */
.epc-cd-act {
  position: relative;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: clamp(11px, 1.05vw, 13px);
  color: #e2e8f0;
  min-height: clamp(360px, 38vw, 460px);
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #0d1824 0%, #0a121c 100%);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
}

.epc-cd-act__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(94, 234, 212, 0.12);
}

.epc-cd-act__label {
  margin: 0 0 4px;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.epc-cd-act__issue {
  margin: 0;
  font-size: 0.95em;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.epc-cd-act__ref {
  color: #5eead4;
  font-weight: 800;
}

.epc-cd-act__live {
  flex-shrink: 0;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.epc-cd-act__attach {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.epc-cd-act__feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 4px;
}

.epc-cd-act__item {
  position: relative;
  padding-left: 18px;
  padding-bottom: 14px;
  border-left: 2px solid rgba(51, 65, 85, 0.85);
}

.epc-cd-act__item:last-child {
  padding-bottom: 4px;
}

.epc-cd-act__dot {
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
  border: 2px solid #0f172a;
}

.epc-cd-act__dot--accent {
  background: linear-gradient(145deg, #2dd4bf, #14b8a6);
}

.epc-cd-act__item--done .epc-cd-act__dot {
  background: #10b981;
}

.epc-cd-act__meta {
  margin: 0 0 4px;
  font-size: 0.78em;
  color: rgba(148, 163, 184, 0.95);
}

.epc-cd-act__meta strong {
  color: #e2e8f0;
  font-weight: 700;
}

.epc-cd-act__text {
  margin: 0 0 6px;
  font-size: 0.85em;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.94);
}

.epc-cd-act__status-change {
  margin: 0;
  font-size: 0.76em;
  color: rgba(110, 231, 183, 0.95);
}

/* ---------- Trust band (same canvas + decor as .epc-hero) ---------- */
.epc-band-trust {
  padding: clamp(64px, 9vw, 96px) 0 clamp(72px, 10vw, 104px);
  color: #fff;
  background: var(--epc-hero-canvas-layers);
  background-color: var(--epc-hero-canvas-fallback);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
}

.epc-band-trust-inner {
  position: relative;
  z-index: 1;
}

.epc-band-trust__head.epc-section-head {
  max-width: none;
  width: 100%;
  margin-bottom: clamp(40px, 5vw, 52px);
}

.epc-band-trust__head .epc-title-on-dark {
  max-width: min(46rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.epc-band-trust__lead {
  margin: clamp(18px, 2.5vw, 24px) auto 0;
  max-width: min(36rem, 100%);
  text-align: center;
}

.epc-band-trust__lead p {
  margin: 0;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.9);
}

.epc-section-head-on-dark {
  margin-bottom: 36px;
}

.epc-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.epc-trust-card {
  padding: 18px 16px;
  border-radius: var(--epc-radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.epc-trust-ico {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 179, 148, 0.15);
  border: 1px solid rgba(31, 179, 148, 0.28);
  color: #b8f5e8;
}

.epc-trust-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
}

.epc-trust-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1000px) {
  .epc-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .epc-trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ + Roadmap ---------- */
.epc-faq-roadmap {
  padding-top: 72px;
  padding-bottom: 72px;
}

.epc-fr-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.epc-fr-title {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--epc-ink);
}

.epc-faq-more-wrap {
  margin: 14px 0 0;
}

.epc-text-link {
  font-weight: 700;
  color: var(--epc-brand);
  text-decoration: none;
}
.epc-text-link:hover {
  text-decoration: underline;
}

.epc-faq-item {
  border-radius: var(--epc-radius);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: var(--epc-shadow-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.epc-faq-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: inherit;
}

.epc-faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
}

.epc-faq-trigger span:first-of-type {
  font-weight: 800;
  color: var(--epc-ink);
  line-height: 1.35;
}

.epc-faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(2, 80, 100, 0.06);
  border: 1px solid rgba(2, 80, 100, 0.14);
  color: var(--epc-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}

.epc-faq-panel {
  padding: 0 16px 14px;
  color: #475569;
  line-height: 1.65;
  font-size: 0.95rem;
}
.epc-faq-panel p {
  margin: 0;
}

.epc-road-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.epc-road-card {
  padding: 18px 18px;
  border-radius: var(--epc-radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: var(--epc-shadow-sm);
}

.epc-road-k {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--epc-brand);
  margin-bottom: 8px;
}
.epc-road-k::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--epc-accent);
}

.epc-road-h {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--epc-ink);
}

.epc-road-card p {
  margin: 0;
  color: var(--epc-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ split — right rail: AI adoption / chatbot entry (replaces roadmap stack) */
.epc-fr-road .epc-adopt-rail__heading {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.epc-fr-road .epc-adopt-stack .epc-road-k {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(2, 80, 100, 0.82);
}

.epc-fr-road .epc-adopt-stack {
  gap: clamp(14px, 2vw, 18px);
}

.epc-fr-road .epc-adopt-card .epc-adopt-card__lead {
  margin: 0 0 8px;
  font-size: clamp(1.02rem, 1.35vw, 1.08rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--epc-ink);
}

.epc-fr-road .epc-adopt-card .epc-adopt-card__sub {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--epc-muted);
}

.epc-fr-road .epc-adopt-card .epc-adopt-card__body {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.58;
  color: var(--epc-ink-2);
}

@media (max-width: 900px) {
  .epc-fr-split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Capabilities grid (what EpiCopilot can do) ---------- */
.epc-capabilities {
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.epc-capabilities__inner {
  max-width: 1200px;
}

.epc-capabilities__head.epc-section-head {
  max-width: min(52rem, 100%);
  margin-bottom: clamp(28px, 4vw, 42px);
}

.epc-capabilities__head .epc-title {
  max-width: min(44rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.epc-capabilities__lead {
  margin: clamp(14px, 2vw, 20px) auto 0;
  max-width: min(42rem, 100%);
  font-size: clamp(0.96rem, 1.25vw, 1.05rem);
  line-height: 1.65;
  color: var(--epc-muted);
}

.epc-capabilities__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 24px);
}

.epc-cap-card {
  padding: clamp(18px, 2.2vw, 22px) clamp(18px, 2vw, 22px);
  border-radius: var(--epc-radius-lg);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.055);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.epc-cap-card__ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(31, 179, 148, 0.09);
  border: 1px solid rgba(31, 179, 148, 0.18);
  color: var(--epc-brand);
  flex-shrink: 0;
}

.epc-cap-card__title {
  margin: 0 0 8px;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--epc-ink);
}

.epc-cap-card__desc {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.52;
  color: var(--epc-muted);
}

.epc-cap-card__list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--epc-ink-2);
}

.epc-cap-card__list li {
  margin-bottom: 5px;
}

.epc-cap-card__list li:last-child {
  margin-bottom: 0;
}

.epc-cap-card__list li::marker {
  color: var(--epc-accent);
}

.epc-cap-card__ex {
  margin: 14px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(51, 65, 85, 0.94);
  font-style: italic;
}

.epc-cap-card__ex-label {
  font-style: normal;
  font-weight: 700;
  color: var(--epc-brand);
  margin-right: 4px;
}

.epc-capabilities__closing {
  margin: clamp(28px, 4vw, 42px) auto 0;
  max-width: 38rem;
  text-align: center;
  font-size: clamp(1.02rem, 1.45vw, 1.14rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--epc-ink);
}

@media (max-width: 640px) {
  .epc-capabilities__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 15 Practical Ways — accordion grid ---------- */
.epc-ways {
  padding-top: clamp(56px, 7vw, 80px);
  padding-bottom: clamp(56px, 7vw, 80px);
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.epc-ways__inner {
  max-width: 1200px;
}

.epc-ways__head.epc-section-head {
  max-width: min(52rem, 100%);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.epc-ways__lead {
  margin: clamp(14px, 2vw, 20px) auto 0;
  max-width: min(44rem, 100%);
  font-size: clamp(0.96rem, 1.25vw, 1.05rem);
  line-height: 1.68;
  color: var(--epc-muted);
}

.epc-ways__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 18px);
  align-items: start;
}

.epc-ways-item {
  border-radius: var(--epc-radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.epc-ways-item.is-open {
  border-color: rgba(2, 80, 100, 0.16);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 10px 28px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(31, 179, 148, 0.12);
}

.epc-ways-item__heading {
  margin: 0;
  font-size: 1rem;
  font-weight: inherit;
}

.epc-ways-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.92rem;
}

.epc-ways-trigger:hover {
  background: rgba(2, 80, 100, 0.03);
}

.epc-ways-trigger:focus-visible {
  outline: 2px solid var(--epc-accent);
  outline-offset: -2px;
}

.epc-ways-trigger__title {
  font-weight: 800;
  color: var(--epc-ink);
  line-height: 1.35;
}

.epc-ways-trigger__icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(2, 80, 100, 0.06);
  border: 1px solid rgba(2, 80, 100, 0.14);
  color: var(--epc-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.28s ease, border-color 0.28s ease;
}

.epc-ways-item.is-open .epc-ways-trigger__icon {
  background: rgba(31, 179, 148, 0.12);
  border-color: rgba(31, 179, 148, 0.28);
}

.epc-ways-panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.epc-ways-item.is-open .epc-ways-panel-wrap {
  grid-template-rows: 1fr;
}

.epc-ways-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.epc-ways-panel {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(
    180deg,
    rgba(247, 251, 252, 0.65) 0%,
    #ffffff 100%
  );
}

.epc-ways-desc {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--epc-muted);
}

.epc-ways-prompts-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--epc-brand);
}

.epc-ways-prompts {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--epc-ink-2);
}

.epc-ways-prompts li {
  margin-bottom: 6px;
}

.epc-ways-prompts li:last-child {
  margin-bottom: 0;
}

.epc-ways-prompts li::marker {
  color: var(--epc-accent);
}

@media (max-width: 960px) {
  .epc-ways__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .epc-ways__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .epc-ways-panel-wrap {
    transition: none;
  }

  .epc-ways-trigger__icon {
    transition: none;
  }
}

/* ---------- Why ACC (credentials / trust signals) ---------- */
.epc-why-acc {
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.epc-why-acc__head {
  margin: 0 auto clamp(32px, 4vw, 44px);
  max-width: none;
  text-align: center;
}

.epc-why-acc__head .epc-title {
  margin-left: auto;
  margin-right: auto;
  max-width: min(46rem, 100%);
}

/* Large screens: prefer 2-line rhythm; hide forced break on smaller viewports */
.epc-why-acc__title-br {
  display: none;
}

@media (min-width: 960px) {
  /* Restore native line-break behavior for the optional break */
  .epc-why-acc__title-br {
    display: unset;
  }

  .epc-why-acc__head .epc-title.epc-why-acc__title {
    max-width: min(52rem, 100%);
  }
}

.epc-why-acc__intro {
  margin: clamp(16px, 2.2vw, 22px) auto 0;
  max-width: min(46rem, 100%);
  font-size: clamp(0.98rem, 1.35vw, 1.06rem);
  line-height: 1.68;
  color: var(--epc-muted);
}

.epc-why-acc .epc-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.epc-why-acc .epc-why-card {
  padding: clamp(22px, 2.5vw, 26px) clamp(18px, 2vw, 22px);
  border-radius: var(--epc-radius-lg);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 28px rgba(15, 23, 42, 0.06);
}

.epc-why-acc .epc-why-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(31, 179, 148, 0.09);
  border: 1px solid rgba(31, 179, 148, 0.18);
  color: var(--epc-brand);
}

.epc-why-acc .epc-why-card h3 {
  margin: 0 0 10px;
  font-size: clamp(0.98rem, 1.25vw, 1.06rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--epc-ink);
}

.epc-why-acc .epc-why-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--epc-muted);
}

@media (max-width: 1100px) {
  .epc-why-acc .epc-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .epc-why-acc .epc-why-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Enquiry band (same canvas + decor as .epc-hero) ---------- */
.epc-enquire-band {
  padding: clamp(56px, 8vw, 88px) 0 clamp(64px, 9vw, 96px);
  color: #fff;
  background: var(--epc-hero-canvas-layers);
  background-color: var(--epc-hero-canvas-fallback);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
}

.epc-enquire-band-inner {
  position: relative;
  z-index: 1;
}

.epc-enquire-head {
  margin-bottom: clamp(24px, 3.5vw, 32px);
}

.epc-enquire-lead {
  margin: 12px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: min(40rem, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Desktop: widen intro line so the enquiry lead can stay one line when space allows */
@media (min-width: 900px) {
  .epc-enquire-band .epc-enquire-head.epc-section-head {
    max-width: min(75rem, 100%);
  }

  .epc-enquire-lead {
    max-width: min(75rem, 100%);
  }
}

.epc-form-wrap-elevated {
  max-width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 32px) clamp(20px, 3vw, 28px);
  border-radius: var(--epc-radius-lg);
  background: #fff;
  box-shadow: var(--epc-shadow-md);
}

.epc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
}

.epc-form-single {
  grid-template-columns: 1fr;
}

/* EpiCopilot enquiry: 1 col mobile, 2 col desktop */
.epc-form-grid.epc-form-grid--enquire {
  grid-template-columns: 1fr;
  gap: 16px 20px;
}

@media (min-width: 720px) {
  .epc-form-grid.epc-form-grid--enquire {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.epc-form-span-all {
  grid-column: 1 / -1;
}

.epc-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.epc-form-field label {
  font-weight: 700;
  color: var(--epc-ink);
  font-size: 0.9rem;
}

.epc-form-field input,
.epc-form-field textarea {
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
  background: #fff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.epc-form-field input:focus,
.epc-form-field textarea:focus {
  border-color: rgba(31, 179, 148, 0.65);
  box-shadow: 0 0 0 3px rgba(31, 179, 148, 0.15);
}

.epc-form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.epc-honeypot {
  display: none;
}

.epc-form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  background: rgba(2, 80, 100, 0.06);
  border: 1px solid rgba(2, 80, 100, 0.14);
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
}

.epc-enquire-band .epc-form-consent span {
  color: #0f172a;
  font-weight: 600;
}

.epc-form-consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary, var(--epc-accent));
}

.epc-form-actions {
  padding-top: 6px;
}

.epc-btn-submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
}

/* Scroll offset for sticky header */
body.epc-page main [id] {
  scroll-margin-top: 88px;
}
