/* =========================================================
   아카데미인포 (AcademyInfo) — 공통 스타일시트
   순수 HTML/CSS/JS, 별도 빌드 도구 없이 그대로 배포 가능
   ========================================================= */

:root {
  --navy-950: #0a1330;
  --navy-900: #0f1e3d;
  --navy-800: #16294f;
  --navy-700: #1f3563;
  --navy-600: #2a4680;

  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --gold-500: #c9a15a;

  --slate-900: #111827;
  --slate-700: #374151;
  --slate-500: #6b7280;
  --slate-400: #9ca3af;
  --slate-300: #d1d5db;
  --slate-200: #e5e7eb;
  --slate-100: #f1f3f7;

  --bg: #f7f8fb;
  --white: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 12px 24px -8px rgba(15, 30, 61, 0.18);
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo",
    "Malgun Gothic", -apple-system, BlinkMacSystemFont, system-ui, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-900);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-sm {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--slate-200);
  backdrop-filter: blur(6px);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy-900);
}

.brand-icon {
  height: 34px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
}

.nav-desktop a:hover {
  color: var(--navy-900);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.header-actions a.plain {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
}
.header-actions a.plain:hover {
  color: var(--navy-900);
}

.nav-toggle {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: #fff;
  color: var(--slate-700);
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--slate-200);
  background: #fff;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile .container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav-mobile a.link {
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
}

.nav-mobile a.link:hover {
  background: var(--slate-100);
}

.nav-mobile .mobile-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
}

.nav-mobile .mobile-actions a {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav-desktop,
  .header-actions {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
}

.btn-navy {
  background: var(--navy-900);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-800);
}

.btn-blue {
  background: var(--blue-600);
  color: #fff;
}
.btn-blue:hover {
  background: var(--blue-500);
}

.btn-outline {
  background: #fff;
  border-color: var(--slate-200);
  color: var(--slate-700);
}
.btn-outline:hover {
  border-color: var(--navy-600);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Forms ---------- */
.field {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.field label .req {
  color: var(--blue-600);
  margin-left: 2px;
}

.input,
select.input,
textarea.input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  padding: 11px 13px;
  /* 16px 미만이면 iOS 사파리가 입력창 포커스 시 화면을 자동으로 확대합니다. */
  font-size: 16px;
  font-family: inherit;
  color: var(--slate-900);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: var(--slate-400);
}

.input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}

textarea.input {
  resize: vertical;
  min-height: 120px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .field-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .field-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--slate-500);
}

.checkbox-line input {
  margin-top: 3px;
}

/* ---------- Cards / Sections ---------- */
.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.section {
  padding: 56px 0;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--slate-900);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  background-image: radial-gradient(
      circle at 20% 20%,
      rgba(59, 130, 246, 0.5),
      transparent 40%
    ),
    radial-gradient(circle at 80% 0%, rgba(201, 161, 90, 0.35), transparent 35%);
}

.hero .inner {
  padding: 72px 0 88px;
}

.hero .eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-100);
}

.hero h1 {
  margin-top: 14px;
  max-width: 640px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
  color: #fff;
}

.hero h1 .accent {
  color: #60a5fa;
}

.hero p.lead {
  margin-top: 18px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
  color: #cbd5e1;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 44px;
  }
  .hero-actions {
    flex-direction: row;
  }
}

@media (max-width: 639px) {
  .hero .inner {
    text-align: center;
  }
  .hero .eyebrow {
    display: inline-block;
  }
  .hero h1,
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    align-items: stretch;
  }
  .quick-search {
    text-align: left;
  }
}

.quick-search {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
  .quick-search {
    flex-direction: row;
    align-items: center;
  }
  .quick-search select {
    width: 160px;
  }
  .quick-search button {
    width: auto;
  }
}

/* ---------- Stats ---------- */
.stats {
  border-bottom: 1px solid var(--slate-200);
  background: #fff;
}

.stats .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 40px 0;
  text-align: center;
}

@media (min-width: 768px) {
  .stats .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats .value {
  font-size: 26px;
  font-weight: 900;
  color: var(--navy-900);
}

.stats .label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--slate-500);
}

/* ---------- Category grid ---------- */
.category-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.category-tile:hover {
  border-color: var(--navy-600);
  background: var(--blue-50);
}

.category-tile .emoji {
  font-size: 24px;
}

/* ---------- Listing cards ---------- */
.listing-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.listing-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.listing-card .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 128px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}

.listing-card .cat-badge {
  display: inline-block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
}

.listing-card .loc {
  margin-top: 8px;
  font-size: 12px;
  color: var(--blue-100);
}

.listing-card .featured-badge {
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  white-space: nowrap;
}

.listing-card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.listing-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
}

.listing-card .summary {
  font-size: 13px;
  color: var(--slate-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card .meta {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
  font-size: 13px;
}

.listing-card .meta .k {
  font-size: 11px;
  color: var(--slate-400);
}

.listing-card .meta .v {
  font-weight: 700;
  color: var(--slate-700);
}

.listing-card .meta .v.price {
  color: var(--navy-900);
}

/* ---------- Steps ---------- */
.steps-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: #fff;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.step-card h3 {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
}

.step-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate-500);
}

/* ---------- CTA ---------- */
.cta {
  background: var(--navy-900);
}

.cta .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 0;
  text-align: center;
}

.cta h2 {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
}

.cta p {
  max-width: 560px;
  font-size: 14px;
  line-height: 1.7;
  color: #cbd5e1;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: #fff;
}

@media (min-width: 640px) {
  .filter-bar {
    flex-direction: row;
    align-items: center;
  }
  .filter-bar select {
    width: 150px;
  }
  .filter-bar button {
    width: auto;
  }
}

.chip-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-700);
  background: #fff;
}

.chip:hover {
  border-color: var(--navy-600);
}

.chip.active {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
}

.empty-state {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.empty-state .title {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-700);
}

.empty-state .desc {
  font-size: 13px;
  color: var(--slate-500);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 12px;
  color: var(--slate-400);
}
.breadcrumb a:hover {
  color: var(--navy-700);
}
.breadcrumb .sep {
  margin: 0 6px;
}
.breadcrumb .current {
  color: var(--slate-500);
}

/* ---------- Detail page ---------- */
.detail-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .detail-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.detail-hero {
  overflow: hidden;
  border-radius: var(--radius);
  padding: 40px 28px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}

.detail-hero .badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-hero h1 {
  margin-top: 16px;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
}

.detail-hero p {
  margin-top: 12px;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.7;
  color: #e2e8f0;
}

.info-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: #fff;
}

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-grid .k {
  font-size: 12px;
  color: var(--slate-400);
}

.info-grid .v {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
}

.desc-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: #fff;
}

.desc-card h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
}

.desc-card p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate-700);
  white-space: pre-line;
}

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

.tag {
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--navy-700);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
}

.notice-box {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid #fde68a;
  background: #fffbeb;
  font-size: 13px;
  line-height: 1.7;
  color: #92400e;
}

.side-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: #fff;
  margin-bottom: 16px;
}

.side-card .price-label {
  font-size: 12px;
  color: var(--slate-400);
}

.side-card .price-value {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 900;
  color: var(--navy-900);
}

.side-card .price-note {
  margin-top: 4px;
  font-size: 11px;
  color: var(--slate-400);
}

.side-card .btn {
  margin-top: 18px;
}

.side-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
}

.side-card ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--slate-500);
}

.side-card ul li::before {
  content: "• ";
  color: var(--navy-600);
}

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0;
}

.auth-box {
  width: 100%;
}

.auth-head {
  text-align: center;
}

.auth-icon {
  margin: 0 auto;
  height: 48px;
  width: auto;
  display: block;
}

.auth-head h1 {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 900;
  color: var(--slate-900);
}

.auth-head p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--slate-500);
}

.auth-box form {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-footer-link {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--slate-500);
}

.auth-footer-link a {
  font-weight: 700;
  color: var(--navy-800);
}

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.remember-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-500);
}

.remember-row a {
  font-weight: 600;
  color: var(--navy-700);
}

/* Role selector (signup) */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.role-option {
  text-align: left;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-500);
}

.role-option strong {
  display: block;
  font-size: 14px;
  color: inherit;
}

.role-option span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--slate-400);
}

.role-option.active {
  border-color: var(--navy-900);
  background: var(--blue-50);
  color: var(--navy-900);
}

.role-option.active span {
  color: var(--slate-500);
}

/* ---------- Success state ---------- */
.success-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: #fff;
}

.success-box .icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.success-box h2,
.success-box h1 {
  font-size: 20px;
  font-weight: 900;
  color: var(--slate-900);
}

.success-box p {
  max-width: 420px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate-500);
}

.success-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
}

.hidden {
  display: none !important;
}

/* ---------- Contact page extras ---------- */
.contact-note {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--navy-800);
  font-size: 13px;
  margin-bottom: 18px;
}

.contact-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-info-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: #fff;
  text-align: center;
}

.contact-info-card .k {
  font-size: 12px;
  color: var(--slate-400);
}

.contact-info-card .v {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 96px;
  background: var(--navy-950);
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 56px 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.7;
  color: #94a3b8;
}

.site-footer h3 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.site-footer .footer-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.site-footer .footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Matching wizard ---------- */
/* 설문 화면은 마케팅 푸터 없이, 뷰포트 안에서 질문만 오롯이 보이도록 고정합니다. */
body.wizard-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.wizard-page .site-header {
  flex: 0 0 auto;
}

body.wizard-page main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.wizard-shell {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 20px 24px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.wizard-skip {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 600;
}

.wizard-top {
  margin-bottom: 32px;
}

.wizard-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--slate-200);
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), var(--navy-700));
  transition: width 0.35s ease;
}

.wizard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.wizard-meta .step-counter {
  font-size: 12px;
  color: var(--slate-400);
  font-weight: 600;
}

.wizard-encourage {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-800);
}

.wizard-panel {
  animation: wizardIn 0.28s ease;
}

@keyframes wizardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-question {
  font-size: 21px;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.4;
}

.wizard-subtext {
  margin-top: 6px;
  font-size: 13px;
  color: var(--slate-500);
}

.option-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 560px) {
  .option-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .option-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 10px;
  border-radius: var(--radius);
  border: 1.5px solid var(--slate-200);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-700);
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.option-card .emoji {
  font-size: 26px;
}

.option-card {
  -webkit-tap-highlight-color: transparent;
}

.option-card:focus {
  outline: none;
}

.option-card:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .option-card:hover {
    border-color: var(--navy-600);
  }
}

.option-card.selected {
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--navy-900);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.pill-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pill-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--slate-200);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-700);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pill-option {
  -webkit-tap-highlight-color: transparent;
}

.pill-option:focus {
  outline: none;
}

.pill-option:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .pill-option:hover {
    border-color: var(--navy-600);
  }
}

.pill-option.selected {
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--navy-900);
}

.pill-option-custom {
  border-style: dashed;
}

.custom-input-box {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.custom-input-box input[data-custom-input] {
  flex: 1 1 140px;
  min-width: 0;
}

.custom-input-box .custom-suffix {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-500);
  white-space: nowrap;
}

.custom-input-box [data-custom-confirm] {
  flex: 1 1 100%;
}

.pill-option .check {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid var(--slate-300);
  flex-shrink: 0;
}

.pill-option.selected .check {
  border-color: var(--blue-600);
  background: var(--blue-600);
}

.pill-option.selected .check::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
}

.wizard-nav {
  margin-top: 26px;
}

.wizard-back {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-500);
}

.wizard-back:hover {
  color: var(--navy-800);
}

.wizard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 70px 20px;
  text-align: center;
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 4px solid var(--slate-200);
  border-top-color: var(--blue-600);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.wizard-loading .loading-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-900);
}

.wizard-loading p {
  font-size: 13px;
  color: var(--slate-500);
}

.match-result-head {
  text-align: center;
}

.match-result-head .icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 16px;
}

.match-summary-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: #fff;
}

.match-summary-card .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--slate-200);
}

.match-summary-card .row:last-child {
  border-bottom: none;
}

.match-summary-card .row .k {
  color: var(--slate-500);
}

.match-summary-card .row .v {
  font-weight: 700;
  color: var(--slate-900);
  text-align: right;
}

/* ---------- Intro splash sequence (mobile-first entry) ---------- */
html.intro-pending .home-content {
  display: none;
}

.intro-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  flex-direction: column;
  background: var(--navy-950);
  background-image: radial-gradient(circle at 25% 15%, rgba(59, 130, 246, 0.45), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(201, 161, 90, 0.3), transparent 40%);
  opacity: 1;
  transition: opacity 0.4s ease;
}

html.intro-pending .intro-overlay {
  display: flex;
}

.intro-overlay.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.intro-skip {
  align-self: flex-end;
  margin: 18px 18px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
}

.intro-slides {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
}

.intro-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.intro-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.intro-icon {
  font-size: 52px;
  margin-bottom: 22px;
}

.intro-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
  color: #fff;
}

.intro-sub {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: #cbd5e1;
  max-width: 320px;
}

.intro-fee {
  display: inline-block;
  margin-top: 4px;
  font-size: 30px;
  font-weight: 900;
  color: #60a5fa;
}

.intro-cta {
  margin-top: 26px;
  padding-left: 28px;
  padding-right: 28px;
}

.intro-continue {
  margin-top: 12px;
  padding: 0;
  background: none;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.intro-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 34px;
}

.intro-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: background-color 0.25s ease, width 0.25s ease;
}

.intro-dots .dot.active {
  background: #60a5fa;
  width: 20px;
  border-radius: 999px;
}

@media (min-width: 560px) {
  .intro-icon {
    font-size: 64px;
  }
  .intro-title {
    font-size: 32px;
  }
  .intro-sub {
    font-size: 15px;
    max-width: 380px;
  }
  .intro-fee {
    font-size: 36px;
  }
}

/* ---------- Simplified value strip (replaces old stats bar) ---------- */
.value-strip {
  border-bottom: 1px solid var(--slate-200);
  background: #fff;
}

.value-strip .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 32px 0;
}

@media (min-width: 640px) {
  .value-strip .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--blue-50);
}

.value-item .emoji {
  font-size: 24px;
}

.value-item .title {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-900);
}

.value-item .desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--slate-500);
}

/* =========================================================
   상담사 바로연결 채팅 위젯
   ========================================================= */
.chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  background: var(--blue-600);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.55);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .chat-launcher:hover {
    background: var(--blue-500);
  }
}
.chat-launcher .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  flex: 0 0 auto;
}
.chat-launcher.is-hidden {
  display: none;
}

.chat-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: min(360px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 24px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px -10px rgba(15, 30, 61, 0.35);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.is-open {
  display: flex;
}

.chat-panel-head {
  background: var(--navy-950);
  color: #fff;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}
.chat-panel-head .title {
  font-size: 14.5px;
  font-weight: 800;
}
.chat-panel-head .sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}
.chat-panel-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.chat-panel-close:hover {
  color: #fff;
}

.chat-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--slate-100);
}

.chat-intro-note {
  font-size: 12.5px;
  color: var(--slate-500);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.6;
}

.chat-bubble {
  max-width: 78%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
}
.chat-bubble.me {
  align-self: flex-end;
  background: var(--blue-600);
  color: #fff;
}
.chat-bubble.them {
  align-self: flex-start;
  background: #fff;
  color: var(--slate-900);
  box-shadow: var(--shadow-card);
}

.chat-start-form {
  padding: 14px;
  border-top: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}
.chat-start-form .input {
  font-size: 16px;
  padding: 10px 11px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
}
.chat-start-form textarea.input {
  resize: none;
  min-height: 64px;
}

.chat-send-row {
  padding: 10px 12px;
  border-top: 1px solid var(--slate-200);
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.chat-send-row input {
  flex: 1 1 auto;
  font-size: 16px;
  padding: 10px 11px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
}
.chat-send-row button,
.chat-start-form button {
  border: none;
  background: var(--blue-600);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
}
.chat-send-row button:hover,
.chat-start-form button:hover {
  background: var(--blue-500);
}

@media (max-width: 420px) {
  .chat-panel {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
  .chat-launcher {
    right: 12px;
    bottom: 12px;
  }
}

/* ---------- 소셜 로그인 버튼 ---------- */
.social-login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--slate-400);
  font-size: 12px;
}
.social-login-divider::before,
.social-login-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--slate-200);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
}
.btn-kakao {
  background: #fee500;
  color: rgba(0, 0, 0, 0.85);
}
@media (hover: hover) and (pointer: fine) {
  .btn-kakao:hover {
    background: #fada00;
  }
}
.btn-naver {
  background: #03c75a;
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .btn-naver:hover {
    background: #02b350;
  }
}
