/* 유콘 플랫폼 요금 페이지 — 레이아웃 참고형 */

body.page-pricing {
  background: #fff;
}

.pricing-page {
  padding-bottom: 80px;
  background: #fff;
  /* 고정 헤더(.top-gap) 직후에 오므로 추가 마진 없음 — 히어로·패널 간격은 아래 섹션에서만 조절 */
}

.pricing-hero {
  position: relative;
  /* 네비 아래 첫 콘텐츠가 닿아 보이지 않도록 상단 여백 보강, 하단은 패널과 겹치지 않게 충분히 확보 */
  padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 88px);
  background: transparent;
}

.pricing-hero .container {
  position: relative;
}

.pricing-hero__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.45);
}

.pricing-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #0b1220;
}

.pricing-hero__lead {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.72);
}

.pricing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pricing-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.pricing-hero__btn--primary {
  color: #fff;
  border: 0;
  background: linear-gradient(20deg, var(--brand-1, #cd2bb2), var(--brand-2, #fa6729));
  box-shadow: 0 10px 28px rgba(205, 43, 178, 0.25);
}

.pricing-hero__btn--primary:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.pricing-hero__btn--ghost {
  color: #0b1220;
  background: #fff;
  border-color: rgba(17, 17, 17, 0.14);
}

.pricing-hero__btn--ghost:hover {
  border-color: rgba(17, 17, 17, 0.28);
}

/* 상단: 결제 주기 + 요금 카드 (음수 마진 제거 — 히어로 타이틀·버튼과 카드 영역이 겹치지 않도록) */
.pricing-panel {
  margin-top: 0;
  padding: 0 0 56px;
}

/* 히어로(흰 배경)와 요금 패널 사이에 페이지 배경색이 보이도록 간격 */
.pricing-panel > .container {
  padding-top: 24px;
}

.pricing-panel__inner {
  background: #fff;
  border-top: 0px solid var(--border, #e5e7eb);
  border-bottom: 0px solid var(--border, #e5e7eb);
  border-left: none;
  border-right: none;
  border-radius: 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

/* 상단·표 열 정렬 — 플랜 4열 고정(--pricing-col-w), 기능(첫) 열은 나머지 가로 채움 */
.pricing-sync {
  --pricing-col-w: 200px;
  min-width: calc(var(--pricing-col-w) * 5);
  width: 100%;
}

.pricing-top {
  display: grid;
  grid-template-columns: minmax(var(--pricing-col-w), 1fr) repeat(4, var(--pricing-col-w));
  gap: 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
  width: 100%;
}

@media (min-width: 901px) {
  .pricing-top {
    border-bottom: 0;
  }
}

@media (max-width: 900px) {
  .pricing-sync {
    min-width: 0;
  }

  .pricing-top {
    grid-template-columns: 1fr;
  }
}

/* 연간 / 월간 — 토글 스위치(왼쪽 정렬) + 선택 안내 문구 */
.pricing-billing {
  padding: 0px 0px;
  background: #fff;
  border-top: 0;
  border-bottom: 0;
  border-right: 0px solid var(--border, #e5e7eb);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .pricing-billing {
    border-right: 0;
    border-bottom: 0;
  }

  .pricing-cards > .pricing-card:first-of-type {
    border-top: 1px solid var(--border, #e5e7eb);
  }
}

.pricing-billing-toggle {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.pricing-billing-toggle__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  justify-content: flex-start;
}

.pricing-billing-detail {
  margin: 14px 0 0;
  padding: 0;
  max-width: 36em;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.62);
  text-align: left;
}

.pricing-billing-toggle__label {
  font-size: 15px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.45);
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.pricing-billing-toggle[data-period="yearly"] .pricing-billing-toggle__label--yearly {
  font-weight: 800;
  background-image: linear-gradient(105deg, var(--brand-1, #cd2bb2), var(--brand-2, #fa6729));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing-billing-toggle[data-period="monthly"] .pricing-billing-toggle__label--monthly {
  font-weight: 800;
  color: #0b5fff;
}

.pricing-billing-toggle__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #0b5fff;
  border: 1px solid rgba(11, 95, 255, 0.35);
  background: rgba(11, 95, 255, 0.06);
}

.pricing-billing-toggle[data-period="monthly"] .pricing-billing-toggle__badge {
  display: none;
}

.pricing-billing-toggle__btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  border-radius: 999px;
  flex-shrink: 0;
}

.pricing-billing-toggle__btn:focus-visible {
  outline: 2px solid var(--brand-1, #cd2bb2);
  outline-offset: 3px;
}

.pricing-billing-toggle__btn[aria-checked="true"]:focus-visible {
  outline-color: #0b5fff;
}

.pricing-billing-toggle__track {
  display: block;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  position: relative;
  transition: background 0.22s ease;
}

/* 연간 선택(스위치 off): 활성 — 브랜드 그라데이션 */
.pricing-billing-toggle__btn[aria-checked="false"] .pricing-billing-toggle__track {
  background: linear-gradient(90deg, var(--brand-1, #cd2bb2), var(--brand-2, #fa6729));
}

/* 월간 선택(스위치 on): 파란색 */
.pricing-billing-toggle__btn[aria-checked="true"] .pricing-billing-toggle__track {
  background: #0b5fff;
}

.pricing-billing-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.22s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.pricing-billing-toggle__btn[aria-checked="true"] .pricing-billing-toggle__thumb {
  transform: translateX(24px);
}

/* 요금 카드 — 부모 .pricing-top 5열 그리드에 카드 4개가 직접 참여 */
.pricing-cards {
  display: contents;
}

.pricing-card {
  padding: 28px 20px 24px;
  border-right: 0px solid var(--border, #e5e7eb);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

@media (min-width: 901px) {
  .pricing-card {
    border-bottom: 0px solid var(--border, #e5e7eb);
  }
}

.pricing-card:last-child {
  border-right: 0;
}

@media (max-width: 900px) {
  .pricing-card {
    border-right: 0;
    border-bottom: 1px solid var(--border, #e5e7eb);
  }

  .pricing-card:last-child {
    border-bottom: 0;
  }
}

.pricing-card--highlight {
  background: linear-gradient(180deg, rgba(205, 43, 178, 0.06) 0%, rgba(250, 103, 41, 0.04) 100%);
}

.pricing-card__name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #0b1220;
}

.pricing-card__hint {
  margin: 0 0 14px;
  min-height: 36px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.5);
}

.pricing-card__price {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.pricing-card__price small {
  font-size: 16px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.55);
}

.pricing-card__price .js-plan-amount + small {
  margin-left: 5px;
}

.pricing-card__cycle {
  margin: 0;
  font-size: 12px;
  color: rgba(17, 17, 17, 0.45);
}

.pricing-card__cta {
  margin-top: auto;
  padding-top: 18px;
}

.pricing-card__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: #0b1220;
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pricing-card--highlight .pricing-card__cta a {
  background: linear-gradient(20deg, var(--brand-1, #cd2bb2), var(--brand-2, #fa6729));
  color: #fff;
  border: 0;
}

/* 월간 선택 시: 무료 카드·시작하기·표 무료 열 — 파란 계열(월간 스위치와 동일 톤) */
.pricing-sync:has(.pricing-billing-toggle[data-period="monthly"]) .pricing-card--highlight {
  background: linear-gradient(180deg, rgba(11, 95, 255, 0.1) 0%, rgba(11, 95, 255, 0.05) 100%);
}

.pricing-sync:has(.pricing-billing-toggle[data-period="monthly"]) .pricing-card--highlight .pricing-card__cta a {
  background: #0b5fff;
  color: #fff;
  border: 0;
}

.pricing-sync:has(.pricing-billing-toggle[data-period="monthly"]) .pricing-card--highlight .pricing-card__cta a:hover {
  background: #0a52e6;
  border-color: transparent;
}

.pricing-sync:has(.pricing-billing-toggle[data-period="monthly"]) .pricing-table .col-free {
  background: rgba(11, 95, 255, 0.06);
}

.pricing-card__cta a:hover {
  border-color: rgba(17, 17, 17, 0.25);
}

/* 비교 테이블 — 열 너비는 colgroup + fixed 레이아웃으로 상단 그리드와 동일 */
.pricing-table-wrap {
  overflow-x: visible;
  width: 100%;
}

@media (max-width: 900px) {
  .pricing-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.pricing-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: 0;
}

.pricing-table th,
.pricing-table td {
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .pricing-table {
    min-width: calc(var(--pricing-col-w, 200px) * 5);
  }
}

/* 첫 열(기능): 너비 미지정 → 남은 공간, 플랜 4열은 고정 폭 */
.pricing-table colgroup col:not(:first-child) {
  width: var(--pricing-col-w, 200px);
}

.pricing-table tbody th {
  text-align: left;
  padding: 14px 16px 14px 0;
  font-weight: normal;
  color: #111;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: #fff;
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: var(--pricing-col-w, 200px);
  width: auto;
  max-width: none;
  box-sizing: border-box;
  box-shadow: 1px 0 0 var(--border, #e5e7eb);
}

.pricing-table tbody th::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: middle;
  background: #000;
  transform: translateY(-0.5px);
}

.pricing-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border, #e5e7eb);
  vertical-align: middle;
  color: rgba(17, 17, 17, 0.82);
}

.pricing-table .col-free {
  background: rgba(205, 43, 178, 0.04);
}

/* 구간 제목 행(플랫폼 · 인프라 등) */
.pricing-table__section td {
  padding: 22px 0 12px;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #0b1220;
  background: #fff;
  border-bottom: 1px solid #000;
  position: static;
  box-shadow: none;
}

.pricing-ok {
  display: inline;
  color: #0b5fff;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.2;
  vertical-align: middle;
}

.pricing-dash {
  color: rgba(17, 17, 17, 0.28);
  font-weight: 700;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #0b5fff;
  border: 1px solid rgba(11, 95, 255, 0.35);
  background: rgba(11, 95, 255, 0.06);
  margin-left: 6px;
  vertical-align: middle;
}

.pricing-footnote {
  margin: 24px auto 0;
  max-width: 920px;
  padding: 0 25px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(17, 17, 17, 0.5);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
