/* landing page. Standalone - does not load the app's style.css */

:root {
    --bg: #1c1c1c;
    --panel: #1f1f1f;
    --frame: #333;
    --border: #414141;
    --accent-bright: #00b3ff;
    --accent-title: #00a6ff;
    --accent-btn: #0066ba;
    --accent-btn-hover: #00559b;
    --text: #e8e8e8;
    --text-dim: #8c8c8c;
    --radius: 6px;
    --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    --measure: 820px;
    --wide: 1100px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.65 var(--font);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-bright);
}

code {
    padding: 1px 5px;
    background: var(--frame);
    border-radius: 3px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: .9em;
}

/* ------------------------------------------------------------------ head */
.site-head {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 22px;
    background: rgba(28, 28, 28, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.mmmm {
    display: inline-flex;
    align-items: center;
    align-self: middle;
    gap: 9px;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

    .site-nav a {
        color: var(--text-dim);
        text-decoration: none;
    }

        .site-nav a:hover {
            color: var(--text);
        }

.btn-open {
    padding: 7px 15px;
    border-radius: var(--radius);
    background: var(--accent-btn);
    color: #fff !important;
    font-weight: 500;
}

    .btn-open:hover {
        background: var(--accent-btn-hover);
    }

/* ------------------------------------------------------------------ hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 44px;
    align-items: center;
    max-width: var(--wide);
    margin: 0 auto;
    padding: 68px 24px 52px;
}

.hero-copy {
    min-width: 0;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4.2vw, 46px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.015em;
}

.lede {
    margin: 0 0 26px;
    font-size: 17px;
    color: var(--text-dim);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 22px;
}

.btn-primary,
.btn-ghost {
    display: inline-block;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-btn);
    color: #fff;
    border: 1px solid var(--accent-btn);
}

    .btn-primary:hover {
        background: var(--accent-btn-hover);
        border-color: var(--accent-btn-hover);
    }

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--border);
}

    .btn-ghost:hover {
        border-color: var(--accent-bright);
        color: var(--accent-bright);
    }

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

    .chips li {
        padding: 4px 11px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: var(--panel);
        color: var(--text-dim);
        font-size: 12.5px;
    }

.hero-shot {
    margin: 0;
}

    .hero-shot img {
        border: 1px solid var(--border);
        border-radius: var(--radius);
    }

figcaption {
    margin-top: 9px;
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
}

/* ----------------------------------------------------------------- facts */
.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 24px;
}

    .facts div {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2px;
        padding: 18px 10px;
        background: var(--panel);
        border: 1px solid var(--border);
    }

    .facts .box {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 18px;
        padding: 18px;
    }


    .facts .box .i {
        all: unset;
        display: flex;
        width: 11vh;
    }

    .facts .box .t {
        all: unset;
        display: flex;
        flex-direction: column;
    }

    .facts div:first-child {
        border-radius: var(--radius) 0 0 var(--radius);
    }

    .facts div:last-child {
        border-radius: 0 var(--radius) var(--radius) 0;
    }

    .facts strong {
        color: var(--accent-title);
        font-size: 17px;
        font-weight: 500;
        text-align: left;
    }

    .hyperlink {
        text-decoration: none;
    }

    .facts span {
        color: var(--text-dim);
        font-size: 13px;
        text-align: left;
    }

/* ----------------------------------------------------------------- prose */
.wrap {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 8px 24px 90px;
}

    .wrap section {
        margin-top: 56px;
        scroll-margin-top: 72px;      /* clears the sticky header */
    }

    .wrap h2 {
        margin: 0 0 16px;
        font-size: 25px;
        font-weight: 500;
        color: var(--accent-title);
    }

    .wrap h3 {
        margin: 28px 0 10px;
        font-size: 17px;
        font-weight: 500;
    }

    .wrap p {
        margin: 0 0 15px;
    }

    .wrap ul {
        margin: 0 0 15px;
        padding-left: 22px;
    }

    .wrap li {
        margin-bottom: 7px;
    }

    .wrap dl {
        margin: 0 3vw 18px;
    }

    .wrap dt {
        margin-top: 15px;
        font-weight: 500;
        color: var(--accent-bright);
    }

    .wrap dd {
        margin: 4px 0 0;
        color: var(--text-dim);
    }

    .wrap strong {
        font-weight: 500;
    }

.fig {
    width: min(var(--wide), calc(100vw - 48px));
    margin: 26px 0 26px 50%;
    transform: translateX(-50%);
}
    
    .fig div {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .fig img {
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-sizing: content-box;
    }

.compare-slider {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    isolation: isolate;
    --split: 50%;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
}

.compare-slider,
.compare-slider * {
    -webkit-tap-highlight-color: transparent;
}

    .compare-slider img {
        display: block;
        width: 100%;
        height: auto;
    }

.compare-base {
    width: 100%;
    height: 100%;
}

.compare-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 calc(100% - var(--split)) 0 0);
    pointer-events: none;
}

.compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split);
    width: 3px;
    transform: translateX(-50%);
    background: var(--border);
    box-shadow: 0 0 0 1px rgba(0,0,0,.25);
    pointer-events: none;
}

.compare-handle {
    position: absolute;
    top: 50%;
    left: var(--split);
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,.28);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

    .compare-handle::before {
        content: "";
        width: 2px;
        height: 18px;
        border-radius: 999px;
        background: var(--accent-btn);
    }

.compare-label {
    position: absolute;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(11, 11, 11, .74);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    pointer-events: none;
}

.compare-label-before {
    left: 14px;
}

.compare-label-after {
    right: 14px;
}

.compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    /* allows vertical scroll; horizontal drag is handled by JS */
    touch-action: pan-y;
}

    .compare-range:focus-visible {
        outline: none;
    }

    .compare-range:focus-visible + .compare-handle {
        box-shadow: 0 0 0 3px rgba(0, 179, 255, .35);
    }

/* ----------------------------------------------------------------- steps */
.steps {
    counter-reset: step;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

    .steps li {
        position: relative;
        margin-bottom: 20px;
        padding-left: 46px;
    }

        .steps li::before {
            counter-increment: step;
            content: counter(step);
            position: absolute;
            left: 0;
            top: 0;
            width: 30px;
            height: 30px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            background: var(--accent-btn);
            color: #fff;
            font-size: 14px;
            font-weight: 500;
        }

    .steps h3 {
        margin: 3px 0 6px;
    }

    .steps p {
        margin: 0;
        color: var(--text-dim);
    }

/* --------------------------------------------------------------- closing */
.closing {
    margin-top: 64px;
    padding: 32px 26px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

    .closing h2 {
        margin-bottom: 10px;
    }

    .closing p {
        color: var(--text-dim);
    }

/* ------------------------------------------------------------------ foot */
.site-foot {
    padding: 26px 24px 2vh;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13.5px;
    text-align: center;
}

    .site-foot p {
        margin: 0;
    }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 44px 20px 38px;
    }

    .facts {
        grid-template-columns: repeat(1, 1fr);
        gap: 8px;
        padding: 0 20px;
    }

        .facts div,
        .facts div:first-child, 
        .facts div:last-child {
            border-radius: var(--radius);
        }

        .facts .box {
            width: 100%;
            justify-content: left;
        }
            .facts .box .i {
                width: 7vh;
            }
}

@media (max-width: 620px) {
    body {
        font-size: 15.5px;
    }

    .site-head {
        padding: 9px 14px;
        gap: 8px;
        flex-direction: column;
    }

    .site-nav a:not(.btn-open) {
        display: none;
    }

    .wrap {
        padding: 8px 18px 100px;
    }

        .wrap section {
            margin-top: 42px;
        }

        .wrap h2 {
            font-size: 22px;
        }

    .fig {
        width: calc(100vw - 36px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
