:root {
  color-scheme: light;
  --orange: #FF5500;
  --saffron: #E85D2C;
  --chili: #C53A2B;
  --cream: #FBF6EE;
  --ink: #1B1410;
  font-family: 'Readex Pro', sans-serif;
  color: var(--ink);
  background: var(--orange);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--orange); }
::selection { color: var(--cream); background: var(--chili); }
[hidden] { display: none !important; }
main {
  max-width: 680px;
  min-height: 100svh;
  margin: auto;
  padding: max(32px, env(safe-area-inset-top)) 28px max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand { color: white; }
.wordmark { display: block; margin: 0; font: 800 clamp(52px, 15vw, 76px)/1.65 'Alexandria', sans-serif; }
.tagline { margin: 12px 0 0; color: var(--ink); font-size: clamp(15px, 4.1vw, 19px); font-weight: 600; }
.journey { --travel: calc(100vw - 182px); position: relative; width: 100%; height: 180px; margin: 36px 0 16px; direction: ltr; }
.road { position: absolute; left: 0; right: 0; bottom: 27px; border-bottom: 3px dashed var(--cream); }
.rider { position: absolute; left: 0; bottom: 30px; width: 126px; height: 126px; animation: ride 5.5s cubic-bezier(.22, 1, .36, 1) infinite; }
.rider img { display: block; width: 100%; height: 100%; object-fit: contain; }
.destination { position: absolute; right: 0; bottom: 21px; width: 15px; height: 15px; border: 3px solid var(--cream); border-radius: 50%; background: var(--orange); }
/* Arrives, fades out at the dot, and a new trip starts unseen: never drives backwards. */
@keyframes ride {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  65%, 80% { transform: translateX(var(--travel)); opacity: 1; }
  92%, 100% { transform: translateX(var(--travel)); opacity: 0; }
}
h2 { margin: 0; font: 500 clamp(24px, 6.6vw, 34px)/1.6 'Alexandria', sans-serif; text-wrap: balance; }
#ios-title span { font-weight: 800; font-size: clamp(44px, 12vw, 64px); line-height: 1.6; }
.ios-soon, .downloads { width: 100%; max-width: 400px; }
.share-action { margin-top: 28px; }
.friend-note { margin: 0 0 12px; font-size: 16px; }
.button { min-height: 58px; width: 100%; padding: 16px 20px; border: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; font: 600 17px/1.6 'Readex Pro', sans-serif; text-decoration: none; cursor: pointer; transition: background .18s ease; }
.cream { background: var(--cream); color: var(--ink); }
.cream:hover { background: white; }
.button:focus-visible, .share-fallback a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.share-status { min-height: 24px; margin: 8px 0 0; font-size: 14px; }
.share-fallback { margin: 12px 0 0; font-size: 13px; line-height: 2; }
.share-fallback a { display: inline-block; min-height: 48px; max-width: 100%; padding: 10px 0; color: var(--ink); overflow-wrap: anywhere; user-select: all; text-underline-offset: 4px; }
.downloads { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.soon-chip { font-size: 15px; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 30px; }
.app-store { background: var(--ink); color: var(--cream); }
.app-store:hover { background: var(--chili); }
.live-title, .app-store { display: none; }
[data-device="ios"][data-ios="soon"] .downloads,
[data-device="other"] .ios-soon,
[data-ios="live"] .ios-soon,
[data-ios="live"] .soon-chip { display: none; }
[data-ios="live"] .app-store { display: flex; }
[data-device="ios"][data-ios="live"] .live-title { display: block; }
[data-device="ios"][data-ios="live"] .play { order: 2; }
footer { margin-top: auto; padding-top: 32px; font-size: 12px; }
@media (min-width: 700px) {
  main { padding-top: 45px; }
  .journey { --travel: 284px; width: 440px; height: 210px; margin-top: 28px; margin-bottom: 30px; }
  .rider { width: 156px; height: 156px; }
}
@media (prefers-reduced-motion: reduce) {
  .rider { animation: none; transform: translateX(65%); }
  .button { transition: none; }
}
