/* Riders page: scroll-driven journey, locked fare, ride packs, planned safety. Pairs with riders.js. */
.journey-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.journey-art { position: sticky; top: 90px; }
.journey-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.j-road { fill: none; stroke: #2A2A2A; stroke-width: 6; stroke-linecap: round; }
.j-draw { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.j-node { fill: #000; stroke: #3F3F3F; stroke-width: 2; transition: fill .3s ease, stroke .3s ease; }
.j-node.done { fill: #fff; stroke: #fff; }
.j-label { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; fill: #A8A8A8; }
.j-car rect.b { fill: #fff; } .j-car rect.w { fill: #000; opacity: .6; } .j-car circle.h { fill: #fff; opacity: .25; }

.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 5vw, 56px); counter-reset: jstep; }
.journey-steps li { position: relative; padding: 28px 28px 28px 28px; border: 1px solid var(--rule); border-radius: var(--radius-lg, 18px); background: var(--bg-card); min-height: 150px;
  transition: border-color .3s ease, background .3s ease, opacity .3s ease; opacity: .55; }
.journey-steps li.active { border-color: #fff; opacity: 1; background: var(--bg-elevated, #161616); }
.journey-steps li::before { counter-increment: jstep; content: "0" counter(jstep); display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-muted); margin-bottom: 10px; }
.journey-steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.015em; margin: 0 0 8px; }
.journey-steps p { color: var(--ink-mid); margin: 0; max-width: 46ch; }
.j-note { margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }

@media (max-width: 860px) {
  .journey-grid { grid-template-columns: 1fr; }
  .journey-art { display: none; }
  .journey-steps li { opacity: 1; }
}

/* shared two-column blocks */
.rv .rv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.rv .rv-grid.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .rv .rv-grid { grid-template-columns: 1fr; } .rv .rv-grid.reverse > :first-child { order: 0; } }
.rv h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -.02em; margin: 14px 0 18px; }
.rv h2 em { font-style: italic; }
.rv-lead { color: var(--ink-mid); font-size: 1.1rem; max-width: 46ch; }
.rv-list { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 10px; }
.rv-list li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-soft); }
.rv-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none; transform: translateY(-2px); }
.rv-note { color: var(--ink-muted); font-size: 14px; max-width: 52ch; }
.rv-card { position: relative; background: var(--bg-card); border: 1px solid var(--rule); border-radius: var(--radius-lg, 18px); padding: 28px; }
.rv-tag { position: absolute; top: 14px; right: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); border: 1px solid #3F3F3F; border-radius: 999px; padding: 3px 9px; }

/* locked fare card */
.lock-fig { display: grid; place-items: center; padding: 18px 0 8px; }
.lock-fig svg { width: 170px; height: 170px; overflow: visible; }
.lock-ring { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.lock-track { fill: none; stroke: #2A2A2A; stroke-width: 3; }
.lock-num { font-family: "Instrument Serif", serif; font-size: 40px; fill: #fff; text-anchor: middle; }
.lock-shackle { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.lock-body { fill: #fff; }
.rv-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.rv-rows div { border: 1px solid var(--rule); border-radius: 12px; padding: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.rv-rows b { display: block; margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -.01em; text-transform: none; color: #fff; }

/* ride pack card */
.pack-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; }
.pack-head b { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.01em; }
.pack-badge2 { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #000; background: #fff; border-radius: 999px; padding: 3px 10px; }
.pack-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin: 22px 0 10px; }
.pack-dots i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid #fff; }
.pack-dots i.used { background: #fff; }
.pack-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.pack-roll { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; color: var(--ink-soft); font-size: 14px; }
.pack-roll svg { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* safety cards */
.safe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.safe-card { border: 1px solid var(--rule); border-radius: var(--radius-lg, 18px); background: var(--bg-card); padding: 26px; }
.safe-card svg { width: 44px; height: 44px; margin-bottom: 14px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.safe-card h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 8px; }
.safe-card p { color: var(--ink-mid); margin: 0 0 14px; }
.safe-card .rv-tag { position: static; display: inline-block; }

/* one-time reveal animations (only when motion is allowed; final state is the default) */
@media (prefers-reduced-motion: no-preference) {
  html.js-riders .lock-fig:not(.in) .lock-ring { stroke-dashoffset: 1; }
  html.js-riders .lock-fig:not(.in) .lock-shackle { transform: translateY(-9px); }
  .lock-fig.in .lock-ring { animation: ringDraw 1.1s ease both; }
  .lock-fig.in .lock-shackle { animation: shackleDown .5s .9s cubic-bezier(.3,1.4,.5,1) both; }
  @keyframes ringDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes shackleDown { from { transform: translateY(-9px); } to { transform: none; } }

  html.js-riders .pack-card:not(.in) .pack-dots i.used { background: transparent; }
  html.js-riders .pack-card:not(.in) .pack-roll { opacity: 0; transform: translateY(8px); }
  .pack-card.in .pack-dots i.used { animation: dotFill .28s var(--ease-out, cubic-bezier(.23,1,.32,1)) both; }
  .pack-card.in .pack-dots i.left { animation: dotNudge .6s 1.1s var(--ease-out, cubic-bezier(.23,1,.32,1)) both; }
  .pack-card.in .pack-roll { animation: rowIn .45s 1.5s var(--ease-out, cubic-bezier(.23,1,.32,1)) both; }
  .pack-card.in .pack-dots i:nth-child(1){animation-delay:.05s} .pack-card.in .pack-dots i:nth-child(2){animation-delay:.12s}
  .pack-card.in .pack-dots i:nth-child(3){animation-delay:.19s} .pack-card.in .pack-dots i:nth-child(4){animation-delay:.26s}
  .pack-card.in .pack-dots i:nth-child(5){animation-delay:.33s} .pack-card.in .pack-dots i:nth-child(6){animation-delay:.40s}
  .pack-card.in .pack-dots i:nth-child(7){animation-delay:.47s}
  @keyframes dotFill { from { background: transparent; transform: scale(.85); } to { background: #fff; transform: none; } }
  @keyframes dotNudge { 0% { transform: none; } 40% { transform: translateY(-4px); } 100% { transform: none; } }
  @keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------- How to request a tab: animated steps ---------- */
.rq { padding: clamp(64px, 9vw, 110px) 0; }
.rq-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .rq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rq-grid { grid-template-columns: 1fr; } }
.rq-step h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -.01em; margin: 18px 0 6px; }
.rq-step p { font-size: 14px; line-height: 1.5; color: var(--ink-mid); margin: 0; }
.rq-art { position: relative; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg-card); padding: 18px 14px 30px; }
.rq-art > svg { width: 100%; height: auto; display: block; }
.rq-l { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rq-dim { stroke: #3F3F3F; }
.rq-fare { font-family: var(--serif); font-size: 34px; fill: #fff; }
.rq-sub { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; fill: #A8A8A8; }
.rq-tiptxt { fill: #fff; }
.rq-car { transform: translate(170px, 86px); }
.rq-stars path { fill: #fff; }
.rq-tile { position: absolute; left: 14px; bottom: -22px; width: 44px; height: 44px; border-radius: 10px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg); }
.rq-tile svg { width: 22px; height: 22px; fill: none; stroke: #000; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rq-pin, .rq-lock, .rq-shackle, .rq-field { transform-box: fill-box; transform-origin: center; }

/* every box on the page rises in once */
@media (prefers-reduced-motion: no-preference) {
  html.js-riders .rbox:not(.in) { opacity: 0; transform: translateY(14px); }
  html.js-riders .rbox { transition: opacity .5s var(--ease-out, cubic-bezier(.23,1,.32,1)), transform .5s var(--ease-out, cubic-bezier(.23,1,.32,1)); }
  html.js-riders .rbox.in { opacity: 1; }

  html.js-riders .rq-step:not(.in) .rq-type { stroke-dashoffset: 1; }
  html.js-riders .rq-step:not(.in) .rq-pin { transform: translateY(-18px); opacity: 0; }
  .rq-step.in .rq-type { stroke-dasharray: 1; animation: rqType .8s .1s var(--ease-out, cubic-bezier(.23,1,.32,1)) both; }
  .rq-step.in .rq-pin { animation: rqDrop .55s .7s var(--ease-out, cubic-bezier(.23,1,.32,1)) both; }
  @keyframes rqType { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes rqDrop { from { transform: translateY(-18px); opacity: 0; } to { transform: none; opacity: 1; } }

  html.js-riders .rq-step:not(.in) .rq-shackle { transform: translateY(-9px); }
  html.js-riders .rq-step:not(.in) .rq-fare { opacity: 0; }
  .rq-step.in .rq-fare { animation: rqFade .5s .1s var(--ease-out, cubic-bezier(.23,1,.32,1)) both; }
  .rq-step.in .rq-shackle { animation: rqShackle .45s .8s var(--ease-out, cubic-bezier(.23,1,.32,1)) both; }
  @keyframes rqFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes rqShackle { from { transform: translateY(-9px); } to { transform: none; } }

  html.js-riders .rq-step:not(.in) .rq-car { transform: translate(24px, 100px); }
  .rq-step.in .rq-car { animation: rqCar 1.8s .15s var(--ease-in-out, cubic-bezier(.77,0,.175,1)) both; }
  @keyframes rqCar { from { transform: translate(24px, 100px); } to { transform: translate(170px, 86px); } }

  html.js-riders .rq-step:not(.in) .rq-stars path { fill: transparent; }
  html.js-riders .rq-step:not(.in) .rq-tip, html.js-riders .rq-step:not(.in) .rq-tiptxt { opacity: 0; }
  .rq-step.in .rq-stars path { animation: rqStar .3s var(--ease-out, cubic-bezier(.23,1,.32,1)) both; }
  .rq-step.in .rq-stars path:nth-child(1) { animation-delay: .15s; } .rq-step.in .rq-stars path:nth-child(2) { animation-delay: .3s; }
  .rq-step.in .rq-stars path:nth-child(3) { animation-delay: .45s; } .rq-step.in .rq-stars path:nth-child(4) { animation-delay: .6s; }
  .rq-step.in .rq-tip, .rq-step.in .rq-tiptxt { animation: rqFade .4s .95s var(--ease-out, cubic-bezier(.23,1,.32,1)) both; }
  @keyframes rqStar { from { fill: transparent; } to { fill: #fff; } }

  /* rows and fills inside the feature demo boxes */
  html.js-riders .feature:not(.in) .dp-row, html.js-riders .feature:not(.in) .demo-tier-row { opacity: 0; transform: translateX(-10px); }
  .feature.in .dp-row, .feature.in .demo-tier-row { animation: rowIn .45s var(--ease-out, cubic-bezier(.23,1,.32,1)) both; }
  .feature.in .dp-row:nth-child(2), .feature.in .demo-tier-row:nth-child(2) { animation-delay: .15s; }
  .feature.in .dp-row:nth-child(3), .feature.in .demo-tier-row:nth-child(3) { animation-delay: .3s; }
  .feature.in .dp-row:nth-child(4), .feature.in .demo-tier-row:nth-child(4) { animation-delay: .45s; }
}
@media (hover: hover) and (pointer: fine) { .rq-art { transition: border-color .2s ease; } .rq-step:hover .rq-art { border-color: #3F3F3F; } }
