body.pricing-root {
  --font-body: "DM Sans", "IBM Plex Sans KR", "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-head: "Syne", "IBM Plex Sans KR", "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --pricing-panel: #101218;
  --pricing-panel-alt: #151922;
  --pricing-panel-soft: rgba(255, 255, 255, 0.04);
  --pricing-selected-bg: rgba(37, 98, 235, 0.08);
  --pricing-selected-border: rgba(96, 165, 250, 0.22);
}

.pricing-page {
  padding-top: var(--nav-h);
}

.pricing-hero-shell {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 88px;
}

.pricing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 64px;
  align-items: center;
}

.pricing-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pricing-hero-title {
  max-width: 8ch;
  white-space: pre-line;
}

.pricing-hero-lead {
  max-width: 760px;
}

.pricing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pricing-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.pricing-hero-stat {
  min-width: 0;
  padding-right: 24px;
  border-right: 1px solid var(--border);
}

.pricing-hero-stat:last-child {
  padding-right: 0;
  border-right: none;
}

.pricing-hero-stat-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.pricing-hero-stat-num span {
  color: var(--highlight);
}

.pricing-hero-stat-label {
  margin-top: 4px;
  color: var(--fg-dim);
  font-size: 12px;
  line-height: 1.5;
}

.pricing-hero-panel {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(18, 22, 31, 0.98) 0%, rgba(13, 16, 23, 0.96) 100%);
  display: grid;
  gap: 18px;
}

.pricing-hero-panel::before {
  display: none;
}

.pricing-hero-panel > * {
  position: relative;
  z-index: 1;
}

.pricing-hero-panel-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.pricing-hero-panel-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.pricing-hero-panel-copy {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.75;
}

.pricing-hero-panel-list {
  display: grid;
  gap: 14px;
}

.pricing-hero-panel-item {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.pricing-hero-panel-item:first-child {
  padding-top: 0;
  border-top: none;
}

.pricing-hero-panel-item strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}

.pricing-hero-panel-item p {
  color: var(--fg-dim);
  font-size: 13px;
  line-height: 1.7;
}

.pricing-hero-panel,
.pricing-hero-panel-title,
.pricing-hero-panel-copy,
.pricing-hero-panel-item strong,
.pricing-hero-panel-item p,
.pricing-hero-lead,
.pricing-section-note,
.policy-item h3,
.policy-item p {
  min-width: 0;
}

html[lang="ko"] body.pricing-root .pricing-hero-title,
html[lang="ko"] body.pricing-root .pricing-hero-lead,
html[lang="ko"] body.pricing-root .pricing-hero-panel-title,
html[lang="ko"] body.pricing-root .pricing-hero-panel-copy,
html[lang="ko"] body.pricing-root .pricing-hero-panel-item strong,
html[lang="ko"] body.pricing-root .pricing-hero-panel-item p,
html[lang="ko"] body.pricing-root .pricing-section-note,
html[lang="ko"] body.pricing-root .policy-item h3,
html[lang="ko"] body.pricing-root .policy-item p {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

html[lang="ko"] body.pricing-root .pricing-hero-panel-title {
  max-width: 12ch;
  line-height: 1.18;
}

html[lang="ko"] body.pricing-root .pricing-hero-panel-copy,
html[lang="ko"] body.pricing-root .pricing-hero-panel-item p {
  max-width: 30ch;
}

html[lang="en"] body.pricing-root .pricing-hero-grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.82fr);
  gap: 48px;
}

html[lang="en"] body.pricing-root .pricing-hero-panel-title,
html[lang="en"] body.pricing-root .pricing-hero-panel-copy,
html[lang="en"] body.pricing-root .pricing-hero-panel-item strong,
html[lang="en"] body.pricing-root .pricing-hero-panel-item p,
html[lang="en"] body.pricing-root .pricing-hero-lead,
html[lang="en"] body.pricing-root .pricing-section-note,
html[lang="en"] body.pricing-root .policy-item h3,
html[lang="en"] body.pricing-root .policy-item p {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: pretty;
}

html[lang="en"] body.pricing-root .pricing-hero-panel {
  padding: 32px 30px;
}

html[lang="en"] body.pricing-root .pricing-hero-panel-title {
  max-width: 13ch;
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

html[lang="en"] body.pricing-root .pricing-hero-panel-copy {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.72;
}

html[lang="en"] body.pricing-root .pricing-hero-panel-item strong {
  font-size: 14px;
  line-height: 1.4;
}

html[lang="en"] body.pricing-root .pricing-hero-panel-item p {
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.65;
}

html[lang="en"] body.pricing-root .pricing-hero-title {
  max-width: 6.6ch;
  font-size: clamp(46px, 5.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

html[lang="en"] body.pricing-root .pricing-hero-lead {
  max-width: 34ch;
  font-size: 17px;
  line-height: 1.68;
}

html[lang="en"] body.pricing-root .pricing-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

html[lang="en"] body.pricing-root .pricing-hero-stat {
  min-width: 0;
  padding-right: 0;
  border-right: none;
}

html[lang="en"] body.pricing-root .pricing-hero-stat-label {
  max-width: 14ch;
  font-size: 13px;
  line-height: 1.55;
}

html[lang="en"] body.pricing-root .policy-item h3,
html[lang="en"] body.pricing-root .cat-name,
html[lang="en"] body.pricing-root .feature-name,
html[lang="en"] body.pricing-root .plan-name,
html[lang="en"] body.pricing-root .faq-question,
html[lang="en"] body.pricing-root .handover-section .t-h2,
html[lang="en"] body.pricing-root .faq-section .t-h2 {
  font-family: var(--font-head);
  letter-spacing: -0.018em;
}

html[lang="en"] body.pricing-root .policy-item h3,
html[lang="en"] body.pricing-root .cat-name,
html[lang="en"] body.pricing-root .feature-name,
html[lang="en"] body.pricing-root .plan-name {
  line-height: 1.18;
}

html[lang="en"] body.pricing-root .faq-question {
  line-height: 1.22;
}

.pricing-policy-shell,
.pricing-section-shell {
  padding-top: 0;
}

.pricing-section-note {
  max-width: 360px;
  margin: 0;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.7;
}

.pricing-policy,
.levels-section,
.categories-section,
.comparison-section,
.handover-section,
.faq-section {
  background: var(--pricing-panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: none;
}

.levels-section,
.categories-section,
.comparison-section,
.handover-section,
.faq-section {
  padding: 36px;
}

.pricing-policy {
  padding: 28px 36px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.policy-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--pricing-panel-alt);
}

.policy-item h3 {
  font-size: 1.16rem;
  line-height: 1.35;
}

.policy-item p {
  margin: 8px 0 0;
  color: var(--fg-dim);
  font-size: 1rem;
  line-height: 1.7;
}

.levels-section .section-head,
.categories-section .section-head,
.comparison-section .section-head,
.handover-section .section-head,
.faq-section .section-head {
  margin-bottom: 32px;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.level-card {
  padding: 22px;
  background: var(--pricing-panel-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.level-card .level-code {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.level-card .level-price {
  margin-top: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
}

.level-card .level-desc {
  margin-top: 8px;
  color: var(--fg-dim);
  font-size: 0.96rem;
  line-height: 1.7;
}

.category-accordion {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--pricing-panel-alt);
  overflow: hidden;
}

.category-accordion + .category-accordion {
  margin-top: 14px;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 22px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.category-header:hover {
  background: var(--pricing-panel-soft);
}

.cat-info {
  display: grid;
  gap: 4px;
}

.cat-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}

.cat-count {
  color: var(--fg-dim);
  font-size: 0.94rem;
}

.chevron {
  color: var(--muted);
  font-size: 0.9rem;
  transition: transform 140ms ease;
}

.category-accordion.open .chevron {
  transform: rotate(180deg);
}

.category-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.category-accordion.open .category-body {
  max-height: 1600px;
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
}

.feature-table th,
.feature-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.feature-table th {
  background: var(--pricing-panel-alt);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.feature-name {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--fg);
}

.feature-name-en {
  margin-top: 4px;
  color: var(--fg-dim);
  font-size: 0.9rem;
}

.feature-level {
  color: var(--highlight);
  font-size: 0.88rem;
  font-weight: 700;
}

.feature-price-cell {
  font-weight: 600;
  color: var(--fg);
  font-size: 0.95rem;
}

.feature-empty {
  color: var(--fg-dim);
}

.ops-note {
  color: var(--fg-dim);
  font-size: 0.92rem;
  line-height: 1.7;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.plan-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--pricing-panel-alt);
}

.plan-name {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--fg);
}

.plan-price {
  margin-top: 8px;
  color: var(--highlight);
  font-size: 1.14rem;
  font-weight: 700;
}

.plan-price span {
  color: var(--fg-dim);
  font-size: 0.9rem;
  font-weight: 500;
}

.plan-desc {
  margin-top: 8px;
  color: var(--fg-dim);
  font-size: 0.98rem;
  line-height: 1.72;
}

.plan-card ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.plan-card li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 0.96rem;
  line-height: 1.68;
}

.plan-card li:first-child {
  padding-top: 0;
  border-top: none;
}

.handover-info {
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.8;
}

.handover-info p {
  margin: 0;
}

.handover-info p + p,
.handover-formula {
  margin-top: 16px;
}

.handover-formula {
  padding: 16px 18px;
  border: 1px solid var(--pricing-selected-border);
  border-radius: 14px;
  background: var(--pricing-selected-bg);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.94rem;
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item:first-of-type {
  border-top: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  border: none;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 1.04rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease, padding-bottom 220ms ease;
}

.faq-item.open .faq-answer {
  max-height: 220px;
  padding-bottom: 18px;
}

.faq-answer p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 1rem;
  line-height: 1.78;
}

@media (max-width: 1080px) {
  .pricing-hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  html[lang="en"] body.pricing-root .pricing-hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .pricing-hero-title {
    max-width: none;
  }

  .pricing-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .pricing-hero-stat,
  .pricing-hero-stat:last-child {
    padding: 18px 18px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--pricing-panel-soft);
  }

  .pricing-hero-stat-label {
    max-width: none;
  }

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

  .policy-item {
    padding: 20px;
  }
}

@media (max-width: 720px) {
  .pricing-hero-shell {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 64px;
  }

  .pricing-hero-title {
    max-width: 7ch;
    font-size: clamp(34px, 16vw, 52px);
    line-height: 0.94;
  }

  .pricing-hero-lead {
    max-width: none;
  }

  html[lang="en"] body.pricing-root .pricing-hero-title {
    max-width: 6.2ch;
    font-size: clamp(30px, 14vw, 48px);
    line-height: 0.94;
  }

  html[lang="en"] body.pricing-root .pricing-hero-lead {
    max-width: none;
  }

  html[lang="en"] body.pricing-root .pricing-hero-stats {
    grid-template-columns: 1fr;
  }

  html[lang="en"] body.pricing-root .pricing-hero-stat,
  html[lang="en"] body.pricing-root .pricing-hero-stat:last-child {
    padding-left: 0;
    padding-right: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
  }

  html[lang="en"] body.pricing-root .pricing-hero-stat:last-child {
    border-bottom: none;
  }

  .pricing-hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pricing-hero-stat {
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 12px;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
  }

  .pricing-hero-stat:last-child {
    padding-bottom: 0;
    border: none;
    border-bottom: none;
  }

  .pricing-policy,
  .levels-section,
  .categories-section,
  .comparison-section,
  .handover-section,
  .faq-section {
    padding: 24px;
  }

  .pricing-hero-panel {
    padding: 24px;
    margin-top: 10px;
  }

  .feature-table th,
  .feature-table td {
    padding: 12px 14px;
  }
}

@media (max-width: 640px) {
  .level-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  html[lang="en"] body.pricing-root .pricing-hero-panel-title,
  html[lang="en"] body.pricing-root .pricing-hero-panel-copy,
  html[lang="en"] body.pricing-root .pricing-hero-panel-item p,
  html[lang="en"] body.pricing-root .pricing-hero-lead {
    max-width: none;
  }

  .category-header {
    gap: 12px;
  }

  .feature-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  html[lang="en"] body.pricing-root .pricing-hero-title {
    max-width: 5.3ch;
    font-size: clamp(24px, 11vw, 40px);
  }
}
