/* ═══════════════════════════════
   automation-report.css — Apex Systematic
═══════════════════════════════ */

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.roi-hero {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--border);
}
.roi-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.roi-hero-left .section-tag { margin-bottom: 1.25rem; }
.roi-hero-left h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.roi-hero-left p {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 460px;
}
.roi-hero-left .hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.evidence-note {
  margin-top: 2.5rem;
  padding: 14px 18px;
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,0.04);
}
.evidence-note p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.evidence-note p + p { margin-top: 4px; font-style: italic; color: var(--text-dim); }

.roi-hero-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 32px;
  position: relative;
  transition: background var(--ease);
}
.hero-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  background: var(--border);
  transition: background var(--ease);
}
.hero-stat:hover { background: var(--surface-2); }
.hero-stat:hover::before { background: var(--gold); }
.hs-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
}
.hs-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 6px;
}
.hs-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.6;
}
.hs-src {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ══════════════════════════════════════════
   HERO BRIDGE
══════════════════════════════════════════ */

.hero-bridge {
  padding: 28px var(--gutter);
  border-top: 1px solid var(--border);
  text-align: center;
}
.hero-bridge p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-muted);
}
.hero-bridge-link {
  color: var(--gold);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}
.hero-bridge-link:hover {
  border-bottom-color: var(--gold);
}

/* ══════════════════════════════════════════
   KEY INSIGHT BAND
══════════════════════════════════════════ */
.insight-band {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.insight-band-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  align-items: center;
}
.insight-band-left h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); line-height: 1.25; }
.insight-band-right p { font-size: 1rem; line-height: 1.85; color: var(--text-muted); }
.insight-band-right p + p { margin-top: 1rem; }
.insight-band-right strong { color: var(--white); font-weight: 500; }

/* ══════════════════════════════════════════
   WORKFLOWS TABLE
══════════════════════════════════════════ */
.workflows-section { padding: var(--section-y) 0; border-bottom: 1px solid var(--border); }
.workflows-section .section-header { margin-bottom: 40px; }

.wf-table-wrap { border: 1px solid var(--border); }
.wf-row {
  display: grid;
  grid-template-columns: 1fr 160px 100px 180px;
  align-items: start;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.wf-row:last-child { border-bottom: none; }
.wf-row:hover { background: var(--surface); }
.wf-row.wf-header { background: var(--surface-2); pointer-events: none; }

.wf-cell {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}
.wf-cell:last-child { border-right: none; }
.wf-cell.wf-num-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  border-right: 1px solid var(--border);
}
.wf-header .wf-cell {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 24px;
}
.wf-header .wf-num-cell { padding: 12px 0; }

.wf-num { font-family: var(--font-display); font-size: 0.85rem; color: var(--gold); }
.wf-name { font-size: 0.95rem; font-weight: 500; color: var(--white); margin-bottom: 5px; }
.wf-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.wf-saved { font-family: var(--font-display); font-size: 1rem; color: var(--gold); line-height: 1.3; }
.wf-stack { font-size: 0.8rem; color: var(--text-muted); line-height: 1.65; }

.wf-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
}
.wf-badge.easy   { background: rgba(76,175,122,0.12); color: #4CAF7A; }
.wf-badge.medium { background: rgba(232,160,32,0.12);  color: #E8A020; }

.stacking-callout {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,0.04);
}
.stacking-callout
.stacking-callout p { font-size: 0.9rem; color: var(--text); line-height: 1.8; }
.stacking-callout p + p { margin-top: 8px; }

.mid-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 28px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  background: var(--surface);
}

.mid-cta-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.mid-cta .btn { flex-shrink: 0; }

.mid-cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .mid-cta { flex-direction: column; align-items: flex-start; gap: 20px; }
  .mid-cta-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .mid-cta-actions .btn { text-align: center; white-space: normal; }
}

/* ══════════════════════════════════════════
   INDUSTRY SECTION
══════════════════════════════════════════ */
.industry-section { padding: var(--section-y) 0; border-bottom: 1px solid var(--border); }
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}
.industry-card {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  transition: background var(--ease);
  position: relative;
}
.industry-card::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 22px;
  transition: width var(--ease-slow);
}
.industry-card:hover::before { width: 48px; }
.industry-card:hover { background: var(--surface); }
.industry-card:last-child { border-right: none; }
.ind-hrs {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.ind-hrs span { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-body); }
.ind-workflow { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.ind-adoption {
  font-size: 0.72rem;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.ind-adoption b { color: var(--text-muted); }

/* ══════════════════════════════════════════
   ROADMAP SECTION
══════════════════════════════════════════ */
.roadmap-section { padding: var(--section-y) 0; border-bottom: 1px solid var(--border); }
.roadmap-section .section-header { margin-bottom: 48px; }

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.roadmap-col {
  background: var(--bg);
  padding: 44px 40px 48px;
}
.roadmap-col-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 36px;
  line-height: 1.25;
}

.roadmap-step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}
.roadmap-step:last-child { margin-bottom: 0; }

.rs-marker {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.rs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.rs-line {
  width: 1px;
  flex: 1;
  background: var(--border-light, #263040);
  margin-top: 6px;
  min-height: 32px;
}
.roadmap-step:last-child .rs-line { display: none; }

.rs-body { flex: 1; }
.rs-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
}
.rs-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.rs-hook {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--gold);
  margin-top: 8px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   BARRIERS SECTION
══════════════════════════════════════════ */
.barriers-section { padding: var(--section-y) 0; border-bottom: 1px solid var(--border); }
.barriers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  gap: 1px;
  background: var(--border);
}
.barrier-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background var(--ease);
}
.barrier-card:hover { background: var(--surface); }
.barrier-pct {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.barrier-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}
.barrier-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; }
.barrier-src { font-size: 0.7rem; font-style: italic; color: var(--text-dim); margin-top: 10px; }

/* ══════════════════════════════════════════
   FINAL CTA
══════════════════════════════════════════ */
.roi-cta-section { padding: var(--section-y) 0; }
.roi-cta-box {
  border: 1px solid var(--border);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.roi-cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.roi-cta-text .section-tag { margin-bottom: 1rem; }
.roi-cta-text h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.roi-cta-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 0.75rem;
  max-width: 480px;
}

.roi-cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .roi-hero-inner     { grid-template-columns: 1fr; gap: 48px; }
  .roi-hero-right     { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .insight-band-inner { grid-template-columns: 1fr; gap: 32px; }
  .industry-grid      { grid-template-columns: repeat(2, 1fr); }
  .industry-card:nth-child(2) { border-right: none; }
  .industry-card:nth-child(1),
  .industry-card:nth-child(2) { border-bottom: 1px solid var(--border); }
  .roadmap-grid       { grid-template-columns: 1fr; }
  .barriers-grid      { grid-template-columns: 1fr 1fr; }
  .roi-cta-box        { flex-direction: column; align-items: flex-start; gap: 28px; padding: 40px; }
  .wf-row             { grid-template-columns: 1fr 130px 80px; }
  .wf-row .wf-cell:last-child { display: none; }
}

@media (max-width: 768px) {
  .roi-hero-right   { grid-template-columns: 1fr; }
  .industry-grid    { grid-template-columns: 1fr; }
  .industry-card    { border-right: none !important; border-bottom: 1px solid var(--border); }
  .industry-card:last-child { border-bottom: none; }
  .barriers-grid    { grid-template-columns: 1fr; }
  .roadmap-col      { padding: 32px 24px; }
  .roi-cta-box      { padding: 32px 24px; }
  .wf-row           { grid-template-columns: 1fr 110px; }
  .wf-row .wf-cell:nth-child(3),
  .wf-row .wf-cell:last-child { display: none; }
}

@media (max-width: 600px) {
  .roi-cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .roi-cta-actions .btn {
    text-align: center;
    white-space: normal;
  }
}
