/* MyTruckMate — modern rebuild */
:root {
  --red: #d42b2b;
  --red-dark: #b31f1f;
  --dark: #10141a;
  --slate: #1a212b;
  --ink: #212832;
  --gray: #5b6572;
  --line: #e6e9ee;
  --bg: #f6f7f9;
  --white: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(16, 20, 26, 0.08);
  --shadow-md: 0 6px 24px rgba(16, 20, 26, 0.10);
  --shadow-lg: 0 20px 60px rgba(16, 20, 26, 0.22);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.04em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--gray); margin-top: 14px; font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer; border: 0;
}
.btn-red {
  background: var(--red); color: #fff;
  box-shadow: 0 8px 24px rgba(212, 43, 43, 0.35);
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-cta {
  display: inline-block;
  background: var(--red); color: #fff !important;
  padding: 12px 28px; border-radius: 999px;
  white-space: nowrap; line-height: 1.2;
  box-shadow: 0 4px 14px rgba(212, 43, 43, 0.3);
}
.nav-cta:hover { background: var(--red-dark); }
.nav-burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 46px; height: 46px; padding: 11px;
  border-radius: 12px; transition: background 0.2s;
}
.nav-burger:hover { background: rgba(16, 20, 26, 0.06); }
.nav-burger span {
  display: block; width: 24px; height: 3px; background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-burger span + span { margin-top: 5px; }
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% -10%, #232d3b 0%, var(--dark) 55%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 80%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center;
  padding: 90px 0 110px;
}
.hero h1 .accent { color: var(--red); }
.hero-sub { color: #aeb7c2; font-size: 1.15rem; margin: 22px 0 32px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-badges { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px; padding: 9px 18px;
  color: #fff; transition: background 0.15s, transform 0.15s;
}
.store-badge:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge .sb-text { line-height: 1.15; text-align: left; }
.store-badge .sb-text small { display: block; font-size: 0.66rem; color: #aeb7c2; }
.store-badge .sb-text strong { font-size: 0.98rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: #cdd4dc;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 16px; border-radius: 999px;
}
.chip svg { width: 15px; height: 15px; color: #4ecb71; }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% 0 0 12%;
  background: radial-gradient(closest-side, rgba(212,43,43,0.35), transparent);
  filter: blur(30px);
}
.hero-visual img {
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Stat bar ---------- */
.statbar { background: var(--red); color: #fff; }
.statbar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center; padding: 30px 0; gap: 20px;
}
.stat b { font-family: var(--font-head); font-size: 1.9rem; display: block; line-height: 1.1; }
.stat span { font-size: 0.85rem; opacity: 0.92; }

/* ---------- Feature cards ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg); }
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,43,43,0.1); color: var(--red);
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 0.96rem; }

/* ---------- Split sections ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
}
.split.rev .split-media { order: 2; }
.split-media { position: relative; display: flex; justify-content: center; }
.split-media .blob {
  position: absolute; inset: 6%;
  background: radial-gradient(closest-side, rgba(212,43,43,0.14), transparent);
  border-radius: 50%;
}
.split-media img { position: relative; }
.phone-shot {
  max-height: 560px; width: auto;
  filter: drop-shadow(0 24px 48px rgba(16,20,26,0.28));
}
.doc-shot {
  max-height: 520px; width: auto; border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.split-copy h2 { margin-bottom: 18px; }
.split-copy > p { color: var(--gray); font-size: 1.05rem; margin-bottom: 24px; }
.checklist { list-style: none; }
.checklist li {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 9px 0; color: var(--ink); font-size: 1rem;
}
.checklist li svg { width: 21px; height: 21px; color: var(--red); flex: none; margin-top: 3px; }
.checklist li b { font-weight: 700; }

/* ---------- FedEx Ground band ---------- */
.fedex-band {
  position: relative; color: #fff; padding: 110px 0;
  background:
    linear-gradient(100deg, rgba(13,16,22,0.94) 0%, rgba(13,16,22,0.88) 42%, rgba(13,16,22,0.45) 75%, rgba(13,16,22,0.35) 100%),
    url("../assets/web/fedex-trucks.jpg") center 62% / cover no-repeat;
}
.fedex-band .split-copy { max-width: 600px; }
.fedex-band .split-copy > p { color: #c6cdd6; font-size: 1.05rem; margin-bottom: 24px; }
.fedex-band .checklist li { color: #e6e9ee; }
.fedex-band .btn { margin-top: 26px; }
.fedex-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(212,43,43,0.16); border: 1px solid rgba(212,43,43,0.5);
  color: #ff9b9b; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 18px;
}

/* ---------- Video embed ---------- */
.video-wrap {
  position: relative; max-width: 880px; margin: 0 auto 64px;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #000;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* dark variant */
.section.dark { background: linear-gradient(145deg, var(--slate), var(--dark)); color: #fff; }
.section.dark .split-copy > p, .section.dark .card p { color: #aeb7c2; }
.section.dark .checklist li { color: #e6e9ee; }
.section.dark .section-head p { color: #aeb7c2; }

/* ---------- Screens strip ---------- */
.screens-strip {
  display: flex; gap: 28px; overflow-x: auto; padding: 10px 4px 26px;
  scroll-snap-type: x mandatory;
}
.screens-strip::-webkit-scrollbar { height: 8px; }
.screens-strip::-webkit-scrollbar-thumb { background: #cfd5dd; border-radius: 4px; }
.screens-strip figure { flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.screens-strip img {
  height: 460px; width: auto; border-radius: 22px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}
.screens-strip img:hover { transform: scale(1.03); }
.screens-strip figcaption { margin-top: 14px; font-weight: 600; font-size: 0.9rem; color: var(--gray); }

/* ---------- Pricing ---------- */
.trial-banner {
  max-width: 760px; margin: 0 auto 54px;
  background: linear-gradient(120deg, var(--red), #e85454);
  color: #fff; border-radius: var(--radius);
  padding: 26px 34px; text-align: center;
  box-shadow: 0 14px 40px rgba(212,43,43,0.35);
}
.trial-banner b { font-family: var(--font-head); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.03em; }
.trial-banner span { display: block; margin-top: 4px; font-size: 0.98rem; opacity: 0.95; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.price-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 34px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.featured { border: 2px solid var(--red); position: relative; }
.price-card.featured .tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { color: var(--gray); font-size: 1rem; letter-spacing: 0.1em; }
.price-card .amount { font-family: var(--font-head); font-size: 3.4rem; font-weight: 700; color: var(--ink); margin: 14px 0 2px; }
.price-card .amount small { font-size: 1.1rem; color: var(--gray); font-weight: 400; }
.price-card .per { color: var(--gray); font-size: 0.92rem; margin-bottom: 22px; }
.price-card ul { list-style: none; text-align: left; margin: 0 auto 28px; color: var(--gray); font-size: 0.93rem; flex: 1; }
.price-card ul li { padding: 6px 0 6px 26px; position: relative; }
.price-card ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800;
}
.price-card .btn { width: 100%; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(255,255,255,0.08), transparent),
    linear-gradient(120deg, var(--red-dark), var(--red));
  color: #fff; text-align: center; padding: 90px 24px;
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.cta-band p { opacity: 0.95; font-size: 1.1rem; margin-bottom: 34px; }
.cta-band .btn { background: #fff; color: var(--red); }
.cta-band .btn:hover { background: #f3f3f3; }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: #9aa4b0; padding: 70px 0 34px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 {
  font-family: var(--font-head); text-transform: uppercase; color: #fff;
  font-size: 0.95rem; letter-spacing: 0.08em; margin-bottom: 18px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #9aa4b0; font-size: 0.95rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 34px; }
.footer-about { font-size: 0.92rem; max-width: 300px; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact svg { width: 17px; height: 17px; color: var(--red); flex: none; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 26px; font-size: 0.85rem;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: radial-gradient(900px 400px at 70% -20%, #232d3b 0%, var(--dark) 60%);
  color: #fff; text-align: center; padding: 72px 24px;
}
.page-hero p { color: #aeb7c2; max-width: 640px; margin: 14px auto 0; font-size: 1.08rem; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0 70px; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-badges, .hero-chips { justify-content: center; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 44px; }
  .split.rev .split-media { order: 0; }
  .cards, .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .statbar-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    background: linear-gradient(160deg, var(--slate), var(--dark));
    flex-direction: column; gap: 0;
    padding: 14px 22px calc(26px + env(safe-area-inset-bottom));
    border-bottom: 3px solid var(--red);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    display: flex; visibility: hidden; opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; }
  .nav-links li { width: 100%; }
  .nav-links li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-links li:has(.nav-cta) { border-top: 0; }
  .nav-links a {
    display: block; padding: 16px 6px;
    color: #e6e9ee; font-size: 1.05rem;
  }
  .nav-links a:hover, .nav-links a.active { color: #fff; }
  .nav-links a.active { color: var(--red); }
  .nav-links a.active::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 10px; vertical-align: 2px; }
  .nav-links .nav-cta {
    display: block; width: 100%; margin: 16px 0 0;
    padding: 16px 28px; text-align: center;
    font-size: 1.05rem; font-weight: 700;
    border-radius: 14px; color: #fff !important;
    box-shadow: 0 8px 24px rgba(212, 43, 43, 0.4);
  }
  .nav-burger { display: block; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .screens-strip img { height: 380px; }
}
