/* RoutePassenger home page */
.home {
    --home-ink: #0f172a;
    --home-text: #475569;
    --home-muted: #64748b;
    --home-accent: #3f5a73;
    --home-accent-dark: #2f465b;
    --home-sky: #38bdf8;
    --home-line: #e2e8f0;
    --home-alt: #f1f5f9;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--home-ink);
    padding-top: 70px; /* fixed navbar */
}

.home-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.home-btn:active { transform: translateY(1px); }
.home-btn-primary { background: var(--home-accent); color: #fff !important; }
.home-btn-primary:hover { background: var(--home-accent-dark); }
.home-btn-ghost { color: #fff !important; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.home-btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.home-btn-outline { color: var(--home-accent) !important; border-color: var(--home-accent); background: #fff; }
.home-btn-outline:hover { background: #f8fafc; }

/* Hero */
.home-hero {
    position: relative;
    background-color: #041d3d; /* same as the dark side of the hero image */
    background-image: url("/static/img/hero-desktop-1440.webp");
    background-image: -webkit-image-set(url("/static/img/hero-desktop-1440.webp") 1x, url("/static/img/hero-desktop-2880.webp") 2x);
    background-image: image-set(url("/static/img/hero-desktop-1440.webp") 1x, url("/static/img/hero-desktop-2880.webp") 2x);
    /* Full height, anchored right: wide screens show the whole map, the dark side fills the left */
    background-size: auto 100%;
    background-position: right center;
    background-repeat: no-repeat;
    min-height: 620px;
    display: flex;
    align-items: center;
    color: #fff;
}
/* The image is already dark on the left; only a light shade behind the text */
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 18, 40, .55) 0%, rgba(4, 18, 40, .25) 38%, rgba(4, 18, 40, 0) 55%);
}
.home-hero-inner { position: relative; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.home-hero-copy { max-width: 540px; }
.home-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7dd3fc;
    background: rgba(56, 189, 248, .12);
    border: 1px solid rgba(125, 211, 252, .35);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.home-hero h1 {
    font-size: 50px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff !important;
    margin: 0 0 18px;
}
.home .home-hero-lead { font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, .86); margin: 0 0 30px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.home-hero-points i { color: #4ade80; margin-right: 6px; }

/* Sections */
.home-section { padding: 88px 0; }
.home-section-alt { background: var(--home-alt); }
.home-h2 { font-size: 34px; font-weight: 700; letter-spacing: -.01em; color: var(--home-ink); margin: 0 0 14px; }
.home-sub { font-size: 18px; color: var(--home-text); max-width: 680px; margin: 0 auto 8px; line-height: 1.6; }
.home h3 { font-size: 19px; font-weight: 600; color: var(--home-ink); margin: 0 0 8px; }
.home p { color: var(--home-text); line-height: 1.6; }

.home-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e0eaf3; color: var(--home-accent);
    font-size: 20px;
    margin-bottom: 18px;
}
.home-icon-lg { width: 56px; height: 56px; font-size: 24px; }

/* Who it is for */
.home-for-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.home-for-card { background: #fff; border: 1px solid var(--home-line); border-radius: 16px; padding: 28px 24px; }
.home-for-card p { font-size: 15px; margin: 0; }

/* Who sees the routes (access levels) */
.home-section-access { border-top: 1px solid var(--home-line); }
.home-access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.home-access-card { background: #fff; border: 1px solid var(--home-line); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; }
.home-access-card dl { margin: 0 0 12px; }
.home-access-card dt { font-size: 13px; font-weight: 600; color: var(--home-ink); text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; }
.home-access-card dd { margin: 2px 0 0; font-size: 15px; color: var(--home-text); line-height: 1.55; }
.home-access-examples { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--home-line); font-size: 14px; }
.home-access-note { margin: 28px auto 0; max-width: 760px; font-size: 15px; }

/* How it works */
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; counter-reset: step; }
.home-step { position: relative; background: #fff; border-radius: 16px; padding: 32px 28px; border: 1px solid var(--home-line); }
.home-step-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--home-accent); color: #fff; font-weight: 700;
    margin-bottom: 16px;
}
.home-step p { margin: 0; font-size: 15px; }

/* Products */
.home-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.home-product { border: 1px solid var(--home-line); border-radius: 18px; padding: 32px 28px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .04); }
.home-product ul { list-style: none; padding: 0; margin: 18px 0 0; }
.home-product li { font-size: 15px; color: var(--home-text); padding: 6px 0; border-top: 1px solid #f1f5f9; }
.home-product li i { color: #16a34a; margin-right: 8px; font-size: 13px; }

/* Features */
.home-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin-top: 44px; }
.home-feature { display: flex; gap: 16px; align-items: flex-start; }
.home-feature > i { font-size: 20px; color: var(--home-accent); width: 28px; margin-top: 4px; text-align: center; flex-shrink: 0; }
.home-feature p { font-size: 15px; margin: 0; }

/* Pricing band */
.home-pricing-band {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: linear-gradient(135deg, #0f1e33 0%, #3f5a73 100%);
    border-radius: 22px; padding: 44px 48px; color: #fff;
}
.home-pricing-band .home-h2 { color: #fff; }
.home-pricing-band p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 17px; }
.home-pricing-band .home-btn-primary { background: #fff; color: var(--home-accent-dark) !important; }
.home-pricing-band .home-btn-primary:hover { background: #e2e8f0; }

/* Contact */
.home-contact { text-align: center; }
.home-contact .home-sub { margin-bottom: 28px; }
.home-contact-mail { margin-top: 18px; font-size: 14px; color: var(--home-muted) !important; }

/* Footer */
.home-footer { background: #0b1626; color: #cbd5e1; padding: 56px 0 24px; font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.home-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.home-footer h5 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.home-footer a { display: block; color: #cbd5e1; text-decoration: none; font-size: 15px; padding: 3px 0; }
.home-footer a:hover { color: #fff; }
.home-footer p { color: #94a3b8; font-size: 14px; line-height: 1.6; margin: 12px 0 0; }
.home-footer .home-footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; }
.home-footer-brand img { width: 34px; height: 34px; }
.home-footer-note { margin-top: 0 !important; }

/* The site-wide copyright bar sits under the dark home footer */
body:has(.home) footer.footer-default { background: #0b1626; color: #94a3b8; border-top: 1px solid rgba(255, 255, 255, .08); }
body:has(.home) footer.footer-default .text-muted { color: #94a3b8 !important; }

/* Responsive */
@media (max-width: 1300px) and (min-width: 641px) {
    .home-hero-overlay { background: linear-gradient(90deg, rgba(4, 18, 40, .9) 0%, rgba(4, 18, 40, .7) 50%, rgba(4, 18, 40, .2) 85%); }
}
@media (max-width: 991px) {
    .home-for-grid { grid-template-columns: repeat(2, 1fr); }
    .home-steps, .home-products, .home-access-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
    .home-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .home-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    /* Phone: portrait image, text on the dark top, the map below it */
    .home-hero {
        min-height: 0;
        align-items: flex-start;
        background-image: url("/static/img/hero-mobile-600.webp");
        background-image: -webkit-image-set(url("/static/img/hero-mobile-600.webp") 1x, url("/static/img/hero-mobile-1200.webp") 2x);
        background-image: image-set(url("/static/img/hero-mobile-600.webp") 1x, url("/static/img/hero-mobile-1200.webp") 2x);
        background-size: 100% auto;
        background-position: center bottom;
    }
    .home-hero-overlay { background: linear-gradient(180deg, #041d3d 0%, rgba(4, 29, 61, .8) 50%, rgba(4, 29, 61, 0) 66%); }
    .home-hero-inner { padding-top: 44px; padding-bottom: 92vw; }
    .home-hero h1 { font-size: 36px; }
    .home-hero-lead { font-size: 17px; }
    .home-hero-actions .home-btn { flex: 1 1 100%; }
    .home-section { padding: 60px 0; }
    .home-h2 { font-size: 27px; }
    .home-for-grid, .home-feature-grid { grid-template-columns: 1fr; }
    .home-pricing-band { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
    .home-footer-grid { grid-template-columns: 1fr; }
}

/* Pricing page */
.home-h1 { font-size: 46px; font-weight: 700; letter-spacing: -.02em; color: var(--home-ink); margin: 0 0 16px; }
.price-hero { padding-bottom: 24px; }
.price-plan-section { padding-top: 24px; }
.price-plan {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    max-width: 960px; margin: 0 auto;
    border: 1px solid var(--home-line); border-radius: 22px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .08); background: #fff;
}
.price-plan-main { padding: 44px; border-right: 1px solid var(--home-line); }
.price-eyebrow { color: var(--home-accent); background: #e6edf3; border-color: #cbd8e4; }
.price-amount { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 12px; }
.price-value { font-size: 64px; font-weight: 700; letter-spacing: -.03em; color: var(--home-ink); line-height: 1; }
.price-unit { font-size: 18px; color: var(--home-muted); }
.price-plan-main p { margin-bottom: 24px; }
.home .price-example { margin: 22px 0 0; font-size: 14px; color: var(--home-muted); }
.price-example i { margin-right: 6px; }
.price-plan-list { padding: 44px; background: #f8fafc; }
.price-plan-list ul { list-style: none; padding: 0; margin: 16px 0 0; }
.price-plan-list li { padding: 8px 0; color: var(--home-text); font-size: 15px; }
.price-plan-list li i { color: #16a34a; margin-right: 10px; }
.price-faq { max-width: 820px; }
.price-faq .accordion { margin-top: 32px; }
.price-faq .accordion-button { font-weight: 600; font-size: 16px; color: var(--home-ink); }
.price-faq .accordion-button:not(.collapsed) { background: #f1f5f9; color: var(--home-ink); box-shadow: none; }
.price-faq .accordion-body { color: var(--home-text); line-height: 1.6; }
.home-contact-mail a { color: var(--home-accent); }

@media (max-width: 760px) {
    .price-plan { grid-template-columns: 1fr; }
    .price-plan-main { border-right: 0; border-bottom: 1px solid var(--home-line); padding: 32px 26px; }
    .price-plan-list { padding: 32px 26px; }
    .home-h1 { font-size: 34px; }
    .price-value { font-size: 52px; }
}

/* Guides (resources) page */
.guides-video-note { font-size: 14px; color: var(--home-muted) !important; margin-top: 4px; }
.guides-video-note i { color: var(--home-accent); margin-right: 4px; }
.guides-section { padding-top: 16px; }
.guides-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.guides-nav { position: sticky; top: 96px; }
.guides-nav h5 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--home-muted); margin: 20px 0 8px; }
.guides-nav h5:first-child { margin-top: 0; }
.guides-nav a { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 8px; color: var(--home-text); text-decoration: none; font-size: 15px; }
.guides-nav a:hover { background: var(--home-alt); color: var(--home-ink); }
.guides-nav a span { font-weight: 700; color: var(--home-accent); min-width: 14px; }
.guides-list { display: flex; flex-direction: column; gap: 28px; }
.guide { border: 1px solid var(--home-line); border-radius: 18px; padding: 32px; background: #fff; scroll-margin-top: 90px; }
.guide header { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.guide header .home-icon { flex-shrink: 0; margin-bottom: 0; }
.guide-group { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--home-muted); }
.guide h2 { font-size: 23px; font-weight: 700; color: var(--home-ink); margin: 2px 0 6px; }
.guide header p { margin: 0; }
.guide-steps { counter-reset: gstep; list-style: none; padding: 0; margin: 0; }
.guide-steps li { counter-increment: gstep; position: relative; padding: 10px 0 10px 44px; color: var(--home-text); line-height: 1.6; border-top: 1px solid #f1f5f9; }
.guide-steps li::before {
    content: counter(gstep); position: absolute; left: 0; top: 10px;
    width: 28px; height: 28px; border-radius: 50%; background: #e6edf3; color: var(--home-accent);
    font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.home .guide-tip { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; background: #f0f9ff; color: #0c4a6e; font-size: 15px; }
.guide-tip i { margin-right: 6px; }
.guides-cta { margin-top: 12px; }
@media (max-width: 900px) {
    .guides-layout { grid-template-columns: 1fr; gap: 24px; }
    .guides-nav { position: static; border: 1px solid var(--home-line); border-radius: 14px; padding: 16px; background: #fff; }
}
@media (max-width: 640px) {
    .guide { padding: 24px 20px; }
    .guide header { flex-direction: column; gap: 12px; }
}

/* Guides: phone screenshots */
.guide-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 20px; margin-top: 22px; padding-top: 22px; border-top: 1px solid #f1f5f9; }
.guide-shot { margin: 0; text-align: center; }
.guide-phone { display: block; max-width: 200px; margin: 0 auto; border: 6px solid #0f172a; border-radius: 26px; overflow: hidden; background: #0f172a; box-shadow: 0 14px 30px rgba(15, 23, 42, .16); transition: transform .15s ease; }
.guide-phone:hover { transform: translateY(-2px); }
.guide-phone img { display: block; width: 100%; height: auto; }
.home .guide-shot figcaption { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--home-muted); }
@media (max-width: 640px) {
    .guide-shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 60%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
    .guide-shot { scroll-snap-align: start; }
}

/* Quick start: link to the full user guide */
.guides-manual-card { display: inline-flex; align-items: center; gap: 16px; margin-top: 22px; padding: 16px 22px; max-width: 620px; text-align: left;
    border: 1px solid var(--home-line); border-radius: 16px; background: #fff; color: var(--home-ink); text-decoration: none; }
.guides-manual-card:hover { border-color: var(--home-accent); color: var(--home-ink); }
.guides-manual-card .home-icon { margin: 0; flex-shrink: 0; }
.guides-manual-card strong { display: block; font-size: 17px; }
.guides-manual-card span span { display: block; font-size: 14px; color: var(--home-muted); }
.guides-manual-card > i { color: var(--home-accent); }
.home .guide-more { margin: 12px 0 0; font-size: 15px; font-weight: 600; }
.guide-more a { color: var(--home-accent); text-decoration: none; }
