/* ===== ECC → S/4HANA page visuals (used only by /sap-s4hana-migration/) ===== */
.xv-ico{width:28px;height:28px;stroke:var(--cyan);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;display:block;}
.xv-ico.gold{stroke:var(--gold);}
.xv-badge-ico{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
.s4-path-icon .xv-ico,.s4-incl-icon .xv-ico,.s4-why-icon .xv-ico{width:30px;height:30px;}
.s4-path-icon,.s4-incl-icon,.s4-why-icon{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border2);background:rgba(6,182,212,.06);border-radius:10px;}

/* ---- Why migrate now ---- */
.xv-lead{max-width:720px;font-size:17px;color:var(--muted2);line-height:1.8;margin-top:8px;}
.xv-lead strong{color:var(--gold);}
.xv-now{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:48px;}
.xv-card{background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:30px 28px;position:relative;overflow:hidden;}
.xv-kicker{font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-bottom:10px;}
.xv-card h3{font-size:22px;font-weight:800;letter-spacing:-.5px;line-height:1.2;margin-bottom:8px;}
.xv-card p{font-size:14px;color:var(--muted2);line-height:1.65;}
.xv-note{font-size:11px;color:var(--muted);margin-top:10px;letter-spacing:.3px;}

.xv-clock{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:40px;align-items:center;border-color:rgba(245,158,11,.25);background:linear-gradient(120deg,rgba(245,158,11,.06),var(--surface) 55%);padding:40px;}
.xv-clock h3{font-size:clamp(26px,3vw,34px);}
.xv-clock .xv-kicker{color:var(--gold);}
.xv-count-wrap{display:flex;align-items:flex-end;gap:14px;justify-content:flex-end;}
.xv-months{font-size:clamp(72px,9vw,112px);font-weight:900;line-height:.85;letter-spacing:-4px;color:var(--gold);font-variant-numeric:tabular-nums;}
.xv-months-lbl{font-size:13px;color:var(--muted2);line-height:1.4;padding-bottom:8px;max-width:150px;}
.xv-cells{display:flex;gap:4px;margin-top:22px;}
.xv-cell{flex:1;height:10px;border-radius:2px;background:rgba(245,158,11,.75);opacity:0;transform:scaleY(.3);transition:opacity .4s ease,transform .4s ease;}
.xv-cell.past{background:rgba(148,163,184,.18);}
.xv-cell.last{background:var(--gold);box-shadow:0 0 12px rgba(245,158,11,.6);}
.xv-cells-lbl{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:8px;letter-spacing:.5px;}
.xv-in .xv-cell{opacity:1;transform:none;}

.xv-chart{width:100%;height:96px;margin:18px 0 4px;display:block;overflow:visible;}
.xv-chart .grid{stroke:rgba(148,163,184,.12);stroke-width:1;}
.xv-chart .line{fill:none;stroke:var(--gold);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:400;stroke-dashoffset:400;transition:stroke-dashoffset 1.8s ease .2s;}
.xv-chart .area{fill:url(#xvCostFill);opacity:0;transition:opacity 1s ease 1.4s;}
.xv-chart .dot{fill:var(--gold);opacity:0;transition:opacity .4s ease 1.9s;}
.xv-chart .tag{font-size:11px;fill:var(--muted2);font-family:'Outfit',sans-serif;opacity:0;transition:opacity .4s ease 2s;}
.xv-in .xv-chart .line{stroke-dashoffset:0;}
.xv-in .xv-chart .area,.xv-in .xv-chart .dot,.xv-in .xv-chart .tag{opacity:1;}

.xv-bars{display:flex;align-items:flex-end;gap:6px;height:96px;margin:18px 0 4px;border-bottom:1px solid rgba(148,163,184,.12);}
.xv-bar{flex:1;height:90%;background:var(--cyan);border-radius:2px 2px 0 0;transform-origin:bottom;transition:height .6s ease,background .6s ease,opacity .6s ease;}
.xv-in .xv-bar{height:var(--h);background:var(--c);opacity:var(--o);}
.xv-bars-lbl{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);}

.xv-locks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0 4px;}
.xv-lock{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px dashed rgba(148,163,184,.3);border-radius:6px;font-size:13px;color:var(--muted2);opacity:0;transform:translateY(8px);transition:opacity .5s ease,transform .5s ease;}
.xv-lock svg{width:15px;height:15px;stroke:var(--gold);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
.xv-in .xv-lock{opacity:1;transform:none;}
.xv-in .xv-lock:nth-child(2){transition-delay:.15s;}
.xv-in .xv-lock:nth-child(3){transition-delay:.3s;}
.xv-in .xv-lock:nth-child(4){transition-delay:.45s;}

/* ---- Time to go-live comparison ---- */
.xv-race{margin-top:48px;background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:30px 32px;}
.xv-race-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:22px;}
.xv-race-head h3{font-size:20px;font-weight:800;letter-spacing:-.3px;}
.xv-race-head span{font-size:12px;color:var(--muted);}
.xv-row{display:grid;grid-template-columns:170px minmax(0,1fr) 120px;gap:18px;align-items:center;padding:10px 0;}
.xv-row-name{font-size:14px;font-weight:600;color:var(--muted2);}
.xv-row.us .xv-row-name{color:var(--text);}
.xv-track{position:relative;height:14px;background:rgba(148,163,184,.08);border-radius:7px;overflow:hidden;}
.xv-fill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:7px;transition:width 1.4s cubic-bezier(.2,.7,.2,1);}
.xv-fill.min{background:rgba(148,163,184,.55);z-index:2;}
.xv-fill.max{background:rgba(148,163,184,.2);transition-delay:.3s;}
.xv-row.us .xv-fill.min{background:linear-gradient(90deg,var(--blue-l),var(--cyan));box-shadow:0 0 14px rgba(6,182,212,.5);}
.xv-in .xv-fill{width:var(--w);}
.xv-row-val{font-size:14px;font-weight:700;text-align:right;color:var(--muted2);font-variant-numeric:tabular-nums;}
.xv-row.us .xv-row-val{color:var(--cyan);}
.xv-axis{display:grid;grid-template-columns:170px minmax(0,1fr) 120px;gap:18px;margin-top:6px;}
.xv-axis div:nth-child(2){display:flex;justify-content:space-between;font-size:11px;color:var(--muted);}

/* ---- 16-week bar ---- */
.xv-weeks{margin-top:44px;margin-bottom:28px;}
.xv-weeks-bar{display:flex;gap:3px;}
.xv-seg{position:relative;flex-grow:var(--wk);flex-basis:0;min-width:0;height:54px;background:rgba(148,163,184,.08);border:1px solid var(--border);border-radius:4px;overflow:hidden;cursor:pointer;text-align:left;padding:0;color:var(--text);font-family:inherit;}
.xv-seg::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(26,86,219,.55),rgba(6,182,212,.55));transform:scaleX(0);transform-origin:left;transition:transform .55s ease;transition-delay:calc(var(--i) * .5s);}
.xv-in .xv-seg::before{transform:scaleX(1);}
.xv-seg:hover,.xv-seg:focus-visible{border-color:var(--cyan);outline:none;}
.xv-seg span{position:relative;z-index:1;display:block;padding:8px 12px;font-size:12px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.xv-seg small{display:block;font-weight:500;color:rgba(226,232,244,.75);font-size:11px;}
.xv-weeks-scale{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:8px;}
.xv-weeks-scale b{color:var(--cyan);font-weight:700;}

/* ---- Count-up stats ---- */
.xv-num{font-variant-numeric:tabular-nums;}

/* ---- Responsive ---- */
@media(max-width:1024px){.xv-now{grid-template-columns:1fr 1fr;}}
@media(max-width:900px){
  .xv-clock{grid-template-columns:1fr;gap:24px;padding:30px 26px;}
  .xv-count-wrap{justify-content:flex-start;}
}
@media(max-width:640px){
  .xv-now{grid-template-columns:1fr;}
  .xv-row{grid-template-columns:1fr auto;gap:6px 10px;padding:8px 0;}
  .xv-row .xv-track{grid-column:1/-1;grid-row:2;}
  .xv-axis{grid-template-columns:1fr;}
  .xv-axis div:first-child,.xv-axis div:last-child{display:none;}
  .xv-row-name,.xv-row-val{font-size:13px;}
  .xv-race{padding:24px 18px;}
  .xv-seg{height:44px;}
  .xv-seg span{padding:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:13px;text-overflow:clip;}
  .xv-seg .xv-full,.xv-seg small{display:none;}
}

/* Respect "reduce motion": show the finished state, no movement */
@media(prefers-reduced-motion:reduce){
  .xv-cell,.xv-chart .line,.xv-chart .area,.xv-chart .dot,.xv-chart .tag,.xv-bar,.xv-lock,.xv-fill,.xv-seg::before{transition:none !important;}
}
.xv-seg em{font-style:normal;}
