/* NBD COMPANY · G7-175 TEST synthetic consultation demo.
   Standalone: navy / gold / warm cream, no external fonts or assets. */
:root {
  --navy-950: #0a1422;
  --navy-900: #0e1a2b;
  --navy-850: #132239;
  --navy-800: #1b2d47;
  --navy-700: #263b5a;
  --paper: #f7f5ef;
  --paper-200: #ede7da;
  --cream: #fbf8f1;
  --white: #ffffff;
  --gold: #cfae74;
  --gold-hover: #dcc08f;
  --gold-ink: #775820;
  --mint: #8fd6c6;
  --green-ink: #276552;
  --red-ink: #9a2f22;
  --ink: #0e1a2b;
  --body: #3d4756;
  --muted: #586271;
  --on-dark: #cdd5e0;
  --rule: rgba(14, 26, 43, 0.14);
  --rule-dark: rgba(255, 255, 255, 0.14);
  --gutter: clamp(16px, 5vw, 56px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans KR", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 3px; }
.demo-hero :focus-visible, .status :focus-visible, .demo-real :focus-visible { outline-color: var(--mint); }

.demo-wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--navy-900); color: #fff; padding: 12px 18px;
}
.skip-link:focus { left: 0; }

/* Header */
.demo-header { background: var(--cream); border-bottom: 1px solid var(--rule); }
.demo-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.demo-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; text-decoration: none; font-weight: 800; letter-spacing: 0.04em; font-size: 15px; }
.demo-brand-mark { width: 28px; height: auto; }
.demo-brand span, .demo-header-nav a { white-space: nowrap; }
.demo-header-nav { display: flex; align-items: center; gap: 6px; }
.demo-header-nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 48px; padding: 0 12px;
  font-size: 15px; font-weight: 700; text-decoration: none; border-radius: 4px;
}
.demo-header-nav a:hover { background: var(--paper-200); }
.demo-header-nav .demo-header-cta { background: var(--navy-900); color: #fff; }
.demo-header-nav .demo-header-cta:hover { background: var(--navy-700); }

/* TEST strip */
.test-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
  margin: 0; padding: 10px var(--gutter);
  background: var(--gold); color: var(--navy-950);
  font-size: 15px; font-weight: 800; text-align: center;
}
.test-strip span + span::before { content: "·"; margin-right: 10px; }

/* Hero */
.demo-hero { background: var(--navy-900); color: #fff; padding: clamp(40px, 6vw, 80px) 0; }
.demo-eyebrow { color: var(--mint); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.demo-hero h1 { font-size: clamp(28px, 3vw + 14px, 50px); line-height: 1.25; letter-spacing: -0.01em; font-weight: 800; }
.demo-lead { margin-top: 18px; max-width: 40em; color: var(--on-dark); font-size: clamp(16px, 0.4vw + 15px, 19px); }
.hero-facts { margin-top: 22px; display: grid; gap: 8px; max-width: 44em; }
.hero-facts li { position: relative; padding-left: 22px; color: #e8edf3; }
.hero-facts li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); }
.hero-real { margin-top: 22px; color: var(--on-dark); }
.hero-real a { color: var(--gold-hover); font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 760px) { .br-wide { display: none; } }

/* Layout */
.demo-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(20px, 3vw, 40px); align-items: start;
  padding: clamp(28px, 4vw, 56px) 0;
}
@media (max-width: 1023px) { .demo-layout { grid-template-columns: minmax(0, 1fr); } }
.demo-steps { display: grid; gap: 20px; min-width: 0; }

.step {
  background: var(--cream); border: 1px solid var(--rule); border-radius: 14px;
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 1px 2px rgba(14, 26, 43, 0.05);
  min-width: 0;
}
.step-no { font-size: 14px; font-weight: 800; color: var(--gold-ink); display: flex; align-items: center; gap: 8px; }
.step h2 { margin-top: 6px; font-size: clamp(20px, 0.8vw + 16px, 26px); line-height: 1.35; }
.step h2:focus { outline: none; }
.step h2:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 3px; }
.step-desc { margin-top: 8px; color: var(--body); max-width: 42em; }
.tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--navy-900); color: var(--gold-hover);
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; line-height: 1.6;
}
.tag--dark { background: rgba(255, 255, 255, 0.1); color: var(--gold-hover); }

.choice-title { margin-top: 18px; font-size: 15px; font-weight: 800; color: var(--body); }
.choice-grid { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: minmax(0, 1fr); } }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 64px; padding: 12px 14px; text-align: left;
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid #c9c2b2; border-radius: 10px; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover { border-color: var(--navy-700); }
.choice[aria-pressed="true"] { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.choice-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--gold-ink); }
.choice[aria-pressed="true"] .choice-tag { color: var(--gold-hover); }
.choice-name { font-weight: 800; font-size: 16px; line-height: 1.4; }
.choice-sub { font-size: 14px; color: var(--muted); }
.choice[aria-pressed="true"] .choice-sub { color: var(--on-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 18px; border-radius: 6px; border: 2px solid transparent;
  font: inherit; font-size: 16px; font-weight: 800; line-height: 1.35; text-align: center;
  text-decoration: none; cursor: pointer; max-width: 100%;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-950); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-line { background: var(--white); color: var(--navy-900); border-color: var(--navy-900); }
.btn-line:hover { background: var(--paper-200); }
.btn-line[aria-pressed="true"] { background: var(--navy-900); color: #fff; }
.btn-line--dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-line--dark:hover { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 480px) { .btn-row .btn { flex: 1 1 100%; } }

.step-msg {
  margin-top: 14px; padding: 12px 14px; border-radius: 8px;
  background: var(--paper-200); color: #2c2618; font-size: 15px; border-left: 4px solid var(--gold);
}
.step-msg[data-tone="ok"] { border-left-color: var(--green-ink); background: #e4efe9; color: #173f33; }
.step-msg[data-tone="block"] { border-left-color: var(--red-ink); background: #f6e5e1; color: #5c1d15; }

.receipt {
  margin-top: 14px; padding: 16px 18px; border-radius: 10px;
  background: var(--navy-900); color: #fff; border: 1px dashed var(--gold);
}
.receipt-k { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--gold-hover); }
.receipt-no { margin-top: 4px; font-size: clamp(20px, 1vw + 16px, 26px); font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.receipt-meta { margin-top: 4px; color: var(--on-dark); font-size: 15px; }
.receipt-note { margin-top: 8px; font-size: 13px; color: var(--mint); }

.budget { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.budget-k { font-size: 14px; font-weight: 700; color: var(--body); }
.budget-bar { display: inline-flex; gap: 4px; }
.budget-bar i { display: block; width: 28px; height: 12px; border-radius: 3px; background: #d9d2c2; }
.budget-bar i.on { background: var(--gold-ink); }

.legal-note {
  margin-top: 12px; padding: 10px 14px; border-radius: 8px; max-width: 46em;
  background: #fff; border: 1px solid var(--rule); color: var(--body); font-size: 15px;
}

.checklist { margin-top: 14px; display: grid; gap: 6px; }
.checklist li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--rule); font-size: 15px;
}
.checklist .mark { font-size: 13px; font-weight: 800; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.checklist li[data-state="done"] .mark { background: #e4efe9; color: #173f33; }
.checklist li[data-state="todo"] .mark { background: var(--paper-200); color: #5a4a26; }
.checklist li[data-state="info"] .mark { background: #e7ebf1; color: var(--navy-800); }

.explain { margin-top: 14px; padding: 16px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--rule); }
.explain h3 { font-size: 17px; }
.explain ol { margin-top: 8px; display: grid; gap: 6px; list-style: decimal; padding-left: 1.4em; }
.explain p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Status */
.status {
  position: sticky; top: 16px; min-width: 0;
  background: var(--navy-900); color: #fff; border-radius: 14px;
  padding: clamp(18px, 2.5vw, 26px);
  max-height: calc(100vh - 32px); overflow-y: auto;
}
@media (max-width: 1023px) { .status { position: static; max-height: none; } }
.status h2 { font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.status-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.status-grid div { background: var(--navy-850); border: 1px solid var(--rule-dark); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.status-grid dt { font-size: 13px; color: var(--on-dark); }
.status-grid dd { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.status-sub { margin-top: 18px; font-size: 15px; color: var(--gold-hover); }
.case-list { margin-top: 8px; display: grid; gap: 6px; }
.case-list li { background: var(--navy-850); border: 1px solid var(--rule-dark); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.case-list .case-no { font-weight: 800; letter-spacing: 0.03em; }
.case-list .case-meta { color: var(--on-dark); }
.case-list .case-keep { color: var(--mint); }
.case-list .case-unknown { color: var(--gold-hover); }
.case-list .empty { color: var(--on-dark); background: transparent; border-style: dashed; }
.log { margin-top: 8px; display: grid; gap: 4px; font-size: 14px; color: var(--on-dark); }
.log li { border-left: 2px solid var(--gold); padding-left: 8px; }
.log .log-t { color: var(--gold-hover); font-variant-numeric: tabular-nums; margin-right: 6px; }
.status-foot { margin-top: 16px; font-size: 13px; color: var(--mint); }

/* Real contact band + footer */
.demo-real { background: var(--navy-950); color: #fff; padding: clamp(32px, 5vw, 64px) 0; }
.demo-real h2 { font-size: clamp(22px, 1vw + 18px, 30px); }
.demo-real p { margin-top: 8px; color: var(--on-dark); max-width: 42em; }
.demo-footer { background: var(--cream); border-top: 1px solid var(--rule); padding: 20px 0; font-size: 14px; color: var(--muted); }
.demo-footer p + p { margin-top: 4px; }
.demo-footer a { color: var(--navy-900); font-weight: 700; }

@media (max-width: 360px) {
  .demo-header-nav a { padding: 0 8px; font-size: 14px; }
  .demo-brand { font-size: 14px; gap: 8px; }
  .demo-brand span { display: none; }
  .status-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
