/* Joypay identity — phase 2. Large raster artwork is replaced in phase 3. */
:root{--brand:#e62e43;--accent:#ef4055;--deep:#c72038;--ink:#2b2026;--muted:#70656b;--line:#ecdee0;--pale:#fff4f3;--mint:#fde7e6;--sky:var(--accent)}
body{font-size:17px}
.brand img{width:158px;height:auto}.footer-inner img{width:145px;height:auto}
.site-header{border-color:var(--line)}
.hero{background:radial-gradient(ellipse at 82% 38%,#ffe0df 0,transparent 51%),linear-gradient(115deg,#fff 24%,#fff3f0 100%)}
.hero-lead{color:var(--muted)}
.header-cta{border-color:var(--line);color:var(--deep);background:var(--pale)}
.header-cta:hover{background:var(--deep);border-color:var(--deep);color:#fff}
.button-dark{background:var(--deep)}.button-dark:hover{background:#a91931}
.button-kakao{color:#292323;background:#fee500}.button-kakao:hover{background:#f8db00}
.payment-logos{background:#fffaf9}.logo-chip{border-color:var(--line)}
.logo-chip.is-center,.logo-chip:hover,.logo-chip:focus-visible{border-color:#edb4bd;box-shadow:0 12px 28px rgba(104,38,52,.08)}
.rates{background:linear-gradient(180deg,#fff6f4,#fff0ed 65%,#fff9f7)}
.rate-option.is-active{border-color:var(--accent);box-shadow:0 8px 22px rgba(145,40,60,.06)}
.rate-cycle-gauge>span{background:linear-gradient(90deg,var(--deep),#f76875)}
.amount-section,.before.process-journey{background:#fff8f6}
.amount-output{background:#fff0ee}.amount-method.is-selected{background:#fff2ef;border-color:#eaa4af}
.guide-nav-link.is-active{color:var(--deep)}
.site-footer{background:#fff8f6;border-color:var(--line)}
.section-index{font-size:14px;letter-spacing:.025em}.desktop-nav{font-size:15px}.header-cta{font-size:15px}
.button,.text-link,.inline-arrow,.rate-detail,.guide-consult,.amount-consult,.process-consult{font-size:16px}
.hero-lead{font-size:19px;line-height:1.75}
.daily-heading>p,.daily-story-body>p,.guide-lead,.guide-phone-notes p,.guide-voucher-detail p,.guide-detail-list dd,.process-step-copy>p:not(.process-step-number),.process-intro>p:not(.section-index):not(.process-position){font-size:17px;line-height:1.75}
.guide-check-flow p,.guide-card-flow p,.guide-compare p,.guide-voucher-types dd,.guide-preparation li,.process-step dd{font-size:16px;line-height:1.7}
.rate-note,.rate-cycle-meta,.amount-input-help,.amount-error,.amount-result-note,.amount-service-detail,.guide-module-note,.guide-compare span,.process-step dt{font-size:14px;line-height:1.65}
.amount-breakdown dt,.amount-breakdown dd,.amount-formula{font-size:15px}
.logo-chip span{font-size:12px}.scroll-hint{font-size:12px;letter-spacing:.06em}
@media(max-width:720px){
 .brand img{width:133px}.footer-inner img{width:128px}
 .hero-lead{font-size:16px}.hero-actions .text-link{font-size:15px}
 .section-index{font-size:14px}.hero .eyebrow{font-size:14px}
 .logo-stage-heading>p,.daily-heading>p,.daily-story-body>p,.guide-lead,.guide-phone-notes p,.guide-voucher-detail p,.guide-detail-list dd,.guide-check-flow p,.guide-card-flow p,.guide-compare p,.guide-voucher-types dd,.guide-preparation li,.process-step dd,.process-step-copy>p:not(.process-step-number),.process-intro>p:not(.section-index):not(.process-position),.amount-heading>p:last-child{font-size:16px;line-height:1.75}
 .rate-description{font-size:16px;min-height:52px}.rate-detail{font-size:15px}
 .rate-note{max-width:none}.rate-option-value small{font-size:14px}
 .amount-input-help,.amount-error,.amount-result-note,.amount-service-detail,.amount-formula,.amount-presets button,.amount-breakdown dt,.amount-breakdown dd,.guide-module-note,.guide-compare span,.process-step dt{font-size:14px}
 .service-row-main small{font-size:14px}.logo-chip span{font-size:12px}
 .faq-list summary{font-size:17px}.faq-list details p{font-size:16px}
}

/* Phase 3: keep the cash layer inside the hero composition. */
.hero-art .hero-stage-cash{width:110%;left:-6%;top:8%}
@media(max-width:720px){.hero-art .hero-stage-cash{width:100%;left:0;top:3%}}


/* Phase 5: explicit local motion controls and robust navigation. */
.focus-reveal{filter:none;opacity:1;transform:none}
.has-reveal-motion .focus-reveal:not(.in-view){filter:blur(6px);opacity:.47;transform:translateY(12px)}
.logo-controls{display:flex;justify-content:flex-end;margin-top:20px}
.motion-toggle{border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.7);color:var(--muted);min-height:40px;padding:8px 16px;font-size:14px;line-height:1.4;transition:background .2s,color .2s}
.motion-toggle:hover,.motion-toggle[aria-pressed="true"]{background:#fff;color:var(--deep)}
.logo-stage.is-user-paused .logo-track{animation-play-state:paused}
.rate-timer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 20px}
.rate-cycle-gauge{grid-column:1 / -1}
.rate-cycle-meta{margin:0}
#rate-motion-toggle{grid-column:2;grid-row:2}
.rate-description{min-height:3.2em}
@media(max-width:720px){
 .logo-window{touch-action:pan-x pan-y}
 .mobile-nav:not([hidden]){animation:joyMenuIn .2s var(--ease) both}
 .hero-stage-motion{transform:none;transition:none}
 .rate-description{min-height:3.2em}
 .motion-toggle{min-height:44px;font-size:14px;padding:8px 13px}
}
@keyframes joyMenuIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
 .has-reveal-motion .focus-reveal:not(.in-view){filter:none;opacity:1;transform:none}
 .logo-controls,.rate-timer{display:none}
 .mobile-nav:not([hidden]){animation:none}
 .motion-toggle{transition:none}
}

/* JoyPay phase 6 — editorial settlement cards and media */
.film-frame{background:#574944 url("assets/ilsang-real-film-poster.jpg") center 44%/cover no-repeat}
.film-shade{background:linear-gradient(90deg,rgba(39,26,31,.75),rgba(39,26,31,.12) 90%)}
.film-overlay .section-index{color:#fff2f2;font-size:15px}
.film-overlay>p:not(.section-index):not(.film-status){font-size:19px;line-height:1.75}
.film-mobile-break{display:none}
.film-toggle{min-height:48px;font-size:16px}
.film-status{font-size:14px;min-height:1.5em;margin:12px 0 0}
.settlement-stories{padding:120px 0;background:#fff9f7}
.settlement-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:48px}
.settlement-heading h2{font-size:clamp(36px,4vw,58px);line-height:1.25;letter-spacing:-.05em;margin:0}
.settlement-heading>p{font-size:18px;line-height:1.8;color:var(--muted);margin:0 0 4px}
.settlement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.settlement-card{background:#fff;border:1px solid #f0e4df;border-radius:20px;overflow:hidden}
.settlement-photo{aspect-ratio:3/2;overflow:hidden;position:relative;background:#eadbd0}
.settlement-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .65s var(--ease)}
.settlement-number{position:absolute;left:20px;top:20px;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.92);font-size:14px;font-weight:700;color:var(--deep)}
.settlement-copy{padding:28px 28px 32px}
.settlement-label{font-size:15px;font-weight:700;color:var(--deep);margin:0 0 12px}
.settlement-copy h3{font-size:26px;line-height:1.4;letter-spacing:-.035em;margin:0 0 14px}
.settlement-copy>p:last-child{font-size:17px;line-height:1.85;color:var(--muted);margin:0;word-break:keep-all;overflow-wrap:break-word}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.settlement-card:hover .settlement-photo img{transform:scale(1.035)}}
@media(max-width:1000px){.settlement-heading{display:block}.settlement-heading>p{margin-top:24px}.settlement-grid{gap:16px}.settlement-copy{padding:23px 20px 26px}.settlement-copy h3{font-size:23px}}
@media(max-width:720px){
 .film-frame{height:580px;background-position:40% center}
 .film video{object-position:40% center}
 .film-shade{background:linear-gradient(0deg,rgba(39,26,31,.88),rgba(39,26,31,.32) 60%,rgba(39,26,31,.04))}
 .film-overlay{padding-bottom:28px}
 .film-overlay .section-index{font-size:14px;margin-bottom:16px}
 .film h2{font-size:clamp(34px,8.5vw,48px);line-height:1.25}
 .film-overlay>p:not(.section-index):not(.film-status){font-size:17px}
 .film-mobile-break{display:block}
 .film-toggle{margin-top:22px}
 .film-status{max-width:100%;font-size:13px}
 .settlement-stories{padding:80px 0}
 .settlement-heading{margin-bottom:32px}
 .settlement-heading h2{font-size:clamp(30px,7.8vw,45px)}
 .settlement-heading>p{font-size:16px;margin-top:20px}
 .settlement-grid{grid-template-columns:1fr;gap:24px}
 .settlement-copy{padding:24px}
 .settlement-copy h3{font-size:25px}
 .settlement-copy>p:last-child{font-size:17px}
}

/* JoyPay phase 7 — questions and consultation */
.faq{padding:120px 0;background:#fff}
.faq-grid{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:9%}
.faq h2{font-size:clamp(38px,4vw,58px);line-height:1.25;letter-spacing:-.05em;margin:0 0 24px}
.faq-intro{font-size:18px;line-height:1.8}
.faq-intro-link{display:inline-flex;gap:24px;align-items:center;font-size:16px;color:var(--deep);font-weight:700;margin-top:20px;padding:12px 0}
.faq-list{border-top:2px solid var(--ink)}
.faq-list summary{font-size:19px;line-height:1.65;padding:25px 42px 25px 0}
.faq-list summary:after{top:24px;line-height:1.2;transition:transform .2s}
.faq-list details p{font-size:17px;line-height:1.85;padding-right:35px;margin:0 0 26px;word-break:keep-all;overflow-wrap:break-word}
.faq-list details[open] summary{color:var(--deep);padding-bottom:15px}
.faq-list details[open] p{animation:joyAnswerIn .25s ease both}
@keyframes joyAnswerIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.consult{position:relative;isolation:isolate;overflow:hidden;padding:100px 0;background:#511d2b;color:#fff}
.consult:before{content:'';position:absolute;z-index:-1;width:600px;height:600px;left:-130px;bottom:-440px;border-radius:50%;background:#8e3347;filter:blur(50px);opacity:.6}
.consult-grid{grid-template-columns:1.15fr 1fr;gap:8%;align-items:center}
.consult .section-index{color:#ffc0ca;font-size:15px}
.consult h2{font-size:clamp(40px,4.5vw,64px);line-height:1.25;letter-spacing:-.055em;margin:0 0 26px}
.consult h2 span{color:#ffb2bf}
.consult-grid>div:first-child>p:not(.section-index){font-size:18px;line-height:1.85;max-width:none;color:#f0d8de}
.consult-topics{display:flex;flex-wrap:wrap;gap:10px;margin:30px 0 0;padding:0;list-style:none}
.consult-topics li{padding:9px 14px;border:1px solid #966674;border-radius:50px;font-size:15px;color:#ffeaf0}
.consult-panel{background:#fffaf8;color:var(--ink);border-radius:24px;padding:34px}
.consult-panel-title{font-size:25px;line-height:1.4;font-weight:700;margin:0 0 12px;letter-spacing:-.03em}
.consult-panel>p.consult-panel-note{font-size:16px;line-height:1.75;color:var(--muted);margin:0 0 24px}
.consult-context{margin:0 0 26px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.consult-context>div{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin:0 0 10px;font-size:16px}
.consult-context>div:last-child{margin:0}
.consult-context dt{color:var(--muted)}
.consult-context dd{font-weight:700;margin:0;text-align:right;overflow-wrap:anywhere}
.consult-kakao{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:64px;padding:17px 20px;background:#fee500;color:#211a17;border-radius:14px;font-size:19px;font-weight:700;transition:background .2s,transform .2s}
.kakao-icon{width:27px;height:27px;flex:none;fill:currentColor}
.consult-kakao .cta-arrow{margin-left:auto}.consult-kakao .kakao-icon{margin-right:auto}
.consult-kakao:hover{background:#f6dc00;transform:translateY(-2px)}
.consult-kakao[aria-disabled="true"]{cursor:default}
.consult-kakao[aria-disabled="true"]:hover{transform:none}
.consult-status{font-size:14px;line-height:1.7;color:var(--muted);margin:14px 0 0;text-align:center;min-height:24px}
.consult-floating{position:fixed;z-index:45;right:28px;bottom:28px;display:flex;align-items:center;gap:13px;background:#fee500;color:#211a17;min-height:66px;padding:12px 22px;border:1px solid rgba(46,30,16,.06);border-radius:18px;box-shadow:0 8px 28px rgba(57,23,30,.17);font-size:17px;font-weight:700;animation:joyAnswerIn .25s ease both}
.consult-floating[hidden],.consult-context[hidden]{display:none}
.consult-floating small{display:block;font-size:13px;line-height:1.5;font-weight:400}
.consult-floating:hover{background:#f6dc00}
.site-footer{padding-bottom:115px}
@media(max-width:720px){
 .faq{padding:80px 0}.faq-grid{display:block}.faq h2{font-size:37px}
 .faq-intro{font-size:16px}.faq-intro-link{margin-top:8px}
 .faq-list{margin-top:35px}.faq-list summary{font-size:17px;padding:23px 32px 23px 0}
 .faq-list details p{font-size:16px;padding-right:10px;line-height:1.85}
 .consult{padding:70px 0}.consult-grid{display:block}
 .consult h2{font-size:clamp(35px,9vw,46px)}
 .consult-grid>div:first-child>p:not(.section-index){font-size:16px}
 .consult-topics{gap:7px;margin-top:24px}.consult-topics li{font-size:14px;padding:8px 12px}
 .consult-panel{margin-top:35px;padding:26px 22px;border-radius:20px}
 .consult-panel-title{font-size:23px}.consult-kakao{font-size:17px;min-height:60px;padding:15px}
 .consult-floating{left:16px;right:16px;bottom:calc(12px + env(safe-area-inset-bottom));min-height:60px;border-radius:14px;justify-content:center;padding:10px 18px;gap:10px}
 .consult-floating small{display:none}.consult-floating .cta-arrow{margin-left:auto}.consult-floating .kakao-icon{margin-right:auto}
 .site-footer{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.faq-list details[open] p,.consult-floating{animation:none}.consult-kakao{transition:none}.consult-kakao:hover{transform:none}}

/* Phase 8 QA: use compact navigation before desktop labels wrap. */
.desktop-nav a{white-space:nowrap}
@media(max-width:1000px){
 .desktop-nav,.header-cta{display:none}
 .menu-button{display:flex;flex:none;width:44px;height:44px;flex-direction:column;gap:6px;align-items:center;justify-content:center;margin-left:auto;border:0;background:none}
 .menu-button span{display:block;width:22px;height:2px;background:var(--ink)}
 .mobile-nav:not([hidden]){display:flex;flex-direction:column;background:#fff;padding:10px 24px 24px;border-bottom:1px solid var(--line);box-shadow:0 16px 25px rgba(151,44,65,.07)}
 .mobile-nav a{padding:12px 6px;font-weight:700;font-size:16px}
}
