/* ═══════════════════════════════════════
   TOKENS
═══════════════════════════════════════ */
:root {
  --bg:       #fafaf8;
  --white:    #ffffff;
  --ink:      #181714;
  --ink2:     #4a4840;
  --ink3:     #9a9488;
  --line:     #e8e4dc;
  --line2:    #d4cfc6;
  --fill:     #f4f0e8;
  --fill2:    #edeae2;
  --accent:   #1a5cff;
  --accent-l: #eef2ff;
  --gold:     #c88c00;
  --gold-l:   #fff8e6;
  --red:      #d42020;
  --red-l:    #fff0f0;
  --green:    #1a8c50;
  --green-l:  #edfaf3;
  --amber:    #c85800;
  --amber-l:  #fff4ec;
  --r:        8px;
  --r2:       12px;
  --r3:       16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: 52px;
  display: flex; align-items: center;
  padding: 0 20px; gap: 0;
  justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-brand img {
  height: 32px; width: auto;
}
.nav-badge {
  background: var(--accent); color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: 20px;
}

/* ═══════════════════════════════════════
   HERO — 감성 카피 중심
═══════════════════════════════════════ */
.hero {
  padding: 56px 20px 48px;
  max-width: 640px; margin: 0 auto;
  text-align: center;
  position: relative;
}

/* 배경 도트 패턴 */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 480px; height: 300px;
  background-image: radial-gradient(circle, var(--line2) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-l);
  border: 1px solid rgba(26,92,255,0.15);
  color: var(--accent);
  font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 24px;
  opacity: 0; animation: fu 0.5s 0.05s ease forwards;
}
.hero-chip::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
  font-family: 'Gmarket Sans', 'Noto Sans KR', sans-serif;
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  opacity: 0; animation: fu 0.55s 0.12s ease forwards;
}
.hero-title .hl {
  position: relative; display: inline;
}
.hero-title .hl::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 10px;
  background: rgba(26,92,255,0.12);
  border-radius: 2px;
  z-index: -1;
}
.hero-title .red { color: var(--red); }

.hero-sub {
  font-size: 16px; color: var(--ink2);
  line-height: 1.75; margin-bottom: 28px;
  opacity: 0; animation: fu 0.55s 0.2s ease forwards;
}
.hero-sub strong { color: var(--amber); font-weight: 700; }

/* 사회적 증거 */
.social-proof {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 10px 18px;
  font-size: 13px; color: var(--ink2);
  margin-bottom: 28px;
  opacity: 0; animation: fu 0.55s 0.28s ease forwards;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.avatars {
  display: flex;
}
.avatar {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--white);
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-left: -7px; flex-shrink: 0;
}
.avatar:first-child { margin-left: 0; }
.av1 { background: #ffd6cc; color: #c04000; }
.av2 { background: #d6e8ff; color: #0040c0; }
.av3 { background: #d6f0e0; color: #007030; }
.av4 { background: #f0d6ff; color: #700090; }

.hero-cta {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: fu 0.55s 0.35s ease forwards;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px; font-weight: 700;
  padding: 16px 36px; border-radius: var(--r2);
  border: none; cursor: pointer; text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(26,92,255,0.25);
  letter-spacing: -0.01em;
}
.cta-btn:hover { background: #1450e8; box-shadow: 0 6px 20px rgba(26,92,255,0.3); }
.cta-btn:active { transform: scale(0.98); }
.cta-btn svg { width: 18px; height: 18px; }
.cta-note {
  font-size: 12px; color: var(--ink3);
  display: flex; align-items: center; gap: 5px;
}
.cta-note::before {
  content: '🔒';
  font-size: 11px;
}

@keyframes fu {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   NUMBERS STRIP
═══════════════════════════════════════ */
.num-strip {
  background: var(--ink);
  padding: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.num-strip-inner {
  display: flex; gap: 0;
  min-width: max-content; margin: 0 auto;
  max-width: 640px;
}
.num-item {
  flex: 1; min-width: 140px;
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.num-item:last-child { border-right: none; }
.num-val {
  font-family: 'DM Mono', monospace;
  font-size: 24px; font-weight: 500;
  color: #ffffff; line-height: 1;
  margin-bottom: 5px;
}
.num-val span { color: rgba(255,255,255,0.4); font-size: 14px; }
.num-lbl {
  font-size: 11px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════
   CALCULATOR — 핵심 섹션
═══════════════════════════════════════ */
#calc {
  max-width: 640px; margin: 0 auto;
  padding: 48px 20px;
}

.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Gmarket Sans', 'Noto Sans KR', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--ink); margin-bottom: 24px;
  letter-spacing: -0.02em; line-height: 1.3;
}

/* 입력 카드 */
.inp-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 12px;
}
.inp-card-title {
  font-size: 12px; font-weight: 700;
  color: var(--ink3); letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field-label {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 7px;
}
.field-label > span { font-size: 13px; font-weight: 500; color: var(--ink2); }
.field-label .badge {
  font-family: 'DM Mono', monospace;
  font-size: 10px; color: var(--accent);
  background: var(--accent-l);
  padding: 2px 8px; border-radius: 10px;
}
.field-label .badge.opt {
  color: var(--ink3); background: var(--fill);
}
.field-note {
  font-size: 11px; color: var(--ink3);
  margin-top: 5px; line-height: 1.5;
}

input[type=date], input[type=number] {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--line2);
  border-radius: var(--r);
  padding: 11px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 15px; color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,92,255,0.1);
}
input::placeholder { color: var(--ink3); }

/* 이유 선택 */
.reason-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.reason-btn {
  position: relative;
  background: var(--bg); border: 1.5px solid var(--line2);
  border-radius: var(--r); padding: 11px 14px;
  font-size: 13px; color: var(--ink2);
  cursor: pointer; transition: all 0.15s;
  text-align: left; display: flex;
  align-items: center; gap: 8px;
}
.reason-btn input[type=radio] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.reason-btn .radio-ring {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--line2);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.reason-btn.selected {
  border-color: var(--accent);
  background: var(--accent-l);
  color: var(--accent);
}
.reason-btn.selected .radio-ring {
  border-color: var(--accent);
  background: var(--accent);
}
.reason-btn.selected .radio-ring::after {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
}
.reason-btn.ui-ok {
  border-color: var(--green);
  background: var(--green-l);
  color: var(--green);
}
.reason-btn.ui-ok .radio-ring {
  border-color: var(--green);
}
.reason-btn.ui-ok.selected .radio-ring {
  background: var(--green);
}

/* 구분선 */
.inp-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 6px 0;
}
.inp-divider::before, .inp-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.inp-divider-txt {
  font-size: 11px; color: var(--ink3); letter-spacing: 0.05em;
  white-space: nowrap;
}

/* 계산 버튼 */
.calc-btn-wrap { margin-top: 16px; }
.calc-btn {
  width: 100%;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--r2);
  padding: 17px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px; font-weight: 700;
  cursor: pointer; letter-spacing: -0.01em;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(26,92,255,0.22);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.calc-btn:hover { background: #1450e8; }
.calc-btn:active { transform: scale(0.99); }
.calc-btn-note {
  text-align: center; margin-top: 8px;
  font-size: 11px; color: var(--ink3);
}

/* ═══════════════════════════════════════
   결과 카드
═══════════════════════════════════════ */
.result-area { display: none; margin-top: 20px; }
.result-area.visible { display: block; animation: fu 0.4s ease; }

/* verdict */
.verdict-card {
  border-radius: var(--r3);
  padding: 22px 22px 20px;
  margin-bottom: 12px;
}
.verdict-card.vLoss  { background: var(--red-l);   border: 1.5px solid rgba(212,32,32,0.2); }
.verdict-card.vGain  { background: var(--green-l);  border: 1.5px solid rgba(26,140,80,0.2); }
.verdict-card.vOk    { background: var(--amber-l);  border: 1.5px solid rgba(200,88,0,0.2); }

.v-top {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.v-icon { font-size: 20px; }
.v-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.verdict-card.vLoss .v-tag { color: var(--red); }
.verdict-card.vGain .v-tag { color: var(--green); }
.verdict-card.vOk   .v-tag { color: var(--amber); }

.v-title {
  font-family: 'Gmarket Sans', 'Noto Sans KR', sans-serif;
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2;
  color: var(--ink);
}
.v-detail { font-size: 13px; color: var(--ink2); margin-top: 6px; line-height: 1.6; }

/* 수령액 카드 */
.amount-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.amount-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 700;
  color: var(--ink3); letter-spacing: 0.1em;
  text-transform: uppercase;
}
.amount-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  animation: fi 0.25s ease forwards; opacity: 0;
}
.amount-row:last-child { border-bottom: none; }
.amount-row.total {
  background: var(--fill);
  padding: 16px 20px;
}
.a-lbl { font-size: 13px; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.a-ico { font-size: 15px; }
.a-val { font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 500; color: var(--ink); }
.a-val.pos  { color: var(--green); }
.a-val.neg  { color: var(--red); }
.a-val.gold { color: var(--gold); font-size: 16px; font-weight: 700; }

@keyframes fi { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:translateY(0)} }

/* 최적일 카드 */
.opt-card {
  background: linear-gradient(135deg, #fff8e6 0%, #fff 60%);
  border: 1.5px solid rgba(200,140,0,0.25);
  border-radius: var(--r3);
  padding: 22px 22px 20px;
  margin-bottom: 12px;
}
.opt-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 6px;
}
.opt-date {
  font-family: 'Gmarket Sans', 'Noto Sans KR', sans-serif;
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1.1;
  margin-bottom: 8px;
}
.opt-gain {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green-l); border: 1px solid rgba(26,140,80,0.2);
  color: var(--green); font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 8px;
}
.opt-reason { font-size: 12px; color: var(--ink2); line-height: 1.7; }

/* 시나리오 비교 */
.scenario-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  padding: 22px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.sc-header {
  font-size: 11px; font-weight: 700; color: var(--ink3);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.sc-row {
  display: grid; grid-template-columns: 70px 1fr 76px;
  align-items: center; gap: 10px; margin-bottom: 10px;
}
.sc-row:last-child { margin-bottom: 0; }
.sc-lbl { font-size: 12px; color: var(--ink3); text-align: right; }
.sc-track { height: 6px; background: var(--fill2); border-radius: 3px; overflow: hidden; }
.sc-fill {
  height: 100%; border-radius: 3px;
  background: var(--line2);
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}
.sc-fill.hi { background: var(--accent); }
.sc-amt {
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--ink3); text-align: right;
}
.sc-amt.hi { color: var(--accent); font-weight: 500; }

/* 공유 */
.share-card {
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 16px 18px;
  display: flex; gap: 8px; align-items: center;
}
.share-card p {
  flex: 1; font-size: 12px; color: var(--ink2); line-height: 1.5;
}
.share-card p strong { color: var(--ink); font-weight: 700; }
.share-btns { display: flex; gap: 6px; flex-shrink: 0; }
.sh-btn {
  background: var(--white); border: 1px solid var(--line2);
  border-radius: var(--r); padding: 8px 12px;
  font-size: 12px; font-weight: 500; color: var(--ink2);
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.sh-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* AdSense placeholder */
.ad-slot {
  background: var(--fill); border: 1px dashed var(--line2);
  border-radius: var(--r2); padding: 14px;
  text-align: center; font-size: 11px; color: var(--ink3);
  margin-top: 10px;
  font-family: 'DM Mono', monospace; letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════
   HOW / WHY 섹션
═══════════════════════════════════════ */
.why-section {
  background: var(--ink);
  padding: 48px 20px;
}
.why-inner { max-width: 640px; margin: 0 auto; }
.why-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4); text-transform: uppercase;
  margin-bottom: 8px;
}
.why-title {
  font-family: 'Gmarket Sans', 'Noto Sans KR', sans-serif;
  font-size: 22px; font-weight: 700;
  color: #fff; margin-bottom: 28px; line-height: 1.3;
}
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media(max-width: 440px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r2); padding: 20px 18px;
}
.why-card-num {
  font-family: 'DM Mono', monospace;
  font-size: 28px; font-weight: 500;
  color: rgba(255,255,255,0.15); line-height: 1;
  margin-bottom: 8px;
}
.why-card-amt {
  font-family: 'DM Mono', monospace;
  font-size: 20px; font-weight: 500;
  line-height: 1; margin-bottom: 6px;
}
.why-card-amt.c-red   { color: #ff8080; }
.why-card-amt.c-gold  { color: #ffcc44; }
.why-card-amt.c-green { color: #66eea0; }
.why-card-amt.c-blue  { color: #88aaff; }
.why-card-t { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.why-card-b { font-size: 11px; color: rgba(255,255,255,0.45); line-height: 1.65; }

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
.faq-section {
  max-width: 640px; margin: 0 auto;
  padding: 48px 20px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-btn {
  width: 100%; background: none; border: none;
  text-align: left; padding: 18px 0;
  color: var(--ink); font-size: 14px; font-weight: 500;
  cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 12px;
  transition: color 0.15s; line-height: 1.4;
}
.faq-btn:hover { color: var(--accent); }
.faq-icon {
  font-size: 18px; color: var(--accent); flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s;
}
.faq-item.open .faq-body {
  max-height: 260px; padding-bottom: 18px;
}
.faq-body p { font-size: 13px; color: var(--ink2); line-height: 1.8; }
.faq-body strong { color: var(--amber); }

/* ═══════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════ */
.trust-bar {
  background: var(--fill);
  border-top: 1px solid var(--line);
  padding: 20px;
}
.trust-bar-inner {
  max-width: 640px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: center;
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink3);
}
.trust-item::before {
  content: '✓';
  color: var(--green); font-weight: 700;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.disclaimer {
  padding: 20px; text-align: center;
  font-size: 11px; color: var(--ink3); line-height: 1.8;
  border-top: 1px solid var(--line);
  background: var(--white);
}
footer {
  padding: 16px 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  background: var(--ink);
}
.footer-brand {
  font-family: 'DM Mono', monospace; font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-brand span { color: rgba(255,255,255,0.8); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); }

/* ═══════════════════════════════════════
   COUNTER ANIMATION
═══════════════════════════════════════ */
.counting { transition: all 0.05s; }

