@font-face {
  font-family: "Onest Footer";
  src: url("./assets/Onest.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.site-footer {
  --footer-ink: #30204f;
  --footer-muted: #6d5888;
  --footer-paper: #eee5ff;
  --footer-plum: #271a40;
  --footer-lilac: #ceacff;
  --footer-lime: #a3f947;
  --footer-divider: #c9b9de;
  --footer-signature-accent: #76529b;
  --footer-focus: #7541a8;
  --footer-link-hover: #5f368a;
  padding: 0;
  background: var(--md-sys-color-surface, #f9faef);
  color: var(--footer-ink);
  font: 400 1rem/1.55 "Onest Footer", "Roboto Flex", sans-serif;
  isolation: isolate;
}
.site-footer ::selection { color: #271a40; background: #a3f947; }
.footer-wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.footer-journey {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  border-radius: 40px 40px 0 0;
  color: #faf5ff;
  background: var(--footer-plum);
}
.footer-landscape { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.footer-journey > .footer-wrap { position: relative; }
.footer-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-intro h2 {
  max-width: 780px;
  margin: 0;
  font: 850 clamp(2.6rem, 5vw, 4.75rem)/1.1 "Onest Footer", sans-serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.footer-intro h2 span { color: var(--footer-lilac); }
.footer-friend { display: flex; flex: none; align-items: center; gap: 18px; padding-top: 6px; }
.footer-friend p { max-width: 178px; margin: 0; padding: 16px 20px; border-radius: 22px 22px 4px 22px; background: #3b2858; color: #eadbff; font-size: 1rem; font-weight: 600; line-height: 1.5; transform: rotate(-4deg); }
.footer-friend img { width: 136px; height: 136px; border-radius: 50%; border: 6px solid #57416f; }
.footer-route { position: relative; margin-top: 40px; padding-top: 112px; }
.footer-route-line { position: absolute; top: 106px; left: 0; width: 100%; height: 160px; overflow: visible; pointer-events: none; }
.route-track { fill: none; stroke: #80629f; stroke-width: 6; stroke-dasharray: 10 21; stroke-linecap: round; }
.route-active { stroke: #d3acff; }
.route-reveal { fill: none; stroke: #fff; stroke-width: 18; stroke-dasharray: 1; stroke-dashoffset: 0; }
.footer-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0; list-style: none; text-align: center; }
.footer-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.footer-node { position: relative; display: grid; width: 148px; height: 148px; flex: none; place-items: center; color: #20330f; filter: drop-shadow(0 5px 3px #649f2680); }
.footer-node-shape { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--footer-lime); }
.footer-node-icon { position: relative; width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.footer-node-star { color: #25153d; filter: drop-shadow(0 5px 3px #8760b180); }
.footer-node-star .footer-node-shape { fill: #c89afa; }
.footer-node-star .footer-node-icon { fill: currentColor; stroke: none; }
.footer-ogi { position: absolute; z-index: 1; width: 294px; height: auto; bottom: calc(100% - 32px); left: 50%; transform: translateX(-50%); pointer-events: none; }
.footer-step-label { position: relative; max-width: 240px; font-weight: 700; font-size: 1.2rem; line-height: 1.45; text-wrap: balance; }
.footer-start { display: flex; flex-direction: column; align-items: center; gap: 26px; color: inherit; text-underline-offset: 6px; }
.footer-start:hover .footer-node { transform: translateY(-4px); }
.footer-start:hover .footer-step-label { text-decoration: underline; }
.footer-node { transition: transform .3s cubic-bezier(.16,1,.3,1); }
.footer-directory { padding: 44px 0 0; }
.footer-directory-grid { display: grid; grid-template-columns: 1.05fr .95fr 1.05fr 1.5fr; gap: 40px; }
.footer-signature { display: inline-flex; align-items: center; min-height: 48px; font: 900 clamp(2.3rem, 3.3vw, 3rem)/1.2 "Onest Footer", sans-serif; letter-spacing: -.04em; }
.footer-signature span { color: var(--footer-signature-accent); }
.footer-brand-copy { max-width: 225px; margin: 14px 0 0; color: var(--footer-muted); font-size: 1rem; line-height: 1.6; }
.footer-group h3 { margin: 0 0 14px; font: 750 1.12rem/1.5 "Onest Footer", sans-serif; }
.footer-group ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.footer-group a { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 44px; gap: 12px; color: var(--footer-ink); font-size: 1rem; line-height: 1.5; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.footer-group a:hover { color: var(--footer-link-hover); text-decoration: underline; }
.footer-group .footer-privacy-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 14px; }
.footer-privacy-contact small { color: var(--footer-muted); font-size: .76rem; }
.footer-social-icon { display: block; width: 34px; height: 34px; flex: none; }
.footer-social-icon img { display: block; width: 100%; height: 100%; }
.footer-support { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--footer-divider); }
.footer-support a { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.footer-support small { display: block; color: var(--footer-muted); font-size: .76rem; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding: 16px 0 20px; border-top: 1px solid var(--footer-divider); color: var(--footer-muted); font-size: .85rem; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; text-underline-offset: 4px; }
.footer-bottom a:hover { color: var(--footer-link-hover); text-decoration: underline; }
.footer-bottom-links { display: flex; align-items: center; gap: 24px; }
.footer-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-footer :where(a,button):focus-visible { outline: 3px solid var(--footer-focus); outline-offset: 5px; border-radius: 4px; }
.footer-journey a:focus-visible { outline-color: var(--footer-lime); }

/* Match the landing page's system theme while keeping the course accents. */
@media (prefers-color-scheme: dark) {
  .site-footer {
    --footer-ink: #e9def7;
    --footer-muted: #b4a3c9;
    --footer-paper: #1d1728;
    --footer-plum: #251b37;
    --footer-divider: #43344f;
    --footer-signature-accent: #c9a0f1;
    --footer-focus: #c9a0f1;
    --footer-link-hover: #c9a0f1;
  }
  .footer-friend p { background: #352745; }
  .footer-friend img { border-color: #4c3a60; }
  .footer-landscape path:first-child { fill: #2b213a; }
  .footer-landscape path:last-child { fill: #332843; }
}

@media (prefers-reduced-motion: no-preference) {
  .footer-journey.is-visible .route-reveal { animation: footer-draw 1.6s cubic-bezier(.16,1,.3,1) both; }
  .footer-journey.is-visible .footer-node { animation: footer-step .65s cubic-bezier(.16,1,.3,1) both; }
  .footer-journey.is-visible .footer-step:nth-child(2) .footer-node { animation-delay: .25s; }
  .footer-journey.is-visible .footer-step:nth-child(3) .footer-node { animation-delay: .5s; }
  @keyframes footer-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes footer-step { from { translate: 0 8px; scale: .96; } to { translate: 0 0; scale: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-footer *, .site-footer *::before, .site-footer *::after { animation: none !important; transition: none !important; }
}
.footer-node::before { content: ""; position: absolute; inset: -17px; border-radius: 50%; background: #bd8dff0c; }
.footer-brand-block, .footer-group { min-width: 0; }
.footer-social-text { display: grid; line-height: 1.35; }
.footer-social-text small { color: var(--footer-muted); font-size: .76rem; }
.footer-directory-surface { background: var(--footer-paper); }
@media (max-width: 1100px) {
  .footer-wrap { width: calc(100% - 64px); }
  .footer-friend p { display: none; }
  .footer-friend img { width: 108px; height: 108px; }
  .footer-directory-grid { grid-template-columns: 1fr 1fr 1.4fr; gap: 28px; }
  .footer-brand-block { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; }
  .footer-brand-copy { max-width: none; margin: 0; }
}
@media (max-width: 700px) {
  .footer-wrap { width: calc(100% - 40px); }
  .footer-journey { padding: 32px 0 34px; border-radius: 28px 28px 0 0; }
  .footer-intro { gap: 12px; }
  .footer-intro h2 { font-size: clamp(1.65rem, 7.1vw, 2.6rem); letter-spacing: -.03em; }
  .footer-friend { padding-top: 2px; }
  .footer-friend img { width: 58px; height: 58px; border-width: 3px; }
  .footer-route { margin-top: 26px; padding-top: 104px; }
  .footer-route-line { top: 97px; height: 96px; }
  .route-track { stroke-width: 4; stroke-dasharray: 8 13; vector-effect: non-scaling-stroke; }
  .footer-node { width: 82px; height: 82px; }
  .footer-node::before { inset: -8px; }
  .footer-node-icon { width: 31px; height: 31px; }
  .footer-ogi { width: 176px; bottom: calc(100% - 22px); }
  .footer-step, .footer-start { gap: 20px; }
  .footer-step-label { max-width: 110px; min-height: 42px; font-size: .88rem; line-height: 1.5; }
  .footer-directory { padding-top: 32px; }
  .footer-directory-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-brand-block { display: block; }
  .footer-signature { font-size: 2.5rem; }
  .footer-brand-copy { margin-top: 8px; font-size: .92rem; }
  .footer-documents { grid-column: 1 / -1; }
  .footer-group h3 { margin-bottom: 10px; font-size: 1.05rem; }
  .footer-group a { font-size: .92rem; }
  .footer-group ul { gap: 5px; }
  .footer-social-icon { width: 30px; height: 30px; }
  .footer-group .footer-privacy-contact { padding-top: 10px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 28px; gap: 4px; padding: 18px 0; font-size: .75rem; }
  .footer-bottom-links { width: 100%; justify-content: space-between; gap: 14px; }
}
@media (max-width: 360px) {
  .footer-wrap { width: calc(100% - 32px); }
  .footer-friend img { width: 48px; height: 48px; }
  .footer-node { width: 74px; height: 74px; }
  .footer-route-line { top: 93px; }
  .footer-ogi { width: 160px; }
  .footer-step-label { font-size: .8rem; }
  .footer-directory-grid { column-gap: 16px; }
}
