.pricing-hero,
.pricing-policy,
.levels-section,
.categories-section,
.comparison-section,
.handover-section,
.faq-section,
.pricing-cta {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  box-shadow: var(--ds-shadow-sm);
}

.pricing-hero,
.levels-section,
.categories-section,
.comparison-section,
.handover-section,
.faq-section,
.pricing-cta {
  padding: 32px;
}

.pricing-hero {
  display: grid;
  gap: 12px;
}

.pricing-policy {
  padding: 24px 32px;
}

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

.policy-item {
  padding-right: 20px;
  border-right: 1px solid var(--ds-border);
}

.policy-item:last-child {
  padding-right: 0;
  border-right: none;
}

.policy-item h3 {
  font-size: 1rem;
  line-height: 1.4;
}

.policy-item p {
  margin: 8px 0 0;
  color: var(--ds-muted);
  font-size: 0.94rem;
  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: 24px;
}

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

.level-card {
  padding: 20px;
  background: var(--ds-surface-alt);
  border: 1px solid var(--ds-border);
  border-radius: 10px;
}

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

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

.level-card .level-desc {
  margin-top: 8px;
  color: var(--ds-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.category-accordion {
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  overflow: hidden;
}

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

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

.category-header:hover {
  background: var(--ds-surface-alt);
}

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

.cat-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ds-foreground);
}

.cat-count {
  color: var(--ds-muted);
  font-size: 0.88rem;
}

.chevron {
  color: var(--ds-muted);
  font-size: 0.82rem;
  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: 14px 20px;
  border-top: 1px solid var(--ds-border);
  text-align: left;
  vertical-align: top;
}

.feature-table th {
  background: var(--ds-surface-alt);
  color: var(--ds-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.feature-name {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ds-foreground);
}

.feature-name-en {
  margin-top: 4px;
  color: var(--ds-muted);
  font-size: 0.82rem;
}

.feature-level {
  color: var(--ds-action);
  font-size: 0.82rem;
  font-weight: 700;
}

.feature-price-cell {
  font-weight: 600;
  color: var(--ds-foreground);
}

.feature-empty {
  color: var(--ds-muted);
}

.ops-note {
  color: var(--ds-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

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

.plan-card {
  padding: 20px;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  background: var(--ds-surface);
}

.plan-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ds-foreground);
}

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

.plan-price span {
  color: var(--ds-muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.plan-desc {
  margin-top: 8px;
  color: var(--ds-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

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

.plan-card li {
  padding: 10px 0;
  border-top: 1px solid var(--ds-border);
  color: var(--ds-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.handover-info {
  color: var(--ds-foreground);
  font-size: 0.94rem;
  line-height: 1.8;
}

.handover-info p {
  margin: 0;
}

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

.handover-formula {
  padding: 14px 16px;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  background: var(--ds-surface-alt);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.9rem;
}

.faq-item {
  border-top: 1px solid var(--ds-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(--ds-foreground);
  font: inherit;
  font-size: 0.96rem;
  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(--ds-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.pricing-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.pricing-cta .lead {
  max-width: 620px;
}

@media (max-width: 960px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .policy-item {
    padding-right: 0;
    padding-bottom: 20px;
    border-right: none;
    border-bottom: 1px solid var(--ds-border);
  }

  .policy-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .pricing-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .pricing-hero,
  .pricing-policy,
  .levels-section,
  .categories-section,
  .comparison-section,
  .handover-section,
  .faq-section,
  .pricing-cta {
    padding: 24px;
  }

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

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

  .category-header {
    gap: 12px;
  }

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