.pricing-page {
  --p-surface: #ffffff;
  --p-border: rgba(15, 23, 42, 0.12);
  --p-border-strong: rgba(15, 75, 143, 0.3);
  --p-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  --p-shadow-hover: 0 16px 30px rgba(15, 23, 42, 0.11);
  --p-radius: 14px;
  --p-text: #1f2937;
  --p-muted: #556476;
  --p-accent: #0f4b8f;
  --p-soft: rgba(15, 75, 143, 0.08);
  background:
    radial-gradient(900px 600px at 5% -10%, rgba(31, 59, 131, 0.1), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(15, 75, 143, 0.12), transparent 55%),
    var(--bg);
}

.pricing-page .container {
  max-width: 1160px;
}

.pricing-main {
  padding-bottom: 64px;
}

.pricing-section {
  padding: 50px 0;
}

.pricing-section.pricing-hero {
  padding-top: 34px;
  padding-bottom: 20px;
}

.pricing-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.pricing-hero p {
  margin: 12px 0 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.5;
  color: #2f3d4f;
  font-weight: 400;
}

.pricing-hero .hero-trust {
  margin-top: 10px;
  font-size: 14px;
  color: #425164;
  font-weight: 500;
}

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

.tier-card {
  grid-column: span 4;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
  padding: 20px;
  display: grid;
  gap: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tier-card:nth-child(4) {
  grid-column: 3 / span 4;
}

.tier-card:nth-child(5) {
  grid-column: 7 / span 4;
}

.tier-card:hover {
  transform: translateY(-2px);
  border-color: var(--p-border-strong);
  box-shadow: var(--p-shadow-hover);
}

.tier-card.is-estimated {
  border-color: rgba(15, 75, 143, 0.4);
  box-shadow: 0 14px 28px rgba(15, 75, 143, 0.14);
}

.tier-head {
  display: grid;
  gap: 10px;
}

.tier-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
}

.tier-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}

.tier-badge {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  font-weight: 500;
}

.tier-badge-recommended {
  color: #0f4b8f;
  background: rgba(15, 75, 143, 0.1);
  border: 1px solid rgba(15, 75, 143, 0.28);
}

.tier-badge-best {
  color: #0e5d8a;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.28);
}

.tier-price {
  margin: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.tier-amount {
  font-size: clamp(33px, 3.2vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 620;
  color: #10253d;
  white-space: nowrap;
}

.tier-unit {
  font-size: 16px;
  color: #4f5e70;
  font-weight: 500;
  white-space: nowrap;
}

.tier-volume,
.tier-commit {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--p-muted);
  font-weight: 400;
}

.tier-commit {
  color: #6b7889;
}

.tier-body {
  display: grid;
  gap: 8px;
}

.tier-list-title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.01em;
  font-weight: 600;
  color: #243445;
}

.tier-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #344457;
  font-weight: 400;
}

.tier-diff {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #455569;
  font-weight: 500;
}

.tier-actions {
  margin-top: auto;
}

.pricing-page .btn {
  min-height: 42px;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
}

.pricing-page .btn.full {
  width: 100%;
}

.pricing-page .btn:focus-visible,
.pricing-page .addon-row-meta a:focus-visible,
.pricing-page .faq-item summary:focus-visible,
.pricing-page input:focus-visible {
  outline: 2px solid #1f3b83;
  outline-offset: 2px;
}

.section-title {
  margin: 0;
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.section-subtitle {
  margin: 10px 0 0;
  max-width: 780px;
  color: #455467;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
}

.addon-stack {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.addon-row {
  border: 1px solid var(--p-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--p-shadow);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

.addon-row-head {
  display: grid;
  gap: 4px;
}

.addon-group {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #657588;
  font-weight: 500;
}

.addon-row h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
}

.addon-row p {
  margin: 0;
  color: #405065;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.addon-badge {
  border-radius: 999px;
  border: 1px solid rgba(31, 59, 131, 0.25);
  background: rgba(31, 59, 131, 0.1);
  color: #173f74;
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  white-space: nowrap;
  font-weight: 500;
}

.addon-row-meta {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 8px;
  display: grid;
  gap: 6px;
}

.addon-row-meta span {
  font-size: 12px;
  color: #556477;
  font-weight: 500;
}

.addon-unit {
  color: #2d3f56;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.addon-row-meta a {
  width: fit-content;
  border-radius: 8px;
  border: 1px solid rgba(15, 75, 143, 0.2);
  background: rgba(15, 75, 143, 0.06);
  color: #0f4b8f;
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
}

.addon-row-meta a:hover {
  background: rgba(15, 75, 143, 0.1);
}

.panels-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  align-items: start;
}

.estimator-card,
.tailored-card {
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
  padding: 20px;
  display: grid;
  gap: 15px;
}

.estimator-card h3,
.tailored-card h3 {
  margin: 0;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 600;
}

.estimator-card p,
.tailored-card p {
  margin: 0;
  color: #405065;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.estimator-input {
  display: grid;
  gap: 6px;
}

.estimator-input label {
  color: #435266;
  font-size: 13px;
  font-weight: 600;
}

.estimator-input input {
  min-height: 46px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 11px;
  padding: 0 13px;
  font-size: 16px;
  color: #1f2c3e;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.estimator-help {
  margin: 0;
  color: #5f6c7d;
  font-size: 12px;
  font-weight: 400;
}

.fallback-toggle-row {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  padding: 12px 0;
}

.switch {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #dbe3ec;
  position: relative;
  transition: background 0.2s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch-track {
  background: #1f3b83;
}

.switch input:checked + .switch-track::after {
  transform: translateX(20px);
}

.switch-label {
  color: #243344;
  font-size: 13px;
  font-weight: 500;
}

.slider-wrap {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 11px;
  background: rgba(248, 250, 255, 0.85);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.slider-head span {
  color: #4a5a6f;
  font-size: 13px;
  font-weight: 500;
}

.slider-head strong {
  color: #1f3b83;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.slider-wrap input[type="range"] {
  width: 100%;
}

.cost-results {
  display: grid;
}

.cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.11);
  padding: 11px 0;
}

.cost-row span {
  font-size: 13px;
  color: #4d5c70;
  font-weight: 400;
}

.cost-row strong {
  font-size: 16px;
  color: #1f2d3f;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.3;
}

.cost-row.total strong {
  color: #133f75;
  font-size: 19px;
  font-weight: 600;
}

.contact-note {
  margin: 0;
  min-height: 18px;
  font-size: 12px;
  color: #4e5c6f;
  font-weight: 400;
}

.tailored-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #405165;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.faq-wrap {
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  background: var(--p-surface);
  box-shadow: var(--p-shadow);
  padding: 22px;
}

.faq-grid {
  margin-top: 16px;
  display: grid;
}

.faq-item {
  border-top: 1px solid rgba(15, 23, 42, 0.11);
  padding: 13px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(15, 23, 42, 0.11);
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding-right: 20px;
  font-size: 15px;
  color: #1e2b3b;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -1px;
  font-size: 18px;
  color: #5e6b7c;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 8px 0 0;
  color: #445366;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.pricing-footnote {
  margin-top: 12px;
  color: #5f6c7d;
  font-size: 12px;
  font-weight: 400;
}

#cc-open-settings {
  left: auto;
  right: 16px;
  bottom: 16px;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .tier-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tier-card {
    grid-column: span 3;
  }

  .tier-card:nth-child(4),
  .tier-card:nth-child(5) {
    grid-column: span 3;
  }

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

@media (max-width: 900px) {
  .pricing-section {
    padding: 42px 0;
  }

  .pricing-section.pricing-hero {
    padding-top: 28px;
    padding-bottom: 14px;
  }

  .pricing-hero h1 {
    font-size: 36px;
  }

  .pricing-hero p {
    font-size: 16px;
  }

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

  .tier-card,
  .tier-card:nth-child(4),
  .tier-card:nth-child(5) {
    grid-column: 1;
  }

  .tier-card {
    padding: 17px;
  }

  .tier-amount {
    font-size: 34px;
  }

  .addon-row,
  .estimator-card,
  .tailored-card,
  .faq-wrap {
    padding: 16px;
  }

  .estimator-card h3,
  .tailored-card h3 {
    font-size: 26px;
  }
}

@media (max-width: 580px) {
  .pricing-page .container {
    padding: 0 16px;
  }

  .tier-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .addon-unit {
    white-space: normal;
    overflow: visible;
  }

  .cost-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cost-row strong {
    white-space: normal;
  }

  .sh-mobile-actions {
    grid-template-columns: 1fr;
  }
}
