:root {
    --ink: #142033;
    --muted: #5c6b7e;
    --blue: #1374d9;
    --blue-dark: #0e4c94;
    --yellow: #ffe37a;
    --green: #27b36a;
    --line: #c9d8e8;
    --paper: #ffffff;
    --soft: #edf7ff;
    --shadow: 0 18px 45px rgba(20, 48, 84, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, #e8f6ff 0, #fff7cf 520px, #fff 880px);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

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

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
    z-index: 20;
    width: auto;
    height: auto;
    clip: auto;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 7px;
    background: var(--ink);
    color: #fff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    padding: 12px clamp(16px, 4vw, 48px);
    border-bottom: 1px solid rgba(201, 216, 232, 0.8);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    text-decoration: none;
}

.brand img {
    border-radius: 9px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.nav-toggle:focus-visible {
    outline: 3px solid rgba(19, 116, 217, 0.26);
    outline-offset: 2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 800;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--blue-dark);
}

.nav-download {
    padding: 9px 13px;
    border-radius: 7px;
    background: var(--blue);
    color: #fff !important;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
    gap: clamp(28px, 4.5vw, 52px);
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(44px, 6vw, 76px) 0 38px;
}

.hero-copy {
    max-width: 560px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue-dark);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 20px;
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.9rem, 3.3vw, 3rem);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    line-height: 1.2;
}

.lede {
    color: #3c5068;
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 17px;
    border-radius: 7px;
    font-weight: 900;
    text-decoration: none;
}

.button.primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 12px 25px rgba(19, 116, 217, 0.22);
}

.button.secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--blue-dark);
}

.fine-print,
.download small {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-media {
    display: grid;
    gap: 14px;
    justify-items: center;
}

.hero-shot {
    margin: 0;
    padding: 10px;
    border: 1px solid #81b7e8;
    border-radius: 10px;
    background: #dff1ff;
    box-shadow: var(--shadow);
    transform: rotate(0.6deg);
}

.hero-shot img {
    width: 100%;
    height: auto;
    border: 1px solid #2d74b9;
    border-radius: 5px;
}

.hero-shot-main {
    width: min(440px, 100%);
    justify-self: center;
}

.brand-disclaimer {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
}

.quick-note,
.applications,
.screenshots,
.privacy,
.about-legal,
.support-download {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(38px, 6vw, 68px) 0;
}

.quick-note {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 5vw, 54px);
    align-items: start;
}

.highlight-list {
    display: grid;
    gap: 10px;
}

.highlight-list p {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: #31445b;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-copy {
    max-width: 720px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

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

.use-grid p {
    margin: 0;
    min-height: 92px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.86);
    color: #31445b;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.42;
}

.shot-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.shot-card {
    grid-column: span 2;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    box-shadow: 0 12px 30px rgba(20, 48, 84, 0.08);
}

.shot-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: top center;
    border-bottom: 1px solid var(--line);
    background: var(--soft);
}

.shot-card img.shot-focus-top {
    object-position: center 4%;
}

.shot-card div {
    padding: 16px;
}

.shot-card p,
.privacy p,
.download p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.privacy {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(24px, 5vw, 54px);
    align-items: start;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.privacy h2,
.about-legal h2 {
    max-width: 620px;
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.privacy > p {
    max-width: 660px;
    margin: 0;
    padding-top: 42px;
    font-size: 1.08rem;
}

.about-legal {
    border-bottom: 1px solid var(--line);
}

.about-legal .section-heading {
    max-width: 780px;
}

.about-legal .section-copy {
    max-width: 760px;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.legal-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.86);
}

.legal-card h3,
.legal-card p {
    margin: 0;
}

.legal-card p {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.48;
}

.legal-card a {
    margin-top: auto;
    color: var(--blue-dark);
    font-weight: 900;
}

.support-download {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
    border-top: 1px solid var(--line);
}

.support {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: clamp(18px, 4vw, 36px);
    align-items: center;
}

.support h2,
.download h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.05;
}

.support p,
.download p {
    max-width: 620px;
    color: var(--muted);
}

.support .button {
    min-height: 42px;
    padding: 10px 14px;
}

.coffee-url {
    margin: 16px 0 0;
    font-size: 0.98rem;
}

.coffee-url a {
    color: var(--blue-dark);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.qr-card {
    display: block;
    width: 150px;
    max-width: 100%;
    aspect-ratio: 1;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20, 48, 84, 0.08);
}

.qr-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.download {
    text-align: center;
}

.download img {
    margin: 0 auto 18px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(20, 48, 84, 0.12);
}

.download .actions {
    justify-content: center;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(16px, 4vw, 48px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.94rem;
}

.site-footer div {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a {
    text-decoration: none;
}

.site-footer .footer-x-link {
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--blue-dark);
    font-weight: 900;
}

@media (max-width: 880px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
    }

    .site-header {
        position: sticky;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: clamp(16px, 4vw, 48px);
        left: clamp(16px, 4vw, 48px);
        display: none;
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 45px rgba(20, 48, 84, 0.16);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        padding: 10px 12px;
        border-radius: 7px;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
        background: var(--soft);
    }

    .hero,
    .quick-note,
    .privacy,
    .support-download,
    .support {
        grid-template-columns: 1fr;
    }

    .hero-shot {
        transform: none;
    }

    .hero-shot-main {
        width: min(360px, 100%);
        justify-self: center;
    }

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

    .shot-card {
        grid-column: auto;
    }

    .use-grid {
        grid-template-columns: 1fr;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }

    .qr-card {
        width: 150px;
    }

    .shot-card img {
        aspect-ratio: 16 / 10;
        object-fit: contain;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 62px;
    }

    .brand span {
        max-width: calc(100vw - 116px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero {
        width: min(100% - 24px, 1180px);
        padding-top: 34px;
    }

    .quick-note,
    .applications,
    .screenshots,
    .privacy,
    .about-legal,
    .support-download {
        width: min(100% - 24px, 1080px);
    }

    .hero-shot-main {
        width: min(320px, 100%);
    }

    .hero-shot {
        padding: 7px;
    }

    .shot-grid {
        grid-template-columns: 1fr;
    }

    .shot-card img {
        aspect-ratio: auto;
        max-height: none;
        object-fit: contain;
    }

    h2 {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
    }

    .privacy h2,
    .about-legal h2 {
        font-size: clamp(1.8rem, 9vw, 2.45rem);
    }

    .privacy > p {
        padding-top: 0;
    }
}

@media (max-width: 560px) {
    .button {
        width: auto;
        max-width: 100%;
    }

    .nav-download {
        text-align: center;
    }

    .actions {
        align-items: flex-start;
        flex-direction: column;
    }

    h1 {
        font-size: 2.85rem;
    }
}
