/* 위플 가계부 — withweple.com 공통 모양 (밝은 위플 판, 2026-10-15) */
:root {
  --ink: #10302C;
  --ink-2: #3D5A56;
  --ink-3: #5F7A76;
  --teal: #0A9E91;
  --teal-ink: #0A7A6E;
  --sky: #3D8FD6;
  --mint: #F2F8F7;
  --line: #D3E2DF;
  --hero: linear-gradient(135deg, #5FAAE4 0%, #1FB2B8 55%, #0A9E91 100%);
  --display: 'Gothic A1', 'IBM Plex Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #FFFFFF; color: var(--ink);
  font-family: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--teal-ink); }
a:hover { color: #075A51; }
h1, h2, h3 { text-wrap: balance; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #FFFFFF; color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; }
.pad { padding-inline: 20px; }

/* 머리 면 */
.hero { background: var(--hero); color: #FFFFFF; position: relative; overflow: hidden; }
.hero a { color: #FFFFFF; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; flex-wrap: wrap; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; display: block; box-shadow: 0 0 0 2px rgba(255,255,255,0.7); }
.brand span { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .pill { color: #0A5E55; background: #FFFFFF; padding: 10px 16px; border-radius: 999px; }
.hero .nav .pill { color: #0A5E55; }
@media (max-width: 600px) { .nav .navlink { display: none; } }
.eyebrow { margin: 0; font-size: 16px; font-weight: 600; opacity: 0.92; }
.h1 { margin: 0; font-family: var(--display); font-size: clamp(36px, 4.4vw, 60px); line-height: 1.12; font-weight: 700; letter-spacing: -0.04em; }

/* 떠다니는 지출 아이콘 (bg.js 가 채운다) */
.bg-icons { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bg-icons svg { position: absolute; }
.hero > :not(.bg-icons), .band > :not(.bg-icons) { position: relative; }
@keyframes wpl-float-a { 0% { translate: 0 0; rotate: 0deg; } 50% { translate: 10px -16px; rotate: 6deg; } 100% { translate: -6px -28px; rotate: -4deg; } }
@keyframes wpl-float-b { 0% { translate: 0 0; rotate: 0deg; } 50% { translate: -12px -12px; rotate: -6deg; } 100% { translate: 8px -24px; rotate: 4deg; } }
@keyframes wpl-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes wpl-land { 0% { transform: scale(1); } 35% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes wpl-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 단추 */
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 16px; background: var(--ink); color: #FFFFFF !important; text-decoration: none; font-weight: 600; font-size: 16px; }
.store:hover { background: #1B4842; }
.store svg { flex: none; }
.btn-dark { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #FFFFFF !important; text-decoration: none; font-weight: 600; font-size: 15px; }
.btn-light { display: inline-flex; align-items: center; min-height: 54px; padding: 0 26px; border-radius: 16px; background: #FFFFFF; color: var(--ink) !important; text-decoration: none; font-weight: 700; font-size: 16px; }

/* 홈 머리: 입력 카드 + 폰 */
.hero-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; padding-top: 48px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; padding-bottom: 72px; }
.typer { background: #FFFFFF; color: var(--ink); border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; max-width: 460px; box-shadow: 0 24px 50px -30px rgba(6,60,55,0.55); }
.typer-line { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.typer-text { font-family: var(--mono); font-size: 20px; white-space: pre; }
.caret { width: 2px; height: 24px; background: #0EC4B2; animation: wpl-caret 1s step-end infinite; margin-left: -8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; min-height: 30px; }
.chip { border-radius: 999px; padding: 5px 12px; font-size: 14px; background: #EEF3F2; color: #3D5A56; animation: wpl-rise 0.3s ease-out both; }
.chip.cat { background: #E3F7F4; color: #0A6E63; font-weight: 600; }
.chip.amt { font-family: var(--mono); font-weight: 700; background: #FDE8EF; color: #C2476C; }
.chip.amt.in { background: #E2F5EA; color: #1E8A55; }
.chip:nth-child(2) { animation-delay: 0.08s; } .chip:nth-child(3) { animation-delay: 0.16s; } .chip:nth-child(4) { animation-delay: 0.24s; }
.proof { margin: 0; font-size: 14px; font-weight: 500; opacity: 0.9; }

.hero-phone { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; align-self: flex-end; }
.phone-top { width: 340px; max-width: 86%; height: 560px; border: 12px solid #FFFFFF; border-bottom: none; border-radius: 52px 52px 0 0; overflow: hidden; background: #FFFFFF; color: var(--ink); }
.app-head { background: linear-gradient(135deg, #63BFE6 0%, #26C3BC 100%); color: #FFFFFF; padding: 18px 18px 14px; display: flex; justify-content: center; align-items: center; gap: 4px; font-size: 18px; font-weight: 600; }
.app-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px 8px; gap: 8px; font-size: 13px; font-weight: 600; }
.app-sum .in { color: #1E8A55; } .app-sum .out { color: #C2476C; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 0 8px; }
.cal .wd { text-align: center; font-size: 10px; color: #8A9895; padding-bottom: 4px; }
.cal .d { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 0; border-radius: 9px; min-height: 38px; }
.cal .d b { font-size: 12px; font-weight: 600; }
.cal .d i { font-style: normal; font-family: var(--mono); font-size: 8.5px; color: #C2476C; }
.cal .d i.in { color: #1E8A55; }
.cal .d.mute b { color: #C3CDCB; } .cal .d.sun b { color: #D2547A; } .cal .d.sat b { color: #2F7FD0; }
.cal .d.today { background: #FFD6E4; }
.cal .d.hit { animation: wpl-land 0.6s ease-out; box-shadow: 0 0 0 2px #0EC4B2 inset; }
.cal .d.hit i { font-weight: 700; }
.app-list { margin-top: 10px; border-top: 1px solid #EEF3F2; padding: 10px 16px 0; display: flex; flex-direction: column; }
.app-list .date { font-size: 12px; color: var(--ink-3); padding-bottom: 6px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.row .ico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.row .t { flex: 1; display: flex; flex-direction: column; }
.row .t b { font-size: 13px; font-weight: 600; } .row .t small { font-size: 11px; color: #8A9895; }
.row .a { font-size: 13px; font-weight: 600; color: #C2476C; } .row .a.in { color: #1E8A55; }

/* 큰 낱말 셋 */
.feature { padding-block: 72px 40px; }
.feature.first { padding-top: 112px; }
.feature.last { padding-bottom: 112px; }
.feature-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.feature.flip .feature-grid { flex-wrap: wrap-reverse; }
.feature-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.word { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 7vw, 96px); line-height: 1; letter-spacing: -0.045em; }
.word.teal { color: var(--teal); } .word.sky { color: var(--sky); } .word.ink { color: var(--ink); }
.feature h2 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.3; letter-spacing: -0.03em; }
.lead { margin: 0; font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 28em; }
.note { margin: 0; font-size: 14px; color: var(--ink-3); }
.feature-shot { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.phone { width: 300px; max-width: 82%; aspect-ratio: 1440 / 2790; border: 10px solid var(--ink); border-radius: 46px; overflow: hidden; background: #FFFFFF; }
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 띠 */
.band { background: var(--teal); color: #FFFFFF; position: relative; overflow: hidden; }
.band a { color: #FFFFFF; }
.quote { max-width: 900px; margin: 0 auto; padding-block: 88px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.35; letter-spacing: -0.03em; }
.quote figcaption { font-size: 15px; font-weight: 500; opacity: 0.9; }

.mint { background: var(--mint); }
.section { padding-block: 112px; }
.big { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.12; letter-spacing: -0.04em; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--ink); }
.steps li { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.steps .no { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--teal-ink); }
.steps .ti { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.steps .de { font-size: 15px; line-height: 1.6; color: var(--ink-3); }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; }
.two h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.plain { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.plain strong { color: var(--ink); }

/* 자주 묻는 질문 */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; }
.qa { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); padding-block: 20px; }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; color: var(--teal-ink); font-size: 22px; line-height: 1; transition: transform 0.2s; flex: none; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p, .qa ul { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* 글 장 (도움말) */
.doc { max-width: 760px; margin: 0 auto; padding-block: 64px 96px; }
.doc h2 { font-size: 26px; letter-spacing: -0.03em; margin: 56px 0 12px; }
.doc h3 { font-size: 19px; margin: 32px 0 8px; }
.doc p, .doc li { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.doc ol, .doc ul { padding-left: 22px; }
.doc ol.steps { padding-left: 0; }
.doc .steps .de { font-size: 15px; }
.doc .path { font-size: 0.94em; font-weight: 600; background: var(--mint); border-radius: 6px; padding: 1px 6px; color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.callout { background: var(--mint); border-left: 4px solid var(--teal); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.callout p { margin: 0; }
.crumb { font-size: 14px; color: var(--ink-3); margin: 0 0 12px; }
.crumb a { color: var(--ink-3); }
.help-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.help-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: var(--mint); text-decoration: none; color: var(--ink) !important; }
.help-card b { font-size: 18px; } .help-card span { font-size: 15px; color: var(--ink-3); line-height: 1.6; }
.help-card:hover { background: #E5F2F0; }

/* 바닥 */
.foot { background: var(--ink); color: #A7C2BD; }
.foot a { color: #FFFFFF; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 40px 56px; font-size: 13px; line-height: 1.8; }
.foot-in > div { display: flex; flex-direction: column; }
.foot-name { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #FFFFFF; margin-bottom: 6px; }
.foot-name img { width: 24px; height: 24px; border-radius: 7px; display: block; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
