:root {
  --blue: #315fe8;
  --navy: #0e315f;
  --cyan: #21b7c6;
}
body {
  color: var(--navy);
  background: #fff;
}
main,
#member,
#school {
  width: 100%;
}
body > main {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.membership-header {
  height: 74px;
  padding-inline: max(32px, calc((100vw - 1280px) / 2 + 30px));
  background: #fffffff2;
  border-bottom: 1px solid #dce7f2;
}
.membership-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}
.membership-brand strong {
  font-size: 20px;
}
.membership-brand em {
  color: var(--blue);
  font-style: normal;
}
.brand-mark {
  position: relative;
  width: 31px;
  height: 31px;
}
.brand-mark i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid;
  border-radius: 50%;
}
.brand-mark i:nth-child(1) {
  top: 0;
  left: 6px;
  border-color: #4778f3;
}
.brand-mark i:nth-child(2) {
  bottom: 0;
  left: 0;
  border-color: #24b9ca;
}
.brand-mark i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-color: #43c98b;
}
.membership-header nav {
  margin-left: 60px;
  gap: 10px;
}
.membership-header nav a,
.membership-header nav button {
  width: auto;
  padding: 10px 14px;
  color: #657b96;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 13px;
  text-decoration: none;
}
.membership-header nav .active {
  color: #214fc7;
  background: #edf3ff;
}
.member-login {
  margin-left: auto;
  padding: 10px 16px;
  color: #fff;
  background: var(--blue);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.m-tab {
  display: none;
}
.m-tab.active {
  display: block;
}
.member-hero {
  min-height: 610px;
  padding: 80px max(30px, calc((100vw - 1280px) / 2 + 30px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 560px));
  align-items: center;
  justify-content: center;
  gap: 80px;
  text-align: left;
  background:
    radial-gradient(circle at 79% 28%, #c8f5ed 0, transparent 29%),
    linear-gradient(135deg, #f4f9ff, #f3fbf8);
}
.hero-copy {
  width: 100%;
  max-width: 700px;
}
.hero-copy > em,
.section-heading em,
.rules-section em,
.school-redirect em {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 2.1px;
}
.hero-copy h1 {
  margin: 20px 0;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1.12;
  letter-spacing: -2.5px;
}
.hero-copy > p {
  color: #58708d;
  font-size: 17px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin: 30px 0 25px;
}
.hero-actions a,
.final-cta > a,
.school-redirect a {
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}
.primary-link,
.school-redirect a {
  color: #fff;
  background: var(--blue);
}
.secondary-link {
  color: #2453c9;
  border: 1px solid #c7d7ef;
  background: #fff;
}
.hero-copy ul {
  display: flex;
  gap: 25px;
  padding: 0;
  color: #59718d;
  font-size: 13px;
  list-style: none;
}
.hero-copy li::before {
  content: '✓';
  margin-right: 7px;
  color: #16a982;
}
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  height: 420px;
}
.path-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  border: 1px solid #d8e5f1;
  border-radius: 18px;
  box-shadow: 0 22px 55px #173f7720;
}
.path-card-main {
  top: 40px;
  right: 5%;
  width: 82%;
  height: 210px;
  padding: 35px;
  color: #fff;
  background: linear-gradient(135deg, #173f8f, #3277ee);
  border: 0;
}
.path-card-main b {
  margin: auto 0 8px;
  font-size: 30px;
}
.path-card-main span {
  color: #dfeaff;
}
.path-card-a,
.path-card-b,
.path-card-c {
  bottom: 30px;
  width: 31%;
  min-height: 135px;
}
.path-card-a {
  left: 0;
}
.path-card-b {
  left: 34.5%;
}
.path-card-c {
  right: 0;
}
.path-card i {
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
}
.path-card b {
  margin-top: 20px;
}
.path-card span {
  margin-top: 6px;
  color: #73869d;
  font-size: 12px;
}
.membership-section {
  width: min(100%, 1260px);
  max-width: 1260px;
  margin-inline: auto;
  padding: 95px 30px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.section-heading h2,
.rules-section h2 {
  margin: 8px 0 0;
  font-size: 36px;
}
.section-heading > p {
  max-width: 510px;
  margin: 0;
  color: #6b7f98;
  line-height: 1.8;
}
.section-heading > a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan-card {
  padding: 29px;
  border: 1px solid #d8e5f1;
  border-radius: 20px;
  background: #fff;
  transition: 0.2s;
  cursor: pointer;
}
.plan-card:hover,
.plan-card.selected {
  transform: translateY(-4px);
  border-color: #7599f3;
  box-shadow: 0 20px 50px #173f7718;
}
.plan-top {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
}
.plan-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #fff;
  border-radius: 15px;
  font-size: 23px;
  font-weight: 900;
}
.humanities {
  background: #315fe8;
}
.science {
  background: #0e9c93;
}
.language {
  background: #7a62d3;
}
.selected-badge {
  height: max-content;
  padding: 5px 10px;
  color: #2453c9;
  background: #edf3ff;
  border-radius: 20px;
  font-size: 11px;
}
.plan-card > small {
  display: block;
  margin-top: 25px;
  color: #8294a9;
}
.plan-card h3 {
  margin: 9px 0;
  font-size: 24px;
}
.plan-card > p {
  min-height: 48px;
  color: #667c96;
}
.plan-card ul {
  min-height: 116px;
  padding: 17px 0;
  list-style: none;
  border-block: 1px solid #e7edf5;
}
.plan-card li {
  margin: 10px 0;
}
.plan-card li::before {
  content: '✓';
  margin-right: 9px;
  color: #19a785;
}
.plan-price {
  margin: 20px 0;
}
.plan-price b {
  font-size: 25px;
}
.plan-price span {
  color: #7a8ca2;
  font-size: 12px;
}
.plan-buy {
  width: 100%;
  padding: 13px;
  color: #2754c8;
  border: 1px solid #c5d6ef;
  border-radius: 10px;
  background: #f7faff;
  font-weight: 800;
}
.plan-card.selected .plan-buy {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.included-section {
  width: 100%;
  padding: 90px max(30px, calc((100vw - 1260px) / 2 + 30px));
  color: #fff;
  background: #0e315f;
}
.included-section .section-heading,
.included-grid {
  max-width: 1200px;
  margin: 0 auto 42px;
}
.included-section .section-heading p {
  color: #b8c9dc;
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.included-grid article {
  display: flex;
  gap: 20px;
  padding: 27px;
  border: 1px solid #ffffff1e;
  border-radius: 16px;
  background: #ffffff0a;
}
.included-grid article > span {
  display: grid;
  flex: 0 0 48px;
  height: 48px;
  place-items: center;
  color: #78e3d0;
  background: #ffffff12;
  border-radius: 13px;
}
.included-grid small {
  color: #61d6ca;
}
.included-grid h3 {
  margin: 7px 0;
}
.included-grid p {
  margin: 0;
  color: #b8c9dc;
  line-height: 1.7;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.preview-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 27px;
  color: #fff;
  border-radius: 18px;
}
.preview-card::after {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  top: -95px;
  right: -60px;
  border: 1px solid #ffffff50;
  border-radius: 50%;
}
.preview-card small {
  margin-bottom: auto;
}
.preview-card b {
  font-size: 29px;
}
.preview-card span {
  margin-top: 8px;
}
.blue {
  background: linear-gradient(135deg, #2854d5, #4384f4);
}
.teal {
  background: linear-gradient(135deg, #087f86, #2bbfb0);
}
.violet {
  background: linear-gradient(135deg, #5943ad, #896fe1);
}
.rules-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}
.rule-list p {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  margin: 0;
  padding: 21px 0;
  border-bottom: 1px solid #e0e8f1;
}
.rule-list b {
  color: var(--blue);
}
.final-cta {
  width: calc(100% - 60px);
  max-width: 1200px;
  margin: 20px auto 90px;
  padding: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(120deg, #173f8f, #3278ef);
  border-radius: 25px;
}
.final-cta h2 {
  margin: 10px 0;
  font-size: 33px;
}
.final-cta p {
  color: #d9e7ff;
}
.final-cta > a {
  color: #214fc7;
  background: #fff;
}
.school-redirect {
  min-height: calc(100vh - 74px);
  padding: 80px;
  text-align: center;
  background: #f5f9ff;
}
.school-redirect > div {
  max-width: 850px;
  margin: auto;
  padding: 80px;
  background: #fff;
  border: 1px solid #d8e5f1;
  border-radius: 25px;
}
.school-redirect h1 {
  font-size: 40px;
}
.school-redirect p {
  margin-bottom: 35px;
  color: #667c96;
}
#mToast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  padding: 12px 20px;
  color: #fff;
  background: #0e315f;
  border-radius: 9px;
  transition: 0.2s;
}
#mToast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.purchase-consent-dialog {
  width: min(620px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: #0c2e5d;
  box-shadow: 0 30px 80px rgba(14, 45, 87, 0.28);
}
.purchase-consent-dialog::backdrop {
  background: rgba(8, 28, 55, 0.58);
  backdrop-filter: blur(4px);
}
.purchase-consent-dialog form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 32px;
}
.purchase-consent-dialog h2 {
  margin: 0;
}
.consent-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}
.consent-plan-summary {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 13px;
  background: #edf4ff;
}
.consent-plan-summary span {
  font-size: 22px;
  font-weight: 800;
}
.consent-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  line-height: 1.6;
}
.consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d7e2f2;
  border-radius: 11px;
  line-height: 1.55;
}
.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.consent-refund {
  border-color: #f0d49b;
  background: #fffaf0;
}
.consent-submit {
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #2e57e8, #347bf4);
  font-weight: 800;
  cursor: pointer;
}
.consent-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.consent-legal-note {
  margin: 0;
  color: #6d7d96;
  font-size: 12px;
  text-align: center;
}
@media (max-width: 560px) {
  .purchase-consent-dialog form {
    padding: 25px 20px;
  }
}
@media (max-width: 1280px) {
  .membership-header {
    padding-inline: 32px;
  }
  .member-hero {
    padding: 70px 48px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }
  .hero-copy h1 {
    font-size: clamp(38px, 4.5vw, 52px);
  }
  .membership-section {
    padding-inline: 48px;
  }
  .included-section {
    padding-inline: 48px;
  }
}

@media (max-width: 1024px) {
  .member-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 64px 56px 40px;
    text-align: center;
  }
  .hero-copy {
    max-width: 760px;
    margin-inline: auto;
  }
  .hero-copy > p {
    max-width: 700px;
    margin-inline: auto;
  }
  .hero-actions,
  .hero-copy ul {
    justify-content: center;
  }
  .hero-visual {
    width: min(100%, 680px);
    max-width: 680px;
    height: 360px;
  }
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-card:last-child {
    grid-column: 1 / -1;
  }
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .preview-card:last-child {
    grid-column: 1 / -1;
  }
  .included-grid {
    grid-template-columns: 1fr;
  }
  .rules-section {
    grid-template-columns: 1fr;
  }
  .membership-header nav {
    display: none;
  }
  .final-cta {
    width: calc(100% - 80px);
  }
}

@media (max-width: 700px) {
  .membership-header {
    padding: 0 18px;
  }
  .member-login {
    font-size: 12px;
  }
  .member-hero {
    padding: 50px 22px;
    text-align: left;
  }
  .hero-copy h1 {
    font-size: 38px;
  }
  .hero-copy ul {
    display: grid;
    gap: 8px;
    justify-content: start;
  }
  .hero-actions {
    justify-content: start;
    flex-wrap: wrap;
  }
  .hero-visual {
    display: none;
  }
  .membership-section,
  .included-section {
    padding: 65px 20px;
  }
  .plan-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .plan-card:last-child,
  .preview-card:last-child {
    grid-column: auto;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: 15px;
  }
  .final-cta {
    width: auto;
    margin: 10px 20px 60px;
    padding: 35px;
    display: block;
  }
  .final-cta > a {
    display: inline-block;
    margin-top: 20px;
  }
  .school-redirect {
    padding: 35px 18px;
  }
  .school-redirect > div {
    padding: 45px 22px;
  }
}

@media (max-width: 420px) {
  .membership-brand strong {
    font-size: 17px;
  }
  .member-login {
    padding: 9px 11px;
  }
  .hero-copy h1 {
    font-size: 34px;
    letter-spacing: -1.5px;
  }
  .hero-actions a {
    width: 100%;
    text-align: center;
  }
}
