/* =================================================================
   Pay Studio - App (앱 기능)
   ================================================================= */

:root {
    --pap-dark: #0a0e2e;
    --pap-accent: #ffae00;
    --pap-accent-lt: #ffd57a;
    --pap-accent-dp: #c47900;
    --pap-orange: #ff8a3c;
    --pap-bg: #faf7f0;
    --pap-text: #1a1f3a;
    --pap-text-sub: #5e6580;
    --pap-text-lt: #8a91a8;
    --pap-border: #f0e6d0;
    --pap-card-shadow: 0 4px 20px -8px rgba(255, 174, 0, 0.1);
    --pap-card-shadow-hover: 0 16px 40px -16px rgba(255, 174, 0, 0.25);
    --pap-radius: 20px;
}

.pay_main {
    color: var(--pap-text);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.pay_main .font_g, .pay_main .pap_eyebrow, .pay_main .pfh_badge { word-break: normal; }

.pap_sect_wrap {
    display: flex;
    flex-direction: column;
    gap: 72px;
    padding-top: 32px;
    padding-bottom: 72px;
}

.pap_sect {
    position: relative;
}

.pap_sect_head {
    margin-bottom: 32px;
}

.pap_sect_head.center {
    text-align: center;
}

.pap_eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: rgba(255, 174, 0, 0.1);
    border: 1px solid rgba(255, 174, 0, 0.25);
    border-radius: 100px;
    color: var(--pap-accent-dp);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 14px;
}

.pap_title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--pap-text);
}

.pap_sect_head.center .pap_desc {
    margin-left: auto;
    margin-right: auto;
}

.em_grad {
    background: linear-gradient(135deg, #ff8a3c 0%, #ffae00 50%, #c47900 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.em_grad_w {
    background: linear-gradient(135deg, #fff5d8 0%, #ffd57a 50%, #ffae00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.br_mo { display: none; }

/* ============================================================
   S02. Intro
   ============================================================ */
.pap_intro_grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: #fff;
    border-radius: var(--pap-radius);
    padding: 30px 20px;
    border: 1px solid var(--pap-border);
    box-shadow: var(--pap-card-shadow);
}

.pap_intro_text {
    text-align: left;
}

.pap_desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--pap-text-sub);
    margin: 14px 0 18px;
    max-width: 680px;
}

.pap_desc strong {
    color: var(--pap-accent-dp);
    font-weight: 800;
}

.pap_intro_jump {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pap_intro_jump a {
    display: inline-flex;
    padding: 8px 14px;
    background: var(--pap-bg);
    border: 1px solid var(--pap-border);
    border-radius: 100px;
    color: var(--pap-accent-dp);
    font-size: 12.5px;
    font-weight: 700;
    transition: all 0.18s ease;
}

.pap_intro_jump a:hover {
    background: var(--pap-accent);
    color: #fff;
    border-color: transparent;
}

.pap_intro_phone {
    display: flex;
    justify-content: center;
}

.iphone_frame {
    position: relative;
    width: 240px;
    max-width: 70%;
    aspect-ratio: 9 / 19;
    border-radius: 32px;
    background: #1a1a1a;
    padding: 10px;
    box-shadow: 0 30px 60px -20px rgba(10, 14, 46, 0.4),
                inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.iphone_frame::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: #1a1a1a;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.iphone_frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

/* ============================================================
   S03~07. Feature 섹션 공통
   ============================================================ */
.pap_feature {
    background: #fff;
    border-radius: var(--pap-radius);
    border: 1px solid var(--pap-border);
    box-shadow: var(--pap-card-shadow);
    padding: 30px 20px;
    scroll-margin-top: 80px;
}

.pap_feat_head {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-bottom: 26px;
}

.pfh_text {
    text-align: left;
}

.pfh_no {
    display: inline-block;
    font-size: 28px;
    font-weight: 900;
    color: var(--pap-accent-lt);
    line-height: 1;
    margin-bottom: 6px;
}

.pfh_badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 174, 0, 0.14);
    color: var(--pap-accent-dp);
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.pfh_title {
    font-size: 22px;
    font-weight: 800;
    color: var(--pap-text);
    margin: 0 0 12px;
    line-height: 1.35;
}

.pfh_desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--pap-text-sub);
    margin: 0;
}

.pfh_desc strong {
    color: var(--pap-accent-dp);
    font-weight: 800;
}

.pfh_visual {
    display: flex;
    justify-content: center;
}

/* push 알림 카드 */
.pap_push_card {
    width: 100%;
    max-width: 320px;
    padding: 22px 16px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0e2e 100%);
    border-radius: 22px;
    box-shadow: 0 30px 60px -20px rgba(10, 14, 46, 0.5);
    position: relative;
}

.ppc_alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 8px;
    backdrop-filter: blur(20px);
    animation: ppcSlide 3s ease-in-out infinite;
}

.ppc_alert.second { animation-delay: 0.4s; opacity: 0.85; }
.ppc_alert.third { animation-delay: 0.8s; opacity: 0.65; }

@keyframes ppcSlide {
    0% { transform: translateY(8px); opacity: 0; }
    20% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.65; }
}

.ppc_alert i {
    font-size: 22px;
    color: var(--pap-accent);
    flex-shrink: 0;
}

.ppc_alert > div {
    flex: 1;
    min-width: 0;
}

.ppc_title {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px;
}

.ppc_sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.ppc_time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

/* effects 4 (push, cycle 공통) */
.pap_effects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed var(--pap-border);
}

.pap_effects li {
    background: var(--pap-bg);
    border-radius: 14px;
    padding: 16px 14px;
}

.pe_icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff8e8, #ffe8c4);
    color: var(--pap-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
}

.pap_effects h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--pap-text);
    margin: 0 0 4px;
}

.pap_effects p {
    font-size: 11.5px;
    color: var(--pap-text-sub);
    margin: 0;
    line-height: 1.5;
}

/* dashboard mockup */
.pap_dash_mockup {
    width: 100%;
    max-width: 360px;
    background: linear-gradient(135deg, #0a0e2e 0%, #1a1f4d 100%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(10, 14, 46, 0.5);
}

.pdm_head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pdm_brand { display: flex; gap: 6px; }
.pdm_dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}
.pdm_dot:first-child { background: #ff5e5e; }
.pdm_dot:nth-child(2) { background: #ffbf2c; }
.pdm_dot:nth-child(3) { background: #4dd072; }

.pdm_title {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.pdm_chart_wrap {
    padding: 18px;
}

.pdm_chart_label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.pdm_chart_label > span:first-child {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.pdm_chart_label .up {
    font-size: 16px;
    font-weight: 900;
    color: var(--pap-accent-lt);
}

.pdm_chart_svg {
    width: 100%;
    height: 90px;
    display: block;
}

/* stats grid 3종 + screenshots */
.pap_stats_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px dashed var(--pap-border);
}

.pap_stats_grid li {
    background: var(--pap-bg);
    border-radius: 16px;
    padding: 18px 16px;
    border: 1px solid var(--pap-border);
}

.psg_icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff8e8, #ffe8c4);
    color: var(--pap-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
}

.pap_stats_grid h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--pap-text);
    margin: 0 0 6px;
}

.pap_stats_grid p {
    font-size: 12.5px;
    color: var(--pap-text-sub);
    line-height: 1.6;
    margin: 0 0 14px;
}

.psg_img {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pap-border);
}

.psg_img img {
    width: 100%;
    height: auto;
    display: block;
}

/* stats extras */
.pap_stats_extra {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.pse_item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fff8e8, #fff);
    border: 1px dashed var(--pap-accent);
    border-radius: 14px;
    padding: 14px 16px;
}

.pse_item i {
    flex-shrink: 0;
    color: var(--pap-accent);
    font-size: 24px;
    margin-top: 2px;
}

.pse_item h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--pap-text);
    margin: 0 0 4px;
}

.pse_item p {
    font-size: 12px;
    color: var(--pap-text-sub);
    margin: 0;
    line-height: 1.55;
}

/* refund mockup */
.pap_refund_card {
    width: 100%;
    max-width: 320px;
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    border: 1px solid var(--pap-border);
    box-shadow: var(--pap-card-shadow);
}

.prc_title {
    font-size: 11px;
    color: var(--pap-text-lt);
    margin: 0 0 4px;
    font-family: 'SF Mono', monospace;
}

.prc_amt {
    font-size: 28px;
    font-weight: 900;
    color: var(--pap-text);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.prc_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid var(--pap-border);
    border-bottom: 1px solid var(--pap-border);
    margin-bottom: 14px;
}

.prc_list li {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.prc_list li > span:first-child {
    color: var(--pap-text-lt);
    font-weight: 600;
}

.prc_list li > span:last-child {
    color: var(--pap-text);
    font-weight: 700;
}

.prc_list .ok {
    color: var(--pap-accent-dp);
}

.prc_actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.prc_btn {
    padding: 11px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffae00, #ff8a3c);
    border: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.prc_btn.outline {
    background: transparent;
    border: 1.5px solid var(--pap-accent);
    color: var(--pap-accent-dp);
}

/* receipt mockup */
.pap_receipt_card {
    width: 100%;
    max-width: 320px;
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    border: 1px solid var(--pap-border);
    box-shadow: var(--pap-card-shadow);
    position: relative;
}

.prr_head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--pap-border);
}

.prr_head p {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--pap-text);
}

.prr_head span {
    font-size: 11px;
    color: var(--pap-text-lt);
}

.prr_list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.prr_list li {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.prr_list li > span:first-child {
    color: var(--pap-text-lt);
}

.prr_list li > span:last-child {
    color: var(--pap-text);
    font-weight: 700;
}

.prr_total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-top: 1px dashed var(--pap-border);
    border-bottom: 1px dashed var(--pap-border);
    margin-bottom: 12px;
}

.prr_total > span:first-child {
    font-size: 12px;
    font-weight: 700;
    color: var(--pap-text-sub);
}

.prr_amt {
    font-size: 22px;
    font-weight: 900;
    color: var(--pap-accent-dp);
}

.prr_foot {
    margin: 0;
    font-size: 11px;
    color: var(--pap-text-lt);
    text-align: center;
}

/* ============================================================
   S08. Extras 그리드
   ============================================================ */
.pap_extras_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pap_extras_grid li {
    background: #fff;
    border-radius: 14px;
    padding: 18px 14px;
    border: 1px solid var(--pap-border);
    box-shadow: var(--pap-card-shadow);
    text-align: center;
    transition: all 0.25s ease;
}

.pap_extras_grid li:hover {
    transform: translateY(-3px);
    box-shadow: var(--pap-card-shadow-hover);
}

.pap_extras_grid i {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff8e8, #ffe8c4);
    color: var(--pap-accent);
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 8px;
}

.pap_extras_grid h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--pap-text);
    margin: 0 0 4px;
}

.pap_extras_grid p {
    font-size: 11px;
    color: var(--pap-text-sub);
    margin: 0;
    line-height: 1.4;
}

/* ============================================================
   S09. Final CTA (공통)
   ============================================================ */
.pap_final_cta .fcta_box {
    position: relative;
    background: linear-gradient(135deg, #0a0e2e 0%, #1a1f4d 100%);
    border-radius: var(--pap-radius);
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 30px 70px -20px rgba(10, 14, 46, 0.5);
}

.pap_final_cta .fcta_pattern,
.pap_final_cta .fcta_glow { position: absolute; pointer-events: none; }

.pap_final_cta .fcta_pattern {
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.pap_final_cta .fcta_glow { border-radius: 50%; filter: blur(50px); }

.pap_final_cta .fg_1 {
    top: -30%; left: -10%;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(255, 196, 74, 0.42) 0%, transparent 70%);
}

.pap_final_cta .fg_2 {
    bottom: -40%; right: -10%;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(255, 138, 60, 0.32) 0%, transparent 70%);
}

.pap_final_cta .fcta_inner {
    position: relative;
    padding: 38px 22px;
    text-align: center;
}

.pap_final_cta .fcta_text { color: #fff; }

.pap_final_cta .fcta_eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 16px;
}

.pap_final_cta .fe_dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--pap-accent);
    box-shadow: 0 0 10px var(--pap-accent);
    animation: papPulse 1.5s ease-in-out infinite;
}

@keyframes papPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.pap_final_cta .fcta_title {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 12px;
}

.pap_final_cta .fcta_desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 22px;
}

.pap_final_cta .fcta_btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.pap_final_cta .fcta_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.25s ease;
    width: 100%;
    max-width: 320px;
}

.pap_final_cta .fcta_btn.primary {
    background: linear-gradient(135deg, #ffd57a 0%, #ffae00 50%, #ff8a3c 100%);
    color: #1a1f3a;
    box-shadow: 0 12px 30px -10px rgba(255, 174, 0, 0.7);
}

.pap_final_cta .fcta_btn.ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

.pap_final_cta .fcta_btn .arrow { transition: transform 0.2s ease; }
.pap_final_cta .fcta_btn:hover .arrow { transform: translateX(4px); }
.pap_final_cta .fcta_btn i { font-size: 18px; }

/* ============================================================
   📱 Tablet 768px+
   ============================================================ */
@media screen and (min-width: 768px) {
    .pap_sect_wrap {
        gap: 90px;
        padding-top: 48px;
        padding-bottom: 90px;
    }

    .pap_sect_head {
        margin-bottom: 40px;
    }

    .pap_title { font-size: 34px; }
    .pap_desc { font-size: 15px; }

    .pap_intro_grid {
        flex-direction: row;
        align-items: center;
        gap: 50px;
        padding: 50px 40px;
    }

    .pap_intro_text { flex: 1; }
    .pap_intro_phone { flex-shrink: 0; width: 280px; }

    .iphone_frame {
        width: 100%;
        max-width: none;
    }

    .pap_feature {
        padding: 50px 40px;
    }

    .pap_feat_head {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }

    .pap_feat_head.reverse {
        flex-direction: row-reverse;
    }

    .pfh_text { flex: 1; }
    .pfh_visual { flex-shrink: 0; width: 320px; }

    .pfh_title { font-size: 28px; }

    .pap_effects {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .pap_stats_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .pap_stats_extra {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .pap_extras_grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .pap_final_cta .fcta_inner { padding: 60px 50px; }
    .pap_final_cta .fcta_btns { flex-direction: row; justify-content: center; }
    .pap_final_cta .fcta_title { font-size: 32px; }
}

@media screen and (min-width: 1024px) {
    .pap_sect_wrap {
        gap: 120px;
        padding-top: 64px;
        padding-bottom: 120px;
    }

    .pap_sect_head {
        margin-bottom: 56px;
    }

    .pap_title { font-size: 44px; }
    .pap_desc { font-size: 16px; margin-top: 18px; }
    .pap_eyebrow { padding: 6px 14px; font-size: 11px; margin-bottom: 18px; }
    .pfh_title { font-size: 32px; }

    .pap_extras_grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .br_mo { display: inline; }
}
