/* hasssa.com. Colours come only from tokens.css (built from design/tokens.json),
   so the site matches the apps in light and dark. Motion animates transform and
   opacity only, and stops for anyone who prefers reduced motion. */

@font-face { font-family: Alexandria; font-weight: 700; font-display: swap; src: url(fonts/alexandria-arabic-700.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Alexandria; font-weight: 700; font-display: swap; src: url(fonts/alexandria-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Readex Pro'; font-weight: 400; font-display: swap; src: url(fonts/readex-pro-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Readex Pro'; font-weight: 400; font-display: swap; src: url(fonts/readex-pro-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Readex Pro'; font-weight: 600; font-display: swap; src: url(fonts/readex-pro-arabic-600.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Readex Pro'; font-weight: 600; font-display: swap; src: url(fonts/readex-pro-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --font-display: Alexandria, 'Readex Pro', system-ui, sans-serif;
  --font-body: 'Readex Pro', Alexandria, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1120px;
  --top-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
/* `hidden` always wins over a component's own display (the success box, the drivers count). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.75 var(--font-body);
  transition: background-color .2s, color .2s;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.35; }
h2 { font-size: clamp(24px, 4vw, 34px); }
h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--emphasis); }
img, svg { display: block; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { --wrap: 760px; }
.lead { color: var(--muted); font-size: 17px; margin-top: 8px; max-width: 60ch; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section h2 + .lead { margin-bottom: 32px; }
.section > .wrap > h2:not(:has(+ .lead)) { margin-bottom: 32px; }

.skip { position: absolute; inset-inline-start: 16px; top: -48px; z-index: 30; background: var(--orange); color: var(--navy); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--emphasis); outline-offset: 3px; border-radius: 6px; }

/* ---- Buttons ---- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-md); border: 1px solid transparent;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.pulse::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--orange);
  opacity: 0; pointer-events: none;
}

/* ---- Top bar ---- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 25; background: var(--orange); transform: scaleX(0); transform-origin: right; display: none; }
[dir=ltr] .progress { transform-origin: left; }
.top {
  position: sticky; top: 0; z-index: 20; color: var(--cream);
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.top::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: var(--cream-line); opacity: 0; }
.top-row { display: flex; align-items: center; gap: 20px; min-height: var(--top-h); }
.brand img { height: 30px; width: auto; transform-origin: center; }
[dir=rtl] .brand img { transform-origin: right center; }
[dir=ltr] .brand img { transform-origin: left center; }
.nav { display: flex; gap: 22px; margin-inline-start: 12px; }
.nav a, .lang { color: var(--cream-muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav a:hover, .lang:hover { color: var(--cream); }
.top-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.lang { border: 1px solid var(--cream-line); border-radius: var(--radius-pill); padding: 6px 12px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--cream-line); color: var(--cream); cursor: pointer;
  transition: transform .3s var(--ease);
}
.icon-btn:hover { transform: rotate(-20deg); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.i-moon { display: none; }
[data-theme=dark] .i-sun { display: none; }
[data-theme=dark] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .i-sun { display: none; }
  :root:not([data-theme=light]) .i-moon { display: block; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .top-cta { display: none; }
}

/* ---- Hero ---- */
.hero { background: var(--navy); color: var(--cream); padding-block: clamp(36px, 7vw, 80px) 28px; overflow: hidden; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--orange) 22%, transparent), transparent);
  pointer-events: none;
}
[dir=ltr] .hero::before { inset: -40% auto auto -10%; }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
.eyebrow { display: inline-block; font-size: 13px; color: var(--cream-muted); border: 1px solid var(--cream-line); border-radius: var(--radius-pill); padding: 4px 12px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5.6vw, 58px); line-height: 1.3; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--orange); }
.hero-text { color: var(--cream-muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 56ch; margin-top: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-ghost { color: var(--cream); border-color: var(--cream-line); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px;
  border: 1px solid var(--cream-line); border-radius: var(--radius-sm); color: var(--cream); text-decoration: none;
  transition: transform .2s var(--ease);
}
a.store:hover { transform: translateY(-2px); }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.store small { display: block; font-size: 11px; color: var(--cream-muted); line-height: 1.2; }
.store b { display: block; font-weight: 600; font-size: 15px; line-height: 1.2; }

/* the phone */
.hero-visual { display: grid; place-items: center; }
.phone {
  position: relative; width: min(290px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 10px;
  background: var(--navy-deep); border: 1px solid var(--cream-line);
  box-shadow: var(--shadow-card);
  animation: float 6s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; border-radius: 12px; background: var(--navy-deep); transform: translateX(-50%); z-index: 1; }
.phone-screen { height: 100%; border-radius: 32px; background: var(--bg); color: var(--ink); padding: 52px 16px 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.phone-head { display: flex; align-items: center; gap: 10px; }
.phone-head b { display: block; font-family: var(--font-display); font-size: 15px; }
.phone-head small { display: block; font-size: 12px; color: var(--muted); }
.phone-logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--cream); font: 700 13px var(--font-display); flex: none; }
.phone-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.phone-bar span { display: block; height: 100%; background: var(--orange); transform-origin: right; animation: bar 8s linear infinite; }
[dir=ltr] .phone-bar span { transform-origin: left; }
.phone-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.phone-steps li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; opacity: .45; animation: step 8s infinite; }
.phone-steps li:nth-child(2) { animation-delay: 2s; }
.phone-steps li:nth-child(3) { animation-delay: 4s; }
.phone-steps li:nth-child(4) { animation-delay: 6s; }
.phone-steps i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; }
.phone-map { flex: 1; min-height: 70px; border-radius: 14px; background: var(--navy-soft); display: grid; place-items: center; }
.mini-map { width: 100%; height: 100%; }
.map-road { fill: none; stroke: var(--line-strong); stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; }
.map-home { fill: var(--success); }
.map-car { fill: var(--orange); }
.phone-cash { align-self: flex-start; font-size: 12px; background: var(--success-soft); color: var(--success); border-radius: var(--radius-pill); padding: 2px 10px; }

/* the route */
.route { position: relative; margin-top: 40px; padding-top: 2px; }
/* A straight dashed line from the first stop's centre to the last; the dot rides it with transform only. */
.route-track { position: absolute; top: 8px; inset-inline: 7px; height: 2px; background-image: linear-gradient(90deg, var(--cream-line) 50%, transparent 50%); background-size: 12px 2px; }
.route-run { position: absolute; inset: 0; }
.route-dot {
  position: absolute; top: 50%; inset-inline-start: 0; width: 16px; height: 16px; margin: -8px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 6px color-mix(in srgb, var(--orange) 25%, transparent);
}
.route-stops { position: relative; list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; font-size: 13px; color: var(--cream-muted); }
.route-stops li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.route-stops li:nth-child(2) { align-items: center; }
.route-stops li:last-child { align-items: flex-end; }
.stop { position: relative; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--cream-muted); background: var(--navy); }
.stop::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: var(--orange); opacity: 1; }
.route-stops li:nth-child(2) .stop::after { animation: lit2 8s infinite; }
.route-stops li:nth-child(3) .stop::after { animation: lit3 8s infinite; }

/* ---- Marquee ---- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 8%, var(--ink) 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, var(--ink) 8%, var(--ink) 92%, transparent);
}
.marquee-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 14px 0; gap: 0; }
.marquee-track li { display: flex; align-items: center; gap: 14px; padding-inline: 22px; white-space: nowrap; font-weight: 600; color: var(--ink); }
.marquee-track li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---- How it works ---- */
.steps { list-style: none; margin: 0; padding: 48px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; isolation: isolate; }
/* The track above the cards: a line from the first number to the last, filled in orange as it comes into view. */
.steps::before, .steps::after {
  content: ''; position: absolute; z-index: -1; top: 13px; height: 2px; border-radius: 1px;
  inset-inline-start: 35px; inset-inline-end: calc((100% - 32px) / 3 - 35px);
}
.steps::before { background: var(--line); }
.steps::after { background: var(--orange); transform-origin: right; }
[dir=ltr] .steps::after { transform-origin: left; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.step-num {
  position: absolute; top: -48px; inset-inline-start: 22px; z-index: 1;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--emphasis); color: var(--on-emphasis); font: 700 13px var(--font-display);
  box-shadow: 0 0 0 5px var(--bg);
}
.step p, .tile p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.ic { width: 30px; height: 30px; fill: none; stroke: var(--emphasis); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }

/* ---- Platform ---- */
.platform-card { background: var(--orange-soft); border: 1px solid var(--warning-line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.platform-card > p { margin-top: 10px; max-width: 64ch; font-size: 17px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.split h3 { color: var(--warning); margin-bottom: 10px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before {
  content: ''; flex: none; width: 10px; height: 5px; border: solid var(--success); border-width: 0 0 2px 2px;
  transform: translateY(-3px) rotate(-45deg);
}
.keeps li::before { border-color: var(--emphasis); }

/* ---- Bento ---- */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px;
  transition: transform .3s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.tile-wide { grid-column: span 2; padding: 28px; }
.tile-wide h3 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 12px; }
.tile-wide p { font-size: 16px; }
.tile-customers { background: var(--navy-soft); border-color: transparent; }
.tile-restaurants { background: var(--orange-soft); border-color: var(--warning-line); }
.tile-customers p, .tile-restaurants p { color: var(--ink); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; background: var(--emphasis); color: var(--on-emphasis); border-radius: var(--radius-pill); padding: 3px 12px; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 600; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }
.faq details[open] p { animation: fade .35s var(--ease); }

/* ---- Join form: fields sit on the page colour so they stand out in both themes ---- */
.join { background: var(--bg); }
.join-form { margin-top: 8px; }
.fields { display: grid; gap: 16px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; color: var(--muted); padding: 0; }
.field small { font-size: 12px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--emphasis); box-shadow: 0 0 0 2px var(--emphasis); }
.field input[dir=ltr] { text-align: start; }
[dir=rtl] .field input[dir=ltr] { text-align: right; }
.field input:-webkit-autofill, .field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  box-shadow: 0 0 0 100px var(--surface) inset; transition: background-color 99999s;
}
.field [aria-invalid=true] { border-color: var(--danger); }
.field [aria-invalid=true]:focus { box-shadow: 0 0 0 2px var(--danger); }
.err { font-size: 13px; color: var(--danger); }
.err:not(:empty) { background: var(--danger-soft); border-radius: 8px; padding: 2px 10px; align-self: flex-start; animation: fade .25s var(--ease); }
.choice { display: flex; gap: 10px; }
.choice label {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--emphasis); background: var(--navy-soft); box-shadow: inset 0 0 0 1px var(--emphasis); font-weight: 600; }
.choice label:has(input:focus-visible) { outline: 2px solid var(--emphasis); outline-offset: 2px; }
.choice label:has(input[aria-invalid=true]) { border-color: var(--danger); }
.drivers-count[hidden] { display: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-msg { color: var(--danger); margin: 16px 0 0; min-height: 0; }
.form-msg:empty { display: none; }
.fallback { margin-top: 16px; padding: 16px; border-radius: var(--radius-md); background: var(--orange-soft); border: 1px solid var(--warning-line); display: grid; gap: 12px; }
.fallback p { color: var(--ink); }
.submit { margin-top: 20px; }
.submit:disabled { cursor: progress; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--navy); border-inline-end-color: transparent; animation: spin .8s linear infinite; }
.busy .spinner { display: inline-block; }
.success { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 24px; display: grid; justify-items: center; gap: 10px; }
.success:focus { outline: none; }
.success p { color: var(--muted); max-width: 46ch; }
.success .btn { margin-top: 10px; }
.check { width: 64px; height: 64px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke: var(--success); stroke-dasharray: 151; stroke-dashoffset: 0; }
.check path { stroke: var(--success); stroke-dasharray: 36; stroke-dashoffset: 0; }

/* ---- Footer ---- */
.foot { background: var(--navy-deep); color: var(--cream); padding-block: 40px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot img { height: 28px; width: auto; margin-bottom: 10px; }
.muted-on-navy { color: var(--cream-muted); font-size: 14px; margin-top: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--cream-muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--cream); }

/* ---- Layout on small screens ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .steps, .split, .fields { grid-template-columns: 1fr; }
  .steps { padding-top: 0; }
  .steps::before, .steps::after { display: none; }
  .step-num { position: static; margin-bottom: 14px; box-shadow: none; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .route-stops { font-size: 12px; }
}

/* ---- Motion ---- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes bar { from { transform: scaleX(.06); } to { transform: scaleX(1); } }
@keyframes step { 0% { opacity: .45; } 3%, 25% { opacity: 1; } 28%, 100% { opacity: .45; } }
@keyframes lit2 { 0%, 40% { opacity: 0; } 44%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lit3 { 0%, 82% { opacity: 0; } 86%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ride { 0% { transform: translateX(0); } 85%, 100% { transform: translateX(100%); } }
@keyframes ride-rtl { 0% { transform: translateX(0); } 85%, 100% { transform: translateX(-100%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
@keyframes ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.18, 1.45); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes show { to { opacity: 1; } }
@keyframes shrink { to { transform: scale(.86); } }
@keyframes draw151 { from { stroke-dashoffset: 151; } }
@keyframes draw36 { from { stroke-dashoffset: 36; } }

@media (prefers-reduced-motion: no-preference) {
  .in1, .in2, .in3, .in4, .in5, .in6 { animation: rise .8s var(--ease) both; }
  .in2 { animation-delay: .08s; }
  .in3 { animation-delay: .18s; }
  .in4 { animation-delay: .28s; }
  .in5 { animation-delay: .38s; }
  .in6 { animation-delay: .48s; }
  .pulse::after { animation: ring 1.4s var(--ease) 1.2s 2; }
  .route-run { animation: ride 8s linear infinite; }
  [dir=rtl] .route-run { animation-name: ride-rtl; }
  .marquee-track { animation: marquee 38s linear infinite; }
  [dir=rtl] .marquee-track { animation-name: marquee-rtl; }
  .success:not([hidden]) .check circle { animation: draw151 .6s var(--ease) both; }
  .success:not([hidden]) .check path { animation: draw36 .35s var(--ease) .5s both; }

  /* Scroll-driven, no JavaScript: reveals, the reading bar, the header and the steps line. */
  @supports (animation-timeline: view()) {
    .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .bento .rv:nth-child(even), .steps .rv:nth-child(2) { animation-range: entry 6% cover 32%; }
    .steps .rv:nth-child(3) { animation-range: entry 12% cover 36%; }
    .progress { display: block; animation: grow linear both; animation-timeline: scroll(root); }
    .top::after { animation: show linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    .brand img { animation: shrink linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    .steps::after { animation: grow linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
  }
  /* Older browsers: site.js adds .io and an observer adds .in. */
  .io .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .io .rv.in { opacity: 1; transform: none; }
  .io .bento .rv:nth-child(2), .io .steps .rv:nth-child(2), .io .faq .rv:nth-child(2) { transition-delay: .08s; }
  .io .bento .rv:nth-child(3), .io .steps .rv:nth-child(3), .io .faq .rv:nth-child(3) { transition-delay: .16s; }
  .io .bento .rv:nth-child(4), .io .faq .rv:nth-child(4) { transition-delay: .24s; }
  .io .bento .rv:nth-child(5), .io .faq .rv:nth-child(5) { transition-delay: .32s; }
  .io .bento .rv:nth-child(6) { transition-delay: .4s; }

  /* Theme switch: the new theme spreads in a circle from the button. */
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  ::view-transition-new(root) { animation: reveal .55s var(--ease); }
}
@keyframes reveal { from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); } to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .phone-bar span, .phone-steps li, .stop::after { animation: none; }
  .phone-steps li { opacity: 1; }
  .phone-bar span { transform: none; }
  .route-dot, .map-car { display: none; }
  .route-run { animation: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden=true] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .btn:hover, .tile:hover, a.store:hover, .icon-btn:hover { transform: none; }
}
