:root {
  --bg: #000000;
  --bg-alt: #0d0f14;
  --card: #15181f;
  --border: #252a35;
  --text: #f5f7fb;
  --muted: #a3acbf;
  --accent: #276ef1;
  --accent-light: #6b9cff;
  --accent-soft: rgba(39, 110, 241, 0.14);
  --light-bg: #f4f6fa;
  --light-text: #0f172a;
  --light-muted: #55607a;
  --radius: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.accent {
  color: var(--accent-light);
}

/* Icons (SVG sprite) */
.ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-xl {
  width: 34px;
  height: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-light);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
}

.eyebrow-dark {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(34px, 5.6vw, 60px);
  font-weight: 800;
}

h2,
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}

h3 {
  font-size: 18px;
  font-weight: 700;
}

.lead {
  font-size: 18px;
  color: #cfd6e4;
  max-width: 560px;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 14px;
  border: 0;
  box-shadow: 0 8px 24px rgba(39, 110, 241, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease;
  max-width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  background: #3b7cf3;
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}

.btn-lg {
  padding: 17px 26px;
  font-size: 17px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-light);
}

.btn-small {
  padding: 9px 16px;
  font-size: 14px;
  box-shadow: none;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #151a26;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  /* The original black logo, outlined so it stands out on the dark header. */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  background: radial-gradient(760px 520px at 82% 25%, rgba(39, 110, 241, 0.22), transparent 65%), var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
}

.hero .lead {
  margin-top: 6px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.store .ico {
  width: 16px;
  height: 16px;
}

.trust {
  list-style: none;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid #1a2030;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: #cfd6e4;
  font-size: 14px;
  font-weight: 600;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust .ico {
  color: var(--accent-light);
}

/* Phones with the real app screens */
.phone {
  border-radius: 40px;
  background: #1a1d24;
  padding: 9px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 2px #2c3142 inset;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(420px, 100%);
  aspect-ratio: 420 / 560;
}

.phone-front {
  position: absolute;
  left: 30%;
  top: 0;
  width: 62%;
  transform: rotate(3deg);
  z-index: 2;
}

.phone-back {
  position: absolute;
  left: 0;
  top: 9%;
  width: 54%;
  transform: rotate(-7deg);
  opacity: 0.85;
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--light-text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  line-height: 1.3;
  max-width: 230px;
}

.float-chip div {
  display: grid;
}

.float-chip strong {
  font-size: 14px;
}

.float-chip span {
  color: var(--light-muted);
}

.chip-price {
  left: -4%;
  bottom: 12%;
}

.chip-driver {
  right: -6%;
  top: 46%;
}

.chip-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff !important;
}

/* Two paths */
.paths {
  padding: 8px 0 24px;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.path {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--accent);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.path:hover {
  transform: translateY(-2px);
}

.path h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.path p {
  margin: 0;
  color: #e3ebff;
  font-size: 15px;
}

.path .ico-xl {
  color: #fff;
}

.path-driver {
  background: var(--card);
  border: 1px solid var(--border);
}

.path-driver p {
  color: var(--muted);
}

.path-driver .ico-xl,
.path-driver .arrow {
  color: var(--accent-light);
}

.arrow {
  font-size: 24px;
  color: #fff;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt,
#conducir {
  background: var(--bg-alt);
}

.section-title {
  margin-bottom: 30px;
}

.section .lead {
  margin: -14px 0 30px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  position: relative;
}

.step-ico {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-light);
  margin-bottom: 18px;
}

.step-ico .ico {
  width: 24px;
  height: 24px;
}

.step-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 44px;
  font-weight: 800;
  color: #232835;
  line-height: 1;
}

/* Screenshot galleries */
.shots-title {
  margin: 56px 0 20px;
  font-size: 22px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.shot {
  margin: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}

.shot-phone {
  border-radius: 30px;
  padding: 7px;
  background: #1a1d24;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 2px #2c3142 inset;
  max-width: 270px;
  width: 100%;
  justify-self: center;
}

.shot-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.shot figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  max-width: 300px;
  justify-self: center;
}

.shot figcaption strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  margin-bottom: 2px;
}

/* Light pricing block */
.section-light {
  background: var(--light-bg);
  color: var(--light-text);
}

.lead-dark {
  color: var(--light-muted);
}

.muted-dark {
  color: var(--light-muted);
}

.calc {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.calc-input label {
  display: block;
  font-weight: 700;
  margin-bottom: 14px;
}

.calc-km {
  display: flex;
  align-items: center;
  gap: 14px;
}

.calc-km input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  height: 32px;
  min-width: 0;
}

.km-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9dfea;
  border-radius: 12px;
  padding: 6px 10px;
  font-weight: 700;
}

.km-box input {
  width: 56px;
  border: 0;
  font: inherit;
  font-size: 18px;
  text-align: right;
  color: var(--light-text);
  background: transparent;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.price-card {
  border: 1px solid #e3e8f1;
  border-radius: 18px;
  padding: 18px 16px;
  transition: opacity 0.2s ease;
}

.price-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.price-ico {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eaf1ff;
  color: var(--accent);
  margin-bottom: 12px;
}

.price-value {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--light-muted);
}

.price-card.unavailable {
  opacity: 0.5;
}

.price-card.unavailable .price-value {
  font-size: 15px;
  font-weight: 700;
}

.calc-foot {
  max-width: 680px;
  margin: 22px auto 0;
}

/* Safety */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.feature .ico {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 13px;
  color: var(--accent-light);
  background: var(--accent-soft);
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

/* Drivers */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 6px;
}

.stat strong {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.stat span {
  color: var(--muted);
}

.example {
  margin: 20px 0 40px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: #dbe6ff;
}

.driver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.sub {
  font-size: 20px;
  margin-bottom: 16px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  color: #dfe4ee;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.mini-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.mini-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  color: #dfe4ee;
}

.mini-steps span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

/* FAQ */
.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  color: var(--accent-light);
  font-size: 24px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  color: var(--muted);
  margin: 12px 0 0;
}

.faq a {
  color: var(--accent-light);
}

/* Download + install */
.download {
  background: radial-gradient(800px 420px at 50% 0%, rgba(39, 110, 241, 0.18), transparent 70%), var(--bg-alt);
}

.section .center-lead {
  margin: -14px auto 28px;
}

.install {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 22px;
  text-align: left;
}

.install-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.install-step p {
  color: var(--muted);
  margin: 0;
}

/* Footer */
.footer {
  border-top: 1px solid #151a26;
  padding: 36px 0 44px;
}

.footer-inner {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--muted);
}

/* Sticky download bar (phones) */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  display: none;
  transform: translateY(140%);
  transition: transform 0.25s ease;
}

.sticky-cta .btn {
  width: 100%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.sticky-cta.visible {
  transform: translateY(0);
}

/* Reveal on scroll (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.shown {
  opacity: 1;
  transform: none;
}

/* Tablets and phones */
@media (max-width: 900px) {
  .hero-grid,
  .driver-grid,
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps,
  .stats,
  .install {
    grid-template-columns: minmax(0, 1fr);
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .paths-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Screens scroll sideways, one at a time */
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 72%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .shot {
    scroll-snap-align: center;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding-top: 36px;
  }
  .hero-visual {
    width: min(360px, 100%);
    margin-top: 8px;
  }
  .section {
    padding: 64px 0;
  }
  .sticky-cta {
    display: block;
  }
  .footer {
    padding-bottom: 96px;
  }
}

@media (max-width: 560px) {
  .calc-results {
    grid-template-columns: minmax(0, 1fr);
  }
  .price-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 2px 14px;
  }
  .price-card .price-ico {
    grid-row: span 3;
    margin: 0;
  }
  .price-card h3 {
    margin: 0;
  }
  .price-card .price-value {
    font-size: 24px;
  }
  .price-card .price-note {
    margin: 0;
  }
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    padding: 18px;
  }
  .feature .ico {
    grid-row: span 2;
    margin: 0;
  }
  .feature h3 {
    margin: 0;
  }
  .btn-lg {
    width: 100%;
  }
  .calc {
    padding: 20px;
  }
  .float-chip {
    font-size: 11px;
    padding: 8px 10px 8px 8px;
    max-width: 190px;
  }
  .float-chip strong {
    font-size: 12px;
  }
  .chip-ico {
    width: 28px;
    height: 28px;
  }
  .chip-price {
    left: 0;
  }
  .chip-driver {
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .path,
  .sticky-cta {
    transition: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
