/* FleetPM home page. Uses the color tokens from style.css (light and dark). */
body.home { background: var(--surface); }
body.home main { max-width: none; margin: 0; padding: 0; outline: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.site-header .brand-word { font-size: 1.2rem; }
.site-nav { display: flex; gap: 20px; margin-right: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--text); }
.auth-buttons { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 760px) {
  .header-inner { gap: 14px; }
  .site-nav { gap: 0; }
  .site-nav a:not(.nav-help) { display: none; }
  .auth-buttons .btn { padding: 8px 12px; }
}
@media (max-width: 360px) {
  .site-header .wrap { padding: 0 16px; }
  .header-inner { gap: 10px; }
  .site-header .brand-word { display: none; }
  .auth-buttons { gap: 6px; }
  .auth-buttons .btn { padding: 8px 10px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-light { background: #fff; color: #1d4ed8; }
.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 1.05rem; }

/* Hero */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)) 0%, var(--surface) 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--orange); font-weight: 700; font-size: 1.05rem; margin: 0 0 10px; } /* shown as written, so the P and M of FleetPM stand out */
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.02em; }
.hero-lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.center { text-align: center; }
.hero-shots { position: relative; padding-bottom: 40px; }
.hero-shots .shot-desktop { margin: 0; }
.hero-shots .shot-phone { position: absolute; right: -8px; bottom: 0; width: 30%; max-width: 190px; margin: 0; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shots .shot-phone { right: 4px; width: 32%; }
}

/* Screenshots */
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 2px 6px rgb(15 23 42 / .08); background: #fff; }
.shot-phone img { border-radius: 22px; border: 6px solid #111827; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; margin: 0 0 32px; }

/* Audience */
.audience { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.audience li { border: 1px solid var(--border); border-top: 4px solid var(--orange-bright); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.audience strong { font-size: 1.05rem; }
.audience span { color: var(--muted); }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid var(--border); }
.feature:first-of-type { border-top: 0; }
.feature.reverse .feature-copy { order: 2; }
.feature h3 { font-size: 1.5rem; margin: 0 0 10px; }
.feature p { color: var(--muted); font-size: 1.05rem; }
.feature-shots.phones { display: flex; gap: 20px; justify-content: center; }
.feature-shots.phones .shot-phone { width: 44%; max-width: 250px; margin: 0; }
.feature-shots .shot-desktop { margin: 0; }
/* A desktop screen with a phone over its corner, like the hero. */
.feature-shots.combo { position: relative; padding-bottom: 40px; }
.feature-shots.combo .shot-desktop { width: 88%; }
.feature-shots.combo .shot-phone { position: absolute; right: 0; bottom: 0; width: 30%; max-width: 190px; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature.reverse .feature-copy { order: 0; }
}

/* Coming soon */
.soon { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.soon li { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius); border: 1px dashed var(--border); background: var(--surface); }
.soon strong { font-size: 1.1rem; }
.soon li > span:not(.soon-tag):not(.soon-partners) { color: var(--muted); }
.soon-tag { align-self: flex-start; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-radius: 999px; padding: 2px 10px; }

.soon-previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 28px; }
.soon-previews figure { margin: 0; }
.soon-previews figcaption { margin-top: 10px; font-weight: 700; }
.soon-note { margin-top: 20px; color: var(--muted); font-size: .95rem; max-width: 760px; }
.soon li > span.soon-partners { color: var(--text); font-weight: 600; font-size: .95rem; }

/* Trust */
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.trust li { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.trust span { color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.price-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); text-align: center; }
.price-card h3 { margin: 0 0 8px; }
.price { font-size: 2rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.price span { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price.small { font-size: 1.5rem; }
.fits { color: var(--muted); margin: 6px 0 0; }

/* FAQ */
#faq details { border-bottom: 1px solid var(--border); padding: 6px 0; }
#faq summary { font-size: 1.08rem; padding: 12px 0; }
#faq details p { color: var(--muted); margin: 0 0 14px; }

/* Final CTA */
.final-cta { background: #1d4ed8; color: #fff; text-align: center; padding: 64px 0; }
.final-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; }
.final-cta p { opacity: .9; margin: 0 0 24px; font-size: 1.1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; margin-right: auto; }
.site-footer nav a { color: var(--muted); }
.site-footer p { margin: 0; }

/* The word mark shows on the home page header except on phones, where the light/dark button needs the room. */
@media (min-width: 421px) { .site-header .brand-word { display: inline; } }
@media (max-width: 420px) { .site-header .brand-word { display: none; } }

/* Help page: hero, topic cards, and the article below them. */
.site-nav a[aria-current="page"] { color: var(--orange); }
.help-hero { padding-bottom: 24px; }
.help-topics-section { padding: 40px 0 24px; }
.help-topics-section h2 { margin: 0 0 18px; }
.help-topics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.help-topic { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: start; align-content: start; height: 100%; box-sizing: border-box; padding: 16px; border: 1px solid var(--border); border-top: 4px solid var(--orange-bright); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.help-topic:hover, .help-topic:focus-visible { border-color: var(--accent); }
.help-topic .topic-icon { grid-row: span 2; width: 44px; height: 44px; box-sizing: border-box; color: var(--orange); padding: 10px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--orange-bright) 12%, var(--surface)); }
.help-topic strong { font-size: 1.05rem; }
.help-topic span { color: var(--muted); font-size: .92rem; }
.wrap.narrow > .help { padding: 8px 0 56px; }
.help h2 { font-size: 1.45rem; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); }
.help h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
@media (prefers-reduced-motion: reduce) { .help-topic { transition: none; } }
.site-header .theme-toggle + .auth-buttons { margin-left: 0; } /* the button sits right beside Sign in */
