/* css/landing.css
   Landing page only (index.php).
   Palette is unchanged: slate primary #334155 + existing teal accent from header.css. */

/* Header, footer, buttons and fonts live in site.css */

/* ---------- Hero ---------- */
.lp-hero {
    position: relative;
    isolation: isolate;
    padding: 120px 24px 104px;
    text-align: center;
    overflow: hidden;
}

/* soft glow + dot matrix, fading out toward the bottom */
.lp-hero::before,
.lp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.lp-hero::before {
    background: radial-gradient(ellipse 60% 55% at 50% 22%, rgba(51, 65, 85, 0.12), transparent 70%);
}
.lp-hero::after {
    background-image: radial-gradient(circle, rgba(51, 65, 85, 0.22) 1px, transparent 1.4px);
    background-size: 9px 9px;
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 15%, #000 0%, rgba(0, 0, 0, 0.25) 55%, transparent 80%);
            mask-image: radial-gradient(ellipse 75% 85% at 50% 15%, #000 0%, rgba(0, 0, 0, 0.25) 55%, transparent 80%);
}

.lp-hero-inner { max-width: 780px; margin: 0 auto; }

.lp-badge {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(51, 65, 85, 0.25);
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.06);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
}

.lp-title {
    margin: 28px 0 0;
    font-family: var(--lp-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 6.4vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--lp-ink);
}
.lp-title-accent {
    display: block;
    color: var(--color-accent);
}

.lp-lead {
    max-width: 520px;
    margin: 28px auto 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--lp-muted);
}

.lp-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

/* stats */
.lp-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px 64px;
    margin: 72px auto 0;
    padding-top: 48px;
    border-top: 1px solid var(--lp-line);
}
.lp-stat { text-align: center; }
.lp-stat dt {
    font-family: var(--lp-display);
    font-weight: 800;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}
.lp-stat dd {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* one orchestrated entrance, only for the hero */
@media (prefers-reduced-motion: no-preference) {
    .lp-hero-inner > * { animation: lp-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
    .lp-hero-inner > :nth-child(2) { animation-delay: .06s; }
    .lp-hero-inner > :nth-child(3) { animation-delay: .12s; }
    .lp-hero-inner > :nth-child(4) { animation-delay: .18s; }
    .lp-hero-inner > :nth-child(5) { animation-delay: .26s; }
}
@keyframes lp-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.lp-section { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lp-rides { margin-bottom: 96px; }

.lp-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}
.lp-section-head h2,
.lp-app-copy h2 {
    font-family: var(--lp-display);
    font-weight: 800;
    font-size: clamp(1.7rem, 3.2vw, 2.25rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--lp-ink);
}
.lp-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-slate-600);
    text-decoration: none;
}
.lp-link:hover { color: var(--color-primary); }

/* ---------- Rides ---------- */
.lp-rides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.lp-ride {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--lp-line);
    border-radius: 24px;
    transition: border-color .2s ease;
}
.lp-ride:hover { border-color: var(--color-primary); }

.lp-ride-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-rider { display: flex; align-items: center; gap: 12px; }
.lp-rider h3 { font-size: 16px; font-weight: 600; line-height: 1.2; }
.lp-rider p { margin-top: 2px; font-size: 13px; color: var(--lp-muted); }
.lp-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--lp-display);
    font-weight: 800;
    font-size: 16px;
}
.lp-chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--color-slate-100);
    color: var(--color-slate-600);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* route: dots joined by a line, read top to bottom */
.lp-route { list-style: none; margin: 28px 0; padding: 0; }
.lp-stop {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0 22px 28px;
}
.lp-stop:last-child { padding-bottom: 0; }
.lp-stop::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-sizing: border-box;
}
.lp-stop-start::before { border: 2px solid var(--color-accent); background: var(--color-white); }
.lp-stop-end::before   { background: var(--color-primary); }
.lp-stop-start::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    bottom: 2px;
    width: 2px;
    background: var(--lp-line);
}
.lp-stop-name { font-size: 15px; font-weight: 600; color: var(--lp-ink); }
.lp-stop-time { font-size: 13px; color: var(--lp-muted); }

.lp-ride-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--color-slate-100);
}
.lp-seats { flex: 1; font-size: 13px; font-weight: 600; color: var(--color-accent); }
.lp-price { font-family: var(--lp-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--color-primary); }

/* ---------- App promo ---------- */
.lp-app { margin-bottom: 40px; }
.lp-app-panel {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 56px;
    border: 1px solid var(--lp-line);
    border-radius: 32px;
    background: var(--color-white);
    overflow: hidden;
}
.lp-app-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle, rgba(51, 65, 85, 0.16) 1px, transparent 1.4px);
    background-size: 9px 9px;
    -webkit-mask-image: radial-gradient(ellipse 60% 100% at 100% 0%, #000, transparent 70%);
            mask-image: radial-gradient(ellipse 60% 100% at 100% 0%, #000, transparent 70%);
}
.lp-app-copy > p {
    max-width: 440px;
    margin: 16px 0 32px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--lp-muted);
}
.lp-app-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-app-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .lp-rides-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-app-panel { grid-template-columns: 1fr; padding: 40px; gap: 32px; }
}
@media (max-width: 768px) {
    .lp-hero { padding: 72px 20px 72px; }
    .lp-lead { font-size: 16px; }
    .lp-stats { margin-top: 56px; padding-top: 36px; gap: 28px 40px; }
    .lp-stat dt { font-size: 28px; }
    .lp-rides-grid { grid-template-columns: 1fr; }
    .lp-app-panel { padding: 28px 22px; border-radius: 24px; }
}
@media (max-width: 480px) {
    .lp-actions .lp-btn,
    .lp-app-buttons .lp-btn { width: 100%; }
    .lp-section { padding: 0 16px; }
    .lp-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
