@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #17212b;
  --ink-soft: #526171;
  --muted: #7c8b9a;
  --blue: #286bd8;
  --blue-soft: #eef4ff;
  --orange: #f47725;
  --orange-soft: #fff2e8;
  --line: #e4e9ef;
  --surface: #fff;
  --canvas: #f7f9fc;
  --shadow: 0 18px 50px rgba(31, 50, 72, .08);
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100%; margin: 0; background: #e9eef4; font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.app-body { display: flex; justify-content: center; }
.app-shell { display: flex; width: min(100%, 720px); min-height: 100vh; flex-direction: column; background: var(--canvas); box-shadow: 0 0 0 1px rgba(35, 56, 78, .05), 0 20px 70px rgba(26, 45, 65, .12); }
.app-topbar { position: sticky; top: 0; z-index: 10; display: grid; min-height: 67px; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 22px; border-bottom: 1px solid rgba(228, 233, 239, .9); background: rgba(255, 255, 255, .9); backdrop-filter: blur(18px); }
.app-brand { display: inline-flex; width: fit-content; align-items: center; gap: 8px; color: var(--ink); }
.app-brand__back { display: grid; width: 27px; height: 27px; place-items: center; color: var(--muted); font-size: 27px; font-weight: 400; line-height: 1; }
.app-brand__mark { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: var(--orange); color: #fff; font-size: 15px; font-weight: 900; }
.app-brand__name { font-size: 14px; font-weight: 900; letter-spacing: -.06em; }
.app-topbar__title { color: var(--ink-soft); font-size: 13px; font-weight: 800; letter-spacing: -.04em; }
.app-topbar__reset { justify-self: end; padding: 6px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.app-topbar__reset:hover { color: var(--blue); }

.app-main { width: min(100%, 620px); flex: 1; margin: 0 auto; padding: 30px 22px 48px; }
.app-intro { padding: 11px 4px 26px; }
.app-intro__eyebrow { display: flex; align-items: center; gap: 7px; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.intro-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.app-intro h1 { margin: 14px 0 10px; color: var(--ink); font-size: clamp(29px, 6vw, 41px); letter-spacing: -.09em; line-height: 1.25; }
.app-intro h1 em, .result-section h2 em { color: var(--orange); font-style: normal; }
.app-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.stepper { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255, 255, 255, .76); }
.step-item { display: flex; min-width: 0; flex: 1; align-items: center; gap: 7px; color: #a4b0bd; }
.step-item > span { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border: 1px solid #d5dee7; border-radius: 50%; color: #94a2b0; font-size: 11px; font-weight: 900; }
.step-item small { overflow: hidden; color: inherit; font-size: 10px; font-weight: 800; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.step-item.is-active { color: var(--ink); }
.step-item.is-active > span { border-color: var(--orange); background: var(--orange); color: #fff; box-shadow: 0 0 0 4px rgba(244, 119, 37, .12); }
.step-item.is-done { color: var(--blue); }
.step-item.is-done > span { border-color: var(--blue); background: var(--blue); color: #fff; }
.stepper > i { width: 17px; height: 1px; flex: 0 0 17px; background: #dbe3eb; }

.finder-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.finder-card__top { display: flex; align-items: center; justify-content: space-between; padding: 21px 25px 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.progress-copy { display: flex; align-items: baseline; gap: 6px; }
.progress-copy > strong { color: var(--orange); font-size: 20px; letter-spacing: -.07em; }
.progress-copy span { color: #a1adba; }
.progress-copy b { margin-left: 5px; color: var(--ink-soft); font-weight: 800; }
.progress-percent { color: var(--blue); font-size: 11px; }
.progress-percent b { font-size: 14px; }
.progress-track { height: 4px; margin: 12px 25px 0; overflow: hidden; border-radius: 99px; background: #edf1f5; }
.progress-track span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #ffb16e); transition: width 220ms ease; }

.question-panel { padding: 29px 25px 24px; }
.question-number { display: inline-flex; align-items: center; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.question-panel h2 { margin: 7px 0 5px; color: var(--ink); font-size: clamp(23px, 4vw, 29px); letter-spacing: -.08em; line-height: 1.3; }
.question-panel > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.option-grid { display: grid; gap: 22px; margin-top: 24px; }
.question-block { display: grid; gap: 10px; }
.question-block + .question-block { padding-top: 20px; border-top: 1px solid #eef1f4; }
.question-block__title { margin: 0; color: var(--ink-soft); font-size: 13px; letter-spacing: -.04em; }
.option-list { display: grid; gap: 8px; }
.option-card { position: relative; display: flex; width: 100%; min-height: 62px; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-align: left; transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.option-card:hover { border-color: #b8cbea; background: #fbfdff; transform: translateY(-1px); }
.option-card.is-selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(40, 107, 216, .09); }
.option-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 10px; background: #f1f4f7; color: #8090a0; font-size: 16px; font-weight: 800; }
.option-card.is-selected .option-icon { background: var(--blue); color: #fff; }
.option-copy { display: grid; min-width: 0; gap: 2px; }
.option-copy strong { color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: -.04em; }
.option-copy small { overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.option-check { display: grid; width: 19px; height: 19px; margin-left: auto; flex: 0 0 19px; place-items: center; border: 1px solid #d4dde6; border-radius: 50%; color: transparent; font-size: 11px; font-weight: 900; }
.option-card.is-selected .option-check { border-color: var(--blue); background: var(--blue); color: #fff; }

.finder-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 25px 20px; border-top: 1px solid #eef1f4; background: rgba(251, 252, 253, .9); }
.text-button, .text-link { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; }
.text-button { display: inline-flex; align-items: center; gap: 4px; padding: 10px 0; }
.text-button > span { font-size: 19px; font-weight: 400; line-height: .6; }
.text-button:disabled { cursor: not-allowed; opacity: .35; }
.primary-button, .outline-button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 8px; padding: 11px 17px; border-radius: 11px; font-size: 12px; font-weight: 900; transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease; }
.primary-button { border: 0; background: var(--orange); color: #fff; box-shadow: 0 8px 17px rgba(244, 119, 37, .2); }
.primary-button:hover { background: #df6416; transform: translateY(-1px); box-shadow: 0 10px 20px rgba(244, 119, 37, .26); }
.primary-button:disabled { cursor: not-allowed; opacity: .38; transform: none; box-shadow: none; }
.primary-button > span { font-size: 18px; font-weight: 400; line-height: .6; }
.app-note { display: flex; align-items: flex-start; gap: 6px; margin: 13px 4px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.app-note > span { color: var(--blue); font-size: 12px; }

.result-section { padding: 17px 0 6px; }
.result-topline { display: inline-flex; align-items: center; gap: 7px; color: #33a263; font-size: 11px; font-weight: 900; }
.result-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #dff6e9; color: #249252; font-size: 12px; }
.result-section h2 { margin: 12px 0 8px; color: var(--ink); font-size: clamp(27px, 5vw, 35px); letter-spacing: -.09em; line-height: 1.28; }
.result-description { margin: 0; color: var(--muted); font-size: 12px; }
.result-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 9px; }
.result-section-heading span { color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: -.04em; }
.result-section-heading small { color: var(--muted); font-size: 10px; }
.result-section-heading--quote { margin-top: 23px; }
.result-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 13px; }
.summary-chip { display: inline-grid; gap: 1px; padding: 7px 9px; border-radius: 9px; background: #fff; box-shadow: 0 3px 11px rgba(29, 51, 72, .05); }
.summary-chip small { color: var(--muted); font-size: 9px; line-height: 1.2; }
.summary-chip strong { color: var(--blue); font-size: 10px; font-weight: 800; }
.recommendation-list { display: grid; gap: 9px; }
.recommendation-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 5px 17px rgba(31, 50, 72, .04); }
.recommendation-card--best { border-color: #ffc79f; box-shadow: 0 8px 20px rgba(244, 119, 37, .09); }
.recommendation-card__top { display: flex; align-items: center; justify-content: space-between; }
.recommendation-card__rankline { display: flex; align-items: center; gap: 8px; }
.recommendation-rank { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: #263746; color: #fff; font-size: 10px; font-weight: 900; }
.recommendation-card--best .recommendation-rank { background: var(--orange); }
.recommendation-card__label { color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.recommendation-card--best .recommendation-card__label { color: var(--orange); }
.fit-score { color: var(--orange); font-size: 10px; font-weight: 900; }
.recommendation-card h3 { margin: 12px 0 3px; color: var(--ink); font-size: 15px; letter-spacing: -.06em; }
.recommendation-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.recommendation-brands { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.recommendation-brands span { padding: 5px 7px; border-radius: 6px; background: #f2f5f8; color: var(--ink-soft); font-size: 10px; font-weight: 800; }

.quote-card { margin-top: 10px; padding: 21px; border-radius: 17px; background: #1c2a37; color: #fff; box-shadow: 0 12px 25px rgba(29, 47, 63, .16); }
.quote-card__top { display: flex; align-items: center; justify-content: space-between; }
.quote-card__eyebrow { color: #9dc7fb; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.quote-card__hint { padding: 4px 7px; border-radius: 99px; background: rgba(255, 255, 255, .09); color: #b9ccdc; font-size: 9px; }
.quote-card h3 { margin: 10px 0 10px; color: #fff; font-size: 14px; letter-spacing: -.04em; }
.quote-range { display: flex; align-items: baseline; gap: 7px; color: #a5b9ca; }
.quote-range strong { color: #ffd0a9; font-size: clamp(26px, 5vw, 34px); letter-spacing: -.09em; }
.quote-range strong.quote-range--text { font-size: clamp(23px, 4vw, 30px); letter-spacing: -.07em; }
.quote-card p { margin: 6px 0 16px; color: #b3c5d4; font-size: 10px; line-height: 1.55; }
.quote-details { display: grid; gap: 7px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .13); border-bottom: 1px solid rgba(255, 255, 255, .13); }
.quote-detail { display: flex; justify-content: space-between; gap: 12px; color: #a9bdce; font-size: 10px; }
.quote-detail strong { max-width: 68%; color: #fff; font-size: 10px; font-weight: 800; text-align: right; }
.primary-button--full { width: 100%; margin-top: 17px; }
.quote-card small { display: block; margin-top: 10px; color: #8da4b7; font-size: 9px; }
.result-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; }
.outline-button { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); }
.outline-button:hover { border-color: var(--blue); color: var(--blue); }
.result-actions .text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); }
.result-actions .text-link span { font-size: 18px; font-weight: 400; line-height: .6; }

.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 22px 22px; border-top: 1px solid var(--line); color: #a1adba; font-size: 9px; }

@media (min-width: 721px) {
  .app-shell { min-height: calc(100vh - 38px); margin: 19px 0; border-radius: 24px; overflow: hidden; }
  .app-topbar { position: relative; }
  .app-main { padding-top: 36px; }
}

@media (max-width: 520px) {
  body { background: var(--canvas); }
  .app-topbar { min-height: 62px; padding: 0 16px; }
  .app-topbar__title { font-size: 12px; }
  .app-main { padding: 24px 16px 36px; }
  .app-intro { padding: 8px 3px 22px; }
  .app-intro h1 { font-size: clamp(27px, 8vw, 35px); }
  .stepper { gap: 5px; padding: 11px 8px; }
  .step-item { flex-direction: column; gap: 4px; justify-content: center; text-align: center; }
  .step-item > span { width: 23px; height: 23px; flex-basis: 23px; }
  .step-item small { width: 100%; font-size: 9px; white-space: normal; }
  .stepper > i { width: 10px; flex-basis: 10px; margin-bottom: 18px; }
  .finder-card { border-radius: 19px; }
  .finder-card__top { padding-right: 20px; padding-left: 20px; }
  .progress-track { margin-right: 20px; margin-left: 20px; }
  .question-panel { padding: 26px 20px 21px; }
  .finder-actions { padding-right: 20px; padding-left: 20px; }
  .finder-actions .primary-button { flex: 1; }
  .option-copy small { white-space: normal; }
  .result-section { padding-top: 11px; }
}
