:root {
    --black: #0e0e0e;
    --ink: #1f1f1f;
    --stone: #c7c2b5;
    --paper: #f6f4ef;
    --white: #ffffff;
    --red: #dd0612;
    --red-dark: #ab0a13;
    --green: #3f6d4a;
    --teal: #235e67;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--paper);
    font-family: Avenir, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

body.template-homepage {
    max-width: none;
    padding: 0;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.section-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(980px, calc(100% - 40px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(260px, 34%) 1fr;
    gap: 26px;
    align-items: center;
    padding: 16px max(20px, 5vw);
    background: rgba(14, 14, 14, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.site-logo img {
    width: min(360px, 100%);
    height: auto;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-nav > a,
.nav-trigger {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 13px;
}

.site-nav a,
.nav-trigger,
.text-link {
    color: var(--stone);
}

.site-nav a,
.site-nav .nav-trigger {
    font-weight: 700;
}

.site-nav > a.is-current,
.site-nav .has-subnav.is-current:not(.is-open) > .nav-trigger {
    color: var(--white);
    font-weight: 900;
}

.site-nav .subnav a.is-current {
    color: var(--red);
    font-weight: 900;
}

.nav-trigger {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.nav-item {
    position: relative;
}

.nav-trigger::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 7px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.subnav {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 210px;
    padding: 8px 0;
    background: #f6f4ef;
    border-top: 3px solid var(--red);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.subnav a {
    display: block;
    padding: 10px 16px;
    color: var(--ink);
    white-space: nowrap;
}

.has-subnav.is-open .subnav {
    display: block;
}

.site-nav a:hover,
.nav-trigger:hover,
.text-link:hover,
.site-footer a:hover {
    color: var(--red);
}

.header-alert,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 2px solid transparent;
    font-weight: 800;
    text-transform: uppercase;
}

.header-alert,
.button-primary {
    background: var(--red);
    color: var(--white);
}

.header-alert:hover,
.button-primary:hover {
    background: var(--red-dark);
}

.button-secondary {
    border-color: currentColor;
    color: var(--white);
}

.button-secondary:hover {
    border-color: var(--red);
    color: var(--red);
}

.hero {
    position: relative;
    display: grid;
    min-height: min(760px, calc(100vh - 75px));
    overflow: hidden;
    background: var(--black);
}

.hero-media,
.hero-content {
    grid-area: 1 / 1;
}

.hero-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(14, 14, 14, 0.78), rgba(14, 14, 14, 0.18) 58%, rgba(14, 14, 14, 0.64));
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.hero-content {
    position: relative;
    align-self: center;
    width: min(720px, calc(100% - 40px));
    margin-left: max(20px, 7vw);
    padding: 64px 0;
}

.hero-mark {
    width: min(260px, 42vw);
    margin-bottom: 18px;
}

.hero-title-image {
    width: min(680px, 100%);
    height: auto;
}

.eyebrow {
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero p:not(.eyebrow) {
    max-width: 660px;
    margin-top: 24px;
    color: var(--paper);
    font-size: clamp(1.25rem, 2.4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.18;
}

.hero-actions,
.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.store-links {
    align-items: center;
    gap: 24px;
}

.store-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 48px;
    overflow: hidden;
    border-radius: 9px;
}

.store-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #a6a6a6;
    border-radius: inherit;
    pointer-events: none;
}

.store-badge img {
    width: auto;
    height: 48px;
}

/* The official Google artwork includes transparent space above and below. */
.store-badge--google-play img {
    height: 62.5px;
    margin-block: -7.25px;
}

.store-badge:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 5px;
}

.section-dark {
    background: var(--black);
    color: var(--paper);
    padding: 78px 0;
}

.intro h2,
.section-heading h2,
.feature-band h2,
.app-section h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
}

.intro h2 {
    text-align: center;
}

.copy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 42px;
    color: var(--stone);
    text-align: justify;
}

.copy-grid a {
    color: var(--red);
    font-weight: 600;
}

.feature-band,
.app-section,
.wagtail-content {
    background: var(--paper);
    color: var(--ink);
    padding: 84px 0;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 58px;
    align-items: center;
}

.feature-band h2,
.app-section h2 {
    color: var(--ink);
    margin-top: 10px;
}

.feature-band p:not(.eyebrow),
.app-section p:not(.eyebrow) {
    margin-top: 22px;
    color: #4b4b4b;
    font-size: 1.05rem;
}

.text-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--red);
    font-weight: 900;
    text-transform: uppercase;
}

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

.quick-links a {
    display: grid;
    min-height: 150px;
    place-items: center;
    padding: 20px;
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--white);
    text-align: center;
}

.quick-links a:hover {
    background: #181818;
    color: var(--red);
}

.quick-links img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.quick-links span {
    min-height: 42px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 42px;
    align-items: end;
}

.section-heading p:not(.eyebrow) {
    color: var(--stone);
}

.indicator-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 42px;
}

.indicator-grid article {
    min-width: 0;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 18px;
}

.indicator-grid iframe {
    width: 100%;
    height: 160px;
    border: 0;
    background: #000;
}

.indicator-grid h3 {
    margin-top: 12px;
    color: var(--white);
    font-size: 1rem;
    text-align: center;
}

.dashboard {
    margin-top: 44px;
}

.dashboard > iframe {
    width: 100%;
    height: 580px;
    border: 0;
    background: #000;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.dashboard-card {
    position: relative;
    display: grid;
    min-height: 220px;
    overflow: hidden;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.16);
    background: #000;
}

.dashboard-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(0, 0, 0, 0.58);
}

.dashboard-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-card span {
    position: absolute;
    z-index: 1;
    color: var(--white);
    font-size: 1.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.phone-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
}

.phone-strip img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border: 10px solid var(--black);
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.phone-strip img:nth-child(2) {
    transform: translateY(-28px);
}

.wagtail-content {
    padding-top: 0;
}

.wagtail-content .rich-text {
    color: var(--ink);
}

.site-footer {
    padding: 70px 0 28px;
    background: var(--black);
    color: var(--stone);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 36px;
}

.site-footer h2,
.site-footer h3 {
    color: var(--white);
    line-height: 1.2;
}

.site-footer h3 {
    margin-bottom: 16px;
    font-size: 1rem;
    text-transform: uppercase;
}

.site-footer p,
.site-footer a {
    display: block;
    margin-top: 8px;
}

.urgent {
    color: var(--white);
    font-weight: 800;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    padding-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logos img {
    max-height: 76px;
    width: auto;
}

.footer-strip {
    width: min(640px, calc(100% - 40px));
    margin: 34px auto 0;
}

.copyright {
    margin-top: 30px;
    color: #8f8b82;
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1040px) {
    .site-header {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .copy-grid,
    .split,
    .section-heading,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .indicator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-nav {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow-x: visible;
        overflow-y: visible;
        gap: 4px;
        padding-bottom: 0;
        scrollbar-width: thin;
    }

    .site-nav > a,
    .nav-trigger {
        min-height: 38px;
        padding: 0 10px;
        white-space: nowrap;
    }

    .nav-item {
        flex: 0 0 auto;
    }

    .subnav {
        position: absolute;
        min-width: 220px;
        margin: 0;
        z-index: 20;
        background: #f6f4ef;
        border-top: 3px solid var(--red);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
    }

    .subnav a {
        padding: 8px 10px;
    }

    .site-logo img {
        width: min(360px, 92vw);
    }

    .hero {
        min-height: clamp(440px, 105vw, 520px);
    }

    .hero-media {
        position: absolute;
        inset: 0;
    }

    .hero-media::after {
        background: linear-gradient(180deg, rgba(14, 14, 14, 0.25), rgba(14, 14, 14, 0.92));
    }

    .hero-content {
        align-self: end;
        margin: 0 auto;
        padding: 84px 0 32px;
    }

    .hero-mark {
        width: 112px;
        margin-bottom: 12px;
    }

    .section-dark,
    .feature-band,
    .app-section {
        padding: 58px 0;
    }

    .quick-links,
    .indicator-grid,
    .dashboard-actions,
    .phone-strip {
        grid-template-columns: 1fr;
    }

    .dashboard > iframe {
        height: 440px;
    }

    .phone-strip img,
    .phone-strip img:nth-child(2) {
        width: min(260px, 100%);
        margin: 0 auto;
        transform: none;
    }
}

.footer-hr {
    margin-top: 30px;
    width: min(1000px, calc(100% - 40px));
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
