/* ============================================================
   EAG+ coming-soon landing
   Brand tokens mirror the app (vuelb-app/lib/theme.ts):
   red #B01F24 · gold #DABF7E · ink #181919 · bg #f0efef
   Jost (body) · Julius Sans One (display)
   ============================================================ */

:root {
  --primary: #b01f24;
  --primary-dark: #8a191e;
  --primary-soft: rgba(176, 31, 36, 0.07);
  --accent: #dabf7e;
  --orange: #e8622c;

  --bg: #f0efef;
  --card: #ffffff;
  --ink: #181919;
  --ink-soft: #232424;
  --muted: #7f8080;
  --border: #e4e4e4;

  --radius: 14px;
  --radius-lg: 28px;

  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-display: "Julius Sans One", "Jost", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- type ---------- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

h3 {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.kicker--gold { color: var(--accent); }

.lede {
  color: inherit;
  opacity: 0.85;
  font-size: 1.05rem;
  max-width: 46ch;
}

code {
  font-family: inherit;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.05em 0.4em;
  border-radius: 6px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.wordmark { height: 26px; width: auto; }

/* white PNG → ink wordmark with the squares kept warm, for light bg */
.wordmark--on-light { filter: invert(1) hue-rotate(180deg); }

.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  white-space: nowrap;
}

.soon-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* ---------- hero ---------- */

.hero { padding-block: 2rem 1rem; }

.hero-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: rise 0.7s ease both;
}

/* faint globe-ish glow, like the waybill card */
.hero-card::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -35%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 65%);
  pointer-events: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.waybill-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.waybill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  opacity: 0.75;
}

.waybill-label .icon { width: 16px; height: 16px; }

.waybill-code {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.route {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.route-city {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  opacity: 0.9;
}

.route-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  position: relative;
}

.route-line::after {
  content: "✈";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--ink);
  padding-inline: 0.5rem;
}

.hero h1 { margin-bottom: 1.1rem; }

.hero .lede { margin-bottom: 1.75rem; color: #fff; opacity: 0.78; }
.hero .lede strong { color: var(--accent); font-weight: 600; }

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.hero-chips li {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  opacity: 0.85;
}

/* ---------- phones ---------- */

.phone {
  background: #050505;
  border-radius: 2.2rem;
  padding: 9px;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.55);
}

.phone img {
  border-radius: 1.7rem;
  aspect-ratio: 1080 / 2280;
  object-fit: cover;
}

.hero-phones {
  position: relative;
  justify-self: end;
  padding-block: 1rem;
  padding-right: clamp(0px, 2vw, 20px);
  margin-top: 2.5rem;
}

.hero-phones .phone--front {
  position: relative;
  z-index: 2;
  width: clamp(200px, 20vw, 255px);
  transform: rotate(2.5deg);
}

.hero-phones .phone--back {
  position: absolute;
  z-index: 1;
  width: clamp(165px, 16vw, 210px);
  top: 14%;
  left: -24%;
  transform: rotate(-8deg);
  opacity: 0.85;
}

/* ---------- sections / steps ---------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }

.section > h2, .section > .kicker { text-align: center; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.35rem;
  margin-bottom: 1.1rem;
}

.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -22px rgba(24, 25, 25, 0.35);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 1.1rem;
}

.feature-icon svg { width: 24px; height: 24px; }

.feature h3 { margin-bottom: 0.45rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- screens gallery ---------- */

.gallery-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  overflow: hidden;
}

.gallery-head { text-align: center; margin-bottom: 2.25rem; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(190px, 22vw, 240px);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}

.rail figure { scroll-snap-align: center; }

.rail .phone { border: 1px solid rgba(255,255,255,0.12); }

.rail figcaption {
  margin-top: 1rem;
  font-size: 0.88rem;
  opacity: 0.75;
  text-align: center;
}

.rail figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.rail:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.rail-hint {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* ---------- stores marquee ---------- */

.stores { padding-block: clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.stores .kicker { text-align: center; margin-bottom: 1.75rem; }

.marquee {
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 0.9rem;
  width: max-content;
  animation: scroll 42s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  color: var(--ink-soft);
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- CTA ---------- */

.cta-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.route--small {
  max-width: 260px;
  width: 100%;
  margin-bottom: 0.25rem;
}

.route--small .route-city { font-size: 0.8rem; }
.route--small .route-line::after { background: var(--ink); }

.cta-card .lede { margin-inline: auto; }

.cta-contact { font-size: 0.85rem; opacity: 0.6; }
.cta-contact a { color: var(--accent); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #fff;
  margin-top: 1rem;
  padding-block: 3rem;
}

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

.footer-inner .wordmark { height: 22px; }
.footer-inner > p { font-size: 0.9rem; opacity: 0.65; }

.footer-inner nav {
  display: flex;
  gap: 1.5rem;
}

.footer-inner nav a {
  color: #fff;
  opacity: 0.7;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.footer-inner nav a:hover { opacity: 1; }

.fineprint {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  opacity: 0.4;
  text-transform: uppercase;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .steps, .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hero-card { grid-template-columns: 1fr; }

  .hero-phones {
    order: -1;
    padding: 0;
    margin-top: 0;
    display: flex;
    justify-content: center;
    justify-self: center;
  }

  .hero-phones .phone--front { width: min(58vw, 230px); }
  .hero-phones .phone--back { left: 2%; width: min(48vw, 190px); }

  .waybill-head { margin-top: 0.5rem; }
}

@media (max-width: 560px) {
  .steps, .features { grid-template-columns: 1fr; }
  .header-inner .soon-pill { font-size: 0.68rem; padding: 0.38rem 0.75rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card { animation: none; }
  .soon-dot { animation: none; }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}
