@font-face {
  font-family: Montserrat;
  src: url('../assets/montserrat.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #30363d;
  --brand: #317794;
  --blue: #2f60a2;
  --green: #359980;
  --line: #d7e2e8;
  --waves: url('../assets/rrive-waves.svg');
  --nav-height: clamp(4.9rem, 10vh, 7rem);
  font: 100%/1.6 Montserrat, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, .partner-logos:focus-visible {
  outline: 3px solid currentColor; outline-offset: 4px;
}
.wrap { width: min(90%, 86rem); margin-inline: auto; }
.narrow { width: min(90%, 65rem); }
.section { padding-block: clamp(3.1rem, 6vw, 6rem); }

.skip-link {
  position: fixed; z-index: 3; top: .65rem; left: .65rem;
  transform: translateY(-200%); background: #fff; padding: .55rem .85rem;
}
.skip-link:focus { transform: translateY(0); }

.site-header { width: 100%; color: #fff; background: var(--blue); }
.site-header-overlay {
  position: absolute; z-index: 2; top: 0; left: 0;
  background: linear-gradient(180deg, #0006, transparent);
}
.nav-bar {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; min-height: var(--nav-height); gap: 1rem;
}
.brand { display: inline-block; justify-self: start; }
.brand img { object-fit: contain; object-position: left center; }
.nav-bar nav { display: flex; justify-content: space-evenly; gap: 1rem; }
.nav-bar nav a { color: #fff; text-decoration: none; font-size: clamp(1rem, 1.7vw, 1.55rem); white-space: nowrap; }
.nav-bar nav a:hover, .nav-bar nav a[aria-current] { text-decoration: underline; text-underline-offset: .3rem; }

.hero, .app-hero {
  position: relative; display: grid; align-items: center; min-height: max(32rem, 80svh);
  isolation: isolate; color: #fff; background: #243440;
}
.hero { overflow: hidden; text-align: center; background: #243440 url('../assets/highway.jpg') center / cover no-repeat; }
.hero-video, .hero::after {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-video { z-index: -2; }
.hero::after { content: ""; z-index: -1; background: #0007; }
.hero-copy {
  display: grid; justify-items: center; gap: clamp(1.35rem, 3.4vh, 2.2rem);
  padding-block: calc(var(--nav-height) + 2.2rem) 4.3rem;
}
.hero h1 {
  max-width: 19em; color: #fff; font-size: clamp(2.2rem, 5.3vw, 5rem);
  line-height: 1.23; font-weight: 400; text-wrap: balance;
  text-shadow: 0 2px 8px #0007;
}
.video-toggle {
  position: absolute; right: 5%; bottom: .9rem; color: #fff; background: #0009;
  border: 1px solid #fffd; border-radius: .25rem; padding: .35rem .65rem; font: inherit; font-size: .82rem; cursor: pointer;
}

.download-group { width: fit-content; max-width: 100%; }
.download-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .85rem; }
.store-badge { display: block; padding: 0; background: none; border: 0; opacity: .62; }
.store-badge img { width: clamp(7.3rem, 12vw, 11.25rem); height: auto; }
.download-icons .download-platforms { justify-content: center; gap: clamp(1.7rem, 3vw, 3.1rem); }
.download-icons .store-badge img { width: clamp(2.55rem, 4vw, 3.6rem); height: 3.5rem; object-fit: contain; }
.availability {
  display: flex; align-items: baseline; gap: .5rem; margin-top: .65rem; color: inherit;
  font-size: .88rem; text-shadow: 0 1px 4px #0007;
}
.status-dot { flex: 0 0 .46rem; height: .46rem; transform: translateY(-.07rem); background: #fed59a; border-radius: 50%; }

.partner-strip { color: #fff; background: linear-gradient(90deg, var(--green), var(--blue)); }
.partner-logos {
  --partner-gap: 1.25rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--partner-gap)) / 3); gap: var(--partner-gap);
  min-height: clamp(6rem, 20vh, 11rem); align-items: center; list-style: none; padding: .9rem 0;
  overflow-x: auto; scrollbar-color: #ffffff80 transparent; scrollbar-width: thin; scroll-snap-type: x proximity;
}
.partner-logos:focus-visible { outline-offset: -4px; }
.partner-logos li { display: grid; place-items: center; scroll-snap-align: start; }
.partner-logos img { width: min(56%, 15rem); height: clamp(3.4rem, 10vh, 5rem); object-fit: contain; }

.overview { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(1.4rem, 4vw, 4rem); }
.overview-phones { width: 100%; }
.overview-copy { text-align: right; }
.overview h2 { font-size: clamp(1.8rem, 3.1vw, 3rem); font-weight: 400; margin-bottom: 1.45rem; }
.capability-list { list-style: none; padding: 0; }
.capability-list li + li { margin-top: 1.55rem; }
.capability-list h3 {
  display: flex; justify-content: flex-end; align-items: center; gap: .65rem;
  font-size: clamp(1.2rem, 2vw, 1.8rem); color: var(--brand); margin-bottom: .5rem;
}
.capability-list h3 img { flex: 0 0 auto; width: clamp(1.8rem, 3vw, 2.6rem); }
.capability-list p { font-size: clamp(1rem, 1.3vw, 1.2rem); }
.app-link { display: inline-block; margin-top: 1.55rem; font-weight: 700; }

.app-hero {
  background: linear-gradient(90deg, #090f1480, #090f1430), url('../assets/app-in-car.jpg') 50% 48% / cover no-repeat;
}
.app-hero-inner {
  display: grid; grid-template-columns: 1fr .8fr; gap: 1.5rem; align-items: center;
  padding: calc(var(--nav-height) + 1.5rem) 4.5% 2.2rem;
}
.app-hero h1 { font-size: clamp(2.75rem, 5vw, 5rem); font-weight: 400; margin-bottom: 1.4rem; }
.app-hero-phone { justify-self: center; width: auto; max-width: 100%; max-height: min(46vh, 29rem); object-fit: contain; }
.app-features { width: min(80%, 74rem); padding-block: clamp(3.1rem, 7vw, 7rem); }
.app-feature + .app-feature { margin-top: clamp(3.5rem, 8vw, 8rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.app-feature h2 {
  font-size: clamp(1.65rem, 3.4vw, 3rem); font-weight: 600;
  color: var(--brand); border-left: 5px solid currentColor; padding-left: .65rem;
}
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center; margin-top: clamp(1.5rem, 4vw, 3.8rem);
}
.feature-row > img { width: min(76%, 17rem); justify-self: center; }
.feature-copy { text-align: center; font-size: clamp(1.04rem, 1.7vw, 1.42rem); }
.feature-copy p + p { margin-top: .8rem; }
.app-feature:nth-child(even) .feature-copy { grid-column: 1; grid-row: 1; }
.app-feature:nth-child(even) .feature-row > img { grid-column: 2; grid-row: 1; }

.page-heading {
  display: grid; align-items: center; text-align: center;
  min-height: max(15rem, 39svh); padding-block: calc(var(--nav-height) + 1rem) 2.5rem;
  color: #fff; background: linear-gradient(#123a4238, #1540642f), var(--waves) center / cover no-repeat, var(--blue);
}
.page-heading h1, .not-found h1 {
  font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 400; hyphens: auto; text-wrap: balance;
}
.legal-heading h1 { font-size: clamp(2rem, 4.5vw, 4.2rem); }
.faq { width: min(90%, 48rem); }
.faq h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-weight: 600; margin-bottom: .85rem; }
.faq-topics { margin-top: 3rem; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; display: grid; grid-template-columns: 1fr 1.1rem; align-items: center;
  gap: .85rem; padding-block: 1rem; font-weight: 600; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: var(--brand); }
details[open] summary::after { content: "−"; }
.answer { padding: 0 1.2rem 1rem 0; }
.answer p + p { margin-top: .6rem; }

.legal-content { padding-top: clamp(1.9rem, 4vw, 3.6rem); }
.document-note { max-width: 75ch; border-left: 3px solid var(--brand); background: #f0f5fa; padding: .8rem 1rem; margin-bottom: 1.35rem; }
.language-link { margin-bottom: 1.35rem; }
.prose { max-width: 90ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 2.05rem); }
.prose h3 { font-size: 1.22rem; }
.prose h4 { font-size: 1.06rem; }
.prose :is(h2, h3, h4) { margin: 1.75rem 0 .6rem; hyphens: auto; }
.prose :is(h2, h3, h4):first-child { margin-top: 0; }
.prose :is(p, li) { hyphens: auto; overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose li + li { margin-top: .4rem; }
.prose p + p, .prose p + ul, .prose :is(ul, ol) + p { margin-top: .8rem; }
.not-found p { margin: 1rem 0 1.35rem; }

.site-footer {
  color: #fff;
  background: linear-gradient(#0e273b42, #0e273b42), var(--waves) center / cover no-repeat, var(--blue);
  padding-block: clamp(2.3rem, 4.7vw, 4rem) 1.2rem;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-columns { display: grid; grid-template-columns: 1.1fr .96fr .88fr 1fr; gap: 1.65rem clamp(1.15rem, 3vw, 3.2rem); }
.footer-columns > * { min-width: 0; }
.footer-columns .brand img { width: clamp(6rem, 12vw, 9.5rem); margin-bottom: 1rem; }
.footer-columns address { font-style: normal; }
.footer-heading { font-weight: 700; margin-bottom: .45rem; }
.footer-subheading { margin-top: 1rem; }
.footer-columns ul { list-style: none; padding: 0; }
.footer-columns li + li { margin-top: .18rem; }
.footer-columns .download-platforms { gap: .45rem; }
.footer-columns .store-badge img { width: 6.5rem; }
.footer-columns .availability { font-size: .78rem; }
.footer-social, .footer-awards { display: flex; align-items: center; flex-wrap: wrap; gap: .66rem; }
.footer-social img { width: 2rem; }
.footer-awards img { width: clamp(4.2rem, 7vw, 6.2rem); max-height: 3.5rem; object-fit: contain; }
.footer-copyright { border-top: 1px solid #fff9; margin-top: 1.8rem; padding-top: .9rem; font-size: .82rem; text-align: center; }

@media (max-width: 830px) {
  .overview { grid-template-columns: 1fr; max-width: 40rem; }
  .overview-phones { width: min(100%, 34rem); justify-self: center; }
  .overview-copy { text-align: left; }
  .capability-list h3 { justify-content: flex-start; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --nav-height: 7.75rem; }
  .wrap, .narrow { width: calc(100% - 2rem); }
  .nav-bar { grid-template-columns: 1fr; justify-items: center; gap: .55rem; padding-block: .7rem 1rem; }
  .nav-bar .brand { justify-self: center; }
  .nav-bar .brand img { width: 126px; height: 48px; }
  .nav-bar nav { width: min(100%, 25rem); justify-content: space-around; }
  .nav-bar nav a { font-size: .96rem; }
  .hero, .app-hero { min-height: max(31rem, 80svh); }
  .hero h1 { font-size: clamp(1.95rem, 7.1vw, 3.15rem); }
  .hero-copy { padding-bottom: 4rem; }
  .video-toggle { font-size: .73rem; right: 1rem; }
  .partner-logos { grid-auto-columns: 100%; }
  .partner-logos img { width: min(52%, 11rem); height: 3.05rem; }
  .app-hero-inner { grid-template-columns: 1fr; padding-inline: 0; text-align: center; }
  .app-hero h1 { font-size: clamp(1.85rem, 8.1vw, 2.75rem); }
  .app-hero-phone { display: none; }
  .app-hero .download-group { margin-inline: auto; }
  .app-hero .download-platforms, .app-hero .availability { justify-content: center; }
  .app-feature h2 { padding-left: 0; border: 0; text-align: center; }
  .app-feature .feature-row { grid-template-columns: 1fr; gap: 1.45rem; }
  .app-feature:nth-child(even) .feature-row > img, .app-feature:nth-child(even) .feature-copy { grid-column: auto; grid-row: auto; }
  .feature-row > img { width: min(61%, 13rem); }
  .legal-heading h1 { font-size: clamp(1.7rem, 6.2vw, 2.2rem); }
  .footer-columns { gap: 1.55rem .75rem; font-size: .91rem; }
  .footer-columns :is(a, address) { overflow-wrap: break-word; }
}
@media (max-width: 420px) {
  .app-hero .download-platforms { flex-direction: column; }
}
@media (max-width: 340px) {
  .footer-columns { grid-template-columns: 1fr; }
}
