:root {
  --learn-red: #E8383B;
  --learn-blue: #5983BC;
  --learn-white: #FFFFFF;
  --learn-white-soft: rgba(255, 255, 255, 0.9);
  --learn-white-muted: rgba(255, 255, 255, 0.72);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.learn-root {
  --section-gap: clamp(56px, 7vw, 110px);
  width: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.learn_banner {
  margin: calc(var(--section-gap) - 40px) auto calc(var(--section-gap) * 0.6) !important;
}

.learn__divider {
  width: 100% !important;
  margin: clamp(4px, 1.8vw, 8px) auto clamp(4px, 2vw, 8px) !important;
}

.learn-diagram {
  width: min(calc(100% - 130px), 1360px);
  margin: 0 auto 100px;
  padding: 0 clamp(20px, 3.2vw, 66px);
}

.learn-diagram__canvas {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  line-height: 0;
}

.learn-diagram__canvas svg {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
}

.learn-diagram__canvas .learn-diagram__svg--mobile {
  display: none;
}

.learn-diagram__summary {
  margin: calc(var(--section-gap) * 0.5) auto 0;
  width: fit-content;
  padding: 0 32px;
  text-align: center;
  font-size: clamp(20px, 1.5vw, 24px);
  line-height: 1.35;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #E8383B 0%, #5983BC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.learn-diagram__summary span {
  font-weight: 700;
}

.learn-application {
  width: min(calc(100% - 130px), 1360px);
  margin: 0 auto;
  padding: 0 clamp(20px, 3.2vw, 66px);
}

.learn-application__canvas {
  width: 100%;
  overflow: visible;
  line-height: 0;
  position: relative;
}

.learn-application__canvas svg {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  overflow: visible;
}

.learn-application__tooltip {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.learn-application__tooltip-target:hover .learn-application__tooltip {
  opacity: 1;
  visibility: visible;
}

.learn-application__hover-zone {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
  cursor: pointer;
}

.learn-application__hover-zone--line {
  stroke-width: 34;
  stroke-linecap: round;
}

.learn-diagram__guide-line--mobile {
  display: none;
}

.site-footer {
  background: #000;
  color: #f4f7fb;
  padding: 100px;
  padding-bottom: 44px;
  font-size: 16px;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
}

.footer-desktop-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
}

.footer-desktop-nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 96px;
  flex: 0 0 45%;
  width: 45%;
}

.footer-nav-section {
  flex: 0 0 auto;
  min-width: 0;
}

.footer-section-heading {
  margin: 0 0 20px;
  line-height: 1.25;
  font-weight: 100;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.footer-section-heading--meta {
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.footer-links a,
.footer-links a:link,
.footer-links a:visited {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9) !important;
  transition: color 0.3s ease;
  white-space: nowrap;
  display: inline-block;
  width: fit-content;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 100;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--learn-blue) !important;
  text-decoration: none;
}

.footer-links a[aria-current="page"],
.footer-links a[aria-current="page"]:hover,
.footer-links a[aria-current="page"]:focus-visible,
.footer-links a[aria-current="page"]:visited {
  background: linear-gradient(90deg, var(--learn-red) 0%, var(--learn-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent !important;
  background-clip: text;
  color: transparent !important;
  text-decoration: none;
}

body[data-page="learn"] .footer-links a[href="/learn"],
body[data-page="home"] .footer-links a[href="/"],
body[data-page="about"] .footer-links a[href="/about-us"],
body[data-page="contact"] .footer-links a[href="/contact-us"],
body[data-page="career"] .footer-links a[href="/careers"],
body[data-page="new-client"] .footer-links a[href="/new-client-setup"],
body[data-page="support"] .footer-legal-links a[href="/support"],
body[data-page="privacy"] .footer-legal-links a[href="/privacy-policy"],
body[data-page="licence"] .footer-legal-links a[href="/licence-agreement"] {
  background: linear-gradient(90deg, var(--learn-red) 0%, var(--learn-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent !important;
  background-clip: text;
  color: transparent !important;
  text-decoration: none;
}

.footer-meta-column {
  display: flex;
  flex-direction: column;
  gap: 56px;
  flex: 0 0 25%;
  width: 25%;
  align-items: flex-start;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.footer-meta-section {
  width: 100%;
}

.footer-meta-column,
.footer-meta-column * {
  font-size: 14px !important;
}

.footer-meta-text,
.footer-meta-inline {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.85;
  font-weight: 100;
  letter-spacing: 0.02em;
}

.footer-meta-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-meta-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  line-height: 1.25;
  text-transform: uppercase;
}

.footer-meta-inline span[aria-hidden="true"] {
  color: rgba(255, 255, 255, 0.55);
}

.footer-map-link,
.footer-map-link:link,
.footer-map-link:visited {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.9) !important;
  font: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-map-link:hover,
.footer-map-link:focus-visible {
  color: var(--learn-blue) !important;
  text-decoration: underline;
}

.footer-map-link.footer-meta-text,
.footer-map-link.footer-mobile-meta--stack,
.footer-map-link.footer-meta-text span,
.footer-map-link.footer-mobile-meta--stack span {
  font-weight: 100 !important;
}

.footer-map-link:focus-visible {
  outline: none;
}

.footer-mobile-layout {
  display: none;
}

.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 25px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 14px;
  color: #7d8790;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-legal-links a,
.footer-legal-links a:link,
.footer-legal-links a:visited {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
  font-weight: 100;
  letter-spacing: 0.02em;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--learn-blue) !important;
  text-decoration: none;
}

.footer-legal-links a[aria-current="page"],
.footer-legal-links a[aria-current="page"]:hover,
.footer-legal-links a[aria-current="page"]:focus-visible,
.footer-legal-links a[aria-current="page"]:visited {
  background: linear-gradient(90deg, var(--learn-red) 0%, var(--learn-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent !important;
  background-clip: text;
  color: transparent !important;
  text-decoration: none;
}

.footer-legal-links span {
  color: #7d8790;
}

.footer-legal-links--desktop {
  justify-content: center;
  margin-top: 0;
  margin-bottom: 0;
}

.footer-legal-links--mobile {
  display: none;
  justify-content: center;
  margin-top: 16px;
}

.footer-brand--desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.footer-brand--mobile {
  display: none;
}

.footer-logo--bottom {
  width: auto;
  height: auto;
  max-width: 217.06px;
  max-height: 86.2px;
  display: block;
  margin: 0;
}

.footer-logo--mobile {
  height: clamp(62.4px, 16.64vw, 76.96px);
  margin: 0;
}

.footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 100;
  letter-spacing: 0.02em;
}

.footer-copyright--mobile {
  display: none;
}

.footer-copyright--desktop {
  display: block;
  margin-top: 20px;
}

.site-footer,
.site-footer a,
.site-footer p,
.site-footer span,
.site-footer h4 {
  font-size: 16px;
}

@media (max-width: 900px) {
  body {
    background: linear-gradient(180deg,
        #111213 0%,
        #191D2F 42%,
        #14151A 70%) !important;
  }

  .learn_banner {
    margin: 10px auto 28px !important;
  }

  .learn__divider {
    width: calc(100% - 24px) !important;
  }

  .learn-diagram {
    width: 100%;
    margin: 0 auto 64px;
    padding: 0 16px;
  }

  .learn-diagram__canvas,
  .learn-application__canvas {
    overflow: hidden;
  }

  .learn-diagram__canvas .learn-diagram__svg--desktop {
    display: none;
  }

  .learn-diagram__canvas .learn-diagram__svg--mobile {
    display: block;
  }

  .learn-diagram__summary {
    margin-top: 28px;
    padding: 0 20px;
    font-size: clamp(18px, 4.6vw, 30px);
    line-height: 1.42;
  }

  .learn-diagram__copy-title {
    font-size: clamp(50px, 12vw, 72px);
  }

  .learn-diagram__copy-body {
    font-size: clamp(34px, 8.8vw, 52px);
    transform: translateY(20px);
  }

  .learn-application {
    width: 100%;
    padding: 0;
  }

  .learn-application__canvas svg {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .learn-application__section-title {
    transform: translateX(48px);
  }

  .learn-application__tooltip-text {
    font-size: clamp(34px, 8.8vw, 52px);
  }

  .learn-diagram__link-line,
  .learn-diagram__link-dot {
    display: none;
  }

  .learn-diagram__guide-line--desktop {
    display: none;
  }

  .learn-diagram__guide-line--mobile {
    display: inline;
  }
}

@media (max-width: 900px) {
  .site-footer {
    position: relative;
    z-index: 4;
    isolation: isolate;
    padding: 28px 24px 34px;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .footer-desktop-layout {
    display: none;
  }

  .footer-mobile-layout {
    display: block;
  }

  .footer-mobile-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 40px 44px;
    align-items: flex-start;
  }

  .footer-mobile-column {
    display: contents;
  }

  .footer-mobile-section {
    min-width: 0;
  }

  .footer-mobile-section--discover {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-mobile-section--connect {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-mobile-section--resources {
    grid-column: 1;
    grid-row: 3;
  }

  .footer-mobile-section--headquarters {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-mobile-section--offices {
    grid-column: 2;
    grid-row: 2;
  }

  .footer-mobile-layout .footer-section-heading {
    margin: 0 0 18px;
    font-size: 14px !important;
    line-height: 1.2;
    letter-spacing: 0.03em;
  }

  .footer-mobile-section--resources .footer-section-heading {
    width: max-content;
    max-width: none;
    white-space: nowrap;
  }

  .footer-mobile-links a {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    font-size: 14px !important;
    line-height: 1.4;
  }

  .footer-legal-links--mobile,
  .footer-legal-links--mobile a,
  .footer-legal-links--mobile span {
    font-size: 14px !important;
  }

  .footer-mobile-meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px !important;
    line-height: 1.7;
    font-weight: 100;
    letter-spacing: 0.02em;
  }

  .footer-mobile-meta--stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-mobile-meta--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    text-transform: uppercase;
  }

  .footer-mobile-section--offices .footer-mobile-meta--inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-mobile-section--headquarters .footer-mobile-meta span,
  .footer-mobile-section--offices .footer-mobile-meta span {
    font-size: 13px !important;
  }

  .footer-mobile-meta--inline span[aria-hidden="true"] {
    color: rgba(255, 255, 255, 0.55);
  }

  .footer-mobile-layout .footer-map-link {
    width: 100%;
  }

  .footer-bottom {
    position: relative;
    z-index: 5;
    margin-top: 46px;
  }

  .footer-legal-links {
    position: relative;
    z-index: 5;
    margin-top: 0;
    justify-content: center;
  }

  .footer-legal-links--desktop {
    display: none;
  }

  .footer-legal-links--mobile {
    display: flex;
    margin-bottom: 0;
  }

  .footer-brand--desktop {
    display: none;
  }

  .footer-copyright--desktop {
    display: none;
  }

  .footer-brand--mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 17px;
  }

  .footer-copyright--mobile {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 17px;
  }
}
