/* CMS-powered filter guide */
.filter-hero {
  background: linear-gradient(135deg, var(--aqua-50) 0%, var(--cobalt-50) 100%);
  border-bottom: 1px solid var(--border);
}

.filter-hero__inner {
  width: min(var(--container), calc(100% - 128px));
  min-height: 300px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 72px;
  align-items: center;
  padding-block: 56px;
}

.filter-hero .page-title {
  max-width: 700px;
  margin: 0;
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.filter-hero__lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.6;
}

.filter-hero__icon {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--cobalt);
  border: 10px solid #fff;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(8, 43, 91, .13);
}

.filter-hero__icon svg {
  width: 72px;
  height: 72px;
  stroke-width: 1.6;
}

.filter-section {
  padding-block: 78px;
}

.filter-section--white { background: #fff; }
.filter-section--aqua { background: var(--aqua-50); }
.filter-section--yellow { background: var(--page); }

.filter-section__inner {
  width: min(var(--container), calc(100% - 128px));
  margin-inline: auto;
}

.filter-section__inner--narrow { max-width: 900px; }

.filter-section__title {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.14;
}

.filter-section__lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
}

.filter-essentials {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.filter-essential {
  min-width: 0;
  padding: 28px 26px 26px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--cobalt);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.filter-essential:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

.filter-essential__number {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--cobalt-50);
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}

.filter-essential__title,
.filter-step__title,
.filter-note__title,
.filter-support-item__title {
  margin: 10px 0 0;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.filter-essential__copy,
.filter-step__copy,
.filter-note__copy,
.filter-support-item__copy {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.filter-steps {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: filter-step;
  border-top: 1px solid var(--border-strong);
}

.filter-step {
  counter-increment: filter-step;
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 26px;
  padding: 26px 0 26px 54px;
  border-bottom: 1px solid var(--border-strong);
  transition: background 180ms ease;
}

.filter-step:hover {
  background: rgba(255, 255, 255, .5);
}

.filter-step::before {
  content: counter(filter-step);
  position: absolute;
  top: 26px;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--cobalt);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(53, 100, 232, .2);
}

.filter-step__title,
.filter-step__copy { margin-top: 0; }

.filter-note {
  margin-top: 32px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 4px 14px rgba(8, 43, 91, .06);
}

.filter-note__title { margin-top: 0; }

.filter-support-list {
  margin-top: 36px;
  border-top: 1px solid rgba(8, 43, 91, .22);
}

.filter-support-item {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(8, 43, 91, .22);
  transition: background 180ms ease;
}

.filter-support-item:hover {
  background: rgba(255, 255, 255, .35);
}

.filter-support-item__title,
.filter-support-item__copy { margin: 0; }

.filter-faqs {
  margin-top: 36px;
  border-top: 1px solid var(--border);
}

.filter-faq {
  border-bottom: 1px solid var(--border);
  transition: background 180ms ease;
}

.filter-faq:hover {
  background: var(--page);
}

.filter-faq__question {
  position: relative;
  padding: 23px 50px 23px 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  transition: color 180ms ease;
}

.filter-faq__question::-webkit-details-marker { display: none; }
.filter-faq__question::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 4px;
  color: var(--cobalt);
  font-size: 27px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.filter-faq[open] .filter-faq__question::after {
  content: "\2212";
  transform: rotate(180deg);
}

.filter-faq[open] .filter-faq__question {
  color: var(--cobalt);
}

.filter-faq__answer {
  max-width: 760px;
  margin: 0;
  padding: 0 50px 24px 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
}

/* Student sign-up */
.signup-hero { background: #fff; }

.signup-hero__inner {
  width: min(var(--container), calc(100% - 128px));
  min-height: 660px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 80px;
  align-items: center;
  padding-block: 72px;
}

.signup-hero .page-title {
  max-width: 630px;
  margin: 0;
  font-size: clamp(48px, 5vw, 70px);
  font-weight: 700;
  line-height: 1.02;
}

.signup-hero__lead {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.6;
}

.signup-control {
  max-width: 560px;
  margin-top: 34px;
}

.signup-control label {
  display: block;
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}

.signup-control select {
  width: 100%;
  min-height: 54px;
  padding: 0 48px 0 16px;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--cobalt);
  border-radius: var(--radius);
  font: 500 17px/1.2 var(--font-sans);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%233564E8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.signup-control select:focus-visible {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(53, 100, 232, 0.15);
}

.signup-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.signup-hero__visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.signup-shape { position: absolute; display: block; }
.signup-shape--circle {
  width: 360px;
  height: 360px;
  background: var(--yellow);
  border-radius: 50%;
}

.signup-shape--square {
  width: 84px;
  height: 84px;
  right: 4px;
  bottom: 36px;
  background: var(--coral);
  transform: rotate(18deg);
}

.signup-device {
  position: relative;
  z-index: 1;
  width: 188px;
  height: 300px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border: 10px solid #fff;
  border-radius: 34px;
  box-shadow: 0 16px 36px rgba(8, 43, 91, .18);
}

.signup-device > svg { width: 92px; height: 92px; stroke-width: 1.2; }
.signup-device__check {
  position: absolute;
  right: -36px;
  bottom: 48px;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal-dark);
  border: 7px solid #fff;
  border-radius: 50%;
}

.signup-device__check svg { width: 38px; height: 38px; stroke-width: 2.4; }

@media (max-width: 899px) {
  .filter-hero__inner,
  .filter-section__inner,
  .signup-hero__inner { width: min(var(--container), calc(100% - 64px)); }
  .filter-essentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup-hero__inner { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .signup-shape--circle { width: 290px; height: 290px; }
  .signup-device { width: 152px; height: 246px; }
}

@media (max-width: 639px) {
  .filter-hero__inner,
  .filter-section__inner,
  .signup-hero__inner { width: calc(100% - 40px); }
  .filter-hero__inner { min-height: 0; grid-template-columns: 1fr; gap: 28px; padding-block: 44px; }
  .filter-hero .page-title { font-size: 42px; }
  .filter-hero__lead { font-size: 17px; }
  .filter-hero__icon { width: 104px; height: 104px; border-width: 7px; }
  .filter-hero__icon svg { width: 48px; height: 48px; }
  .filter-section { padding-block: 54px; }
  .filter-section__title { font-size: 32px; }
  .filter-section__lead { font-size: 17px; }
  .filter-essentials { grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
  .filter-step { grid-template-columns: 1fr; gap: 6px; padding-left: 48px; }
  .filter-support-item { grid-template-columns: 1fr; gap: 10px; }
  .filter-faq__question { padding-right: 40px; font-size: 17px; }
  .filter-faq__answer { padding-right: 0; font-size: 16px; }
  .signup-hero__inner { min-height: 0; grid-template-columns: 1fr; gap: 30px; padding-block: 52px 64px; }
  .signup-hero .page-title { font-size: 46px; }
  .signup-hero__lead { font-size: 17px; }
  .signup-hero__visual { min-height: 290px; }
  .signup-shape--circle { width: 250px; height: 250px; }
  .signup-shape--square { width: 58px; height: 58px; right: 18px; bottom: 22px; }
  .signup-device { width: 130px; height: 212px; border-width: 7px; border-radius: 28px; }
  .signup-device > svg { width: 66px; height: 66px; }
  .signup-device__check { width: 64px; height: 64px; right: -31px; bottom: 30px; border-width: 6px; }
  .signup-device__check svg { width: 29px; height: 29px; }
}
