/*
Theme Name: ZipFit (집핏)
Theme URI: https://zippit.co.kr
Author: ZipFit
Author URI: https://zippit.co.kr
Description: 집핏(ZipFit) 부동산·대출 정보 플랫폼 메인 테마. 검정(#111111) + 브라이트 골드(#F5C842) 디자인, 모바일 반응형.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zipfit
*/

/* =========================================================
   집핏 ZipFit — Black & Gold Theme
   ---------------------------------------------------------
   Palette
     --bg        #111111  기본 검정 배경
     --gold      #F5C842  브라이트 골드 (포인트)
   ========================================================= */

:root {
  --bg: #111111;
  --bg-2: #181818;
  --bg-3: #1f1f1f;
  --line: #2c2c2c;
  --gold: #F5C842;
  --gold-soft: #f7d572;
  --gold-deep: #c9a227;
  --text: #f4f4f4;
  --text-dim: #b9b9b9;
  --text-mute: #8a8a8a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --shadow-gold: 0 14px 40px rgba(245, 200, 66, .18);
  --max: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, select { font-family: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.gold { color: var(--gold); }

/* Section heading */
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.sec-head p { color: var(--text-dim); margin-top: 12px; font-size: 16px; }

.section { padding: clamp(56px, 9vw, 100px) 0; }
.section--alt { background: var(--bg-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #1a1400; box-shadow: var(--shadow-gold); }
.btn--gold:hover { transform: translateY(-2px); background: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--block { width: 100%; }

/* =====================  HEADER  ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17, 17, 17, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: grid; place-items: center; color: #1a1400; font-size: 16px; font-weight: 900;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--text-dim); font-size: 15px; font-weight: 600; transition: color .2s; }
.nav a:hover { color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; color: var(--text); font-size: 26px; line-height: 1; }

/* =====================  HERO  ===================== */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 90px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(900px 480px at 82% -8%, rgba(245, 200, 66, .16), transparent 60%),
    radial-gradient(700px 520px at -5% 30%, rgba(245, 200, 66, .07), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--gold); background: rgba(245, 200, 66, .06);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); font-weight: 900; line-height: 1.12; letter-spacing: -.03em; }
.hero h1 .gold { display: inline; }
.hero p.lead { margin-top: 20px; font-size: clamp(16px, 2vw, 19px); color: var(--text-dim); max-width: 520px; }
.hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 26px; font-weight: 800; color: var(--gold); }
.hero-stats .stat span { font-size: 13px; color: var(--text-mute); }

/* Calculator card */
.calc {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: relative;
}
.calc::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(160deg, rgba(245, 200, 66, .5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.calc h3 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.calc h3 .tag { font-size: 11px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 6px; padding: 2px 7px; }
.calc .field { margin-top: 16px; }
.calc label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; font-weight: 600; }
.calc .input-row { display: flex; align-items: center; gap: 8px; }
.calc input[type="number"], .calc select {
  width: 100%; background: #141414; border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; font-weight: 600;
  transition: border-color .2s;
}
.calc input:focus, .calc select:focus { outline: none; border-color: var(--gold); }
.calc .unit { font-size: 14px; color: var(--text-mute); white-space: nowrap; }
.calc .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-result {
  margin-top: 20px; padding: 18px; border-radius: var(--radius-sm);
  background: radial-gradient(120% 140% at 100% 0, rgba(245, 200, 66, .14), transparent 55%), #141008;
  border: 1px solid rgba(245, 200, 66, .35);
}
.calc-result .label { font-size: 13px; color: var(--text-dim); }
.calc-result .amount { font-size: 32px; font-weight: 900; color: var(--gold); letter-spacing: -.02em; line-height: 1.2; }
.calc-result .sub { font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.calc .disclaimer { font-size: 11px; color: var(--text-mute); margin-top: 12px; line-height: 1.5; }
.calc #calcBtn { margin-top: 18px; }
.calc-result .result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.calc-result .rb { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.calc-result .rb-label { font-size: 12px; color: var(--text-mute); font-weight: 700; letter-spacing: .04em; }
.calc-result .rb-val { font-size: 21px; font-weight: 800; color: var(--text); line-height: 1.2; }
.calc-result .rb-val.warn { color: #ff6b6b; }
.calc-result .rb-val.ok { color: #51d88a; }
.calc-result .policy { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.calc-result .policy .pg { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--gold-deep); color: var(--gold); }
.calc-result .policy .pg.yes::before { content: "✓ "; }
.calc-result .policy .pg.no { border-color: var(--line); color: var(--text-mute); }
.calc-result .policy .pg.no::before { content: "✕ "; }

/* =====================  RATE STRIP (오늘의 금리)  ===================== */
.rates { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.rates .wrap { display: flex; align-items: center; gap: 18px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.rates .rates-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.rates .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 200, 66, .2); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.45} }
.rate-list { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.rate-item {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 18px; min-width: 150px; flex: 1;
}
.rate-item .name { font-size: 12px; color: var(--text-mute); }
.rate-item .val { font-size: 20px; font-weight: 800; }
.rate-item .delta { font-size: 12px; font-weight: 700; }
.rate-item .delta.up { color: #ff6b6b; }
.rate-item .delta.down { color: #51d88a; }
.rates .updated { font-size: 12px; color: var(--text-mute); white-space: nowrap; }

/* =====================  CONTENT CARDS (최신 콘텐츠)  ===================== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.content-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), border-color .3s; display: flex; flex-direction: column;
}
.content-card:hover { transform: translateY(-6px); border-color: var(--gold-deep); }
.content-card .thumb { aspect-ratio: 16/10; position: relative; background-size: cover; background-position: center; }
.content-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(17,17,17,.65)); }
.content-card .cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 12px; font-weight: 700; color: #1a1400; background: var(--gold);
  padding: 4px 10px; border-radius: 999px;
}
.content-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.content-card h3 { font-size: 18px; font-weight: 800; line-height: 1.4; }
.content-card p { font-size: 14px; color: var(--text-dim); flex: 1; }
.content-card .meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.content-card .read { color: var(--gold); font-weight: 700; font-size: 14px; }

/* =====================  TRENDS (실거래 동향)  ===================== */
.trends .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; }
.trends-copy h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.trends-copy p { color: var(--text-dim); margin-top: 14px; }
.trends-copy .pill-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.trends-copy .pill { font-size: 13px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 999px; padding: 7px 14px; }
.trend-panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.trend-panel .panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.trend-panel .panel-head h4 { font-size: 16px; font-weight: 800; }
.trend-panel .panel-head .badge { font-size: 12px; color: var(--gold); font-weight: 700; }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart .bar .col {
  width: 100%; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  position: relative; transition: height 1s var(--ease);
}
.chart .bar .col span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.chart .bar .lbl { font-size: 12px; color: var(--text-mute); }
.trend-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.trend-stats .ts { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.trend-stats .ts strong { display: block; font-size: 20px; font-weight: 800; color: var(--gold); }
.trend-stats .ts span { font-size: 12px; color: var(--text-mute); }

/* =====================  MEMBERSHIP BANNER  ===================== */
.membership .wrap {
  background:
    radial-gradient(700px 300px at 100% 0, rgba(245, 200, 66, .22), transparent 60%),
    linear-gradient(120deg, #1c1607, #141414);
  border: 1px solid var(--gold-deep); border-radius: 22px;
  padding: clamp(32px, 5vw, 56px); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center;
}
.membership .m-eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .14em; font-size: 13px; text-transform: uppercase; }
.membership h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin-top: 12px; line-height: 1.2; }
.membership p { color: var(--text-dim); margin-top: 14px; max-width: 520px; }
.membership .m-perks { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.membership .m-perks li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.membership .m-perks li::before { content: "✓"; color: var(--gold); font-weight: 900; }
.membership .m-cta { display: flex; flex-direction: column; gap: 12px; }
.membership .price { font-size: 15px; color: var(--text-dim); }
.membership .price b { color: var(--gold); font-size: 26px; font-weight: 900; }

/* =====================  FOOTER  ===================== */
.site-footer { background: #0c0c0c; border-top: 1px solid var(--line); padding: 56px 0 30px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer p.desc { color: var(--text-mute); font-size: 14px; max-width: 320px; }
.site-footer h5 { font-size: 14px; font-weight: 800; margin-bottom: 14px; color: var(--text); }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { color: var(--text-mute); font-size: 14px; transition: color .2s; }
.site-footer ul a:hover { color: var(--gold); }
.site-footer .bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--text-mute); font-size: 13px; }

/* =====================  무료 계산기 멤버십 유도 ===================== */
.rb-wide { margin-bottom: 14px; }
.calc-upsell {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px;
  border-radius: 12px; border: 1px solid var(--gold-deep);
  background: linear-gradient(120deg, rgba(245, 200, 66, .14), rgba(245, 200, 66, .03));
  transition: transform .2s var(--ease), box-shadow .2s;
}
.calc-upsell:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.calc-upsell .lock { font-size: 22px; line-height: 1; }
.calc-upsell .up-text { font-size: 13px; color: var(--text-dim); line-height: 1.45; }
.calc-upsell .up-text b { color: var(--gold); font-size: 14px; }

/* =====================  유료 상세 계산기 페이지  ===================== */
.pro { padding-top: clamp(40px, 6vw, 72px); }
.pro-head { margin-bottom: 30px; }
.pro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: start; }
.pro-form { position: sticky; top: 88px; }
.pro-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pro-form .field { margin-top: 14px; }

.pro-results { min-height: 200px; }
.elig-head { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.elig-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.elig-empty { grid-column: 1 / -1; color: var(--text-mute); font-size: 14px; padding: 18px; background: var(--bg-2); border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.elig-card {
  text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: transform .2s var(--ease), border-color .2s;
}
.elig-card.ok { cursor: pointer; }
.elig-card.ok:hover, .elig-card.ok.active { transform: translateY(-3px); border-color: var(--gold); }
.elig-card.ok.active { box-shadow: var(--shadow-gold); }
.elig-card.no { opacity: .72; }
.ec-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ec-name { font-size: 16px; font-weight: 800; }
.ec-badge { font-size: 12px; font-weight: 800; color: #1a1400; background: var(--gold); padding: 3px 9px; border-radius: 999px; }
.ec-badge.no { color: var(--text-mute); background: transparent; border: 1px solid var(--line); }
.ec-desc { font-size: 13px; color: var(--text-dim); }
.ec-meta { font-size: 12px; color: var(--text-mute); }
.ec-cta { font-size: 13px; font-weight: 700; color: var(--gold); margin-top: 2px; }
.ec-reasons { font-size: 12px; color: var(--text-mute); display: flex; flex-direction: column; gap: 4px; }
.ec-reasons li { display: flex; gap: 6px; }
.ec-reasons li::before { content: "✕"; color: #ff6b6b; }

/* 상세 패널 */
.pro-detail { margin-top: 18px; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.pd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pd-head h3 { font-size: 19px; font-weight: 800; }
.pd-head p { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.pd-rate { font-size: 13px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.pd-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.pd-k { background: #141008; border: 1px solid rgba(245, 200, 66, .3); border-radius: 12px; padding: 12px 14px; }
.pd-k span { font-size: 12px; color: var(--text-dim); }
.pd-k strong { display: block; font-size: 20px; font-weight: 900; color: var(--gold); margin-top: 2px; }
.pd-controls .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-controls .field { margin-top: 12px; }
.pd-amount-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.pd-amount-head label { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.pd-amount-head .amt { font-size: 19px; font-weight: 900; color: var(--gold); }
input[type="range"].pd-slider {
  width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep)); outline: none; cursor: pointer;
}
input[type="range"].pd-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); border: 4px solid #1a1400; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
input[type="range"].pd-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 4px solid #1a1400; cursor: pointer;
}
.pd-slider-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-mute); margin-top: 7px; }
.pd-rate-auto { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #141008; border: 1px solid rgba(245, 200, 66, .3); font-size: 14px; color: var(--text-dim); }
.pd-rate-auto b { color: var(--gold); font-size: 18px; }
.pd-rate-auto span { font-size: 12px; color: var(--text-mute); }
.pd-note { margin: 12px 0 4px; font-size: 12px; color: var(--text-mute); line-height: 1.5; }
.pd-note b { color: var(--gold); font-weight: 800; }
.pd-disclaimer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-mute); line-height: 1.6; }
.pd-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.pd-o { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.pd-o span { font-size: 11px; color: var(--text-mute); display: block; }
.pd-o strong { font-size: 15px; font-weight: 800; color: var(--text); display: block; margin-top: 4px; }
.pd-sched-head { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.sched-scroll { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
table.sched { width: 100%; border-collapse: collapse; font-size: 13px; }
table.sched th, table.sched td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.sched th:first-child, table.sched td:first-child { text-align: left; }
table.sched thead th { position: sticky; top: 0; background: var(--bg-3); color: var(--gold); font-weight: 700; z-index: 1; }
table.sched tbody tr:last-child td { border-bottom: none; }

/* 멤버십 잠금 화면 */
.pro-locked { display: grid; place-items: center; }
.lock-card { max-width: 560px; text-align: center; background: radial-gradient(600px 280px at 50% -10%, rgba(245, 200, 66, .16), transparent 60%), var(--bg-2); border: 1px solid var(--gold-deep); border-radius: 22px; padding: clamp(30px, 5vw, 50px); }
.lock-ico { font-size: 42px; margin-bottom: 10px; }
.lock-card h2 { font-size: clamp(22px, 4vw, 30px); font-weight: 900; margin-top: 6px; }
.lock-card p { color: var(--text-dim); margin-top: 14px; font-size: 15px; }
.lock-perks { display: inline-flex; flex-direction: column; gap: 8px; margin: 22px 0; text-align: left; }
.lock-perks li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.lock-perks li::before { content: "✓"; color: var(--gold); font-weight: 900; }
.lock-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =====================  신뢰 지표  ===================== */
.section--tight { padding: clamp(20px, 3vw, 32px) 0; }
.trust { padding: clamp(30px, 5vw, 50px) 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-item { text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px 16px; }
.trust-item strong { display: block; font-size: clamp(24px, 4vw, 32px); font-weight: 900; color: var(--gold); }
.trust-item span { font-size: 13px; color: var(--text-mute); }

/* =====================  정책대출 자격 진단 배너  ===================== */
.diagnose-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: radial-gradient(600px 200px at 0 0, rgba(245, 200, 66, .18), transparent 60%), linear-gradient(120deg, #1c1607, #141414);
  border: 1px solid var(--gold-deep); border-radius: 18px; padding: 22px 28px;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.diagnose-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.db-left { display: flex; align-items: center; gap: 14px; }
.db-ico { font-size: 30px; line-height: 1; }
.db-left b { font-size: 18px; font-weight: 800; }
.db-left span { font-size: 13px; color: var(--text-dim); }
.db-cta { font-weight: 800; color: var(--gold); white-space: nowrap; }

/* =====================  프리미엄 콘텐츠 (블러+잠금)  ===================== */
.premium-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.premium-card .cat { align-self: flex-start; font-size: 12px; font-weight: 700; color: #1a1400; background: var(--gold); padding: 3px 10px; border-radius: 999px; }
.premium-card h3 { font-size: 18px; font-weight: 800; line-height: 1.4; }
.premium-card .lead-para { font-size: 14px; color: var(--text-dim); }
.premium-more { position: relative; margin-top: 6px; min-height: 92px; }
.blur-lines { display: flex; flex-direction: column; gap: 9px; filter: blur(4px); opacity: .5; user-select: none; }
.blur-lines span { height: 11px; border-radius: 6px; background: linear-gradient(90deg, #3a3a3a, #2a2a2a); }
.blur-lines span:nth-child(2) { width: 92%; }
.blur-lines span:nth-child(3) { width: 97%; }
.blur-lines span:nth-child(4) { width: 76%; }
.content-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; border-radius: 10px; background: linear-gradient(180deg, rgba(24, 24, 24, .15), rgba(24, 24, 24, .92)); }
.content-lock .lk { font-size: 22px; }
.content-lock b { color: var(--gold); }
.content-lock div { font-size: 13px; color: var(--text-dim); }
.unlock-link { position: absolute; left: 0; bottom: 0; color: var(--gold); font-weight: 700; font-size: 14px; }

/* =====================  분양 일정  ===================== */
.bunyang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bunyang-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; transition: transform .25s var(--ease), border-color .25s; }
.bunyang-card:hover { transform: translateY(-5px); border-color: var(--gold-deep); }
.bc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bc-top h3 { font-size: 18px; font-weight: 800; }
.bc-type { font-size: 11px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.bc-region { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.bc-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.bc-rows > div { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; }
.bc-rows span { font-size: 12px; color: var(--text-mute); }
.bc-rows b { font-size: 14px; font-weight: 700; color: var(--gold); }
.bunyang-more { text-align: center; margin-top: 30px; }
.bunyang-note { font-size: 12px; color: var(--text-mute); margin-top: 12px; }

/* 분양 카테고리 아카이브 리스트 */
.bunyang-list { display: flex; flex-direction: column; gap: 12px; }
.bunyang-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.bunyang-row.locked { opacity: .85; }
.bunyang-row .br-main h3 { font-size: 17px; font-weight: 800; }
.bunyang-row .br-meta { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.bunyang-row .lock-line { font-size: 13px; color: var(--text-mute); margin-top: 6px; }

/* 잠금 콘텐츠(단일 글) */
.locked-content { text-align: center; background: radial-gradient(500px 220px at 50% -10%, rgba(245, 200, 66, .14), transparent 60%), var(--bg-2); border: 1px solid var(--gold-deep); border-radius: 18px; padding: clamp(28px, 5vw, 44px); margin: 20px 0; }
.locked-content .lock-ico { font-size: 38px; }
.locked-content h3 { font-size: 22px; font-weight: 900; margin-top: 8px; }
.locked-content p { color: var(--text-dim); margin-top: 12px; }

/* =====================  분양 리치 카드 / 전체 페이지  ===================== */
#bunyang, .by-page { background: #0d0d0d; }
.by-grid { display: grid; gap: 18px; }
.by-grid.cols4 { grid-template-columns: repeat(4, 1fr); }
.by-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.by-more { text-align: center; margin-top: 30px; }

.byc { background: #141414; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease), border-color .25s; }
.byc:hover { transform: translateY(-5px); border-color: var(--gold-deep); }
.byc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.byc-status { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.byc-status.s-open { background: var(--gold); color: #1a1400; }
.byc-status.s-soon { background: rgba(245, 200, 66, .14); color: var(--gold); border: 1px solid var(--gold-deep); }
.byc-status.s-closed { background: #2a2a2a; color: var(--text-mute); }
.byc-dday { font-size: 14px; font-weight: 900; color: var(--gold); }
.byc-rate { font-size: 12px; font-weight: 700; color: var(--text-dim); }
.byc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.byc-tag { font-size: 11px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 6px; padding: 2px 8px; }
.byc-name { font-size: 17px; font-weight: 800; line-height: 1.35; }
.byc-loc { font-size: 12px; color: var(--text-dim); }
.byc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.byc-meta > div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.byc-meta span { font-size: 11px; color: var(--text-mute); display: block; }
.byc-meta b { font-size: 14px; font-weight: 800; color: var(--gold); }
.byc-sched { display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.byc-sched li { display: flex; justify-content: space-between; font-size: 13px; border-top: 1px dashed var(--line); padding-top: 7px; }
.byc-sched li span { color: var(--text-mute); }
.byc-sched li b { color: var(--text); font-weight: 700; }
.byc-move { font-size: 12px; color: var(--text-dim); }
.byc-move b { color: var(--gold); }
.byc-diag { margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 10px; font-size: 13px; font-weight: 700; text-align: center; transition: transform .2s; }
.byc-diag:hover { transform: translateY(-1px); }
.byc-diag.locked { background: linear-gradient(120deg, rgba(245, 200, 66, .12), rgba(245, 200, 66, .03)); border: 1px solid var(--gold-deep); color: var(--gold); }
.byc-diag:not(.locked) { background: var(--gold); color: #1a1400; }
.byc-diag em { font-style: normal; font-size: 11px; color: var(--text-mute); }
.byc-diag .lk { font-size: 14px; }
.byc-source { margin-top: 2px; font-size: 11px; color: var(--text-mute); text-align: right; }
.byc.is-link { cursor: pointer; color: inherit; text-decoration: none; }
.byc-more-link { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--gold); }

/* 분양단지 상세 페이지 */
.byd-wrap { max-width: 820px; }
.byd-back { display: inline-block; font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.byd-back:hover { color: var(--gold); }
.byd-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.byd-title { font-size: clamp(24px, 4vw, 34px); font-weight: 900; line-height: 1.25; margin-top: 12px; }
.byd-loc { font-size: 14px; color: var(--text-dim); margin-top: 8px; }
.byd-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0; }
.byd-facts > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.byd-facts span { font-size: 12px; color: var(--text-mute); display: block; }
.byd-facts b { font-size: 16px; font-weight: 800; color: var(--gold); margin-top: 4px; display: block; }
.byd-body { font-size: 16px; line-height: 1.8; color: var(--text); padding: 8px 0 10px; }
.byd-body p { margin-bottom: 16px; }
.byd-body h2, .byd-body h3 { font-weight: 800; margin: 28px 0 12px; }
.byd-body img { border-radius: 12px; margin: 14px 0; }
.byd-body ul, .byd-body ol { margin: 0 0 16px 20px; }
.byd-body li { margin-bottom: 8px; }
.byd-empty { color: var(--text-mute); }
/* 단지 상세 본문 — 섹션/표 */
.byd-body .danji-article h2 { font-size: 20px; font-weight: 800; color: var(--gold); margin: 34px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.byd-body .danji-article > h2:first-child { border-top: none; padding-top: 0; margin-top: 6px; }
.byd-body table { width: 100%; border-collapse: collapse; margin: 8px 0 10px; font-size: 14px; }
.byd-body th, .byd-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.byd-body thead th { background: var(--bg-3); color: var(--gold); font-weight: 700; text-align: center; }
.byd-body th[scope="row"] { background: var(--bg-2); color: var(--text); font-weight: 700; white-space: nowrap; }
.byd-body td { color: var(--text-dim); }
.byd-body .danji-note { font-size: 12px; color: var(--text-mute); margin: 4px 0 0; line-height: 1.6; }
.byd-body .danji-lead { color: var(--text-dim); }
@media (max-width: 720px) { .byd-body table { font-size: 13px; } .byd-body th, .byd-body td { padding: 8px 9px; } }

/* 스토리 컴포넌트 (구조) */
.byd-body .danji-flow { font-size: 15px; line-height: 1.8; margin: 20px 0 6px; }
.byd-body .danji-good { list-style: none; margin: 8px 0 4px; padding: 0; }
.byd-body .danji-good li { position: relative; padding: 11px 0 11px 30px; }
.byd-body .danji-good li::before { content: "✓"; position: absolute; left: 3px; color: var(--gold-deep); font-weight: 900; }
.byd-body .danji-hook { border-radius: 14px; padding: 22px 24px; margin: 4px 0 28px; }
.byd-body .danji-cta-lead { border-radius: 14px; padding: 22px 24px; margin: 26px 0 10px; text-align: center; }
.byd-body .danji-cta-lead b { display: block; font-size: 18px; margin-bottom: 6px; }
.byd-body .danji-map { margin: 12px 0 6px; }
.byd-body .danji-map iframe { width: 100%; height: 330px; border: 0; border-radius: 12px; display: block; }

/* ===== 분양 상세 페이지: 라이트 테마 (#f8f8f8 / #1a1a1a, 골드 유지) ===== */
body.single-danji .by-page { background: #f8f8f8; color: #1a1a1a; }
body.single-danji .byd-title { color: #1a1a1a; }
body.single-danji .byd-loc { color: #555; }
body.single-danji .byd-back { color: #666; }
body.single-danji .byd-back:hover { color: var(--gold-deep); }
body.single-danji .byd-facts > div { background: #fff; border-color: #e5e5e5; }
body.single-danji .byd-facts span { color: #888; }
body.single-danji .byd-facts b { color: var(--gold-deep); }
body.single-danji .byc-status.s-open { background: var(--gold); color: #1a1400; }
body.single-danji .byc-status.s-soon { background: rgba(201, 162, 39, .12); color: var(--gold-deep); border-color: var(--gold-deep); }
body.single-danji .byc-status.s-closed { background: #e6e6e6; color: #777; }
body.single-danji .byc-dday { color: var(--gold-deep); }
body.single-danji .byc-tag { color: var(--gold-deep); border-color: var(--gold-deep); }
body.single-danji .byd-body { color: #1a1a1a; }
body.single-danji .byd-body .danji-article h2 { color: var(--gold-deep); border-top-color: #e5e5e5; }
body.single-danji .byd-body table { background: #fff; }
body.single-danji .byd-body th, body.single-danji .byd-body td { border-color: #e5e5e5; }
body.single-danji .byd-body thead th { background: #1a1a1a; color: var(--gold); }
body.single-danji .byd-body th[scope="row"] { background: #f1f1f1; color: #1a1a1a; }
body.single-danji .byd-body td { color: #333; }
body.single-danji .byd-body .danji-note { color: #999; }
body.single-danji .byd-body .danji-lead { color: #444; }
body.single-danji .byd-body ul li { color: #1a1a1a; }
body.single-danji .danji-hook { background: #fff; border: 1px solid #ececec; border-left: 4px solid var(--gold); }
body.single-danji .danji-hook h2 { color: #1a1a1a !important; border: none !important; padding: 0 !important; margin: 0 0 8px !important; font-size: 22px; }
body.single-danji .danji-hook p { color: #444; margin: 0; font-size: 15px; line-height: 1.8; }
body.single-danji .danji-flow { color: #555; }
body.single-danji .danji-good li { border-bottom: 1px solid #ececec; color: #1a1a1a; }
body.single-danji .danji-cta-lead { background: linear-gradient(120deg, rgba(245, 200, 66, .18), rgba(245, 200, 66, .04)); border: 1px solid var(--gold-deep); }
body.single-danji .danji-cta-lead b { color: #1a1a1a; }
body.single-danji .danji-cta-lead span { color: #555; font-size: 14px; }
body.single-danji .byd-diag.locked { background: linear-gradient(120deg, rgba(245, 200, 66, .18), rgba(245, 200, 66, .05)); border-color: var(--gold-deep); color: var(--gold-deep); }
body.single-danji .byd-diag em { color: #888; }
body.single-danji .byd-source { color: #999; }
.byd-diag-wrap { margin-top: 28px; }
.byd-diag { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px; border-radius: 14px; font-size: 16px; font-weight: 800; text-align: center; }
.byd-diag:not(.locked) { background: var(--gold); color: #1a1400; box-shadow: var(--shadow-gold); }
.byd-diag.locked { background: linear-gradient(120deg, rgba(245, 200, 66, .14), rgba(245, 200, 66, .04)); border: 1px solid var(--gold-deep); color: var(--gold); }
.byd-diag em { font-style: normal; font-size: 12px; color: var(--text-mute); font-weight: 600; }
.byd-diag .lk { font-size: 18px; }
.byd-source { margin-top: 16px; font-size: 12px; color: var(--text-mute); text-align: right; }

/* 필터바 */
.by-filter { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.bf-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bf-label { font-size: 12px; color: var(--text-mute); font-weight: 700; margin-right: 2px; }
.bf-chip { background: var(--bg-2); border: 1px solid var(--line); color: var(--text-dim); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.bf-chip:hover { border-color: var(--gold-deep); color: var(--gold); }
.bf-chip.active { background: var(--gold); border-color: var(--gold); color: #1a1400; font-weight: 800; }
.by-empty { text-align: center; color: var(--text-mute); padding: 34px; }

/* 하단 멤버십 유도 */
.by-cta { margin-top: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: radial-gradient(600px 220px at 100% 0, rgba(245, 200, 66, .18), transparent 60%), linear-gradient(120deg, #1c1607, #141414);
  border: 1px solid var(--gold-deep); border-radius: 18px; padding: 28px; }
.by-cta h3 { font-size: 22px; font-weight: 800; margin-top: 8px; }
.by-cta p { color: var(--text-dim); margin-top: 8px; max-width: 540px; }

/* =====================  멤버십 얼리버드  ===================== */
.membership .save-badge { display: inline-block; margin-top: 16px; background: var(--gold); color: #1a1400; font-weight: 800; font-size: 14px; padding: 7px 14px; border-radius: 999px; }
.membership .price small { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.membership .price s { color: var(--text-mute); font-size: 15px; font-weight: 600; }
.membership .m-note { font-size: 12px; color: var(--text-mute); text-align: center; line-height: 1.5; }

/* =====================  RESPONSIVE  ===================== */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .calc { max-width: 520px; }
  .trends .wrap { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .membership .wrap { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .pro-grid { grid-template-columns: 1fr; }
  .pro-form { position: static; }
  .bunyang-grid { grid-template-columns: 1fr 1fr; }
  .by-grid.cols4, .by-grid.cols3 { grid-template-columns: repeat(2, 1fr); }
  .byd-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav, .header-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 0;
  }
  .nav.open a { padding: 14px 22px; width: 100%; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .rates .wrap { flex-direction: column; align-items: stretch; }
  .calc .grid-2 { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .trend-stats { grid-template-columns: 1fr; }
  .elig-cards { grid-template-columns: 1fr; }
  .pd-keys { grid-template-columns: 1fr; }
  .pd-out { grid-template-columns: 1fr; }
  .pro-form .grid-2, .pd-controls .grid-2 { grid-template-columns: 1fr; }
  table.sched th, table.sched td { padding: 8px 9px; }
  .bunyang-grid { grid-template-columns: 1fr; }
  .bunyang-row { flex-direction: column; align-items: flex-start; }
  .trust-grid { gap: 10px; }
  .diagnose-banner { padding: 20px; }
  .by-grid.cols4, .by-grid.cols3 { grid-template-columns: 1fr; }
  .by-cta { padding: 22px; }
}
