/* 급여·연봉 계산기 */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --emerald: #059669;
  --emerald2: #047857;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif; font-size: 14px; }

.wrap { max-width: 100%; padding: 0 0 60px; }

/* ── 헤더 ── */
.top { padding: 20px 0 16px; }
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
  width: 48px; height: 48px; flex-shrink: 0;
  background: linear-gradient(135deg, #059669, #0891b2);
  border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
h1 { font-size: 22px; font-weight: 700; }
.sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── 레이아웃 ── */
.main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* ── 카드 ── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 18px; color: var(--ink); }

/* ── 입력 ── */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.form-group input, .form-group select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px;
  font-size: 15px; font-weight: 600; outline: none; transition: border-color .12s;
  background: var(--card);
}
.form-group input:focus, .form-group select:focus { border-color: var(--emerald); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-calc {
  width: 100%; padding: 13px; background: var(--emerald); color: #fff;
  border: none; border-radius: 10px; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: 6px; transition: background .15s;
}
.btn-calc:hover { background: var(--emerald2); }

/* ── 결과 ── */
.result-header {
  background: linear-gradient(135deg, var(--emerald), #0891b2);
  color: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; text-align: center;
}
.result-header .r-label { font-size: 12px; opacity: .85; }
.result-header .r-amount { font-size: 28px; font-weight: 800; margin-top: 4px; }
.result-header .r-sub { font-size: 12px; opacity: .75; margin-top: 2px; }

.deduct-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.deduct-table th { background: #f8fafc; padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 700; color: var(--muted); border-bottom: 2px solid var(--line); }
.deduct-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.deduct-table tr:last-child td { border-bottom: none; }
.deduct-table .amt { text-align: right; font-weight: 600; color: var(--ink); }
.deduct-table .total-row td { font-weight: 800; color: #dc2626; background: #fef2f2; }
.deduct-table .net-row td { font-weight: 800; color: var(--emerald); background: #f0fdf4; font-size: 15px; }

/* ── 연간 요약 ── */
.annual-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.annual-box { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.annual-box .a-val { font-size: 15px; font-weight: 700; color: var(--ink); }
.annual-box .a-label { font-size: 11px; color: var(--muted); margin-top: 3px; }

.note { font-size: 11px; color: var(--muted); margin-top: 12px; line-height: 1.6; padding: 10px 12px; background: #fefce8; border: 1px solid #fde68a; border-radius: 8px; }

/* ── 사용 안내 ── */
.guide-section {
  margin-top: 24px; background: rgba(246,248,255,.6);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.guide-section h2 { font-size: 15px; font-weight: 800; margin: 0 0 10px; color: var(--ink); }
.guide-section h2:not(:first-child) { margin-top: 18px; }
.guide-steps, .guide-features, .guide-usecase {
  margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.8;
}
.guide-steps li, .guide-features li, .guide-usecase li { margin-bottom: 4px; }
.guide-steps strong, .guide-features strong { color: var(--ink); }
.guide-privacy {
  margin-top: 16px; background: #eff6ff; border: 1px solid rgba(37,99,235,.22);
  border-radius: 12px; padding: 12px 14px; font-size: 12px; color: #1e40af; line-height: 1.55;
}

@media (max-width: 700px) {
  .main-grid { grid-template-columns: 1fr; }
  .annual-row { grid-template-columns: 1fr 1fr; }
}
