@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

* { box-sizing: border-box; margin: 0; padding: 0; }
::-webkit-scrollbar { display: none; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', sans-serif;
  color: #222;
  line-height: 1.5;
  background: #fff;
  max-width: 480px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 100px;
}

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

/* --- 상단 바 (뒤로가기) --- */
.topbar {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 12px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  border-bottom: 1px solid #f2f2f2;
}
.topbar .back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 0;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
}
.topbar .back-btn::before {
  content: "";
  width: 24px;
  height: 24px;
  background: url("icons/back.svg") center/24px 24px no-repeat;
}
.topbar .topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

/* --- 히어로 --- */
.hero {
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-logo img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}
.hero-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.hero-tag {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 12px;
}
.hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  line-height: 1.3;
  word-break: keep-all;
}
.hero-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.55;
  word-break: keep-all;
}
.hero-desc + .hero-desc {
  margin-top: 10px;
}

/* --- 혜택 카드 영역 --- */
.benefit-stack {
  margin: 12px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefit-banner {
  padding: 22px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.benefit-banner::after {
  content: "VIP";
  position: absolute;
  top: -8px;
  right: -10px;
  font-size: 64px;
  font-weight: 900;
  color: rgba(255, 216, 77, 0.08);
  letter-spacing: -2px;
  pointer-events: none;
}
.benefit-banner .label {
  font-size: 11px;
  font-weight: 700;
  color: #ffd84d;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.benefit-banner .headline {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  word-break: keep-all;
  margin-bottom: 4px;
}
.benefit-banner .sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  word-break: keep-all;
}
.benefit-banner .bullet-list {
  margin-top: 14px;
}
.benefit-banner .bullet-list li {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  padding: 4px 0 4px 22px;
  line-height: 1.5;
}
.benefit-banner .bullet-list li::before {
  color: #ffd84d;
  top: 4px;
}
.benefit-banner .benefit-note {
  font-size: 12px;
  color: rgba(255, 216, 77, 0.9);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 216, 77, 0.2);
  line-height: 1.55;
  word-break: keep-all;
  font-weight: 500;
}
.benefit-card-light .benefit-note {
  font-size: 12px;
  color: #2563eb;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  line-height: 1.55;
  word-break: keep-all;
  font-weight: 500;
}

/* 일반 혜택 카드 (라이트) */
.benefit-card-light {
  padding: 18px 20px;
  border-radius: 16px;
  background: #f7f7f7;
  border: 1px solid #ececec;
}
.benefit-card-light .bullet-list {
  margin-top: 10px;
}
.benefit-card-light .bullet-list li {
  font-size: 13px;
  padding: 4px 0 4px 22px;
}
.benefit-card-light .bullet-list li::before {
  top: 4px;
}
.benefit-card-light .label {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.benefit-card-light .headline {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  word-break: keep-all;
  margin-bottom: 2px;
}
.benefit-card-light .sub {
  font-size: 13px;
  font-weight: 400;
  color: #666;
  line-height: 1.5;
  word-break: keep-all;
}

/* --- 섹션 --- */
.section {
  padding: 32px 20px 4px;
}
.section-title {
  font-size: 16px;
  font-weight: 800;
  color: #111;
  margin-bottom: 12px;
}
.section-text {
  font-size: 14px;
  color: #444;
  line-height: 1.65;
  word-break: keep-all;
}
.section-text + .section-text {
  margin-top: 6px;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bullet-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  word-break: keep-all;
}
.bullet-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: #2563eb;
  font-weight: 800;
  font-size: 13px;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.step-list li {
  position: relative;
  padding: 10px 0 10px 36px;
  font-size: 14px;
  color: #222;
  line-height: 1.55;
  word-break: keep-all;
  border-bottom: 1px solid #f5f5f5;
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider {
  height: 8px;
  background: #f5f5f5;
  margin: 16px 0 0;
}

/* --- 탭 (모바일/PC 등) --- */
.tabs {
  margin-top: 4px;
}
.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #eee;
  margin-bottom: 18px;
}
.tab-btn {
  flex: 1;
  padding: 12px 8px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn.active {
  color: #111;
  border-bottom-color: #111;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.case-block {
  margin-bottom: 18px;
}
.case-block:last-child { margin-bottom: 0; }
.case-title {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 6px;
  word-break: keep-all;
  line-height: 1.5;
}
.case-title::before {
  content: "📌 ";
}

/* 콘텐츠 이미지 (가격표 등) */
.content-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 8px;
  overflow: hidden;
}

/* 가이드북 그리드 (3 컬럼) */
.guidebook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.guidebook-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.guidebook-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f5f5;
  transition: transform 0.15s;
}
.guidebook-card:active .guidebook-thumb {
  transform: scale(0.98);
}
.guidebook-name {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  margin-top: 8px;
  text-align: center;
  word-break: keep-all;
  line-height: 1.3;
}
.guidebook-info {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  text-align: center;
}
.guidebook-info li {
  font-size: 11px;
  color: #555;
  line-height: 1.5;
  word-break: keep-all;
}
.guidebook-info li::before {
  content: "✓ ";
  color: #2563eb;
  font-weight: 800;
}
.guidebook-toc {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
  pointer-events: auto;
}

/* 도시별 콘텐츠 3열 그리드 (투어라이브 등) */
.tour-cities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.tour-cities .case-block {
  margin-bottom: 0;
}
.tour-cities .case-title {
  text-align: center;
  font-size: 12px;
  margin-bottom: 8px;
  color: #111;
}
.tour-cities .case-title::before {
  content: "";
}
.tour-cities .bullet-list li {
  font-size: 11px;
  padding: 4px 0 4px 14px;
  line-height: 1.4;
  color: #333;
}
.tour-cities .bullet-list li::before {
  font-size: 10px;
  top: 4px;
}
.tour-link {
  color: #2563eb;
  text-decoration: underline;
  font-size: 11px;
  font-weight: 600;
}

/* --- 유의사항 --- */
.notice {
  margin: 20px 20px 0;
  padding: 16px 16px;
  background: #fafafa;
  border-radius: 12px;
}
.notice-title {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
}
.notice ul {
  padding-left: 14px;
  margin: 0;
}
.notice li {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 2px;
  word-break: keep-all;
}

/* --- 고정 CTA --- */
.cta-wrap {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 12px 20px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 30%);
  z-index: 20;
  display: flex;
  gap: 8px;
}
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 54px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.05s, background 0.1s;
  word-break: keep-all;
  text-align: center;
  line-height: 1.2;
}
.cta-btn:active { transform: scale(0.99); }

.cta-btn--secondary {
  background: #f1f3f5;
  color: #222;
  flex: 0 0 44%;
}
.cta-btn--secondary:active { background: #e6e8ea; }

.cta-btn--primary {
  background: #111;
  color: #fff;
}
.cta-btn--primary:active { background: #000; }

/* --- 모달 --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}

.modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 32px;
  overflow-y: auto;
  animation: slideUp 0.22s ease;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
}
.modal-close {
  background: none;
  border: 0;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.modal-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 18px;
  line-height: 1.5;
  word-break: keep-all;
}

.field {
  margin-bottom: 12px;
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  color: #111;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.1s, background 0.1s;
}
.field-input:focus {
  outline: none;
  border-color: #111;
  background: #fff;
}
.field-input.error {
  border-color: #d44;
  background: #fff5f5;
}
.field-error {
  font-size: 11px;
  color: #d44;
  margin-top: 4px;
  display: none;
}
.field-error.show { display: block; }

.field-help {
  margin-top: 6px;
  font-size: 11px;
  color: #888;
  line-height: 1.55;
  word-break: keep-all;
}
.field-note {
  margin-top: 6px;
  font-size: 11px;
  color: #888;
  line-height: 1.55;
  word-break: keep-all;
}
.field-help li {
  list-style: disc;
  margin-left: 16px;
}

/* intl-tel-input v17 커스터마이징 */
.iti { width: 100%; }
.iti--separate-dial-code .iti__selected-flag {
  background: #fafafa;
  border-radius: 10px 0 0 10px;
}
.iti__selected-flag {
  padding: 0 10px 0 14px;
}
.iti--separate-dial-code .iti__selected-dial-code {
  font-size: 14px;
  color: #222;
  margin-left: 6px;
}
.iti--separate-dial-code input.field-input {
  padding-left: 100px !important;
}
.iti__country-list {
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.modal-submit {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s;
}
.modal-submit:active { background: #000; }
.modal-submit:disabled {
  background: #888;
  cursor: not-allowed;
}

.modal-result {
  display: none;
  margin-top: 4px;
}
.modal-result.show { display: block; }

/* 응답 카드 — VIP / 기본 */
.result-card {
  padding: 22px 20px;
  border-radius: 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.result-card .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.result-card .headline {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
  margin-bottom: 12px;
}
.result-body {
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}
.result-body br { line-height: 1; }
.result-body p { margin: 6px 0; }

/* VIP 톤 (다크 + 노랑 라벨) */
.result-card--vip {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: #fff;
}
.result-card--vip::after {
  content: "VIP";
  position: absolute;
  top: -8px;
  right: -10px;
  font-size: 64px;
  font-weight: 900;
  color: rgba(255, 216, 77, 0.08);
  letter-spacing: -2px;
  pointer-events: none;
}
.result-card--vip .label { color: #ffd84d; }
.result-card--vip .headline { color: #fff; }
.result-card--vip .result-body { color: rgba(255, 255, 255, 0.92); }
.result-card--vip .result-link {
  color: #ffd84d;
  text-decoration: underline;
  font-weight: 700;
}

/* 기본 톤 (라이트 카드) */
.result-card--basic {
  background: #f7f7f7;
  border: 1px solid #ececec;
  color: #222;
}
.result-card--basic .label { color: #2563eb; }
.result-card--basic .headline { color: #111; }
.result-card--basic .result-body { color: #444; }
.result-card--basic .result-link {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 700;
}

.result-note {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-top: 4px;
  word-break: keep-all;
}

/* 응답 후 follow-up CTA (예: "회원가입하고 쿠폰 입력하기") */
.result-followup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  margin-top: 16px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.1s;
}
.result-followup:active { background: #000; }
.result-followup .arrow {
  font-size: 16px;
  font-weight: 400;
}

.modal-loading {
  display: none;
  text-align: center;
  padding: 32px 0;
  color: #888;
  font-size: 13px;
}
.modal-loading.show { display: block; }

/* 다중 링크 리스트 (시사아카데미 등) */
.multi-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.multi-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  transition: background 0.1s;
}
.multi-link-item:active { background: #ececec; }
.multi-link-arrow {
  color: #888;
  font-size: 18px;
  font-weight: 400;
}
.modal-loading::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  border: 3px solid #eee;
  border-top-color: #111;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
