/*
 * Style of the NeoRide product pages (landing, partners, support).
 * Colors come from the NeoRide app icons and the app's theme: the navy field
 * #233A5F to #192943, the signal green #6DD400 and the app's slate scale.
 * The privacy and terms pages keep neoride.css.
 */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/neoride/fonts/fira-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/neoride/fonts/fira-sans-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/neoride/fonts/fira-sans-700.woff2') format('woff2');
}

:root {
  --field-top: #233a5f;
  --field: #192943;
  --signal: #6dd400;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --ink: #0f172a;
  --body: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --on-field: #ffffff;
  --on-field-soft: #cbd5e1;
  --radius-tile: 22%;
  --gutter: 16px;
  --measure: 36rem;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background-color: var(--paper);
}

a {
  color: var(--field-top);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
.store-badge:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.frame {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header and the navy field it shares with the hero */

.field {
  position: relative;
  overflow: hidden;
  color: var(--on-field);
  background: linear-gradient(180deg, var(--field-top) 0%, var(--field) 100%);
}

.field a {
  color: var(--on-field);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.topbar .brand {
  display: block;
  line-height: 0;
}

.topbar .brand img {
  width: 118px;
  height: auto;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 16px;
  font-weight: 500;
}

/* The Neobility logo: the way back to the company site, smaller than the NeoRide brand. */
.topbar .parent {
  display: none;
  line-height: 0;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.topbar .parent img {
  height: 24px;
  width: auto;
}

.topbar nav a {
  text-decoration: none;
  padding: 4px 0;
}

.topbar nav a:hover,
.topbar nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
}

/* The oversized route N behind the hero: the mark's own geometry. */
.route-n {
  position: absolute;
  z-index: 1;
  right: -34px;
  bottom: -202px;
  width: 280px;
  height: auto;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 72px;
}

.hero h1 {
  margin: 0 0 28px;
  line-height: 0;
}

.hero h1 img {
  width: min(380px, 78vw);
  height: auto;
}

.hero .value {
  max-width: var(--measure);
  margin: 0 0 16px;
  font-size: 25px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--on-field);
}

.hero .context {
  max-width: var(--measure);
  margin: 0 0 32px;
  color: var(--on-field-soft);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-badge {
  display: flex;
  flex-direction: column;
  min-width: 156px;
  padding: 10px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  line-height: 1.25;
}

.store-badge .store-name {
  font-size: 18px;
  font-weight: 700;
}

.store-badge .store-state {
  font-size: 14px;
  color: var(--on-field-soft);
}

/* Title band of the partners and support pages */

.page-title {
  position: relative;
  z-index: 2;
  padding-top: 32px;
  padding-bottom: 48px;
}

.page-title h1 {
  margin: 0 0 12px;
  font-size: 39px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--on-field);
}

.page-title p {
  max-width: var(--measure);
  margin: 0 0 12px;
  color: var(--on-field-soft);
}

.page-title p.lead {
  font-size: 20px;
  line-height: 1.45;
  color: var(--on-field);
}

.page-title p:last-child {
  margin-bottom: 0;
}

/* Content on paper */

main {
  display: block;
}

.section {
  padding-top: 56px;
  padding-bottom: 8px;
}

.section:last-child {
  padding-bottom: 64px;
}

h2 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}

h3 {
  margin: 28px 0 6px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
}

p {
  margin: 0 0 14px;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 44px;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.prose li {
  margin: 8px 0;
}

/* The two apps */

.apps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.app {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background-color: var(--surface);
}

.app img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-tile);
}

.app h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.app p:last-child {
  margin-bottom: 0;
}

.app .soon {
  color: var(--muted);
  font-size: 15px;
}

/* Join band */

.join {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 32px;
  border-radius: 20px;
  color: var(--on-field-soft);
  background: linear-gradient(180deg, var(--field-top) 0%, var(--field) 100%);
}

.join h2 {
  color: var(--on-field);
}

.join p {
  max-width: var(--measure);
  margin: 0;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  text-decoration: none;
  color: var(--field);
  background-color: var(--signal);
}

.button:hover {
  background-color: #7fe014;
}

.button.on-paper {
  color: var(--on-field);
  background-color: var(--field-top);
}

.button.on-paper:hover {
  background-color: var(--field);
}

/* Partner options */

.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.option {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background-color: var(--surface);
}

.option h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.option p {
  flex: 1 0 auto;
}

.option p:last-child {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.option .button {
  align-self: flex-start;
}

.note {
  max-width: 44rem;
  color: var(--muted);
  font-size: 15px;
}

/* Footer */

.site-footer {
  color: var(--on-field-soft);
  background-color: var(--field);
  font-size: 15px;
}

.site-footer .frame {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.site-footer img {
  display: block;
  height: 28px;
  width: auto;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer a {
  color: var(--on-field);
}

@media (min-width: 760px) {
  :root {
    --gutter: 32px;
  }

  .topbar .brand img {
    width: 136px;
  }

  .topbar nav {
    margin-left: auto;
  }

  .topbar .parent {
    display: block;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 104px;
  }

  .hero .value {
    font-size: 31px;
  }

  .route-n {
    right: -40px;
    bottom: -170px;
    width: 640px;
  }

  .page-title {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .page-title h1 {
    font-size: 49px;
  }

  .apps,
  .options {
    grid-template-columns: repeat(2, 1fr);
  }

  .options {
    grid-template-columns: repeat(3, 1fr);
  }

  .join {
    padding: 40px 48px;
  }

  .site-footer .frame {
    justify-content: space-between;
  }
}

/* Phones: the header wordmark is the brand; the hero wordmark stays for screen readers only,
   and the decorative route N is hidden. */
@media (max-width: 759px) {
  .hero h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .route-n {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
