@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/sora-800-latin.woff2") format("woff2");
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --background: #fafafc;
  --purple: #5915cf;
  --ink: #17131f;
  --muted: #6b6577;
  --border: #e7e4ee;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
img { display: block; max-width: 100%; }

.site-header {
  position: absolute;
  z-index: 2;
  top: max(24px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
}
.language-switcher { position: relative; }
.language-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  min-height: 44px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.language-trigger:hover { border-color: #c7b5e5; background: #f7f3fe; }
.language-trigger > img:first-child,
.language-options button > img:first-child { flex: none; border-radius: 2px; }
.chevron { margin-left: auto; transition: transform 160ms ease; }
.language-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 188px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px #17131f08;
}
.language-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.language-options button:hover,
.language-options button[aria-pressed="true"] { background: #f3edfd; color: var(--purple); }
.selected-mark { margin-left: auto; visibility: hidden; }
[aria-pressed="true"] .selected-mark { visibility: visible; }

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 112px 24px;
}
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 1100px;
  text-align: center;
  animation: arrive 600ms cubic-bezier(.2,.7,.2,1) both;
}
.brand { width: 160px; height: auto; aspect-ratio: 3159 / 718; margin-bottom: 24px; }
.journey {
  position: relative;
  width: 320px;
  height: 120px;
  max-width: 100%;
  margin-bottom: 28px;
  overflow: hidden;
}
.journey-scene { position: absolute; width: 320px; height: 120px; left: 50%; margin-left: -160px; }
.road { position: absolute; inset: 0; }
.bus-position {
  position: absolute;
  top: 0;
  left: 0;
  width: 116px;
  height: 54px;
  transform: translate(102px, 39px);
  /* Begin halfway along the route so the bus is visible with the whole block. */
  animation: drive 8s linear -4s infinite;
}
.bus { width: 116px; height: 54px; }
h1 {
  margin: 0;
  color: var(--purple);
  font: 800 clamp(42px, 6.12vw, 88px)/1.16 Sora, Arial, sans-serif;
  letter-spacing: -.055em;
  white-space: nowrap;
}
#supporting-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 1.65;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* The wheel contact follows the shallow curve in assets/road.svg. */
@keyframes drive {
  0% { opacity: 0; transform: translate(-100px, 45px) rotate(-2deg); }
  6% { opacity: 1; }
  25% { transform: translate(0, 40px) rotate(-1.5deg); }
  50% { transform: translate(102px, 39px) rotate(0deg); }
  75% { transform: translate(208px, 41px) rotate(1.5deg); }
  94% { opacity: 1; }
  100% { opacity: 0; transform: translate(320px, 46px) rotate(2deg); }
}

@media (min-width: 768px) {
  .site-header { top: 40px; right: 40px; }
}
@media (max-width: 600px) {
  main { padding: 100px 20px; }
  .brand { width: 130px; margin-bottom: 24px; }
  .journey { width: 280px; height: 105px; margin-bottom: 24px; }
  .journey-scene { transform: scale(.875); transform-origin: top center; }
  html[lang="es"] h1 { font-size: clamp(30px, 8.75vw, 42px); }
  #supporting-copy { margin-top: 16px; }
}
@media (max-width: 360px) {
  h1 { font-size: 36px; }
  .site-header { top: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* A pointer over the illustration pauses its decorative motion. */
.journey:hover .bus-position { animation-play-state: paused; }
