/* ACC CloudMove for Epicor — page-scoped styles (no global overrides) */

body.cloudmove-page {
  --cm-navy: #0f2438;
  --cm-navy-mid: #1a3a52;
  --cm-slate: #2c3e50;
  --cm-teal: #1abc9c;
  --cm-teal-dark: #16a085;
  --cm-ice: #e8f4f1;
  --cm-mist: #f4f8fb;
  --cm-border: rgba(15, 36, 56, 0.08);
  --cm-glow: rgba(26, 188, 156, 0.15);
  background: var(--color-bg);
}

.cloudmove-page main.cm-main {
  overflow-x: hidden;
}

.cm-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cm-teal);
  margin-bottom: 1rem;
}

.cm-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.cm-section--tight {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.cm-section--dark {
  background: linear-gradient(165deg, var(--cm-navy) 0%, var(--cm-navy-mid) 45%, #152d42 100%);
  color: #e8eef2;
}

.cm-section--dark .cm-lead,
.cm-section--dark p {
  color: rgba(232, 238, 242, 0.88);
}

.cm-section--mist {
  background: var(--cm-mist);
}

.cm-section--ice {
  background: linear-gradient(180deg, var(--cm-ice) 0%, #fff 55%);
}

.cm-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cm-slate);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.cm-section--dark .cm-section-title {
  color: #fff;
}

.cm-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.cm-lead--wide {
  max-width: 52rem;
}

/* Hero */
.cm-hero {
  position: relative;
  min-height: min(88vh, 900px);
  display: flex;
  align-items: center;
  padding: clamp(5rem, 12vw, 7rem) 0 clamp(4rem, 10vw, 6rem);
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(26, 188, 156, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(26, 58, 82, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #f7fafc 0%, #fff 40%, #f4f9f8 100%);
}

.cm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 36, 56, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 36, 56, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.cm-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .cm-hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.cm-hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--cm-navy);
  margin: 0 0 1.25rem;
}

.cm-hero-sub {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--cm-slate);
  opacity: 0.92;
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.cm-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 2rem;
}

.cm-hero-ctas .btn-lg {
  padding: 14px 26px;
}

.cm-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--cm-border);
  padding-top: 1.25rem;
  max-width: 40rem;
}

.cm-hero-meta strong {
  color: var(--cm-slate);
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.cm-hero-visual {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--cm-navy) 0%, #1e4a5f 50%, var(--cm-navy-mid) 100%);
  box-shadow: 0 24px 60px rgba(15, 36, 56, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  min-height: 320px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  overflow: hidden;
}

.cm-hero-visual::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle at 30% 40%, rgba(26, 188, 156, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.cm-hero-diagram {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
}

.cm-hero-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

@media (max-width: 520px) {
  .cm-hero-row {
    grid-template-columns: 1fr 1fr;
  }
}

.cm-hero-node {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cm-hero-node--accent {
  background: rgba(26, 188, 156, 0.2);
  border-color: rgba(26, 188, 156, 0.45);
  color: #fff;
}

.cm-hero-node:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 188, 156, 0.5);
}

.cm-hero-connector {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
  padding: 0.15rem 0;
}

/* Why */
.cm-why-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .cm-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cm-why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cm-why-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--cm-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.cm-why-card:hover {
  box-shadow: 0 8px 28px rgba(15, 36, 56, 0.08);
  border-color: rgba(26, 188, 156, 0.25);
}

.cm-why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cm-navy);
  margin: 0 0 0.5rem;
}

.cm-why-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* Architecture explorer */
.cm-arch-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.cm-arch-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .cm-arch-layout {
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
  }
}

.cm-arch-chart-wrap {
  position: relative;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--cm-border);
  box-shadow: 0 16px 48px rgba(15, 36, 56, 0.07);
  overflow: hidden;
}

.cm-arch-chart-wrap img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.cm-arch-chart-caption {
  padding: 0.85rem 1.1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--cm-border);
  background: var(--cm-mist);
}

/* Desktop: module pills on chart (optional hotspots) */
.cm-arch-hotspots {
  display: none;
}

@media (min-width: 1024px) {
  .cm-arch-hotspots {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .cm-arch-hotspot {
    position: absolute;
    pointer-events: auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cm-teal);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.35);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .cm-arch-hotspot:hover,
  .cm-arch-hotspot.is-active {
    transform: translate(-50%, -50%) scale(1.25);
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.45);
  }

  .cm-arch-hotspot:focus-visible {
    outline: 2px solid var(--cm-teal);
    outline-offset: 3px;
  }
}

.cm-arch-panel-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cm-module-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cm-module-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cm-slate);
  background: #fff;
  border: 1px solid var(--cm-border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cm-module-tab:hover {
  border-color: rgba(26, 188, 156, 0.35);
  background: var(--cm-mist);
}

.cm-module-tab[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(26, 188, 156, 0.12) 0%, rgba(26, 188, 156, 0.04) 100%);
  border-color: var(--cm-teal);
  color: var(--cm-navy);
  box-shadow: 0 4px 16px var(--cm-glow);
}

.cm-module-tab:focus-visible {
  outline: 2px solid var(--cm-teal);
  outline-offset: 2px;
}

.cm-detail-panel {
  background: #fff;
  border: 1px solid var(--cm-border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  min-height: 200px;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.25s ease;
}

.cm-detail-panel.is-transitioning {
  opacity: 0.55;
}

.cm-detail-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cm-navy);
}

.cm-detail-summary {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cm-slate);
}

.cm-detail-focus-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cm-teal-dark);
  margin-bottom: 0.5rem;
}

.cm-detail-focus-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.cm-detail-focus-list li {
  margin-bottom: 0.35rem;
}

/* Mobile: native details accordion */
.cm-arch-mobile {
  display: block;
}

.cm-arch-desktop-side {
  display: none;
}

@media (min-width: 1024px) {
  .cm-arch-mobile {
    display: none;
  }

  .cm-arch-desktop-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

.cm-details {
  border-radius: 12px;
  border: 1px solid var(--cm-border);
  background: #fff;
  margin-bottom: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cm-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  background: var(--cm-mist);
  color: var(--cm-navy);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s ease;
}

.cm-details summary::-webkit-details-marker {
  display: none;
}

.cm-details summary::after {
  content: "▼";
  font-size: 0.65rem;
  color: var(--cm-teal-dark);
  transition: transform 0.25s ease;
}

.cm-details[open] summary::after {
  transform: rotate(180deg);
}

.cm-details summary:hover {
  background: #e8f0f4;
}

.cm-details[open] summary {
  background: rgba(26, 188, 156, 0.12);
}

.cm-details-body {
  padding: 1rem 1.1rem 1.25rem;
  border-top: 1px solid var(--cm-border);
}

/* Supporting disciplines */
.cm-disciplines {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cm-border);
}

.cm-disciplines h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cm-navy);
  margin: 0 0 1.25rem;
}

.cm-disc-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cm-disc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .cm-disc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cm-disc-card {
  padding: 1.15rem 1.2rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--cm-border);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.cm-disc-card h4 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cm-navy);
}

.cm-disc-card p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Six module deep-dive */
.cm-module-block {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--cm-border);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}

.cm-module-block:hover {
  box-shadow: 0 12px 36px rgba(15, 36, 56, 0.07);
}

.cm-module-block:nth-child(even) {
  background: linear-gradient(180deg, #fff 0%, var(--cm-mist) 100%);
}

.cm-module-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cm-teal-dark);
  margin-bottom: 0.35rem;
}

.cm-module-block h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  margin: 0 0 0.35rem;
  color: var(--cm-navy);
}

.cm-module-sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cm-slate);
  margin: 0 0 1rem;
  opacity: 0.95;
}

.cm-module-block .cm-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--color-text);
}

/* Challenges */
.cm-challenge-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .cm-challenge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cm-challenge-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cm-challenge-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.35rem 1.4rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.cm-challenge-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(26, 188, 156, 0.35);
}

.cm-challenge-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  color: #fff;
}

.cm-challenge-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(232, 238, 242, 0.88);
}

/* Why ACC */
.cm-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.cm-pill {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--cm-ice);
  color: var(--cm-navy);
  border: 1px solid rgba(26, 188, 156, 0.2);
}

.cm-acc-columns {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .cm-acc-columns {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.cm-acc-columns h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cm-navy);
  margin: 1.5rem 0 0.65rem;
}

.cm-acc-columns h3:first-child {
  margin-top: 0;
}

.cm-acc-columns p {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.cm-acc-columns p:last-child {
  margin-bottom: 0;
}

/* FAQ / concerns */
.cm-faq-section .cm-section-title {
  max-width: 52rem;
}

.cm-faq-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 48rem;
  margin: 0 0 1.25rem;
}

.cm-faq-intro {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--cm-slate);
  max-width: 52rem;
}

.cm-faq-list {
  max-width: 52rem;
  margin-top: 2rem;
}

.cm-faq-item {
  border: 1px solid var(--cm-border);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 0.7rem;
  box-shadow: 0 2px 10px rgba(15, 36, 56, 0.045);
  overflow: hidden;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.cm-faq-item:has(.cm-faq-trigger[aria-expanded="true"]) {
  border-color: rgba(26, 188, 156, 0.38);
  box-shadow: 0 10px 36px rgba(15, 36, 56, 0.09);
}

.cm-faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  min-height: 3.25rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cm-navy);
  background: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

.cm-faq-trigger:hover {
  background: var(--cm-mist);
}

.cm-faq-trigger[aria-expanded="true"] {
  background: linear-gradient(180deg, rgba(26, 188, 156, 0.08) 0%, #fff 100%);
}

.cm-faq-trigger:focus-visible {
  outline: 2px solid var(--cm-teal);
  outline-offset: -2px;
  z-index: 1;
  position: relative;
}

.cm-faq-q {
  flex: 1;
  padding-right: 0.25rem;
}

.cm-faq-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(26, 188, 156, 0.12);
  color: var(--cm-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s ease, color 0.22s ease, transform 0.25s ease;
}

.cm-faq-trigger:hover .cm-faq-icon {
  background: rgba(26, 188, 156, 0.22);
  color: var(--cm-navy);
}

.cm-faq-trigger[aria-expanded="true"] .cm-faq-icon {
  background: rgba(26, 188, 156, 0.28);
  color: var(--cm-navy);
}

.cm-faq-icon-v {
  transition: opacity 0.24s ease, transform 0.24s ease;
  transform-origin: center;
}

.cm-faq-trigger[aria-expanded="true"] .cm-faq-icon-v {
  opacity: 0;
  transform: scaleY(0.2);
}

.cm-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.33, 1, 0.68, 1);
}

.cm-faq-panel.is-open {
  grid-template-rows: 1fr;
}

.cm-faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.cm-faq-panel.is-open .cm-faq-panel-inner {
  padding: 0 1.2rem 1.35rem;
  border-top: 1px solid var(--cm-border);
  margin-top: 0;
  padding-top: 1.1rem;
}

.cm-faq-panel-inner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--color-text);
  max-width: 46rem;
}

@media (min-width: 768px) {
  .cm-faq-trigger {
    padding: 1.2rem 1.35rem;
    font-size: 1.05rem;
  }

  .cm-faq-panel.is-open .cm-faq-panel-inner {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
    padding-bottom: 1.45rem;
  }
}

/* Final CTA */
.cm-final-cta {
  text-align: center;
  padding: clamp(4rem, 10vw, 5.5rem) 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(26, 188, 156, 0.2) 0%, transparent 55%),
    linear-gradient(180deg, var(--cm-navy) 0%, #0c1c2c 100%);
  color: #fff;
}

.cm-final-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.cm-final-cta .cm-tagline {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0 0 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cm-final-cta .cm-hero-ctas {
  justify-content: center;
}

.cm-final-cta .btn-primary {
  background: var(--cm-teal);
}

.cm-final-cta .btn-primary:hover {
  background: var(--cm-teal-dark);
}

.cm-final-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cm-final-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Integration note block (visually hidden from casual view — use comment in HTML instead; skip) */
