/* Pricing page: the comparison board keeps its three-column structure through tablet widths. */
.pricing-page {
  background: #fff;
}

.pricing-hero {
  padding: 38px 0 72px;
  background: #fff;
}

.pricing-heading {
  margin: 0 auto 38px;
  text-align: center;
}

.pricing-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 0 12px 4px;
  border-bottom: 3px solid #e51b23;
  color: #e51b23;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.pricing-heading h1 {
  margin: 0 0 16px;
  color: #252427;
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1.35;
  font-weight: 900;
}

.pricing-lead {
  margin: 0;
  color: #29282b;
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 700;
}

.pricing-board {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  padding: 18px 24px 34px;
  border-radius: 8px;
  background: #f1f3f4;
}

.pricing-board-top {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 76px;
  text-align: center;
}

.pricing-price {
  position: relative;
  z-index: 3;
  width: max-content;
  margin-inline: auto;
  text-align: center;
}

.pricing-price-label {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 0;
  color: #28272a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

.pricing-price-label small {
  margin-right: 2px;
  font-size: 11px;
}

.pricing-price-label strong {
  font-size: clamp(48px, 4.5vw, 60px);
  letter-spacing: -0.03em;
}

.pricing-price-note {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 700;
}

.pricing-avatar {
  position: absolute;
  top: -10px;
  left: calc(50% + clamp(180px, 15vw, 220px));
  z-index: 1;
  width: 145px;
  height: auto;
}

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

.pricing-table {
  position: relative;
  z-index: 2;
  border: 1px solid #bfc1c4;
  background: #fff;
}

.pricing-plan {
  min-width: 0;
  border-right: 1px solid #bfc1c4;
  background: #fff;
  text-align: center;
}

.pricing-plan:last-child {
  border-right: 0;
}

.pricing-plan h2 {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 4px 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.pricing-plan h2 img {
  width: 55px;
  height: auto;
}

.pricing-plan--minimum h2 { background: #f5c9db; color: #29272a; }
.pricing-plan--standard h2 { background: #e31b23; }
.pricing-plan--premium h2 { background: #252123; }

.pricing-plan-body {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 7px;
  color: #29282b;
  font-size: 15px;
  line-height: 1.55;
}

.pricing-plan-body strong,
.pricing-plan-body b {
  font-size: 17px;
  font-weight: 900;
}

.pricing-plan-body b {
  font-size: 1em;
}

.pricing-plan-body sup {
  font-size: .7em;
}

.pricing-option-row {
  position: relative;
  min-height: 86px;
  border-right: 1px solid #bfc1c4;
  border-bottom: 1px solid #bfc1c4;
  border-left: 1px solid #bfc1c4;
  background: #fff;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

.pricing-option-unavailable {
  position: relative;
  grid-column: 1;
  align-self: stretch;
  border-right: 1px solid #bfc1c4;
  background: #fafafa;
}

.pricing-option-unavailable::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    transparent calc(50% - .75px),
    #9da2a8 calc(50% - .75px),
    #9da2a8 calc(50% + .75px),
    transparent calc(50% + .75px)
  );
  pointer-events: none;
}

.pricing-option-available {
  position: relative;
  display: flex;
  grid-column: 2 / 4;
  min-width: 0;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  --pricing-option-image-width: 190px;
  padding-right: var(--pricing-option-image-width);
  background: #fff;
}

.pricing-option-available p {
  margin: 0;
  padding: 5px 8px;
  color: #29282b;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.pricing-option-label {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-self: stretch;
  width: var(--pricing-option-image-width);
  height: 100%;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
}

.pricing-option-image {
  display: block;
  width: var(--pricing-option-image-width);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.pricing-feature-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 82px;
  align-items: center;
  border-right: 1px solid #bfc1c4;
  border-bottom: 1px solid #bfc1c4;
  border-left: 1px solid #bfc1c4;
  background: #fff;
}

.pricing-feature-row span {
  padding: 4px 8px;
  border-right: 1px solid #c7c9cc;
  color: #29282b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.pricing-feature-row span:last-child { border-right: 0; }

.pricing-note {
  margin: 10px 0 0;
  color: #2e2d30;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.pricing-academic {
  width: min(calc(100% - 40px), 1120px);
  min-height: 76px;
  margin: 16px auto 0;
  padding: 20px 24px;
  border-radius: 4px;
  background: #f4ebba;
  color: #2b2929;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.pricing-plan-list-mobile,
.pricing-mobile-features {
  display: none;
}

.pricing-flow {
  overflow: hidden;
  background: #fff;
}

.pricing-flow-heading {
  padding: 64px 20px 0;
  text-align: center;
}

.pricing-flow-label {
  display: inline-block;
  margin: 0 0 14px;
  padding: 0 12px 5px;
  border-bottom: 3px solid #e51b23;
  color: #e51b23;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.pricing-flow-heading h2 {
  margin: 0 0 12px;
  color: #252427;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.3;
  font-weight: 900;
}

.pricing-flow-lead {
  margin: 0 0 40px;
  color: #29282b;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
}

.pricing-flow-steps {
  display: flex;
  width: fit-content;
  max-width: calc(100% - 40px);
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.pricing-flow-step {
  position: relative;
  flex: 0 0 auto;
  width: clamp(185px, 15vw, 220px);
  color: #3a3437;
  text-align: center;
}

.pricing-flow-step:nth-child(1) { z-index: 5; }
.pricing-flow-step:nth-child(2) { z-index: 4; margin-left: -22px; }
.pricing-flow-step:nth-child(3) { z-index: 3; margin-left: -22px; }
.pricing-flow-step:nth-child(4) { z-index: 2; margin-left: -22px; }
.pricing-flow-step:nth-child(5) { z-index: 1; margin-left: -22px; }

.pricing-flow-step-bg {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.pricing-flow-step-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 34%;
  padding-left: 10%;
  padding-right: 8%;
  text-align: center;
}

.pricing-flow-step-number {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pricing-flow-step-title {
  display: block;
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
  white-space: nowrap;
}

.pricing-flow-step-text {
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.page-contact-cta-copy {
  padding: 58px 20px 34px;
  text-align: center;
}

.page-contact-cta-copy h3 {
  margin: 0 0 16px;
  color: #252427;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.4;
  font-weight: 900;
}

.page-contact-cta-copy p {
  margin: 0;
  color: #29282b;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .pricing-hero { padding-top: 30px; }
  .pricing-board,
  .pricing-academic { width: min(calc(100% - 36px), 1040px); }
}

@media (min-width: 800px) and (max-width: 1180px) {
  .pricing-price-label strong { font-size: clamp(44px, 4.2vw, 50px); }
  .pricing-plan h2 { font-size: clamp(18px, 1.7vw, 20px); }
  .pricing-plan-body { font-size: clamp(13px, 1.2vw, 14px); }
  .pricing-plan-body strong { font-size: clamp(14px, 1.4vw, 16px); }
  .pricing-avatar {
    left: calc(50% + clamp(125px, 15vw, 180px));
    width: clamp(116px, 13vw, 140px);
  }
  .pricing-option-available {
    --pricing-option-image-width: 180px;
    padding-right: var(--pricing-option-image-width);
  }
  .pricing-option-label {
    width: var(--pricing-option-image-width);
  }
  .pricing-option-image {
    width: var(--pricing-option-image-width);
  }
  .pricing-option-available p { font-size: clamp(13px, 1.25vw, 15px); }
  .pricing-feature-row span { font-size: clamp(12px, 1.1vw, 13px); }
  .pricing-flow-step { width: clamp(150px, 16.5vw, 185px); }
  .pricing-flow-step + .pricing-flow-step { margin-left: -18px; }
  .pricing-flow-step-content { padding-top: 34%; }
  .pricing-flow-step-title { font-size: 16px; }
  .pricing-flow-step-text { font-size: 11px; }
  .page-contact-cta-copy { padding-top: 50px; padding-bottom: 32px; }
}

@media (max-width: 800px) {
  .pricing-hero { padding: 24px 0 56px; }
  .pricing-heading { margin-bottom: 24px; }
  .pricing-heading h1 { font-size: 30px; }
  .pricing-lead { font-size: 14px; }
  .pricing-board {
    width: 100%;
    padding: 18px 14px 24px;
  }
  .pricing-board-top {
    display: block;
    min-height: 150px;
    overflow: visible;
    padding: 26px 118px 24px 16px;
  }
  .pricing-price {
    position: absolute;
    top: 26px;
    left: 50%;
    margin: 0;
    transform: translateX(calc(-50% - 16px));
  }
  .pricing-price-label { font-size: 18px; }
  .pricing-price-label strong { font-size: 42px; }
  .pricing-price-note { font-size: 10px; }
  .pricing-avatar {
    top: auto;
    right: 8px;
    bottom: -48px;
    left: auto;
    z-index: 1;
    width: clamp(105px, 29vw, 125px);
  }
  .pricing-table-desktop { display: none; }
  .pricing-plan-list-mobile {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 16px;
  }
  .pricing-mobile-card {
    overflow: hidden;
    border: 1px solid #cfd2d6;
    border-radius: 10px;
    background: #fff;
  }
  .pricing-mobile-card--minimum {
    position: relative;
    z-index: 2;
    background: #fff;
  }
  .pricing-mobile-card--standard { border: 2px solid #e31b23; }
  .pricing-mobile-card-header {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f5c9db;
  }
  .pricing-mobile-card--standard .pricing-mobile-card-header { background: #e31b23; color: #fff; }
  .pricing-mobile-card--premium .pricing-mobile-card-header { background: #252123; color: #fff; }
  .pricing-mobile-card-header h2 { margin: 0; font-size: 20px; line-height: 1.2; }
  .pricing-mobile-card-header img { width: 48px; height: auto; }
  .pricing-mobile-card-body { padding: 22px 18px; text-align: center; }
  .pricing-mobile-card-body strong { font-size: 17px; }
  .pricing-mobile-card-body p { margin: 5px 0 0; font-size: 15px; line-height: 1.7; }
  .pricing-mobile-card-body b { display: block; margin-top: 5px; font-size: 15px; }
  .pricing-mobile-option {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px 10px 18px;
    border-top: 1px solid #d6d8dc;
    background: #fff;
  }
  .pricing-mobile-option p { flex: 1 1 auto; margin: 0; font-size: 12px; font-weight: 800; line-height: 1.4; }
  .pricing-mobile-option img { display: block; flex: 0 0 auto; width: 126px; height: auto; object-fit: contain; }
  .pricing-mobile-features {
    display: block;
    margin-top: 20px;
    padding: 18px 14px;
    border: 1px solid #d4d7db;
    border-radius: 10px;
    background: #fff;
  }
  .pricing-mobile-features h2 { margin: 0 0 12px; font-size: 17px; text-align: center; }
  .pricing-mobile-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pricing-mobile-feature { padding: 10px 6px; border: 1px solid #e0e2e5; background: #f7f8f9; font-size: 12px; font-weight: 800; line-height: 1.45; text-align: center; }
  .pricing-mobile-feature:last-child { grid-column: 1 / -1; }
  .pricing-note { margin-top: 16px; font-size: 10px; line-height: 1.6; }
  .pricing-academic { width: 100%; min-height: 0; padding: 20px 18px; font-size: 15px; line-height: 1.7; }

  .pricing-flow-heading { padding-top: 66px; }
  .pricing-flow-lead { margin-bottom: 0; }
  .pricing-flow-steps {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 38px;
    padding-inline: 0;
  }
  .pricing-flow-step-bg { display: none; }
  .pricing-flow-step,
  .pricing-flow-step + .pricing-flow-step,
  .pricing-flow-step--1,
  .pricing-flow-step--2,
  .pricing-flow-step--3,
  .pricing-flow-step--4,
  .pricing-flow-step--5 {
    width: min(calc(100% - 32px), 420px);
    display: block;
    flex: none;
    margin: 0 auto 14px;
    z-index: auto;
    min-height: 0;
    padding: 22px 20px 26px;
    background: #fae2e5;
    text-align: center;
    clip-path: none;
  }
  .pricing-flow-step:nth-child(n) { z-index: auto; }
  .pricing-flow-step::after {
    position: absolute;
    bottom: -12px;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 12px solid #fae2e5;
    border-right: 16px solid transparent;
    border-left: 16px solid transparent;
    content: "";
    transform: translateX(-50%);
  }
  .pricing-flow-steps .pricing-flow-step.pricing-flow-step--4 { background: #fac1ba; }
  .pricing-flow-steps .pricing-flow-step.pricing-flow-step--4::after { border-top-color: #fac1ba; }
  .pricing-flow-step--5 { margin-bottom: 0; }
  .pricing-flow-step--5::after { display: none; }
  .pricing-flow-step-content {
    position: static;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
  }
  .pricing-flow-step-number {
    position: static;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #e51b23;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    clip: auto;
  }
  .pricing-flow-step-title { margin-top: 10px; font-size: 20px; line-height: 1.35; }
  .pricing-flow-step-text { margin-top: 5px; font-size: 14px; line-height: 1.65; }
  .page-contact-cta-copy { padding: 52px 20px 32px; }
  .page-contact-cta-copy h3 { max-width: 340px; margin-inline: auto; font-size: 22px; text-wrap: balance; }
  .page-contact-cta-copy p { font-size: 15px; }
  .page-contact-cta-band { min-height: 196px; padding-top: 22px; }
  .page-contact-cta-arrow { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .pricing-heading h1 { font-size: 28px; }
  .pricing-price { transform: translateX(calc(-50% - 34px)); }
  .pricing-price-label { gap: 2px; font-size: 15px; }
  .pricing-price-label small { font-size: 9px; }
  .pricing-price-label strong { font-size: 30px; }
  .pricing-avatar { right: 4px; bottom: -44px; width: clamp(100px, 30vw, 116px); }
  .pricing-mobile-card-header h2 { font-size: 18px; }
  .pricing-mobile-card-body { padding: 18px 14px; }
  .pricing-mobile-card-body strong { font-size: 16px; }
  .pricing-mobile-card-body p { font-size: 14px; }
  .pricing-mobile-option p { font-size: 11px; }
  .pricing-mobile-option img { width: 112px; }
  .pricing-flow-heading { padding-inline: 14px; }
  .pricing-flow-heading h2 { font-size: 28px; }
  .pricing-flow-lead { font-size: 12px; line-height: 1.6; }
  .pricing-flow-steps { width: calc(100% - 28px); }
  .page-contact-cta-copy { padding-inline: 14px; }
  .page-contact-cta-copy h3 { font-size: 20px; }
  .page-contact-cta-copy p { line-height: 1.6; }
  .page-contact-cta-button { min-height: 52px; font-size: 17px; }
}
