/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #111;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
}

/* === Screen Reader Only === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Social Proof Bar === */
.social-bar {
  background: #2d1b69;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-bar strong {
  color: #c4a0ff;
  font-weight: 900;
}

/* === Hero — Dark image + white text + shadow + overlay === */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #1a0a3e;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px 50px;
  width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 5, 30, 0.75) 0%, rgba(30, 15, 70, 0.85) 100%);
  z-index: 1;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  word-break: keep-all;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(107, 63, 160, 0.4);
}

.hero-sub {
  font-size: 1.125rem;
  color: #c4a0ff;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* === Content === */
.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Section === */
.section {
  padding: 36px 0;
  border-bottom: 1px solid #eee;
}

.section h2 {
  font-size: 1.375rem;
  font-weight: 900;
  color: #1a0a3e;
  margin-bottom: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.section p {
  margin-bottom: 14px;
  color: #333;
  word-break: keep-all;
}

.section p:last-child {
  margin-bottom: 0;
}

/* === Photo Sections with Skeleton === */
.photo-section {
  margin: 32px 0;
}

.img-skeleton {
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.img-skeleton.loaded {
  background: none;
  animation: none;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.img-skeleton img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.img-skeleton.loaded img {
  opacity: 1;
}

.photo-section figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: #888;
  margin-top: 8px;
  font-style: italic;
}

/* === Pull Quote === */
.pull-quote {
  font-size: 1.375rem;
  font-weight: 700;
  font-style: italic;
  color: #3b1d8e;
  text-align: center;
  padding: 40px 24px;
  margin: 8px 0;
  border-left: 4px solid #6b3fa0;
  background: linear-gradient(135deg, #f5f0ff 0%, #ede5ff 100%);
  border-radius: 0 12px 12px 0;
  line-height: 1.5;
  word-break: keep-all;
}

/* === Review Highlights === */
.review-highlights {
  padding: 36px 0;
  border-bottom: 1px solid #eee;
}

.review-highlights h3 {
  font-size: 1.125rem;
  font-weight: 900;
  color: #1a0a3e;
  margin-bottom: 20px;
  text-align: center;
}

.review-card {
  background: #fff;
  border: 1px solid #e8e0f5;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(107, 63, 160, 0.08);
}

.review-stars {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 2px;
}

.review-card p {
  margin: 8px 0;
  color: #333;
  font-style: italic;
  word-break: keep-all;
}

.review-author {
  font-size: 0.8125rem;
  color: #888;
}

/* === Before / After === */
.before-after {
  padding-bottom: 36px;
}

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

.ba-card {
  border-radius: 12px;
  padding: 24px 20px;
}

.ba-card h3 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.ba-card ul {
  list-style: none;
  padding: 0;
}

.ba-card li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.9375rem;
  word-break: keep-all;
}

.ba-before {
  background: #fef2f2;
  border: 1px solid #fca5a5;
}

.ba-before h3 {
  color: #dc2626;
}

.ba-before li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

.ba-after {
  background: #f0fdf4;
  border: 1px solid #86efac;
}

.ba-after h3 {
  color: #16a34a;
}

.ba-after li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

/* === Comparison Table === */
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border-radius: 12px;
  border: 1px solid #e8e0f5;
}

.comparison-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table thead {
  background: #1a0a3e;
  color: #fff;
}

.comparison-table th {
  padding: 14px 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.comparison-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #f0ecf5;
  word-break: keep-all;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
  background: #faf8ff;
}

.row-label {
  font-weight: 700;
  color: #1a0a3e;
  text-align: left !important;
  white-space: nowrap;
}

/* === Secret Section — 80% scroll reveal === */
.secret-section {
  position: relative;
}

.secret-badge {
  display: inline-block;
  background: linear-gradient(135deg, #6b3fa0 0%, #8b5cf6 100%);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.secret-content {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.secret-content.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.secret-item {
  background: #fff;
  border: 1px solid #e8e0f5;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(107, 63, 160, 0.08);
}

.secret-item strong {
  display: block;
  font-size: 1rem;
  color: #1a0a3e;
  margin-bottom: 8px;
}

.secret-item p {
  color: #333;
  margin: 0;
  word-break: keep-all;
}

/* === CTA Button === */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  min-height: 44px;
  background: linear-gradient(135deg, #6b3fa0 0%, #8b5cf6 100%);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 900;
  border-radius: 14px;
  margin: 32px 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(107, 63, 160, 0.3);
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(107, 63, 160, 0.45);
}

.cta-button:active {
  transform: translateY(0);
}

/* === Countdown Bar === */
.countdown-bar {
  background: #fef3c7;
  color: #92400e;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.countdown-bar strong {
  color: #dc2626;
  font-size: 1.125rem;
}

.countdown-icon {
  font-size: 1rem;
}

/* === Day vs Night Gallery === */
.gallery-section {
  padding: 36px 0;
  border-bottom: 1px solid #eee;
}

.gallery-section h2 {
  font-size: 1.375rem;
  font-weight: 900;
  color: #1a0a3e;
  margin-bottom: 20px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 0;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gallery-item {
  margin: 0;
}

.gallery-item .img-skeleton {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
}

.gallery-item figcaption {
  text-align: center;
  font-size: 0.75rem;
  color: #888;
  margin-top: 6px;
  font-weight: 700;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d4d4d4;
  cursor: pointer;
  padding: 0;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: inherit;
}

.dot {
  background: transparent;
}

.dot::after {
  background: #d4d4d4;
}

.dot.active::after {
  background: #6b3fa0;
}

.gallery-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 4px;
}

/* === Mini Quiz === */
.quiz-section {
  border-bottom: 1px solid #eee;
}

.quiz-desc {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 24px;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-q {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #111;
  word-break: keep-all;
}

.quiz-option {
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 10px;
  background: #fff;
  border: 2px solid #e8e0f5;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #333;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.quiz-option:hover {
  border-color: #8b5cf6;
  background: #faf8ff;
}

.quiz-option:active,
.quiz-option.selected {
  border-color: #6b3fa0;
  background: #ede5ff;
}

.quiz-result {
  display: none;
  background: linear-gradient(135deg, #f5f0ff 0%, #ede5ff 100%);
  border: 2px solid #8b5cf6;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}

.quiz-result.show {
  display: block;
}

.quiz-result-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1a0a3e;
  margin-bottom: 8px;
}

.quiz-result-desc {
  color: #333;
  margin-bottom: 16px;
  word-break: keep-all;
}

.quiz-result .cta-button {
  margin: 16px 0 0;
}

/* === Exit Intent Popup === */
.exit-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.exit-popup.show {
  display: flex;
}

.exit-popup-inner {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.exit-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: none;
  background: none;
  font-size: 1.25rem;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.exit-title {
  font-size: 1.375rem;
  font-weight: 900;
  color: #1a0a3e;
  margin-bottom: 12px;
  word-break: keep-all;
}

.exit-desc {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
  word-break: keep-all;
}

.exit-cta {
  margin: 20px 0 0 !important;
}

/* === Internal Search Bar === */
.search-wrap {
  padding: 16px 20px 0;
  max-width: 680px;
  margin: 0 auto;
}

.search-inner {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8e0f5;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: #fff;
  color: #111;
  min-height: 44px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #8b5cf6;
}

.search-input::placeholder {
  color: #aaa;
}

.search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e8e0f5;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
}

.search-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #333;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  border-bottom: 1px solid #f0f0f0;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: #faf8ff;
  color: #6b3fa0;
}

/* === Fixed Bottom Contact Bar === */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  height: 56px;
  background: linear-gradient(135deg, #6b3fa0 0%, #8b5cf6 100%);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.bottom-bar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}

.bottom-bar-icon {
  font-size: 1.25rem;
}

/* Body padding to prevent content behind fixed bar */
body {
  padding-bottom: 56px;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 40px 20px 60px;
  background: #f0f0f0;
  color: #888;
  font-size: 0.8125rem;
  line-height: 1.8;
  margin-top: 20px;
}

/* === Responsive === */
@media (min-width: 768px) {
  .hero {
    min-height: 440px;
  }

  .hero-overlay {
    padding: 80px 40px 70px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-sub {
    font-size: 1.25rem;
  }

  .section h2 {
    font-size: 1.625rem;
  }

  .pull-quote {
    font-size: 1.5rem;
    padding: 48px 40px;
  }

  .ba-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fixed-bottom-bar {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 14px 14px 0 0;
  }

  .content {
    max-width: 780px;
  }
}

@media (min-width: 1200px) {
  .content {
    max-width: 900px;
  }
}
