/* Learning Journeys
   Tokens from the KR-Brand kit (2026-11-20). Summit Gold is for the Summit only:
   the TES chip and the trail flag (the summit badge SVG carries its own gold). */

:root {
  --summit-navy: #031F42;
  --night: #01142B;
  --rise-blue: #237FFF;
  --kairise-blue: #0071DC;
  --deep-blue: #0059D6;
  --sky: #6AA8FF;
  --glacier: #A9CFFF;
  --ice: #EAF3FF;
  --ink: #252525;
  --slate: #666666;
  --summit-gold: #FFC221;
  --white: #ffffff;
  --mist: #F5F5F5;
  --range-dim: #134FA0;
  --header-black: #000000;
  --menu-hover: #0a70ff;
  --font-header: "Archivo", sans-serif;
  --font-display: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-code: "Bebas Neue", sans-serif;
  --shadow: 0 4px 10px rgba(37, 47, 63, 0.1);
  --radius: 16px;
  --wrap: 1120px;
}

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

html { font-size: 16px; }

@media (min-width: 768px) {
  html { font-size: 18px; }
}

body {
  position: relative;
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; }

a { color: var(--kairise-blue); }

a:hover { color: var(--deep-blue); }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--deep-blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  z-index: 400;
  transform: translateY(-120%);
  background: var(--white);
  color: var(--summit-navy);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.skip:focus,
.skip:focus-visible {
  top: 12px;
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  position: relative;
  z-index: 2;
  width: min(var(--wrap), calc(100% - 3.5rem));
  margin: 0 auto;
}

@media (min-width: 768px) {
  .wrap { width: min(var(--wrap), calc(100% - 7rem)); }
}

h1, h2, h3, .pull {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kairise-blue);
}

.on-navy .kicker { color: var(--glacier); }

/* ---- Header (KR-Brand kit, measured from www.kairise.com) ---- */

.kr-header {
  position: relative;
  background: var(--header-black);
  z-index: 301;
  min-height: 102.3px;
  border: 0;
  transition: background-color 400ms ease, box-shadow 200ms ease;
}

.kr-header__container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: 768px;
  padding: 25.6px 16px;
}

.kr-header__wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 48px;
}

.kr-header__logo { flex: 0 0 auto; padding-right: 18px; line-height: 1; }

.kr-header__logo a { display: inline-block; text-decoration: none; }

.kr-header__logo img {
  display: block;
  width: 176px;
  height: 48px;
  max-width: none;
  object-fit: contain;
}

.kr-header__nav { width: 100%; }

.kr-header__nav ul {
  margin: 0;
  padding: 10px 0 0;
  list-style: none;
  text-align: right;
}

.kr-header__item {
  display: inline-block;
  margin-left: 36px;
  font-family: var(--font-header);
  font-size: 15.75px;
  line-height: 23.625px;
  text-align: center;
  text-transform: uppercase;
}

.kr-header__item:first-child { margin-left: 0; }

.kr-header__item a {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.kr-header__item a:hover,
.kr-header__item a:focus,
.kr-header__item a:active { color: var(--white); }

.kr-header__item a[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--white);
}

.kr-header :focus-visible { outline-color: var(--white); }

.kr-header__burger {
  display: none;
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.kr-header__burger-icon {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.kr-header__burger-icon span {
  display: block;
  position: absolute;
  top: 10.5px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--white);
  transition: background 250ms ease;
}

.kr-header__burger-icon span::before,
.kr-header__burger-icon span::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--white);
  transition-duration: 250ms, 250ms;
  transition-delay: 250ms, 0s;
}

.kr-header__burger-icon span::before { top: -7px; transition-property: top, transform; }

.kr-header__burger-icon span::after { bottom: -7px; transition-property: bottom, transform; }

.kr-header__burger-label {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  margin-top: 2px;
  color: var(--white);
  font-family: sans-serif;
  font-size: 10.8px;
  line-height: normal;
  text-transform: uppercase;
}

.kr-header__burger.open .kr-header__burger-icon span { background: transparent; }

.kr-header__burger.open .kr-header__burger-icon span::before {
  top: 0;
  transform: rotate(45deg);
  transition-delay: 0s, 250ms;
}

.kr-header__burger.open .kr-header__burger-icon span::after {
  bottom: 0;
  transform: rotate(-45deg);
  transition-delay: 0s, 250ms;
}

@media (min-width: 768px) {
  .kr-header { min-height: 114.7px; }
  .kr-header__container { padding: 28.8px 18px; }
  .kr-header__wrapper { min-height: 54px; }
  .kr-header__logo img { width: 198px; height: 54px; }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Six items plus the logo need a tighter gap below the measured 1280px width. */
  .kr-header__item { margin-left: 12px; }
}

@media (min-width: 992px) {
  .kr-header__container { max-width: 992px; }
}

@media (min-width: 1200px) {
  .kr-header__container { max-width: 1200px; }
}

@media (max-width: 767px) {
  .kr-header__burger { display: block; z-index: 303; }
  .kr-header__nav {
    display: block;
    position: absolute;
    top: 160%;
    left: 0;
    width: 100%;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    z-index: -9999;
    transition: opacity 400ms ease, visibility 400ms ease, z-index 400ms ease;
  }
  .kr-header__nav ul { padding: 0; text-align: center; }
  .kr-header__item { display: block; margin-left: 0; }
  .kr-header__item a {
    display: block;
    padding: 8px 16px;
    color: var(--white);
    font-weight: 500;
    text-align: center;
  }
  .kr-header__item a:hover,
  .kr-header__item a:focus,
  .kr-header__item a:active { background: var(--menu-hover); }
  .kr-header[data-menu="open"] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: var(--rise-blue);
    z-index: 302;
  }
  .kr-header[data-menu="open"] .kr-header__nav {
    padding-top: 32px;
    opacity: 1;
    visibility: visible;
    z-index: 302;
  }
}

/* ---- Page trail ---- */

.page-trail {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.page-trail svg { display: block; overflow: visible; }

.page-trail__line {
  fill: none;
  stroke: var(--rise-blue);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
  #summit-flag.is-waving {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: flag-wave 800ms ease;
  }
}

@keyframes flag-wave {
  40% { transform: rotate(8deg); }
  100% { transform: rotate(0deg); }
}

/* ---- Sections ---- */

.section { position: relative; padding: 3rem 0; }

.section h2, .hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  max-width: 16ch;
}

.lede { margin: 0 0 1.1rem; font-size: 1.05rem; max-width: 38rem; }

.on-navy { background: var(--summit-navy); color: var(--white); }
.on-navy .lede, .micro { color: var(--ice); }
.on-ice { background: var(--ice); }
.on-white { background: var(--white); }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--night) 0%, var(--summit-navy) 70%);
  color: var(--white);
  padding: 2.6rem 0 6.5rem;
}

.hero__grid { display: grid; gap: 1.75rem; }

.hero__copy, .hero__art { min-width: 0; }

.hero__mountains {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  pointer-events: none;
}

.hero__mountains svg { width: 100%; height: 100%; display: block; }

.hero__art {
  margin: 0.5rem 0 0;
  color: var(--white);
}

.hero__kicker {
  margin: 0 0 0.55rem;
  color: var(--glacier);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  object-position: right center;
  border-radius: var(--radius);
  background: var(--night);
}

.hero__art figcaption {
  margin: 0.7rem 0 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn, .quote-nav button, .marker__btn, .flip, .rise {
  font-family: var(--font-body);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.btn--solid { background: var(--kairise-blue); color: var(--white); }
.btn--solid:hover { background: var(--deep-blue); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--summit-navy); }

.tiles, .flow, .steps, .map { display: grid; gap: 0.8rem; }

.tiles-4 { grid-template-columns: 1fr 1fr; }

.live-tiles { align-items: start; }

.rise {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.rise__title {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.rise__line {
  display: block;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.rise:focus-visible .rise__line,
.rise[aria-pressed="true"] .rise__line {
  max-height: 8rem;
  margin-top: 0.45rem;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .rise:not(.is-risen) {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
  }
  .rise.is-risen {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 450ms ease, transform 450ms ease;
  }
  .rise__line {
    transition: max-height 220ms ease, opacity 180ms ease, margin-top 220ms ease;
  }
}

.tile, .step, .quote, .checks {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tile, .step { padding: 0.9rem 1rem 1rem; }

.tile h3, .step h3 { margin: 0.35rem 0; font-size: 1.15rem; }
.tile p, .step p { margin: 0; }

.fine, .checks, .pills { margin: 0; padding: 0; list-style: none; }
.fine { margin-top: 1rem; color: var(--slate); font-size: 0.92rem; }
.fine li + li { margin-top: 0.3rem; }
.on-ice .fine { color: var(--ink); }

.map { margin-top: 1.1rem; align-items: stretch; }

.marker--lit {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.7rem;
}

.marker__btn {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.marker__btn img { width: 72px; height: 72px; flex: none; }

.marker__label { display: grid; gap: 0.1rem; }
.marker__label span:last-child { color: var(--slate); font-size: 0.92rem; }

.code {
  font-family: var(--font-code);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--kairise-blue);
  line-height: 1;
}

.marker__detail {
  margin: 0.6rem 0 0;
  color: var(--summit-navy);
}

.outline {
  min-height: 72px;
  border: 2px dashed rgba(19, 79, 160, 0.45);
  border-radius: 14px;
  color: var(--slate);
  display: flex;
  align-items: flex-end;
  padding: 0.5rem;
  background: transparent;
}

.marker--summit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.ico { display: block; width: 36px; height: 36px; color: var(--rise-blue); }
.ico svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ico--summit {
  color: var(--summit-gold);
  background: var(--summit-navy);
  border-radius: 10px;
  padding: 4px;
  width: 44px;
  height: 44px;
}

.flip {
  display: grid;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ice);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
  font-size: 16px;
  line-height: 1.45;
}

.flip__face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.45rem;
  min-height: 168px;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.flip__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.flip__body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.flip__back {
  justify-content: center;
  background: var(--summit-navy);
  color: var(--white);
}

.flip__back .flip__title { font-size: 14px; }

.flip__back { visibility: hidden; }
.flip:focus-visible .flip__front,
.flip[aria-pressed="true"] .flip__front { visibility: hidden; }
.flip:focus-visible .flip__back,
.flip[aria-pressed="true"] .flip__back { visibility: visible; }

.steps { list-style: none; margin: 0; padding: 0; }
.step { border-top: 4px solid var(--glacier); }
.step.is-lit { border-top-color: var(--rise-blue); background: var(--white); }

.proof { margin: 1rem 0 0; max-width: 40rem; }

.flow { align-items: start; }
.checks { padding: 0.4rem 0.9rem 0.8rem; }
.checks li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-top: 1px solid var(--ice);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.checks li::before {
  content: "";
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  border: 2px solid var(--rise-blue);
}
.checks li.is-ticked::before { background: var(--rise-blue); box-shadow: inset 0 0 0 3px var(--white); }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pills li {
  background: var(--white);
  color: var(--summit-navy);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.swap {
  position: relative;
  height: 3.6rem;
  margin: 0.9rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}
.swap span { position: absolute; left: 0; right: 0; top: 0; opacity: 0; }

.quote-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.3rem;
}
.quote {
  flex: 0 0 86%;
  scroll-snap-align: start;
  background: var(--summit-navy);
  color: var(--white);
  padding: 0.9rem 1rem 1rem;
  border-radius: 18px 18px 18px 4px;
}
.quote p { margin: 0 0 0.7rem; }
.quote footer { color: var(--glacier); }
.badge {
  display: inline-block;
  margin: 0 0 0.45rem;
  background: var(--ice);
  color: var(--summit-navy);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.quote-nav { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.quote-nav button {
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--summit-navy);
  background: var(--white);
  color: var(--summit-navy);
  font-weight: 700;
}

.horizon svg { width: 100%; height: 90px; display: block; }
.fine-line { margin: 0.8rem 0 0; color: var(--slate); }

.cta__layout { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.cta__flag { width: 64px; min-height: 88px; flex: none; }
.cta .actions { flex-direction: column; align-items: stretch; }
.hero .actions { flex-direction: column; align-items: stretch; }

.link-tbd { margin: 0.6rem 0 0; color: var(--slate); font-size: 0.9rem; }

@media (min-width: 700px) {
  .hero .actions, .cta .actions { flex-direction: row; align-items: center; }
  .cta__layout { flex-direction: row; align-items: center; gap: 1.4rem; }
}

@media (min-width: 800px) {
  .hero__grid, .flow { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .hero__grid { gap: 2.25rem; align-items: center; }
  .hero__art { margin-top: 0; }
  .hero__art img { aspect-ratio: 16 / 10; }
  .tiles-3 { grid-template-columns: repeat(3, 1fr); }
  .tiles-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .map { grid-template-columns: 1.4fr repeat(3, 0.7fr) auto; }
  .quote-row { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .quote { flex: none; }
  .quote-nav { display: none; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .flip:hover .flip__front { visibility: hidden; }
  .flip:hover .flip__back { visibility: visible; }
  .marker__detail { display: none; }
  .marker:hover .marker__detail, .marker:focus-within .marker__detail, .marker.is-open .marker__detail { display: block; }
  .rise:hover .rise__line {
    max-height: 8rem;
    margin-top: 0.45rem;
    opacity: 1;
  }
  .swap span:first-child { animation: swap-a 6s ease infinite; }
  .swap span:last-child { animation: swap-b 6s ease infinite; }
  .tile, .step { transition: transform 160ms ease; }
  .tile:hover, .step:hover { transform: translateY(-3px); }
}

@media (hover: none), (max-width: 767px) {
  .marker__detail { display: block; }
}

@keyframes swap-a {
  0%, 36% { opacity: 1; }
  44%, 100% { opacity: 0; }
}
@keyframes swap-b {
  0%, 48% { opacity: 0; }
  56%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .swap { height: auto; }
  .swap span { position: static; display: block; opacity: 1; margin-top: 0.35rem; }
  .step { border-top-color: var(--rise-blue); }
  .marker__detail { display: block; }
  .flip { display: flex; flex-direction: column; gap: 0.8rem; overflow: visible; background: transparent; box-shadow: none; }
  .flip__face { grid-area: auto; min-height: 0; visibility: visible; }
  .rise,
  .rise.is-risen {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .rise__line {
    max-height: none;
    margin-top: 0.45rem;
    overflow: visible;
    opacity: 1;
  }
}
