:root {
  --app-bg: #f8fafc;
  --glass-canvas: #ffffff;
  --glass-ink: #000000;
  --glass-muted: #5f6368;
  --glass-accent: #2563eb;
  --glass-panel: rgba(255, 255, 255, 0.94);
  --glass-control: rgba(255, 255, 255, 0.9);
  --glass-highlight: rgba(255, 255, 255, 1);
  --glass-border: rgba(0, 0, 0, 0.09);
  --glass-shadow: 0 1.25rem 3.25rem rgba(0, 0, 0, 0.08);

  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: var(--app-bg);
  color: var(--glass-ink);
}

/* Mobile-First App Shell (iPhone / Android style) */
.mobile-app-shell {
  width: 100%;
  max-width: 26rem; /* 416px mobile width */
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  margin: 0 auto;
  padding: max(0.625rem, env(safe-area-inset-top)) 1rem max(0.625rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background-color: var(--glass-canvas);
  overflow-x: hidden;
  overflow-y: auto;
}

/* Ambient glow subtle background */
.mobile-app-shell::before,
.mobile-app-shell::after {
  position: absolute;
  z-index: -1;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  content: "";
  filter: blur(1rem);
  pointer-events: none;
}

.mobile-app-shell::before {
  top: 5%;
  left: -35%;
  background: rgba(37, 99, 235, 0.07);
}

.mobile-app-shell::after {
  right: -40%;
  bottom: 5%;
  background: rgba(0, 0, 0, 0.04);
}

/* Top Navigation Bar */
.mobile-app-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.wordmark {
  color: var(--glass-ink);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.wordmark span {
  color: var(--glass-accent);
}

.audience-label {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* App Main Content */
.mobile-app-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Liquid Glass Landing Panel */
.owner-landing-card {
  width: 100%;
  margin: auto 0;
  padding: 1.25rem;
  border: 1px solid var(--glass-border);
  border-radius: 1.625rem;
  background: var(--glass-panel);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 var(--glass-highlight);
  color: var(--glass-ink);
  -webkit-backdrop-filter: blur(1.25rem) saturate(1.1);
  backdrop-filter: blur(1.25rem) saturate(1.1);
}

.card-copy {
  margin-bottom: 0.85rem;
}

.card-eyebrow {
  margin: 0 0 0.3rem;
  color: var(--glass-accent);
  font-size: 0.625rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.card-copy h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 6vw, 1.75rem);
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--glass-ink);
}

.card-desc {
  margin: 0;
  color: var(--glass-muted);
  font-size: 0.78rem;
  line-height: 1.38;
}

/* =========================================================================
   PROJECT-SPECIFIC LIVE ANIMATION: STEER DYNAMIC ISLAND & ROUTE RADAR
   ========================================================================= */

.steer-live-widget {
  margin: 0.85rem 0 0.95rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.85), rgba(248, 250, 252, 0.75));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0.5rem 1.25rem rgba(37, 99, 235, 0.06);
  position: relative;
  overflow: hidden;
}

.live-island-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.island-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pulse-beacon-wrapper {
  position: relative;
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-beacon-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.7);
}

.pulse-beacon-ring {
  position: absolute;
  inset: -0.15rem;
  border-radius: 50%;
  border: 1.5px solid rgba(22, 163, 74, 0.5);
  animation: beaconPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes beaconPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.island-text {
  display: flex;
  flex-direction: column;
}

.island-title {
  font-size: 0.75rem;
  font-weight: 750;
  color: #0f172a;
}

.island-subtitle {
  font-size: 0.66rem;
  color: #64748b;
}

.island-subtitle strong {
  color: var(--glass-accent);
  letter-spacing: 0.05em;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  animation: liveBadgeGlow 2.5s ease-in-out infinite alternate;
}

@keyframes liveBadgeGlow {
  0% {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
  }
  100% {
    background: rgba(22, 163, 74, 0.22);
    color: #166534;
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.25);
  }
}

/* Route Tracker Line & Animated Vehicle */
.route-tracker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.25rem 0.2rem;
}

.tracker-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.node-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--glass-accent);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.5);
}

.dest-dot {
  background: #0f172a;
  box-shadow: 0 0 4px rgba(15, 23, 42, 0.3);
}

.node-ring {
  position: absolute;
  top: -0.2rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.4);
  animation: nodeRingPulse 2s ease-out infinite;
}

@keyframes nodeRingPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.node-tag {
  margin-top: 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
}

.tracker-track {
  position: relative;
  flex: 1;
  height: 2px;
  margin: 0 0.5rem 0.85rem;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 1px;
}

.track-glow-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #2563eb);
  background-size: 200% 100%;
  animation: trackStream 3s linear infinite;
  border-radius: inherit;
}

@keyframes trackStream {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

/* Moving Car Marker */
.moving-vehicle {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  animation: vehicleGlide 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

@keyframes vehicleGlide {
  0% {
    left: 8%;
  }
  45% {
    left: 55%;
  }
  100% {
    left: 92%;
  }
}

.car-bubble {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--glass-accent);
  color: var(--glass-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  animation: carFloat 2s ease-in-out infinite alternate;
}

@keyframes carFloat {
  0% {
    transform: translateY(-1px);
  }
  100% {
    transform: translateY(1px);
  }
}

.car-ripple {
  position: absolute;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  z-index: -1;
  animation: carRippleWave 1.8s ease-out infinite;
}

@keyframes carRippleWave {
  0% {
    transform: scale(0.7);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Feature Perks */
.card-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.65rem 0 1rem;
}

.perk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.025);
  font-size: 0.68rem;
  font-weight: 650;
  color: #334155;
}

.perk-icon {
  font-size: 0.8rem;
}

/* Landing Buttons */
.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.btn-primary,
.btn-secondary,
.btn-driver {
  display: inline-flex;
  width: 100%;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.btn-primary {
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow:
    0 0.5rem 1.25rem rgba(37, 99, 235, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 0.75rem 1.5rem rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-driver {
  border: 1px solid rgba(22, 163, 74, 0.3);
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  box-shadow:
    0 0.5rem 1.25rem rgba(22, 163, 74, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-driver:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  box-shadow: 0 0.75rem 1.5rem rgba(22, 163, 74, 0.3);
}

.btn-driver:active {
  transform: scale(0.98);
}

.btn-secondary {
  border: 1px solid var(--glass-border);
  background: var(--glass-control);
  color: var(--glass-ink);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 0.35rem 1rem rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(1.1rem);
  backdrop-filter: blur(1.1rem);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-driver:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.42);
  outline-offset: 3px;
}

/* Card Assurance Footer */
.card-assurance {
  margin: 0.75rem 0 0;
  color: var(--glass-muted);
  font-size: 0.65rem;
  line-height: 1.35;
  text-align: center;
}

/* Bottom Footer */
.mobile-app-footer {
  flex: none;
  padding: 0.5rem 0 0.25rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.66rem;
}

/* Fallbacks & Accessibility */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .owner-landing-card,
  .btn-secondary,
  .steer-live-widget {
    background: #ffffff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .btn-secondary {
    transition: none;
    transform: none;
  }
  .pulse-beacon-ring,
  .live-badge,
  .node-ring,
  .track-glow-line,
  .moving-vehicle,
  .car-bubble,
  .car-ripple {
    animation: none !important;
  }
}

@media (prefers-contrast: more), (forced-colors: active) {
  .mobile-app-shell {
    background: #ffffff;
  }
  .mobile-app-shell::before,
  .mobile-app-shell::after {
    display: none;
  }
  .owner-landing-card,
  .btn-secondary,
  .perk-chip,
  .steer-live-widget {
    border-color: currentColor;
    background: #ffffff;
  }
}

@media (max-height: 38rem) {
  .mobile-app-shell {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }
}

/* Info Sections for Scrollable Landing */
.landing-info-section {
  width: 100%;
  margin-top: 0.85rem;
}

.info-card {
  width: 100%;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--glass-border);
  border-radius: 1.35rem;
  background: var(--glass-panel);
  box-shadow:
    0 0.5rem 1.5rem rgba(0, 0, 0, 0.04),
    inset 0 1px 0 var(--glass-highlight);
  color: var(--glass-ink);
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
}

.info-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.info-badge-alt {
  background: #dcfce7;
  color: #166534;
}

.info-title {
  font-size: 1.25rem;
  font-weight: 780;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.info-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
  margin-bottom: 0.5rem;
}

.info-text:last-child {
  margin-bottom: 0;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.9rem;
}

.info-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.info-item-title {
  font-size: 0.84rem;
  font-weight: 750;
  color: #1e293b;
  margin-bottom: 0.2rem;
}

.info-item-desc {
  font-size: 0.76rem;
  line-height: 1.38;
  color: #64748b;
  margin: 0;
}

.subheading-owner {
  font-size: 0.88rem;
  font-weight: 750;
  color: #2563eb;
  margin-bottom: 0.4rem;
}

.subheading-driver {
  font-size: 0.88rem;
  font-weight: 750;
  color: #16a34a;
  margin-bottom: 0.4rem;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.benefit-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #334155;
}

.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2563eb;
  font-weight: 800;
  font-size: 0.8rem;
}

.subheading-driver + .benefit-list li::before {
  color: #16a34a;
}

/* FAQ Accordion Styling */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.faq-item {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.85rem;
  background: rgba(248, 250, 252, 0.85);
  overflow: hidden;
  transition: background-color 150ms ease;
}

.faq-item[open] {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0.25rem 0.75rem rgba(37, 99, 235, 0.06);
}

.faq-question {
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 750;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1rem;
  font-weight: 700;
  color: #2563eb;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: #1d4ed8;
}

.faq-answer {
  padding: 0 0.85rem 0.75rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #475569;
}
