/* Join pages (couriers and businesses): an animated street scene with a
   registration window laid over part of it. Builds on legal.css tokens. */
.join-top { position: absolute; inset: 0 0 auto 0; z-index: 4; background: transparent; border-bottom: 0; backdrop-filter: none; }
.join-top .brand { color: #0b1f3a; }
.join-top .site { color: #0b1f3a; opacity: 0.7; }

.hero { position: relative; min-height: 600px; overflow: hidden; background: #d9eefb; isolation: isolate; }
.scene { position: absolute; inset: 0; z-index: 0; }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.join-wrap { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 84px 24px 56px; display: flex; justify-content: flex-start; }
.join-card { width: min(500px, 100%); background: rgba(255, 255, 255, 0.97); color: #0f172a; border-radius: 28px; padding: 24px 24px 18px; box-shadow: 0 30px 80px rgba(11, 31, 58, 0.28), 0 2px 0 rgba(255, 255, 255, 0.8) inset; }
.join-card .kicker { margin: 0 0 8px; font-weight: 800; font-size: 13px; letter-spacing: 1.5px; color: #0284c7; }
.join-card h1 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; font-weight: 800; color: #0b1f3a; }
.join-card .lead { margin: 0 0 16px; color: #475569; font-size: 14.5px; line-height: 1.55; }

.jform { display: grid; gap: 11px; }
.jrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jrow .jfield { min-width: 0; }
.jfield { display: grid; gap: 5px; align-content: start; }
.jfield > label, .jfield > .jlabel { font-size: 13.5px; font-weight: 700; color: #0b1f3a; }
.jfield input[type="text"], .jfield input[type="tel"], .jfield select { width: 100%; height: 44px; border-radius: 14px; border: 1.5px solid #cbd5e1; background: #fff; padding: 0 14px; font: inherit; font-size: 16px; color: #0f172a; }
.jfield input:focus, .jfield select:focus { outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18); }
.jfield input[aria-invalid="true"], .jfield select[aria-invalid="true"] { border-color: #dc2626; }
.jfield input[dir="ltr"] { text-align: right; }
.jchips { display: flex; flex-wrap: wrap; gap: 8px; }
.jchips input { position: absolute; opacity: 0; pointer-events: none; }
.jchips label { cursor: pointer; border: 1.5px solid #cbd5e1; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 700; color: #0b1f3a; background: #fff; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.jchips input:checked + label { background: #0ea5e9; border-color: #0ea5e9; color: #04263f; }
.jchips input:focus-visible + label { outline: 3px solid rgba(14, 165, 233, 0.45); outline-offset: 2px; }
.jhint { margin: 0; font-size: 12.5px; color: #64748b; }
.jerror { margin: 0; min-height: 18px; font-size: 13.5px; font-weight: 700; color: #b91c1c; }
.jbtn { height: 50px; border: 0; border-radius: 16px; background: #0b1f3a; color: #fff; font: inherit; font-size: 16.5px; font-weight: 800; cursor: pointer; transition: transform 0.12s, background 0.15s; }
.jbtn:hover { background: #0c2a4d; }
.jbtn:active { transform: scale(0.985); }
.jbtn:focus-visible { outline: 3px solid rgba(14, 165, 233, 0.55); outline-offset: 3px; }
.jfine { margin: 12px 0 0; font-size: 12px; color: #64748b; line-height: 1.6; }
.jfine a { color: #0369a1; }

.jdone { text-align: right; }
.jdone .tick { width: 56px; height: 56px; border-radius: 50%; background: #e0f2fe; display: grid; place-items: center; margin-bottom: 14px; }
.jdone .tick svg { width: 28px; height: 28px; }
.jdone h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: #0b1f3a; }
.jdone p { margin: 0 0 18px; color: #475569; font-size: 15.5px; line-height: 1.65; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.store { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 150px; padding: 10px 16px; border-radius: 14px; border: 1.5px dashed #94a3b8; color: #0b1f3a; background: #f8fafc; cursor: default; }
.store b { font-size: 16px; font-weight: 800; }
.store span { font-size: 12.5px; color: #64748b; font-weight: 700; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: #0369a1; cursor: pointer; text-decoration: underline; }

.band { background: var(--bg); padding: 56px 20px 8px; }
.band-inner, .steps-inner { max-width: 1040px; margin: 0 auto; }
.band h2, .steps h2 { margin: 0 0 22px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px; }
.pcard .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--sky-soft); display: grid; place-items: center; margin-bottom: 14px; }
.pcard .ico svg { width: 24px; height: 24px; }
.pcard h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.pcard p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.steps { background: var(--bg); padding: 48px 20px 64px; }
.steplist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steplist li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.steplist li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0ea5e9; color: #04263f; font-weight: 800; margin-bottom: 12px; }
.steplist b { display: block; font-size: 16.5px; margin-bottom: 4px; }
.steplist span { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ── The street ── */
.scene .ride { animation: ride var(--d, 12s) linear infinite; animation-delay: var(--dl, 0s); }
.scene .bob { animation: bob 0.42s ease-in-out infinite alternate; }
.scene .wheel { transform-box: fill-box; transform-origin: center; animation: spin 0.42s linear infinite; }
.scene .streak { animation: streak 0.5s ease-in-out infinite alternate; }
.scene .roadline { animation: roadline 0.6s linear infinite; }
.scene .layer-hills { animation: drift 140s linear infinite; }
.scene .layer-city { animation: drift 70s linear infinite; }
.scene .layer-shops { animation: drift 42s linear infinite; }
.scene .cloud { animation: cloud 120s linear infinite; }
.scene .bell { transform-box: fill-box; transform-origin: 50% 100%; animation: bell 7s ease-in-out infinite; }
@keyframes ride { from { transform: translateX(-320px); } to { transform: translateX(1840px); } }
@keyframes bob { from { transform: translateY(-1.5px); } to { transform: translateY(1.5px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes streak { from { opacity: 0.25; } to { opacity: 0.85; } }
@keyframes roadline { to { transform: translateX(-140px); } }
@keyframes drift { to { transform: translateX(-1600px); } }
@keyframes cloud { from { transform: translateX(-260px); } to { transform: translateX(1900px); } }
@keyframes bell { 0%, 60% { transform: scale(0); opacity: 0; } 66% { transform: scale(1.12); opacity: 1; } 70%, 92% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .scene .ride, .scene .bob, .scene .wheel, .scene .streak, .scene .roadline, .scene .layer-hills, .scene .layer-city, .scene .layer-shops, .scene .cloud, .scene .bell { animation: none; }
  .scene .ride { transform: translateX(var(--rest, 600px)); }
  .scene .bell { transform: scale(1); opacity: 1; }
}

@media (max-width: 860px) {
  .hero { min-height: 0; padding-top: 292px; background: #f7f8fa; }
  .scene { bottom: auto; height: 340px; }
  .join-card { background: #ffffff; }
  .join-wrap { padding: 0 16px 36px; }
  .join-card { margin: 0 auto; padding: 26px 20px 20px; }
  .cards { grid-template-columns: 1fr; }
  .steplist { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .steplist { grid-template-columns: 1fr; }
  .jrow { grid-template-columns: 1fr; }
}
@media print { .scene { display: none; } }

[hidden] { display: none !important; }
