.hero-product-paths.has-three-products,
.product-choice-grid.has-three-products,
.final-product-links.has-three-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-paths.has-four-paths,
.pricing-grid.has-four-plans {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-grid.has-four-plans .pricing-card {
  min-width: 0;
}

.pricing-scholar-logo {
  width: 92px;
  max-width: 92px;
  max-height: 92px;
  border-radius: 20px;
}

.combined-logo-row.has-three-tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.combined-logo-row.has-three-tools .product-logo-frame {
  width: 100%;
}

.combined-logo-row.has-three-tools .pricing-scholar-logo {
  width: 70px;
  max-width: 70px;
  max-height: 70px;
}

.scholar-product-card {
  border-color: rgba(243, 191, 79, 0.42);
}

.scholar-product-card .product-audience {
  color: #664313;
  background: #fff1ce;
}

.scholar-home-logo {
  width: 144px;
  max-width: 144px;
  max-height: 144px;
  border-radius: 28px;
  box-shadow: 0 20px 38px rgba(102, 67, 19, 0.16);
}

.scholar-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.86fr);
  align-items: center;
}

.scholar-page-logo {
  width: 156px;
  max-width: 156px;
  max-height: 156px;
  margin: 10px 0 18px;
  border-radius: 30px;
  box-shadow: 0 22px 44px rgba(102, 67, 19, 0.18);
}

.scholar-proof-row article {
  border-color: rgba(243, 191, 79, 0.34);
}

.scholar-register-preview {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 32px);
}

.scholar-register-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.scholar-register-top img {
  width: 76px;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(102, 67, 19, 0.16);
}

.scholar-register-top span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scholar-register-top strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.scholar-scan-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #f7fcfb;
  border: 1px solid rgba(20, 124, 124, 0.2);
  border-radius: 8px;
}

.scholar-scan-line {
  height: 58px;
  background:
    linear-gradient(90deg, transparent 0 7%, #163139 7% 11%, transparent 11% 15%, #163139 15% 17%, transparent 17% 24%, #163139 24% 30%, transparent 30% 37%, #163139 37% 41%, transparent 41% 49%, #163139 49% 56%, transparent 56% 62%, #163139 62% 66%, transparent 66% 72%, #163139 72% 80%, transparent 80% 84%, #163139 84% 88%, transparent 88% 100%),
    linear-gradient(180deg, transparent 45%, rgba(238, 123, 98, 0.9) 45% 55%, transparent 55%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scholar-student-row,
.scholar-checkout-row,
.scholar-receipt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.scholar-student-row span,
.scholar-checkout-row span,
.scholar-receipt-row span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.scholar-student-row strong,
.scholar-checkout-row strong,
.scholar-receipt-row strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
  line-height: 1.16;
}

.scholar-balance-pill,
.scholar-price-pill,
.scholar-receipt-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 40px;
  padding: 8px 12px;
  font-weight: 900;
  border-radius: 999px;
}

.scholar-balance-pill {
  color: var(--teal-dark);
  background: var(--mint);
}

.scholar-price-pill {
  color: #664313;
  background: #fff1ce;
}

.scholar-receipt-pill {
  color: #244f75;
  background: var(--sky);
}

.scholar-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  padding: 16px;
  color: var(--white);
  background: var(--teal-dark);
  border-radius: 8px;
  font-weight: 900;
}

.scholar-total-bar small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.scholar-feature-band {
  padding-block: clamp(46px, 7vw, 82px);
  border-top: 1px solid var(--line);
}

.scholar-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.scholar-feature-grid article {
  padding: clamp(22px, 3vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(20, 64, 72, 0.07);
}

.scholar-feature-grid span {
  color: #664313;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scholar-feature-grid h3 {
  margin: 8px 0 10px;
  font-size: 1.35rem;
  line-height: 1.12;
}

.scholar-feature-grid p {
  margin: 0;
  color: var(--muted);
}

.scholar-support-band .privacy-stamp {
  color: #664313;
  border-color: #d69b25;
  box-shadow: inset 0 0 0 5px #fff1ce, 0 14px 28px rgba(102, 67, 19, 0.11);
}

.scholar-support-band .trust-grid span,
.scholar-walkthrough .walkthrough-grid span {
  color: #664313;
  background: #fff1ce;
}

@media (max-width: 1180px) {
  .hero-product-paths.has-three-products,
  .product-choice-grid.has-three-products,
  .final-product-links.has-three-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-paths.has-four-paths,
  .pricing-grid.has-four-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .scholar-hero,
  .scholar-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero-product-paths.has-three-products,
  .product-choice-grid.has-three-products,
  .final-product-links.has-three-products,
  .demo-paths.has-four-paths,
  .pricing-grid.has-four-plans,
  .combined-logo-row.has-three-tools {
    grid-template-columns: 1fr;
  }

  .scholar-student-row,
  .scholar-checkout-row,
  .scholar-receipt-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .scholar-total-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .scholar-balance-pill,
  .scholar-price-pill,
  .scholar-receipt-pill {
    justify-self: start;
  }
}
