/* Landing page. Same palette as the app, on its own so the public page loads nothing it doesn't need. */
:root {
    --ground: #EDF0EB;
    --panel: #FFFFFF;
    --line: #D3DAD2;
    --ink: #12201A;
    --muted: #56645B;
    --brand: #28DB14;
    --brand-hover: #22C311;
    --green: #0A7D14;
    --on-ink: #B9C3BA;
    --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --gutter: clamp(16px, 5vw, 72px);
    --shadow: 0 1px 0 rgba(18, 32, 26, 0.08), 0 28px 56px -24px rgba(18, 32, 26, 0.38), 0 0 0 1px rgba(18, 32, 26, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--ground);
    -webkit-font-smoothing: antialiased;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.08;
}

h1 {
    font-size: clamp(42px, 4.5vw, 78px);
}

h2 {
    font-size: clamp(34px, 4.2vw, 60px);
}

h3 {
    font-size: clamp(25px, 2.5vw, 34px);
    letter-spacing: -0.016em;
    line-height: 1.16;
}

a {
    color: inherit;
}

.lp-eyebrow {
    margin: 0 0 14px;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
}

.lp-lede {
    margin: 22px 0 0;
    max-width: 34em;
    font-size: clamp(19px, 1.5vw, 22px);
    line-height: 1.48;
    color: var(--muted);
}

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;
    transition: background-color 0.15s, border-color 0.15s;
}

.lp-btn-primary {
    color: var(--ink);
    background: var(--brand);
}

.lp-btn-primary:hover {
    background: var(--brand-hover);
}

.lp-btn-quiet {
    color: var(--ink);
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--line);
}

.lp-btn-quiet:hover {
    box-shadow: inset 0 0 0 1px var(--ink);
}

.lp-btn-ink {
    color: #fff;
    background: var(--ink);
}

.lp-btn-ink:hover {
    background: #22302A;
}

.lp-btn-outline {
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--ink);
}

.lp-btn-outline:hover {
    background: rgba(18, 32, 26, 0.08);
}

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
}

.lp-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 12px var(--gutter);
    background: rgba(237, 240, 235, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.lp-logo img {
    width: 132px;
}

.lp-nav nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    font-size: 16px;
    font-weight: 500;
}

.lp-nav nav a {
    text-decoration: none;
    color: var(--muted);
}

.lp-nav nav a:hover {
    color: var(--ink);
}

.lp-nav .lp-btn {
    padding: 8px 16px;
    font-size: 15px;
}

.lp-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
    padding: clamp(44px, 6vw, 92px) var(--gutter) clamp(52px, 6vw, 96px);
    background:
        linear-gradient(100deg, var(--ground) 0%, rgba(237, 240, 235, 0.92) 38%, rgba(237, 240, 235, 0.34) 100%),
        url('/media/landing/city.jpg') center / cover;
}

.lp-film {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.lp-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    margin: auto;
    padding-left: 6px;
    color: var(--ink);
    background: var(--brand);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(18, 32, 26, 0.32);
    cursor: pointer;
    transition: transform 0.15s, background-color 0.15s;
}

.lp-play:hover {
    background: var(--brand-hover);
    transform: scale(1.06);
}

.lp-play[hidden] {
    display: none;
}

.lp-film video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.lp-rules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--panel);
    border-block: 1px solid var(--line);
}

.lp-rules div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 34px clamp(20px, 2.6vw, 40px);
    border-left: 1px solid var(--line);
}

.lp-rules div:first-child {
    border-left: 0;
    padding-left: var(--gutter);
}

.lp-rules strong {
    font-family: var(--mono);
    font-size: clamp(34px, 3.4vw, 50px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.lp-rules span {
    font-size: 17px;
    line-height: 1.38;
    color: var(--muted);
}

.lp-section-head {
    max-width: 22em;
}

.lp-how {
    padding: clamp(64px, 8vw, 120px) var(--gutter);
}

.lp-step {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(32px, 5vw, 84px);
    align-items: center;
    margin-top: clamp(52px, 6vw, 92px);
}

.lp-step-flip .lp-step-text {
    order: 2;
}

.lp-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 600;
    background: var(--brand);
    border-radius: 50%;
}

.lp-step p {
    margin: 14px 0 0;
    color: var(--muted);
}

.lp-shot {
    overflow: hidden;
    background: var(--panel);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.lp-drivers {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    padding: clamp(64px, 7vw, 108px) var(--gutter) 0;
    overflow: hidden;
    color: #fff;
    background: var(--ink);
}

.lp-drivers .lp-eyebrow {
    color: var(--brand);
}

.lp-drivers .lp-lede {
    color: var(--on-ink);
}

.lp-drivers-text {
    padding-bottom: clamp(56px, 7vw, 108px);
}

.lp-drivers ul {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.lp-drivers li {
    padding: 15px 0;
    color: var(--on-ink);
    border-top: 1px solid #33463C;
}

.lp-drivers li strong {
    font-weight: 600;
    color: #fff;
}

.lp-phone {
    justify-self: center;
    width: min(340px, 100%);
    padding: 11px 11px 0;
    background: #05080A;
    border-radius: 46px 46px 0 0;
    box-shadow: 0 0 0 2px #33463C;
}

.lp-phone img {
    width: 100%;
    max-height: 640px;
    object-fit: cover;
    object-position: top;
    border-radius: 36px 36px 0 0;
}

.lp-platform {
    padding: clamp(64px, 8vw, 120px) var(--gutter);
}

.lp-platform dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(28px, 4vw, 64px);
    margin: clamp(36px, 4vw, 56px) 0 0;
}

.lp-platform dl div {
    padding: 22px 0 28px;
    border-top: 2px solid var(--ink);
}

.lp-platform dt {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lp-platform dd {
    margin: 8px 0 0;
    color: var(--muted);
}

.lp-contact {
    padding: clamp(60px, 7vw, 104px) var(--gutter);
    background: var(--brand);
}

.lp-contact p {
    margin: 16px 0 0;
    max-width: 36em;
    font-size: clamp(19px, 1.5vw, 22px);
    line-height: 1.45;
}

.lp-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    padding: 26px var(--gutter);
    font-size: 15px;
    color: var(--on-ink);
    background: var(--ink);
}

.lp-footer a {
    color: #fff;
    text-decoration: none;
}

.lp-footer a:hover {
    text-decoration: underline;
}

.lp-credit {
    margin-left: auto;
}

@media (max-width: 1040px) {
    h1 {
        font-size: clamp(42px, 8vw, 66px);
    }

    .lp-break {
        display: none;
    }

    .lp-hero,
    .lp-step,
    .lp-drivers {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-hero {
        background:
            linear-gradient(rgba(237, 240, 235, 0.92), rgba(237, 240, 235, 0.72)),
            url('/media/landing/city.jpg') center / cover;
    }

    .lp-step-flip .lp-step-text {
        order: 0;
    }

    .lp-rules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-rules div,
    .lp-rules div:first-child {
        padding: 26px var(--gutter);
    }

    .lp-rules div:nth-child(odd) {
        border-left: 0;
    }

    .lp-rules div:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .lp-platform dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-credit {
        margin-left: 0;
    }
}

@media (max-width: 680px) {
    .lp-nav nav {
        display: none;
    }

    .lp-nav .lp-btn {
        margin-left: auto;
    }

    .lp-rules,
    .lp-platform dl {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-rules div,
    .lp-rules div:first-child {
        padding: 22px var(--gutter);
        border-left: 0;
    }

    .lp-rules div + div {
        border-top: 1px solid var(--line);
    }

    .lp-actions .lp-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
