/* Journey v4 · refined: light page, one product window, calm precise motion */
body:has(#w4) main { transform: none !important; animation: none !important; }
.w4-intro { padding: 88px 0 56px; }
.w4-intro h1 { margin: 14px 0 0; font-weight: 700; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 22ch; color: var(--k-ink); }
.w4-intro p { margin: 18px 0 0; font-size: 1.2rem; line-height: 1.55; color: var(--k-ink2); max-width: 54ch; }
.w4-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.w4-switch a { text-decoration: none; border: 1px solid var(--k-line); border-radius: 999px; padding: 9px 16px; font-size: 15px; color: var(--k-ink2); min-height: 42px; box-sizing: border-box; display: inline-flex; align-items: center; background: #fff; }
.w4-switch a:hover { color: var(--k-ink); border-color: var(--k-ink2); }
.w4-switch a[aria-current="page"] { background: var(--k-ink); color: #fff; border-color: var(--k-ink); }
.w4-actions { display: flex; gap: 22px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.w4-skip { font-weight: 600; font-size: 1.05rem; color: var(--k-ink); text-decoration: underline; text-underline-offset: 4px; }

.w4 { background: var(--k-bg3, #F4F6F8); border-top: 1px solid var(--k-line); border-bottom: 1px solid var(--k-line); }
.w4-in { height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.w4-count { margin: 0 0 12px; font: 600 14px var(--m); letter-spacing: .08em; text-transform: uppercase; color: #0B7A72; }
.w4-titles { position: relative; height: 190px; }
.w4-t { position: absolute; inset: 0; opacity: 0; }
.w4-t h2 { margin: 0; font-weight: 700; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.08; letter-spacing: -0.025em; color: var(--k-ink); }
.w4-t p { margin: 14px 0 0; font-size: 1.18rem; line-height: 1.5; color: var(--k-ink2); max-width: 34ch; }
.w4-nav { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--k-line); display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.w4-nav button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: center; width: 100%; min-height: 38px; padding: 4px 8px; border-radius: 8px; font-size: 16px; color: var(--k-ink2); transition: background 200ms, color 200ms; }
.w4-nav button span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--m); border: 1.5px solid #C9D2DC; color: #6B7785; transition: all 250ms; }
.w4-nav button:hover { background: #fff; color: var(--k-ink); }
.w4-nav button:focus-visible { outline: 2px solid var(--k-aqua); }
.w4-nav button.past span { background: rgba(15,169,158,.12); border-color: transparent; color: #0B7A72; }
.w4-nav button.cur { background: #fff; color: var(--k-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 0 0 1px var(--k-line); }
.w4-nav button.cur span { background: #0FA99E; border-color: #0FA99E; color: #fff; }
/* Active step: a point of light travels around the button's edge. */
@property --orb { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.w4-nav button { position: relative; }
.w4-nav button::after { content: ''; position: absolute; inset: 0; border-radius: 8px; padding: 2px; pointer-events: none; opacity: 0; transition: opacity 300ms;
  background: conic-gradient(from var(--orb), transparent 0turn, transparent .66turn, rgba(15,169,158,.3) .84turn, #0FA99E .97turn, #0B7A72 .995turn, transparent 1turn);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.w4-nav button.cur::after { opacity: 1; animation: w4orb 2.8s linear infinite; }
@keyframes w4orb { to { --orb: 360deg; } }
@media (prefers-reduced-motion: reduce) { .w4-nav button.cur::after { animation: none; background: none; box-shadow: inset 0 0 0 2px #0FA99E; padding: 0; -webkit-mask: none; mask: none; } }

.w4-win { border-radius: 14px; overflow: hidden; background: #0B1A33; color: #E8EEF8; box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 24px 60px -24px rgba(11,26,51,.45); border: 1px solid #1E3460; }
.w4-bar { display: flex; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #1E3460; font: 500 12px var(--m); letter-spacing: .08em; color: #A9B8D0; }
.w4-bar .d { display: flex; gap: 6px; } .w4-bar .d i { width: 9px; height: 9px; border-radius: 50%; background: #22406E; }
.w4-wp { margin-left: auto; width: 110px; height: 4px; border-radius: 2px; background: #1E3460; overflow: hidden; } .w4-wp i { display: block; height: 100%; width: 100%; background: #19D3C5; transform-origin: left; transform: scaleX(0); }
.w4-view { --dw: 820px; --dh: 560px; position: relative; overflow: hidden; height: calc(var(--dh) * var(--k, 1)); }
.w4-stage { position: absolute; left: 0; top: 0; width: var(--dw); height: var(--dh); transform: scale(var(--k, 1)); transform-origin: 0 0; }
.w4-sc { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.w4-body { position: absolute; inset: 0 0 54px; padding: 30px 38px; display: grid; align-content: center; gap: 20px; }
.w4-rcpt { position: absolute; left: 0; right: 0; bottom: 0; height: 54px; margin: 0; padding: 0 38px; display: flex; align-items: center; gap: 10px; border-top: 1px solid #1E3460; background: #081428; font: 500 14px var(--m); color: #A9B8D0; }
.w4-rcpt i { width: 8px; height: 8px; border-radius: 50%; background: #45D98C; flex: none; }

/* calmer components than v3: no glows, sharper text */
.w4 .x0-q { font-size: 1.75rem; } .w4 .x0-q .w { white-space: pre; }
.w4 .x3-stamp, .w4 .x6-bar.us i, .w4 .x6-foot .delta, .w4 .lk, .w4 .x4-lead { box-shadow: none; }
.w4 .x4-a .ring { box-shadow: none !important; }
.w4 svg circle { filter: none; } .w4 .x9-line path { filter: none; }
.w4 .x5-m .back { box-shadow: none; }
.w4 .x1-r, .w4 .x5-m p, .w4 .x7 ul, .w4 .x8-u, .w4 .x8-a, .w4 .x9 li { font-size: 16px; }
.w4 .x2 p, .w4 .x3 p span { font-size: 15px; }
.w4 .orb { width: 210px; height: 210px; } .w4 .orb i { animation-duration: 24s; } .w4 .orb i:nth-child(2) { animation-duration: 18s; } .w4 .orb i:nth-child(3) { animation-duration: 14s; }
.w4 .x7 { grid-template-columns: 210px 1fr; }
.w4 .x5-data .scan { animation-duration: 3.6s; }
.w4-sum-h { margin: 0; display: grid; gap: 4px; } .w4-sum-h b { font-size: 1.5rem; color: #fff; } .w4-sum-h span { color: #A9B8D0; font-size: 15px; }
.w4-sum ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.w4-sum li { display: grid; grid-template-columns: 30px 120px 1fr; gap: 8px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid #1E3460; font-size: 15px; }
.w4-sum li span { font: 600 13px var(--m); color: #19D3C5; } .w4-sum li b { color: #fff; } .w4-sum li em { font-style: normal; color: #C9D6EA; }

.w4-end { padding: 96px 0 72px; text-align: center; }
.w4-end h2 { margin: 0 auto; font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.025em; line-height: 1.12; max-width: 22ch; }
.w4-end p { margin: 16px auto 28px; font-size: 1.15rem; color: var(--k-ink2); max-width: 52ch; } .w4-end .k-note { margin-top: 40px; font-size: 14px; }

@media (max-width: 960px) {
  .w4-in { grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; padding-top: 16px; padding-bottom: 16px; }
  .w4-count { margin-bottom: 6px; font-size: 13px; } .w4-titles { height: 118px; }
  .w4-t h2 { font-size: 1.7rem; } .w4-t p { font-size: 1.02rem; margin-top: 8px; max-width: none; }
  .w4-nav { order: -1; margin: 0 0 6px; padding: 0 0 6px; border: 0; border-bottom: 1px solid var(--k-line); display: flex; overflow-x: auto; gap: 6px; grid-template-columns: none; }
  .w4-nav li { flex: none; } .w4-nav button { width: auto; white-space: nowrap; font-size: 14px; }
  .w4-left, .w4-right { min-width: 0; } .w4-left { display: flex; flex-direction: column; }
}
/* No-motion: everything shown in order, nothing pinned */
.w4.static .w4-in { height: auto; display: block; padding: 40px 0; }
.w4.static .w4-left { display: none; }
.w4.static .w4-view { height: auto; overflow: visible; }
.w4.static .w4-stage { position: static; transform: none; width: auto; height: auto; }
.w4.static .w4-sc { position: relative; opacity: 1; visibility: visible; height: 560px; border-bottom: 8px solid #F4F6F8; }

@media (max-width: 600px) {
  .w4-view { --dw: 520px; --dh: 640px; }
  .w4-body { padding: 22px 22px; gap: 16px; } .w4-rcpt { padding: 0 22px; font-size: 13px; height: 54px; }
  .w4 .x0-q { font-size: 1.45rem; } .w4 .x1-src, .w4 .x4-agents, .w4 .x8-kp { gap: 8px; }
  .w4 .x1-src span { font-size: 13px; padding: 10px 6px; } .w4 .x1-r { grid-template-columns: 1fr auto; } .w4 .x1-r em { display: none; }
  .w4 .x3, .w4 .x5, .w4 .x7 { grid-template-columns: 1fr; } .w4 .x5-data { display: none; }
  .w4 .orb { width: 130px; height: 130px; justify-self: center; } .w4 .orb i:nth-child(2) { inset: 18px; } .w4 .orb i:nth-child(3) { inset: 36px; } .w4 .lk { transform: scale(.8); }
  .w4 .x6-bar { grid-template-columns: 1fr auto; } .w4 .x6-bar i { grid-column: 1 / -1; grid-row: 2; } .w4 .x6-foot { flex-wrap: wrap; }
  .w4 .x8-kp b { font-size: 1.5rem; } .w4 .x9 { grid-template-columns: 1fr; gap: 8px; } .w4 .x9 li { padding: 10px 12px; }
  .w4 .x4-a { padding: 14px 6px; } .w4 .x4-a b { font-size: 14px; }
  .w4-sum ol { grid-template-columns: 1fr; gap: 0; } .w4-sum li { padding: 6px 0; grid-template-columns: 30px 110px 1fr; }
}

/* Five-step journey additions (inside the dark product window) */
.w4 .x0-files .file em { font: 600 13px var(--m); font-style: normal; color: #5EEAD4; margin-left: 4px; }
.w4 .x3 p .x3-q { font-style: italic; color: #A9BBD6; }
.w4 .x4-chk { margin: 0; display: flex; gap: 10px; align-items: center; font-size: 15px; padding: 11px 14px; border-radius: 10px; background: rgba(245,181,68,.1); border: 1px solid rgba(245,181,68,.45); color: #E8EEF7; }
.w4 .x4-chk i { font-style: normal; font-weight: 700; color: #F5B544; }
.w4 .x8-api { margin: 0; display: flex; gap: 10px; align-items: center; font-size: 15px; color: #A9BBD6; }
.w4 .x8-api code { font: 600 14px var(--m); color: #5EEAD4; background: rgba(25,211,197,.12); padding: 3px 8px; border-radius: 6px; }
.w4 .x8-api .lk-s { width: 12px; height: 10px; border-radius: 2px; background: #19D3C5; position: relative; margin-top: 4px; }
.w4 .x8-api .lk-s::before { content: ''; position: absolute; left: 2px; top: -6px; width: 8px; height: 7px; border: 2px solid #19D3C5; border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box; }
@media (max-width: 959px) {
  .w4 .x3 { gap: 10px; } .w4 .x3 > div { padding: 14px; gap: 8px; } .w4 .x3 p { padding-top: 8px; }
  .w4 .x3 p span:not(.x3-q) { display: none; } .w4 .x3 p b { font-size: 15px; }
  .w4 .x3-stamp { font-size: 1.05rem; padding: 8px 16px; }
}

/* Played like a demo: no scroll hold, so the section only needs its own height. */
.w4-in { height: auto; min-height: min(760px, calc(100vh - 68px)); padding-top: 48px; padding-bottom: 48px; }
.w4-wp i { transition: none; }
.w4-pp { all: unset; cursor: pointer; margin-left: 10px; width: 26px; height: 22px; display: grid; place-items: center; border-radius: 6px; font-size: 10px; color: #A9B8D0; border: 1px solid #2A4677; }
.w4-pp:hover { color: #fff; border-color: #5EEAD4; } .w4-pp:focus-visible { outline: 2px solid #5EEAD4; outline-offset: 2px; }
@media (max-width: 960px) { .w4-in { min-height: 0; padding-top: 20px; padding-bottom: 28px; } }

/* Steps as a horizontal row under the window, like the home statement's rail:
   a bar per step (the active one fills as the timer), number and name below. */
.w4-in > .w4-nav { grid-column: 1 / -1; display: flex; gap: 12px; margin: 8px 0 0; padding: 0; border: 0; grid-template-columns: none; }
.w4-in > .w4-nav li { flex: 1; min-width: 0; --fill: 0; }
.w4-in > .w4-nav li::before { content: ''; display: block; height: 4px; border-radius: 2px; background: #D7DCE2; }
.w4-in > .w4-nav li:has(button.past)::before { background: rgba(15,169,158,.45); }
.w4-in > .w4-nav li:has(button.cur)::before { background: linear-gradient(90deg, #0FA99E calc(var(--fill) * 100%), rgba(15,169,158,.28) 0); }
.w4-in > .w4-nav button { padding: 12px 2px 4px; min-height: 0; border-radius: 0; background: none !important; box-shadow: none !important; font-size: 15px; color: #5F6B78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w4-in > .w4-nav button::after { content: none; }
.w4-in > .w4-nav button span { width: 22px; height: 22px; font-size: 11px; }
.w4-in > .w4-nav button:hover { color: var(--k-ink); }
.w4-in > .w4-nav button.cur { color: var(--k-ink); font-weight: 600; }
/* 'Or watch it for' as a vertical list where the steps used to be. */
.w4-also { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--k-line); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.w4-also span { font: 600 12px var(--m); letter-spacing: .08em; text-transform: uppercase; color: #6B7785; margin-bottom: 8px; }
.w4-also a { text-decoration: none; color: var(--k-ink); font-size: 16px; padding: 6px 0; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid transparent; }
.w4-also a i { font-style: normal; color: #0FA99E; opacity: 0; transform: translateX(-4px); transition: opacity 200ms, transform 200ms; }
.w4-also a:hover { color: #0B7A72; } .w4-also a:hover i { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .w4-in > .w4-nav { order: 3; overflow-x: auto; gap: 10px; }
  .w4-in > .w4-nav li { flex: none; min-width: 120px; }
  .w4-also { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; padding-top: 12px; } .w4-also span { width: 100%; margin-bottom: 0; } .w4-also a { font-size: 14px; padding: 4px 0; }
}

/* Steps row at the top, 'Or watch it for' as a row at the bottom. */
.w4-in > .w4-nav { margin: 0 0 4px; }
.w4-in > .w4-also { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 4px; padding-top: 22px; }
.w4-in > .w4-also span { margin: 0 6px 0 0; }
.w4-in > .w4-also a { padding: 7px 14px; border: 1px solid var(--k-line); border-radius: 999px; background: #fff; font-size: 15px; }
.w4-in > .w4-also a i { display: none; }
.w4-in > .w4-also a:hover { border-color: #0FA99E; }
@media (max-width: 960px) { .w4-in > .w4-nav { order: 0; } .w4-in > .w4-also { order: 4; } .w4-in > .w4-also a { font-size: 14px; padding: 6px 12px; } }
