/* ============================================================
   FleetGenius marketing site — scoped layout for pub/index.html.
   Consumes theme.css variables only (linked separately); no app
   component CSS. Dark canvas throughout — data-mode="night" is set
   once, on <body>, matching the live site and the app's own shell
   (main.js's .shell/.login/.driver all default to night too; day
   mode exists in theme.css but isn't this product's look). Genius
   scene banners: see .scene-banner below.
   ============================================================ */

*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{
  font-family:'Instrument Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;
  font-size:18px;line-height:1.55;
}
h1,h2,h3,.voice{font-family:'Bricolage Grotesque','Instrument Sans',sans-serif;letter-spacing:-.02em;line-height:1.08;font-weight:560;margin:0}
h2,h3{text-wrap:balance}
a{color:inherit;text-decoration:none}
img{max-width:100%}
.num{font-variant-numeric:tabular-nums}
.wrap{max-width:1140px;margin:0 auto;padding:0 24px}
@media(min-width:768px){.wrap{padding:0 32px}}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border-radius:999px;font-weight:650;font-size:15.5px;cursor:pointer;border:none;transition:transform .12s ease,box-shadow .12s ease}
.btn:hover{transform:translateY(-1px)}
.btn:focus-visible{outline:3px solid var(--genie-400);outline-offset:2px}
.btn.primary{background:var(--ink);color:var(--surf);box-shadow:var(--e2)}
[data-mode="night"] .btn.primary{background:var(--ink);color:var(--genie-950)}
.btn.aura{background:var(--aura);color:#0E1424;font-weight:700;box-shadow:0 10px 32px -6px rgba(91,198,221,.4)}
.btn.aura:hover{box-shadow:0 14px 38px -6px rgba(91,198,221,.5)}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--hair2)}
.btn.sm{min-height:40px;padding:0 16px;font-size:14px}
.kicker{color:var(--genie);font-weight:650;font-size:13px;letter-spacing:.08em;text-transform:uppercase}
[data-mode="night"] .kicker{color:var(--genie-200)}
.chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--okbg);color:var(--ok)}

/* ---------- nav ---------- */
nav{position:sticky;top:0;z-index:40;background:color-mix(in srgb,var(--surf) 88%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--hair)}
nav .wrap{display:flex;align-items:center;gap:18px;height:66px}
.skip-link{position:absolute;left:-9999px;top:auto}
.skip-link:focus{left:16px;top:10px;z-index:60;background:var(--surf);color:var(--ink);padding:8px 14px;border-radius:8px;box-shadow:var(--e2)}
.brand{display:flex;align-items:center;gap:11px}
.brand img.wm{height:28px;width:auto;max-width:190px;object-fit:contain;display:block;flex:0 0 auto}
.brand img.wm.sm{height:22px}
nav .sp{flex:1}
.navlinks{display:flex;gap:18px;align-items:center}
nav a.link{color:var(--ink2);font-size:14.5px;font-weight:600}
nav a.link:hover{color:var(--ink)}
.navcta{display:flex;align-items:center;gap:10px}

.menutoggle{display:none;background:transparent;border:1px solid var(--hair2);border-radius:10px;width:44px;height:44px;align-items:center;justify-content:center;color:var(--ink)}
.menutoggle svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round}
@media(max-width:820px){
  .navlinks{display:none}
  .menutoggle{display:flex}
}
.mobilemenu{position:fixed;inset:66px 0 0 0;z-index:39;background:var(--surf);padding:20px 24px;display:flex;flex-direction:column;gap:4px;overflow-y:auto}
.mobilemenu[hidden]{display:none}
.mobilemenu a{display:block;padding:14px 4px;font-size:17px;font-weight:600;color:var(--ink);border-bottom:1px solid var(--hair)}
.mobilemenu .btn{margin-top:14px;width:100%}

/* ---------- hero ---------- */
/* Full-bleed: the image IS the hero background, not a boxed illustration
   beside the copy. A left-weighted scrim does the contrast work instead
   of a hard-edged panel, so the art reads as atmosphere, not a screenshot
   pasted into a frame. */
[data-mode="night"]{background:var(--bg);color:var(--ink)}
.hero{position:relative;overflow:hidden;min-height:620px;display:flex;align-items:center;padding:96px 0 56px}
.hero-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:78% 10%;z-index:0}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(14,20,36,.82) 0,rgba(14,20,36,.74) 38%,rgba(14,20,36,.32) 58%,rgba(14,20,36,.04) 86%);z-index:1}
.hero .wrap{position:relative;z-index:2;width:100%}
.hero-copy{max-width:600px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--genie-200);font-weight:650;margin-bottom:18px;border:1px solid var(--hair2);border-radius:999px;padding:6px 12px}
.hero h1{font-size:clamp(38px,5.4vw,64px);max-width:15ch;letter-spacing:-.02em}
.hero .grad{background:var(--aura);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p.lede{font-size:clamp(17px,2vw,20px);color:var(--ink2);max-width:50ch;margin-top:20px}
.cta{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}
.trust{display:flex;gap:20px;flex-wrap:wrap;margin-top:30px;color:var(--faint);font-size:13.5px}
.trust b{color:var(--ink);font-weight:600}
.heronote{margin-top:14px;font-size:14.5px;color:var(--mut)}
.heronote a{color:var(--genie-200);font-weight:600}
@media(max-width:640px){.hero{min-height:560px;padding:88px 0 48px}.hero::before{background:linear-gradient(180deg,rgba(14,20,36,.55) 0,rgba(14,20,36,.88) 55%,rgba(14,20,36,.96) 100%)}}

/* ---------- hero entrance: tight stagger, overshoot for impact ---------- */
/* Same cascade as the Figma motion pass: each element starts 60ms after the
   last (tight, not the usual 100-150ms) and eases past rest before settling
   (cubic-bezier(.34,1.56,.64,1), the standard "back" curve) for a snap
   rather than a drift. prefers-reduced-motion is handled globally below. */
@keyframes heroReveal{from{opacity:0;transform:translateY(var(--rise,28px))}to{opacity:1;transform:translateY(0)}}
@keyframes heroRevealPop{from{opacity:0;transform:translateY(var(--rise,40px)) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}
.hero-copy .eyebrow{--rise:28px;animation:heroReveal .42s cubic-bezier(.34,1.56,.64,1) both}
.hero-copy h1{--rise:40px;animation:heroRevealPop .5s cubic-bezier(.34,1.56,.64,1) both .06s}
.hero-copy p.lede{--rise:32px;animation:heroReveal .46s cubic-bezier(.34,1.56,.64,1) both .12s}
.hero-copy .cta{--rise:36px;animation:heroRevealPop .48s cubic-bezier(.34,1.56,.64,1) both .18s}
.hero-copy .heronote{--rise:24px;animation:heroReveal .4s cubic-bezier(.34,1.56,.64,1) both .22s}
.hero-copy .trust{--rise:24px;animation:heroReveal .4s cubic-bezier(.34,1.56,.64,1) both .26s}

/* ---------- promo film strip (moved out of the immediate hero flow) ---------- */
.filmstrip{padding:36px 0}
.filmstrip .lbl{display:flex;align-items:center;gap:8px;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--genie);font-weight:650;margin-bottom:12px}
.filmstrip .dot{width:8px;height:8px;border-radius:999px;display:inline-block;background:var(--ok)}
.herofilm{position:relative;border-radius:var(--r-l);overflow:hidden;border:1px solid var(--hair);box-shadow:var(--e2);background:#000;aspect-ratio:16/9}
.herofilm video{display:block;width:100%;height:100%;background:#000}
.film-end{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;background:radial-gradient(circle at 50% 38%,rgba(18,33,60,.75),rgba(14,20,36,.96))}
.film-end[hidden]{display:none}
.film-end .fe-inner{display:flex;flex-direction:column;align-items:center;gap:14px}
.film-end .fe-h{font-family:'Bricolage Grotesque';font-size:clamp(18px,3vw,26px);line-height:1.15;color:#EEF1F8;max-width:20ch}
.film-end .fe-replay{background:transparent;border:none;color:#AAB5CC;font:inherit;font-size:13.5px;cursor:pointer}
.film-end .fe-replay:hover{color:#EEF1F8}

/* ---------- sections ---------- */
section.pad{padding:40px 0}
@media(min-width:768px){section.pad{padding:56px 0}}
h2.big{font-size:clamp(26px,3.6vw,40px);margin-top:10px;max-width:22ch}
.subc{color:var(--ink2);font-size:17px;margin-top:26px;max-width:62ch}

/* screenshots — "See it in action" */
.demoCol{display:grid;gap:20px;margin-top:32px;align-items:center}
@media(min-width:860px){.demoCol{grid-template-columns:1.35fr .9fr;gap:26px}.demoCol.flip .demo-cap{order:1}}
.browser{background:var(--surf);border:1px solid var(--hair);border-radius:var(--r-l);box-shadow:var(--e1);overflow:hidden}
.browser .bar{display:flex;align-items:center;gap:8px;padding:11px 14px;border-bottom:1px solid var(--hair);background:var(--surf2)}
.browser .bar i{width:10px;height:10px;border-radius:999px;background:var(--hair2);display:inline-block}
.browser .bar .tag{margin-left:auto;font-size:11.5px;font-weight:650;color:var(--faint)}
.browser img{display:block;width:100%;height:auto}
.phone{justify-self:center;width:260px;background:#0E1424;border-radius:32px;padding:12px;box-shadow:var(--e2)}
.phone img{display:block;width:100%;height:auto;border-radius:22px}
.demo-cap h3{font-size:20px}
.demo-cap p{color:var(--mut);font-size:15px;margin-top:8px;max-width:44ch}

/* feature grid */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:36px}
@media(max-width:860px){.grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.grid{grid-template-columns:1fr}}
.feat{background:var(--surf);border:1px solid var(--hair);border-radius:var(--r-l);padding:24px}
.feat .ic{width:42px;height:42px;border-radius:12px;background:var(--surf2);border:1px solid var(--hair);color:var(--genie);display:grid;place-items:center;margin-bottom:14px}
.i24{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.feat h3{font-size:18px}
.feat p{color:var(--mut);font-size:14.5px;margin-top:8px}

/* stat tiles */
.vals{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px}
@media(max-width:820px){.vals{grid-template-columns:1fr}}
.val{background:var(--surf);border:1px solid var(--hair);border-radius:var(--r-l);padding:26px}
.val h3{font-size:18px;margin-top:6px}
.val p{color:var(--mut);font-size:15px;margin-top:8px}

/* how-it-works steps */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:32px}
@media(max-width:820px){.steps{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.steps{grid-template-columns:1fr}}
.step .n{width:34px;height:34px;border-radius:999px;background:var(--surf2);border:1px solid var(--hair2);color:var(--genie);display:grid;place-items:center;font-weight:700;margin-bottom:12px}
.step h3{font-size:16.5px}
.step p{color:var(--mut);font-size:14px;margin-top:6px}

/* bands (upgrade / drivers) */
.band{background:var(--surf);border:1px solid var(--hair);border-radius:var(--r-l);padding:40px;display:grid;grid-template-columns:1.25fr 1fr;gap:28px;align-items:center}
@media(max-width:720px){.band{grid-template-columns:1fr;padding:28px}}
.band h2{font-size:clamp(22px,3.2vw,30px)}
.band p{color:var(--ink2);margin-top:12px;font-size:16px}
.chips2{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.chips2 .c{background:var(--surf2);border:1px solid var(--hair2);border-radius:999px;padding:8px 14px;font-size:13px;color:var(--ink2)}

/* pricing */
.price{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:32px}
@media(max-width:900px){.price{grid-template-columns:1fr}}
.pcard{background:var(--surf);border:1px solid var(--hair);border-radius:var(--r-l);padding:28px}
.pcard.hot{border:1px solid var(--genie-400);box-shadow:0 0 0 1px var(--genie-200),var(--e1)}
.pcard h3{font-size:21px}
.pcard .p{color:var(--mut);margin-top:6px}
.pcard ul{margin:16px 0 0;padding-left:18px;color:var(--ink2);font-size:14.5px}
.pcard li{margin:6px 0}

/* final CTA — the hero's full-bleed treatment again, as a closing bookend */
.final{position:relative;overflow:hidden;border-radius:var(--r-l);min-height:420px;display:flex;align-items:center}
.final-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:78% 15%;z-index:0}
.final::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(14,20,36,.95) 0,rgba(14,20,36,.88) 45%,rgba(14,20,36,.55) 65%,rgba(14,20,36,.12) 100%);z-index:1}
.final-content{position:relative;z-index:2;padding:48px 40px;max-width:520px}
.final h2{font-size:clamp(26px,4vw,40px)}
.final p{color:var(--ink2);margin-top:12px;font-size:17px;max-width:48ch}
@media(max-width:640px){.final{min-height:360px}.final-content{padding:32px 24px}}

/* ---------- scene banners (the Genius) ---------- */
/* Same full-bleed treatment as the hero and final CTA: the image fills the
   box and a diagonal scrim carries the text directly over the picture —
   one consistent "Genius" moment throughout the page, not a separate card
   floating below the art. */
.scene-banner{position:relative;overflow:hidden;border-radius:var(--r-l);min-height:280px;display:flex;align-items:center;margin:24px 0 0;background:#0E1424}
.scene-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 20%;z-index:0}
.scene-banner::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(14,20,36,.92) 0,rgba(14,20,36,.68) 40%,rgba(14,20,36,.18) 72%,rgba(14,20,36,.02) 100%);z-index:1}
.scene-copy{position:relative;z-index:2;padding:32px 24px 32px 0;max-width:480px}
.scene-copy .kicker{color:var(--genie-200)}
.scene-copy h2{font-size:clamp(22px,3vw,30px);color:var(--ink);max-width:19ch;margin-top:8px}
@media(min-width:768px){
  .scene-banner{min-height:360px}
  .scene-copy{padding:0;max-width:560px}
}
.section-intro{max-width:22ch}
.section-intro + h2.section-h{margin-top:0}
h2.section-h{font-size:clamp(24px,3.2vw,34px);margin-top:12px}
.section-copy p.subc{margin-top:10px}

/* ---------- footer ---------- */
footer{padding:40px 0 60px;color:var(--faint);font-size:13.5px}
footer .wrap{display:flex;gap:18px;flex-wrap:wrap;align-items:center;border-top:1px solid var(--hair);padding-top:24px}
footer a{color:var(--mut)}
footer .sp{flex:1}
footer .legal{display:block;border-top:none;padding-top:8px}
footer .legal p{color:var(--faint);font-size:11.5px;line-height:1.65;margin:8px 0;max-width:none}
footer .legal strong{color:var(--mut)}

/* ---------- responsive tightening ---------- */
@media(max-width:640px){
  .hero h1{font-size:clamp(30px,8vw,40px);max-width:100%}
  .hero p.lede{font-size:16.5px}
  .cta .btn{flex:1 1 auto}
  section.pad{padding:32px 0}
  .band{padding:24px;border-radius:var(--r-l)}
  .final{padding:40px 20px}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
