/* TLS drivers landing v2. Apple-style restraint: one typeface (Geist), sentence case, big type, quiet surfaces.
   Brand colors from the TLS logo: steel #487bbd (deep #2c5a96 for text/CTA), teal #48bea6, cyan #19bcdd. */
:root {
  --ink: #0f1b2b;
  --ink-2: #4b5563;          /* 7.4:1 on --bg */
  --ink-3: #6b7280;          /* 4.8:1 on --bg */
  --bg: #fbfbfd;
  --alt: #f3f4f7;
  --paper: #ffffff;
  --line: rgba(15, 27, 43, .1);
  --blue: #2c5a96;
  --blue-h: #234c80;
  --teal: #48bea6;
  --font: "Geist", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -.011em; }
::selection { background: rgba(72, 190, 166, .35); }
img, svg, video { display: block; }
a { color: var(--blue); text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 44px); margin-inline: auto; }

/* ---------- pills & links ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font: 500 15px/1 var(--font); letter-spacing: -.01em;
  height: 40px; padding: 0 20px; border-radius: 999px; transition: background .2s var(--ease), transform .2s var(--ease);
}
.pill:hover { background: var(--blue-h); }
.pill:active { transform: scale(.98); }
.pill[disabled] { opacity: .55; cursor: progress; }
.pill-sm { height: 30px; padding: 0 14px; font-size: 13px; }
.pill-lg { height: 52px; padding: 0 28px; font-size: 17px; }
.pill-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.pill-ghost:hover { background: rgba(44, 90, 150, .06); }
.link { font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 251, 253, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav-in { height: 52px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -.015em; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-call { color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.nav-call:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(calc(100svh - 52px), 820px); display: flex; align-items: center; padding: 64px 0; isolation: isolate; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #8d969c url(img/road-poster.jpg) center / cover; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 18, 30, .78) 0%, rgba(10, 18, 30, .35) 45%, rgba(10, 18, 30, .05) 75%), linear-gradient(90deg, rgba(10, 18, 30, .35), rgba(10, 18, 30, 0) 60%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: end; }
.hero-copy { padding-bottom: 6px; }
.kicker { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: #7fe0cb; letter-spacing: -.01em; }
.kicker-dark { color: #1f7f6c; }
h1 { margin: 0; font-size: clamp(56px, 8vw, 104px); line-height: .98; font-weight: 600; letter-spacing: -.05em; text-wrap: balance; }
.lede { margin: 22px 0 0; max-width: 26ch; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; color: rgba(255, 255, 255, .86); letter-spacing: -.02em; }

/* ---------- form ---------- */
.apply, .done { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 30px 28px 24px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55); }
.apply h2, .done h2 { margin: 0 0 18px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.field { display: block; border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.field > span, .field legend { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.field em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input {
  width: 100%; height: 48px; padding: 0 14px; font: 400 17px var(--font); color: var(--ink); letter-spacing: -.01em;
  background: var(--alt); border: 1px solid transparent; border-radius: 12px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input::placeholder { color: #9aa1ab; }
.field input:focus { outline: none; background: var(--paper); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(44, 90, 150, .14); }
.field[data-invalid] input { border-color: #c4314b; }
.field[data-invalid] .seg { box-shadow: inset 0 0 0 1px #c4314b; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--alt); border-radius: 12px; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.seg span { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 9px; font-size: 14px; font-weight: 500; text-align: center; line-height: 1.1; cursor: pointer; color: var(--ink-2); transition: background .2s var(--ease), color .2s, box-shadow .2s; }
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 27, 43, .16), 0 0 0 .5px rgba(15, 27, 43, .06); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply .pill-lg { width: 100%; margin-top: 8px; }
.status { margin: 10px 0 0; font-size: 14px; font-weight: 500; color: #c4314b; }
.status:empty { display: none; }
.consent { margin: 14px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.done:focus { outline: none; }
.done-check { width: 48px; height: 48px; margin-bottom: 16px; }
.done-check circle { fill: var(--teal); }
.done-check path { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.done p { margin: 0; color: var(--ink-2); }
.done-links { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- statement (words light up on scroll) ---------- */
.statement { padding: 160px 0 150px; }
.lit { margin: 0; max-width: 20ch; font-size: clamp(36px, 5.4vw, 72px); line-height: 1.06; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.lit .w { color: #d3d6dc; transition: color .35s var(--ease); }
.lit .w.on { color: var(--ink); }

/* ---------- section type ---------- */
.h2 { margin: 0; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.sub { margin: 16px 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 40ch; letter-spacing: -.015em; }

/* ---------- lineup ---------- */
.lineup { padding: 40px 0 120px; text-align: center; }
.lineup .sub { margin-inline: auto; }
.lineup-row { display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 3vw, 48px); margin: 64px calc(50% - min(50vw - 24px, 680px)) 0; }
.veh { margin: 0; flex: var(--len) 1 0; min-width: 0; }
.veh img { width: 100%; height: auto; }
.veh figcaption { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 17px; }
.veh figcaption b { font-weight: 600; }
.veh figcaption span { color: var(--ink-3); }

/* ---------- app ---------- */
.app { background: var(--alt); padding: 140px 0; overflow: hidden; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.app-copy .link { display: inline-block; margin-top: 26px; font-size: 17px; }
.phones { position: relative; height: 600px; }
.phone {
  position: absolute; width: 270px; aspect-ratio: 9 / 19.2; border-radius: 46px; background: #11161d; padding: 10px;
  box-shadow: 0 40px 80px -30px rgba(15, 27, 43, .45), inset 0 0 0 1.5px #2a313b;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; }
.phone-front { left: 50%; top: 10px; transform: translateX(-12%); z-index: 2; }
.phone-back { left: 50%; top: 70px; transform: translateX(-92%) scale(.92); transform-origin: top right; opacity: .96; }

/* ---------- steps ---------- */
.steps-sec { padding: 150px 0 120px; }
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.steps .n { display: block; font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -.05em; color: #d3d6dc; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 22px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.steps p { margin: 0; color: var(--ink-2); max-width: 30ch; }

/* ---------- specs ---------- */
.specs { padding: 40px 0 150px; }
.spec-list { margin: 48px 0 0; border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.spec-list dd { margin: 0; font-size: 19px; line-height: 1.45; color: var(--ink); letter-spacing: -.015em; }
.tbc { color: var(--ink-3); font-style: italic; }

/* ---------- last ---------- */
.last { background: var(--alt); padding: 130px 0; text-align: center; }
.last-in { display: flex; flex-direction: column; align-items: center; }
.last-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.link-quiet { margin-top: 40px; color: var(--ink-3); font-size: 15px; font-weight: 400; }

.foot { padding: 28px 0 40px; font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--line); background: var(--alt); }
.foot p { margin: 0 0 6px; }
.foot b { color: var(--ink-2); font-weight: 600; }
.foot a { color: var(--ink-2); }
.foot a:hover { text-decoration: underline; }
.foot-note { margin-top: 12px !important; }

.dock { display: none; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-form { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-form { animation-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .lit .w { color: var(--ink); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; }
  .app-grid { grid-template-columns: 1fr; }
  .phones { height: 560px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-call { display: none; }
  .hero { display: block; min-height: 0; padding: 0; color: var(--ink); }
  .hero-media { position: relative; height: 300px; }
  .hero-media video { transform: none; }
  .hero-media::after { background: linear-gradient(180deg, rgba(10, 18, 30, 0) 30%, rgba(10, 18, 30, .72) 100%); }
  .hero-grid { display: block; width: 100%; }
  .hero-copy { position: absolute; left: 22px; right: 22px; top: 300px; transform: translateY(-100%); padding-bottom: 46px; color: #fff; }
  .hero .kicker { font-size: 14px; margin-bottom: 6px; color: rgba(255, 255, 255, .9); }
  h1 { font-size: 46px; }
  .lede { display: none; }
  .hero-form { position: relative; margin: -26px 10px 0; }
  .apply, .done { padding: 24px 18px 20px; border-radius: 24px; box-shadow: 0 20px 50px -24px rgba(15, 27, 43, .35); }
  .apply h2 { font-size: 21px; margin-bottom: 14px; }
  .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .statement { padding: 96px 0 88px; }
  .lit { font-size: 34px; }
  .lineup { padding: 8px 0 96px; }
  .lineup-row { flex-direction: column; align-items: center; gap: 36px; margin-top: 44px; }
  .veh { flex: none; width: calc(var(--len) / 36 * 100%); }
  .veh figcaption { margin-top: 12px; padding-top: 10px; }
  .app { padding: 96px 0; }
  .phones { height: 470px; }
  .phone { width: 210px; border-radius: 38px; padding: 8px; }
  .phone img { border-radius: 30px; }
  .phone-front { transform: translateX(-20%); }
  .phone-back { transform: translateX(-85%) scale(.9); }
  .steps-sec { padding: 96px 0 72px; }
  .steps { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
  .steps .n { font-size: 48px; }
  .steps h3 { margin-top: 10px; }
  .specs { padding: 24px 0 96px; }
  .spec-list { margin-top: 32px; }
  .spec-list > div { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .spec-list dt { font-size: 14px; color: var(--ink-3); font-weight: 500; }
  .spec-list dd { font-size: 18px; }
  .last { padding: 96px 0 110px; }
  .last-actions { flex-direction: column; gap: 16px; }
  .foot { padding-bottom: 110px; }
  .dock {
    display: flex; gap: 8px; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 8px; border-radius: 22px; background: rgba(251, 251, 253, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 10px 30px -10px rgba(15, 27, 43, .3), 0 0 0 .5px var(--line);
    transform: translateY(150%); transition: transform .35s var(--ease);
  }
  .dock.on { transform: none; }
  .dock .pill { flex: 1; height: 46px; font-size: 16px; }
  .dock-call { flex: 0 0 46px; display: grid; place-items: center; border-radius: 999px; background: var(--alt); }
  .dock-call svg { width: 19px; height: 19px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}
