/* Trippr marketing site. Colours follow the app: #0D99FF, #003d99, #e5f0ff. */

:root {
    --blue: #0d99ff;
    --blue-dark: #003d99;
    --blue-deep: #07285f;
    --blue-soft: #d7e8ff;
    --blue-wash: #e5f0ff;
    --ink: #102033;
    --muted: #3e5166;
    --line: #d3e6f8;
    --page: #f5f9fd;
    --eco: #166534;
    --eco-bg: #f0fdf4;
    --eco-line: #bbf7d0;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

a {
    color: var(--blue-dark);
}

button,
input {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: 0;
    transform: translateY(-150%);
    background: var(--blue-dark);
    color: #fff;
    padding: 8px 12px;
    z-index: 30;
}

.skip-link:focus {
    transform: none;
    top: 12px;
}

.top {
    background:
        radial-gradient(820px 280px at 88% 0%, rgba(13, 153, 255, 0.2), transparent 68%),
        linear-gradient(180deg, var(--blue-soft) 0%, #eef6ff 58%, var(--page) 100%);
}

.wrap {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 8px;
}

.brand img {
    display: block;
    width: 148px;
    height: auto;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.nav a,
.nav button {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.nav a:hover,
.nav button:hover,
.nav a:focus-visible,
.nav button:focus-visible {
    background: rgba(255, 255, 255, 0.75);
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 28px;
    align-items: center;
    padding: 28px 0 72px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 12px;
    color: var(--blue-deep);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.lede {
    margin: 0 0 22px;
    max-width: 38rem;
    color: var(--muted);
    font-size: 18px;
}

.stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-width: 176px;
    min-height: 52px;
    padding: 7px 16px;
    border-radius: 12px;
    text-decoration: none;
    line-height: 1.15;
}

.store-kicker {
    font-size: 11px;
    font-weight: 600;
}

.store-name {
    font-size: 16px;
    font-weight: 700;
}

.store-primary {
    background: var(--blue);
    color: #fff;
}

.store-primary:hover,
.store-primary:focus-visible {
    background: #007ad4;
}

.store-secondary {
    background: #fff;
    color: var(--blue-dark);
    box-shadow: inset 0 0 0 2px var(--blue);
}

.store-secondary:hover,
.store-secondary:focus-visible {
    background: var(--blue-wash);
}

.road {
    position: relative;
    height: 36px;
    margin-top: 28px;
    max-width: 440px;
    container-type: inline-size;
    overflow: hidden;
}

.road-track,
.road-progress {
    position: absolute;
    left: 0;
    right: 18px;
    top: 16px;
    height: 4px;
    border-radius: 999px;
}

.road-track {
    background: repeating-linear-gradient(90deg, #b7d7fb 0 12px, transparent 12px 20px);
}

.road-progress {
    background: var(--blue);
    transform-origin: left center;
    transform: scaleX(0);
    animation: fill-road 1.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.road-pin {
    position: absolute;
    right: 8px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50% 50% 50% 0;
    background: var(--blue-dark);
    transform: rotate(-45deg);
}

.car {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    animation: drive 1.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.phone {
    margin: 0;
    text-align: center;
}

.phone img {
    width: min(100%, 300px);
    filter: drop-shadow(0 18px 28px rgba(0, 61, 153, 0.16));
}

.phone figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.features {
    padding: 12px 0 72px;
}

.features h2 {
    margin: 0 0 8px;
    color: var(--blue-deep);
    font-size: 28px;
    letter-spacing: -0.02em;
}

.features-lead {
    margin: 0 0 20px;
    max-width: 42rem;
    color: var(--muted);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.steps li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
}

.step-num {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.steps strong {
    display: block;
    margin-bottom: 4px;
    color: var(--blue-dark);
}

.steps p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.feature-list {
    display: grid;
    gap: 16px;
}

.feature {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
}

.feature img {
    width: min(100%, 220px);
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 12px 18px rgba(0, 61, 153, 0.12));
}

.feature h3 {
    margin: 0 0 8px;
    color: var(--blue-dark);
    font-size: 22px;
    letter-spacing: -0.02em;
}

.feature p {
    margin: 0 0 10px;
    color: var(--muted);
}

.feature-points {
    display: grid;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.feature-points li {
    position: relative;
    padding-left: 18px;
    color: var(--ink);
}

.feature-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
}

.feature-eco .feature-points li::before {
    background: var(--eco);
}

.diagram {
    margin: 16px 0 0;
}

.diagram figcaption {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.route-diagram,
.seat-grid,
.trust,
.compare {
    background: var(--blue-wash);
    border-radius: 14px;
    padding: 14px;
}

.feature-eco .compare {
    background: #fff;
    border: 1px solid var(--eco-line);
}

.route-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 700;
}

.route-labels span:nth-child(2) {
    color: var(--blue);
    text-align: center;
}

.route-bar {
    position: relative;
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: #c5ddf8;
}

.route-yours {
    position: absolute;
    left: 18%;
    width: 46%;
    height: 8px;
    border-radius: 999px;
    background: var(--blue);
}

.seat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 320px;
}

.seat {
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.seat-driver {
    background: var(--blue-dark);
    color: #fff;
}

.seat-taken {
    background: var(--blue);
    color: #fff;
}

.seat-open {
    background: #fff;
    color: var(--blue-dark);
    box-shadow: inset 0 0 0 2px var(--blue);
}

.trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.trust div {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 6px;
    min-height: 92px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
}

.trust strong {
    color: var(--blue-dark);
    font-size: 13px;
}

.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: 0;
}

.compare > div {
    background: #fff;
    border: 1px solid var(--eco-line);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.compare strong {
    display: block;
    margin-bottom: 8px;
    color: var(--eco);
}

.compare span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.mini-cars {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.feature-eco {
    background: var(--eco-bg);
    border-color: var(--eco-line);
}

.feature-eco h3 {
    color: var(--eco);
}

.site-footer {
    background: #fff;
    border-top: 4px solid var(--blue);
}

.footer-cta {
    text-align: center;
    padding: 40px 0 12px;
}

.footer-cta h2 {
    margin: 0 0 16px;
    color: var(--blue-deep);
}

.footer-cta .stores {
    justify-content: center;
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 20px 0 32px;
    color: var(--muted);
    font-size: 14px;
}

.footer-bar img {
    width: 96px;
    height: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--blue-dark);
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(16, 32, 51, 0.45);
}

#modal-content {
    width: min(440px, calc(100% - 32px));
    margin: 12vh auto;
    background: #fff;
    color: var(--ink);
    border-radius: 16px;
    padding: 20px 22px 8px;
    box-shadow: 0 16px 40px rgba(16, 32, 51, 0.18);
}

#modal-content h3 {
    margin: 0 0 8px;
    color: var(--blue-dark);
}

#modal-content a {
    color: var(--blue);
    font-weight: 700;
}

.close {
    float: right;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.close:hover,
.close:focus-visible {
    color: var(--ink);
}

@media (max-width: 800px) {
    .site-header {
        flex-direction: column;
        align-items: center;
    }

    .hero,
    .feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        text-align: center;
    }

    .hero > *,
    .feature > * {
        min-width: 0;
    }

    .lede,
    .road,
    .stores {
        margin-left: auto;
        margin-right: auto;
    }

    .stores,
    .footer-cta .stores {
        justify-content: center;
    }

    .store {
        flex: 1 1 148px;
        min-width: 0;
        align-items: center;
    }

    .feature img {
        order: -1;
    }

    .trust,
    .compare,
    .steps {
        grid-template-columns: 1fr;
    }

    .route-labels {
        display: grid;
        gap: 4px;
    }

    .route-labels span:nth-child(2) {
        text-align: left;
    }

    .site-header,
    .footer-bar {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .phone img {
        animation: arrive 0.7s ease both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .road-progress,
    .car,
    .phone img {
        animation: none;
    }

    .road-progress {
        transform: scaleX(1);
    }

    .car {
        transform: translateX(calc(100cqi - 54px));
    }
}

@keyframes fill-road {
    to {
        transform: scaleX(1);
    }
}

@keyframes drive {
    to {
        transform: translateX(calc(100cqi - 54px));
    }
}

@keyframes arrive {
    from {
        transform: translateY(12px);
    }

    to {
        transform: none;
    }
}
