/* Shared production layout: navigation, responsive shell, homepage hero, and route cards. */
:root {
  --cs-online-start: #743df0;
  --cs-online-end: #dc46c2;
  --cs-online-soft: #a985ff;
  --cs-school-start: #ff754d;
  --cs-school-end: #d843be;
  --cs-school-soft: #ff9e7a;
}

header {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  font-size: 1.76rem;
  pointer-events: none;
}

header .container {
  position: relative;
  width: min(100%, 136rem);
  min-height: 7.6rem;
  margin: 0 auto;
  padding: 1rem 1.2rem 1rem 1.8rem;
  gap: 2.2rem;
  border: 0.1rem solid var(--cs-color-border-subtle);
  border-radius: var(--cs-radius-xl);
  background: rgba(11, 13, 41, 0.78);
  box-shadow: 0 1.8rem 5.5rem rgba(0, 0, 0, 0.22), inset 0 0.1rem rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(2rem) saturate(130%);
  -webkit-backdrop-filter: blur(2rem) saturate(130%);
  pointer-events: auto;
  justify-content: space-between;
}

header .logo {
  display: flex;
  min-width: max-content;
  margin-left: 0;
  align-items: center;
  gap: 1rem;
  color: var(--color-accent);
  font-size: 2.7rem;
  font-family: "Advent Pro", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: none;
}

header .logo svg {
  width: 4.4rem;
  height: 4.4rem;
  margin-right: 0;
  filter: drop-shadow(0 0 1.5rem rgba(0, 255, 255, 0.22));
}

header li {
  line-height: 1;
}

header .menu {
  margin-left: auto;
}

header .menu > ul {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

header .menu li {
  margin-top: 0;
}

header .navlink {
  min-height: 4.6rem;
  padding: 0 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.38rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  animation: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

header .navlink::after {
  display: none;
}

header .navlink:hover,
header .navlink:focus-visible,
header .nav-dropdown:focus-within > .navlink {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

header .journey-link {
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.86);
  border: 0.1rem solid rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.025);
}

header .journey-link::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 0.65rem;
  border-radius: 50%;
  background: var(--cs-online-soft);
  box-shadow: 0 0 1.4rem rgba(116, 61, 240, 0.72);
}

header .journey-link[aria-current="page"] {
  color: #d7c8ff;
  border-color: rgba(169, 133, 255, 0.28);
  background: rgba(116, 61, 240, 0.12);
  box-shadow: inset 0 0 2rem rgba(116, 61, 240, 0.05);
}

header .school-journey-link::before {
  background: var(--cs-school-start);
  box-shadow: 0 0 1.4rem rgba(255, 117, 77, 0.68);
}

header .school-journey-link[aria-current="page"] {
  color: #ffc1ad;
  border-color: rgba(255, 117, 77, 0.28);
  background: rgba(255, 117, 77, 0.11);
}

header .nav-dropdown {
  position: relative;
  background: transparent;
}

header .nav-dropdown > .navlink {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.38rem;
  font-weight: 750;
}

header .nav-chevron {
  width: 1.7rem;
  height: 1.7rem;
  margin-left: 0.25rem;
  flex: 0 0 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

header .nav-dropdown.is-open > .navlink .nav-chevron {
  transform: rotate(180deg);
}

header .nav-dropdown .nav-dropdown-list {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: 0;
  z-index: 2;
  display: block;
  min-width: 22.6rem;
  width: max-content;
  height: auto;
  padding: 0.8rem;
  visibility: hidden;
  opacity: 0;
  overflow: visible;
  transform: translateY(-0.7rem);
  border: 0.1rem solid var(--cs-color-border-subtle);
  border-radius: 1.5rem;
  background: rgba(11, 13, 41, 0.98);
  box-shadow: 0 2.8rem 9rem rgba(0, 0, 0, 0.34);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

header .nav-dropdown.is-open .nav-dropdown-list {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

header .nav-dropdown-list .navlink {
  width: 100%;
  justify-content: flex-start;
  background: transparent;
  color: var(--cs-color-text-muted);
}

header .nav-dropdown-descriptive {
  max-width: 34rem;
}

header .nav-dropdown-descriptive .navlink {
  display: grid;
  gap: 0.25rem;
  padding-block: 1rem;
  white-space: normal;
  text-align: left;
}

header .nav-dropdown-descriptive strong {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.25;
}

header .nav-dropdown-descriptive small {
  color: var(--cs-color-text-muted);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.45;
}

header .nav-dropdown-explore .nav-dropdown-list {
  right: 0;
  left: auto;
  max-width: none;
}

header .nav-dropdown .explore-grid {
  display: grid;
  width: 58rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

header .nav-dropdown-list .navlink:hover,
header .nav-dropdown-list .navlink:focus-visible,
header .nav-dropdown-list .navlink[aria-current="page"],
header .nav-dropdown > .navlink[aria-current="page"],
header .contact-button[aria-current="page"] {
  color: var(--cs-color-accent);
  background: rgba(0, 255, 255, 0.07);
}

header .nav-dropdown-school .nav-dropdown-list .navlink:hover,
header .nav-dropdown-school .nav-dropdown-list .navlink:focus-visible,
header .nav-dropdown-school .nav-dropdown-list .navlink[aria-current="page"] {
  color: #ffb097;
  background: rgba(255, 117, 77, 0.09);
}

header .navbutton {
  width: auto;
  margin: 0;
}

header .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

header .contact-button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
}

header .trial-button,
header .signup-button {
  min-height: 4.4rem;
  padding-inline: 1.25rem;
  border: 0.1rem solid var(--cs-color-border);
  border-radius: 1.1rem;
  background: transparent;
  color: var(--cs-color-accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

header .signup-button {
  border-color: rgba(255, 117, 77, 0.82);
  background: linear-gradient(90deg, var(--cs-school-start), var(--cs-school-end));
  color: #fff;
  box-shadow: 0 1rem 2.8rem rgba(255, 117, 77, 0.2);
}

header .trial-button {
  border-color: rgba(169, 133, 255, 0.72);
  background: linear-gradient(90deg, var(--cs-online-start), var(--cs-online-end));
  color: #fff;
  box-shadow: 0 1rem 2.8rem rgba(116, 61, 240, 0.22);
}

header .trial-button:hover,
header .signup-button:hover {
  transform: translateY(-0.2rem);
}

header .signup-button:hover {
  background: linear-gradient(90deg, #ff8b68, #e151c7);
  color: #fff;
}

header .trial-button:hover {
  background: linear-gradient(90deg, #8753f5, #e45aca);
  color: #fff;
}

header .menu-control {
  width: 4.4rem;
  height: 4.4rem;
  margin-left: auto;
  padding: 0;
  place-items: center;
  border: 0.1rem solid var(--cs-color-border);
  border-radius: 1.1rem;
  background: rgba(0, 255, 255, 0.04);
  color: var(--cs-color-accent);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

header .menu-control:hover,
header .menu-control:focus-visible {
  border-color: rgba(0, 255, 255, 0.58);
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 2.4rem rgba(0, 255, 255, 0.12);
}

header .menu-icon {
  position: relative;
  display: block;
  width: 2.2rem;
  height: 1.7rem;
}

header .menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.2rem;
  border-radius: 99rem;
  background: currentColor;
  transform-origin: center;
  transition: top 0.24s ease, transform 0.24s ease, opacity 0.16s ease, width 0.24s ease;
}

header .menu-icon span:nth-child(1) {
  top: 0;
  width: 72%;
}

header .menu-icon span:nth-child(2) {
  top: 0.75rem;
}

header .menu-icon span:nth-child(3) {
  top: 1.5rem;
  width: 84%;
}

header.menu-open .menu-icon span:nth-child(1) {
  top: 0.75rem;
  width: 100%;
  transform: rotate(45deg);
}

header.menu-open .menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.35);
}

header.menu-open .menu-icon span:nth-child(3) {
  top: 0.75rem;
  width: 100%;
  transform: rotate(-45deg);
}

main > .container {
  position: relative;
  isolation: isolate;
}

main > .container::before {
  content: "";
  position: absolute;
  inset: 0 var(--space-sm);
  z-index: -1;
  background:
    radial-gradient(ellipse 64rem 78rem at 88% 8%, rgba(214, 56, 176, 0.15), transparent 72%),
    radial-gradient(ellipse 58rem 86rem at 10% 34%, rgba(106, 55, 190, 0.13), transparent 72%),
    radial-gradient(ellipse 62rem 90rem at 88% 64%, rgba(211, 61, 169, 0.12), transparent 74%),
    radial-gradient(ellipse 56rem 76rem at 14% 90%, rgba(100, 54, 184, 0.12), transparent 74%),
    linear-gradient(180deg, rgba(28, 22, 66, 0.46), rgba(15, 18, 48, 0.24) 34%, rgba(48, 20, 61, 0.3) 68%, rgba(24, 20, 58, 0.4));
  pointer-events: none;
}

@media screen and (min-width: 768px) {
  main > .container::before {
    right: var(--space-xl);
    left: var(--space-xl);
  }
}

/* Homepage hero with the animated mark and King's College trust assets. */
main section.welcome {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(40rem, 0.82fr);
  grid-template-areas:
    "title visual"
    "intro visual"
    "actions visual"
    "trust visual"
    "logos visual";
  min-height: min(73rem, calc(100vh - 10rem));
  max-height: none;
  margin-top: 11rem;
  padding: clamp(3.6rem, 4.2vw, 6.4rem);
  align-content: center;
  align-items: center;
  justify-items: start;
  column-gap: clamp(3rem, 3vw, 4.5rem);
  row-gap: 1.8rem;
  overflow: clip;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

main section.welcome::before {
  display: none;
}

main section.welcome::after {
  display: none;
}

main section.welcome .hero-visual {
  position: relative;
  grid-area: visual;
  width: 100%;
  min-width: 0;
  height: clamp(46rem, 41vw, 56rem);
  align-self: stretch;
}

main section.welcome .hero-visual-frame {
  position: absolute;
  inset: 3rem 1rem 2rem 7rem;
  overflow: hidden;
  border: 0.1rem solid rgba(0, 238, 255, 0.32);
  border-radius: 4.4rem;
  background:
    linear-gradient(160deg, rgba(14, 80, 104, 0.18), rgba(63, 27, 75, 0.15)),
    rgba(255, 255, 255, 0.015);
}

main section.welcome .hero-visual-frame::before,
main section.welcome .hero-visual-frame::after {
  display: none;
}

main section.welcome .hero-code-card,
main section.welcome .hero-feedback-card {
  position: absolute;
  z-index: 3;
  border: 0.1rem solid rgba(0, 238, 255, 0.54);
  background: rgba(6, 7, 35, 0.94);
  box-shadow: 0 2.4rem 7rem rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(1.8rem);
}

main section.welcome .hero-code-card {
  top: 4rem;
  left: 0;
  display: grid;
  width: min(34rem, 72%);
  gap: 0.7rem;
  padding: 2.2rem 2.4rem;
  border-radius: 2rem;
}

main section.welcome .hero-code-card code {
  color: #f1efff;
  font-size: clamp(1.35rem, 1.25vw, 1.65rem);
  line-height: 1.2;
  white-space: nowrap;
}

main section.welcome .hero-code-card code span {
  color: var(--cs-color-accent);
}

main section.welcome #intro-logo {
  position: absolute;
  top: 50%;
  left: 57%;
  z-index: 2;
  width: min(24rem, 44%);
  height: auto;
  max-height: 25rem;
  margin: 0;
  padding: 1rem;
  transform: translate(-50%, -48%);
  filter: drop-shadow(0 0 4rem rgba(0, 255, 255, 0.2));
}

main section.welcome .hero-feedback-card {
  right: 0;
  bottom: 0;
  width: min(38rem, 82%);
  padding: 1.8rem 2rem;
  border-color: rgba(255, 255, 255, 0.17);
  border-radius: 2.4rem;
  background: rgba(77, 60, 91, 0.58);
}

main section.welcome .hero-feedback-heading {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

main section.welcome .hero-feedback-heading > span:last-child {
  display: grid;
  gap: 0.25rem;
}

main section.welcome .hero-feedback-heading strong {
  color: #f8f9ff;
  font-size: 1.75rem;
  line-height: 1.1;
}

main section.welcome .hero-feedback-heading small,
main section.welcome .hero-feedback-card p {
  color: rgba(232, 235, 255, 0.72);
  font-size: 1.35rem;
}

main section.welcome .hero-feedback-avatar {
  display: grid;
  place-items: center;
  width: 4.8rem;
  height: 4.8rem;
  flex: 0 0 4.8rem;
  border: 1px solid rgba(40, 229, 238, 0.38);
  border-radius: 1.4rem;
  background: rgba(7, 14, 55, 0.72);
  box-shadow: inset 0 0 1.8rem rgba(40, 229, 238, 0.08);
}

main section.welcome .hero-feedback-avatar svg {
  width: 2.9rem;
  height: 2.9rem;
  fill: none;
  stroke: #5eeaf0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

main section.welcome .hero-progress {
  display: block;
  height: 1rem;
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: 999rem;
  background: rgba(255, 255, 255, 0.14);
}

main section.welcome .hero-progress span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #24e5ed, #d843be);
}

main section.welcome .hero-feedback-card p {
  margin: 1.3rem 0 0;
  line-height: 1.35;
}

main section.welcome .main-title {
  grid-area: title;
  margin: 0;
  max-width: 73rem;
  color: #edf6ff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(5rem, 5.35vw, 7.8rem);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -0.05em;
  text-align: left;
}

main section.welcome .main-title > span {
  color: #24e5ed;
}

main section.welcome .text-description {
  grid-area: intro;
  max-width: 69rem;
  margin: 0;
  color: #d7dcec;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 1.65vw, 2.25rem);
  line-height: 1.55;
  text-align: left;
  animation: none;
}

main section.welcome .hero-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.7rem;
}

main section.welcome .section-button,
main section.welcome .hero-school-button {
  display: inline-flex;
  min-width: 0;
  min-height: 5.2rem;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2rem;
  border-radius: 1.3rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

main section.welcome .section-button {
  margin: 0;
  border-color: transparent;
  background: linear-gradient(90deg, #743df0, #dc46c2);
  color: #fff;
  box-shadow: 0 1.4rem 4rem rgba(180, 65, 217, 0.28);
}

main section.welcome .hero-school-button {
  border: 0.1rem solid rgba(255, 117, 77, 0.82);
  color: #fff;
  background: linear-gradient(90deg, var(--cs-school-start), var(--cs-school-end));
  box-shadow: 0 1.4rem 4rem rgba(255, 117, 77, 0.22);
}

main section.welcome .section-button:hover,
main section.welcome .hero-school-button:hover {
  transform: translateY(-0.2rem);
}

main section.welcome .section-button:hover {
  background: linear-gradient(90deg, #8250f4, #e35aca);
  color: #fff;
  filter: brightness(1.05);
}

main section.welcome .hero-school-button:hover {
  border-color: #ff9a79;
  background: linear-gradient(90deg, #ff8b68, #e151c7);
  filter: brightness(1.04);
}

main section.welcome .hero-trust-label {
  grid-area: trust;
  margin: 0.4rem 0 -0.6rem;
  color: rgba(232, 235, 255, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

main section.welcome .partner-logos {
  grid-area: logos;
  display: flex;
  width: auto;
  margin: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 1.2rem;
}

main section.welcome .partner-logo {
  display: grid;
  box-sizing: border-box;
  flex: 0 0 20rem;
  width: 20rem;
  min-height: 13.2rem;
  padding: 1rem 1.2rem 1.2rem;
  grid-template-rows: 7.2rem minmax(3.2rem, auto);
  place-items: center;
  gap: 0.7rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.18);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1.2rem 3.4rem rgba(0, 0, 0, 0.18);
}

main section.welcome .partner-logo img {
  width: min(15rem, 100%);
  height: 7.2rem;
  max-height: 7.2rem;
  object-fit: contain;
}

main section.welcome .partner-logo span {
  color: #111536;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  align-self: center;
}

main .route-section {
  position: relative;
  isolation: isolate;
  margin: clamp(1.5rem, 3vw, 3.6rem) 0 clamp(5rem, 7vw, 9rem);
  padding: clamp(4.8rem, 6vw, 7.2rem) clamp(3rem, 5vw, 6.4rem);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
}

main .route-section::before {
  display: none;
}

main .route-section-heading {
  max-width: 94rem;
  margin: 0 auto clamp(3.6rem, 5vw, 5rem);
  text-align: center;
}

main .route-kicker {
  margin: 0 0 1.2rem;
  color: #25e5ed;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

main .route-section-heading h2 {
  margin: 0;
  color: #f6f6ff;
  font-size: clamp(4rem, 4.1vw, 5.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

main .route-section-heading > p:last-child {
  margin: 1.8rem 0 0;
  color: #d9ddee;
  font-size: clamp(1.7rem, 1.6vw, 2rem);
  line-height: 1.5;
}

main .route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 2vw, 2.8rem);
}

main .route-card {
  position: relative;
  display: flex;
  min-height: 33rem;
  flex-direction: column;
  padding: clamp(3rem, 3vw, 4.2rem);
  overflow: hidden;
  border: 0.1rem solid rgba(255, 255, 255, 0.14);
  border-radius: 3rem;
  box-shadow: 0 2.4rem 6rem rgba(0, 0, 0, 0.2);
}

main .route-card::after {
  content: "";
  position: absolute;
  right: -10rem;
  top: -12rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  filter: blur(6rem);
  pointer-events: none;
}

main .route-card-family {
  background: linear-gradient(135deg, rgba(75, 28, 145, 0.94), rgba(20, 17, 62, 0.98));
}

main .route-card-school {
  background: linear-gradient(135deg, rgba(130, 55, 57, 0.92), rgba(36, 18, 57, 0.98));
}

main .route-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

main .route-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.7rem;
  place-items: center;
  border: 0.1rem solid rgba(255, 255, 255, 0.22);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
}

main .route-card-family .route-icon {
  color: #d896f4;
  border-color: rgba(211, 95, 240, 0.44);
}

main .route-card-school .route-icon {
  color: #ff9e7a;
  border-color: rgba(255, 117, 85, 0.48);
}

main .route-icon svg {
  width: 2.2rem;
  height: 2.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main .route-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 2.7vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

main .route-card-content > p {
  margin: 1.8rem 0 0;
  color: #f0effb;
  font-size: clamp(1.6rem, 1.35vw, 1.85rem);
  line-height: 1.5;
}

main .route-card-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20.5rem, 21.5rem);
  gap: 1.6rem;
  margin-top: auto;
  padding-top: 2.4rem;
  align-items: end;
}

main .route-card-bottom > a {
  display: inline-flex;
  min-height: 4.9rem;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1.4rem;
  border-radius: 1.2rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1.4rem 3.4rem rgba(0, 0, 0, 0.17);
  transition: transform 0.2s ease, filter 0.2s ease;
}

main .route-card-family .route-card-bottom > a {
  background: linear-gradient(90deg, #743df0, #dc46c2);
}

main .route-card-school .route-card-bottom > a {
  background: linear-gradient(90deg, #ff754d, #d843be);
}

main .route-card-school .route-card-bottom > .route-secondary-link {
  color: #ffb097;
  background: transparent;
}

main .route-card-bottom > a:hover {
  transform: translateY(-0.2rem);
  filter: brightness(1.08);
}

main .route-code {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 13.5rem;
  align-self: end;
  align-content: start;
  gap: 0.5rem;
  padding: 2rem 1.4rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.11);
  border-radius: 2rem;
  background: rgba(3, 4, 35, 0.95);
  box-shadow: 0 1.8rem 4rem rgba(0, 0, 0, 0.24);
}

main .route-code code {
  color: #f5f3ff;
  font-size: clamp(1.2rem, 1.05vw, 1.45rem);
  line-height: 1.22;
  white-space: nowrap;
}

main .route-card-family .route-code span {
  color: #d979ed;
}

main .route-card-school .route-code span {
  color: #ff7b58;
}

main .route-code b {
  color: #27e6ee;
  font-weight: 700;
}

@media screen and (min-width: 1321px) {
  header .menu-control {
    display: none !important;
  }

  header .container {
    gap: 0.8rem;
  }

  header .logo {
    gap: 0.7rem;
    font-size: 2.35rem;
  }

  header .logo img {
    width: 4rem;
    height: 4rem;
  }

  header .menu {
    display: block;
    position: static;
    width: auto;
    height: auto;
    margin-left: auto;
    transform: none;
    background: transparent;
  }

  header .menu > ul {
    gap: 0.1rem;
  }

  header .navlink,
  header .nav-dropdown > .navlink,
  header .navbutton {
    padding-inline: clamp(0.8rem, 0.62vw, 1.05rem);
    font-size: 1.38rem;
  }

  header .signup-button,
  header .trial-button {
    padding-inline: 1.1rem;
  }
}

@media screen and (max-width: 1320px) {
  header {
    padding: 1rem;
  }

  header .container {
    min-height: 6.8rem;
    padding: 0.7rem 0.8rem 0.7rem 1.2rem;
    border-radius: 1.6rem;
  }

  header .logo {
    font-size: 2.3rem;
  }

  header .logo svg {
    width: 4rem;
    height: 4rem;
  }

  header .menu-control {
    display: grid !important;
  }

  header .menu {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    left: auto;
    display: block;
    width: min(48rem, 100%);
    height: auto;
    margin: 0;
    padding: 0.8rem;
    visibility: hidden;
    opacity: 0;
    overflow: auto;
    transform: translateY(-1rem) scale(0.985);
    transform-origin: top center;
    border: 0.1rem solid rgba(0, 255, 255, 0.18);
    border-radius: 1.8rem;
    background: linear-gradient(155deg, rgba(15, 20, 62, 0.995), rgba(8, 10, 38, 0.995));
    box-shadow: 0 2.8rem 9rem rgba(0, 0, 0, 0.46), inset 0 0.1rem rgba(255, 255, 255, 0.045);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
  }

  header.menu-open .menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  header .menu > ul {
    display: flex;
    min-width: 0;
    max-height: calc(100vh - 11rem);
    padding: 0.4rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.55rem;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  header .menu > ul > li {
    width: 100%;
    opacity: 0;
    transform: translateY(-0.45rem);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  header.menu-open .menu > ul > li {
    opacity: 1;
    transform: translateY(0);
  }

  header.menu-open .menu > ul > li:nth-child(2) { transition-delay: 0.025s; }
  header.menu-open .menu > ul > li:nth-child(3) { transition-delay: 0.05s; }
  header.menu-open .menu > ul > li:nth-child(4) { transition-delay: 0.075s; }
  header.menu-open .menu > ul > li:nth-child(5) { transition-delay: 0.1s; }
  header.menu-open .menu > ul > li:nth-child(6) { transition-delay: 0.125s; }

  header .navlink,
  header .navbutton {
    width: 100%;
    min-height: 4.8rem;
    justify-content: flex-start;
    padding: 0.9rem 1.4rem;
    border: 0.1rem solid rgba(255, 255, 255, 0.045);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.5rem;
  }

  header .menu > ul > li:not(.nav-actions) > .navlink {
    display: grid;
    grid-template-columns: 0.8rem minmax(0, 1fr) 1.7rem;
    column-gap: 0.9rem;
    justify-items: start;
    text-align: left;
    border-color: rgba(255, 255, 255, 0.045);
    background: rgba(255, 255, 255, 0.035);
  }

  header .menu > ul > li:not(.nav-actions) > .navlink > span {
    grid-column: 2;
  }

  header .menu > ul > li:not(.nav-actions) > .journey-link::before {
    grid-column: 1;
    margin: 0;
  }

  header .menu > ul > li:not(.nav-actions) > .nav-dropdown-trigger .nav-chevron {
    grid-column: 3;
    margin: 0;
    justify-self: end;
  }

  header .menu > ul > li.nav-dropdown > button.nav-dropdown-trigger {
    min-height: 4.8rem;
    padding: 0.9rem 1.4rem;
  }

  header .navlink:hover,
  header .navlink:focus-visible {
    background: rgba(255, 255, 255, 0.065);
  }

  header .journey-link {
    min-height: 4.8rem;
  }

  header .journey-link::before {
    width: 0.7rem;
    height: 0.7rem;
    flex-basis: 0.7rem;
  }

  header .nav-dropdown-trigger .nav-chevron {
    margin-left: auto;
  }

  header .nav-dropdown {
    width: 100%;
  }

  header .nav-dropdown > .navlink {
    color: rgba(255, 255, 255, 0.86);
  }

  header .nav-dropdown.is-open > .navlink {
    border-color: rgba(0, 255, 255, 0.2);
    background: rgba(0, 255, 255, 0.075);
    color: #fff;
  }

  header .nav-dropdown .nav-dropdown-list {
    position: static;
    min-width: 0;
    width: 100%;
    height: 0;
    padding: 0;
    visibility: visible;
    opacity: 1;
    overflow: hidden;
    transform: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: height 0.25s ease;
  }

  header .nav-dropdown .explore-grid {
    display: block;
    width: 100%;
  }

  header .nav-dropdown:hover .nav-dropdown-list,
  header .nav-dropdown:focus-within .nav-dropdown-list {
    height: 0;
  }

  header .nav-dropdown.is-open .nav-dropdown-list {
    height: var(--dropdown-height, 0);
  }

  header .nav-dropdown-list .navlink {
    min-height: 5.8rem;
    padding: 0.9rem 1.4rem 0.9rem 2.2rem;
    border-color: transparent;
    background: rgba(2, 4, 30, 0.38);
  }

  header .nav-dropdown-descriptive strong {
    font-size: 1.4rem;
  }

  header .nav-dropdown-descriptive small {
    font-size: 1.3rem;
  }

  header .nav-dropdown .explore-grid,
  header .nav-dropdown-schools .nav-dropdown-list {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  header .nav-actions {
    display: grid;
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.08);
  }

  header .nav-actions .trial-button,
  header .nav-actions .signup-button {
    min-height: 5rem;
    justify-content: center;
    padding-inline: 1rem;
    text-align: center;
  }

  header .nav-actions .signup-button {
    border-color: rgba(255, 117, 77, 0.82);
    background: linear-gradient(90deg, var(--cs-school-start), var(--cs-school-end));
    color: #fff;
  }

  header .nav-actions .trial-button {
    border-color: rgba(169, 133, 255, 0.72);
    background: linear-gradient(90deg, var(--cs-online-start), var(--cs-online-end));
    color: #fff;
  }

  main section.welcome {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "intro"
      "actions"
      "trust"
      "logos"
      "visual";
    min-height: auto;
    margin-top: 10rem;
    padding: clamp(2.4rem, 6vw, 5rem);
    justify-items: start;
    row-gap: 1.8rem;
    border-radius: 0;
    text-align: left;
  }

  main section.welcome::before {
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
  }

  main section.welcome::after {
    right: -10rem;
    top: 50%;
    width: 30rem;
    height: 30rem;
  }

  main section.welcome .hero-visual {
    width: min(100%, 72rem);
    height: clamp(42rem, 66vw, 52rem);
    justify-self: center;
  }

  main section.welcome .main-title {
    max-width: 82rem;
    font-size: clamp(4.8rem, 9vw, 7.8rem);
    text-align: left;
  }

  main section.welcome .text-description {
    max-width: 78rem;
    text-align: left;
  }

  main section.welcome .hero-actions,
  main section.welcome .partner-logos {
    justify-content: flex-start;
  }
}

@media screen and (min-width: 1101px) and (max-width: 1320px) {
  main section.welcome {
    grid-template-columns: minmax(0, 1.14fr) minmax(36rem, 0.86fr);
    grid-template-areas:
      "title visual"
      "intro visual"
      "actions visual"
      "trust visual"
      "logos visual";
    min-height: min(72rem, calc(100vh - 9rem));
    padding: clamp(3.2rem, 4vw, 5rem);
    align-content: center;
    column-gap: clamp(2.4rem, 2.5vw, 3.4rem);
  }

  main section.welcome .hero-visual {
    width: 100%;
    height: clamp(44rem, 40vw, 52rem);
    align-self: stretch;
  }

  main section.welcome .main-title {
    max-width: 68rem;
    font-size: clamp(5rem, 5.25vw, 6.9rem);
  }

  main section.welcome .text-description {
    max-width: 66rem;
  }
}

@media screen and (max-width: 900px) {
  main .route-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 620px) {
  header .menu {
    width: 100%;
  }

  main section.welcome .partner-logos {
    flex-wrap: wrap;
  }

  main .route-section {
    margin-top: 1rem;
    padding: 4.2rem 2.2rem 2.4rem;
    border-radius: 0;
  }

  main .route-section-heading {
    margin-bottom: 3rem;
  }

  main .route-section-heading h2 {
    font-size: clamp(3.5rem, 10vw, 4.4rem);
  }

  main .route-section-heading > p:last-child {
    font-size: 1.65rem;
  }

  main .route-card {
    min-height: 0;
    padding: 2.4rem;
    border-radius: 2.2rem;
  }

  main .route-card h3 {
    font-size: 3.3rem;
  }

  main .route-card-bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  main .route-card-bottom > a {
    width: 100%;
  }

  main .route-code {
    width: 100%;
    min-height: 10.5rem;
  }

  main section.welcome .hero-visual {
    height: 44rem;
    margin-top: 0.6rem;
  }

  main section.welcome .hero-visual-frame {
    inset: 2rem 0.4rem 1rem 2.2rem;
    border-radius: 2.8rem;
  }

  main section.welcome .hero-code-card {
    top: 1rem;
    width: min(28rem, 80%);
    padding: 1.6rem;
    border-radius: 1.5rem;
  }

  main section.welcome .hero-code-card code {
    font-size: clamp(1.15rem, 3.2vw, 1.35rem);
  }

  main section.welcome #intro-logo {
    left: 56%;
    width: min(15.5rem, 43%);
    max-height: 16.5rem;
  }

  main section.welcome .hero-feedback-card {
    right: 0;
    bottom: 0;
    width: min(30rem, 88%);
    padding: 1.4rem;
    border-radius: 1.8rem;
  }

  main section.welcome .hero-feedback-heading strong {
    font-size: 1.5rem;
  }

  main section.welcome .hero-feedback-avatar {
    width: 4rem;
    height: 4rem;
    flex-basis: 4rem;
  }

  main section.welcome .hero-actions {
    width: 100%;
  }

  main section.welcome .section-button,
  main section.welcome .hero-school-button {
    width: 100%;
  }

  main section.welcome .partner-logo {
    flex-basis: calc(50% - 0.5rem);
  }
}

@media screen and (max-width: 430px) {
  main section.welcome .partner-logo {
    flex-basis: 100%;
  }
}

@media screen and (max-width: 700px) {
  header .nav-dropdown .explore-grid,
  header .nav-dropdown-schools .nav-dropdown-list,
  header .nav-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Shared footer generated by scripts/site-layout.js. */
.mobile-trial-cta { display: none; }

@media (max-width: 620px) {
  .mobile-trial-cta + footer { margin-bottom: 8.2rem; }

  .mobile-trial-cta {
    position: fixed;
    right: 1.2rem;
    bottom: max(1.2rem, env(safe-area-inset-bottom));
    left: 1.2rem;
    z-index: 95;
    display: grid;
    min-height: 5.8rem;
    padding: 0.9rem 1.5rem;
    place-content: center;
    border: 0.1rem solid rgba(169, 133, 255, 0.74);
    border-radius: var(--cs-radius-control);
    background: linear-gradient(90deg, var(--cs-online-start), var(--cs-online-end));
    box-shadow: 0 1.4rem 3.8rem rgba(73, 35, 153, 0.4);
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: opacity var(--cs-transition-fast), transform var(--cs-transition-fast);
  }

  header .explore-grid {
    display: block;
    width: 100%;
  }

  .mobile-trial-cta span { font: 850 1.55rem/1.15 Arial, Helvetica, sans-serif; }
  .mobile-trial-cta small { margin-top: 0.2rem; font: 700 1.3rem/1.2 Arial, Helvetica, sans-serif; }
  .mobile-trial-cta.is-suppressed { pointer-events: none; opacity: 0; transform: translateY(calc(100% + 2rem)); }
}

.site-footer-shell {
  width: min(100%, 124rem);
  margin: 0 auto;
  padding: clamp(4rem, 6vw, 6rem) clamp(2rem, 5vw, 6rem) 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer-main {
  display: grid;
  grid-template-columns: minmax(28rem, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(4rem, 7vw, 8rem);
}

.site-footer-brand {
  display: grid;
  max-width: 36rem;
  gap: 1rem;
}

.site-footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  text-decoration: none;
}

.site-footer-brand .logo img {
  width: 4.4rem;
  height: 4.4rem;
  object-fit: contain;
}

.site-footer-brand p {
  margin: 0;
  color: #bfc7da;
  font-size: 1.5rem;
  line-height: 1.6;
}

.site-footer-actions {
  display: flex;
  margin-top: 0.8rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-footer-actions a {
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(37, 229, 237, 0.28);
  border-radius: 1rem;
  color: var(--journey-accent);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer-actions a:hover,
.site-footer-actions a:focus-visible {
  border-color: var(--journey-accent);
  background: rgba(37, 229, 237, 0.08);
}

.site-footer-actions .online-footer-action {
  border-color: rgba(169, 133, 255, 0.38);
  color: #cbbaff;
  background: rgba(116, 61, 240, 0.08);
}

.site-footer-actions .online-footer-action:hover,
.site-footer-actions .online-footer-action:focus-visible {
  border-color: var(--cs-online-soft);
  background: rgba(116, 61, 240, 0.16);
}

.site-footer-actions .school-footer-action {
  border-color: rgba(255, 117, 77, 0.42);
  color: #ffb097;
  background: rgba(255, 117, 77, 0.08);
}

.site-footer-actions .school-footer-action:hover,
.site-footer-actions .school-footer-action:focus-visible {
  border-color: var(--cs-school-start);
  background: rgba(255, 117, 77, 0.15);
}

.outline-link[href="/signup"],
.outline-link[href="/school-extracurriculars"] {
  border-color: rgba(255, 117, 77, 0.52);
  color: #ffad91;
  background: rgba(67, 24, 37, 0.36);
}

.outline-link[href="/signup"]:hover,
.outline-link[href="/signup"]:focus-visible,
.outline-link[href="/school-extracurriculars"]:hover,
.outline-link[href="/school-extracurriculars"]:focus-visible {
  border-color: var(--cs-school-start);
  background: rgba(255, 117, 77, 0.13);
}

body.school-extracurriculars-page,
body.utility-signup {
  --journey-accent: var(--cs-school-soft);
}

.site-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}

.site-footer-links div {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.site-footer-links strong { color: #fff; font-size: 1.5rem; }
.site-footer-links a { color: #bfc7da; font-size: 1.45rem; text-decoration: none; }
.site-footer-links a:hover { color: var(--journey-accent); }
.site-footer-links a[href="/school-extracurriculars"],
.site-footer-links a[href="/signup"],
.site-footer-links a[href="/software"],
.site-footer-links a[href="/hardware"] { color: #e8b2a2; }
.site-footer-links a[href="/school-extracurriculars"]:hover,
.site-footer-links a[href="/signup"]:hover,
.site-footer-links a[href="/software"]:hover,
.site-footer-links a[href="/hardware"]:hover { color: var(--cs-school-soft); }

.site-footer-links > div:first-child strong,
.site-footer-links > div:first-child a,
.site-footer-links > div:first-child a:hover,
.site-footer-links > div:first-child a:focus-visible {
  color: #fff;
}

.site-footer-bottom {
  display: flex;
  margin-top: 3rem;
  padding-top: 2rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8f99b1;
  font-size: 1.35rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.8rem;
  align-items: center;
}

.footer-legal a,
.footer-legal button {
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-legal button:hover,
.footer-legal a:focus-visible,
.footer-legal button:focus-visible {
  color: var(--journey-accent);
  text-decoration: underline;
}

.cookie-consent[hidden] { display: none; }
.cookie-consent { position: fixed; z-index: 10000; inset: 0; }
.cookie-consent-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 28, 0.7); backdrop-filter: blur(0.4rem); }
.cookie-consent-panel {
  position: absolute;
  right: clamp(1.6rem, 4vw, 4rem);
  bottom: clamp(1.6rem, 4vw, 4rem);
  width: min(62rem, calc(100% - 3.2rem));
  max-height: calc(100vh - 3.2rem);
  overflow: auto;
  padding: clamp(2.4rem, 4vw, 3.6rem);
  border: 0.1rem solid rgba(31, 227, 230, 0.34);
  border-radius: var(--cs-radius-card);
  color: #fff;
  background: linear-gradient(145deg, #111137, #24154a);
  box-shadow: 0 2.4rem 7rem rgba(0, 0, 0, 0.45);
}
.cookie-consent-panel h2 { margin: 0.5rem 3rem 1rem 0; font-size: clamp(2.6rem, 4vw, 3.8rem); }
.cookie-consent-panel > p:not(.section-kicker):not(.cookie-consent-links) { color: var(--cs-color-text-muted); font-size: 1.65rem; line-height: 1.55; }
.cookie-consent-close { position: absolute; top: 1.6rem; right: 1.6rem; border: 0; color: #fff; background: transparent; font-size: 3rem; cursor: pointer; }
.cookie-consent-options { display: grid; gap: 1rem; margin: 2rem 0; }
.cookie-consent-options label { display: flex; gap: 2rem; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem; border: 0.1rem solid rgba(255,255,255,.12); border-radius: 1.2rem; background: rgba(7,7,39,.56); }
.cookie-consent-options span { display: grid; gap: 0.35rem; }
.cookie-consent-options strong { font-size: 1.65rem; }
.cookie-consent-options small { color: var(--cs-color-text-muted); font-size: 1.35rem; }
.cookie-consent-options input { width: 2rem; height: 2rem; accent-color: var(--journey-accent); }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.cookie-consent-actions button { min-height: 4.8rem; padding: 1rem 1.8rem; border: 0.1rem solid var(--journey-accent); border-radius: 1.2rem; color: #fff; font: 700 1.5rem "Ubuntu Mono", monospace; cursor: pointer; }
.cookie-primary { background: linear-gradient(100deg, #7441f4, #d73bc4); }
.cookie-secondary { background: rgba(7, 7, 39, 0.72); }
.cookie-consent-links { display: flex; gap: 1.8rem; margin: 2rem 0 0; }
.cookie-consent-links a { color: var(--journey-accent); font-size: 1.4rem; }

@media (max-width: 560px) {
  .cookie-consent-panel { right: 1rem; bottom: 1rem; width: calc(100% - 2rem); }
  .cookie-consent-actions { display: grid; }
  .cookie-consent-actions button { width: 100%; }
}

.footer-social-links {
  display: flex;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-social-links a {
  display: inline-flex;
  padding: 0.7rem 1rem;
  align-items: center;
  gap: 0.6rem;
  border-radius: 0.9rem;
  color: var(--journey-accent);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  background: rgba(37, 229, 237, 0.1);
}

.footer-social-links svg {
  width: 2rem;
  height: 2rem;
}

@media (max-width: 700px) {
  .site-footer-main { grid-template-columns: 1fr; gap: 3rem; }
  .site-footer-links { grid-template-columns: 1fr; }
  .site-footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-social-links { justify-content: flex-start; }
}
