html, body { background: #FBFAF6; }
:root {
  --paper: #FBFAF6;
  --card: #FFFFFF;
  --card-2: #F5F4EF;
  --ink: #111111;
  --ink-2: rgba(17, 17, 17, .62);
  --ink-3: rgba(17, 17, 17, .42);
  --line: rgba(17, 17, 17, .10);
  --night: #FFE6EF;
  --sky: #E6EEFF;
  --night-ink: #111111;
  --lime: #FFB3CC;
  --t-work: #FFE2D1; --t-tax: #E7F5C6; --t-finance: #DCE7FF; --t-home: #F1E2FF; --t-date: #FFF0BF; --t-life: #D6F4EC;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 10px 30px rgba(17, 17, 17, .06);
  --shadow-lift: 0 2px 4px rgba(17, 17, 17, .05), 0 18px 40px rgba(17, 17, 17, .10);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r-card: 28px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  line-height: 1.6; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--lime); color: #111; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 40px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 100; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-3); }

/* ---------- 글자 타일 (이모지 대신) ---------- */
.tile {
  flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  font-weight: 800; font-size: 15px; letter-spacing: -0.03em; color: #111; line-height: 1; background: var(--t-work);
}
.tile.work { background: var(--t-work); } .tile.tax { background: var(--t-tax); } .tile.finance { background: var(--t-finance); }
.tile.home { background: var(--t-home); } .tile.date { background: var(--t-date); } .tile.life { background: var(--t-life); }
.tile.big { width: 64px; height: 64px; border-radius: 18px; font-size: 19px; }

/* ---------- 내비 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 0 0; pointer-events: none; }
.header-inner {
  pointer-events: auto; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 8px 0 10px;
  background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.04em; text-decoration: none; white-space: nowrap; padding-right: 6px; }
.logo-mark { width: 38px; height: 38px; border-radius: 50%; background: #111; display: grid; place-items: center; flex: none; }
.logo-mark svg { width: 18px; height: 18px; }
.cat-nav { display: flex; gap: 2px; margin-left: 6px; }
.cat-nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 9px 13px; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap; }
.cat-nav a:hover { background: var(--card-2); color: var(--ink); }
.search { position: relative; margin-left: auto; width: 240px; }
.search input {
  width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink);
  padding: 0 16px 0 40px; font: inherit; font-size: 14px;
}
.search::before { content: ''; position: absolute; left: 15px; top: 14px; width: 11px; height: 11px; border: 2px solid var(--ink-3); border-radius: 50%; pointer-events: none; }
.search::after { content: ''; position: absolute; left: 27px; top: 28px; width: 6px; height: 2px; background: var(--ink-3); transform: rotate(45deg); border-radius: 2px; pointer-events: none; }
.search-results { position: absolute; top: 52px; left: 0; right: 0; min-width: 260px; list-style: none; margin: 0; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lift); max-height: 340px; overflow: auto; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 15px; }
.search-results a:hover, .search-results a.on { background: var(--card-2); }
.search-results .tile { width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }
.nav-cta { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease); }
.nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 1020px) { .cat-nav { display: none; } }
@media (max-width: 640px) {
  .site-header { padding-top: 10px; }
  .header-inner { height: 56px; }
  .nav-cta { display: none; }
  .search { width: auto; flex: 1; }
  .search-results { right: -8px; }
}

/* ---------- 버튼 ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 6px 6px 6px 26px;
  border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; border: 0; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 1px 2px rgba(17,17,17,.1), 0 8px 20px rgba(17,17,17,.14); }
.btn-primary .arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: #111; display: grid; place-items: center; transition: transform .3s var(--ease); }
.btn-primary:hover .arrow { transform: rotate(-45deg); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 0 22px; }
.btn-ghost:hover { background: var(--card); }
.calc-form .btn-primary { justify-self: start; min-height: 48px; padding: 0 26px; font-size: 15px; }
@media (max-width: 600px) { .calc-form .btn-primary { justify-self: stretch; } }

/* ---------- 홈: 히어로 ---------- */
.hero { padding: 56px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; min-height: min(660px, calc(100dvh - 130px)); }
@media (max-width: 960px) { .hero { padding: 28px 0 56px; } .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; min-height: 0; } }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: border-color .2s; }
.badge:hover { border-color: var(--ink-3); }
.badge b { background: var(--lime); color: #111; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(48px, 7.2vw, 104px); line-height: 1.02; letter-spacing: -0.055em; font-weight: 760; margin: 26px 0 24px; }
.hero h1 .soft { color: var(--ink-3); font-weight: 620; }
.hero h1 .mark { position: relative; white-space: nowrap; z-index: 0; }
.hero h1 .mark::after { content: ''; position: absolute; left: -2%; right: -1%; bottom: .06em; height: .3em; background: var(--lime); z-index: -1; border-radius: 6px; transform-origin: left; }
.js .hero h1 .mark::after { animation: swipe .9s var(--ease) 1s both; }
@keyframes swipe { from { transform: scaleX(0); } }
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 30rem; margin: 0 0 34px; line-height: 1.65; }
.hero-cta { display: flex; gap: 12px 22px; flex-wrap: wrap; align-items: center; }
.text-link { font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: 2px; transition: border-color .2s; }
.text-link:hover { border-color: var(--ink); }
@media (max-width: 560px) { .hero-cta .btn-primary { width: 100%; justify-content: space-between; } }

/* 월급 슬롯 카드 */
.slot {
  position: relative; background: linear-gradient(160deg, #FFE3EC 0%, #FFFFFF 58%, #EEF3FF 100%); color: var(--ink); border-radius: 32px; padding: 30px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(17,17,17,.04), 0 24px 50px rgba(60,80,20,.12);
}
.slot::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: none; }
.slot > * { position: relative; }
.slot-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.slot .label { color: var(--ink-3); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ink-2); background: #fff; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #F0558A; box-shadow: 0 0 0 3px rgba(240,85,138,.18); }
.slot-input { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 6px; border-bottom: 2px solid rgba(17,17,17,.12); padding-bottom: 8px; transition: border-color .2s; }
.slot-input:focus-within { border-color: var(--ink); }
.slot-input input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: inherit; font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; padding: 0; }
.slot-input input:focus { outline: none; }
.slot-input span { font-size: 18px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.slot-range { width: 100%; margin: 14px 0 12px; accent-color: #111; height: 28px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.slot-out { margin-top: 24px; padding-top: 22px; border-top: 1px dashed rgba(17,17,17,.14); }
.roll { display: flex; align-items: baseline; flex-wrap: nowrap; font-size: clamp(44px, 5.4vw, 74px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--ink); margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.roll .d { display: inline-block; height: 1em; overflow: hidden; }
.roll .d > span { display: flex; flex-direction: column; transition: transform .75s var(--ease); }
.roll .d > span > i { font-style: normal; height: 1em; line-height: 1; }
.roll .sep { display: inline-block; }
.roll .won { font-size: .4em; margin-left: .2em; color: var(--ink-2); letter-spacing: -0.02em; }
.fun { height: 26px; overflow: hidden; font-size: 15px; color: var(--ink-2); font-weight: 500; position: relative; }
.fun span { position: absolute; inset: 0; transition: transform .26s var(--ease), opacity .26s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fun b { color: var(--ink); font-weight: 800; background: linear-gradient(transparent 60%, var(--lime) 60%); }
.slot-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.slot-foot a { color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.slot-foot a:hover { text-decoration: underline; }
@media (max-width: 560px) { .slot { padding: 22px; border-radius: 26px; } .fun { font-size: 14px; } }

/* 마퀴 */
.marquee { background: var(--lime); color: #111; overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; padding: 0 22px; text-decoration: none; }
.marquee-track a:hover { text-decoration: underline; }
.marquee-track a::after { content: '✦'; margin-left: 44px; color: rgba(17,17,17,.35); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 섹션 공통 */
.section { padding: 104px 0; }
@media (max-width: 700px) { .section { padding: 68px 0; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 28px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.055em; font-weight: 760; margin: 10px 0 0; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 24rem; }

/* 숫자 놀이 벤토 */
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .bento > :first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } }
.play { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 300px; }
.play.dark { background: var(--night); color: var(--ink); border-color: rgba(220,80,130,.18); }
#p-word.dark { background: var(--sky); border-color: rgba(80,110,200,.16); }
.play.dark .label { color: var(--ink-3); }
.play h3 { margin: 6px 0 0; font-size: 21px; letter-spacing: -0.035em; line-height: 1.3; }
.big-num { font-size: clamp(52px, 6vw, 84px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: auto; padding-top: 22px; }
.big-num small { font-size: .42em; letter-spacing: -0.02em; margin-left: 4px; }
.play.dark .big-num { color: var(--ink); }
.play .sub { color: var(--ink-2); font-size: 14px; margin: 10px 0 0; }
.play.dark .sub { color: var(--ink-2); }
.mini-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.mini-chips button { height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.play.dark .mini-chips button { background: #fff; }
.mini-chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.bar { height: 12px; border-radius: 99px; background: var(--card-2); overflow: hidden; margin-top: 16px; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width 1.6s var(--ease); }

/* 계산기 찾기 */
.filters { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.calc-card-link {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px; min-height: 176px; border-radius: 24px; background: var(--card);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.calc-card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.calc-card-link:active { transform: scale(.98); }
.calc-card-link .t { font-weight: 760; font-size: 17px; letter-spacing: -0.035em; line-height: 1.3; margin-top: auto; }
.calc-card-link .d { font-size: 14px; color: var(--ink-2); line-height: 1.45; margin-top: -10px; }
.calc-card-link .go { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); color: var(--ink); opacity: 0; transform: translate(-4px, 4px); transition: opacity .25s, transform .3s var(--ease), background .2s; }
.calc-card-link:hover .go { opacity: 1; transform: none; background: var(--lime); }
.calc-card-link[hidden] { display: none; }
@media (max-width: 600px) { .calc-card-link { padding: 16px; min-height: 150px; border-radius: 20px; gap: 12px; } .calc-card-link .t { font-size: 15.5px; } .calc-card-link .d { font-size: 13px; margin-top: -6px; } .calc-card-link .tile { width: 40px; height: 40px; font-size: 13px; } }

/* 신뢰 숫자 */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 800px) { .proof { grid-template-columns: 1fr; gap: 34px; } }
.proof > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.proof .n { font-size: clamp(46px, 5vw, 70px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.proof .n small { font-size: .38em; letter-spacing: -0.02em; margin-left: 4px; }
.proof p { color: var(--ink-2); margin: 14px 0 0; max-width: 22rem; }

/* 리빌 */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero .rise { opacity: 0; transform: translateY(24px); filter: blur(8px); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }


/* ---------- 홈 추가 ---------- */
.tint { background: color-mix(in srgb, var(--card) 45%, var(--paper)); border-block: 1px solid var(--line); }
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.quick { gap: 12px; }
.quick a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; font-size: 15.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.035em; transition: transform .25s var(--ease), box-shadow .25s; }
.quick a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.quick a span:last-child { line-height: 1.3; }
@media (max-width: 1060px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .quick { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; } .quick a { flex-direction: column; gap: 8px; padding: 12px 2px; font-size: 12.5px; text-align: center; background: none; border: 0; box-shadow: none; } .quick .tile { width: 48px; height: 48px; } }
@media (max-width: 420px) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bento .span2 { grid-column: span 2; }
@media (max-width: 1060px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento .span2 { grid-column: auto; } }
.bento > :first-child { grid-column: span 2; }
@media (max-width: 600px) { .bento > :first-child { grid-column: auto; } }
.play { min-height: 260px; }
.play .big-num.clock { font-size: clamp(40px, 4.2vw, 56px); }
.dark-bar { background: rgba(255,255,255,.85); border-color: rgba(17,17,17,.08); }
.dark-bar i { background: var(--ink); }
.ox { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 18px; }
.ox button { height: 64px; border-radius: 18px; border: 1px solid var(--line); background: var(--card-2); font: inherit; font-size: 28px; font-weight: 800; color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.ox button:hover { transform: translateY(-2px); }
.ox button.right { background: var(--lime); color: #111; border-color: var(--lime); }
.ox button.wrong { opacity: .35; }
.quiz .sub b { color: var(--ink); }
.play .word { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.05em; margin-top: auto; padding-top: 18px; color: var(--ink); }
.play-link { margin-top: 14px; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); min-height: 32px; }
.play-link:hover { text-decoration: underline; }
.balls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; }
.balls i { font-style: normal; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; background: var(--card-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; transition: transform .45s var(--ease); }
.balls i.y { background: #FFD23F; color: #111; border-color: transparent; } .balls i.b { background: #5EA8FF; color: #fff; border-color: transparent; }
.balls i.r { background: #FF6B5E; color: #fff; border-color: transparent; } .balls i.g { background: #2A2A2A; color: #fff; border-color: transparent; } .balls i.e { background: #8ED16B; color: #111; border-color: transparent; }
.balls i.pop { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.4) rotate(-90deg); } 100% { transform: none; } }

/* ---------- 블로그 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-height: 220px; transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.post-card[hidden] { display: none; }
.post-cat { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--lime); color: #111; }
.post-title { font-size: 20px; font-weight: 760; letter-spacing: -0.04em; line-height: 1.35; }
.post-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: auto; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.post-wrap { max-width: 860px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 40px; }
@media (max-width: 600px) { .post { padding: 22px; border-radius: 24px; } }
.post-head h1 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -0.055em; line-height: 1.15; margin: 16px 0 12px; }
.post-head .post-meta { margin: 14px 0 0; }
.post-calcs { display: grid; gap: 8px; margin: 28px 0 0; }
.post-calcs a { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--card-2); text-decoration: none; transition: background .2s; }
.post-calcs a:hover { background: color-mix(in srgb, var(--lime) 30%, var(--card)); }
.post-calcs span:nth-child(2) { flex: 1; display: grid; }
.post-calcs small { color: var(--ink-2); font-size: 13px; }
.toc { margin: 28px 0 0; padding: 20px 24px; border-radius: 20px; border: 1px solid var(--line); }
.toc ol { margin: 10px 0 0; padding-left: 20px; } .toc li { margin: 4px 0; } .toc a { color: var(--ink-2); text-decoration: none; } .toc a:hover { color: var(--ink); }
.post-body { margin-top: 32px; }
.post-body h2 { scroll-margin-top: 100px; }
.post-body img { max-width: 100%; height: auto; border-radius: 18px; }
.post-body blockquote { margin: 18px 0; padding: 16px 20px; border-left: 4px solid var(--lime); background: var(--card-2); border-radius: 0 14px 14px 0; }
.post-body blockquote p { margin: 0; color: var(--ink); }
.post-body pre { background: var(--card-2); color: var(--ink); padding: 16px; border-radius: 14px; overflow-x: auto; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; }
.tags span { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--card-2); padding: 6px 12px; border-radius: 999px; }
.post-note { margin: 24px 0 0; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- 계산기 페이지 ---------- */
.page { padding: 28px 20px 72px; }
@media (min-width: 900px) { .page { padding: 36px 40px 96px; } }
.narrow { max-width: 820px; }
.center { text-align: center; padding-top: 90px; }
.crumbs { font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; font-weight: 600; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(28px, 4.2vw, 46px); letter-spacing: -0.05em; line-height: 1.12; margin: 4px 0 8px; font-weight: 760; }
.lead { margin: 0; color: var(--ink-2); font-size: 16.5px; max-width: 40rem; }
.lead b { color: var(--ink); }
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: minmax(0, 1fr); } }
.calc-card { background: var(--card); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow-lift); padding: 28px; }
@media (max-width: 600px) { .calc-card { padding: 20px; border-radius: 24px; } }
.calc-form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; align-content: start; }
.field > label, .field > .label { font-weight: 700; font-size: 14px; color: var(--ink); letter-spacing: -0.01em; }
.field small { color: var(--ink-3); font-size: 13px; }
.input { position: relative; display: flex; align-items: center; }
.input input, .field select, .field input[type=date] {
  width: 100%; height: 54px; border-radius: 16px; border: 1.5px solid transparent; background: var(--card-2);
  color: var(--ink); padding: 0 16px; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; transition: border-color .2s, background .2s;
}
.input input:focus, .field select:focus, .field input:focus { outline: none; border-color: var(--ink); background: var(--card); }
.input .unit { position: absolute; right: 16px; color: var(--ink-3); font-weight: 700; pointer-events: none; }
.input input.has-unit { padding-right: 54px; text-align: right; font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--ink-2); font-weight: 600; min-height: 1em; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }

.result { margin-top: 24px; }
.js .result:not([hidden]) { animation: rise .6s var(--ease); }
.result-main { border-radius: 24px; padding: 24px; background: linear-gradient(150deg, #FFE6EF, #FFF5F8 70%); border: 1px solid rgba(220,80,130,.18); color: var(--ink); text-align: left; position: relative; overflow: hidden; }
.result-main::before { content: ''; position: absolute; inset: 0; background: none; pointer-events: none; }
.result-main .k { font-size: 14px; color: var(--ink-2); font-weight: 600; position: relative; }
.result-main .v { font-size: clamp(34px, 6vw, 52px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; margin: 6px 0; color: var(--ink); font-variant-numeric: tabular-nums; position: relative; }
.result-main .s { font-size: 14px; color: var(--ink-2); position: relative; }
.result table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.result th, .result td { padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; color: var(--ink-2); }
.result td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.result tr.total th, .result tr.total td { font-weight: 800; color: var(--ink); border-bottom: 0; font-size: 16px; }
.result .note { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; }
.result .warn { background: color-mix(in srgb, var(--lime) 32%, var(--card)); color: #111; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-top: 12px; }
.table-scroll { overflow-x: auto; }
.result .sched th, .result .sched td { text-align: right; font-size: 13px; white-space: nowrap; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.side-box strong { font-size: 15px; }
.basis { margin: 12px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.basis li { margin: 5px 0; }
.updated { font-size: 12px; color: var(--ink-3); margin: 14px 0 0; font-weight: 600; }

.content { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 34px; }
@media (max-width: 600px) { .content { padding: 22px; border-radius: 24px; } }
.prose h2 { font-size: 24px; letter-spacing: -0.04em; margin: 34px 0 12px; line-height: 1.25; }
.prose section:first-child h2, .prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; letter-spacing: -0.03em; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 16px; color: var(--ink-2); }
.prose b, .prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.prose .table-scroll { margin: 14px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 11px 10px; text-align: left; color: var(--ink-2); }
.prose thead th { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); }
.formula { background: var(--night); color: var(--ink); border: 1px solid rgba(220,80,130,.18); border-radius: 16px; padding: 16px 18px; font-weight: 700; margin: 14px 0; font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }
.sources { font-size: 14px; }
.info { background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 34px; }
@media (max-width: 600px) { .info { padding: 22px; } }
.info h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.05em; margin-top: 0; }
.related { margin-top: 48px; }
.related h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.04em; margin: 0 0 18px; }
.ad-slot { margin: 24px 0; min-height: 100px; }

/* ---------- 푸터 ---------- */
.site-footer { padding: 56px 0 40px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.footer-grid strong { color: var(--ink); }
.footer-brand { font-size: 20px; letter-spacing: -0.04em; }
.footer-grid ul { list-style: none; padding: 0; margin: 10px 0 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.disclaimer { margin: 30px 0 6px; font-size: 13px; color: var(--ink-3); }
.copy { margin: 0; font-size: 13px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .hero .rise { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee-track { transform: none !important; }
}

/* 이 사이트의 분야 타일 색 */
.tile.money { background: #FFE2D1; }
.tile.leave { background: #E7F5C6; }
.tile.date { background: #DCE7FF; }
.tile.cost { background: #F1E2FF; }
.mini-date { margin-top: 16px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); padding: 0 14px; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); max-width: 220px; }
.slot-input input[type=month] { font-size: clamp(24px, 2.6vw, 32px); color-scheme: light; }
/* 진한 카드 안 선택된 칩, 좁은 카드의 큰 숫자 */
.play.dark .mini-chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.bento .play:not(.span2) .big-num { font-size: clamp(40px, 4vw, 60px); white-space: nowrap; }
