/* 랭크캐시 다운로드 페이지 (Index 스킨 rankcash) — 색은 앱 src/ui/theme.ts 와 같다. 앱이 라이트 전용이라 이 페이지도 라이트로 고정한다. */
.rc-landing {
    --rc-accent: #4F46E5;
    --rc-accent-deep: #3730A3;
    --rc-accent-soft: #EEF2FF;
    --rc-bg: #F4F6FB;
    --rc-card: #FFFFFF;
    --rc-border: #E2E8F0;
    --rc-text1: #0F172A;
    --rc-text2: #475569;
    --rc-text3: #64748B;
    --rc-gold: #FBBF24;
    --rc-radius: 18px;

    color-scheme: light;
    min-height: 100vh;
    background: var(--rc-bg);
    color: var(--rc-text1);
    font-family: "Noto Sans KR", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
    word-break: keep-all;
    overflow-x: clip;
}
.rc-landing *, .rc-landing *::before, .rc-landing *::after { box-sizing: border-box; }
.rc-landing h1, .rc-landing h2, .rc-landing h3, .rc-landing p { margin: 0; }
.rc-landing a { color: inherit; text-decoration: none; }
.rc-landing img { display: block; max-width: 100%; height: auto; }

.rc-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.rc-wrap--narrow { max-width: 760px; }

/* 상단 */
.rc-top {
    position: sticky; top: 0; z-index: 20;
    background: rgba(79, 70, 229, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.rc-top__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
/* .rc-landing a { color: inherit } 보다 구체적이어야 흰색이 먹는다 */
.rc-landing .rc-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 19px; font-weight: 900; letter-spacing: -0.02em; }
.rc-brand img { border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.rc-top__links { display: flex; align-items: center; gap: 8px; }
.rc-top__seller {
    padding: 8px 12px; border-radius: 999px;
    color: #fff !important; border: 1.5px solid rgba(255, 255, 255, 0.55);
    font-size: 14px; font-weight: 800; white-space: nowrap;
}
.rc-top__seller:hover { background: rgba(255, 255, 255, 0.12); }
.rc-top__cta {
    padding: 8px 16px; border-radius: 999px;
    background: #fff; color: var(--rc-accent) !important;
    font-size: 14px; font-weight: 800; white-space: nowrap;
    transition: transform .15s ease;
}
.rc-top__cta:hover { transform: translateY(-1px); }
/* 좁은 폰에서도 로고·버튼 둘이 한 줄에 들어가게 */
@media (max-width: 400px) {
    .rc-landing .rc-brand { font-size: 17px; gap: 8px; }
    .rc-brand img { width: 30px; height: 30px; }
    .rc-top__links { gap: 6px; }
    .rc-top__seller, .rc-top__cta { padding: 7px 11px; font-size: 13px; }
}

/* 히어로 */
.rc-hero {
    position: relative;
    padding: 56px 0 0;
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.16), transparent 40%),
        linear-gradient(180deg, #4F46E5 0%, #5B54EC 60%, #7C83F5 100%);
    color: #fff;
    overflow: hidden;
}
.rc-hero__inner { display: grid; gap: 40px; align-items: end; }
.rc-hero__copy { text-align: center; padding-bottom: 8px; }
.rc-eyebrow { font-size: 14px; font-weight: 800; color: var(--rc-accent); letter-spacing: 0.02em; margin-bottom: 8px !important; }
.rc-hero .rc-eyebrow { color: #C7D2FE; }
.rc-hero h1 { font-size: clamp(34px, 8vw, 56px); font-weight: 900; line-height: 1.2; letter-spacing: -0.03em; }
.rc-hero__lead { margin-top: 18px !important; font-size: clamp(16px, 3.6vw, 19px); color: #E0E7FF; }
.rc-hero__actions { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rc-hero__note { font-size: 13px; color: #C7D2FE; display: inline-flex; align-items: center; gap: 6px; }

.rc-hero__visual { position: relative; display: flex; justify-content: center; height: 360px; }
.rc-shot {
    width: 230px; border-radius: 26px 26px 0 0;
    box-shadow: 0 30px 60px rgba(30, 27, 75, 0.35);
    object-fit: cover; object-position: top;
}
.rc-shot--front { position: relative; z-index: 2; height: 400px; }
.rc-shot--back { position: absolute; z-index: 1; height: 360px; bottom: 0; left: 50%; transform: translateX(-10%) rotate(6deg); transform-origin: bottom left; opacity: .9; }

/* Google Play 버튼 */
.rc-play {
    display: inline-flex; align-items: center; gap: 12px;
    min-width: 220px; padding: 12px 24px 12px 18px;
    border-radius: 14px;
    background: #0F172A; color: #fff !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
    transition: transform .15s ease, box-shadow .15s ease;
}
.rc-play:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.34); }
.rc-play__logo { width: 30px; height: 30px; flex: none; }
.rc-play__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.rc-play__text small { font-size: 12px; opacity: .8; }
.rc-play__text strong { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.rc-play--light { background: #fff; color: var(--rc-text1) !important; }

/* 섹션 공통 */
.rc-section { padding: 72px 0; }
.rc-section h2 { font-size: clamp(26px, 5.5vw, 36px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.3; }
.rc-section__lead { margin-top: 10px !important; color: var(--rc-text2); font-size: 16px; }

/* 혜택 숫자 */
.rc-section.rc-benefits { padding: 0; margin-top: -1px; background: var(--rc-card); border-bottom: 1px solid var(--rc-border); }
.rc-benefits__grid { display: grid; grid-template-columns: 1fr; }
.rc-benefit { padding: 22px 0; text-align: center; border-bottom: 1px solid var(--rc-border); }
.rc-benefit:last-child { border-bottom: 0; }
.rc-benefit__label { font-size: 14px; color: var(--rc-text3); }
.rc-benefit__value { font-size: 34px; font-weight: 900; color: var(--rc-accent); letter-spacing: -0.02em; line-height: 1.2; }
.rc-benefit__value small { font-size: 17px; font-weight: 800; margin-left: 2px; }

/* 단계 */
.rc-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.rc-step {
    position: relative; padding: 26px 22px 24px;
    background: var(--rc-card); border: 1px solid var(--rc-border); border-radius: var(--rc-radius);
}
.rc-step__num {
    position: absolute; top: 18px; right: 20px;
    font-size: 44px; font-weight: 900; line-height: 1; color: var(--rc-accent-soft);
}
.rc-step__icon, .rc-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--rc-accent-soft); color: var(--rc-accent); font-size: 22px;
}
.rc-step h3, .rc-card h3 { margin-top: 16px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.rc-step p, .rc-card p { margin-top: 6px !important; font-size: 15px; color: var(--rc-text2); }

.rc-exchange {
    margin-top: 16px; display: grid; gap: 1px;
    background: var(--rc-border); border: 1px solid var(--rc-border); border-radius: var(--rc-radius); overflow: hidden;
}
.rc-exchange__item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--rc-card); }
.rc-exchange__item > i { font-size: 24px; color: var(--rc-accent); }
.rc-exchange__item strong { display: block; font-size: 16px; font-weight: 800; }
.rc-exchange__item span { display: block; font-size: 14px; color: var(--rc-text3); }

/* 셀러 */
.rc-seller { background: var(--rc-card); border-top: 1px solid var(--rc-border); border-bottom: 1px solid var(--rc-border); }
.rc-cards { margin-top: 32px; display: grid; gap: 14px; }
.rc-card { padding: 26px 22px; border-radius: var(--rc-radius); background: var(--rc-bg); }
.rc-seller__web { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rc-seller__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 999px;
    background: var(--rc-accent); color: #fff !important;
    font-size: 15px; font-weight: 800;
    transition: transform .15s ease;
}
.rc-seller__btn:hover { transform: translateY(-1px); }
.rc-seller__web p { color: var(--rc-text3); font-size: 14px; }

/* 화면 갤러리 */
.rc-gallery {
    margin-top: 28px;
    display: flex; gap: 16px;
    padding: 4px max(20px, calc((100% - 1080px) / 2)) 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.rc-gallery img {
    flex: none; width: 220px; border-radius: 20px;
    scroll-snap-align: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.rc-gallery:focus-visible { outline: 2px solid var(--rc-accent); outline-offset: 2px; }

/* FAQ */
.rc-faq { margin-top: 24px; display: grid; gap: 10px; }
.rc-faq details { background: var(--rc-card); border: 1px solid var(--rc-border); border-radius: 14px; }
.rc-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 20px; cursor: pointer; list-style: none;
    font-size: 16px; font-weight: 700;
}
.rc-faq summary::-webkit-details-marker { display: none; }
.rc-faq summary::after { content: "\F282"; font-family: "bootstrap-icons"; color: var(--rc-text3); transition: transform .2s ease; }
.rc-faq details[open] summary::after { transform: rotate(180deg); }
.rc-faq details p { padding: 0 20px 18px; color: var(--rc-text2); font-size: 15px; }

/* 마지막 CTA */
.rc-final { padding: 72px 0; background: linear-gradient(135deg, #4F46E5, #6366F1); color: #fff; text-align: center; }
.rc-final__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rc-final img { border-radius: 20px; border: 2px solid rgba(255, 255, 255, 0.35); margin-bottom: 6px; }
.rc-final h2 { font-size: clamp(26px, 5.5vw, 34px); font-weight: 900; letter-spacing: -0.03em; }
.rc-final p { color: #E0E7FF; margin-bottom: 14px !important; }

/* 푸터 */
.rc-footer { padding: 36px 0 110px; background: #0F172A; color: #94A3B8; font-size: 13px; }
.rc-footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.rc-footer__links a { color: #E2E8F0; }
.rc-footer__links a:hover { text-decoration: underline; }
.rc-footer__company { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.rc-footer__copy { margin-top: 14px !important; color: #64748B; }

/* 모바일 하단 고정 다운로드 */
.rc-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(244, 246, 251, 0), rgba(244, 246, 251, 0.96) 35%);
}
.rc-sticky a {
    display: flex; align-items: center; gap: 12px;
    max-width: 480px; margin: 0 auto; padding: 10px 18px 10px 10px;
    border-radius: 16px; background: var(--rc-accent); color: #fff !important;
    font-size: 16px; font-weight: 800;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
}
.rc-sticky img { border-radius: 9px; }
.rc-sticky span { flex: 1; }
.rc-sticky i { font-size: 20px; }

/* 태블릿 이상 */
@media (min-width: 720px) {
    .rc-benefits__grid { grid-template-columns: repeat(3, 1fr); }
    .rc-benefit { border-bottom: 0; border-right: 1px solid var(--rc-border); padding: 28px 0; }
    .rc-benefit:last-child { border-right: 0; }
    .rc-steps, .rc-cards, .rc-exchange { grid-template-columns: repeat(3, 1fr); }
    .rc-gallery img { width: 250px; }
}

/* 데스크톱 */
@media (min-width: 960px) {
    .rc-hero { padding-top: 72px; }
    .rc-hero__inner { grid-template-columns: 1.05fr 1fr; gap: 24px; }
    .rc-hero__copy { text-align: left; padding-bottom: 96px; }
    .rc-hero__actions { align-items: flex-start; }
    .rc-hero__visual { height: 520px; }
    .rc-shot { width: 290px; }
    .rc-shot--front { height: 540px; }
    .rc-shot--back { height: 480px; }
    .rc-section { padding: 96px 0; }
    .rc-gallery { justify-content: center; }
    .rc-sticky { display: none; }
    .rc-footer { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .rc-landing * { transition: none !important; }
}
