:root {
      --bg: #07111f;
      --bg2: #0a1b2b;
      --card: #101d30;
      --card2: #0e1a2b;
      --line: rgba(255,255,255,.12);
      --text: #f6f9ff;
      --muted: #a8b8cc;
      --muted2: #7f91aa;
      --blue: #55a5ff;
      --blue2: #7cc8ff;
      --cyan: #46e3b7;
      --shadow: 0 22px 60px rgba(0,0,0,.35);
      --radius: 24px;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
      background:
        radial-gradient(circle at 10% 0%, rgba(85,165,255,.22), transparent 34%),
        radial-gradient(circle at 92% 92%, rgba(70,227,183,.13), transparent 35%),
        linear-gradient(180deg, #07111f 0%, #07111f 55%, #061521 100%);
      line-height: 1.58;
      overflow-x: hidden;
    }

    a { color: inherit; text-decoration: none; }

    .page {
      width: min(1040px, calc(100% - 28px));
      margin: 0 auto;
      padding: 22px 0 50px;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 4px 0 18px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 22px;
      font-weight: 950;
      letter-spacing: -.04em;
    }

    .brand-dot {
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--blue), var(--cyan));
      box-shadow: 0 0 22px rgba(85,165,255,.86);
    }

    .home-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 0 14px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.04);
      color: #d7e6fa;
      font-weight: 850;
      font-size: 14px;
      white-space: nowrap;
    }

    .promo {
      margin: 0 auto 24px;
      padding: 12px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 18px;
      background: rgba(16,29,48,.92);
      box-shadow: var(--shadow);
      display: grid;
      grid-template-columns: 78px 1fr auto;
      gap: 14px;
      align-items: center;
    }

    .promo img {
      width: 78px;
      height: 78px;
      border-radius: 14px;
      object-fit: cover;
      background: #142238;
      border: 1px solid rgba(255,255,255,.08);
    }

    .promo-title {
      display: block;
      font-size: 18px;
      font-weight: 950;
      letter-spacing: -.04em;
      margin-bottom: 4px;
    }

    .promo-desc {
      display: block;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .promo-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 0 18px;
      border-radius: 14px;
      background: linear-gradient(135deg, #4199ff, #71cfff);
      color: #06111f;
      font-weight: 950;
      white-space: nowrap;
      box-shadow: 0 12px 28px rgba(85,165,255,.3);
    }

    .hero {
      padding: 34px 0 22px;
    }

    .hero h1 {
      margin: 0 0 12px;
      font-size: clamp(42px, 8vw, 72px);
      line-height: 1.02;
      letter-spacing: -.075em;
    }

    .hero p {
      margin: 0;
      color: var(--muted);
      font-size: 18px;
      font-weight: 700;
      word-break: keep-all;
    }

    .badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 18px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.04);
      color: #d7e6fa;
      font-size: 13px;
      font-weight: 800;
    }

    .app-grid {
      display: grid;
      grid-template-columns: 1.12fr .88fr;
      gap: 20px;
      align-items: start;
      margin-top: 10px;
    }

    .panel {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(16,29,48,.82);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .panel-head {
      padding: 19px 20px;
      border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,.025);
    }

    .panel-head h2 {
      margin: 0;
      font-size: 21px;
      letter-spacing: -.04em;
    }

    .panel-body {
      padding: 20px;
    }

    .step {
      padding: 0 0 22px;
      margin-bottom: 22px;
      border-bottom: 1px solid rgba(255,255,255,.09);
    }

    .step:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: 0;
    }

    .step-title {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 13px;
      font-weight: 950;
      letter-spacing: -.035em;
    }

    .step-no {
      width: 25px;
      height: 25px;
      display: inline-grid;
      place-items: center;
      border-radius: 50%;
      color: #bfe3ff;
      background: rgba(85,165,255,.16);
      font-size: 13px;
      flex: 0 0 auto;
    }

    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
    }

    .chip {
      appearance: none;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 999px;
      background: rgba(255,255,255,.045);
      color: #e5effd;
      padding: 10px 13px;
      font-size: 14px;
      font-weight: 850;
      cursor: pointer;
      transition: transform .15s ease, border-color .15s ease, background .15s ease;
    }

    .chip:hover {
      transform: translateY(-1px);
      border-color: rgba(85,165,255,.55);
    }

    .chip.active {
      color: #06111f;
      background: linear-gradient(135deg, var(--blue), var(--blue2));
      border-color: transparent;
      box-shadow: 0 10px 24px rgba(85,165,255,.28);
    }

    .result-card {
      padding: 22px;
      position: sticky;
      top: 18px;
    }

    .status {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      padding: 0 12px;
      border-radius: 999px;
      background: rgba(70,227,183,.11);
      color: #9df2dc;
      font-size: 13px;
      font-weight: 950;
      margin-bottom: 16px;
    }

    .result-title {
      margin: 0 0 14px;
      font-size: 28px;
      line-height: 1.22;
      letter-spacing: -.055em;
      word-break: keep-all;
    }

    .query-preview {
      padding: 16px;
      border-radius: 18px;
      border: 1px solid rgba(85,165,255,.28);
      background: rgba(85,165,255,.08);
      color: #f1f8ff;
      font-size: 20px;
      font-weight: 950;
      line-height: 1.45;
      letter-spacing: -.04em;
      word-break: keep-all;
      margin-bottom: 10px;
    }

    .selected-preview {
      color: var(--muted);
      font-size: 13px;
      font-weight: 750;
      margin: 0 0 14px;
      line-height: 1.55;
      word-break: keep-all;
    }

    .result-copy {
      color: #cfe0f7;
      font-size: 15px;
      font-weight: 700;
      margin: 0 0 16px;
      word-break: keep-all;
    }

    .recommend-buttons {
      display: grid;
      gap: 10px;
    }

    .rec-btn,
    .empty {
      width: 100%;
      min-height: 52px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border-radius: 16px;
      padding: 14px 16px;
      border: 1px solid rgba(85,165,255,.24);
      background: rgba(85,165,255,.1);
      color: var(--text);
      font-weight: 950;
      letter-spacing: -.03em;
    }

    .rec-btn span:last-child {
      color: var(--blue2);
    }

    .empty {
      justify-content: center;
      color: var(--muted);
      border-style: dashed;
      background: rgba(255,255,255,.035);
      text-align: center;
    }

    .seo-box {
      width: 100%;
      margin: 32px auto 0;
      padding: 20px;
      border-radius: 20px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.04);
      color: #becbe0;
      font-size: 14px;
      word-break: keep-all;
    }

    .seo-box strong { color: var(--text); }

    .footer {
      width: min(1040px, calc(100% - 28px));
      margin: 36px auto 0;
      padding: 26px 0 8px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .footer a {
      color: #dce8fa;
      font-weight: 900;
    }

    @media (max-width: 860px) {
      .page { width: min(720px, calc(100% - 22px)); padding-top: 14px; }
      .app-grid { grid-template-columns: 1fr; }
      .result-card { position: static; }
      .footer { width: min(720px, calc(100% - 22px)); display: block; }
      .footer a { display: inline-block; margin-top: 8px; }
    }

    @media (max-width: 560px) {
      .topbar { align-items: flex-start; }
      .brand { font-size: 20px; }
      .promo {
        grid-template-columns: 70px 1fr;
      }
      .promo img {
        width: 70px;
        height: 70px;
      }
      .promo-btn {
        grid-column: 1 / -1;
        min-height: 44px;
      }
      .hero h1 { font-size: 34px; }
      .hero p { font-size: 16px; }
      .panel-body { padding: 16px; }
      .result-title { font-size: 25px; }
      .query-preview { font-size: 18px; }
      .chip { padding: 10px 12px; }
    }


/* 단계형 선택 패치 */
.panel-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}

.progress-dot {
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
  min-height: 34px;
  font-weight: 950;
  cursor: pointer;
}

.progress-dot:disabled {
  cursor: default;
  opacity: .45;
}

.progress-dot.is-open {
  color: #dff3ff;
  border-color: rgba(85,165,255,.34);
}

.progress-dot.is-done {
  color: #06111f;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  border-color: transparent;
}

.selected-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.selected-pill {
  appearance: none;
  border: 1px solid rgba(85,165,255,.28);
  border-radius: 999px;
  background: rgba(85,165,255,.1);
  color: #dff3ff;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.selected-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.step-panel {
  scroll-margin-top: 18px;
}

.step-desc {
  margin: -6px 0 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  white-space: normal;
  text-align: left;
  border-radius: 18px;
}

.chip strong {
  font-size: 14px;
  line-height: 1.25;
}

.chip span {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(229,239,253,.72);
  font-weight: 700;
}

.chip.active span {
  color: rgba(6,17,31,.72);
}

.custom-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.custom-row input {
  flex: 1;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
  outline: none;
}

.custom-row input::placeholder {
  color: var(--muted2);
}

.custom-row input:focus {
  border-color: rgba(85,165,255,.62);
  box-shadow: 0 0 0 4px rgba(85,165,255,.08);
}

.custom-row button {
  appearance: none;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #06111f;
  padding: 0 16px;
  font-weight: 950;
  cursor: pointer;
}

.is-loading .panel-body {
  cursor: progress;
}

/* 독립 SEO 랜딩 패치 */
.seo-section {
  width: 100%;
  margin: 32px auto 0;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: #becbe0;
  font-size: 15px;
  word-break: keep-all;
}

.seo-section h2 {
  color: var(--text);
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -.04em;
}

.seo-section h3 {
  color: var(--text);
  margin: 24px 0 10px;
  font-size: 18px;
  letter-spacing: -.035em;
}

.seo-section p {
  margin: 0 0 12px;
  line-height: 1.78;
}

.seo-section strong {
  color: #f6f9ff;
}

.seo-keyword-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 8px;
}

.seo-card {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 15px;
  background: rgba(255,255,255,.035);
}

.seo-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
}

.seo-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.seo-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #c8d5e8;
  line-height: 1.8;
}

.seo-internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.seo-internal-links a {
  display: inline-flex;
  border: 1px solid rgba(85,165,255,.32);
  background: rgba(85,165,255,.1);
  color: #dff3ff;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 950;
}

.seo-faq details {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  padding: 14px 15px;
  margin-top: 10px;
}

.seo-faq summary {
  color: var(--text);
  font-weight: 950;
  cursor: pointer;
}

.seo-faq p {
  margin: 10px 0 0;
}

@media (max-width: 860px) {
  .seo-keyword-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .wizard-progress { grid-template-columns: repeat(7, minmax(28px, 1fr)); }
  .progress-dot { min-height: 30px; font-size: 12px; }
  .custom-row { flex-direction: column; }
  .custom-row button { min-height: 44px; }
  .seo-keyword-grid { grid-template-columns: 1fr; }
  .seo-section { padding: 18px; border-radius: 18px; }
}


/* PC 1단 출력 패치
   기존 프론트/백엔드 로직과 선택 단계는 유지하고,
   PC에서도 질문 영역과 결과 영역이 위에서 아래로 흐르도록 출력 방식만 변경합니다. */
.app-grid {
  grid-template-columns: 1fr;
  max-width: 100%;
}

.result-card {
  position: static;
  top: auto;
}

.result-card .panel-body {
  display: block;
}

/* 기존 모바일 보정과 충돌하지 않도록 동일 방향 유지 */
@media (min-width: 861px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    position: static;
  }
}


/* UX·속도 체감 개선 패치 v3
   - 상단 진행 상태/선택 상태 영역 제거
   - PC/모바일 모두 1단 세로 흐름
   - 단계 글자와 선택지를 크게 표시
   - 과도한 어두운 카드 대비를 줄이고 가독성 중심으로 재설계 */
:root {
  --bg: #f4f7fb;
  --bg2: #eaf2ff;
  --card: #ffffff;
  --card2: #f8fbff;
  --line: #d9e4f2;
  --text: #102033;
  --muted: #5f7188;
  --muted2: #7a8ca3;
  --blue: #2563eb;
  --blue2: #60a5fa;
  --cyan: #14b8a6;
  --shadow: 0 16px 44px rgba(15, 35, 65, .08);
  --radius: 22px;
}

html { scroll-behavior: smooth; }

body {
  color: var(--text);
  background:
    radial-gradient(circle at 12% -5%, rgba(37,99,235,.16), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(20,184,166,.10), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #f2f6fb 56%, #eef5f8 100%);
}

.page {
  width: min(1040px, calc(100% - 28px));
  padding: 22px 0 56px;
}

.brand,
.home-link,
.promo-title,
.hero h1,
.panel-head h2,
.step-title,
.result-title,
.query-preview,
.rec-btn,
.empty {
  word-break: keep-all;
}

.brand { color: #0f2744; }
.brand-dot { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.home-link {
  border-color: #d5e3f5;
  background: #fff;
  color: #24405f;
  box-shadow: 0 8px 22px rgba(15,35,65,.05);
}

.promo,
.panel,
.seo-section {
  background: rgba(255,255,255,.92);
  border: 1px solid #dbe6f5;
  box-shadow: var(--shadow);
}

.promo { margin-bottom: 20px; }
.promo-title { color: #102033; font-size: 19px; }
.promo-desc { color: #63758c; }
.promo-btn {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(37,99,235,.24);
}

.hero {
  margin: 0 0 16px;
  padding: 34px 0 24px;
}
.hero h1 {
  color: #0f2744;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -.065em;
}
.hero p {
  color: #50647d;
  font-size: 18px;
  line-height: 1.65;
  max-width: 860px;
}
.badge {
  background: #fff;
  border-color: #d9e6f7;
  color: #36526f;
  font-size: 13px;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 18px;
  align-items: stretch;
  margin-top: 12px;
}

.panel { border-radius: 24px; overflow: hidden; }
.panel-head {
  padding: 24px 24px 18px;
  border-bottom: 1px solid #e1e9f5;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.panel-head h2 {
  color: #102033;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.2;
  letter-spacing: -.052em;
}
.panel-sub {
  color: #64748b;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.65;
}
.panel-body { padding: 24px; }

.wizard-progress,
.selected-strip { display: none !important; }

.step {
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid #e4edf8;
}
.step-panel { scroll-margin-top: 20px; }
.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #102033;
  font-size: clamp(21px, 2.7vw, 28px);
  line-height: 1.25;
  letter-spacing: -.052em;
}
.step-no {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(37,99,235,.22);
}
.step-desc {
  margin: 0 0 17px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.62;
  font-weight: 750;
}

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 12px;
}
.chip {
  width: 100%;
  min-height: 76px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid #dce7f6;
  background: #fff;
  color: #102033;
  box-shadow: 0 8px 20px rgba(15,35,65,.045);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.chip:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 14px 28px rgba(37,99,235,.10);
}
.chip strong {
  color: #102033;
  font-size: 17px;
  line-height: 1.32;
  letter-spacing: -.032em;
}
.chip span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}
.chip.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  box-shadow: 0 16px 34px rgba(37,99,235,.22);
}
.chip.active strong,
.chip.active span { color: #fff; }

.custom-row { gap: 10px; margin-top: 14px; }
.custom-row input {
  min-height: 52px;
  border: 1px solid #dce7f6;
  border-radius: 16px;
  background: #fff;
  color: #102033;
  padding: 13px 15px;
  font-size: 15px;
}
.custom-row input::placeholder { color: #8a9bb0; }
.custom-row input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}
.custom-row button {
  min-height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  font-size: 15px;
}

.result-card {
  position: static !important;
  top: auto !important;
  order: 2;
}
.status {
  background: #ecfeff;
  color: #0f766e;
  border: 1px solid #bff3ee;
  font-size: 13px;
}
.result-title {
  color: #102033;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: -.052em;
}
.query-preview {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: clamp(18px, 2.5vw, 25px);
  line-height: 1.42;
}
.selected-preview,
.result-copy { color: #64748b; font-size: 15px; }
.recommend-buttons { grid-template-columns: 1fr; }
.rec-btn,
.empty {
  min-height: 58px;
  border: 1px solid #cfe0f4;
  background: #f8fbff;
  color: #102033;
  font-size: 16px;
  border-radius: 18px;
}
.rec-btn span:last-child { color: var(--blue); }

.seo-section { color: #4d6178; }
.seo-section h2,
.seo-section h3,
.seo-section strong,
.seo-card strong,
.seo-faq summary { color: #102033; }
.seo-card,
.seo-faq details { background: #fff; border-color: #dce7f6; }
.seo-card span,
.seo-list { color: #60748c; }
.seo-internal-links a {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.footer { border-top-color: #dce7f6; color: #667b93; }
.footer a { color: #1d4ed8; }

.is-loading .panel-body { cursor: default; }

@media (max-width: 760px) {
  .page { width: min(720px, calc(100% - 20px)); padding-top: 14px; }
  .panel-head, .panel-body { padding-left: 18px; padding-right: 18px; }
  .chips { grid-template-columns: 1fr; }
  .chip { min-height: 68px; }
  .promo { grid-template-columns: 70px 1fr; }
  .promo-btn { grid-column: 1 / -1; }
}
