/* The HyperSwitch page (content/pages/services/hyperswitch.json): the story of one payment, declined and recovered,
   in the site's dark panel look (as About's .rev). hyperswitch.js steps through it; reduced motion shows it whole. */
.hs-story { position: relative; isolation: isolate; margin: 8px 0 0; padding: 40px 36px 28px; border-radius: 20px; color: #cbd5e1; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, rgb(14 116 144 / .35), transparent 60%), linear-gradient(160deg, #0b1530, #050b1c 70%); box-shadow: 0 24px 60px rgb(2 6 23 / .28); }
.hs-flow { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1.15fr 34px 1fr; align-items: center; }
.hs-node { position: relative; z-index: 1; min-width: 0; padding: 18px 18px 16px; border: 1px solid rgb(148 163 184 / .28); border-radius: 14px; background: rgb(10 20 41 / .92);
  transition: border-color .4s ease, box-shadow .4s ease, opacity .4s ease, transform .4s ease; }
.hs-k { display: block; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #7dd3fc; }
.hs-v { display: block; margin-top: 6px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: #fff; font-variant-numeric: tabular-nums; }
.hs-s { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: #cbd5e1; }
.hs-hub { background: linear-gradient(160deg, rgb(var(--acc-600-rgb) / .35), rgb(10 20 41 / .95)); border-color: rgb(var(--acc-400-rgb) / .5); }
.hs-hub .hs-k { color: var(--acc-300); }
.hs-procs { display: grid; gap: 12px; }
.hs-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 750; opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; }
.hs-no { background: rgb(248 113 113 / .16); color: #fca5a5; }
.hs-yes { background: rgb(52 211 153 / .16); color: #6ee7b7; }
.hs-out { border-color: rgb(52 211 153 / .35); }
.hs-out .hs-k { color: #6ee7b7; }
/* The links between the steps: a line, and a dot that runs along it when its step is reached. */
.hs-link { position: relative; height: 2px; margin: 0 4px; background: rgb(148 163 184 / .28); }
.hs-link::after { content: ''; position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #7dd3fc; box-shadow: 0 0 12px #7dd3fc; opacity: 0; }
.hs-link-split { height: 70%; background: none; }
.hs-link-split::before { content: ''; position: absolute; inset: 0; border: 2px solid rgb(148 163 184 / .28); border-right: 0; border-radius: 10px 0 0 10px; transform: translateX(50%); }
.hs-link-split::after { display: none; }

/* The story, step by step (data-at on the figure, set by hyperswitch.js). */
.hs-story.is-live .hs-node { opacity: .38; }
.hs-story.is-live .hs-node.is-on { opacity: 1; }
.hs-story.is-live .hs-node.is-now { border-color: rgb(125 211 252 / .7); box-shadow: 0 0 0 4px rgb(125 211 252 / .12); transform: translateY(-2px); }
.hs-story.is-live .hs-link.is-on::after { animation: hs-dot .7s ease-in-out both; }
.hs-story .hs-a.is-on .hs-no, .hs-story .hs-b.is-on .hs-yes, .hs-story:not(.is-live) .hs-badge { opacity: 1; transform: none; }
.hs-story.is-live .hs-a.is-on.is-past { opacity: .5; border-color: rgb(248 113 113 / .45); }
.hs-story.is-live .hs-a.is-now { border-color: rgb(248 113 113 / .75); box-shadow: 0 0 0 4px rgb(248 113 113 / .12); }
.hs-story.is-live .hs-b.is-now, .hs-story.is-live .hs-out.is-now { border-color: rgb(52 211 153 / .75); box-shadow: 0 0 0 4px rgb(52 211 153 / .12); }
@keyframes hs-dot { from { left: 0; opacity: 1; } to { left: calc(100% - 9px); opacity: 1; } }

.hs-cap { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgb(148 163 184 / .2); }
.hs-cap-text { margin: 0; min-height: 3em; font-size: 16.5px; line-height: 1.5; color: #e2e8f0; }
.hs-cap-n { display: inline-block; min-width: 1.6em; margin-right: 6px; font-weight: 800; color: #7dd3fc; font-variant-numeric: tabular-nums; }
.hs-pause { flex: none; appearance: none; border: 1px solid rgb(148 163 184 / .4); border-radius: 999px; padding: 6px 14px; background: transparent; color: #e2e8f0; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.hs-pause:hover { border-color: #e2e8f0; }
.hs-pause:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }
.hs-story:not(.is-live) .hs-pause { display: none; }
.hs-steps { margin: 18px 0 0; padding-left: 1.2em; font-size: 15px; line-height: 1.55; color: #cbd5e1; }
.hs-story.is-live .hs-steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hs-story:not(.is-live) .hs-cap { display: none; }
.hs-source { margin: 12px 0 0; font-size: 13px; color: var(--ink-faint); }

/* A phone: the steps run down the screen. */
@media (max-width: 860px) {
  .hs-story { padding: 26px 18px 20px; border-radius: 16px; }
  .hs-flow { grid-template-columns: 1fr; }
  .hs-link { width: 2px; height: 22px; margin: 2px auto; }
  .hs-link::after { left: 50%; top: 0; margin: 0 0 0 -4.5px; }
  .hs-story.is-live .hs-link.is-on::after { animation-name: hs-dot-down; }
  .hs-link-split { display: none; }
  .hs-procs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hs-v { font-size: 22px; }
  .hs-cap { flex-direction: column; align-items: flex-start; }
}
@keyframes hs-dot-down { from { top: 0; opacity: 1; } to { top: calc(100% - 9px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hs-node, .hs-badge { transition: none; }
  .hs-story.is-live .hs-link.is-on::after { animation: none; }
}

/* The feature cards: what each does, and what it means for revenue. */
.hs-feats { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.hs-feat { padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.hs-feat h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.hs-feat p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.hs-feat .hs-rev { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink); }
.hs-feat .hs-rev b { color: var(--accent-text); }
.hs-feat .hs-src { margin-top: 10px; font-size: 12.5px; }
.hs-feat .hs-src a { color: var(--ink-faint); }

/* The wide routing card (Oleg, 2026-11-28: "inject an animation"): payments split across three processors, the shares
   moving toward the best approval rate, and a processor going down; hyperswitch.js runs it, reduced motion shows it still.
   With it the grid comes out even: the wide card on its own row, then three rows of three. */
.hs-feats-even { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-feat-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
@media (max-width: 1000px) { .hs-feats-even { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hs-feats-even > .hs-feat:last-child:nth-child(even) { grid-column: 1 / -1; } .hs-feat-wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .hs-feats-even { grid-template-columns: minmax(0, 1fr); } }
.hs-route { margin: 0; padding: 22px 22px 16px; border-radius: 16px; color: #cbd5e1; background: radial-gradient(120% 90% at 85% 10%, rgb(14 116 144 / .35), transparent 60%), linear-gradient(160deg, #0b1530, #050b1c 70%); }
.hs-route-hub { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 14px; padding: 8px 14px; border-radius: 10px; border: 1px solid rgb(var(--acc-400-rgb) / .5); background: linear-gradient(160deg, rgb(var(--acc-600-rgb) / .35), rgb(10 20 41 / .95)); }
.hs-route-hub .hs-k { color: var(--acc-300); }
.hs-route-hub .hs-s { margin: 0; font-size: 13px; }
.hs-lanes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hs-lane { display: grid; grid-template-columns: 96px minmax(0, 1fr) 46px; align-items: center; gap: 10px; }
.hs-lane-name { font-size: 13.5px; font-weight: 700; color: #fff; }
.hs-lane-name small { display: block; font-size: 11.5px; font-weight: 600; color: #94a3b8; }
.hs-lane-track { position: relative; height: 14px; border-radius: 999px; background: rgb(148 163 184 / .16); overflow: hidden; }
.hs-lane-fill { position: absolute; inset: 0 auto 0 0; width: var(--share, 33%); border-radius: inherit; transition: width .9s cubic-bezier(.4, 0, .2, 1), background-color .4s ease;
  background: #38bdf8 repeating-linear-gradient(115deg, rgb(255 255 255 / .28) 0 6px, transparent 6px 14px); background-size: 28px 100%; }
.hs-route.is-live .hs-lane-fill { animation: hs-flow 0.9s linear infinite; }
@keyframes hs-flow { from { background-position: 0 0; } to { background-position: 28px 0; } }
.hs-lane-share { font-size: 14px; font-weight: 800; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.hs-lane.is-best .hs-lane-fill { background-color: #34d399; }
.hs-lane.is-down .hs-lane-name { color: #fca5a5; }
.hs-lane.is-down .hs-lane-track { background: rgb(248 113 113 / .18); }
.hs-lane-track { height: 16px; }
/* "Down" sits inside the emptied bar, its place always there: it only fades in, so no step moves the card. */
.hs-lane-down { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 10.5px; font-weight: 800; line-height: 1; letter-spacing: .04em; text-transform: uppercase; color: #fca5a5; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.hs-lane.is-down .hs-lane-down { opacity: 1; }
.hs-lane-name { white-space: nowrap; }
/* The still picture: the steady state, shares toward the best processor. */
.hs-lane-a { --share: 15%; } .hs-lane-b { --share: 75%; } .hs-lane-c { --share: 10%; }
.hs-route .hs-cap { margin-top: 16px; padding-top: 12px; }
.hs-route .hs-cap-text { min-height: 4.5em; margin: 0; font-size: 14.5px; line-height: 1.5; color: #e2e8f0; } /* not the card's own grey */
.hs-route .hs-steps { font-size: 13.5px; }
.hs-route.is-live .hs-steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hs-route:not(.is-live) .hs-cap { display: none; }
.hs-route .hs-route-note { margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: #94a3b8; }
@media (prefers-reduced-motion: reduce) { .hs-lane-fill { transition: none; } .hs-route.is-live .hs-lane-fill { animation: none; } }

/* HyperSwitch between commerce and operations (Oleg: "we can help you add HyperSwitch into operations and commerce"). */
.hs-ops { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; margin: 10px 0 0; padding: 32px 30px; border-radius: 20px; color: #cbd5e1;
  background: radial-gradient(120% 90% at 15% 10%, rgb(var(--acc-600-rgb) / .22), transparent 60%), linear-gradient(160deg, #0b1530, #050b1c 70%); }
.hs-ops .hs-node { padding: 18px; }
.hs-v-sm { font-size: 19px; }
.hs-ops-list { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: #e2e8f0; }
.hs-ops-list li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; background: currentColor; opacity: .6; }
.hs-ops-com .hs-k { color: var(--acc-300); }
.hs-ops-op .hs-k { color: #6ee7b7; }
.hs-wire { position: relative; display: grid; gap: 18px; }
.hs-wire span { position: relative; display: block; height: 2px; background: rgb(148 163 184 / .3); }
.hs-wire span::after { content: ''; position: absolute; top: -3.5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #7dd3fc; box-shadow: 0 0 10px #7dd3fc; animation: hs-wire 2.4s linear infinite; }
.hs-wire span:nth-child(2)::after { animation-delay: 1.2s; background: #6ee7b7; box-shadow: 0 0 10px #6ee7b7; }
@keyframes hs-wire { from { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { left: calc(100% - 9px); opacity: 0; } }
.hs-ops-flows { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgb(148 163 184 / .2); list-style: none; }
.hs-ops-flows li { font-size: 14px; line-height: 1.5; color: #cbd5e1; }
.hs-ops-flows b { display: block; margin-bottom: 2px; color: #fff; font-size: 14.5px; }
@media (max-width: 860px) {
  .hs-ops { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .hs-wire { width: 2px; height: 28px; margin: 4px auto; display: block; }
  .hs-wire span { width: 2px; height: 100%; }
  .hs-wire span:nth-child(2) { display: none; }
  .hs-wire span::after { left: -3.5px; top: 0; animation-name: hs-wire-down; }
  .hs-ops-flows { grid-template-columns: minmax(0, 1fr); }
}
@keyframes hs-wire-down { from { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { top: calc(100% - 9px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hs-wire span::after { animation: none; left: calc(50% - 4.5px); } }

/* The SDK, on show (Oleg, 2026-11-28: "make the SDK stand out"). */
.hs-sdk { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 36px; align-items: center; }
.hs-sdk-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.hs-sdk-points { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hs-sdk-points li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.hs-sdk-points li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.hs-sdk-points b { color: var(--ink); }
.hs-sdk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.hs-code { margin: 0; border-radius: 16px; overflow: hidden; background: #0b1222; box-shadow: 0 18px 50px rgb(2 6 23 / .25); border: 1px solid rgb(148 163 184 / .2); }
.hs-code figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 12.5px; font-weight: 650; color: #94a3b8; border-bottom: 1px solid rgb(148 163 184 / .16); }
.hs-code figcaption::before { content: ''; width: 40px; height: 8px; background: radial-gradient(circle, #f87171 3.5px, transparent 4px) 0 0 / 13px 8px repeat-x; opacity: .8; }
.hs-code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.65; color: #e2e8f0; }
.hs-code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hs-code .c-dim { color: #64748b; } .hs-code .c-k { color: #c4b5fd; } .hs-code .c-s { color: #6ee7b7; } .hs-code .c-f { color: #7dd3fc; }
@media (max-width: 900px) { .hs-sdk { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 640px) { .hs-code pre { font-size: 11.5px; padding: 14px; } }

/* The gateway modules page (2026-11-28) reuses the story above for a payment's life through a module: five steps in
   one line (.hs-flow-line), and a timeline of our gateway work that draws itself in as it scrolls into view (.gw-tl). */
.hs-flow-line { grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1fr 26px 1fr; }
.hs-flow-line .hs-node { padding: 16px 14px 14px; }
.hs-flow-line .hs-v { font-size: 22px; }
.hs-flow-line .hs-s { font-size: 13.5px; }
.hs-state { display: inline-block; margin-top: 8px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; background: rgb(125 211 252 / .14); color: #7dd3fc; opacity: 0; transition: opacity .35s ease; }
.hs-story .is-on .hs-state, .hs-story:not(.is-live) .hs-state { opacity: 1; }
@media (max-width: 1060px) { .hs-flow-line { grid-template-columns: 1fr; } .hs-flow-line .hs-link { width: 2px; height: 20px; margin: 2px auto; } .hs-flow-line .hs-link::after { left: 50%; top: 0; margin: 0 0 0 -4.5px; } .hs-story.is-live .hs-flow-line .hs-link.is-on::after { animation-name: hs-dot-down; } }

.gw-tl { position: relative; list-style: none; margin: 26px 0 0; padding: 0 0 0 34px; max-width: 820px; }
.gw-tl::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), rgb(var(--acc-400-rgb) / .2)); transform-origin: top; }
.gw-tl li { position: relative; padding: 0 0 22px; }
.gw-tl li::before { content: ''; position: absolute; left: -29px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); }
.gw-tl-y { display: inline-block; margin-right: 10px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.gw-tl b { font-size: 16.5px; color: var(--ink); }
.gw-tl p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.gw-tl a { font-weight: 600; }
/* Drawn in on scroll (hyperswitch.js adds .gw-anim, then .is-in per item); reduced motion or no script: all shown. */
.gw-tl.gw-anim::before { transform: scaleY(0); transition: transform 1.4s ease; }
.gw-tl.gw-anim.is-in::before { transform: scaleY(1); }
.gw-tl.gw-anim li { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .5s ease; }
.gw-tl.gw-anim li.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .gw-tl.gw-anim::before { transform: none; transition: none; } .gw-tl.gw-anim li { opacity: 1; transform: none; transition: none; } }
