/* ============================================================
   TruckSetu — design system v2
   Editorial, image-led, professional. No emoji; SVG icons.
   ============================================================ */

:root {
  --ink: #0e1726;
  --ink-2: #34415a;
  --muted: #687895;
  --line: #e7ebf3;
  --line-2: #d8deec;
  --bg: #f5f7fb;
  --bg-warm: #fbfaf7;
  --card: #ffffff;

  --brand: #1f5eff;
  --brand-d: #1646cc;
  --brand-soft: #eaf0ff;
  --amber: #f0a020;
  --amber-soft: #fdf1da;
  --green: #16a572;
  --green-soft: #e2f6ee;
  --red: #e23b48;
  --red-soft: #fde7e8;
  --navy: #0a1124;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --shadow: 0 12px 28px rgba(16,24,48,.08);
  --shadow-lg: 0 30px 60px -18px rgba(16,24,48,.28);
  --maxw: 1180px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,h5 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 660px; line-height: 1.7; }
.center .lead { margin-inline: auto; }
.maxw-head { max-width: 680px; }
.center .maxw-head { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  font-size: .76rem; color: var(--brand); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.center .eyebrow { justify-content: center; }

/* ---------- SVG icons ---------- */
.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.ic-lg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: .97rem;
  padding: 13px 22px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s, box-shadow .25s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -8px rgba(31,94,255,.6); }
.btn--primary:hover { background: var(--brand-d); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: #16203c; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--white { background: #fff; color: var(--ink); }
.btn--lg { padding: 16px 28px; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn .ic { width: 19px; height: 19px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #aebbd6; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; gap: 22px; height: 38px; }
.topbar a { color: #cdd8ef; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .spacer { margin-left: auto; }
.topbar .ic { width: 15px; height: 15px; stroke-width: 2; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 1.22rem; color: var(--ink); letter-spacing: -.02em; }
.brand__mark { width: 38px; height: 38px; }
.brand b { color: var(--brand); }
.nav__links { display: flex; gap: 4px; margin-left: 14px; align-items: center; }
.nav__links a { color: var(--ink-2); font-weight: 500; padding: 9px 13px; border-radius: 9px; font-size: .94rem; }
.nav__links a:hover { color: var(--ink); background: var(--brand-soft); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; width: 44px; height: 42px; cursor: pointer; color: var(--ink); }
.nav__burger .ic { margin: 0 auto; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; background: linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; top: -120px; right: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(31,94,255,.10), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 70px 0 88px; position: relative; z-index: 1; }
.hero__pill { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 8px; font-size: .82rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.hero__pill .tag { background: var(--green-soft); color: var(--green); padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); font-weight: 800; }
.hero h1 .u { background: linear-gradient(120deg, var(--brand), #5b8bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .u2 { background: linear-gradient(120deg, var(--green), #2fce9a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__cta { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 28px; }
.hero__meta { display: flex; align-items: center; gap: 16px; margin-top: 26px; color: var(--muted); font-size: .9rem; }
.hero__avatars { display: flex; }
.hero__avatars img { width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid #fff; margin-left: -12px; box-shadow: var(--shadow-sm); object-fit: cover; }
.hero__avatars img:first-child { margin-left: 0; }
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars .ic { width: 15px; height: 15px; fill: var(--amber); stroke: var(--amber); }

.hero__media { position: relative; }
.hero__photo { border-radius: 22px; box-shadow: var(--shadow-lg); width: 100%; height: 480px; object-fit: cover; }
.hero__quote {
  position: absolute; left: -28px; bottom: 34px; width: 290px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-lg);
}
.hero__quote h5 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.qrow { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ink-2); padding: 4px 0; }
.qrow b { color: var(--ink); }
.qrow--total { border-top: 1px dashed var(--line-2); margin-top: 6px; padding-top: 9px; }
.qrow--total b { color: var(--green); font-size: 1.15rem; font-family: var(--display); }
.hero__badge {
  position: absolute; right: -18px; top: 28px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
}
.hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); animation: pulse 1.6s infinite; }
.hero__badge span { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- Logo trust bar ---------- */
.logobar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.logobar__inner { padding: 28px 0; }
.logobar p { text-align: center; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.logos { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.logo-item { display: inline-flex; align-items: center; gap: 9px; color: #94a1ba; font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; opacity: .85; transition: .2s; }
.logo-item:hover { color: var(--ink-2); opacity: 1; }
.logo-item .ic { width: 22px; height: 22px; stroke-width: 2; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem,3.4vw,2.7rem); color: var(--ink); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .92rem; }
.stat--divide { border-left: 1px solid var(--line); }

/* ---------- Editorial split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--rev .split__media { order: -1; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.media-frame { position: relative; }
.media-frame .float-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center;
}
.float-card .ic-wrap { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float-card b { display: block; font-family: var(--display); font-size: 1.02rem; }
.float-card span { font-size: .8rem; color: var(--muted); }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem; padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.kicker .ic { width: 16px; height: 16px; }
.kicker--amber { background: var(--amber-soft); color: #a9690a; }
.kicker--green { background: var(--green-soft); color: #0c7a52; }
.kicker--blue { background: var(--brand-soft); color: var(--brand-d); }

/* feature list with icons */
.flist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 18px; }
.flist li { display: flex; gap: 14px; }
.flist .fic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.flist h4 { font-size: 1rem; margin: 2px 0 3px; }
.flist p { margin: 0; color: var(--muted); font-size: .94rem; }

.ic-blue { background: var(--brand-soft); color: var(--brand); }
.ic-amber { background: var(--amber-soft); color: #b8770c; }
.ic-green { background: var(--green-soft); color: var(--green); }
.ic-red { background: var(--red-soft); color: var(--red); }

/* ---------- Problem cards ---------- */
.pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 46px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard__img { height: 180px; width: 100%; object-fit: cover; }
.pcard__body { padding: 26px; }
.pcard .badge-red { display: inline-flex; align-items: center; gap: 7px; background: var(--red-soft); color: var(--red); font-size: .76rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.pcard ul { list-style: none; padding: 0; margin: 14px 0 0; }
.pcard li { display: flex; gap: 10px; color: var(--ink-2); font-size: .94rem; padding: 7px 0; border-top: 1px solid var(--line); }
.pcard li:first-child { border-top: 0; }
.pcard li .ic { color: var(--red); width: 18px; height: 18px; margin-top: 3px; }

/* ---------- Phone mockup ---------- */
.phone { width: 290px; margin: 0 auto; background: #0c1430; border-radius: 36px; padding: 12px; box-shadow: var(--shadow-lg); position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 6px; background: #283250; border-radius: 99px; z-index: 2; }
.phone__screen { background: #fff; border-radius: 26px; overflow: hidden; }
.phone__top { background: var(--brand); color: #fff; padding: 30px 18px 18px; }
.phone__top h5 { color: #fff; font-size: 1rem; margin: 0 0 2px; }
.phone__top span { font-size: .76rem; opacity: .85; }
.phone__route { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.14); border-radius: 12px; padding: 11px 13px; margin-top: 14px; }
.phone__route .ic { width: 18px; height: 18px; }
.phone__route div { font-size: .82rem; line-height: 1.3; }
.phone__route b { display: block; }
.phone__body { padding: 16px 18px 22px; }
.phone__line { display: flex; justify-content: space-between; font-size: .84rem; color: var(--ink-2); padding: 8px 0; border-bottom: 1px dashed var(--line); }
.phone__line b { color: var(--ink); }
.phone__total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 12px 14px; background: var(--green-soft); border-radius: 12px; }
.phone__total span { font-size: .82rem; color: #0c7a52; font-weight: 600; }
.phone__total b { font-family: var(--display); font-size: 1.4rem; color: var(--green); }
.phone__btn { margin-top: 14px; background: var(--brand); color: #fff; text-align: center; border-radius: 12px; padding: 12px; font-weight: 600; font-family: var(--display); font-size: .92rem; }

/* ---------- Calculator ---------- */
.calc { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.calc__grid { display: grid; grid-template-columns: 1.08fr .92fr; }
.calc__form { padding: 34px; }
.calc__out { padding: 34px; background: var(--navy); color: #e7ecf7; position: relative; }
.field { margin-bottom: 17px; }
.field > label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: .87rem; margin-bottom: 7px; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .78rem; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 11px;
  font-family: var(--font); font-size: .96rem; background: #fbfcfe; color: var(--ink); transition: .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.switches { display: grid; gap: 11px; margin: 4px 0 6px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }

.modes { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.mode { border: 1.5px solid var(--line-2); border-radius: 13px; padding: 13px 8px; cursor: pointer; text-align: center; background: #fbfcfe; transition: .15s; }
.mode input { display: none; }
.mode .ic { margin: 0 auto 6px; color: var(--muted); }
.mode b { display: block; font-family: var(--display); font-size: .92rem; }
.mode small { color: var(--muted); font-size: .72rem; }
.mode.is-active { border-color: var(--brand); background: var(--brand-soft); }
.mode.is-active .ic { color: var(--brand); }

.ai-box { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 16px; background: var(--bg-warm); margin-bottom: 20px; }
.ai-box .demo-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: #b8770c; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ai-box .demo-tag .ic { width: 15px; height: 15px; }

.calc__out h3 { color: #fff; }
.fair-badge { display: inline-flex; gap: 8px; align-items: center; background: rgba(22,165,114,.16); color: #4fe0ab; padding: 8px 13px; border-radius: 10px; font-size: .84rem; font-weight: 600; margin-bottom: 16px; }
.fair-badge .ic { width: 16px; height: 16px; }
.ometer { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 6px 0 18px; }
.ometer div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 11px; padding: 10px 12px; }
.ometer span { font-size: .72rem; color: #93a1c4; display: block; }
.ometer b { color: #fff; font-size: 1.04rem; font-family: var(--display); }
.oline { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: .93rem; color: #c2cce4; }
.oline b { color: #fff; font-weight: 600; }
.oline small { color: #8c9ac0; }
.oline--total { border-bottom: 0; border-top: 1.5px solid rgba(255,255,255,.2); margin-top: 8px; padding-top: 15px; font-size: 1.1rem; }
.oline--total b { color: #4fe0ab; font-size: 1.7rem; font-family: var(--display); }

.note { background: var(--amber-soft); border: 1px solid #f3dca6; color: #8a5d08; border-radius: 12px; padding: 13px 16px; font-size: .87rem; margin-top: 20px; display: flex; gap: 10px; align-items: flex-start; }
.note .ic { color: #b8770c; width: 19px; height: 19px; margin-top: 1px; }

/* ---------- Device / FleetGuard mockup ---------- */
.device { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.devcard { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 20px; box-shadow: var(--shadow-sm); transition: .2s; }
.devcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-2); }
.devcard .fic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 13px; }
.devcard h4 { font-size: 1.02rem; margin-bottom: 5px; }
.devcard p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; margin-top: 50px; position: relative; }
.step { position: relative; }
.step__num { width: 46px; height: 46px; border-radius: 13px; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 700; display: grid; place-items: center; margin-bottom: 16px; font-size: 1.1rem; }
.step h4 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 60px; right: -13px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }

/* ---------- Testimonials ---------- */
.tcards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tcard .quote-mark { color: var(--brand); opacity: .25; width: 38px; height: 38px; }
.tcard p { color: var(--ink-2); font-size: 1rem; flex: 1; margin: 10px 0 20px; }
.tcard__who { display: flex; align-items: center; gap: 13px; }
.tcard__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.tcard__who b { display: block; font-family: var(--display); font-size: .98rem; }
.tcard__who span { font-size: .82rem; color: var(--muted); }
.tcard .stars { margin-bottom: 4px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan.is-featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); transform: scale(1.025); position: relative; }
.plan.is-featured::after { content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 15px; border-radius: 999px; font-family: var(--display); }
.plan h3 { margin-bottom: 3px; }
.plan .plan-for { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.plan .price { font-family: var(--display); font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.plan .price small { font-size: .88rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; flex: 1; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; color: var(--ink-2); font-size: .93rem; }
.plan li .ic { color: var(--green); width: 18px; height: 18px; margin-top: 3px; flex: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 44px auto 0; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 22px; font-family: var(--display); font-weight: 600; font-size: 1.03rem; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__q .ic { transition: transform .25s; color: var(--brand); flex: none; }
.faq__item.open .faq__q .ic { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 22px 20px; color: var(--muted); margin: 0; }

/* ---------- CTA / contact ---------- */
.cta { position: relative; border-radius: 26px; overflow: hidden; color: #fff; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,15,33,.94), rgba(8,15,33,.74)); }
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 56px; align-items: center; }
.cta h2 { color: #fff; }
.cta .lead { color: #bcc7e0; }
.cta__contact { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; font-size: .94rem; color: #cdd8ef; }
.cta__contact a { color: #cdd8ef; display: inline-flex; align-items: center; gap: 10px; }
.cta__contact a:hover { color: #fff; }
.cta__contact .ic { color: #7f93c4; }
.form { background: #fff; border-radius: var(--radius); padding: 28px; color: var(--ink); box-shadow: var(--shadow-lg); }
.form h3 { margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border-radius: 11px; border: 1.5px solid var(--line-2); background: #fbfcfe; font-family: var(--font); font-size: .95rem; margin-bottom: 12px; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form .note-sm { font-size: .78rem; color: var(--muted); margin: 4px 0 0; }
.toast { background: var(--green-soft); color: #0c7a52; border: 1px solid #aee6cf; padding: 14px; border-radius: 12px; margin-top: 14px; display: none; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; }
.toast.show { display: flex; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #9eabc8; padding: 64px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand { color: #fff; }
.footer h5 { color: #fff; font-family: var(--display); margin: 0 0 14px; font-size: .92rem; }
.footer a { color: #9eabc8; display: block; padding: 5px 0; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer__about { max-width: 320px; margin: 16px 0 18px; font-size: .92rem; line-height: 1.7; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border: 1px solid #25304e; border-radius: 10px; display: grid; place-items: center; padding: 0; }
.socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer__bottom { border-top: 1px solid #1e2742; margin-top: 40px; padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   Auth (login / signup) page
   ============================================================ */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth__aside { position: relative; overflow: hidden; display: flex; }
.auth__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth__asideOverlay { position: absolute; inset: 0; background: linear-gradient(150deg, rgba(8,15,33,.86), rgba(8,15,33,.6)); }
.auth__asideInner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; padding: 56px; width: 100%; }
.auth__points { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.auth__points li { display: flex; align-items: center; gap: 11px; color: #dde5f5; font-size: .98rem; }
.auth__points .ic { color: #4fe0ab; width: 20px; height: 20px; }

.auth__main { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth__card { width: 100%; max-width: 420px; }
.auth__brandMobile { display: none; margin-bottom: 24px; }
.auth__tabs { display: flex; background: #eef1f7; border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.auth__tab { flex: 1; border: 0; background: none; padding: 11px; border-radius: 9px; font-family: var(--display); font-weight: 600; font-size: .94rem; color: var(--muted); cursor: pointer; transition: .15s; }
.auth__tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.auth__title { font-size: 1.7rem; margin-bottom: 6px; }
.auth__sub { color: var(--muted); margin-bottom: 24px; }
.auth__label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 7px; color: var(--ink); }
.auth__input { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: 12px; font-family: var(--font); font-size: .98rem; background: #fff; margin-bottom: 16px; color: var(--ink); }
.auth__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.auth__err { display: none; background: var(--red-soft); color: #b02530; border: 1px solid #f3c2c5; border-radius: 10px; padding: 11px 14px; font-size: .88rem; margin-bottom: 14px; }
.auth__err.show { display: block; }
.auth__alt { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 18px; }
.auth__note { background: var(--amber-soft); border: 1px solid #f3dca6; color: #8a5d08; border-radius: 11px; padding: 12px 14px; font-size: .82rem; margin-top: 18px; display: none; line-height: 1.5; }
.auth__back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .9rem; margin-top: 22px; }
.auth__back:hover { color: var(--ink); }

/* user chip + logout in dashboard header */
.user-chip { display: inline-flex; align-items: center; gap: 9px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 13px; font-size: .86rem; color: var(--ink-2); }
.user-chip .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .82rem; }
.logout-btn { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 13px; font-size: .86rem; font-weight: 600; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); }
.logout-btn:hover { border-color: var(--red); color: var(--red); }
.logout-btn .ic { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .auth__brandMobile { display: inline-flex; }
}

/* ============================================================
   Dashboard
   ============================================================ */
.dash-head { display: flex; align-items: center; gap: 14px; padding: 14px 22px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dash-head strong { font-family: var(--display); display: inline-flex; align-items: center; gap: 9px; }
.dash-head .live { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--green); font-weight: 700; }
.dash-head .live i { width: 9px; height: 9px; background: var(--green); border-radius: 50%; animation: pulse 1.4s infinite; }
.dash-head .demo-chip { margin-left: auto; background: var(--amber-soft); color: #8a5d08; border: 1px solid #f3dca6; font-size: .78rem; padding: 6px 12px; border-radius: 999px; font-weight: 600; }

.dash { display: grid; grid-template-columns: 320px 1fr 350px; min-height: calc(100vh - 70px - 38px - 60px); }
.dash__side { background: #fff; border-right: 1px solid var(--line); padding: 20px; overflow-y: auto; }
.dash__main { position: relative; }
#map { width: 100%; height: 100%; min-height: 480px; background: #dde5f1; }
.dash__alerts { background: var(--navy); color: #e7ecf7; padding: 20px; overflow-y: auto; }
.fleet-stat { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; margin-bottom: 18px; }
.fleet-stat .s { background: var(--bg); border: 1px solid var(--line); border-radius: 13px; padding: 13px; }
.fleet-stat .s b { font-family: var(--display); font-size: 1.55rem; display: block; }
.fleet-stat .s span { font-size: .77rem; color: var(--muted); }
.side-title { font-family: var(--display); font-weight: 700; font-size: .95rem; margin: 8px 0 13px; }
.truck-item { border: 1px solid var(--line); border-radius: 13px; padding: 13px; margin-bottom: 11px; cursor: pointer; transition: .15s; }
.truck-item:hover { border-color: var(--brand); background: #f7faff; }
.truck-item.is-alert { border-color: var(--red); background: var(--red-soft); }
.truck-item h4 { margin: 0 0 5px; font-size: .96rem; display: flex; justify-content: space-between; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--ok { background: var(--green); } .dot--warn { background: var(--amber); } .dot--bad { background: var(--red); }
.truck-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 5px; align-items: center; }
.truck-meta .ic { width: 14px; height: 14px; }
.bar { height: 7px; background: #eef1f7; border-radius: 5px; overflow: hidden; margin-top: 9px; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: 5px; transition: width .4s, background .4s; }
.alert-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-left: 4px solid var(--amber); border-radius: 11px; padding: 13px; margin-bottom: 11px; animation: pop .3s ease; }
.alert-card.sev-high { border-left-color: var(--red); }
.alert-card.sev-low { border-left-color: var(--green); }
.alert-card .a-head { display: flex; justify-content: space-between; font-size: .8rem; color: #93a1c4; align-items: center; }
.alert-card .a-head .ttl { display: inline-flex; align-items: center; gap: 7px; }
.alert-card .a-head .ic { width: 15px; height: 15px; }
.alert-card b { color: #fff; display: block; margin: 5px 0 2px; font-size: .94rem; }
.alert-card .a-sub { font-size: .83rem; color: #aeb9d6; }
.alert-card .a-act { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mini-btn { font-size: .76rem; padding: 7px 11px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #d7e0f3; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.mini-btn:hover { background: rgba(255,255,255,.14); }
.mini-btn .ic { width: 13px; height: 13px; }
.mini-btn--red { background: rgba(226,59,72,.16); border-color: rgba(226,59,72,.4); color: #ff9ea4; }
@keyframes pop { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.leaflet-fallback { display: grid; place-items: center; height: 100%; color: var(--muted); text-align: center; padding: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav__links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px; display: none; gap: 2px; box-shadow: var(--shadow); margin: 0; }
  .nav__links.show { display: flex; }
  .nav__links a { padding: 13px; }
  .nav__right .btn { display: none; }
  .nav__burger { display: grid; place-items: center; }
  .topbar .hide-sm { display: none; }
  .hero__grid, .split, .calc__grid, .pcards, .device, .cta__inner, .footer__grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .hero__media { margin-top: 10px; }
  .steps, .tcards, .plans, .stats { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .plan.is-featured { transform: none; }
  .dash { grid-template-columns: 1fr; }
  .dash__side, .dash__alerts { max-height: 340px; }
  #map { min-height: 320px; }
  .stat--divide { border-left: 0; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .steps, .tcards, .plans, .stats, .modes, .row3, .form-row, .device { grid-template-columns: 1fr; }
  .hero__photo { height: 340px; }
  .hero__quote { left: 8px; width: 250px; }
  .cta__inner { padding: 30px; }
  .calc__form, .calc__out { padding: 24px; }
}
