/* TOLM website. Colours sampled from the landing-page design; type is
   Montserrat, as in the apps. */

:root {
  --navy: #0b1b3b;
  --navy-2: #142c57;
  --navy-line: rgb(255 255 255 / 14%);
  --orange: #ff6a00;
  --orange-hover: #ff7d1f;
  --orange-text: #c24d00;
  --bg: #f4f6f9;
  --bg-2: #edf2fa;
  --surface: #ffffff;
  --border: #e1e6ee;
  --text: #0b1b3b;
  --muted: #646e80;
  --on-navy: #ffffff;
  --on-navy-muted: rgb(255 255 255 / 76%);
  --blue: #3f75ed;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgb(11 27 59 / 6%), 0 8px 24px rgb(11 27 59 / 6%);
  --container: 1296px;
  --gutter: 24px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--orange);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-orange {
  color: var(--orange);
}
.on-navy .eyebrow:not(.eyebrow-orange) {
  color: var(--on-navy);
}

.h1 {
  font-size: clamp(44px, 5.9vw, 84px);
  line-height: 1.13;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(32px, 3.7vw, 52px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}
.on-navy .lead {
  color: var(--on-navy-muted);
}

.accent {
  color: var(--orange);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.btn svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.btn-primary {
  background: var(--orange);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--orange-hover);
}
.btn-outline {
  border-color: rgb(255 255 255 / 40%);
  color: var(--on-navy);
}
.btn-outline:hover {
  border-color: var(--on-navy);
}
.btn-outline-dark {
  border-color: var(--border);
  color: var(--navy);
  background: var(--surface);
}
.btn-outline-dark:hover {
  border-color: var(--navy);
}
.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}
.text-link svg {
  width: 12px;
  height: 12px;
}
.text-link:hover {
  color: var(--orange-text);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: var(--on-navy);
  position: relative;
  z-index: 20;
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 92px;
  border-bottom: 1px solid var(--navy-line);
}
.logo {
  display: block;
  flex: none;
}
.logo img {
  width: 172px;
  height: auto;
}
.nav {
  display: flex;
  gap: 40px;
  margin-inline: auto;
}
.nav a {
  text-decoration: none;
  font-size: 15px;
  color: rgb(255 255 255 / 86%);
  padding: 8px 0;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--on-navy);
}
.nav a[aria-current='page'] {
  font-weight: 600;
}
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--on-navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
}
.menu-button svg {
  width: 24px;
  height: 24px;
}
.mobile-menu {
  display: none;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 7vw, 96px);
}
.section-tight {
  padding-block: clamp(48px, 5vw, 72px);
}
.on-navy {
  background: var(--navy);
  color: var(--on-navy);
}
.bg-2 {
  background: var(--bg-2);
}
.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: 48px;
}

/* Hero */
.hero {
  padding-block: 32px 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 64px 7px 14px;
  border-radius: 999px;
  background: var(--navy-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--on-navy);
}
.hero .h1 {
  margin-top: 36px;
}
.hero .lead {
  margin-top: 36px;
  max-width: 38ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}
.hero-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--on-navy-muted);
}
/* The card sits half over the photo's bottom edge, so the car stays in view. */
.hero-photo {
  position: relative;
  padding-bottom: 56px;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
  object-position: 30% 100%;
  border-radius: var(--radius-lg);
  background: var(--navy-2);
}
.status-card {
  position: absolute;
  left: 8%;
  right: 20%;
  bottom: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 22px 28px;
  box-shadow: var(--shadow);
}
.status-card strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
}
.status-card span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.status-card small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.status-card .dot {
  display: none;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  place-items: center;
}
.status-card .dot svg {
  width: 16px;
  height: 16px;
}

/* How it works */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 36px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.chip {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding: 0 22px;
  min-height: 64px;
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 15px;
}
.chip svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.step h3,
.service h3 {
  margin-top: 28px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}
.step p {
  margin-top: 12px;
  color: var(--muted);
}

/* Services */
.service {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 12px 12px 36px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow 0.15s;
}
a.service:hover {
  box-shadow: var(--shadow);
}
.service img {
  width: 100%;
  aspect-ratio: 436 / 260;
  object-fit: cover;
  border-radius: 10px;
}
.service .body {
  padding: 0 12px;
}
.service h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.service h3 svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.service .tag {
  margin-top: 12px;
  font-weight: 500;
}
.service p:last-child {
  margin-top: 16px;
  color: var(--muted);
}

/* The TOLM difference */
.split-head {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 64px;
}
.split-head .lead {
  font-size: 17px;
  padding-top: 18px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
}
.feature {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
}
.feature svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
}
.feature h3 {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 500;
}
.feature p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  max-width: 40ch;
}

/* Media + text */
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.media-grid .photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.media-grid .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-text .h2 {
  margin-top: 28px;
}
.media-text .lead {
  margin-top: 40px;
  max-width: 40ch;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.checks li::before {
  content: '✓';
  margin-right: 8px;
}
.media-text .btn {
  margin-top: 40px;
}
.about-text .h2 {
  font-size: clamp(32px, 3.2vw, 46px);
}
.about-text .sub {
  margin-top: 40px;
  font-size: 22px;
  font-weight: 500;
}
.about-text p.body {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
}
.about-text .text-link {
  margin-top: 36px;
}

/* Download */
.cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  border-radius: 24px;
  padding: 72px 64px 0;
  min-height: 560px;
}
.cta .copy {
  padding-bottom: 72px;
}
.cta .h1 {
  margin-top: 28px;
  font-size: clamp(40px, 4.4vw, 64px);
}
.cta .lead {
  margin-top: 40px;
  max-width: 30ch;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 196px;
  min-height: 66px;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--navy);
  text-decoration: none;
}
.store svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.store small {
  display: block;
  font-size: 11px;
}
.store strong {
  display: block;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
}
a.store:hover {
  box-shadow: 0 0 0 3px var(--orange);
}
.store[aria-disabled='true'] {
  opacity: 0.9;
}
.cta-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--on-navy-muted);
}
.phone-wrap {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(300px, 100%);
}
.phone {
  transform: rotate(6deg) translateY(24px);
  border-radius: 40px;
  border: 8px solid #f2f2f2;
  overflow: hidden;
  background: #f2f2f2;
  box-shadow: 0 24px 60px rgb(0 0 0 / 35%);
  margin-bottom: -60px;
}
.phone img {
  width: 100%;
}
.unlock {
  position: absolute;
  left: -64px;
  top: 58%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  white-space: nowrap;
  z-index: 2;
}
.unlock::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--on-navy);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand img {
  width: 200px;
}
.footer-brand p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--on-navy-muted);
  max-width: 16ch;
}
.footer-col h2 {
  font-size: 15px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.footer-col a,
.footer-bottom a {
  text-decoration: none;
  color: var(--on-navy-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover,
.footer-bottom a:hover {
  color: var(--on-navy);
}
.footer-col svg {
  width: 10px;
  height: 10px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px;
  border-top: 1px solid var(--navy-line);
  font-size: 14px;
  color: var(--on-navy-muted);
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* ---------- Inner pages ---------- */

.page-hero {
  padding-block: 56px 72px;
}
.page-hero .h1 {
  margin-top: 24px;
  font-size: clamp(38px, 4.6vw, 64px);
}
.page-hero .lead {
  margin-top: 24px;
  max-width: 52ch;
}
.page-hero .hero-actions {
  margin-top: 36px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.info-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1080px) {
  .info-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .info-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
}
.info-card h3 {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 600;
}
.info-card p,
.info-card li {
  color: var(--muted);
}
.info-card p {
  margin-top: 10px;
}
.info-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}
.info-card a {
  color: var(--navy);
  font-weight: 600;
}
.steps-list {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.steps-list li::before {
  content: '0' counter(step);
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 30px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.steps-list strong {
  display: block;
  font-size: 18px;
}
.steps-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.figure-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.figure-row:last-child {
  border-bottom: 0;
}
.figure-row b {
  white-space: nowrap;
}
.note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Legal pages */
.legal {
  max-width: 820px;
}
.legal .draft {
  margin-bottom: 32px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: #fdefe6;
  color: var(--orange-text);
  font-weight: 500;
}
.legal h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.legal h2 {
  font-size: 24px;
  margin: 48px 0 16px;
}
.legal h3 {
  font-size: 19px;
  margin: 32px 0 12px;
}
.legal p,
.legal ul,
.legal ol {
  margin: 0 0 16px;
}
.legal li + li {
  margin-top: 8px;
}
.legal a {
  color: var(--navy);
  font-weight: 600;
}
.legal .table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
}
.legal table {
  border-collapse: collapse;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.legal .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.legal .card h2 {
  margin-top: 0;
}
.legal .lead {
  margin-bottom: 32px;
}
.legal .path {
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav {
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 16px;
  }
  .site-header .bar {
    min-height: 72px;
    gap: 12px;
  }
  .logo img {
    width: 128px;
  }
  .site-header .bar > .btn {
    margin-left: auto;
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }
  .site-header .bar > .btn svg {
    display: none;
  }
  .nav {
    display: none;
  }
  .menu-button {
    display: inline-grid;
    place-items: center;
  }
  .mobile-menu:not([hidden]) {
    display: block;
    border-bottom: 1px solid var(--navy-line);
  }
  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 8px 0 16px;
  }
  .mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    text-decoration: none;
    color: var(--on-navy);
  }
  .mobile-menu a[aria-current='page'] {
    color: var(--orange);
  }

  .hero {
    padding-top: 24px;
  }
  .hero-grid,
  .media-grid,
  .split-head,
  .cta {
    grid-template-columns: 1fr;
  }
  .hero .pill {
    display: none;
  }
  .hero .h1 {
    margin-top: 8px;
  }
  .hero .lead,
  .hero-actions {
    margin-top: 24px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-note {
    display: none;
  }
  .hero-photo img {
    aspect-ratio: 4 / 3;
  }
  .status-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 16px;
  }
  .status-card .dot {
    display: grid;
  }
  .status-card strong {
    font-size: 16px;
  }
  .status-card small {
    display: none;
  }

  .cards-3,
  .features {
    grid-template-columns: 1fr;
  }
  .split-head {
    margin-bottom: 32px;
  }
  .split-head .lead {
    padding-top: 0;
  }
  .feature {
    border-top: 0;
    padding: 12px 0 20px;
  }

  /* Text first, photo after, on the drive section. */
  .media-grid.reverse-mobile .photo {
    order: 2;
  }
  .media-text .btn {
    width: 100%;
  }

  .cta {
    padding: 40px 24px 0;
    border-radius: 20px;
  }
  .cta .copy {
    padding-bottom: 8px;
  }
  .stores {
    flex-direction: column;
  }
  .store {
    width: 100%;
  }
  .phone-wrap {
    width: 240px;
    margin-top: 24px;
  }
  .unlock {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}
