/* ============================================================
   PI/PO MIGRATION service page. Hero pattern reuses the live
   KloudData theme's light/badge language (see home.css's
   .home-hero) scaled down for an interior page; the ambient
   background comes from body's hero-background-1.png (see
   main.css). Sections below use main.css's shared card/button/
   token system.
   ============================================================ */
.svc-hero-simple{
  /* No background of its own -- the body's ambient hero-background-1.png
     (see main.css) shows through here, same as it does on every page. */
  position: relative; overflow: hidden;
  padding: 140px 24px 64px; text-align: center;
}
@media (max-width: 1024px){ .svc-hero-simple{ padding: 120px 24px 48px; } }
@media (max-width: 640px){ .svc-hero-simple{ padding: 100px 20px 40px; } }
.svc-hero-inner{ position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.svc-hero-title{
  /* font-size/line-height intentionally not set here -- inherits the
     sitewide h1 scale from main.css. */
  letter-spacing: -1.5px;
  color: var(--text-primary); margin: 0 0 20px; text-wrap: balance;
}
.svc-hero-lede{ font-size: 16px; line-height: 1.6; max-width: 56ch; margin: 0 auto 28px; }

/* max-width itself now comes from main.css's shared .section-head rule
   (940px desktop / 720px tablet / 100% mobile) -- kept as an empty
   selector here only if a future page-specific override is needed. */
.section-head.centered{ margin-inline: auto; text-align: center; }
.section-head.centered p{ margin-inline: auto; }
.section-head.centered .kicker{ justify-content: center; display: flex; }

.why-now{ background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-now .inner{ max-width: 760px; margin: 0 auto; }
.why-now p{ font-size: 16px; line-height: 1.75; margin: 0 0 14px; }
.why-now p:last-child{ margin-bottom: 0; }
.why-now strong{ color: var(--text-primary); }

/* Restores the top padding main.css's `main section + section` rule
   zeroes by default (see main.css) -- "Four stages, one interface at a
   time." wants its own breathing room below the why-now band above it,
   same as .proof-band/.why-now/.lanes-section restore theirs elsewhere. */
#how{ padding-top: 96px; }
@media (max-width: 768px){ #how{ padding-top: 64px; } }

.stages{ max-width: 1280px; margin-inline: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px){ .stages{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .stages{ grid-template-columns: 1fr; } }
.stage{
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  /* Grid items default to min-width:auto, so the Test card's .diff-rail
     (white-space:nowrap content) was pulling its minimum width up above
     the other 3 cards' 1fr track width. min-width:0 makes every card
     respect the grid track instead; .diff-rail's own overflow-x:auto
     scrolls its content within the now-equal-width card. */
  min-width: 0;
}
.stage:hover{ transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,40,120,0.15); border-color: var(--border-active); }
.stage-icon{ width: 44px; height: 44px; border-radius: 999px; background: var(--accent-blue-glow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stage-icon svg{ width: 22px; height: 22px; stroke: var(--accent-blue); fill: none; stroke-width: 1.8; }
.stage-num{ font-size: 11.5px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.stage h3{ margin: 0; letter-spacing: -0.005em; color: var(--text-primary); }
.stage p{ font-size: 16px; line-height: 1.6; margin: 0; }
.stage-detail{ font-size: 12px; color: var(--accent-blue); background: var(--accent-blue-glow); border-radius: var(--radius-sm); padding: 8px 11px; line-height: 1.5; margin-top: auto; }

.doc-split{ max-width: 1280px; margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 860px){ .doc-split{ grid-template-columns: 1fr; } }
.doc-card{
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: clamp(24px, 3vw, 32px);
}
.doc-card ul{ margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 16px; line-height: 1.9; }
.doc-card li strong{ color: var(--text-primary); }

/* Closing CTA band -- see main.css's shared .cta-band component (matches
   the live site's home-final-cta.php dark navy/radial-glow card exactly),
   enqueued on every page rather than redefined per page template. */

/* ---------- signature: diff rail (Test stage) -- kept as the one
   deliberately dark, terminal-styled surface, echoing the home page's
   scan console rather than the page's light chrome. ---------- */
.diff-rail{
  margin-top: 10px; background: #0B1733;
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm);
  padding: 12px 13px; font-size: 11.5px;
  overflow-x: auto;
}
.diff-row{ display:flex; align-items:center; gap:8px; padding:5px 0; color: rgba(255,255,255,0.6); white-space: nowrap; }
.diff-row .old{ text-decoration: line-through; color: rgba(255,255,255,0.35); }
.diff-row .arrow{ color: var(--accent-teal); flex-shrink:0; }
.diff-row .new{ color: #fff; }
.diff-row .tag{ margin-left:auto; font-size:9.5px; padding:2px 7px; border-radius:999px; font-weight:700; letter-spacing:.03em; flex-shrink:0; }
.diff-row .tag.benign{ background: rgba(0,168,136,0.35); color:#8fe0b4; }
