@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

:root {
    color-scheme: dark;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-synthesis: none;
    --background: #050608;
    --foreground: #f2f5f7;
    --muted: #bcc2c8;
    --brand: #ff4a40;
    --button: #dc3028;
    --button-hover: #c8261f;
    --page-gutter: clamp(28px, 4.2vw, 80px);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid white;
    outline-offset: 6px;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 20;
    padding: 14px 20px;
    transform: translateY(-150%);
    background: var(--foreground);
    color: var(--background);
    border-radius: 4px;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 100px;
    padding: 22px var(--page-gutter);
}

.wordmark {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 4px;
    line-height: 1;
}

.brand-symbol {
    flex: none;
    color: var(--brand);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 46px);
    font-size: 13px;
    font-weight: 600;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-shadow: 0 1px 12px #0008;
    transition: color 160ms ease;
}

.nav-install {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 23px;
    border: 1px solid #ffffff60;
    border-radius: 5px;
    background: #05060830;
    backdrop-filter: blur(12px);
    transition: background 160ms ease, border-color 160ms ease;
}

.menu-toggle {
    display: none;
}

.hero {
    --hero-overlay:
        linear-gradient(180deg, #050608a6 0%, #05060820 15%, transparent 30%),
        linear-gradient(0deg, #050608 0%, #05060866 12%, transparent 36%),
        linear-gradient(68deg, #050608cc 0%, #05060873 26%, transparent 57%);
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 680px;
    min-height: max(680px, 100svh);
    isolation: isolate;
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    overflow: hidden;
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
}

.hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background: var(--hero-overlay);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    min-height: inherit;
    padding: 140px var(--page-gutter) clamp(48px, 7svh, 88px);
    text-align: left;
}

.hero-content h1 {
    position: relative;
    margin: 0;
    max-width: min(48vw, 720px);
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-shadow: 0 2px 24px #0006;
}

.hero-content h1 span {
    display: block;
    text-wrap: balance;
}

.hero-premise {
    margin-bottom: 14px;
    font-size: clamp(21px, 1.9vw, 30px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.hero-promise {
    max-width: 11ch;
    font-size: clamp(48px, 4.65vw, 76px);
}

.hero-action {
    position: relative;
    flex-shrink: 0;
    margin-top: 30px;
}

.button-install {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-width: 360px;
    min-height: 74px;
    padding: 22px 38px;
    border: 1px solid #ffffff55;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--button), #c7211b);
    box-shadow: 0 0 0 6px #05060866, 0 18px 48px #0009, 0 0 44px #dc302833, inset 0 1px 0 #ffffff2b;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button-install::before {
    position: absolute;
    inset: -7px;
    border: 1px solid #ffb5af;
    border-radius: 17px;
    opacity: 0;
    content: "";
    pointer-events: none;
}

.install-icon {
    flex-shrink: 0;
}

.button-install:active {
    transform: translateY(1px);
}

@keyframes cta-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes cta-ring {
    0%, 100% { opacity: 0; transform: scale(1); }
    12% { opacity: .65; transform: scale(1); }
    65%, 99% { opacity: 0; transform: scale(1.11, 1.3); }
}

@media (prefers-reduced-motion: no-preference) {
    .button-install::before {
        animation: cta-ring 3.6s ease-out 1s infinite;
    }

    .hero-action:hover,
    .hero-action:focus-within {
        animation-play-state: paused;
    }

    .button-install:is(:hover, :focus-visible)::before {
        animation-play-state: paused;
        visibility: hidden;
    }
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .hero-action {
        animation: cta-float 3.6s ease-in-out 1s infinite;
    }
}

@media (hover: hover) {
    .nav-link:hover {
        color: var(--muted);
    }

    .nav-install:hover {
        border-color: #ffffffa6;
        background: #ffffff18;
    }

    .button-install:hover {
        transform: translateY(-2px);
        border-color: #ffffff99;
        background: linear-gradient(145deg, var(--button-hover), #b91e18);
        box-shadow: 0 0 0 6px #05060888, 0 22px 56px #000b, 0 0 54px #dc302859, inset 0 1px 0 #ffffff33;
    }
}

@media (min-width: 1024px) and (max-height: 740px) {
    .hero {
        min-height: max(560px, 100svh);
    }

    .hero-content {
        padding-bottom: 36px;
    }

    .hero-premise {
        margin-bottom: 10px;
        font-size: 22px;
    }

    .hero-promise {
        font-size: clamp(46px, 4.1vw, 62px);
    }

    .hero-action {
        margin-top: 24px;
    }
}

/* Keep the touchscreen intact in tall viewports; the copy follows the photo. */
@media (max-width: 1023px), (max-aspect-ratio: 1/1) {
    .hero {
        --hero-photo-height: clamp(360px, 57vw, 640px);
        display: block;
        min-height: auto;
    }

    .hero-visual {
        position: relative;
        height: var(--hero-photo-height);
    }

    .hero-image {
        object-position: center 30%;
    }

    .hero::after {
        bottom: auto;
        height: var(--hero-photo-height);
        background: linear-gradient(180deg, #050608a6, #05060810 22%, transparent 65%, #05060870 86%, #050608 100%);
    }

    .hero-content {
        position: relative;
        align-items: center;
        min-height: auto;
        margin-top: -24px;
        padding: 0 var(--page-gutter) max(48px, env(safe-area-inset-bottom));
        text-align: center;
    }

    .hero-content h1 {
        width: 100%;
        max-width: 640px;
        text-shadow: none;
    }

    .hero-premise {
        font-size: 24px;
    }

    .hero-promise {
        margin-inline: auto;
        font-size: 58px;
    }

    .hero-action {
        animation: none;
    }
}

@media (max-width: 767px) {
    :root {
        --page-gutter: 24px;
    }

    .site-header {
        min-height: 80px;
        padding: 18px var(--page-gutter);
        flex-wrap: wrap;
        gap: 12px;
    }

    .wordmark {
        gap: 10px;
        font-size: 19px;
        letter-spacing: 3.5px;
    }

    .brand-symbol {
        width: 25px;
        height: 24px;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        width: 44px;
        height: 44px;
        padding: 12px;
        border: 1px solid #ffffff38;
        border-radius: 5px;
        background: #05060855;
        backdrop-filter: blur(12px);
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 19px;
        height: 1px;
        background: currentColor;
        transition: transform 160ms ease;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .site-nav {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
        padding: 14px;
        border: 1px solid #ffffff24;
        border-radius: 8px;
        background: #090c10f5;
        backdrop-filter: blur(20px);
        font-size: 14px;
    }

    .nav-link {
        padding: 4px 12px;
    }

    .nav-install {
        margin-top: 4px;
        min-height: 48px;
    }

    .hero {
        --hero-photo-height: clamp(320px, 52svh, 500px);
    }

    .hero-premise {
        margin-bottom: 14px;
        font-size: clamp(17px, 4.5vw, 25px);
    }

    .hero-promise {
        font-size: clamp(34px, 10.25vw, 58px);
    }

    .hero-action {
        width: min(100%, 340px);
        margin-top: 30px;
    }

    .button-install {
        width: 100%;
        min-height: 64px;
        min-width: 0;
        gap: 10px;
        padding: 18px 22px;
        font-size: 16px;
        box-shadow: 0 0 0 5px #ffffff08, 0 12px 32px #0006, 0 0 28px #dc302826, inset 0 1px 0 #ffffff2b;
    }

    .button-install::before {
        animation-duration: 4.8s;
        animation-iteration-count: 2;
    }

    .install-icon {
        width: 22px;
        height: 22px;
    }
}

/* A landscape phone has room beside the screen, but little vertical space. */
@media (min-width: 601px) and (max-width: 1023px) and (max-height: 500px) and (min-aspect-ratio: 3/2) {
    .hero {
        display: flex;
        min-height: max(360px, 100svh);
    }

    .hero-visual {
        position: absolute;
        height: auto;
    }

    .hero::after {
        bottom: 0;
        height: auto;
        background: var(--hero-overlay);
    }

    .hero-content {
        align-items: flex-start;
        min-height: inherit;
        margin-top: 0;
        padding: 112px var(--page-gutter) 24px;
        text-align: left;
    }

    .hero-content h1 {
        max-width: 48vw;
    }

    .hero-premise {
        margin-bottom: 8px;
        font-size: 18px;
    }

    .hero-promise {
        margin-inline: 0;
        font-size: 36px;
    }

    .hero-action {
        width: 290px;
        margin-top: 18px;
    }

    .button-install {
        width: 100%;
        min-width: 0;
        min-height: 56px;
        padding: 14px 22px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
