/* ================================================== */
/* Design Tokens */
/* ================================================== */
:root {
  --brand: #0078ff;
  --brand-dark: #0056b3;
  --text: #202124;
  --muted: #5f6368;
  --muted-2: #888;
  --line: #eee;
  --bg: #fff;
  --bg-soft: #f8f9fa;
  --bg-soft-2: #e9ecef;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  --card-shadow-strong: 0 20px 40px rgba(0, 120, 255, 0.15);
  --radius: 12px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --container: 1000px;
}

/* ================================================== */
/* Common Helpers */
/* ================================================== */
.mx {
  max-width: var(--container);
  margin: 0 auto;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.muted2 {
  color: var(--muted-2);
}
.title-2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 15px;
}
.p-base {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}
.p-small {
  font-size: 0.9rem;
  color: var(--muted-2);
}
.nowrap {
  white-space: nowrap;
}

/* ================================================== */
/* 1. Hero */
/* ================================================== */
.membership-hero {
  padding: 0 0 40px 0;
  background-color: var(--bg);
  text-align: center;
}

.membership-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 25px;
  font-family: "Malgun Gothic", "Noto Sans KR", sans-serif;
  letter-spacing: -1.5px;
  line-height: 1.3;
  word-break: keep-all;
}

.membership-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 15px auto;
  line-height: 1.7;
  word-break: keep-all;
}

.membership-desc {
  font-size: 1.1rem;
  color: var(--brand);
  margin-top: 20px;
  font-weight: 700;
}

.hero-check {
  color: #34a853;
  margin-right: 5px;
}

.highlight-text {
  color: var(--brand);
  background: linear-gradient(to top, #e3f2fd 40%, transparent 40%);
}

/* ================================================== */
/* 2. Pricing */
/* ================================================== */
.pricing-section {
  /* 기존 padding 유지하되, 좌우는 grid에서 처리 */
  padding: 60px 0 50px;

  /* 회색 배경 */
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);

  /* 핵심: #container 안에서도 브라우저 전체 폭으로 배경 확장 */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* 혹시 모를 가로 스크롤 방지 보정 */
  box-sizing: border-box;
}

/* pricing-grid가 실질적인 "내용 컨테이너" 역할을 하도록 */
.pricing-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  box-sizing: border-box;
}

.plan-card {
  background-color: var(--bg);
  border-radius: var(--radius);
  width: 100%;
  max-width: 360px;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  overflow: visible;
  will-change: transform;
}

.plan-card:hover {
  transform: translateY(-5px);
}

.plan-card.highlight {
  border: 2px solid var(--brand);
  transform: scale(1.08);
  z-index: 10;
  box-shadow: var(--card-shadow-strong);
  max-width: 380px;
}

.plan-card.highlight:hover {
  transform: scale(1.08) translateY(-5px);
}

.top-bar {
  height: 6px;
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  background-color: transparent;
}

.plan-card.highlight .top-bar {
  background: linear-gradient(
    90deg,
    #4285f4 0%,
    #34a853 33%,
    #fbbc04 66%,
    #ea4335 100%
  );
}

.promo-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: #ff5e57;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: none;
}

.plan-card.highlight .promo-badge {
  display: block;
}

.card-header {
  padding: 40px 30px 20px 30px;
  text-align: center;
}
.plan-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  font-family: "Noto Sans KR", sans-serif;
}

.plan-lead {
  font-size: 0.95rem;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-price {
  margin-bottom: 5px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.currency {
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 500;
}
.amount {
  font-size: 2.8rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -1px;
}
.period {
  font-size: 1rem;
  color: var(--muted);
}
.daily-price {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 5px;
  margin-bottom: 20px;
  display: block;
  font-weight: 500;
}

.action-area {
  padding: 0 30px 30px 30px;
}

.plan-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  border-radius: 8px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.btn-outline {
  background-color: var(--bg);
  color: var(--brand);
  border: 2px solid #e1e4e8;
}

.btn-outline:hover {
  border-color: var(--brand);
  background-color: #f8fbff;
}

.btn-fill {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 120, 255, 0.3);
}

.btn-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 120, 255, 0.4);
  filter: brightness(1.05);
}

.cancel-text {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 12px;
}
.cancel-text i {
  color: #2ecc71;
  margin-right: 4px;
}

.divider {
  height: 1px;
  background-color: var(--line);
  margin: 0 30px;
}
.feature-list {
  padding: 30px 30px 40px 30px;
  flex-grow: 1;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.5;
}
.feature-icon {
  margin-right: 12px;
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.check {
  color: var(--brand);
}
.plus-icon {
  color: #e62b1e;
  font-weight: bold;
}
.feature-item strong {
  font-weight: 600;
  color: var(--text);
  background-color: rgba(255, 255, 0, 0.15);
  padding: 0 2px;
}

/* ================================================== */
/* 3. Special Preview */
/* ================================================== */
.special-preview {
  padding: 60px 20px 10px;
  background: var(--bg);
}

.special-preview-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.special-preview-note {
  margin-bottom: 30px;
}

.special-thumb {
  max-width: 360px;
  margin: 0 auto 30px auto;
}

.special-thumb a {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.special-thumb img {
  width: 100%;
  display: block;
}

.special-thumb .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.special-thumb .play i {
  color: #fff;
  font-size: 26px;
  margin-left: 4px;
}

.cta-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-row .plan-btn {
  max-width: 260px;
}

/* ================================================== */
/* 4. FAQ (Accordion) */
/* ================================================== */
.faq-section {
  padding: 0 20px;
  background-color: var(--bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  padding: 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--brand);
}

.faq-left {
  display: flex;
  align-items: center;
}
.faq-left i {
  color: var(--brand);
  margin-right: 12px;
  font-size: 1.3rem;
}

.faq-toggle-icon {
  color: #ccc;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.faq-answer p {
  padding: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--brand);
}
.faq-item.active .faq-answer {
  max-height: 240px;
}

/* ================================================== */
/* Responsive */
/* ================================================== */
@media (max-width: 820px) {
  .membership-hero {
    padding: 50px 0;
  }
  .membership-title {
    font-size: 2rem;
    padding: 0 20px;
  }
  .membership-subtitle {
    padding: 0 20px;
    font-size: 1.1rem;
  }

  .pricing-grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .plan-card.highlight {
    transform: scale(1);
    max-width: 360px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  .plan-card.highlight:hover {
    transform: translateY(-5px);
  }

  .faq-item.active .faq-answer {
    max-height: 520px;
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .plan-card,
  .plan-btn,
  .faq-toggle-icon,
  .faq-answer {
    transition: none !important;
  }
  .plan-card:hover,
  .btn-fill:hover {
    transform: none !important;
  }
}