/* 모집병 지원해볼까? — 웹 스타일 (앱의 산타토익풍 teal 디자인 토큰 반영) */

:root {
  --teal: #0FC2A8;            /* 브랜드 채움/액센트(아이콘·틴트·테두리·막대) */
  --teal-pressed: #097266;    /* 텍스트·CTA용 진한 teal (흰 5.8:1·틴트 5.2:1, AA) */
  --teal-deep: #075F53;       /* CTA hover */
  --warn-text: #9A5B00;       /* 경고 '텍스트'용 (흰 위 5.4:1, AA) — 채움은 --warn 유지 */
  --teal-tint: #E1F7F3;
  --teal-tint-strong: #BFEFE7;

  --bg: #F4F7F8;
  --surface: #FFFFFF;
  --surface-variant: #FAFCFC;

  --ink: #17202A;        /* TextStrong */
  --text: #3A4652;       /* TextDefault */
  --weak: #66707B;       /* 접근성 보정된 TextWeak (약 5:1) */
  --disabled: #BCC4CD;

  --divider: #EDF1F3;
  --border: #E4E9EC;
  --field: #F1F5F6;

  /* 의미 별칭(봉급·복무/입영일정 카드에서 사용) */
  --card: #FFFFFF;
  --line: #E4E9EC;
  --text-soft: #66707B;

  --success: #19C37D;
  --warn: #FF9F43;
  --warn-tint: #FFF1E0;
  --danger: #FF5D5D;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 28px rgba(23, 32, 42, 0.08);
  --shadow-sm: 0 2px 10px rgba(23, 32, 42, 0.05);
  --maxw: 560px;
}

* { box-sizing: border-box; }
button, a, .chip, .option-row, .field-chip, .feature-card.tappable { -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--teal-pressed); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ── 버튼 ── */
.btn {
  font: inherit;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-lg { width: 100%; padding: 16px 20px; font-size: 16px; }
.btn-primary { background: var(--teal-pressed); color: #fff; box-shadow: 0 6px 18px rgba(9,130,115,.32); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-primary:disabled { background: var(--disabled); color: #fff; box-shadow: none; cursor: not-allowed; }
.btn-outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); display: block; text-align: center; text-decoration: none; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-pressed); }

/* ── 홈 / 히어로 ── */
.hero { padding: 40px 0 24px; text-align: center; }
.hero-badge {
  display: inline-block; background: var(--teal-tint); color: var(--teal-pressed);
  font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero-title {
  font-size: 28px; line-height: 1.32; color: var(--ink); margin: 0 0 14px;
  letter-spacing: -.6px; white-space: pre-line; font-weight: 800;
}
.hero-lead { font-size: 16px; color: var(--weak); margin: 0 auto 26px; max-width: 420px; }

.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 36px;
}
.feature-card {
  background: var(--surface); border-radius: var(--radius); padding: 18px 16px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--divider);
}
.feature-emoji { font-size: 24px; }
.feature-title { font-weight: 700; color: var(--ink); margin-top: 8px; font-size: 15px; }
.feature-desc { color: var(--weak); font-size: 13px; margin-top: 3px; }

.section-title { font-size: 18px; color: var(--ink); font-weight: 800; margin: 8px 0 14px; }
.field-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 8px; }
.field-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 14px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.field-chip:hover { border-color: var(--teal); color: var(--teal-pressed); }
.field-chip-emoji { font-size: 15px; }

/* ── 상단바 / 진행도 ── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px; /* 노치 PWA 대응 */
  background: rgba(244,247,248,.9);
  -webkit-backdrop-filter: saturate(180%) blur(8px); /* iOS Safari */
  backdrop-filter: saturate(180%) blur(8px);
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: none; background: var(--surface);
  font-size: 18px; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--teal-tint); }
.topbar-title { flex: 1; text-align: center; font-weight: 800; color: var(--ink); font-size: 16px; }
.progress { flex: 1; display: flex; gap: 6px; align-items: center; }
.progress-dot { height: 6px; flex: 1; border-radius: 999px; background: var(--border); transition: background .2s; }
.progress-dot.on { background: var(--teal); }
.progress-text { font-size: 13px; font-weight: 700; color: var(--weak); }

/* ── 위저드 ── */
.wizard { padding-bottom: 96px; }
.wizard-body { padding-top: 12px; }
.step-head { margin-bottom: 22px; }
.step-kicker { color: var(--teal-pressed); font-weight: 800; font-size: 13px; letter-spacing: .5px; }
.step-title { font-size: 22px; color: var(--ink); font-weight: 800; margin: 8px 0; letter-spacing: -.4px; }
.step-sub { color: var(--weak); font-size: 15px; margin: 0; }

.field-label { font-weight: 700; color: var(--ink); font-size: 15px; margin: 22px 0 8px; }
.hint { color: var(--weak); font-size: 13px; margin: -4px 0 10px; }

.num-field {
  display: flex; align-items: center; background: var(--field);
  border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 0 16px;
}
.num-field:focus-within { border-color: var(--teal); background: #fff; }
.num-input {
  flex: 1; border: none; background: transparent; font: inherit; font-size: 18px; font-weight: 600;
  color: var(--ink); padding: 14px 0; outline: none; -moz-appearance: textfield;
}
.num-input::-webkit-outer-spin-button, .num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-unit { color: var(--weak); font-weight: 700; font-size: 15px; }

/* 칩 */
.chip-flow { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 14px; font-weight: 600; padding: 11px 15px; min-height: 44px;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; transition: all .12s ease;
}
.chip:hover { border-color: var(--teal); }
.chip.on { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-pressed); font-weight: 700; }

/* 옵션 행 */
.option-list { display: flex; flex-direction: column; gap: 10px; }
.option-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; font: inherit; cursor: pointer; transition: all .12s ease;
}
.option-row:hover { border-color: var(--teal); }
.option-row.on { border-color: var(--teal); background: var(--teal-tint); }
.option-emoji { font-size: 20px; }
.option-title { flex: 1; font-weight: 600; color: var(--ink); font-size: 15px; }
.option-check { color: var(--teal-pressed); font-weight: 800; width: 18px; text-align: center; }

/* tint block */
.tint-block {
  display: flex; align-items: center; gap: 12px; margin-top: 22px;
  background: var(--teal-tint); border-radius: var(--radius-sm); padding: 16px;
}
.tint-block.muted { background: var(--surface); border: 1px solid var(--divider); }
.tint-emoji { font-size: 22px; }
.tint-title { font-weight: 800; color: var(--teal-pressed); font-size: 15px; }
.tint-sub { color: var(--weak); font-size: 13px; margin-top: 2px; }
.tint-block.muted div { color: var(--weak); font-size: 14px; }

/* 하단 고정 CTA */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: linear-gradient(to top, var(--bg) 70%, rgba(244,247,248,0));
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
}
.cta-bar .btn { max-width: var(--maxw); margin: 0 auto; display: block; }

/* ── 결과 ── */
.result-summary { padding: 8px 0 18px; }
.result-summary-title { font-size: 19px; font-weight: 800; color: var(--ink); margin-bottom: 12px; letter-spacing: -.3px; }
.result-summary-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-tag {
  display: inline-block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--weak);
}

.rec-list { display: flex; flex-direction: column; gap: 12px; }
.rec-card {
  width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius); padding: 16px; cursor: pointer; box-shadow: var(--shadow-sm);
  font: inherit; transition: transform .08s ease, box-shadow .15s ease;
}
.rec-card:hover { box-shadow: var(--shadow); }
.rec-card:active { transform: scale(.99); }
.rec-head { display: flex; align-items: center; gap: 12px; }
.rank {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--field); color: var(--weak); font-weight: 800; font-size: 13px;
}
.rank-1 { background: #FFEFC2; color: #B4820A; }
.rank-2 { background: #E7ECF0; color: #5B6B7A; }
.rank-3 { background: #F7E2D4; color: #B06A3C; }
.rec-titles { flex: 1; min-width: 0; }
.rec-name { font-weight: 800; color: var(--ink); font-size: 16px; }
.rec-sub { color: var(--weak); font-size: 13px; margin-top: 2px; }
.rec-score { font-weight: 800; line-height: 1; display: flex; align-items: baseline; }
.rec-score-num { font-size: 26px; }
.rec-score-pct { font-size: 14px; margin-left: 1px; }

.bar { height: 8px; background: var(--field); border-radius: 999px; overflow: hidden; margin: 13px 0 0; }
.bar-lg { height: 12px; margin-top: 16px; }
.bar-fill { height: 100%; border-radius: 999px; transition: width .4s ease; }
.rec-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.match-label { font-weight: 800; font-size: 13px; flex-shrink: 0; }
.rec-reason { color: var(--weak); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 상세 ── */
.detail-head { display: flex; align-items: center; gap: 14px; padding: 8px 0 4px; }
.detail-emoji {
  width: 52px; height: 52px; border-radius: 16px; background: var(--teal-tint);
  display: inline-flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.detail-name { font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.detail-branch { color: var(--weak); font-size: 14px; margin-top: 2px; }
.detail-score { margin-left: auto; font-size: 24px; font-weight: 800; }
.gauge-foot { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 4px; }

.card {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 18px; margin-top: 14px; box-shadow: var(--shadow-sm);
}
.card-title { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.body-text { color: var(--text); font-size: 15px; margin: 0; line-height: 1.7; }
.bullets { margin: 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.bullets li { position: relative; padding-left: 24px; color: var(--text); font-size: 14.5px; line-height: 1.55; }
.bullets li::before { position: absolute; left: 0; top: 0; }
.bullets.good li::before { content: "✓"; color: var(--success); font-weight: 800; }
.bullets.warn li::before { content: "!"; color: var(--warn-text); font-weight: 800; }
.bullets.neutral li::before { content: "•"; color: var(--teal-pressed); font-weight: 800; }

.detail-head + * { margin-top: 8px; }
.btn-outline.btn-lg { margin-top: 20px; }

/* ── 면책 / 푸터 ── */
.disclaimer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--divider); }
.disclaimer p { color: var(--weak); font-size: 12.5px; line-height: 1.6; margin: 0 0 8px; }
.disclaimer a { color: var(--weak); text-decoration: underline; }
.disclaimer-note { color: var(--disabled) !important; }
.footer-guides { color: var(--weak); }
.footer-guides a { white-space: nowrap; }

@media (min-width: 600px) {
  .hero-title { font-size: 32px; }
}

/* ── 접근성: 포커스 링 ── */
:focus-visible { outline: 3px solid rgba(15,194,168,.5); outline-offset: 2px; border-radius: 8px; }

/* ── 사이트 헤더(홈) ── */
.site-header {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; padding: 0; }
.brand-icon { border-radius: 7px; display: block; }
.brand-name { font-weight: 800; color: var(--ink); font-size: 15px; }
.site-nav { display: flex; gap: 8px; }
.nav-link {
  font: inherit; font-weight: 700; font-size: 14px; color: var(--teal-pressed);
  background: var(--teal-tint); border: none; border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.nav-link:hover { background: var(--teal-tint-strong); }

/* ── 히어로 CTA 그룹 ── */
.hero-cta { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-pressed); }
.resume-link {
  display: inline-block; margin-top: 16px; background: none; border: none; cursor: pointer;
  color: var(--weak); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: underline;
}
.resume-link:hover { color: var(--teal-pressed); }

/* ── 상세: 콜드 CTA(프로필 미입력) ── */
.detail-headtext { flex: 1; min-width: 0; }
.cold-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.cold-cta .btn { padding: 12px 18px; font-size: 14px; }
.tag-flow { margin-top: 14px; }

/* ── 합격선 조회 ── */
.cut-intro { color: var(--weak); font-size: 14px; margin: 4px 0 16px; line-height: 1.6; }
.search-wrap {
  display: flex; align-items: center; gap: 8px; background: var(--field);
  border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: 0 14px; margin-bottom: 12px;
}
.search-wrap:focus-within { border-color: var(--teal); background: #fff; }
.search-ico { color: var(--weak); font-size: 15px; }
.search-input { flex: 1; border: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); padding: 13px 0; outline: none; }
.sort-flow { margin-top: 8px; }
.cut-count { font-size: 13px; font-weight: 700; color: var(--weak); margin: 14px 0 10px; }
.cut-list { display: flex; flex-direction: column; gap: 10px; }

.cut-card { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.cut-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cut-titles { min-width: 0; }
.cut-tagrow { display: flex; align-items: center; gap: 6px; }
.branch-tag { background: var(--teal-tint); color: var(--teal-pressed); font-weight: 700; font-size: 11.5px; padding: 3px 7px; border-radius: 6px; }
.cut-group { color: var(--weak); font-size: 12px; }
.cut-name { font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 5px; }
.cut-recent { text-align: right; flex-shrink: 0; }
.cut-recent-label { color: var(--weak); font-size: 11.5px; }
.cut-recent-num { font-size: 24px; font-weight: 800; line-height: 1.1; }

.range-bar { position: relative; height: 10px; margin: 14px 0 10px; }
.range-track { position: absolute; inset: 0; background: rgba(23,32,42,.08); border-radius: 999px; }
.range-span { position: absolute; top: 0; height: 10px; background: var(--teal-tint-strong); border-radius: 999px; }
.range-marker { position: absolute; top: -1px; width: 12px; height: 12px; margin-left: -6px; background: var(--teal); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }

.cut-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cut-foot > span:first-child { color: var(--weak); font-size: 13px; }
.diff-tag { font-weight: 800; font-size: 12.5px; }
.cut-meta { color: var(--disabled); font-size: 11.5px; margin-top: 6px; }

/* ── 홈 도구 카드(클릭형) ── */
.feature-card.tappable { cursor: pointer; text-align: left; font: inherit; border: 1px solid var(--divider); transition: box-shadow .15s, transform .08s; }
.feature-card.tappable:hover { box-shadow: var(--shadow); border-color: var(--teal); }
.feature-card.tappable:active { transform: scale(.99); }
.feature-card.wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; text-align: left; }
.feature-card.wide .feature-emoji { font-size: 26px; }
.feature-card.wide .feature-title { margin-top: 0; }

/* ── 실시간 경쟁률 ── */
.comp-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); padding: 15px 16px; box-shadow: var(--shadow-sm); }
.comp-name { font-weight: 800; color: var(--ink); font-size: 15px; }
.comp-meta { color: var(--weak); font-size: 12.5px; margin-top: 3px; }
.comp-rate { font-weight: 800; color: var(--teal-pressed); font-size: 22px; white-space: nowrap; }
.comp-rate span { font-size: 13px; color: var(--weak); font-weight: 700; }

/* ── 계산기 ── */
.calc-head { margin-bottom: 8px; }
.calc-switch { display: flex; align-items: center; gap: 10px; margin: 18px 0 4px; cursor: pointer; font-size: 14.5px; color: var(--text); font-weight: 600; }
.rel-flow { margin-top: 8px; }
.cbox { width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; border: 1.5px solid var(--border); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; cursor: pointer; }
.cbox.on { background: var(--teal); border-color: var(--teal); }
.calc-check-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 13px 16px; cursor: pointer; }
.calc-check-row .option-title { flex: 1; }
.bonus-pt { color: var(--teal-pressed); font-weight: 800; font-size: 13px; }

.calc-result { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); padding: 18px; margin-top: 22px; box-shadow: var(--shadow-sm); }
.calc-total-row { display: flex; align-items: flex-end; justify-content: space-between; }
.calc-total-label { font-weight: 800; color: var(--ink); font-size: 15px; }
.calc-total-sub { color: var(--weak); font-size: 12.5px; margin-top: 2px; }
.calc-total-num { font-weight: 800; color: var(--teal-pressed); }
.calc-total-num > span:first-child { font-size: 34px; }
.calc-total-max { font-size: 15px; color: var(--weak); }
.calc-breakdown { display: flex; gap: 8px; margin-top: 14px; }
.bd-item { flex: 1; background: var(--field); border-radius: 10px; padding: 10px; text-align: center; }
.bd-label { font-size: 12px; color: var(--weak); }
.bd-pts { font-size: 16px; font-weight: 800; color: var(--ink); margin-top: 2px; }

.cut-compare { margin-top: 22px; }
.cut-select { width: 100%; font: inherit; font-size: 15px; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); }
.compare-result { margin-top: 14px; border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; }
.compare-line { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 800; color: var(--ink); font-size: 17px; }
.compare-vs { color: var(--weak); font-size: 13px; font-weight: 600; }
.compare-verdict { text-align: center; font-weight: 800; font-size: 15px; margin-top: 8px; }

/* ── AI 코치 ── */
.coach-block { margin-top: 22px; }
.coach-answer { margin-top: 12px; background: var(--teal-tint); border-radius: var(--radius-sm); padding: 16px; color: var(--ink); font-size: 14.5px; line-height: 1.7; white-space: pre-line; }
.coach-note { margin-top: 12px; background: var(--warn-tint); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text); font-size: 13.5px; }
.ai-note { margin-top: 8px; color: var(--weak); font-size: 12px; line-height: 1.5; }
.ai-note a { color: var(--teal-pressed); }

/* ── 의견·불만 수집 ── */
.voice-cta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 22px;
  background: var(--teal-tint); border: 1px solid var(--teal-tint-strong); border-radius: var(--radius);
  padding: 15px 16px; cursor: pointer; font: inherit; }
.voice-cta-emoji { font-size: 22px; flex-shrink: 0; }
.voice-cta-text { flex: 1; min-width: 0; }
.voice-cta-t { font-weight: 800; color: var(--teal-pressed); font-size: 14.5px; }
.voice-cta-d { color: var(--text); font-size: 12.5px; margin-top: 2px; }
.voice-textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--field); padding: 13px 14px; font: inherit; font-size: 14.5px; color: var(--ink); resize: vertical; line-height: 1.6; }
.voice-textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.voice-list { display: flex; flex-direction: column; gap: 8px; }
.voice-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.voice-meta { font-size: 12px; color: var(--teal-pressed); font-weight: 700; }
.voice-body { font-size: 13.5px; color: var(--text); margin-top: 4px; line-height: 1.55; white-space: pre-line; }

/* ── 내 길 찾기 진단 ── */
.pf-summary { margin: 20px 0 4px; background: var(--teal-tint); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.pf-summary strong { color: var(--teal-pressed); }
.pf-list { display: flex; flex-direction: column; gap: 9px; }
.pf-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; }
.pf-card.yes { cursor: pointer; border-color: var(--teal); }
.pf-card.maybe { cursor: pointer; }
.pf-card.no { opacity: .72; }
.pf-card.static { cursor: default; }
.pf-card.fit { box-shadow: 0 0 0 2px var(--teal-tint) inset; }
.pf-card-main { flex: 1; min-width: 0; }
.pf-card-top { display: flex; align-items: center; gap: 8px; }
.pf-name { font-weight: 800; color: var(--ink); font-size: 14.5px; }
.pf-badge { flex-shrink: 0; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.pf-badge.yes { background: var(--teal-pressed); color: #fff; }
.pf-badge.maybe { background: var(--warn-tint); color: var(--warn-text); }
.pf-badge.no { background: var(--field); color: var(--weak); }
.pf-one { color: var(--text-soft); font-size: 12.5px; margin-top: 2px; }
.pf-why { color: var(--weak); font-size: 12.5px; margin-top: 4px; }
.pf-card.yes .pf-why { color: var(--teal-pressed); }
.pf-cta { margin-top: 22px; background: var(--surface-variant); border: 1px solid var(--divider); border-radius: var(--radius); padding: 16px; text-align: center; }
.pf-cta-t { font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 14.5px; }

/* ── 병역 타임라인 ── */
.timeline { position: relative; margin-top: 8px; padding-left: 6px; }
.tl-item { position: relative; display: flex; gap: 14px; padding: 0 0 18px 18px; }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: -4px; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 3px; width: 10px; height: 10px; border-radius: 999px;
  background: #fff; border: 2px solid var(--teal); z-index: 1; }
.tl-item.done .tl-dot { background: var(--teal); }
.tl-item.done::before { background: var(--teal-tint-strong); }
.tl-item.big .tl-dot { width: 13px; height: 13px; border-color: var(--teal-pressed); left: -1px; }
.tl-main { flex: 1; min-width: 0; }
.tl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tl-t { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.tl-item.big .tl-t { font-size: 16px; font-weight: 800; }
.tl-sub { color: var(--weak); font-size: 12.5px; margin-top: 2px; }
.tl-dday { flex-shrink: 0; font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tl-dday.up { background: var(--teal-tint); color: var(--teal-pressed); }
.tl-dday.now { background: var(--teal-pressed); color: #fff; }
.tl-dday.past { background: var(--field); color: var(--weak); }

/* ── 생애 4단계 허브 ── */
/* 내 병역 홈 (마이페이지) */
.me-banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--teal-tint); border: 1px solid var(--teal); border-radius: var(--radius);
  padding: 13px 16px; margin: 14px 0 4px; cursor: pointer; font: inherit; }
.me-banner-icon { font-size: 22px; }
.me-banner-text { flex: 1; }
.me-banner-t { font-weight: 800; font-size: 15px; color: var(--ink); }
.me-banner-d { font-size: 12.5px; color: var(--teal-text, #0a8f7d); font-weight: 600; }
.me-banner-arrow { color: var(--teal); font-size: 22px; font-weight: 700; }
.me-dday { display: block; width: 100%; text-align: center; cursor: pointer; font: inherit;
  background: var(--teal); border: none; border-radius: var(--radius); padding: 18px; margin: 4px 0 8px;
  box-shadow: 0 6px 18px rgba(15,194,168,.28); }
.me-dday-num { color: #fff; font-size: 32px; font-weight: 900; letter-spacing: -0.02em; }
.me-dday-sub { color: #fff; opacity: .92; font-size: 13px; font-weight: 600; margin-top: 2px; }
.btn-bookmark { width: 100%; margin: 4px 0 6px; }
.btn-bookmark.on { color: var(--teal-text, #0a8f7d); border-color: var(--teal); background: var(--teal-tint); }
.helper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 30px; }
.helper-card { display: flex; flex-direction: column; gap: 3px; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 14px; cursor: pointer; font: inherit; box-shadow: var(--shadow-sm); }
.helper-card:hover { border-color: var(--teal); }
.helper-icon { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.helper-t { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.helper-d { font-size: 12px; color: var(--weak); line-height: 1.45; }
@media (max-width: 340px) { .helper-grid { grid-template-columns: 1fr; } }
.stage-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.stage-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; font: inherit; box-shadow: var(--shadow-sm); }
.stage-num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px; background: var(--teal-tint);
  color: var(--teal-pressed); font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.stage-body { flex: 1; min-width: 0; }
.stage-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stage-title { font-weight: 800; color: var(--ink); font-size: 16px; }
.stage-age { font-size: 12px; color: var(--weak); background: var(--field); padding: 2px 8px; border-radius: 999px; }
.stage-tagline { color: var(--weak); font-size: 13px; margin-top: 3px; }
.stage-arrow { color: var(--disabled); font-size: 22px; flex-shrink: 0; }

/* ── 단계 허브 도구 목록 / 정보 페이지 ── */
.tool-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.tool-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 15px 16px; cursor: pointer; font: inherit; }
.tool-text { flex: 1; min-width: 0; }
.tool-t { font-weight: 700; color: var(--ink); font-size: 15px; }
.tool-d { color: var(--weak); font-size: 13px; margin-top: 2px; }
.tool-arrow { color: var(--disabled); font-size: 20px; flex-shrink: 0; }
.info-table { display: flex; flex-direction: column; gap: 8px; }
.info-row { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 11px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; }
.info-k { font-weight: 700; color: var(--ink); }
.info-v { color: var(--text); }
.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--teal-tint); color: var(--teal-pressed); border-radius: var(--radius-sm);
  padding: 13px 16px; font-weight: 700; font-size: 14px; text-decoration: none; }

/* ── 봉급·복무 혜택 ── */
.pay-table { display: flex; flex-direction: column; gap: 8px; }
.pay-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; }
.pay-row.hi { background: var(--teal-tint); border-color: var(--teal); }
.pay-rank { font-weight: 800; color: var(--ink); }
.pay-bars { color: var(--text-soft); font-size: 12.5px; }
.pay-total { font-weight: 800; color: var(--teal-pressed); white-space: nowrap; }
.term-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.term-cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 6px; text-align: center; }
.term-svc { font-size: 12.5px; color: var(--text-soft); margin-bottom: 4px; }
.term-m { font-size: 16px; font-weight: 800; color: var(--ink); }
.reform-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 13.5px; line-height: 1.55; }
.reform-list li::marker { color: var(--teal-pressed); }

.mma-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mma-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.mma-kv { display: flex; gap: 6px; font-size: 13px; }
.mma-k { color: var(--text-soft); }
.mma-v { color: var(--ink); font-weight: 600; }

/* ── 카투사 ── */
.track-list { display: flex; flex-direction: column; gap: 10px; }
.track-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.track-card.pass { border-color: var(--success); background: var(--success-tint, #E1F7EC); }
.track-top { display: flex; align-items: center; justify-content: space-between; }
.track-name { font-weight: 800; color: var(--ink); font-size: 15px; }
.track-status { font-size: 12.5px; font-weight: 700; color: var(--weak); }
.track-status.ok { color: var(--success); }
.track-status.near { color: var(--warn-text); }
.track-meta { color: var(--weak); font-size: 13px; margin-top: 3px; }
.track-note { color: var(--text); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.branch-cat { font-weight: 600; font-size: 11.5px; color: var(--weak); margin-left: 7px; padding: 1px 7px; border: 1px solid var(--border); border-radius: 999px; vertical-align: middle; }
.branch-mini { font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.branch-mini:hover { border-color: var(--teal); }
.sel-card { display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.sel-card:hover { border-color: var(--teal); }
.sel-arrow { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--teal); }

.month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.month-cell { background: var(--surface); border: 1px solid var(--divider); border-radius: 10px; padding: 10px 6px; text-align: center; }
.month-cell.best { border-color: var(--success); background: #E1F7EC; }
.month-m { font-size: 12px; color: var(--weak); }
.month-p { font-size: 17px; font-weight: 800; color: var(--teal-pressed); margin-top: 2px; }
.month-cell.best .month-p { color: var(--success); }
.month-r { font-size: 11px; color: var(--weak); margin-top: 1px; }

.lang-table { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-sm); overflow: hidden; }
.lang-row { display: flex; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--divider); font-size: 14px; color: var(--text); }
.lang-row:last-child { border-bottom: none; }
.lang-cut { font-weight: 800; color: var(--ink); }

/* ── 선택방식(점수형/추첨형) 안내 ── */
.sel-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); }
.sel-note.sel-score { background: var(--teal-tint); }
.sel-note.sel-lottery { background: #FFF1E0; }
.sel-badge { flex-shrink: 0; font-weight: 800; font-size: 12.5px; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.sel-badge.sel-score { background: #fff; color: var(--teal-pressed); }
.sel-badge.sel-lottery { background: #fff; color: var(--warn-text); }
.sel-text { font-size: 13.5px; color: var(--text); line-height: 1.55; }
.cut-callout { margin-bottom: 14px; }
.cut-callout div { font-size: 13px !important; line-height: 1.6; }

/* ── 빈 상태 ── */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-emoji { font-size: 40px; }
.empty-title { font-weight: 800; color: var(--ink); font-size: 16px; margin-top: 12px; }
.empty-sub { color: var(--weak); font-size: 14px; margin-top: 4px; }

/* ════════════════════════════════════════════════════════════════════
   마이크로 인터랙션 — 은근하게 살아있는 움직임
   (움직임 최소화를 선호하는 사용자는 모두 자동 비활성화)
   ════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  /* 화면 진입: 살짝 떠오르며 나타남 */
  .hero, .feature-card, .section-title, .field-grid,
  .step-head, .calc-head, .rec-card, .track-card,
  .pay-row, .term-cell, .month-cell, .mma-card, .cut-card {
    animation: fadeUp .42s cubic-bezier(.22,.61,.36,1) both;
  }
  /* 그리드 항목은 차례로(스태거) 등장 — 은근한 리듬감 */
  .feature-grid .feature-card:nth-child(1) { animation-delay: .02s; }
  .feature-grid .feature-card:nth-child(2) { animation-delay: .06s; }
  .feature-grid .feature-card:nth-child(3) { animation-delay: .10s; }
  .feature-grid .feature-card:nth-child(4) { animation-delay: .14s; }
  .feature-grid .feature-card:nth-child(5) { animation-delay: .18s; }
  .feature-grid .feature-card:nth-child(6) { animation-delay: .22s; }
  .month-cell:nth-child(2n) { animation-delay: .05s; }
  .month-cell:nth-child(3n) { animation-delay: .09s; }

  /* 점수 막대: 0에서 차오름 */
  .bar-fill { animation: barGrow .6s cubic-bezier(.22,.61,.36,1) both; }
  /* 합격선 마커: 한 번 톡 튕기고 가만히 */
  .range-marker { animation: markerPop .45s cubic-bezier(.34,1.56,.64,1) both .15s; }

  /* 호버 가능한 기기에서만 살짝 떠오름(터치 sticky-hover 방지) */
  @media (hover: hover) {
    .feature-card.tappable, .rec-card, .field-chip, .mma-card {
      transition: box-shadow .18s ease, transform .18s cubic-bezier(.22,.61,.36,1), border-color .18s ease;
    }
    .feature-card.tappable:hover, .rec-card:hover { transform: translateY(-3px); }
    .field-chip:hover { transform: translateY(-1px); }
  }

  /* 선택 순간 톡 — 칩/옵션/체크 */
  .chip.on { animation: tapPop .22s cubic-bezier(.34,1.56,.64,1); }
  .cbox.on::after, .cbox.on { animation: tapPop .2s cubic-bezier(.34,1.56,.64,1); }
  .progress-dot.on { animation: tapPop .22s cubic-bezier(.34,1.56,.64,1); }

  /* 로딩 중 버튼: 은근한 호흡 */
  .btn[disabled] { animation: breathe 1.4s ease-in-out infinite; }

  /* 빈 상태 이모지: 가만히 떠 있는 느낌 */
  .empty-emoji { display: inline-block; animation: floaty 3s ease-in-out infinite; }
}

/* 누름 피드백은 항상(빠르고 기능적이라 reduced-motion에서도 무방) */
.chip:active, .option-row:active, .field-chip:active, .icon-btn:active { transform: scale(.96); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes barGrow { from { width: 0; } }
@keyframes markerPop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); } }
@keyframes tapPop { 0% { transform: scale(.9); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
