/*
 * لوين؟ — landing page. The page reads as one trip: it starts at a yellow
 * dot («من وين», the hero), runs down a teal line through each section (the
 * stops), and arrives at the teal destination («لوين», the last section).
 * Loaded after app.css (fonts, reset, PWA banner). No inline styles (CSP).
 */

@font-face {
  font-family: "Baloo Bhaijaan 2";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/baloo-bhaijaan-2-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Baloo Bhaijaan 2";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/baloo-bhaijaan-2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

.lp {
  --lp-navy: #142D4E;
  --lp-ink: #0B1C33;
  --lp-teal: #16B8A6;
  --lp-teal-bright: #2DD4C0;
  --lp-teal-deep: #0B6F64;
  --lp-teal-50: #E3F6F4;
  --lp-yellow: #FFC857;
  --lp-surface: #F5F8FA;
  --lp-muted: #526579;
  --lp-border: #DCE5ED;
  --lp-display: "Baloo Bhaijaan 2", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --lp-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --lp-indent: 64px;  /* room for the line beside every stop */
  --lp-rail: 15px;    /* centre of the line from the content edge */
  --lp-stop-pad: clamp(72px, 9vw, 128px);

  display: block;
  background: var(--lp-navy); /* behind the translucent header; each section paints its own */
  color: var(--lp-navy);
  overflow-x: hidden;
}

.lp-wrap {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.lp main:focus { outline: none; }

.lp .lp-icon { flex: none; }

/* ── Buttons, chips ───────────────────────────────────────────── */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1.0625rem/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--lp-ease), box-shadow 0.25s var(--lp-ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn:active { transform: translateY(0); }
.lp-btn .lp-icon { transition: transform 0.25s var(--lp-ease); }
.lp-btn:hover .lp-icon { transform: translateX(-3px); }

.lp-btn--accent { background: var(--lp-teal); color: var(--lp-navy); }
.lp-btn--accent:hover { background: var(--lp-teal-bright); color: var(--lp-navy); box-shadow: 0 14px 30px -12px rgba(22, 184, 166, 0.75); }

.lp-btn--ghost { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.34); }
.lp-btn--ghost:hover { color: #FFFFFF; border-color: #FFFFFF; background: rgba(255, 255, 255, 0.07); }
.lp-hero .lp-btn--ghost { padding: 0 18px; }
.lp-hero .lp-actions { gap: 10px; }

.lp-btn--navy { background: var(--lp-navy); color: #FFFFFF; }
.lp-btn--navy:hover { background: var(--lp-ink); color: #FFFFFF; box-shadow: 0 14px 30px -14px rgba(11, 28, 51, 0.7); }

.lp-btn--small { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.lp-btn--large { min-height: 62px; padding: 0 34px; font-size: 1.25rem; }

.lp-hero :focus-visible,
.lp-header :focus-visible,
.lp-numbers :focus-visible,
.lp-footer :focus-visible { outline-color: var(--lp-yellow); }

.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.lp-chip--teal { background: var(--lp-teal-50); color: var(--lp-teal-deep); }
.lp-chip--seal { background: var(--lp-navy); color: #FFFFFF; }
.lp-chip--seal .lp-icon { color: var(--lp-yellow); }
.lp-chip--soon { background: var(--lp-surface); color: var(--lp-muted); border: 1px dashed #A9B8C7; padding: 6px 14px; font-size: 0.875rem; }

.lp-dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; }
.lp-dot--start { background: var(--lp-yellow); box-shadow: 0 0 0 2px var(--lp-navy); }
.lp-dot--end { background: var(--lp-teal); box-shadow: 0 0 0 2px var(--lp-navy); }

/* ── Header ───────────────────────────────────────────────────── */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 45, 78, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  color: #FFFFFF;
  transition: box-shadow 0.3s;
}
.lp-header.is-stuck { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5); }

.lp-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  text-decoration: none;
}
.lp-brand:hover { color: #FFFFFF; }
.lp-brand .icon-logo { width: 38px; height: 38px; border-radius: 11px; }
.lp-brand__name { font: 800 1.625rem/1 var(--lp-display); padding-top: 4px; }

.lp-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.lp-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.lp-nav a:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }

/* ── Hero («من وين») ──────────────────────────────────────────── */

.lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px 0 88px;
  background: var(--lp-navy);
  color: #FFFFFF;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 65% at 28% 52%, rgba(22, 184, 166, 0.24), transparent 70%),
    radial-gradient(35% 45% at 92% 6%, rgba(255, 200, 87, 0.12), transparent 70%),
    linear-gradient(180deg, var(--lp-navy) 0%, #10274A 100%);
}
.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/grain.svg");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.lp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: min(700px, calc(100svh - 68px - 120px));
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 16px 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
  font-weight: 600;
}
.lp-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-teal);
  box-shadow: 0 0 0 0 rgba(22, 184, 166, 0.6);
}

.lp-title {
  display: flex;
  flex-direction: column;
  margin: 22px 0 22px;
  font: 800 clamp(3.75rem, 1.6rem + 7.2vw, 7.5rem)/1.06 var(--lp-display);
}
.lp-title__from,
.lp-title__to { display: flex; align-items: center; gap: 0.16em; }
.lp-title__from { color: #FFFFFF; }
/* «لوين» sits one step further along, like the next stop on the line */
.lp-title__to { color: var(--lp-teal); padding-inline-start: 0.62em; }

.lp-pin {
  display: inline-block;
  flex: none;
  width: 0.3em;
  height: 0.3em;
  border-radius: 50%;
  translate: 0 0.06em;
}
.lp-pin--start { background: var(--lp-yellow); }
.lp-pin--end {
  background: radial-gradient(circle, #FFFFFF 0 30%, var(--lp-teal) 32%);
}

.lp-hero__lead {
  max-width: 33ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.85;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.lp-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9375rem;
}
.lp-trust .lp-icon { color: var(--lp-teal); }

/* The city: a schematic Damascus with one suggested line */
.lp-city {
  position: relative;
  margin: 0;
  padding: 56px 0 72px;
}
.lp-city__map { display: block; width: 100%; height: auto; overflow: visible; }

.lp-city__ridge { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 2; stroke-linecap: round; }
.lp-city__mountain-name { fill: rgba(255, 255, 255, 0.34); font: 600 13px var(--font); }
.lp-city__streets path { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 3; stroke-linecap: round; }
.lp-city__river { fill: none; stroke: rgba(120, 196, 255, 0.22); stroke-width: 6; stroke-linecap: round; }
.lp-city__lines path { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.lp-city__stations circle { fill: var(--lp-navy); stroke: rgba(255, 255, 255, 0.45); stroke-width: 3; }
.lp-city__stations--ride circle { fill: #FFFFFF; stroke: var(--lp-teal); stroke-width: 4; }
.lp-city__walk { fill: none; stroke: rgba(255, 255, 255, 0.75); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0.5 8; }
.lp-city__ride-glow { fill: none; stroke: var(--lp-teal); stroke-opacity: 0.3; stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; filter: blur(7px); }
.lp-city__ride { fill: none; stroke: var(--lp-teal); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.lp-city__start { fill: var(--lp-yellow); stroke: var(--lp-navy); stroke-width: 4; }
.lp-city__end circle:first-child { fill: var(--lp-teal); stroke: #FFFFFF; stroke-width: 4; }
.lp-city__end circle:last-child { fill: #FFFFFF; }
.lp-city__bus { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4)); }
.lp-city__bus rect { fill: var(--lp-yellow); }
.lp-city__bus path { fill: none; stroke: var(--lp-navy); stroke-width: 2.6; stroke-linecap: round; }
.lp-city__bus circle { fill: var(--lp-navy); }

.lp-city__labels text {
  fill: rgba(255, 255, 255, 0.5);
  font: 600 14px var(--font);
  paint-order: stroke;
  stroke: #12294A;
  stroke-width: 6px;
  stroke-linejoin: round;
}
.lp-city__labels--ride text { fill: #FFFFFF; font-size: 15px; font-weight: 700; }

.lp-city__search,
.lp-city__result {
  position: absolute;
  margin: 0;
  border-radius: 18px;
  background: #FFFFFF;
  color: var(--lp-navy);
  box-shadow: 0 28px 50px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(20, 45, 78, 0.06);
}
.lp-city__search {
  top: 0;
  inset-inline-end: 4%;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  min-width: 210px;
  font-weight: 700;
}
.lp-city__search p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 2px;
}
.lp-city__search p + p { border-top: 1px solid var(--lp-border); }
.lp-city__q { color: var(--lp-muted); font-weight: 600; font-size: 0.875rem; }

.lp-city__result {
  bottom: 0;
  inset-inline-start: 8%;
  padding: 14px 18px 12px;
  min-width: 270px;
}
.lp-city__result p { margin: 0; }
.lp-city__chips { display: flex; gap: 6px; margin-bottom: 8px !important; }
.lp-city__ride-text { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.0625rem; }
.lp-city__ride-text .lp-icon { color: var(--lp-teal-deep); }
.lp-city__walk-text { display: flex; align-items: center; gap: 8px; color: var(--lp-muted); font-size: 0.9375rem; }

/* ── The journey line (one line through every stop) ───────────── */

.lp-journey {
  position: relative;
  --lp-edge: max(16px, calc((100% - 1160px) / 2));
}
.lp-journey::before,
.lp-journey::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  inset-inline-start: calc(var(--lp-edge) + var(--lp-rail) - 3px);
  width: 6px;
  border-radius: 3px;
  pointer-events: none;
}
.lp-journey::before { background: rgba(22, 184, 166, 0.2); }
.lp-journey::after { background: var(--lp-teal); transform-origin: top; scale: 1 0; }
/* No scroll-driven animation in this browser: the line is simply drawn. */
@supports not (animation-timeline: view()) {
  .lp-journey::after { scale: 1 1; }
}

.lp-journey .lp-wrap { padding-inline-start: var(--lp-indent); }

.lp-stop { position: relative; padding: var(--lp-stop-pad) 0; }

.lp-stop__head { position: relative; margin-bottom: 18px; }
/* The stop on the line, beside each heading */
.lp-stop__head::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 4px;
  inset-inline-start: calc(-1 * var(--lp-indent) + var(--lp-rail) - 13px);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 6px solid var(--lp-teal);
  box-sizing: border-box;
}

.lp-kicker {
  margin: 0 0 6px;
  color: var(--lp-teal-deep);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 34px;
}

.lp-h2 {
  margin: 0;
  font: 800 clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem)/1.15 var(--lp-display);
}

.lp-lead {
  max-width: 52ch;
  margin: 0 0 32px;
  color: var(--lp-muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.85;
}

.lp-hint { margin: 16px 0 0; color: var(--lp-muted); font-size: 0.9375rem; max-width: 46ch; }

/* ── Stop 1: how it works ─────────────────────────────────────── */

.lp-how { background: #FFFFFF; }

.lp-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
/* The three steps ride their own little line */
.lp-steps::before {
  content: "";
  position: absolute;
  top: 25px;
  inset-inline: 28px calc(33.333% - 28px);
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to left, var(--lp-yellow), var(--lp-teal) 30%);
}

.lp-step { position: relative; }
.lp-step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border: 6px solid var(--lp-teal);
  border-radius: 50%;
  background: #FFFFFF;
  font: 800 1.5rem/1 var(--lp-display);
  padding-top: 4px;
}
.lp-step--1 .lp-step__num { border-color: var(--lp-yellow); }
.lp-step--3 .lp-step__num { background: var(--lp-teal); }

.lp-step__title { margin: 0 0 6px; font: 700 1.625rem/1.3 var(--lp-display); }
.lp-step__text { margin: 0; max-width: 32ch; color: var(--lp-muted); line-height: 1.8; }

/* ── Stop 2: lines drawn by people ────────────────────────────── */

.lp-community { background: var(--lp-surface); }

.lp-community__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 56px;
}

.lp-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.lp-feature {
  padding: 20px 20px 18px;
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  background: #FFFFFF;
  transition: transform 0.3s var(--lp-ease), box-shadow 0.3s var(--lp-ease), border-color 0.3s;
}
.lp-feature:hover { transform: translateY(-3px); border-color: rgba(22, 184, 166, 0.5); box-shadow: 0 18px 36px -24px rgba(20, 45, 78, 0.45); }
.lp-feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--lp-teal-50);
  color: var(--lp-teal-deep);
}
.lp-feature__title { margin: 0 0 4px; font: 700 1.25rem/1.35 var(--lp-display); }
.lp-feature__text { margin: 0; color: var(--lp-muted); font-size: 0.9375rem; line-height: 1.75; }

/* Three line cards, as on /map (examples) */
.lp-tickets {
  position: relative;
  min-height: 400px;
}
.lp-ticket {
  position: absolute;
  inset-inline: 0;
  padding: 22px 24px 20px;
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 30px 60px -30px rgba(20, 45, 78, 0.45), 0 0 0 1px rgba(20, 45, 78, 0.05);
  transition: transform 0.5s var(--lp-ease);
}
.lp-ticket--a { top: 0; rotate: -3deg; --line: var(--lp-teal); z-index: 3; }
.lp-ticket--b { top: 132px; rotate: 2.5deg; inset-inline-start: 28px; --line: #3B7DD8; z-index: 2; }
.lp-ticket--c { top: 262px; rotate: -1.5deg; inset-inline-end: 28px; --line: #E8843C; z-index: 1; }
.lp-tickets:hover .lp-ticket--a { transform: translateY(-8px); }
.lp-tickets:hover .lp-ticket--c { transform: translateY(8px); }

.lp-ticket__line {
  position: relative;
  display: block;
  height: 8px;
  margin: 4px 6px 18px;
  border-radius: 4px;
  background: var(--line);
}
.lp-ticket__line::before,
.lp-ticket__line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid var(--line);
  box-sizing: border-box;
}
.lp-ticket__line::before { inset-inline-start: -6px; border-color: var(--lp-yellow); background: var(--lp-yellow); }
.lp-ticket__line::after { inset-inline-end: -6px; }
.lp-ticket__name { margin: 0 0 8px; font: 700 1.3125rem/1.35 var(--lp-display); }
.lp-ticket__meta { margin: 0; }
.lp-votes { color: var(--lp-muted); font-weight: 700; font-size: 0.9375rem; }

/* ── Stop 3: numbers ──────────────────────────────────────────── */

.lp-numbers { background: var(--lp-navy); color: #FFFFFF; }
.lp-numbers .lp-kicker { color: var(--lp-teal); }
.lp-numbers .lp-stop__head::before { background: var(--lp-navy); }

.lp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 44px 0 0;
}
.lp-stat {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.lp-stat dt { order: 2; color: rgba(255, 255, 255, 0.72); font-weight: 600; }
.lp-stat dd { order: 1; }
.lp-stat dd.lp-stat__note { order: 3; }
.lp-stat dd { margin: 0; }
.lp-stat__value {
  display: inline-block;
  font: 800 clamp(3.25rem, 2rem + 4vw, 5.25rem)/1 var(--lp-display);
  font-variant-numeric: tabular-nums;
  padding-top: 0.08em;
}
.lp-stat--coverage { flex: 1.7 1 300px; }
.lp-stat--lines .lp-stat__value { color: var(--lp-teal); }
.lp-stat--confirmations .lp-stat__value { color: var(--lp-yellow); }
.lp-stat--verified .lp-stat__value { color: #FFFFFF; }

.lp-places { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 6px; }
.lp-place {
  padding: 6px 16px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font: 700 1.375rem/1.4 var(--lp-display);
}
.lp-stat__note { margin-top: 4px !important; color: rgba(255, 255, 255, 0.6); font-size: 0.9375rem; }

/* ── Stop 4: install ──────────────────────────────────────────── */

.lp-install { background: #FFFFFF; overflow: hidden; }
.lp-install__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 48px;
}
.lp-install .lp-actions { margin-top: 0; }

.lp-phone {
  justify-self: center;
  width: min(270px, 70vw);
  aspect-ratio: 9 / 18.5;
  padding: 12px;
  border-radius: 46px;
  background: var(--lp-navy);
  box-shadow: 0 50px 80px -40px rgba(20, 45, 78, 0.7), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  rotate: -5deg;
}
.lp-phone__screen {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 18px 14px;
  height: 100%;
  padding: 18px 18px 18px;
  border-radius: 36px;
  background:
    radial-gradient(80% 50% at 80% 100%, rgba(22, 184, 166, 0.35), transparent 70%),
    linear-gradient(165deg, #E9F7F5, #F5F8FA 60%);
}
.lp-phone__app {
  display: block;
  aspect-ratio: 1;
  border-radius: 13px;
  background: rgba(20, 45, 78, 0.09);
}
.lp-phone__app--lowein {
  position: relative;
  background: none;
}
.lp-phone__app--lowein img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
  box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 7px var(--lp-yellow);
}
.lp-phone__app--lowein span {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline: -10px;
  text-align: center;
  font: 700 0.75rem/1.2 var(--font);
  color: var(--lp-navy);
}

/* ── Arrival («لوين») ─────────────────────────────────────────── */

.lp-final {
  z-index: 2; /* covers the teal line: here the line turns navy */
  background: var(--lp-teal);
  color: var(--lp-navy);
}
.lp-final .lp-kicker { color: var(--lp-navy); }
.lp-final .lp-stop__head::before {
  top: -2px;
  inset-inline-start: calc(-1 * var(--lp-indent) + var(--lp-rail) - 19px);
  width: 38px;
  height: 38px;
  border: 10px solid var(--lp-navy);
  background: #FFFFFF;
}
.lp-final .lp-stop__head::after {
  content: "";
  position: absolute;
  bottom: calc(100% - 4px);
  inset-inline-start: calc(-1 * var(--lp-indent) + var(--lp-rail) - 3px);
  width: 6px;
  height: var(--lp-stop-pad);
  border-radius: 3px;
  background: var(--lp-navy);
}
.lp-final__title {
  margin: 0;
  font: 800 clamp(2.75rem, 1.5rem + 5vw, 5.25rem)/1.1 var(--lp-display);
}
.lp-final .lp-actions { gap: 18px 28px; margin-top: 34px; }
.lp-link { color: var(--lp-navy); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.lp-link:hover { color: var(--lp-ink); }

/* ── Footer ───────────────────────────────────────────────────── */

.lp-footer {
  padding: 40px 0 48px;
  background: var(--lp-ink);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9375rem;
}
.lp-footer__inner { display: grid; gap: 10px; }
.lp-footer p { margin: 0; }
.lp-footer__brand { display: flex; align-items: center; gap: 10px; color: #FFFFFF; font-size: 1.0625rem; }
.lp-footer__brand .icon-logo { width: 30px; height: 30px; border-radius: 9px; }
.lp-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 6px 0 8px !important; }
.lp-footer a { color: #FFFFFF; font-weight: 600; }
.lp-footer a:hover { color: var(--lp-teal); }

/* ── Motion ───────────────────────────────────────────────────── */

@keyframes lp-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes lp-fade { from { opacity: 0; } }
@keyframes lp-draw { from { stroke-dashoffset: 1; opacity: 0; } 6% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes lp-pop { from { opacity: 0; transform: scale(0.2); } 70% { transform: scale(1.15); } to { opacity: 1; transform: scale(1); } }
@keyframes lp-float { 50% { transform: translateY(-8px); } }
@keyframes lp-ping-small { 0% { box-shadow: 0 0 0 0 rgba(22, 184, 166, 0.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(22, 184, 166, 0); } }
@keyframes lp-line-fill { to { scale: 1 1; } }
@keyframes lp-wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -6deg; } 75% { rotate: 6deg; } }

@media (prefers-reduced-motion: no-preference) {
  .lp-hero__copy > * { animation: lp-rise 0.9s var(--lp-ease) backwards; }
  .lp-hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .lp-hero__copy > :nth-child(3) { animation-delay: 0.18s; }
  .lp-hero__copy > :nth-child(4) { animation-delay: 0.28s; }
  .lp-hero__copy > :nth-child(5) { animation-delay: 0.38s; }
  .lp-title__to { animation: lp-rise 0.9s 0.3s var(--lp-ease) backwards; }

  .lp-eyebrow__dot { animation: lp-ping-small 2.2s 1.2s infinite; }

  .lp-city__lines path,
  .lp-city__ride { stroke-dasharray: 1 1; animation: lp-draw 1.4s cubic-bezier(0.6, 0, 0.2, 1) both; }
  .lp-city__lines path:nth-child(1) { animation-delay: 0.15s; }
  .lp-city__lines path:nth-child(2) { animation-delay: 0.3s; }
  .lp-city__lines path:nth-child(3) { animation-delay: 0.45s; }
  .lp-city__lines path:nth-child(4) { animation-delay: 0.6s; }
  .lp-city__ride { animation-duration: 1.2s; animation-delay: 1s; }
  .lp-city__ride-glow,
  .lp-city__walk { animation: lp-fade 0.8s 1.9s backwards; }
  .lp-city__stations circle,
  .lp-city__start,
  .lp-city__end { transform-box: fill-box; transform-origin: center; animation: lp-pop 0.5s var(--lp-ease) backwards; }
  .lp-city__stations circle { animation-delay: 0.9s; }
  .lp-city__stations--ride circle:nth-child(1) { animation-delay: 1.1s; }
  .lp-city__stations--ride circle:nth-child(2) { animation-delay: 1.35s; }
  .lp-city__stations--ride circle:nth-child(3) { animation-delay: 1.6s; }
  .lp-city__stations--ride circle:nth-child(4) { animation-delay: 1.85s; }
  .lp-city__start { animation-delay: 0.9s; }
  .lp-city__end { animation-delay: 2.1s; }
  .lp-city__labels { animation: lp-fade 0.8s 1.2s backwards; }
  .lp-city__bus { animation: lp-fade 0.3s 2.4s backwards; }
  .lp-city__search { animation: lp-rise 0.8s 0.6s var(--lp-ease) backwards, lp-float 6s 2s ease-in-out infinite; }
  .lp-city__result { animation: lp-rise 0.8s 2.2s var(--lp-ease) backwards, lp-float 7s 3s ease-in-out infinite; }

  .lp-phone__app--lowein img { animation: lp-wiggle 0.6s 0.4s ease-in-out 2 both; }

  /* Sections fade up as they come into view (js/landing.js marks them). */
  [data-reveal].lp-pre { opacity: 0; transform: translateY(26px); }
  [data-reveal].lp-in { opacity: 1; transform: none; transition: opacity 0.8s var(--lp-ease), transform 0.8s var(--lp-ease); }
  .lp-steps > .lp-in:nth-child(2), .lp-features > .lp-in:nth-child(2), .lp-stats > .lp-in:nth-child(2) { transition-delay: 0.1s; }
  .lp-steps > .lp-in:nth-child(3), .lp-features > .lp-in:nth-child(3), .lp-stats > .lp-in:nth-child(3) { transition-delay: 0.2s; }
  .lp-features > .lp-in:nth-child(4), .lp-stats > .lp-in:nth-child(4) { transition-delay: 0.3s; }

  /* The line fills as you read down the page. */
  @supports (animation-timeline: view()) {
    .lp-journey::after {
      animation: lp-line-fill linear both;
      animation-timeline: view();
      animation-range: entry 40% exit 60%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-city__bus { display: none; }
  .lp-journey::after { scale: 1 1; }
  .lp-btn, .lp-feature, .lp-ticket { transition: none; }
}

/* ── Smaller screens ──────────────────────────────────────────── */

@media (max-width: 1020px) {
  .lp-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; }
  .lp-hero { padding-top: 40px; padding-bottom: 56px; }
  .lp-city { max-width: 640px; width: 100%; justify-self: center; }
  .lp-community__grid,
  .lp-install__grid { grid-template-columns: minmax(0, 1fr); }
  .lp-tickets { max-width: 460px; width: 100%; }
}

@media (max-width: 760px) {
  .lp { --lp-indent: 44px; --lp-rail: 11px; }
  .lp-nav { display: none; }
  .lp-header__inner { justify-content: space-between; min-height: 60px; }
  .lp-brand__name { font-size: 1.375rem; }
  .lp-brand .icon-logo { width: 34px; height: 34px; }

  .lp-title__to { padding-inline-start: 0.45em; }
  .lp-actions .lp-btn { flex: 1 1 100%; }
  .lp-hero .lp-actions .lp-btn--ghost { flex: 1 1 40%; padding: 0 12px; }
  .lp-install .lp-actions .lp-btn { flex: 0 1 auto; }

  .lp-city { padding: 44px 0 96px; }
  .lp-city__search { inset-inline-end: 0; min-width: 0; font-size: 0.875rem; padding: 6px 12px; }
  .lp-city__result { inset-inline-start: 0; inset-inline-end: 0; min-width: 0; }
  .lp-city__labels text { font-size: 17px; }
  .lp-city__labels--ride text { font-size: 18px; }

  .lp-stop__head::before { width: 22px; height: 22px; border-width: 5px; inset-inline-start: calc(-1 * var(--lp-indent) + var(--lp-rail) - 11px); top: 6px; }
  .lp-final .lp-stop__head::before { width: 32px; height: 32px; border-width: 8px; inset-inline-start: calc(-1 * var(--lp-indent) + var(--lp-rail) - 16px); }

  /* Steps: the little line turns vertical */
  .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 32px; }
  .lp-steps::before { top: 28px; bottom: 28px; inset-inline: 25px auto; width: 6px; height: auto; background: linear-gradient(to bottom, var(--lp-yellow), var(--lp-teal) 30%); }
  .lp-step { padding-inline-start: 76px; min-height: 56px; }
  .lp-step__num { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
  .lp-step__title { font-size: 1.4375rem; padding-top: 8px; }

  .lp-features { grid-template-columns: minmax(0, 1fr); }
  .lp-tickets { min-height: 410px; }
  .lp-ticket--b { top: 134px; inset-inline-start: 14px; }
  .lp-ticket--c { top: 266px; inset-inline-end: 14px; }

  .lp-stats { gap: 22px; }
  .lp-stat { flex-basis: 130px; }
}

/* Phone details (install section) */
.lp-phone__time {
  grid-column: 1 / -1;
  margin-bottom: 14px;
  text-align: center;
  font: 700 2.25rem/1 var(--lp-display);
  color: var(--lp-navy);
  opacity: 0.85;
}
.lp-phone__dock {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 12px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.55);
}
