.pricing-section,
.feedback-section {
  color: var(--foreground);
  font-family: var(--font-ui);
}

.pricing-section *,
.feedback-section * {
  box-sizing: border-box;
}

.pricing-section {
  padding: 128px 0;
  background: var(--background);
}

.feedback-section {
  padding: 128px 0;
  background: var(--background);
}

.section-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-header {
  max-width: 672px;
  margin: 0 auto 48px;
  text-align: center;
}

.feedback-section .section-header {
  margin-bottom: 64px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 16px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  background: var(--background);
  box-shadow: var(--shadow-xs);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.section-heading {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.section-description {
  margin: 0 0 32px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.5;
}

.feedback-section .section-description {
  margin-bottom: 0;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 999px;
  color: var(--foreground);
  background: var(--muted);
}

.billing-toggle button {
  min-width: 104px;
  height: 32px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--foreground);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.billing-toggle button[aria-pressed="true"] {
  border-color: var(--border);
  background: var(--background);
  box-shadow: var(--shadow-xs);
}

.billing-note {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 14px;
}

.billing-note strong {
  color: var(--foreground);
  font-weight: 600;
}

.pricing-frame {
  max-width: 1152px;
  margin: 0 auto;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 12px;
}

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

.pricing-plan {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 24px;
  padding: 32px;
}

.pricing-plan.is-popular {
  margin: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--background) 92%, transparent);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--foreground) 12%, transparent);
  backdrop-filter: blur(8px);
}

.plan-name {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.plan-description,
.plan-price-note {
  color: var(--muted-foreground);
  font-size: 14px;
}

.plan-description {
  min-height: 42px;
  line-height: 1.5;
}

.plan-price {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
}

.section-button {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  background: var(--background);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.section-button:hover {
  background: var(--muted);
}

.section-button.primary {
  border-color: var(--primary);
  color: var(--primary-foreground);
  background: var(--primary);
}

.section-button.primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, var(--background));
}

.plan-button {
  width: 100%;
  margin: 8px 0;
}

.plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 22px;
}

.plan-features li + li {
  margin-top: 12px;
}

.plan-features .feature-intro {
  font-weight: 500;
}

.plan-features svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted-foreground);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-question {
  margin: 64px 0 0;
  color: var(--muted-foreground);
  text-align: center;
  font-size: 14px;
}

.pricing-question a {
  color: var(--foreground);
  font-weight: 500;
}

.pricing-question a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
}

.feedback-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feedback-options .feedback-card {
  cursor: pointer;
}

.feedback-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--foreground);
  background: var(--background);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 150ms ease;
}

.feedback-card:hover {
  box-shadow: var(--shadow-md);
}

.feedback-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.feedback-card-title svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-card-body p {
  margin: 0 0 12px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.5;
}

.feedback-card .section-button {
  align-self: flex-start;
  height: 32px;
  padding-inline: 12px;
  font-size: 13px;
}

.feedback-form-card {
  align-self: start;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-field label {
  font-size: 14px;
  font-weight: 500;
}

.feedback-field input,
.feedback-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--input);
  border-radius: 8px;
  outline: none;
  color: var(--foreground);
  background: transparent;
  box-shadow: var(--shadow-xs);
  font: inherit;
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.feedback-field input {
  height: 36px;
  padding: 4px 12px;
}

.feedback-field textarea {
  min-height: 200px;
  padding: 8px 12px;
  resize: vertical;
}

.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 1;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px var(--focus-shadow);
}

.feedback-field input[aria-invalid="true"],
.feedback-field textarea[aria-invalid="true"] {
  border-color: var(--site-red);
}

.field-error {
  min-height: 0;
  margin: 0;
  color: var(--site-red);
  font-size: 12px;
}

.field-error:empty {
  display: none;
}

.feedback-submit {
  width: 100%;
}

@media (max-width: 1023px) {
  .pricing-grid,
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .pricing-plan {
    grid-template-rows: auto;
  }

  .feedback-form-card {
    order: 1;
  }

  .feedback-options {
    order: 2;
  }
}

@media (max-width: 639px) {
  .pricing-section,
  .feedback-section {
    padding: 96px 0;
  }

  .section-container {
    padding: 0 16px;
  }

  .section-heading {
    font-size: 24px;
  }

  .section-description {
    font-size: 12px;
  }

  .pricing-frame {
    overflow: hidden;
  }

  .pricing-plan {
    padding: 32px 28px;
  }

  .pricing-plan.is-popular {
    margin: 8px 14px;
  }

  .plan-description {
    min-height: 0;
  }

  .feedback-grid {
    gap: 32px;
  }

  .form-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .billing-toggle button {
    min-width: 0;
  }
}