/* ==========================================================================
   TransferKu Round 1 (2026-10-20): hero payment flow, proof band, segment cards,
   "How we work with you" journey. Vanilla CSS, colours from tk-brand.css.
   Rules of the road:
   - Without JS (no .tk-js) or with reduced motion, everything renders in its FINAL state.
   - Motion only under html.tk-motion (set by tk-r1.js when prefers-reduced-motion is not "reduce").
   - Only transform / opacity / stroke-dashoffset are animated.
   ========================================================================== */
.tk-svg { width: 22px; height: 22px; display: inline-block; vertical-align: middle; flex: none; }

/* Header CTA got longer ("Talk to a payments specialist"): keep the desktop nav on one line */
.tk-nav .tk-btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1240px) {
  .tk-nav { gap: 0; }
  .tk-nav a { padding: 8px 8px; font-size: 14px; }
  .tk-nav .tk-btn { padding: 9px 12px; font-size: 14px; }
  .tk-lang { margin: 0 4px; }
}

/* ---------- Hero ---------- */
.tk-hero-more { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 15px; text-decoration: none; }
.tk-hero-more:hover { text-decoration: underline; }

/* ---------- Hero payment-flow (figure.tk-pf) ---------- */
.tk-pf { background: #fff; border: 1px solid var(--tk-line); border-radius: var(--tk-radius-lg); padding: 24px 24px 20px; box-shadow: 0 24px 48px -24px rgba(14,23,38,.18); margin: 0; }
.tk-pf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tk-pf-head .tk-flow-title { margin: 0; }
.tk-pf-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--tk-line); background: #fff; color: var(--tk-muted); border-radius: 999px; padding: 6px 12px 6px 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; line-height: 1; min-height: 32px; }
.tk-pf-btn:hover { color: var(--tk-primary); border-color: var(--tk-primary); }
.tk-pf-btn:focus-visible, .tk-wbt summary:focus-visible, .tk-hero-more:focus-visible, .tk-c2c a:focus-visible { outline: 3px solid var(--tk-accent); outline-offset: 2px; }
.tk-pf-btn .tk-svg { width: 14px; height: 14px; }
.tk-pf-btn .tk-pf-iplay { display: none; }
.tk-pf-btn.is-paused .tk-pf-ipause { display: none; }
.tk-pf-btn.is-paused .tk-pf-iplay { display: inline-block; }
.tk-pf-list { list-style: none; margin: 0; padding: 0; }
.tk-pf-node { position: relative; border: 1px solid var(--tk-line); border-radius: var(--tk-radius); padding: 13px 15px; display: flex; align-items: flex-start; gap: 13px; background: #fff; margin-bottom: 30px; transition: border-color .35s, box-shadow .35s, opacity .35s, transform .35s; }
.tk-pf-node:last-child { margin-bottom: 0; }
.tk-pf-node strong { display: block; color: var(--tk-ink); font-size: 15px; }
.tk-pf-node small { display: block; color: var(--tk-muted); font-size: 13px; line-height: 1.45; }
.tk-pf-ic { width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--tk-surface-blue); color: var(--tk-primary); flex: none; }
.tk-pf-node.core { background: var(--tk-primary); border-color: var(--tk-primary); }
.tk-pf-node.core strong { color: #fff; }
.tk-pf-node.core .tk-pf-ic { background: rgba(255,255,255,.18); color: #fff; }
.tk-pf-chks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tk-pf-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,.16); border-radius: 999px; padding: 3px 9px 3px 5px; transition: opacity .3s, background .3s; }
.tk-pf-chk .tk-svg { width: 15px; height: 15px; }
.tk-pf-wire { position: absolute; left: 33px; top: 100%; width: 2px; height: 30px; background: var(--tk-accent); overflow: visible; }
.tk-pf-wire i { position: absolute; left: -4px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--tk-primary); box-shadow: 0 0 0 4px rgba(52,93,232,.18); opacity: 0; }
.tk-pf-status { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--tk-line); flex-wrap: wrap; }
.tk-pf-st-l { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tk-muted); }
.tk-pf-status ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; }
.tk-pf-status li { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: #0F7B45; background: #E7F6EE; border-radius: 999px; padding: 3px 8px 3px 4px; transition: opacity .3s, background .3s, color .3s; }
.tk-pf-status .tk-svg { width: 14px; height: 14px; }
/* animated state (JS + motion OK): dim what has not happened yet */
.tk-pf.is-anim .tk-pf-node:not(.on) { opacity: .45; transform: scale(.985); }
.tk-pf.is-anim .tk-pf-node.on { box-shadow: 0 10px 24px -14px rgba(52,93,232,.55); }
.tk-pf.is-anim .tk-pf-chk:not(.on) { opacity: .25; }
.tk-pf.is-anim .tk-pf-status li:not(.on) { color: var(--tk-muted); background: var(--tk-surface); }
.tk-pf.is-anim .tk-pf-status li:not(.on) .tk-svg { opacity: .3; }
.tk-pf.is-anim .tk-pf-wire:not(.on) { background: var(--tk-line); }
.tk-pf.is-anim .tk-pf-wire.on i { animation: tk-wire .75s ease-in-out both; }
@keyframes tk-wire { 0% { opacity: 0; transform: translateY(-2px); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(24px); } }

/* ---------- Proof band (counters + icon motion) ---------- */
.tk-proof-sec { padding-top: 8px; }
.tk-proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tk-proof-i { background: var(--tk-surface); border: 1px solid var(--tk-line); border-radius: var(--tk-radius-lg); padding: 22px 22px 20px; }
.tk-proof-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--tk-surface-blue); color: var(--tk-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.tk-proof-ic .tk-svg { width: 26px; height: 26px; }
.tk-proof-i strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--tk-ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tk-proof-i:nth-child(n+3) strong { font-size: 1.35rem; line-height: 1.25; padding: .14em 0; }
.tk-proof-i > span:not(.tk-proof-ic) { display: block; font-size: 14px; color: var(--tk-text); margin-top: 6px; line-height: 1.45; }
.tk-proof-i small { display: block; font-size: 12.5px; color: var(--tk-muted); margin-top: 4px; }
.tk-count { display: inline-block; min-width: 3.1ch; text-align: right; }

/* ---------- Segment cards: expandable "What we build together" ---------- */
.tk-segcard { display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tk-segcard > .tk-card-link { margin-top: auto; padding-top: 14px; }
.tk-wbt { margin-top: 18px; border-top: 1px solid var(--tk-line); }
.tk-wbt summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 14px 0 4px; font-weight: 700; color: var(--tk-primary); font-size: 15.5px; min-height: 44px; border-radius: 6px; }
.tk-wbt summary::-webkit-details-marker { display: none; }
.tk-wbt summary::marker { content: ""; }
.tk-wbt-i { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--tk-surface-blue); transition: transform .25s ease; }
.tk-wbt[open] .tk-wbt-i { transform: rotate(45deg); }
.tk-wbt-body { padding: 8px 0 2px; }
.tk-wbt-body p { margin: 0; padding: 14px 16px; background: var(--tk-surface-blue); border-radius: var(--tk-radius); color: var(--tk-ink); font-size: 15.5px; border-left: 3px solid var(--tk-primary); }
@media (hover: hover) {
  .tk-segcard:hover { transform: translateY(-3px); }
}
.tk-c2c { margin: 36px 0 0; font-size: 15.5px; color: var(--tk-muted); text-align: center; }
.tk-c2c a { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- "How we work with you" journey ---------- */
.tk-journey { position: relative; }
.tk-jr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.tk-jr-track { position: absolute; left: 28px; right: calc(25% - 28px); top: 27px; height: 3px; background: var(--tk-line); border-radius: 3px; }
.tk-jr-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--tk-primary), var(--tk-accent)); border-radius: 3px; transform-origin: left center; transform: scaleX(1); transition: transform .7s cubic-bezier(.3,.7,.3,1); }
.tk-jr-st { position: relative; }
.tk-jr-dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tk-primary); color: #fff; box-shadow: 0 0 0 6px #fff; transition: background .35s, color .35s, transform .35s; }
.tk-jr-dot .tk-svg { width: 26px; height: 26px; }
.tk-jr-n { display: block; margin-top: 18px; font-weight: 700; color: var(--tk-primary); font-size: 13px; letter-spacing: .1em; }
.tk-jr-st h3 { margin: 4px 0 8px; }
.tk-jr-st p { font-size: 15.5px; margin-bottom: 10px; }
.tk-jr-st ul { list-style: none; margin: 0; padding: 0; }
.tk-jr-st ul li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--tk-muted); margin-bottom: 6px; }
.tk-jr-st ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--tk-accent); }
@media (max-width: 991px) {
  .tk-jr { grid-template-columns: 1fr; gap: 32px; padding-left: 76px; }
  .tk-jr-track { display: none; }
  /* mobile: one connector per stage, from this dot to the next one */
  .tk-jr-st:not(:last-child)::after { content: ""; position: absolute; left: -49.5px; top: 60px; bottom: -28px; width: 3px; border-radius: 3px; background: var(--tk-primary); transition: background .5s; }
  .tk-jr-dot { position: absolute; left: -76px; top: 0; }
  .tk-jr-n { margin-top: 2px; }
  .tk-proof { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tk-proof { gap: 12px; }
  .tk-proof-i { padding: 18px 16px; }
  .tk-proof-i strong { font-size: 1.6rem; }
  .tk-proof-i:nth-child(n+3) strong { font-size: 1.1rem; }
  .tk-pf { padding: 20px 16px 16px; }
  .tk-pf-head { flex-wrap: wrap; }
}

/* ==========================================================================
   MOTION: only when JS is running and the user has not asked for reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* journey: fill follows the furthest stage in view (JS sets --p and .on) */
  html.tk-motion .tk-journey .tk-jr-fill { transform: scaleX(var(--p, 0)); }
  html.tk-motion .tk-journey .tk-jr-st:not(.on) .tk-jr-dot { background: #fff; color: var(--tk-primary); transform: scale(.9); box-shadow: 0 0 0 6px #fff, inset 0 0 0 2px var(--tk-line); }
  html.tk-motion .tk-journey .tk-jr-st { transition: opacity .5s, transform .5s; }
  html.tk-motion .tk-journey .tk-jr-st:not(.on) { opacity: .55; }
  @supports selector(:has(*)) {
    @media (max-width: 991px) {
      html.tk-motion .tk-jr-st:not(:has(+ .tk-jr-st.on))::after { background: var(--tk-line); }
    }
  }
  /* reveal + icon motion (runs once when .is-in is added) */
  html.tk-motion .tk-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  html.tk-motion .tk-reveal.is-in { opacity: 1; transform: none; }
  html.tk-motion .tk-proof-i:nth-child(2) { transition-delay: .08s; }
  html.tk-motion .tk-proof-i:nth-child(3) { transition-delay: .16s; }
  html.tk-motion .tk-proof-i:nth-child(4) { transition-delay: .24s; }
  html.tk-motion .tk-proof-i.is-in .tk-draw { stroke-dasharray: 1; animation: tk-draw 1.1s .35s ease-out both; }
  html.tk-motion .tk-proof-i.is-in .tk-hand { transform-origin: 12px 12px; animation: tk-sweep 1.6s .3s cubic-bezier(.4,.1,.2,1) both; }
  html.tk-motion .tk-jr-st.on .tk-draw { stroke-dasharray: 1; animation: tk-draw .9s .2s ease-out both; }
  html.tk-motion .tk-wbt[open] .tk-wbt-body { animation: tk-open .3s ease-out both; }
}
@keyframes tk-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tk-sweep { from { transform: rotate(-360deg); } to { transform: rotate(0deg); } }
@keyframes tk-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tk-segcard, .tk-pf-node, .tk-jr-fill, .tk-wbt-i { transition: none !important; }
  .tk-segcard:hover { transform: none; }
}
.tk-nw { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1080px) {
  .tk-nav a { white-space: nowrap; padding: 8px 6px; font-size: 13.5px; }
  .tk-nav .tk-btn { padding: 9px 10px; font-size: 13.5px; }
}
