@charset "UTF-8";

:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --card-soft: #f9fafc;
    --text: #111827;
    --text-soft: #667085;
    --line: #e6eaf0;
    --blue: #1f5eff;
    --red: #e52535;
    --green: #22a06b;
    --shadow: 0 18px 55px rgba(20, 35, 70, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at top left, #ffffff 0, transparent 34%),
        linear-gradient(180deg, #f8faff 0%, var(--bg) 100%);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "Apple SD Gothic Neo",
        "Noto Sans KR",
        "Malgun Gothic",
        Arial,
        sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.page-shell {
    width: min(980px, calc(100% - 28px));
    margin: 0 auto;
    padding:
        max(18px, env(safe-area-inset-top))
        0
        max(32px, env(safe-area-inset-bottom));
}

.promo-section,
.device-card,
.download-section,
.quick-link,
.service-section {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.promo-section {
    overflow: hidden;
    border-radius: 26px;
}

.promo-image {
    display: block;
    width: 100%;
    height: auto;
}

.device-card,
.download-section,
.service-section {
    margin-top: 16px;
    padding: 24px;
    border-radius: 24px;
}

.device-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(34, 160, 107, 0.10);
}

.device-badge {
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 800;
}

.device-card h2 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 4.8vw, 1.8rem);
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.device-card > p {
    margin: 0;
    color: var(--text-soft);
}

.countdown-wrap {
    display: flex;
    margin-top: 18px;
    padding-top: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--line);
}

.countdown-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.countdown-text strong {
    color: var(--red);
    font-size: 1.8rem;
}

.countdown-text span {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.text-button {
    appearance: none;
    padding: 9px 12px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card-soft);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading > span {
    display: block;
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 4.8vw, 2rem);
    letter-spacing: -0.045em;
}

.section-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.93rem;
}

.section-heading.compact {
    margin-bottom: 16px;
}

.store-grid {
    display: grid;
    gap: 12px;
}

.store-card {
    display: flex;
    min-height: 118px;
    padding: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card-soft);
    text-decoration: none;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        opacity 160ms ease;
}

.store-card:hover {
    transform: translateY(-2px);
}

.store-card.is-recommended {
    transform: translateY(-2px);
    border-color: rgba(31, 94, 255, 0.45);
    box-shadow: 0 14px 34px rgba(31, 94, 255, 0.12);
}

.android-card.is-recommended {
    border-color: rgba(229, 37, 53, 0.42);
    box-shadow: 0 14px 34px rgba(229, 37, 53, 0.12);
}

.store-card.is-muted {
    opacity: 0.58;
}

.store-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.store-logo {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #ffffff;
}

.store-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-copy {
    display: flex;
    flex-direction: column;
}

.store-copy small {
    margin-bottom: 1px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.store-copy strong {
    font-size: 1.22rem;
    letter-spacing: -0.03em;
}

.store-copy span {
    color: var(--text-soft);
    font-size: 0.82rem;
}

.store-arrow,
.quick-link-arrow {
    color: #98a2b3;
    font-size: 1.35rem;
}

.store-help {
    margin: 14px 0 0;
    color: var(--text-soft);
    text-align: center;
    font-size: 0.84rem;
}

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

.quick-link {
    display: flex;
    min-height: 94px;
    padding: 18px;
    align-items: center;
    gap: 13px;
    border-radius: 20px;
    text-decoration: none;
}

.quick-link-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--blue);
    border-radius: 12px;
    background: #edf3ff;
    font-size: 1.15rem;
    font-weight: 900;
}

.youtube-icon {
    color: var(--red);
    background: #fff0f2;
    font-size: 0.9rem;
}

.quick-link-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.quick-link-copy small {
    color: var(--text-soft);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.quick-link-copy strong {
    overflow: hidden;
    font-size: 0.93rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.service-item {
    display: flex;
    min-height: 52px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    color: #344054;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card-soft);
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
}

footer {
    padding: 26px 8px 0;
    color: #98a2b3;
    text-align: center;
    font-size: 0.78rem;
}

footer p {
    margin: 0 0 4px;
}

.privacy-note {
    opacity: 0.82;
}

.noscript-message {
    margin: 16px;
    padding: 16px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
}

@media (max-width: 580px) {
    .page-shell {
        width: min(100% - 16px, 980px);
        padding-top: 8px;
    }

    .promo-section {
        border-radius: 18px;
    }

    .device-card,
    .download-section,
    .service-section {
        padding: 20px;
        border-radius: 22px;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 360px) {
    .store-card {
        padding: 15px;
    }

    .store-logo {
        width: 56px;
        height: 56px;
    }

    .store-copy strong {
        font-size: 1.08rem;
    }
}
