/* Ahí Te Va landing page. Same system as the app (app/static/theme.css): Linear-style dark canvas and
   surface ladder, with rosa mexicano as the single accent. */
:root {
  color-scheme: dark;
  --primary: #E4007C; --primary-hover: #F5218F; --primary-text: #FF4FA3; --on-primary: #fff;
  --ink: #f7f8f8; --ink-muted: #d0d6e0; --ink-subtle: #8a8f98; --ink-tertiary: #62666d;
  --canvas: #010102; --surface-1: #0f1011; --surface-2: #141516; --surface-3: #18191a;
  --hairline: #23252a; --hairline-strong: #34343a;
  --success: #27a644;
  --font: "Inter", "SF Pro Display", -apple-system, system-ui, "Segoe UI", sans-serif;
  /* WhatsApp's own dark-mode chat colors, for the phone mockups only */
  --wa-bg: #0b141a; --wa-in: #202c33; --wa-out: #005c4b; --wa-ink: #e9edef; --wa-sub: #8696a0; --wa-link: #53bdeb;
}
* { box-sizing: border-box }
html { background: var(--canvas); scroll-behavior: smooth }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.55 var(--font); letter-spacing: -0.05px;
  -webkit-font-smoothing: antialiased }
a { color: var(--primary-text); text-decoration: none }
img, svg { display: block }
::selection { background: rgba(228, 0, 124, .35) }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px }
section { padding: 88px 0; border-top: 1px solid var(--hairline) }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .4px; color: var(--primary-text); margin: 0 0 12px }
h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -2.4px; margin: 0 0 20px }
h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -1.2px; margin: 0 0 16px }
h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.3px; margin: 0 0 8px }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-muted); max-width: 560px; margin: 0 0 32px; letter-spacing: -0.2px }
.muted { color: var(--ink-subtle) }

/* header */
header { position: sticky; top: 0; z-index: 50; background: rgba(1, 1, 2, .82); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline) }
header .wrap { display: flex; align-items: center; gap: 28px; height: 60px }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; letter-spacing: -0.4px; font-size: 17px }
.logo img { width: 28px; height: 28px }
header nav { display: flex; gap: 22px; font-size: 14px }
header nav a { color: var(--ink-subtle) } header nav a:hover { color: var(--ink) }
header .btn { margin-left: auto }
@media (max-width: 760px) { header nav { display: none } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--font); padding: 13px 18px; border-radius: 10px;
  border: 1px solid var(--hairline-strong); background: var(--surface-1); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s }
.btn:hover { background: var(--surface-3) }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary) }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover) }
.btn.small { padding: 9px 14px; font-size: 14px }
.btn[aria-disabled="true"] { cursor: default }
.btn .soon { font-size: 11px; font-weight: 500; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.18) }
.btn:not(.primary) .soon { background: var(--surface-3); color: var(--ink-subtle) }
.actions { display: flex; gap: 12px; flex-wrap: wrap }

/* hero */
.hero { padding: 72px 0 88px; border-top: 0 }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); padding: 6px 12px;
  border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--surface-1); margin-bottom: 24px }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(228,0,124,.2) }
h1 .accent { color: var(--primary-text) }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr } .hero .phone { margin: 0 auto } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; background: var(--surface-1) }
.stat { padding: 22px 20px; border-right: 1px solid var(--hairline) } .stat:last-child { border-right: 0 }
.stat b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -1px; margin-bottom: 4px }
.stat span { font-size: 14px; color: var(--ink-subtle) }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr } .stat:nth-child(2) { border-right: 0 }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--hairline) } }

/* cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr } }
.card { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 14px; padding: 26px }
.card p { margin: 0; color: var(--ink-subtle); font-size: 15px }
.step { font: 500 13px/1 var(--font); color: var(--ink-subtle); display: flex; align-items: center; gap: 10px; margin-bottom: 18px }
.step i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3);
  border: 1px solid var(--hairline-strong); font-style: normal; font-size: 17px }

/* split sections (businesses / drivers) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center }
.split.reverse .copy { order: 2 }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px } .split.reverse .copy { order: 0 } .split .phone { margin: 0 auto } }
.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-muted) }
.checks li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; background: var(--surface-3)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23FF4FA3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  border: 1px solid var(--hairline-strong) }
.checks b { color: var(--ink); font-weight: 500 }

/* compare */
.compare { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 15px; background: var(--surface-1);
  border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--hairline) }
.compare tr:last-child td { border-bottom: 0 }
.compare th { font-size: 13px; font-weight: 500; color: var(--ink-subtle) }
.compare td:nth-child(2) { color: var(--ink); font-weight: 500 } .compare td:nth-child(3) { color: var(--ink-subtle) }
.compare th:nth-child(2) { color: var(--primary-text) }

/* map */
.map-card { margin-top: 40px; border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; background: var(--surface-1) }
#map { height: 440px; background: var(--surface-2) }
#map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.35) }
.map-legend { display: flex; gap: 20px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--ink-subtle) }
.map-legend span { display: inline-flex; align-items: center; gap: 8px }
.map-legend i { width: 10px; height: 10px; border-radius: 50% }
.map-label { background: var(--surface-1); color: var(--ink); border: 1px solid var(--hairline-strong); border-radius: 8px;
  padding: 4px 8px; font: 500 12px var(--font); box-shadow: none; white-space: nowrap }
.map-label::before { display: none }
.leaflet-container { font-family: var(--font) }
.leaflet-bar a { background: var(--surface-3); color: var(--ink); border-color: var(--hairline-strong) }
.leaflet-control-attribution { background: rgba(15,16,17,.8) !important; color: var(--ink-tertiary) !important }
.leaflet-control-attribution a { color: var(--ink-subtle) !important }

/* phone + WhatsApp mockups */
.phone { width: 320px; max-width: 100%; border-radius: 38px; padding: 10px; background: #1c1d20; border: 1px solid var(--hairline-strong) }
.screen { border-radius: 30px; overflow: hidden; background: var(--wa-bg) }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; background: #1f2c34; color: var(--wa-ink) }
.wa-top img { width: 34px; height: 34px; border-radius: 50% }
.wa-top b { font-size: 15px; font-weight: 500; display: block } .wa-top small { font-size: 12px; color: var(--wa-sub) }
.chat { padding: 14px 10px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 420px }
.msg { max-width: 86%; padding: 7px 9px 6px; border-radius: 9px; font-size: 13.5px; line-height: 1.38; color: var(--wa-ink); white-space: pre-line; letter-spacing: 0 }
.msg.in { background: var(--wa-in); align-self: flex-start; border-top-left-radius: 3px }
.msg.out { background: var(--wa-out); align-self: flex-end; border-top-right-radius: 3px }
.msg b { font-weight: 600 }
.msg time { display: block; text-align: right; font-size: 10.5px; color: var(--wa-sub); margin-top: 2px }
.wa-btns { align-self: flex-start; width: 86%; display: grid; gap: 4px; margin-top: -2px }
.wa-btns span { background: var(--wa-in); color: var(--wa-link); text-align: center; font-size: 13.5px; padding: 8px; border-radius: 9px }
.loc { width: 200px; border-radius: 7px; overflow: hidden; margin-bottom: 4px; background: #2a3942 }
.loc svg { width: 100% }

/* FAQ */
details { border-bottom: 1px solid var(--hairline); padding: 18px 0 }
summary { cursor: pointer; font-size: 17px; font-weight: 500; letter-spacing: -0.2px; list-style: none; display: flex; justify-content: space-between; gap: 16px }
summary::-webkit-details-marker { display: none }
summary::after { content: "+"; color: var(--ink-subtle); font-size: 22px; line-height: 1 }
details[open] summary::after { content: "−" }
details p { color: var(--ink-subtle); margin: 12px 0 0; max-width: 720px }
.faq { max-width: 820px; margin-top: 24px }

/* final CTA + footer */
.cta { text-align: center; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 20px; padding: 64px 24px }
.cta img { width: 64px; height: 64px; margin: 0 auto 24px }
.cta .lead { margin: 0 auto 32px }
.cta .actions { justify-content: center }
footer { border-top: 1px solid var(--hairline); padding: 36px 0 56px; color: var(--ink-tertiary); font-size: 14px }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center }

/* small phones: keep the header on one line */
.logo, .btn { white-space: nowrap }
@media (max-width: 480px) {
  header .wrap { gap: 12px }
  header .btn .soon { display: none }
  header .btn.small { padding: 8px 12px; font-size: 13px }
  .hero { padding-top: 40px }
}

/* English-mode note under the hero, and the footer language toggle */
.note-en { font-size: 14px; color: var(--ink-subtle); max-width: 560px; margin: -16px 0 28px; padding: 10px 14px;
  border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface-1) }
.note-en b { color: var(--ink); font-weight: 500 }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--surface-1) }
.lang button { font: 500 13px/1 var(--font); color: var(--ink-subtle); background: none; border: 0; border-radius: 999px;
  padding: 8px 14px; cursor: pointer }
.lang button:hover { color: var(--ink) }
.lang button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink) }
