/* The public landing page. Separate from style.css, which is the signed-in
   console and far more than one page needs. Same ground, same Inter, same blue. */

@font-face { font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap;
  src:url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:500; font-display:swap;
  src:url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:600; font-display:swap;
  src:url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:700; font-display:swap;
  src:url("../fonts/inter-700.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #0b0d12;
  --card: #14171e;
  --card-2: #1a1e27;
  --line: #2a2e3a;
  --text: #eef0f4;
  --text-2: #a3aab8;
  --accent: #2563eb;      /* white on this passes AA; the console's #3b82f6 does not */
  --accent-hover: #1d4ed8;
  --accent-text: #7fb0ff;
  --late: #f87171;
  --soon: #fbbf24;
  --ok: #4ade80;
  --radius: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, dl, dd { margin: 0; padding: 0; }
ol { list-style: none; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.028em; font-weight: 700; max-width: 20ch; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.012em; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 32px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  min-height: 50px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--card-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: rgb(11 13 18 / .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(42 46 58 / .6);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.012em; text-decoration: none; }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.mark svg { width: 20px; height: 20px; fill: #fff; }
.bar-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.bar-links a:not(.btn) { color: var(--text-2); text-decoration: none; transition: color .2s; }
.bar-links a:not(.btn):hover { color: var(--text); }
.bar-links a.btn { color: #fff; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
  min-height: min(calc(100dvh - 68px), 780px); padding-block: 40px;
}
h1 { font-size: clamp(46px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; }
/* What the page is about, in the words people search with - inside the h1
   so search engines read it as the heading, sized as a label so the line
   people read is still the short one. */
.h1-kicker {
  display: block; margin-bottom: 18px; font-size: 15px; line-height: 1.4;
  letter-spacing: .02em; font-weight: 600; color: var(--accent-text);
}
.lead { margin-top: 24px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-art { position: relative; aspect-ratio: 1 / 1.12; width: 100%; max-width: 560px; justify-self: end; }
.phone { position: absolute; width: 58%; filter: drop-shadow(0 28px 44px rgb(0 0 0 / .5)); }
.phone-back { left: 0; top: 8%; }
.phone-front { right: 0; top: 0; }

.works { padding-block: 8px 24px; }
.works p {
  border-block: 1px solid var(--line); padding-block: 20px; text-align: center;
  color: var(--text-2); font-size: 16px;
}
.works b { color: var(--text); font-weight: 600; }

/* How it works: one rule running through four steps */
.flow { padding-block: 96px 56px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px;
  background: var(--accent); transform-origin: left;
}
.steps li { position: relative; padding-top: 36px; }
.steps li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ground); border: 3px solid var(--accent-text);
}
.steps p { margin-top: 10px; color: var(--text-2); font-size: 16px; }

/* Features */
.features { padding-block: 56px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; min-width: 0;
}
.tile p { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.tile-pm { grid-column: span 7; }
.tile-trailers { grid-column: span 5; background: linear-gradient(160deg, #122238, var(--card) 70%); }
.tile-pti { grid-column: span 4; background: var(--accent); border-color: transparent; }
.tile-pti p { color: #e4edff; }
.tile-money { grid-column: span 4; }
.tile-more { grid-column: span 4; background: var(--card-2); }

.mini { margin-top: auto; padding-top: 24px; display: grid; gap: 8px; }
.mini-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px;
}
.mini-row b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-row small { display: block; color: var(--text-2); font-size: 13px; }
.mini-row > span:last-child { font-weight: 600; white-space: nowrap; font-size: 13px; }
.late { color: var(--late); } .soon { color: var(--soon); } .ok { color: var(--ok); } .muted { color: var(--text-2); }

.tile .big-figure { margin-top: auto; padding-top: 24px; font-size: 40px; font-weight: 700; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.big-figure small { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--text-2); }

/* Equipment */
.equip { padding-block: 56px; }
.equip-copy p { margin-top: 16px; max-width: 38em; color: var(--text-2); font-size: 18px; }
.shot { margin-top: 40px; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgb(37 99 235 / .4); }

/* Your fleet stays yours */
.yours { padding-block: 56px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.claims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.claims dt { font-weight: 600; font-size: 19px; letter-spacing: -.012em; }
.claims dd { margin-top: 8px; color: var(--text-2); font-size: 16px; }

/* Close */
.close { padding-block: 72px 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  border-top: 1px solid var(--line); padding-block: 28px; font-size: 14px; color: var(--text-2);
}
.foot span:first-child { color: var(--text); font-weight: 600; }
.foot a { text-underline-offset: 3px; }

/* Motion. Only .js pages hide anything, so a failed script still shows the page. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .steps::before { transform: scaleX(0); transition: transform 1.2s var(--ease) .15s; }
  .js .steps.in::before { transform: scaleX(1); }

  .hero-copy > *, .phone { animation: rise .8s var(--ease) backwards; }
  .lead { animation-delay: .07s !important; }
  .actions { animation-delay: .14s !important; }
  .phone-back { animation-delay: .2s; }
  .phone-front { animation-delay: .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Tablet */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 56px 32px; gap: 48px; }
  .hero-art { justify-self: center; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .tile-pm, .tile-trailers { grid-column: span 12; }
  .tile-pti, .tile-money, .tile-more { grid-column: span 12; }
  .yours { grid-template-columns: 1fr; gap: 36px; }
}

/* Phone: one column, 16px gutter */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .hide-sm { display: none; }
  .bar-in { height: 60px; }
  html { scroll-padding-top: 76px; }
  .hero { padding-block: 40px 24px; }
  .actions .btn { flex: 1 1 100%; }
  .steps, .claims { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  .flow { padding-block: 64px 40px; }
  .features, .equip, .yours { padding-block: 40px; }
  .tile { padding: 22px; }
  .mini-row { flex-wrap: wrap; gap: 4px 16px; }
  .close { padding-block: 48px 64px; }
  .close .btn { width: 100%; }
  .works p { text-align: left; }
}
