/* ===== 안양 에버포레 자연& e편한세상 (A2BL) — 디자인 시스템 ===== */
:root {
  --forest-900: #14342a;
  --forest-700: #1f6b4d;
  --forest-600: #2e8b63;
  --forest-500: #3aa376;
  --forest-100: #e7f3ec;
  --forest-50: #f3f9f5;
  --gold: #c79a3e;
  --gold-soft: #f6ecd4;
  --ink: #1c2420;
  --gray-700: #45514b;
  --gray-500: #788079;
  --gray-300: #cfd6d1;
  --gray-100: #eef1ef;
  --bg: #f7faf8;
  --white: #ffffff;
  --danger: #c0392b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(20, 52, 42, 0.08);
  --shadow-lg: 0 14px 44px rgba(20, 52, 42, 0.14);
  --maxw: 1080px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: var(--forest-700); text-decoration: none; }
img { max-width: 100%; display: block; }
section { scroll-margin-top: 76px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== Header / Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.02rem; color: var(--forest-900); white-space: nowrap; }
.brand .leaf { font-size: 1.25rem; }
.brand small { display: block; font-weight: 600; font-size: 0.68rem; color: var(--gold); letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 13px; border-radius: 999px; font-size: 0.92rem; font-weight: 600;
  color: var(--gray-700); transition: 0.18s;
}
.nav-links a:hover, .nav-links a.active { background: var(--forest-100); color: var(--forest-700); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--forest-700); }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--forest-900), var(--forest-600) 70%, var(--forest-500));
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,0.14), transparent 45%);
}
.hero-inner { position: relative; z-index: 1; padding: 64px 0 72px; }
.hero .tag {
  display: inline-block; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
.hero h1 .accent { color: var(--gold-soft); }
.hero p.sub { margin-top: 14px; font-size: 1.05rem; opacity: 0.92; }
.hero-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 0.95rem; }
.hero-meta div { display: flex; align-items: center; gap: 7px; }
.hero-meta span.k { opacity: 0.7; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.96rem;
  border: 0; transition: 0.18s; text-decoration: none;
}
.btn-primary { background: var(--gold); color: #3a2c06; }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.24); }

/* Countdown */
.countdown { margin-top: 34px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius); padding: 18px 22px; display: inline-flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.countdown .label { font-size: 0.86rem; opacity: 0.85; }
.countdown .next { font-weight: 700; }
.countdown .dday { font-size: 2rem; font-weight: 800; color: var(--gold-soft); line-height: 1; }
.countdown .dday small { font-size: 0.95rem; }

/* ===== Sections ===== */
.sec { padding: 64px 0; }
.sec.alt { background: var(--forest-50); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .eyebrow { color: var(--forest-600); font-weight: 700; font-size: 0.88rem; letter-spacing: 1px; }
.sec-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; margin-top: 8px; color: var(--forest-900); }
.sec-head p { color: var(--gray-500); margin-top: 10px; }

/* Cards grid */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.05rem; color: var(--forest-900); margin-bottom: 6px; }
.card .big { font-size: 1.7rem; font-weight: 800; color: var(--forest-700); }
.card .muted { color: var(--gray-500); font-size: 0.9rem; }
.icon-badge { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: var(--forest-100); margin-bottom: 12px; }

/* Info table */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.info-table th, .info-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--gray-100); font-size: 0.95rem; vertical-align: top; }
.info-table th { background: var(--forest-50); color: var(--forest-900); font-weight: 700; width: 30%; white-space: nowrap; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 14px; top: 6px; bottom: 6px; width: 2px; background: var(--gray-300); }
.tl-item { position: relative; padding: 0 0 26px 46px; }
.tl-item .dot { position: absolute; left: 6px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--gray-300); }
.tl-item.done .dot { border-color: var(--forest-500); background: var(--forest-500); }
.tl-item.next .dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.tl-item .date { font-weight: 700; color: var(--forest-700); font-size: 0.92rem; }
.tl-item.next .date { color: var(--gold); }
.tl-item .ev { font-weight: 700; margin: 2px 0; }
.tl-item .nt { color: var(--gray-500); font-size: 0.88rem; }
.tl-item .badge-next { display: inline-block; margin-left: 8px; background: var(--gold); color: #3a2c06; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* ===== Calculator ===== */
.calc-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 7px; color: var(--gray-700); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; min-width: 56px; padding: 9px 8px; border: 1px solid var(--gray-300); background: #fff; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-size: 0.9rem; transition: 0.15s; color: var(--gray-700); }
.seg button:hover { border-color: var(--forest-500); }
.seg button.sel { background: var(--forest-700); border-color: var(--forest-700); color: #fff; }
select, input[type=number], input[type=text] { width: 100%; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit; background: #fff; }
.check-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.check-row input { width: 18px; height: 18px; accent-color: var(--forest-600); }
.check-row label { font-size: 0.92rem; cursor: pointer; }
.check-opt { display: flex; justify-content: space-between; gap: 10px; }
.check-opt .price { color: var(--forest-700); font-weight: 700; white-space: nowrap; }

.result-total { background: linear-gradient(135deg, var(--forest-700), var(--forest-500)); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.result-total .lbl { opacity: 0.85; font-size: 0.9rem; }
.result-total .amt { font-size: 2.1rem; font-weight: 800; line-height: 1.2; }
.result-total .brk { margin-top: 10px; font-size: 0.86rem; opacity: 0.9; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pay-table th, .pay-table td { padding: 9px 10px; border-bottom: 1px solid var(--gray-100); text-align: right; }
.pay-table th:first-child, .pay-table td:first-child { text-align: left; }
.pay-table th { background: var(--forest-50); color: var(--forest-900); font-weight: 700; }
.pay-table .stage { font-weight: 700; color: var(--forest-700); }
.pay-table tr.sum td { font-weight: 800; background: var(--gold-soft); }

/* ===== Eligibility wizard ===== */
.wizard { max-width: 640px; margin: 0 auto; }
.wz-progress { height: 6px; background: var(--gray-100); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.wz-progress > div { height: 100%; background: var(--forest-500); transition: width 0.3s; }
.wz-q { font-size: 1.2rem; font-weight: 800; color: var(--forest-900); margin-bottom: 6px; }
.wz-help { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 18px; }
.wz-opts { display: grid; gap: 10px; }
.wz-opts button { text-align: left; padding: 15px 18px; border: 1px solid var(--gray-300); background: #fff; border-radius: var(--radius-sm); font-size: 0.98rem; font-weight: 600; cursor: pointer; transition: 0.15s; color: var(--ink); }
.wz-opts button:hover { border-color: var(--forest-500); background: var(--forest-50); transform: translateX(2px); }
.wz-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.wz-nav button { background: none; border: 0; color: var(--gray-500); cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.wz-nav button:hover { color: var(--forest-700); }
.result-box { border-radius: var(--radius); padding: 24px; margin-bottom: 14px; }
.result-box.ok { background: var(--forest-100); border: 1px solid var(--forest-500); }
.result-box.warn { background: #fdf3e3; border: 1px solid var(--gold); }
.result-box.no { background: #fbe9e7; border: 1px solid var(--danger); }
.result-box h3 { font-size: 1.2rem; margin-bottom: 8px; }
.result-list { margin-top: 14px; display: grid; gap: 8px; }
.result-list .ri { display: flex; gap: 9px; align-items: flex-start; font-size: 0.93rem; }
.result-list .ri .mk { font-weight: 800; }

/* ===== Chatbot ===== */
.chat-wrap { max-width: 820px; margin: 0 auto; }
.chat-box { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chat-status { padding: 10px 18px; background: var(--forest-50); font-size: 0.85rem; color: var(--gray-500); border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; gap: 8px; }
.chat-status .dot2 { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-300); }
.chat-status.ready .dot2 { background: var(--forest-500); }
.chat-log { min-height: 280px; max-height: 60vh; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 90%; }
.msg.user { align-self: flex-end; background: var(--forest-700); color: #fff; padding: 11px 16px; border-radius: 16px 16px 4px 16px; }
.msg.bot { align-self: flex-start; }
.msg.bot .bubble { background: var(--forest-50); border: 1px solid var(--gray-100); padding: 14px 16px; border-radius: 4px 16px 16px 16px; }
.msg.bot .src { margin-top: 10px; display: grid; gap: 8px; }
.src-item { background: #fff; border: 1px solid var(--gray-200); border-left: 3px solid var(--forest-500); border-radius: 8px; padding: 10px 13px; font-size: 0.88rem; }
.src-item .meta { font-size: 0.76rem; color: var(--gray-500); margin-bottom: 4px; display: flex; gap: 8px; }
.src-item .meta .cat { color: var(--forest-600); font-weight: 700; }
.src-item .score { margin-left: auto; }
.chat-input { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--gray-100); }
.chat-input input { flex: 1; }
.chat-input button { white-space: nowrap; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px; }
.suggest button { background: var(--forest-50); border: 1px solid var(--gray-200); color: var(--forest-700); padding: 7px 13px; border-radius: 999px; font-size: 0.84rem; cursor: pointer; font-weight: 600; }
.suggest button:hover { background: var(--forest-100); }
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 7px; height: 7px; background: var(--forest-500); border-radius: 50%; animation: blink 1.2s infinite both; }
.typing span:nth-child(2){animation-delay:.2s}.typing span:nth-child(3){animation-delay:.4s}
@keyframes blink { 0%,80%,100%{opacity:.2}40%{opacity:1} }

/* ===== Docs / FAQ ===== */
.doc-list { display: grid; gap: 12px; }
.doc-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow); }
.doc-item .di-ic { font-size: 1.5rem; }
.doc-item .di-t { font-weight: 700; }
.doc-item .di-m { color: var(--gray-500); font-size: 0.85rem; }
.doc-item a.dl { margin-left: auto; }
.faq-item { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-sm); margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden; }
.faq-q { padding: 16px 20px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .ar { transition: 0.2s; color: var(--forest-500); }
.faq-item.open .faq-q .ar { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s; padding: 0 20px; color: var(--gray-700); font-size: 0.93rem; }
.faq-item.open .faq-a { max-height: 600px; padding: 0 20px 18px; }

/* ===== Misc ===== */
.disclaimer { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.86rem; color: #5b4612; margin-top: 18px; }
.disclaimer strong { color: #3a2c06; }
footer { background: var(--forest-900); color: rgba(255,255,255,0.78); padding: 40px 0 30px; font-size: 0.88rem; }
footer .wrap { display: grid; gap: 8px; }
footer a { color: var(--forest-100); }
footer .ft-top { font-weight: 800; color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.transport-list { display: grid; gap: 14px; }
.tp { display: flex; gap: 14px; align-items: flex-start; }
.tp .tp-ic { font-size: 1.5rem; }
.tp .tp-t { font-weight: 700; }
.tp .tp-d { color: var(--gray-500); font-size: 0.9rem; }

/* ===== AdSense ===== */
.ad-wrap { margin: 26px auto; text-align: center; min-height: 0; }
.ad-wrap ins { margin: 0 auto; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px; border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .info-table th { width: 38%; }
}
