body.app-store-page {
    margin: 0;
    color: #16223a;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(180deg, #fffaf1, #fff5e7);
}

body.app-store-page[data-mode] {
    color: var(--cd-text-main);
    background: var(--cd-app-bg);
}
body.app-store-page[data-mode] .app-store-shell { padding-bottom: calc(var(--cd-mobile-bottom-nav-height, 52px) + var(--cd-safe-area-bottom, env(safe-area-inset-bottom, 0px)) + 24px); }
body.app-store-page[data-mode] :is(a, .app-store-brand span, .app-store-eyebrow) { color: var(--cd-accent-readable); }
body.app-store-page[data-mode] :is(h1, h2, .app-store-brand) { color: var(--cd-text-main); }
body.app-store-page[data-mode] :is(.app-store-lede, .app-store-nav) { color: var(--cd-text-muted); }
body.app-store-page[data-mode="dark"] :is(a, .app-store-brand span, .app-store-eyebrow, .app-store-label) {
    color: color-mix(in srgb, var(--cd-primary) 55%, #ffffff);
}
body.app-store-page[data-mode] :is(.app-store-document, .app-store-panel) {
    color: var(--cd-text-main);
    background: var(--cd-card-bg);
    border-color: var(--cd-border);
}

body.app-store-page * {
    box-sizing: border-box;
}

body.app-store-page a {
    color: #08285f;
    font-weight: 750;
}

.app-store-shell {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.app-store-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.app-store-brand {
    color: #08285f;
    font-size: 1.15rem;
    font-weight: 900;
    text-decoration: none;
}

.app-store-brand span {
    color: #c72f2b;
}

.app-store-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: #5d6681;
    font-size: 0.95rem;
}

.app-store-nav a {
    text-decoration: none;
}

.app-store-intro {
    padding: clamp(28px, 5vw, 48px) 0 22px;
    border-bottom: 1px solid rgba(12, 31, 74, 0.14);
}

.app-store-eyebrow {
    margin: 0 0 10px;
    color: #c72f2b;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.app-store-page h1 {
    margin: 0;
    color: #08285f;
    font-size: 3.6rem;
    line-height: 1;
    letter-spacing: 0;
}

.app-store-lede {
    max-width: 760px;
    margin: 18px 0 0;
    color: #5d6681;
    font-size: 1.08rem;
}

.app-store-document,
.app-store-panel {
    border: 1px solid rgba(12, 31, 74, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 16px 44px rgba(102, 55, 12, 0.12);
}

.app-store-document {
    margin-top: 24px;
    padding: clamp(20px, 4vw, 34px);
}

.app-store-panel {
    padding: clamp(20px, 4vw, 30px);
}

.app-store-panel-list {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.app-store-document section + section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(12, 31, 74, 0.14);
}

.app-store-page h2 {
    margin: 0 0 10px;
    color: #08285f;
    font-size: 1.28rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.app-store-page p {
    margin: 0 0 12px;
}

.app-store-page ul {
    margin: 0;
    padding-left: 1.25rem;
}

.app-store-page li + li {
    margin-top: 8px;
}

.app-store-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.app-store-contact-strip a,
.app-store-contact-card {
    border-radius: 8px;
}

.app-store-contact-strip a {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(12, 31, 74, 0.14);
    min-height: 42px;
    padding: 9px 13px;
    background: #fff;
    text-decoration: none;
}

.app-store-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.app-store-contact-card {
    min-height: 108px;
    padding: 4px 0 0;
}

.app-store-label {
    display: block;
    margin-bottom: 5px;
    color: #c72f2b;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.app-store-footer {
    margin-top: 22px;
    color: #5d6681;
    font-size: 0.92rem;
}

@media (max-width: 640px) {
    .app-store-shell {
        padding-top: max(20px, calc(12px + var(--cd-safe-area-top, env(safe-area-inset-top, 0px))));
    }

    body.app-store-page::before {
        content: "";
        position: fixed;
        inset: 0 0 auto;
        height: var(--cd-safe-area-top, env(safe-area-inset-top, 0px));
        background: var(--cd-app-bg, #fffaf1);
        z-index: 6001;
        pointer-events: none;
    }

    .app-store-topbar {
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 12px;
    }

    .app-store-nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .app-store-intro {
        padding-top: 16px;
    }

    .app-store-document {
        padding: 20px;
    }

    .app-store-page h1 {
        font-size: 2rem;
    }

    .app-store-contact-grid {
        grid-template-columns: 1fr;
    }
}
