.pricing-hero {
  padding: 80px 24px 62px;
  background: radial-gradient(ellipse at 50% 100%, #eaf0fe 0, #f5f7fb 65%);
  text-align: center;
}
.pricing-hero .eyebrow,
.pricing-close .eyebrow {
  justify-content: center;
}
.pricing-hero h1 {
  margin: 20px 0 22px;
  color: var(--ink, #19283f);
  font-size: clamp(40px, 4.8vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.pricing-hero h1 span {
  color: var(--brand-primary, #0648c5);
}
.pricing-hero > p:not(.eyebrow) {
  color: var(--muted, #627086);
  font-size: 18px;
  line-height: 1.6;
}
.pricing-hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 26px;
  color: #536279;
  font-size: 13px;
}
.pricing-hero-points span::before {
  content: '✓';
  margin-right: 7px;
  color: #23744f;
  font-weight: 700;
}
.plans-section,
.comparison,
.credits-section,
.faq-section {
  width: min(1184px, calc(100% - 80px));
  margin-inline: auto;
  padding-block: 64px;
}
.plans-section {
  padding-block: 52px 68px;
}
.plans-section h2,
.comparison h2,
.credits-section h2,
.faq-section h2,
.pricing-close h2 {
  color: var(--ink, #19283f);
  font-size: clamp(29px, 3.1vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}
.plan-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.plan-controls h2 {
  font-size: 29px;
}
.plan-controls p,
.comparison > p:not(.eyebrow) {
  margin-top: 12px;
  color: #627086;
}
.billing {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  gap: 3px;
  padding: 5px;
  margin: 0;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  background: #f5f7fb;
}
.billing label {
  position: relative;
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #536279;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.billing label:has(:checked) {
  background: #0648c5;
  color: #fff;
  box-shadow: 0 2px 6px #19283f12;
}
.billing input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  padding: 0;
}
.billing label:focus-within {
  outline: 3px solid #0648c5;
  outline-offset: 2px;
}
.billing label span {
  padding: 3px 7px;
  border-radius: 6px;
  background: #e5f2e9;
  color: #23744f;
  font-size: 11px;
  white-space: nowrap;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-radius: 16px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 24px 24px;
  border: 1px solid #e0e6ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px #19283f04;
}
.plan-card.featured {
  border: 2px solid #0648c5;
  padding: 27px 23px 23px;
  box-shadow: 0 8px 28px #0648c511;
}
.plan-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 31px;
}
.plan-card h3 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.plan-card .badge {
  padding: 5px 8px;
  border-radius: 6px;
  background: #eaf0fe;
  color: #0648c5;
  font-size: 11px;
  font-weight: 700;
}
.plan-card .audience {
  min-height: 47px;
  margin-top: 13px;
  color: #627086;
  font-size: 14px;
  line-height: 1.6;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 24px;
  color: #19283f;
  font-size: clamp(39px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.05em;
}
.price small,
.price > span {
  color: #627086;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}
.billing-total {
  min-height: 40px;
  margin-top: 9px;
  color: #627086;
  font-size: 12px;
  line-height: 1.55;
}
.plan-grid[data-billing='annual'] .billing-total {
  min-height: 88px;
}
.annual-charge,
.annual-comparison {
  display: block;
}
.annual-charge {
  font-size: 13px;
}
.annual-savings {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #e5f2e9;
  color: #23744f;
  font-size: 15px;
  font-weight: 700;
}
.annual-comparison {
  margin-top: 4px;
  font-size: 12px;
}
.plan-card .button {
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  margin-block: 19px 24px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
}
.button.plan-secondary {
  border: 1px solid #d5deec;
  background: #fff;
  color: #19283f;
}
.button.plan-secondary:hover {
  border-color: #0648c5;
  background: #f5f7fb;
  color: #0648c5;
}
.button[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}
.plan-allowances {
  display: grid;
  gap: 12px;
  padding-block: 20px;
  border-block: 1px solid #e0e6ef;
}
.plan-allowances p {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #19283f;
  font-size: 12px;
}
.plan-allowances strong {
  font-weight: 600;
}
.plan-allowances img {
  flex: 0 0 18px;
}
.plan-card ul {
  display: grid;
  gap: 12px;
  padding: 22px 0 26px;
  margin: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
}
.plan-card li {
  position: relative;
  padding-left: 22px;
  color: #536279;
}
.plan-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #23744f;
  font-weight: 700;
}
.plan-ai {
  padding: 15px 12px;
  margin-top: auto;
  border: 1px solid #dce6fd;
  border-radius: 10px;
  background: #f3f6fe;
}
.plan-ai > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #0648c5;
  font-size: 13px;
}
.plan-ai > span {
  display: block;
  margin-top: 6px;
  color: #536279;
  font-size: 11px;
}
.pricing-note,
.comparison-note,
#pricing-error {
  max-width: 940px;
  margin-top: 18px;
  color: #627086;
  font-size: 12px;
  line-height: 1.65;
}
#pricing-error {
  color: var(--danger, #a52f46);
}
.carousel-controls {
  display: none;
}
.comparison {
  padding-top: 76px;
}
.comparison h2 {
  margin-top: 17px;
}
.table-scroll {
  overflow: auto;
  margin-top: 32px;
  border: 1px solid #e0e6ef;
  border-radius: 16px;
  scrollbar-color: #b4c6e7 #f5f7fb;
  scrollbar-width: thin;
}
.comparison table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 13px;
}
.comparison th,
.comparison td {
  padding: 18px 20px;
  border-bottom: 1px solid #e0e6ef;
  text-align: center;
}
.comparison th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 37%;
  background: white;
  text-align: left;
  font-weight: 500;
}
.comparison thead th {
  padding-block: 24px;
  background: #fff;
}
.comparison thead th:first-child {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.compare-plan {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.compare-plan strong {
  font-size: 19px;
  letter-spacing: -0.025em;
}
.compare-plan .button {
  width: 100%;
  justify-content: center;
  padding: 10px 8px;
  min-height: 42px;
  border-radius: 9px;
  font-size: 12px;
}
.comparison td:nth-child(3),
.comparison thead th:nth-child(3) {
  background: #f5f8ff;
}
.comparison .comparison-group th {
  padding-block: 13px;
  background: #f5f7fb;
  color: #536279;
  font-size: 12px;
  font-weight: 600;
}
.comparison tbody tr:last-child th,
.comparison tbody tr:last-child td {
  border-bottom: 0;
}
.feature-check {
  color: #23744f;
  font-size: 19px;
  font-weight: 600;
}
.feature-absent {
  color: #7c899b;
}
.credits-section {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 70px;
  align-items: start;
  border-top: 1px solid #e0e6ef;
  padding-top: 70px;
}
.credits-intro h2 {
  margin-block: 18px 20px;
}
.credits-intro > p:not(.eyebrow) {
  color: #627086;
  font-size: 16px;
  line-height: 1.65;
}
.credits-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: #0648c5;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.credits-link:hover {
  text-decoration: underline;
}
.credits-card {
  padding: 28px;
  border: 1px solid #e0e6ef;
  border-radius: 16px;
  background: #fff;
}
.credits-card-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.credits-card-heading h3 {
  font-size: 19px;
  letter-spacing: -0.025em;
}
.credits-card-heading > span {
  padding: 4px 7px;
  border-radius: 5px;
  background: #f0f3f8;
  color: #536279;
  font-size: 10px;
}
.credit-example {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding-block: 17px;
  border-bottom: 1px solid #e0e6ef;
  font-size: 13px;
  line-height: 1.5;
}
.credit-example > span {
  color: #536279;
}
.credit-example strong {
  flex-shrink: 0;
  color: #0648c5;
  font-weight: 600;
}
.credits-example-note,
.credits-availability {
  margin-top: 20px;
  color: #627086;
  font-size: 12px;
  line-height: 1.7;
}
.credit-rules {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 20px;
  border-radius: 10px;
  background: #f5f7fb;
  color: #536279;
  font-size: 12px;
  line-height: 1.6;
}
.credit-rules strong {
  color: #19283f;
}
.credits-availability {
  padding-top: 17px;
  border-top: 1px solid #e0e6ef;
  font-size: 11px;
}
.faq-section {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 70px;
  align-items: start;
  padding-bottom: 88px;
}
.faq-section h2 {
  max-width: 340px;
}
.faq-section details {
  padding: 21px 0;
  border-bottom: 1px solid #e0e6ef;
}
.faq-section details:first-child {
  padding-top: 0;
}
.faq-section summary {
  color: #19283f;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.faq-section details p {
  margin-top: 14px;
  color: #627086;
  font-size: 14px;
  line-height: 1.7;
}
.pricing-close {
  padding: 68px 24px;
  background: #eaf0fe;
  text-align: center;
}
.pricing-close h2 {
  margin-block: 18px 26px;
}
.pricing-close .button {
  min-width: 170px;
  justify-content: center;
}
.pricing-close > p:last-child {
  margin-top: 16px;
  color: #536279;
  font-size: 12px;
}
@media (max-width: 1120px) {
  .plans-section,
  .comparison,
  .credits-section,
  .faq-section {
    width: calc(100% - 48px);
  }
  .plan-card {
    padding-inline: 18px;
  }
  .plan-card.featured {
    padding-inline: 17px;
  }
  .plan-card-title {
    align-content: start;
    min-height: 60px;
  }
  .plan-card .audience {
    min-height: 67px;
  }
  .plan-allowances p {
    font-size: 11px;
  }
  .credits-section,
  .faq-section {
    gap: 40px;
  }
}
@media (max-width: 760px) {
  .pricing-hero {
    padding: 48px 20px 38px;
  }
  .pricing-hero h1 {
    font-size: clamp(36px, 7vw, 52px);
  }
  .pricing-hero > p:not(.eyebrow) {
    font-size: 16px;
  }
  .pricing-hero-points {
    gap: 9px 16px;
    font-size: 11px;
  }
  .plans-section,
  .comparison,
  .credits-section,
  .faq-section {
    width: calc(100% - 40px);
    padding-block: 42px;
  }
  .plan-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 24px;
  }
  .plan-controls h2 {
    font-size: 27px;
  }
  .plan-controls p {
    font-size: 14px;
  }
  .billing {
    width: 100%;
  }
  .billing label {
    flex: 1;
    justify-content: center;
  }
  .plan-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    gap: 16px;
    padding: 2px 20px 12px 2px;
    margin-right: -20px;
    border-radius: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .plan-grid::-webkit-scrollbar {
    display: none;
  }
  .plan-card {
    scroll-snap-align: start;
    padding: 24px;
  }
  .plan-card.featured {
    padding: 23px;
  }
  .plan-card-title {
    min-height: 31px;
  }
  .plan-card .audience {
    min-height: 47px;
  }
  .plan-card ul {
    font-size: 14px;
  }
  .plan-allowances p {
    font-size: 12px;
  }
  .plan-ai > div {
    font-size: 13px;
  }
  .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    color: #627086;
    font-size: 12px;
  }
  .carousel-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid #e0e6ef;
    border-radius: 10px;
    background: #fff;
    color: #19283f;
    font-size: 18px;
    cursor: pointer;
  }
  .carousel-controls button:disabled {
    opacity: 0.4;
    cursor: default;
  }
  .pricing-note {
    margin-top: 20px;
    font-size: 11px;
  }
  .comparison > p:not(.eyebrow) {
    font-size: 14px;
  }
  .comparison table {
    min-width: 680px;
  }
  .comparison th,
  .comparison td {
    padding: 15px 12px;
    font-size: 12px;
  }
  .comparison th:first-child {
    width: 180px;
    box-shadow: 3px 0 5px #19283f06;
  }
  .comparison thead th:first-child {
    font-size: 15px;
  }
  .compare-plan strong {
    font-size: 17px;
  }
  .credits-section,
  .faq-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .credits-intro h2 br {
    display: none;
  }
  .credits-card {
    padding: 22px 18px;
  }
  .credit-example {
    gap: 15px;
    font-size: 12px;
  }
  .credit-rules {
    padding: 17px;
  }
  .faq-section h2 {
    max-width: 400px;
  }
  .pricing-close {
    padding: 48px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
