/* ── E-commerce & ERP page ── */

/* ── 1. Hero ── */
.ecm-hero-wrap {
  position: relative;
  width: 100%;
  min-height: 460px;
  padding-top: 72px;
  overflow: hidden;
  background: var(--voy-bg-cream);
}
.ecm-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ecm-hero-glow {
  position: absolute; top: -60px; right: -40px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(224,37,37,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.ecm-hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--voy-bg-cream));
  pointer-events: none;
}
.ecm-hero-container {
  position: relative; z-index: 2;
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ecm-hero-inner { padding: 56px 0 40px 96px; max-width: 640px; flex: 1 1 560px; }
.ecm-hero-inner h1 {
  font-family: var(--voy-font-heading);
  font-weight: 800;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.04;
  color: var(--voy-text-heading);
  margin: 18px 0 22px;
  letter-spacing: -0.025em;
}
.ecm-hero-inner h1 em { font-style: normal; color: var(--voy-primary); }
.ecm-hero-sub {
  font-family: var(--voy-font-body);
  font-size: 17.5px; font-weight: 400;
  color: var(--voy-text-body);
  line-height: 1.65; max-width: 560px;
  margin-bottom: 36px;
}
.ecm-hero-buttons { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* hero right visual */
.ecm-hero-visual {
  position: relative; z-index: 2;
  flex: 0 0 auto;
  width: 400px;
  max-width: 40%;
  padding-right: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecm-hero-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--voy-border);
  border-radius: var(--voy-radius-xl);
  box-shadow: 0 0 40px -18px rgba(224,37,37,.22), 0 24px 54px -20px rgba(60,54,44,.2);
  padding: 22px 24px;
}
.ecm-hero-float-chip {
  position: absolute; left: -22px; bottom: -20px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: #FFFFFF; border: 1px solid rgba(224,37,37,.28);
  border-radius: 14px; padding: 11px 16px;
  box-shadow: 0 16px 36px -16px rgba(26,26,23,.3);
}
.ecm-hero-float-chip .fc-num { font-family: var(--voy-font-heading); font-weight: 800; font-size: 17px; color: var(--voy-primary); letter-spacing: -.01em; }
.ecm-hero-float-chip .fc-lbl { font-size: 11px; color: var(--voy-text-muted); line-height: 1.3; max-width: 110px; }
.ecm-hero-ring {
  position: absolute; top: -46px; right: -36px;
  width: 130px; height: 130px; border-radius: 50%;
  border: 1px solid rgba(224,37,37,.18);
  pointer-events: none;
}

/* ── 2. Commerce becomes difficult at the boundaries ── */
.ecm-intro-section { background: #FFFFFF; padding: 96px 96px; border-top: 1px solid rgba(0,0,0,0.06); }
.ecm-intro-inner { max-width: 760px; margin: 0 auto; }
.ecm-intro-inner h2 {
  font-family: var(--voy-font-heading); font-weight: 800;
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em;
  line-height: 1.15; color: var(--voy-text-heading); margin: 0 0 20px;
}
.ecm-intro-inner p { font-size: 16px; color: var(--voy-text-body); line-height: 1.7; margin: 0 0 16px; }
.ecm-intro-inner p:last-child { margin-bottom: 0; }

/* ── 3. Where commerce gets hard ── */
.ecm-areas-section { background: var(--voy-bg-cream); padding: 40px 96px 96px; }
.ecm-areas-inner { max-width: 1360px; margin: 0 auto; }
.ecm-areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ecm-area-block {
  background: #FFFFFF;
  border: 1px solid var(--voy-border-light);
  border-radius: var(--voy-radius-lg);
  padding: 26px 24px 28px;
  transition: border-color .25s ease, transform .25s cubic-bezier(.22,.8,.36,1), box-shadow .25s ease;
}
.ecm-area-block:hover { border-color: rgba(224,37,37,.35); transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(26,26,23,.18); }
.ecm-area-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(224,37,37,.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.ecm-area-block h3 { font-family: var(--voy-font-heading); font-weight: 700; font-size: 16.5px; color: var(--voy-text-heading); margin: 0 0 10px; letter-spacing: -.01em; line-height: 1.3; }
.ecm-area-block p { font-size: 13px; color: #6A6A5A; line-height: 1.55; margin: 0 0 12px; }
.ecm-area-block p:last-of-type { margin-bottom: 16px; }
.ecm-area-relevant {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--voy-primary);
  text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.ecm-area-relevant:hover { border-color: var(--voy-primary); }

/* ── 4. Platforms & integrations (stacked layers) ── */
.ecm-plat-section { background: #FFFFFF; padding: 96px 96px; border-top: 1px solid rgba(0,0,0,0.06); }
.ecm-plat-inner { max-width: 1248px; margin: 0 auto; }
.ecm-plat-header { text-align: center; margin-bottom: 48px; }
.ecm-plat-header h2 {
  font-family: var(--voy-font-heading); font-weight: 800;
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em;
  color: var(--voy-text-heading); margin: 14px 0 0;
}

.ecm-plat-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }

/* left: stacked layer buttons */
.ecm-plat-list { display: flex; flex-direction: column; gap: 10px; }
.ecm-plat-layer {
  display: flex; align-items: center; gap: 18px; width: 100%;
  font-family: inherit; text-align: left; cursor: pointer;
  padding: 22px 24px; border-radius: var(--voy-radius-lg);
  background: #FFFFFF; border: 1px solid var(--voy-border-light);
  box-shadow: 0 2px 10px rgba(20,20,20,.04);
  transition: all .2s ease-out;
}
.ecm-plat-layer:nth-child(1) { transform: translateX(18px); }
.ecm-plat-layer:nth-child(2) { transform: translateX(24px); }
.ecm-plat-layer:nth-child(3) { transform: translateX(30px); }
.ecm-plat-layer:nth-child(4) { transform: translateX(36px); }
.ecm-plat-layer:nth-child(5) { transform: translateX(42px); }
.ecm-plat-layer:hover { transform: translateX(8px); }
.ecm-plat-layer.is-active,
.ecm-plat-layer.is-active:hover {
  transform: translateX(0);
  background: var(--voy-text-heading); border-color: var(--voy-text-heading);
  box-shadow: 0 18px 40px rgba(20,20,20,.16);
}
.ecm-plat-layer-num {
  flex: none; font-family: var(--voy-font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; color: var(--voy-primary); background: rgba(224,37,37,.08);
  border-radius: 8px; padding: 8px 10px; transition: all .2s ease-out;
}
.ecm-plat-layer.is-active .ecm-plat-layer-num { color: #fff; background: rgba(255,255,255,.14); }
.ecm-plat-layer-text { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.ecm-plat-layer-name { font-family: var(--voy-font-heading); font-weight: 700; font-size: 19px; letter-spacing: -.02em; transition: color .2s ease-out; color: var(--voy-text-heading); }
.ecm-plat-layer-blurb { font-size: 13.5px; line-height: 1.4; color: var(--voy-text-muted); transition: color .2s ease-out; }
.ecm-plat-layer.is-active .ecm-plat-layer-name { color: #fff; }
.ecm-plat-layer.is-active .ecm-plat-layer-blurb { color: rgba(255,255,255,.62); }
.ecm-plat-layer-count {
  flex: none; font-family: var(--voy-font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: #C4BDB5; transition: color .2s ease-out;
}
.ecm-plat-layer.is-active .ecm-plat-layer-count { color: rgba(255,255,255,.5); }

/* right: sticky pill panel */
.ecm-plat-panels { position: sticky; top: 32px; }
.ecm-plat-panel { display: none; flex-direction: column; gap: 20px; background: var(--voy-bg-panel-inner); border: 1px solid var(--voy-border-light); border-radius: var(--voy-radius-lg); padding: 30px 28px; }
.ecm-plat-panel.is-active { display: flex; }
.ecm-plat-panel-label { font-family: var(--voy-font-mono); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--voy-primary); }
.ecm-plat-pills { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── 5. Engagement models ── */
.ecm-engage-section { background: var(--voy-bg-cream); padding: 96px 96px; border-top: 1px solid rgba(0,0,0,0.06); }
.ecm-engage-inner { max-width: 1248px; margin: 0 auto; }
.ecm-engage-header { text-align: center; max-width: 640px; margin: 0 auto 16px; }
.ecm-engage-header h2 {
  font-family: var(--voy-font-heading); font-weight: 800;
  font-size: clamp(28px, 3vw, 40px); letter-spacing: -.025em;
  line-height: 1.1; color: var(--voy-text-heading); margin: 14px 0 16px;
}
.ecm-engage-note { text-align: center; font-size: 13.5px; color: var(--voy-text-muted); margin-bottom: 44px; }
.ecm-engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ecm-price-card {
  background: #FFFFFF; border: 1px solid var(--voy-border-light); border-radius: var(--voy-radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .25s ease, transform .25s cubic-bezier(.22,.8,.36,1), box-shadow .25s ease;
}
.ecm-price-card:hover { border-color: rgba(224,37,37,.35); transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(26,26,23,.18); }
.ecm-price-title { font-family: var(--voy-font-heading); font-weight: 700; font-size: 17px; color: var(--voy-text-heading); }
.ecm-price-amount { font-family: var(--voy-font-heading); font-weight: 800; font-size: 22px; color: var(--voy-primary); margin-bottom: 14px; }
.ecm-price-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ecm-price-list li { font-size: 13.5px; line-height: 1.4; color: #5A5A50; display: flex; align-items: baseline; gap: 9px; }
.ecm-price-list li::before { content: '✓'; color: var(--voy-primary); flex: none; font-weight: 700; }

/* ── 6. Get started ── */
.ecm-start-section { background: #1A1A17; padding: 88px 96px; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; }
.ecm-start-inner { max-width: 760px; margin: 0 auto; }
.ecm-start-inner h2 {
  font-family: var(--voy-font-heading); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px); color: #FEFCF6; letter-spacing: -.025em; margin: 14px 0 16px;
  line-height: 1.15;
}
.ecm-start-inner p { font-size: 15px; color: rgba(254,252,246,0.55); line-height: 1.65; max-width: 620px; margin: 0 auto 32px; }
.ecm-start-links { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.ecm-start-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--voy-radius-pill);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #FEFCF6; font-size: 14px; font-weight: 500; text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.ecm-start-link svg { flex: none; }
.ecm-start-link:hover { border-color: rgba(224,37,37,.5); background: rgba(224,37,37,.14); }
.ecm-start-links .btn-primary{padding: 11px 20px;}
/* ── Responsive ── */
@media (max-width: 1100px) {
  .ecm-hero-inner, .ecm-intro-section, .ecm-areas-section, .ecm-cap-section, .ecm-proj-section, .ecm-plat-section, .ecm-engage-section, .ecm-start-section { padding-left: 48px; padding-right: 48px; }
  .ecm-hero-visual { width: 300px; padding-right: 48px; }
  .ecm-hero-panel { max-width: 280px; padding: 18px 18px; }
  .ecm-hero-float-chip { left: -14px; bottom: -14px; padding: 9px 12px; }
  .ecm-areas-grid { grid-template-columns: repeat(2, 1fr); }
  .ecm-cap-grid { grid-template-columns: repeat(2, 1fr); }
  .ecm-proj-grid { grid-template-columns: repeat(2, 1fr); }
  .ecm-plat-body { grid-template-columns: 1fr; gap: 28px; }
  .ecm-plat-panels { position: static; top: auto; }
  .ecm-plat-layer, .ecm-plat-layer:nth-child(n) { transform: none; }
  .ecm-engage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .ecm-hero-container { flex-wrap: wrap; }
  .ecm-hero-visual { display: none; }
  .ecm-hero-inner { flex: 1 1 100%; max-width: 100%; }
}
@media (max-width: 700px) {
  .ecm-hero-inner { padding: 56px 24px 32px; }
  .ecm-intro-section, .ecm-areas-section, .ecm-cap-section, .ecm-proj-section, .ecm-plat-section, .ecm-engage-section, .ecm-start-section { padding: 56px 20px 64px; }
  .ecm-areas-grid { grid-template-columns: 1fr; }
  .ecm-cap-grid { grid-template-columns: 1fr; }
  .ecm-proj-grid { grid-template-columns: 1fr; }
  .ecm-proj-wide .ecm-proj-list { grid-template-columns: 1fr; }
  .ecm-plat-layer { padding: 16px 16px; gap: 12px; border-radius: 12px; }
  .ecm-plat-layer-num { font-size: 11px; padding: 6px 8px; border-radius: 6px; }
  .ecm-plat-layer-name { font-size: 16px; }
  .ecm-plat-layer-blurb { font-size: 12.5px; }
  .ecm-plat-layer-count { display: none; }
  .ecm-plat-panel { padding: 22px 20px; }
  .ecm-engage-grid { grid-template-columns: 1fr; }
}
