/* Ride demo styles (ride/ride.js). Elements are found by data-ref, so the CSS uses [data-ref="..."] instead of ids.
   1. Shared: everything under .spx (the root of the demo), and the phone (from payments.edvantis.com's SoftPOS demo).
   2. The frame: the trip, the phone with the other trips under it, and behind this screen.
   3. The film, for phones and portrait tablets.
   4. The City Transit app's screens (.ct-*). */

/* ---------- 1. shared ---------- */
.spx { --line-2: var(--line-strong); --ink-2: var(--text); --faint: var(--muted); --req: var(--brand-ink); --bad: var(--error); --req-glow: rgba(98, 68, 187, .4); --pin: var(--brand); --card-shadow: 0 1px 2px rgba(13, 14, 22, .04), 0 10px 30px -16px rgba(13, 14, 22, .12); --phone-shadow: 0 34px 70px -26px rgba(20, 24, 50, .45), 0 0 0 1px #2A2E45, inset 0 0 0 2px #06070C; --a-card: var(--white); --a-ink: var(--ink); --a-muted: var(--muted); --a-line: var(--line); --display: var(--font-display); --body: var(--font-body); --mono: var(--font-mono); color-scheme: light; } /* the page's tokens, by the names the demo uses; --ink, --muted, --line and --brand are the page's own */
.spx * { box-sizing: border-box; }
.spx { color: var(--ink); font-family: var(--body); font-size: 14px; position: relative; text-align: left; line-height: normal; }
.spx button { font-family: inherit; color: inherit; }
.spx a { color: var(--req); }
.spx a:hover { color: var(--ink); }
.spx .phone { width: 340px; max-width: 100%; height: 700px; border-radius: 52px; padding: 11px; position: relative; background: linear-gradient(160deg, #2A2E45, #0E1019 40%, #1B1E2E); box-shadow: var(--phone-shadow); }
.spx .island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 104px; height: 30px; border-radius: 20px; background: #000; z-index: 30; }
.spx .screen { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; position: relative; background: var(--a-bg); color: var(--a-ink); font-family: var(--body); }
.spx .view { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; opacity: 0; transform: translateX(18px) scale(.99); pointer-events: none; transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.spx .view::-webkit-scrollbar { display: none; }
.spx .view.active { opacity: 1; transform: none; pointer-events: auto; }
.spx .sb { height: 50px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 6px 28px 0 32px; font-size: 14px; font-weight: 600; }
.spx .sb svg { display: block; }
.spx .sb .ic { display: flex; gap: 5px; align-items: center; }
.spx .pin { position: absolute; z-index: 6; width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer; background: var(--ink); color: #fff; font-family: var(--body); font-style: normal; font-weight: 600; font-size: 12px; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(13, 14, 22, .25); }
.spx .pin::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--pin); opacity: .5; animation: ping 2.4s ease-out infinite; }
.spx .pin.active { background: var(--pin); color: #fff; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(13, 14, 22, .25); }
@keyframes ping { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.spx .tip { position: absolute; z-index: 40; width: 220px; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .18s, transform .18s; }
.spx .tip.show { opacity: 1; transform: none; pointer-events: auto; }
.spx .tip b { display: block; color: #b9a8ee; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 3px; font-family: var(--mono); font-weight: 600; }
.spx .ctawrap { position: relative; margin: auto 18px 14px; padding-top: 10px; }
.spx .cta { width: 100%; height: 54px; border: 0; border-radius: 17px; background: var(--a-ink); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; }
.spx .cta:hover { background: #262838; }
.spx .cta:disabled { opacity: .3; cursor: default; background: var(--a-ink); }
.spx .cta.ghost { background: var(--a-card); color: var(--a-ink); }
.spx .cta.ghost:hover { background: #E6E8EF; }
.spx .cta .chev { font-size: 28px; font-weight: 400; line-height: 1; margin-top: -3px; }
.spx .big-amt { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; position: relative; display: inline-block; }

.spx .st { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; }
.spx .spin { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #E1E3EC; border-top-color: var(--a-ink); animation: rot .9s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.spx .res { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 10px 18px 20px; gap: 8px; text-align: center; }
.spx .r-ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin-top: 6px; flex: 0 0 auto; }
.spx .r-ico.ok { background: #E3F8EF; color: #0B8A5F; }
.spx .r-ico.bad { background: #FFE4E9; color: #D11F40; }
.spx .r-ico path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .15s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.spx .r-t { font-weight: 600; font-size: 20px; margin: 4px 0 0; }
.spx .r-s { font-size: 13px; color: var(--a-muted); margin: 0; }
.spx .r-card { width: 100%; background: var(--a-card); border-radius: 16px; margin-top: 6px; position: relative; text-align: left; }
.spx .r-card .r { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 13px; gap: 12px; position: relative; }
.spx .r-card .r + .r { border-top: 1px dashed var(--a-line); }
.spx .r-card .k { color: var(--a-muted); }
.spx .r-card .v { font-weight: 600; font-family: var(--mono); font-size: 12px; text-align: right; }
.spx .r-next { padding: 12px 14px; }
.spx .r-next .k { margin-bottom: 4px; }
.spx .r-next p { margin: 0; font-size: 13px; line-height: 1.45; }
.spx .r-btns { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .spx *, .spx *::before, .spx *::after { animation-duration: .001ms!important; animation-iteration-count: 1!important; transition-duration: .001ms!important; }
}

/* ---------- 2. the frame: the trip, the phone, behind this screen ---------- */
.spx .rx { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: start; } /* on the page's grid: the trip on 3 columns, the phone on 4, behind it on 5 */
.spx .rx-trip { grid-column: span 3; } .spx .rx-phonecol { grid-column: span 4; } .spx .rx-behind { grid-column: span 5; }
.spx .rx-k { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
/* the trip: each step a stop at its time, the line solid where the trip has been and dotted ahead */
.spx .rx-trip { padding-top: 6px; }
.spx .rx-od { margin: 4px 0 24px; font-family: var(--display); font-size: 20px; line-height: 1.25; color: var(--ink); }
.spx .rx-trip ol { list-style: none; margin: 0; padding: 0; }
.spx .rx-stop > button { position: relative; display: grid; grid-template-columns: 42px 18px minmax(0, 1fr); column-gap: 12px; align-items: start; width: 100%; padding: 0 0 20px; border: 0; background: none; text-align: left; cursor: pointer; }
/* the list is drawn once (ride.js) and a step only moves its classes, so everything here eases into place: the
   purple line grows over the dots to the stop reached, the stop's words open as the last one's close */
.spx .rx-stop { position: relative; transition: padding-bottom .45s var(--ease-out), opacity .3s; }
.spx .rx-stop:not(:last-child)::before { content: ''; position: absolute; left: 61.5px; top: 20px; bottom: 0; width: 3px; background: radial-gradient(circle, #B4B9CB 1.2px, transparent 1.6px) 0 1px/3px 7px repeat-y; }
.spx .rx-stop:not(:last-child)::after { content: ''; position: absolute; left: 62px; top: 20px; bottom: 0; width: 2px; background: var(--brand); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease-out); }
.spx .rx-stop.done::after { transform: none; }
.spx .rx-stop time { padding-top: 1px; font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; color: #70768e; transition: color .2s; }
.spx .rx-stop i { position: relative; z-index: 1; width: 14px; height: 14px; margin: 2px auto 0; border: 2.5px solid #C9CCDA; border-radius: 50%; background: #fff; transition: background .25s, border-color .25s, box-shadow .25s; }
.spx .rx-stop b { display: block; font-size: 15px; font-weight: 600; color: #70768e; transition: color .2s; }
.spx .rx-stop small { display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0; font-size: 12px; line-height: 1.35; color: var(--ink-2); transition: grid-template-rows .45s var(--ease-out), margin-top .45s var(--ease-out), opacity .2s; } /* the line of the stop on show: darker than the other stops, so it reads as its own */
.spx .rx-stop small > span { min-height: 0; overflow: hidden; }
.spx .rx-stop.done i { border-color: var(--brand); background: var(--brand); }
.spx .rx-stop.on i { border-color: var(--brand); box-shadow: 0 0 0 5px rgba(98, 68, 187, .16); }
.spx .rx-stop.on small { grid-template-rows: 1fr; margin-top: 2px; opacity: 1; transition-delay: 0s, 0s, .12s; } /* the one on show says what it is, as in 02 and 03 */
.spx .rx-stop.on b { color: var(--ink); } /* one weight and size for every name: the stop on show by its colour, ring and room */
.spx .rx-stop:has(+ .rx-stop.on) { padding-bottom: 8px; } .spx .rx-stop.on { padding-bottom: 12px; }
.spx .rx-stop.on time { font-weight: 600; color: var(--req); }
.spx .rx-stop.nr { opacity: .45; }
.spx .rx-stop.nr i { border-style: dashed; }
.spx .rx-stop > button:hover b { color: var(--ink); }
.spx .rx-stop > button:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 8px; }
/* the phone */
.spx .rx-phonecol { display: flex; flex-direction: column; align-items: center; gap: 22px; }
/* behind this screen: the systems of the step in a row, the message running between them, then the words */
.spx .rx-behind { padding: 6px 0 0; } /* on the page itself, as 02 and 03's pictures: no card */
.spx .rx-bh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spx .rx-replay { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.spx .rx-replay:hover { border-color: var(--brand); color: var(--req); }
.spx .rx-title { margin: 6px 0 22px; font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1.15; color: var(--ink); }
.spx .rx-chain { position: relative; display: flex; justify-content: space-between; margin: 0 0 24px; padding: 16px 0 18px; border-radius: 16px; background: #F7F6FC; }
.spx .rx-line { position: absolute; left: 12%; right: 12%; top: 40px; border-top: 2px dashed #CFC8EC; }
.spx .rx-lit { position: absolute; top: 39px; left: 0; width: 0; height: 3px; border-radius: 2px; background: var(--brand); transition: left .35s, width .35s, background .3s; }
.spx .rx-lit.bad { background: var(--bad); }
.spx .rx-node { position: relative; z-index: 2; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 0 6px; border: 0; background: none; text-align: center; cursor: pointer; }
.spx .rx-ic { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid #CFC8EC; border-radius: 50%; background: #fff; color: var(--req); transition: border-color .2s, box-shadow .2s; }
.spx .rx-node b { margin-top: 9px; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.spx .rx-node small { margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.spx .rx-node:hover .rx-ic, .spx .rx-node.sel .rx-ic { border-color: var(--brand); }
.spx .rx-node.sel .rx-ic { box-shadow: 0 0 0 4px rgba(98, 68, 187, .16); }
.spx .rx-node.hot .rx-ic { animation: rxHot .7s ease-out; }
@keyframes rxHot { 0% { box-shadow: 0 0 0 0 rgba(98, 68, 187, .45); border-color: var(--brand); } 100% { box-shadow: 0 0 0 12px rgba(98, 68, 187, 0); } }
.spx .rx-node.bad .rx-ic { border-color: var(--bad); background: #FDECEF; color: var(--bad); }
.spx .rx-node:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 12px; }
.spx .rx-msg { position: absolute; top: 40px; left: 0; z-index: 3; opacity: 0; pointer-events: none; transition: opacity .2s; }
.spx .rx-msg.on { opacity: 1; }
.spx .rx-msg i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(98, 68, 187, .2); }
.spx .rx-msg em { position: absolute; bottom: 14px; left: 0; transform: translateX(-50%); padding: 3px 8px; border: 1px solid currentColor; border-radius: 8px; background: #fff; font-size: 12px; font-style: normal; font-weight: 600; white-space: nowrap; color: var(--req); }
.spx .rx-msg.bad i { background: var(--bad); box-shadow: 0 0 0 5px rgba(211, 41, 74, .18); }
.spx .rx-msg.bad em { color: var(--bad); }
.spx .rx-text { transition: opacity .18s; }
.spx .rx-text.fade { opacity: 0; }
.spx .rx-sum { margin: 0 0 16px; max-width: 62ch; font-size: 18px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.spx .rx-what { list-style: none; margin: 0 0 18px; padding: 0; }
.spx .rx-what li { position: relative; margin: 0 0 9px; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.spx .rx-what li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.spx .rx-note { padding: 12px 15px; border-radius: 14px; background: #F7F6FC; }
.spx .rx-note b { font-size: 13px; font-weight: 600; color: var(--ink); }
.spx .rx-note p { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.spx .rx-nr { margin: 0 0 14px; padding: 10px 13px; border-radius: 12px; background: #FDECEF; font-size: 14px; line-height: 1.45; color: #A3213B; }
.spx .rx-zone { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.spx .rx-uses { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; }
.spx .rx-uses span { margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.spx .rx-uses button { padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.spx .rx-uses button:hover { border-color: var(--brand); color: var(--req); }
.spx .rx-back { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--req); cursor: pointer; }
.spx [data-ref="leader"] { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.spx [data-ref="leader"] path { fill: none; stroke: var(--req); stroke-width: 2; stroke-dasharray: 6 6; filter: drop-shadow(0 0 6px var(--req-glow)); }
.spx [data-ref="leader"] circle { fill: var(--req); }
/* landscape tablets: the phone beside, the trip across the top of the other column, its stops in a row */
@media (max-width: 1180px) {
  .spx .rx { row-gap: 0; grid-template-rows: auto 1fr; } /* the phone on 5 columns, the trip and behind it on the other 7, right under it */
  .spx .rx-phonecol { grid-column: 1 / span 5; grid-row: 1 / span 2; } .spx .rx-trip { grid-column: 6 / -1; grid-row: 1; padding: 0 0 18px; } .spx .rx-behind { grid-column: 6 / -1; grid-row: 2; }
  .spx .rx-od { margin-bottom: 14px; }
  .spx .rx-trip ol { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .spx .rx-stop > button { grid-template-columns: 1fr; row-gap: 5px; padding: 0 4px 0 0; }
  .spx .rx-stop:not(:last-child)::before { left: 14px; right: -10px; top: 28px; bottom: auto; width: auto; height: 3px; background: radial-gradient(circle, #B4B9CB 1.2px, transparent 1.6px) 1px 0/7px 3px repeat-x; }
  .spx .rx-stop:not(:last-child)::after { left: 14px; right: -10px; top: 28px; bottom: auto; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
  .spx .rx-stop.done::after { transform: none; }
  .spx .rx-stop i { margin: 0; }
  .spx .rx-stop b, .spx .rx-stop.on b { font-size: 13px; }
  .spx .rx-stop small { display: none; }
}
/* phones and portrait tablets: the film instead (ride.js, "film") */
.spx .film { display: none; }
@media (max-width: 980px) {
  .spx .rx, .spx [data-ref="leader"] { display: none!important; } .spx .film { display: flex; }
}

/* ---------- 3. the film ---------- */
.spx .film { flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto; padding-bottom: 12px; touch-action: pan-y pinch-zoom; }
.spx .film__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.spx .film__top { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.spx .film__bars { flex: 1; display: flex; gap: 4px; }
/* each segment is a 3px bar inside a taller button, so it is easy to hit; the current one fills while it plays */
.spx .film__bars button { flex: 1; display: flex; align-items: center; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.spx .film__bars i { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: var(--line-2); transition: height .2s; }
.spx .film__bars i::after { content: ''; position: absolute; inset: 0; background: var(--brand); transform: scaleX(var(--p, 0)); transform-origin: left; }
.spx .film__bars button[aria-current] i { background: color-mix(in srgb, var(--brand) 30%, var(--line-2)); }
.spx .film__bars button:hover i { height: 5px; }
/* the picture: the demo's own phone, small, over the systems behind the step. Both are the real thing, shown as a
   still (inert); a tap or a swipe on them moves the film */
.spx .film__art { display: flex; flex-direction: column; align-items: center; gap: 18px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.spx .film__art .rx-phonecol { gap: 0; }
.spx .film__art .pin { display: none; }
.spx .film__art .rx-chain { width: 100%; min-height: 105px; margin: 0; padding: 14px 0; } /* room for a two-line name, so the words below stay put from step to step */
.spx .film__art .rx-ic { width: 40px; height: 40px; }
.spx .film__art .rx-line { top: 34px; } .spx .film__art .rx-lit { top: 33px; }
.spx .film__art .rx-node b { margin-top: 7px; font-size: 12px; }
.spx .film__art .rx-node small { display: none; }
.spx .film__cap > b { display: block; margin-bottom: 6px; font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1.15; color: var(--ink); }
/* room for three lines, so the controls below don't jump between steps */
.spx .film__cap > p { margin: 0; min-height: 4.5em; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }


/* ---------- 4. the City Transit app (.ct-*) ---------- */
.spx .screen { --ct: #6244bb; --ct-ink: #4b3196; --ct-soft: #f1edfc; --a-bg: #F4F5F8; }
.spx .ct-col { display: flex; flex-direction: column; flex: 1; position: relative; }
.spx .ct-k { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--a-muted); }
.spx .ct-k--in { margin: 14px 20px 7px; }
.spx .ct-top { display: flex; align-items: center; gap: 10px; padding: 4px 18px 4px; }
.spx .ct-top b { display: block; font-size: 15px; font-weight: 600; }
.spx .ct-top span { font-size: 12px; color: var(--a-muted); }
.spx .ct-logo { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--ct); }
.spx .ct-logo svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spx .ct-h { margin: 8px 20px 10px; font-family: var(--display); font-size: 28px; font-weight: 400; letter-spacing: -.01em; color: var(--a-ink); }
.spx .ct-search { position: relative; margin: 0 16px; border-radius: 16px; background: var(--a-card); box-shadow: 0 1px 2px rgba(13, 14, 22, .05); }
.spx .ct-search::before { content: ''; position: absolute; left: 21px; top: 28px; bottom: 28px; border-left: 2px dotted #C9CCDA; }
.spx .ct-from, .spx .ct-to { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px 0 16px; font-size: 14px; }
.spx .ct-from { border-bottom: 1px solid var(--a-line); color: var(--a-muted); }
.spx .ct-from i, .spx .ct-to i { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2.5px solid var(--a-muted); background: #fff; }
.spx .ct-to i { border-color: var(--ct); background: var(--ct); }
.spx .ct-from em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 600; color: var(--ct); }
.spx .ct-to span { font-weight: 600; color: var(--a-ink); }
.spx .ct-to span:empty::before { content: 'Where to?'; font-weight: 400; color: var(--a-muted); }
.spx .ct-to u { width: 2px; height: 20px; margin-left: -10px; background: var(--ct); opacity: 0; }
.spx .ct-to u.on { opacity: 1; animation: ctCaret 1s steps(1) infinite; }
@keyframes ctCaret { 50% { opacity: 0; } }
.spx .ct-sugg { position: relative; display: flex; flex-direction: column; margin: 10px 16px 0; border-radius: 16px; background: var(--a-card); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.spx .ct-sugg.on { opacity: 1; transform: none; pointer-events: auto; }
.spx .ct-sugg button:not(.pin) { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 16px; }
.spx .ct-sugg button:not(.pin) + button:not(.pin) { border-top: 1px solid var(--a-line); border-radius: 0; }
.spx .ct-sugg button:not(.pin):hover { background: #F7F7FB; }
.spx .ct-sugg b { display: block; font-size: 14px; font-weight: 600; }
.spx .ct-sugg small { font-size: 12px; color: var(--a-muted); }
.spx .ct-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; background: var(--ct-soft); color: var(--ct-ink); }
.spx .ct-quick { margin: 12px 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spx .ct-quick .ct-k { grid-column: 1/-1; margin: 0 4px 2px; }
.spx .ct-qt { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: 14px; background: var(--a-card); }
.spx .ct-qt b { font-size: 13px; font-weight: 600; }
.spx .ct-qt small { font-size: 11px; color: var(--a-muted); line-height: 1.3; }
.spx .ct-qt em { margin-top: 4px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--ct-ink); }
.spx .cta { background: var(--ct); }
.spx .cta:hover { background: var(--ct-ink); }
.spx .cta:disabled { background: var(--ct); }
.spx .cta.ghost { background: var(--a-card); color: var(--a-ink); }
.spx .ct-nav { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px 4px 8px; }
.spx .ct-nav p { margin: 0; font-size: 16px; font-weight: 600; }
.spx .ct-back { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; cursor: pointer; color: var(--a-ink); }
.spx .ct-back:hover { background: #E6E8EF; }
.spx .ct-od { padding: 6px 20px 10px; }
.spx .ct-od b { display: block; font-size: 15px; font-weight: 600; }
.spx .ct-od span { font-size: 12px; color: var(--a-muted); }
.spx .ct-mapw { position: relative; margin: 0 16px; }
.spx .ct-map { display: block; width: 100%; height: auto; }
.spx .ct-map text { font-family: var(--body); font-size: 9.5px; font-weight: 600; fill: var(--a-ink); }
.spx .ct-line { stroke-dasharray: 300; animation: ctLine 1.2s .2s cubic-bezier(.4, 0, .2, 1) both; } /* drawn in, from Central; with reduced motion it is simply there */
.spx .view:not(.active) .ct-line { animation: none; }
@keyframes ctLine { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
.spx .ct-chips { display: flex; gap: 6px; padding: 12px 16px 8px; }
.spx .ct-chips span { padding: 6px 11px; border-radius: 99px; background: var(--a-card); font-size: 12px; font-weight: 600; color: var(--a-muted); }
.spx .ct-chips .on { background: var(--ct); color: #fff; }
.spx .ct-route { position: relative; display: flex; flex-direction: column; gap: 7px; margin: 0 16px 8px; padding: 12px 14px; border: 1.5px solid transparent; border-radius: 16px; background: var(--a-card); text-align: left; cursor: pointer; transition: border-color .2s; }
.spx .ct-route:hover { border-color: #C9CCDA; }
.spx .ct-route.on { border-color: var(--ct); background: #FBFAFF; }
.spx .ct-rt { display: flex; align-items: center; gap: 8px; }
.spx .ct-rt b { font-family: var(--display); font-size: 24px; font-weight: 400; line-height: 1; }
.spx .ct-rt b small { font-family: var(--body); font-size: 12px; color: var(--a-muted); }
.spx .ct-rt strong { margin-left: auto; font-size: 15px; font-weight: 600; }
.spx .ct-tag { padding: 3px 8px; border-radius: 7px; background: var(--ct-soft); font-style: normal; font-size: 11px; font-weight: 600; color: var(--ct-ink); }
.spx .ct-tag--b { background: #E8EEFB; color: #2D5BD7; }
.spx .ct-legs { display: flex; align-items: center; gap: 5px; color: var(--a-muted); }
.spx .ct-legs small { margin-left: -3px; font-size: 11px; font-weight: 600; }
.spx .ct-legs i { font-style: normal; color: #C9CCDA; }
.spx .ct-mode { display: grid; place-items: center; margin-right: -1px; color: var(--a-ink); } /* what runs the leg, before its line's badge */
/* the app's tabs: Plan, Tickets, Account, under every screen. The screens end above them; Apple Pay's sheet, as on a
   phone, comes up over them. The tab lit is the screen's: Tickets once there is a ticket, Plan before */
.spx .view { bottom: 58px; }
.spx .view:has(.ct-sheet) { bottom: 0; z-index: 6; }
.spx .ct-tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); height: 58px; padding: 0 14px 6px; border-top: 1px solid var(--a-line); background: #fff; }
.spx .ct-tabs span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 600; color: #8b90a3; transition: color .2s; }
.spx .ct-tabs span:first-child, .spx .screen:has([data-ref="v-ticket"].active) .ct-tabs span:nth-child(2) { color: var(--ct); }
.spx .screen:has([data-ref="v-ticket"].active) .ct-tabs span:first-child { color: #8b90a3; }
.spx .ct-badge { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--c); font-size: 11px; font-weight: 600; color: #fff; }
.spx .ct-rs { font-size: 12px; color: var(--a-muted); }
.spx .ct-tl { list-style: none; margin: 4px 16px 0; padding: 6px 14px; border-radius: 16px; background: var(--a-card); }
.spx .ct-tl li { position: relative; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; }
.spx .ct-tl li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 34px; bottom: -6px; border-left: 2px dotted #C9CCDA; }
.spx .ct-tl li.ct-bus::after { border-left: 3px solid var(--ct); left: 13.5px; }
.spx .ct-tli { display: grid; place-items: center; width: 30px; height: 24px; color: var(--a-muted); }
.spx .ct-tl b { display: block; font-size: 13px; font-weight: 600; }
.spx .ct-tl small { font-size: 12px; color: var(--a-muted); }
.spx .ct-tl small em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 600; color: #0B7F58; }
.spx .ct-tl small em i { width: 6px; height: 6px; border-radius: 50%; background: #12B886; }
.spx .ct-tl time { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.spx .ct-pick { position: relative; margin: 14px 16px 0; }
.spx .ct-pick .ct-k { margin: 0 4px 7px; }
.spx .ct-fare { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--ct); border-radius: 16px; background: #FBFAFF; }
.spx .ct-fare b { display: block; font-size: 14px; font-weight: 600; }
.spx .ct-fare small { font-size: 12px; color: var(--a-muted); }
.spx .ct-fare em { margin-left: auto; font-style: normal; font-size: 15px; font-weight: 600; }
.spx .ct-sum { display: flex; align-items: center; gap: 10px; margin: 6px 16px 0; padding: 14px 16px; border-radius: 16px; background: var(--a-card); }
.spx .ct-sum b { display: block; font-size: 16px; font-weight: 600; }
.spx .ct-sum small { font-size: 12px; color: var(--a-muted); }
.spx .ct-sum em { margin-left: auto; font-style: normal; font-size: 18px; font-weight: 600; }
.spx .ct-opts { position: relative; margin: 0 16px; border-radius: 16px; background: var(--a-card); }
.spx .ct-radio { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.spx .ct-radio + .ct-radio { border-top: 1px solid var(--a-line); }
.spx .ct-radio i { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid #C9CCDA; }
.spx .ct-radio.on i { border: 5.5px solid var(--ct); }
.spx .ct-radio b { display: block; font-size: 14px; font-weight: 600; }
.spx .ct-radio small { font-size: 11px; color: var(--a-muted); }
.spx .ct-guest { margin: 12px 20px 0; font-size: 12px; color: var(--a-muted); }
.spx .cta.ct-apay { background: var(--ink); }
.spx .cta.ct-apay:hover { background: #262838; }
.spx .cta.ct-apay:disabled { opacity: .3; background: var(--ink); }
/* the Apple Pay sheet, up from the bottom of the screen over the checkout */
.spx .ct-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 20px 30px; border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -20px 50px -18px rgba(13, 14, 22, .45); animation: ctSheet .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ctSheet { from { transform: translateY(100%); } }
.spx .ct-sh { display: grid; grid-template-columns: 1fr auto; width: 100%; padding-bottom: 12px; border-bottom: 1px solid var(--a-line); }
.spx .ct-sh b { font-size: 14px; } .spx .ct-sh span { grid-row: 2; font-size: 12px; color: var(--a-muted); } .spx .ct-sh em { grid-row: span 2; align-self: center; font-style: normal; font-size: 18px; font-weight: 600; }
.spx .ct-face { display: grid; place-items: center; width: 84px; height: 84px; color: #2D5BD7; }
.spx .ct-face .spin { width: 46px; height: 46px; border-width: 4px; }
.spx .ct-sheet p { margin: 0; font-size: 13px; font-weight: 600; }
/* the ticket */
.spx .ct-tk { display: flex; flex-direction: column; margin: 6px 16px 0; padding: 16px 16px 18px; border-radius: 20px; background: var(--a-card); box-shadow: 0 1px 2px rgba(13, 14, 22, .05); }
.spx .ct-tkh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.spx .ct-op { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.spx .ct-op .ct-logo { width: 24px; height: 24px; border-radius: 7px; }
.spx .ct-op .ct-logo svg { width: 14px; height: 14px; }
.spx .ct-pill { padding: 3px 9px; border-radius: 99px; background: #ECEDF2; font-size: 11px; font-weight: 600; color: var(--a-muted); }
.spx .ct-tk.ready .ct-pill { background: #FFF0D2; color: #9A6100; }
.spx .ct-tk.active .ct-pill { background: #E7F7EF; color: #0B7F58; }
.spx .ct-tk > b { font-family: var(--display); font-size: 26px; font-weight: 400; }
.spx .ct-tk > small { font-size: 12px; color: var(--a-muted); }
.spx .ct-tkb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; padding: 22px 0 6px; border-top: 1px dashed var(--a-line); text-align: center; }
.spx .ct-tkb p { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.spx .ct-tkb .spin { width: 46px; height: 46px; border-width: 4px; border-top-color: var(--ct); }
.spx .ct-seal { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ct-soft); color: var(--ct-ink); }
.spx .ct-mut { font-size: 12px; color: var(--a-muted); }
.spx .ct-qrw { position: relative; align-self: center; margin-top: 16px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--a-line); }
.spx .ct-qr { display: block; width: 148px; height: 148px; }
.spx .ct-qr rect { fill: var(--a-ink); }
.spx .ct-valid { margin: 14px 0 2px; text-align: center; font-family: var(--display); font-size: 22px; color: #0B7F58; }
.spx .ct-tk.active .ct-mut { text-align: center; }
.spx .r-ico.wait { background: #FFF0D2; color: #B07A00; }
.spx .r-ico.wait .spin { width: 46px; height: 46px; border-width: 4px; border-top-color: #B07A00; }

.spx .r-ico.wait path { stroke-dasharray: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .spx .r-ico path { stroke-dashoffset: 0; }
} /* the page stops every animation then, so the tick is drawn whole */
/* the passenger's own choice on the checkout screen: the rows are buttons there */
.spx button.ct-radio { width: 100%; border: 0; border-radius: 0; background: none; text-align: left; cursor: pointer; color: var(--a-ink); }
.spx button.ct-radio:first-child { border-radius: 16px 16px 0 0; } .spx button.ct-radio:last-of-type { border-radius: 0 0 16px 16px; }
.spx button.ct-radio:hover { background: #F7F7FB; }
.spx button.ct-radio:hover i { border-color: #9AA1B4; } .spx button.ct-radio.on:hover i { border-color: var(--ct); }
/* Add to Wallet, under the active ticket: black, as the wallets' own buttons are, then a quiet "added" */
.spx .ct-wal { position: relative; margin: 12px 16px 0; }
.spx .ct-walb { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border: 0; border-radius: 12px; background: var(--ink); font-size: 14px; font-weight: 600; color: #fff; cursor: pointer; transition: background .2s, color .2s; }
.spx .ct-walb:hover { background: #262838; }
.spx .ct-walb.on { background: #E7F7EF; color: #0B7F58; cursor: default; }
/* the step's details, for whoever wants them: closed until opened, then open from step to step */
.spx .rx-more { margin-top: 2px; border-top: 1px solid var(--line); }
.spx .rx-more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--req); cursor: pointer; list-style: none; }
.spx .rx-more summary::-webkit-details-marker { display: none; }
.spx .rx-more summary::after { content: '+'; font-size: 18px; font-weight: 400; line-height: 1; }
.spx .rx-more[open] summary::after { content: '\2212'; }
.spx .rx-more[open] summary { margin-bottom: 8px; }
.spx .ct-map .b { fill: #fff; font-size: 8px; font-weight: 600; } /* a line's badge on the map */
.spx .ct-map .m { fill: var(--a-muted); font-size: 8px; font-weight: 600; }
/* what if: where a system's answer can take the trip another way, the question stands under the step's words, beside
   the systems that answer it. One line, as a sentence: the answers are words, the one played underlined */
.spx .rx-fork { margin: -4px 0 18px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.spx .rx-fork > span { margin-right: 2px; }
.spx .rx-fork button { display: inline; padding: 0; white-space: nowrap; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; transition: color .15s, text-decoration-color .15s; }
.spx .rx-fork button:not(:last-child)::after { content: "·"; display: inline-block; margin: 0 6px; color: var(--faint); text-decoration: none; } /* between the answers, at the end of a line when they wrap, never at its start */
.spx .rx-fork button:hover { color: var(--ink); text-decoration-color: var(--line-2); }
.spx .rx-fork button.on { color: var(--req); text-decoration-color: var(--brand); } /* one weight for every answer, so the line never reflows as the answer changes */
/* the way on, once the reader has let a step be (ride.js, nudgeIn): the dotted line to the next stop flows towards
   it and that stop breathes, as in 02 and 03; in the phone, what the passenger would press next breathes too */
.spx .rx-trip.is-nudge .rx-stop.on::before { animation: rxFlow 1.1s linear infinite; }
.spx .rx-trip.is-nudge .rx-stop.on + .rx-stop i { border-color: var(--brand); animation: rxBreathe 2.4s ease-in-out infinite; }
.spx .rx-trip.is-nudge .rx-stop.on + .rx-stop b { color: var(--ink-2); }
.spx .cta.is-nudge, .spx .ct-route.is-nudge { animation: rxPress 2.4s ease-in-out infinite; }
@keyframes rxFlow { from { background-position: 0 1px; } to { background-position: 0 8px; } }
@keyframes rxBreathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(98, 68, 187, 0); } 50% { box-shadow: 0 0 0 6px rgba(98, 68, 187, .16); } }
@keyframes rxPress { 0%, 100% { box-shadow: 0 0 0 0 rgba(98, 68, 187, 0); } 50% { box-shadow: 0 0 0 6px rgba(98, 68, 187, .2); } }
@keyframes rxFlowX { from { background-position: 1px 0; } to { background-position: 8px 0; } }
@media (max-width: 1180px) { .spx .rx-trip.is-nudge .rx-stop.on::before { animation-name: rxFlowX; } } /* the stops in a row: the dots flow sideways */
@media (max-width: 1180px) { .spx .rx-stop.on, .spx .rx-stop:has(+ .rx-stop.on) { padding-bottom: 0; } } /* the stops in a row: no room under them */
