:root{
  --accent:#2563EB; --accent-soft:#E8F0FE;
  --orange:#C2410C; --orange-soft:#FFF1E6;
  --ink:#191F28; --ink2:#4E5968; --muted:#6B7684; --line:#E5E8EB;
  --bg:#F2F4F6; --card:#FFFFFF;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:"Pretendard","Noto Sans KR",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  line-height:1.6;word-break:keep-all}
a{color:inherit;text-decoration:none}
.wrap{max-width:640px;margin:0 auto}

/* header */
.top{position:sticky;top:0;z-index:10;background:var(--card);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;height:60px;padding:0 20px}
.logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:18px;letter-spacing:-.3px}
.logo i{width:28px;height:28px;border-radius:8px;background:var(--accent);display:flex;align-items:center;justify-content:center}
.nav{display:flex;gap:4px}
.nav a{font-size:14px;color:var(--ink2);padding:10px 10px;border-radius:8px}
.nav a:hover{background:var(--bg)}

/* blocks */
.hero{background:var(--card);padding:20px 20px 28px}
.hero h1{margin:0 0 6px;font-size:25px;line-height:1.4;font-weight:800;letter-spacing:-.5px}
.hero p{margin:0;color:var(--muted);font-size:15px}
.section{padding:20px}
.section h2{margin:0 0 12px;font-size:18px;font-weight:800}
.card{background:var(--card);border-radius:20px;padding:20px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tool{background:var(--card);border-radius:18px;padding:18px 16px;display:flex;flex-direction:column;gap:8px;min-height:116px;position:relative}
.tool b{font-size:15px}
.tool span{font-size:12px;color:var(--muted)}
.tool .ic{width:36px;height:36px;border-radius:10px;background:var(--accent-soft);display:flex;align-items:center;justify-content:center}
.tool .ic.o{background:var(--orange-soft)}
.tool.soon{opacity:.6}
.badge{position:absolute;top:14px;right:14px;font-size:11px;font-weight:700;color:var(--muted);background:var(--bg);padding:3px 8px;border-radius:6px}
.list a{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--bg);font-size:15px;font-weight:600}
.list a:last-child{border-bottom:none}
.list a small{display:block;font-size:12px;color:var(--muted);font-weight:400}
.ad-slot{margin:0 20px;min-height:100px;border-radius:16px;display:flex;align-items:center;justify-content:center}
.ad-slot:empty{display:none}

/* calculator */
.score{background:var(--card);padding:8px 20px 28px}
.score .lbl{font-size:14px;color:var(--muted)}
.score .num{display:flex;align-items:baseline;gap:6px;margin:4px 0 14px}
.score .num b{font-size:52px;font-weight:800;letter-spacing:-1px;color:var(--accent);line-height:1.1}
.score .num span{font-size:20px;font-weight:700;color:var(--ink2)}
.bar{height:10px;border-radius:5px;background:var(--line);overflow:hidden}
.bar i{display:block;height:100%;border-radius:5px;background:var(--accent);transition:width .25s}
.tip{margin-top:14px;font-size:14px;color:var(--ink2);background:var(--bg);border-radius:12px;padding:12px 14px}
.item{background:var(--card);border-radius:20px;padding:20px;margin-bottom:12px}
.item .head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.item .head b{font-size:16px}
.item .pt{font-size:13px;font-weight:700;color:var(--accent);background:var(--accent-soft);padding:4px 10px;border-radius:8px}
.stepper{display:flex;align-items:center;gap:12px}
.stepper button{width:48px;height:48px;border-radius:14px;border:none;background:var(--bg);font-size:22px;font-weight:700;color:var(--ink);cursor:pointer;font-family:inherit}
.stepper button:active{background:var(--line)}
.stepper output{flex:1;text-align:center;font-size:18px;font-weight:700}
.item .help{margin:12px 0 0;font-size:12px;color:var(--muted)}

/* article */
.article{background:var(--card);padding:24px 20px 32px}
.article h1{font-size:24px;line-height:1.4;margin:0 0 8px;letter-spacing:-.5px}
.article .meta{font-size:13px;color:var(--muted);margin-bottom:20px}
.article h2{font-size:19px;margin:32px 0 10px}
.article h3{font-size:16px;margin:20px 0 8px}
.article p,.article li{font-size:16px;color:#333D4B}
.article ul{padding-left:20px}
.tbl{width:100%;border-collapse:collapse;font-size:14px;margin:8px 0 4px}
.tbl th,.tbl td{border-bottom:1px solid var(--line);padding:9px 8px;text-align:left}
.tbl th{background:var(--bg);font-weight:700}
.tbl-box{overflow-x:auto}
.cta{display:flex;align-items:center;justify-content:center;height:56px;border-radius:16px;background:var(--accent);color:#fff;font-size:16px;font-weight:700;margin:20px 0 0}
.note{font-size:13px;color:var(--muted);background:var(--bg);border-radius:12px;padding:12px 14px}

/* footer */
.foot{padding:28px 20px 48px;font-size:12px;color:var(--muted);line-height:1.8}
.foot nav{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:10px}
.foot nav a{color:var(--ink2);font-weight:600}

/* form controls */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.field label{font-size:14px;font-weight:700;color:var(--ink2)}
.inbox{display:flex;align-items:center;background:var(--bg);border-radius:14px;padding:0 16px;height:54px}
.inbox input{flex:1;border:none;background:transparent;font:inherit;font-size:18px;font-weight:700;color:var(--ink);outline:none;min-width:0}
.inbox span{font-size:15px;color:var(--muted);margin-left:6px}
.seg{display:flex;gap:6px;flex-wrap:wrap}
.seg button{flex:1;min-width:90px;height:44px;border-radius:12px;border:1.5px solid var(--line);background:#fff;font:inherit;font-size:14px;font-weight:600;color:var(--ink2);cursor:pointer}
.seg button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.check{display:flex;align-items:center;gap:10px;font-size:15px;padding:10px 0;cursor:pointer}
.check input{width:20px;height:20px;accent-color:var(--accent)}
.rows{margin-top:16px;border-top:1px solid var(--line)}
.rows div{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--bg);font-size:15px}
.rows div span:first-child{color:var(--muted)}
.rows div b{font-weight:700}

/* 청약 일정 */
.apt-list{display:flex;flex-direction:column}
.apt{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--bg)}
.apt:last-child{border-bottom:none}
.apt[hidden]{display:none}
.dday{width:56px;height:56px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0}
.dday span{font-size:11px;font-weight:600}
.dday b{font-size:14px;font-weight:800}
.apt-txt{display:flex;flex-direction:column;min-width:0}
.apt-txt b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.apt-txt small{font-size:12px;color:var(--muted)}
.chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
.chips button{flex:0 0 auto;min-width:auto;padding:0 14px;height:38px;border-radius:19px}
.tbl.kv th{width:38%;background:transparent;color:var(--muted);font-weight:500}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tag{font-size:13px;font-weight:600;color:var(--orange);background:var(--orange-soft);padding:5px 10px;border-radius:8px}
.cta.ghost{background:var(--bg);color:var(--ink);margin-top:10px}
