/* ==========================================================================
   FleetSense marketing site — custom styles layered on top of Tailwind.
   Colors/flat-shape language intentionally mirror the actual FleetSense
   product theme (ink background, orange accent, zero border-radius) so the
   marketing site and the real app feel like the same product.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0f0f11;
}

::selection {
  background: rgba(249, 115, 22, 0.35);
}

/* ---- Logo wordmark: now a self-contained SVG (see index.html) ----
   Fixed viewBox/width/height guarantees identical rendering in header
   and footer regardless of surrounding font-size/box-model context. */
.logo-svg {
  color: #fff;
  display: block;
}

/* ---- Nav ---- */
.mobile-link {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-link:last-child {
  border-bottom: none;
}

/* ---- Hero glow ---- */
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16) 0%, rgba(249, 115, 22, 0) 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-glow--bottom {
  top: auto;
  bottom: -30%;
}

/* ---- Browser mockup ---- */
.browser-frame {
  background: #0c0c0e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
}
.browser-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.browser-topbar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.browser-body {
  display: flex;
  min-height: 320px;
}
.mock-navbar {
  width: 140px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  display: none;
}
@media (min-width: 640px) {
  .mock-navbar { display: block; }
}
.mock-navitem {
  font-size: 11px;
  font-weight: 600;
  color: #9a9a9d;
  padding: 8px 16px;
  border-left: 2px solid transparent;
}
.mock-navitem--active {
  color: #f4f4f5;
  border-left-color: #F97316;
  background: rgba(249, 115, 22, 0.08);
}
.mock-content {
  flex: 1;
  padding: 20px;
}
.mock-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 640px) {
  .mock-kpi-row { grid-template-columns: repeat(4, 1fr); }
}
.mock-kpi {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-kpi-num {
  font-size: 18px;
  font-weight: 800;
  color: #f4f4f5;
}
.mock-kpi-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #71717a;
}
.mock-table {
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mock-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.7fr;
  gap: 8px;
  padding: 10px 14px;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
  color: #d4d4d8;
}
.mock-row:last-child {
  border-bottom: none;
}
.mock-row--head {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717a;
  background: rgba(255, 255, 255, 0.02);
}
.mock-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  width: fit-content;
}
.mock-badge--ok {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}
.mock-badge--warn {
  background: rgba(249, 115, 22, 0.15);
  color: #F97316;
}

/* ---- Feature tabs ---- */
.tab-btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a1a1aa;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.tab-btn:hover {
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.25);
}
.tab-btn.is-active {
  background: #F97316;
  border-color: #F97316;
  color: #0f0f11;
}
.tab-panel {
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Pricing detail cards ---- */
.pricing-card {
  background: #0f0f11;
  padding: 2.5rem;
}
.pricing-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.pricing-card-head .module-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}
.pricing-list {
  display: grid;
  gap: 0.9rem;
}
.pricing-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #d4d4d8;
  padding-left: 1.75rem;
  position: relative;
}
.pricing-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.5);
}
.pricing-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-55%) rotate(-45deg);
  width: 8px;
  height: 4px;
  border-left: 1.6px solid #F97316;
  border-bottom: 1.6px solid #F97316;
}

/* ---- Module cards ---- */
.module-card {
  background: #0f0f11;
  padding: 2rem;
  transition: background-color 0.2s ease;
}
.module-card:hover {
  background: #17171a;
}
.module-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  color: #F97316;
  margin-bottom: 1.25rem;
}
.module-icon svg {
  width: 22px;
  height: 22px;
}
.module-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #f4f4f5;
}
.module-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #a1a1aa;
}

/* ---- Value cards ---- */
.value-card {
  background: #0f0f11;
  padding: 2.5rem;
}
.value-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: #F97316;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.value-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f4f4f5;
  margin-bottom: 0.75rem;
}
.value-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #a1a1aa;
}

/* ---- Lifecycle timeline ---- */
.lifecycle-line {
  display: none;
}
@media (min-width: 768px) {
  .lifecycle-line {
    display: block;
    position: absolute;
    top: 18px;
    left: 8.5%;
    right: 8.5%;
    height: 2px;
    background: repeating-linear-gradient(to right, rgba(249, 115, 22, 0.4) 0, rgba(249, 115, 22, 0.4) 6px, transparent 6px, transparent 12px);
  }
}
.lifecycle-step {
  position: relative;
  text-align: center;
  z-index: 1;
}
.lifecycle-dot {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  background: #17171a;
  border: 2px solid #F97316;
  color: #F97316;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lifecycle-label {
  font-weight: 700;
  font-size: 0.875rem;
  color: #f4f4f5;
}
.lifecycle-desc {
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 2px;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---- Demo request dialog ---- */
.demo-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.demo-dialog.hidden {
  display: none;
}
.demo-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}
.demo-dialog-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  background: #17171a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
  padding: 2.25rem;
  animation: dialogIn 0.2s ease;
}
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.demo-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.demo-dialog-close:hover {
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.3);
}
.demo-field {
  margin-bottom: 1.1rem;
}
.demo-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a1a1aa;
  margin-bottom: 0.4rem;
}
.demo-field input {
  width: 100%;
  background: #0f0f11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
  font-size: 0.9375rem;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.15s ease;
}
.demo-field input::placeholder {
  color: #52525b;
}
.demo-field input:focus {
  outline: none;
  border-color: #F97316;
}
.demo-field input:invalid.touched {
  border-color: #ef4444;
}

/* ---- Road divider: a little vehicle actually driving across the page ---- */
.road-strip {
  position: relative;
  height: 40px;
  overflow: hidden;
  background: #0c0c0e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.road-strip-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.22) 0 16px, transparent 16px 32px);
}
.road-car {
  position: absolute;
  top: 50%;
  left: -60px;
  transform: translateY(-50%);
  animation: driveAcross 9s linear infinite;
}
@keyframes driveAcross {
  from { left: -60px; }
  to { left: 100%; }
}

/* ---- Booking website mockup ---- */
.booking-body {
  padding: 20px;
}
.booking-hero-title {
  font-size: 15px;
  font-weight: 800;
  color: #f4f4f5;
  margin-bottom: 10px;
}
.booking-search {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  margin-bottom: 16px;
}
.booking-search-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: center;
}
.booking-search-field span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717a;
}
.booking-search-field strong {
  font-size: 12px;
  color: #e4e4e7;
  font-weight: 600;
}
.booking-search-btn {
  background: #F97316;
  color: #0f0f11;
  font-weight: 700;
  font-size: 12px;
  padding: 0 18px;
  border: none;
  cursor: default;
}
.booking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 640px) {
  .booking-search { grid-template-columns: 1fr; }
  .booking-search-field { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .booking-grid { grid-template-columns: 1fr; }
}
.booking-car-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.booking-car-card--active {
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.06);
}
.booking-car-thumb {
  height: 54px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(255, 255, 255, 0.03));
  position: relative;
}
.booking-car-thumb::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}
.booking-car-name {
  font-size: 12px;
  font-weight: 700;
  color: #f4f4f5;
}
.booking-car-meta {
  font-size: 10px;
  color: #71717a;
  margin: 2px 0 8px;
}
.booking-car-price {
  font-size: 13px;
  font-weight: 800;
  color: #F97316;
}
.booking-car-price span {
  font-size: 9px;
  color: #71717a;
  font-weight: 600;
}

/* ---- Mobile app mockup ---- */
.phone-frame {
  width: 230px;
  background: #0c0c0e;
  border: 6px solid #1c1c1e;
  border-radius: 34px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #1c1c1e;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone-screen {
  padding: 26px 14px 16px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.phone-status-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #71717a;
  margin-bottom: 14px;
}
.phone-app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #f4f4f5;
}
.phone-map-thumb {
  position: relative;
  height: 110px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}
.phone-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #34d399;
  background: rgba(15, 15, 17, 0.7);
  padding: 3px 7px;
  border: 1px solid rgba(52, 211, 153, 0.4);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: pulseDot 1.8s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.phone-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.phone-stat {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 4px;
  text-align: center;
}
.phone-stat strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #f4f4f5;
}
.phone-stat span {
  font-size: 8px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.phone-cta {
  background: #F97316;
  color: #0f0f11;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  padding: 10px;
  margin-bottom: auto;
}
.phone-nav {
  display: flex;
  justify-content: space-around;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.phone-nav-item {
  color: #52525b;
  width: 18px;
  height: 18px;
}
.phone-nav-item svg {
  width: 100%;
  height: 100%;
}
.phone-nav-item--active {
  color: #F97316;
}

/* ---- Live tracking map ---- */
.tracking-map {
  background: #0c0c0e;
  min-height: 320px;
}
.tracking-panel {
  background: #0f0f11;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.tracking-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tracking-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.tracking-row-title {
  font-size: 13px;
  font-weight: 700;
  color: #f4f4f5;
}
.tracking-row-meta {
  font-size: 11px;
  color: #71717a;
  margin-top: 2px;
}
.tracking-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
  background: #52525b;
}
.tracking-live-dot--on {
  background: #34d399;
  animation: pulseDot 1.8s ease-out infinite;
}
.tracking-live-dot--warn {
  background: #F97316;
  animation: pulseDotAccent 1.8s ease-out infinite;
}
@keyframes pulseDotAccent {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}
.tracking-foot {
  margin-top: auto;
  font-size: 11px;
  color: #52525b;
  line-height: 1.6;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Integration flow diagram ---- */
.integration-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .integration-flow {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }
}
.integration-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 360px;
}
@media (min-width: 1024px) {
  .integration-col {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 190px;
    max-width: none;
  }
}
.integration-node {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #d4d4d8;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.integration-node:hover {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.05);
}
.integration-node svg {
  width: 18px;
  height: 18px;
  color: #F97316;
  flex-shrink: 0;
}
.integration-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #F97316;
  background: #17171a;
  padding: 1.75rem 2.25rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.06);
}
.integration-line {
  width: 2px;
  height: 32px;
  background-image: linear-gradient(#F97316 50%, transparent 0);
  background-size: 2px 12px;
  animation: lineFlowV 0.6s linear infinite;
}
.integration-line--out {
  animation-direction: reverse;
}
@media (min-width: 1024px) {
  .integration-line {
    width: 56px;
    height: 2px;
    background-image: linear-gradient(90deg, #F97316 50%, transparent 0);
    background-size: 12px 2px;
    animation-name: lineFlowH;
  }
}
@keyframes lineFlowH {
  from { background-position: 0 0; }
  to { background-position: 12px 0; }
}
@keyframes lineFlowV {
  from { background-position: 0 0; }
  to { background-position: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .road-car, .pulse-dot, .tracking-live-dot--on, .tracking-live-dot--warn, .integration-line {
    animation: none;
  }
}

/* ---- Legal document pages (privacy.html, terms.html) ---- */
.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: #f4f4f5;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e4e4e7;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}
.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #a1a1aa;
  margin-bottom: 1rem;
}
.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}
.legal-content li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #a1a1aa;
  list-style: none;
  position: relative;
  padding-left: 1.1rem;
}
.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: #F97316;
}
.legal-content strong {
  color: #d4d4d8;
  font-weight: 700;
}
.legal-content a {
  color: #F97316;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover {
  color: #EA580C;
}
