/* 월세패스 홈페이지. 밝고 믿음직한 파란색 하나를 중심으로, 계산기(내 카드 → 집주인 통장)가 첫 화면의 주인공입니다.
   글꼴은 기기에 있는 글꼴만 씁니다(보안 정책상 외부 글꼴을 불러오지 않음). */
:root {
  --blue: #2f3cf5;
  --blue-deep: #1f27b8;
  --sky: #eef1ff;
  --ink: #171a33;
  --ink-2: #4a4f6e;
  --ink-3: #7c8099;
  --line: #e3e6f2;
  --paper: #ffffff;
  --mist: #f6f7fb;
  --sun: #ffcf3f;
  --green: #0f9d6e;
  --radius-lg: 28px;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.site { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; border-radius: 14px; padding: 13px 20px; font-size: 16px; transition: background .15s, transform .15s; }
.btn:hover { background: var(--blue-deep); }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 11px; }
.btn-lg { padding: 17px 26px; font-size: 18px; border-radius: 16px; }
.btn-block { display: flex; width: 100%; padding: 16px; font-size: 17px; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--sky); }
.btn-text { color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 12px 4px; border-bottom: 2px solid var(--line); }
.btn-text:hover { color: var(--ink); border-color: var(--ink); }

/* 위쪽 메뉴 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.solid { border-bottom-color: var(--line); }
.nav-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
/* 로고: 파란 카드 위에 노란 띠 하나(카드 → 통장) */
.brand-mark { width: 26px; height: 20px; border-radius: 5px; background: var(--blue); position: relative; display: inline-block; transform: rotate(-8deg); }
.brand-mark span { position: absolute; left: 0; right: 0; top: 5px; height: 4px; background: var(--sun); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* 첫 화면 */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #f7f8ff 70%, var(--paper) 100%); overflow: hidden; }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 64px 20px 80px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 64px; align-items: center; }
.tag { display: inline-block; font-size: 14px; font-weight: 700; color: var(--blue); background: #fff; border: 1px solid #d5dafc; padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.18; letter-spacing: -.045em; font-weight: 800; }
.hero-sub { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 32em; }
.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-facts { list-style: none; margin: 44px 0 0; padding: 0; display: flex; gap: 0; }
.hero-facts li { padding: 0 24px; border-left: 1px solid #d5dafc; display: flex; flex-direction: column; }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 14px; color: var(--ink-3); }

/* 계산기 둘레: 카드 한 장이 계산기 위에 얹혀 있고, 집주인 통장 입금 알림이 옆에 떠 있습니다(첫 화면에서 한 번만 움직임) */
.hero-visual { position: relative; padding-top: 128px; }
.paycard { position: absolute; z-index: 2; top: 0; right: 28px; width: 260px; height: 164px; border-radius: 18px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #5b67ff 0%, var(--blue) 45%, #1b22a8 100%);
  box-shadow: 0 30px 50px -18px rgba(31,39,184,.55), inset 0 1px 0 rgba(255,255,255,.25);
  transform: rotate(-7deg); animation: card-in .9s cubic-bezier(.2,.8,.2,1) both; overflow: hidden; }
.paycard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); }
.paycard-brand { position: absolute; left: 20px; top: 16px; font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.paycard-chip { position: absolute; left: 20px; top: 56px; width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #ffe08a, #f2b62b); }
.paycard-chip::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: rgba(120,80,0,.35); }
.paycard-num { position: absolute; left: 20px; bottom: 18px; font-size: 14px; letter-spacing: .08em; font-variant-numeric: tabular-nums; opacity: .9; }
.paycard-stripe { position: absolute; right: -20px; top: 22px; width: 120px; height: 8px; background: var(--sun); transform: rotate(-30deg); opacity: .9; }
.toast { position: absolute; z-index: 3; left: -36px; top: 34px; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 18px 12px 12px;
  box-shadow: 0 18px 40px -12px rgba(23,26,51,.28); border: 1px solid #edf0f7; animation: toast-in .6s cubic-bezier(.2,.8,.2,1) .9s both; }
.toast-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--green); position: relative; flex: none; }
.toast-icon::after { content: ""; position: absolute; left: 14px; top: 9px; width: 8px; height: 15px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.toast-body { display: flex; flex-direction: column; line-height: 1.35; font-size: 14px; color: var(--ink-2); }
.toast-body b { color: var(--ink); font-size: 13px; }
.toast-body span span { color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; }
@keyframes card-in { from { transform: translate(40px, -20px) rotate(4deg); opacity: 0; } to { transform: rotate(-7deg); opacity: 1; } }
@keyframes toast-in { from { transform: translateY(14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .paycard, .toast { animation: none; } }
@media (max-width: 1320px) { .paycard { width: 220px; height: 138px; right: 8px; } .paycard-chip { top: 48px; width: 34px; height: 25px; } .paycard-num { font-size: 12.5px; bottom: 15px; } .toast { left: -48px; } }
@media (max-width: 900px) { .hero-visual { padding-top: 108px; } .paycard { width: 200px; height: 126px; right: 12px; } .paycard-chip { top: 44px; width: 32px; height: 23px; } .paycard-num { font-size: 12px; bottom: 14px; } .toast { display: none; } }

/* 계산기 */
.calc { position: relative; z-index: 1; background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 1px 0 rgba(23,26,51,.04), 0 24px 60px -20px rgba(47,60,245,.35); border: 1px solid #e6e9fb; }
.calc-title { font-weight: 700; color: var(--ink-2); font-size: 16px; }
.calc-input { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; transition: border-color .15s; }
.calc-input:focus-within { border-color: var(--blue); }
.calc-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; padding: 0; }
.calc-input .won { font-size: 26px; font-weight: 800; }
.calc-input.bad { border-color: #e5484d; }
.chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chips button { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.chips button:hover { border-color: #c6cbe6; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.calc-hint { margin-top: 10px; font-size: 13px; color: var(--ink-3); min-height: 1.5em; }
.calc-hint.bad { color: #d0343a; font-weight: 600; }

.flow { margin-top: 20px; background: var(--mist); border-radius: var(--radius); padding: 18px 18px; }
.flow-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-who { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.dot { width: 30px; height: 30px; border-radius: 9px; flex: none; position: relative; }
.dot.card { background: var(--blue); }
.dot.card::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: var(--sun); }
.dot.bank { background: var(--green); }
.dot.bank::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 8px; top: 12px; border: 2px solid #fff; border-top: 0; border-radius: 0 0 2px 2px; }
.dot.bank::before { content: ""; position: absolute; left: 6px; right: 6px; top: 7px; height: 3px; background: #fff; border-radius: 2px; }
.flow-amt { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.out .flow-amt { color: var(--ink); }
.in .flow-amt { color: var(--green); }
.flow-line { height: 28px; margin-left: 14px; border-left: 2px dashed #c3c8e6; position: relative; }
.flow-line span { position: absolute; left: -6px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px #fff; animation: drop 2.4s ease-in-out infinite; }
@keyframes drop { 0% { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 22px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flow-line span { animation: none; top: 9px; } }
.calc-meta { margin: 16px 0 20px; display: grid; gap: 6px; }
.calc-meta div { display: flex; justify-content: space-between; font-size: 15px; }
.calc-meta dt { color: var(--ink-3); }
.calc-meta dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0,1fr); gap: 32px; padding: 40px 20px 56px; }
  .hero-sub { font-size: 17px; }
  .hero-facts { margin-top: 34px; }
  .hero-facts li { padding: 0 14px; }
  .hero-facts b { font-size: 18px; }
  .hero-facts span { font-size: 12.5px; }
}
@media (max-width: 420px) {
  .calc { padding: 22px 18px; border-radius: 22px; }
  .calc-input input { font-size: 34px; }
  .flow-amt { font-size: 19px; }
  .flow-who { font-size: 14px; }
}

@media (max-width: 560px) { .hero-facts { display: none; } .hero-actions { gap: 14px; } }

/* 공통 구역 제목 */
section h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; letter-spacing: -.04em; font-weight: 800; }
section h3 { font-size: 19px; letter-spacing: -.02em; font-weight: 800; line-height: 1.4; }

/* 이럴 때 */
.why { padding: 96px 0 40px; }
.why-list { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.why-list article { border-top: 3px solid var(--ink); padding-top: 22px; }
.why-list p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 820px) { .why { padding-top: 64px; } .why-list { grid-template-columns: 1fr; gap: 32px; } }

/* 이용 방법: 실제 순서라서 번호를 씁니다 */
.how { padding: 80px 0; }
.steps { list-style: none; counter-reset: s; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: var(--mist); border-radius: var(--radius); padding: 24px 22px 26px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 18px; }
.steps p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .how { padding: 56px 0; } .steps { grid-template-columns: 1fr; gap: 12px; } .steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; padding: 20px; } .steps li::before { margin: 0; grid-row: span 2; } .steps p { margin-top: 4px; } }

/* 이용료 */
.fee { background: var(--ink); color: #fff; padding: 96px 0 72px; }
.fee-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.fee h2 strong { color: var(--sun); font-weight: 800; }
.fee-head p { margin-top: 18px; color: #c4c7dd; font-size: 16px; max-width: 28em; }
.fee-table { border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.fee-row { display: grid; grid-template-columns: 1fr .8fr 1.1fr; padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.1); font-variant-numeric: tabular-nums; font-size: 17px; }
.fee-row span:nth-child(n+2) { text-align: right; }
.fee-row span:last-child { font-weight: 800; }
.fee-th { border-top: 0; font-size: 13.5px; color: #9ea2c2; padding-top: 14px; padding-bottom: 12px; }
.fee-th span:last-child { font-weight: 600; }
.fee-note { margin-top: 28px; color: #9ea2c2; font-size: 14.5px; }
.fee-note a { color: #fff; }
@media (max-width: 860px) { .fee { padding: 64px 0 56px; } .fee-in { grid-template-columns: 1fr; gap: 32px; } .fee-row { padding: 14px 16px; font-size: 15px; } }

/* 안전장치 */
.safe { padding: 96px 0 72px; }
.safe-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.safe-list li { padding: 24px 0 24px 40px; border-top: 1px solid var(--line); position: relative; }
.safe-list li::before { content: ""; position: absolute; left: 0; top: 28px; width: 22px; height: 22px; border-radius: 50%; background: var(--sky); }
.safe-list li::after { content: ""; position: absolute; left: 7px; top: 33px; width: 6px; height: 10px; border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.safe-list p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.safe-pg { margin-top: 24px; font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 760px) { .safe { padding: 64px 0 48px; } .safe-list { grid-template-columns: 1fr; } }

/* 자주 묻는 질문 */
.faq { padding: 40px 0 96px; }
.faq-in { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--ink); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 28px; width: 9px; height: 9px; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq-list details p { padding: 0 0 22px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .faq { padding: 24px 0 64px; } .faq-in { grid-template-columns: 1fr; gap: 24px; } }

/* 마무리 */
.closing { background: var(--blue); color: #fff; }
.closing-in { padding-top: 72px; padding-bottom: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(26px, 3.4vw, 38px); }

/* 바닥글(사업자 정보: 카드사 심사 필수) */
.site-foot { background: var(--mist); color: var(--ink-3); padding: 48px 0 56px; font-size: 13px; }
.foot-brand { color: var(--ink); font-size: 17px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 18px 0 16px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.foot-links a:hover { text-decoration: underline; }
.foot-links strong { color: var(--ink); }
.site-foot p.biz { line-height: 1.8; max-width: 72em; }

/* E안: A안(파랑·계산기) + B안 영수증 계산기 + C안 메탈 카드 + D안 달력 구역 */
/* C: 메탈 카드 */
.v-e .paycard { background: linear-gradient(135deg, #2b2f3f 0%, #0d0f18 55%, #23262f 100%); box-shadow: 0 30px 50px -18px rgba(13,15,24,.6), inset 0 1px 0 rgba(255,255,255,.18); }
.v-e .paycard-brand { color: #e9c46a; }
.v-e .paycard-stripe { background: linear-gradient(90deg, #e9c46a, #fff1c7, #e9c46a); height: 6px; }
/* B: 영수증 계산기 */
.v-e .calc { border-radius: 22px 22px 0 0; padding-top: 22px; padding-bottom: 40px; border: 0;
  -webkit-mask: radial-gradient(circle 9px at 50% 100%, transparent 98%, #000) 0 0 / 22px 100% repeat-x; mask: radial-gradient(circle 9px at 50% 100%, transparent 98%, #000) 0 0 / 22px 100% repeat-x; }
.v-e .calc-title::before { content: "결제 영수증"; display: block; text-align: left; font-size: 14px; color: var(--ink-3) !important; color: var(--ink); font-weight: 800; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 2px dashed var(--line); }
.v-e .flow { background: transparent; border-radius: 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); padding: 16px 0; }
.v-e .dot.card { background: #11131c; }
.v-e .dot.card::after { background: #e9c46a; }
/* D: 달력 구역 */
.timegap { padding: 96px 0 24px; }
.timegap .wrap { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 56px; align-items: center; }
.timegap .lead { margin-top: 16px; color: var(--ink-2); max-width: 26em; }
.timegap .why-mini { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.timegap .why-mini li { padding-left: 18px; border-left: 3px solid var(--blue); color: var(--ink-2); font-size: 16px; }
.timegap .why-mini b { color: var(--ink); display: block; }
.cal { background: #fff; border-radius: 28px; padding: 26px; box-shadow: 0 30px 60px -28px rgba(47,60,245,.4); border: 1px solid #e6e9fb; }
.cal-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; }
.cal-head { margin-bottom: 10px; }
.cal-head b { font-size: 20px; letter-spacing: -.03em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; text-align: center; font-variant-numeric: tabular-nums; }
.cal-grid .dow { font-size: 12px; color: var(--ink-3); font-weight: 700; padding-bottom: 4px; }
.cal-grid .d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.cal-grid .d.sun { color: #e5484d; }
.cal-grid .d.pay, .cal-grid .d.pay.sun { background: var(--blue); color: #fff; font-weight: 800; box-shadow: 0 10px 20px -8px rgba(47,60,245,.7); }
.cal-grid .d.bill, .cal-grid .d.bill.sun { background: #fff6d6; color: #9a6b00; font-weight: 800; outline: 2px dashed #f0c341; outline-offset: -2px; }
.cal-legend { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cal-legend p { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.cal-legend i { width: 14px; height: 14px; border-radius: 5px; flex: none; }
.cal-legend .k1 { background: var(--blue); }
.cal-legend .k2 { background: #fff6d6; outline: 2px dashed #f0c341; outline-offset: -2px; }
.cal-legend b { color: var(--ink); }
.cal-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.v-e .why { display: none; }
@media (max-width: 900px) { .timegap { padding-top: 64px; } .timegap .wrap { grid-template-columns: minmax(0,1fr); gap: 28px; } .cal { padding: 20px; } }
@media (max-width: 520px) { .cal-split { grid-template-columns: minmax(0,1fr); } }
