/* ─────────────────────────────────────────────────────────────
   Kairon guided-journey chrome — injected into the standalone demo
   bundles, which live outside Nuxt and therefore have no site chrome
   of their own. Tokens mirror app/assets/css/demos.css (.dz) so the
   rail reads as the same design system as /demos.

   Namespaced under .kt / .kt-* so nothing here can reach the demo.
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500&family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --kt-rail: 0px;
}

.kt,
.kt * {
  box-sizing: border-box;
}

.kt {
  --kt-paper: #FAF7ED;
  --kt-card: #FFFFFF;
  --kt-navy: #0C2D57;
  --kt-ink-2: #2B3F5B;
  --kt-muted: #667389;
  --kt-faint: #9BA3B1;
  --kt-line: rgba(12, 45, 87, .14);
  --kt-line-2: rgba(12, 45, 87, .08);
  --kt-accent: #F97140;
  --kt-accent-2: #CF521C;
  --kt-accent-tint: #FDE6DA;
  --kt-accent-line: #F6C6AD;
  --kt-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --kt-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --kt-display: 'Oswald', 'Impact', sans-serif;
  --kt-shadow: 0 2px 6px rgba(12, 45, 87, .07), 0 44px 90px -40px rgba(12, 45, 87, .5);

  font-family: var(--kt-sans);
  color: var(--kt-ink-2);
  -webkit-font-smoothing: antialiased;
}

/* the host document gives up the top strip to the rail */
html.kt-on body {
  padding-top: var(--kt-rail);
  box-sizing: border-box;
}

/* ── rail ─────────────────────────────────────────────────── */

.kt-rail {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2147483000;
  height: var(--kt-rail);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: var(--kt-navy);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
}

.kt-rail__home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  padding: 5px 8px 5px 4px;
  border-radius: 6px;
  transition: background .14s ease;
}
.kt-rail__home:hover { background: rgba(255, 255, 255, .1); }
.kt-rail__sq {
  width: 9px; height: 9px;
  background: var(--kt-accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.kt-rail__brand {
  font-family: var(--kt-display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .01em;
  line-height: 1;
}
.kt-rail__back {
  font-family: var(--kt-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
}
.kt-rail__home:hover .kt-rail__back { color: #fff; }

.kt-rail__div {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, .18);
  flex-shrink: 0;
}

.kt-rail__track {
  font-family: var(--kt-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.kt-rail__spacer { margin-left: auto; }

/* Persistent CTA. Deliberately quieter than .kt-btn--solid: it must be findable
   for the whole walk without ever reading as the next thing to press. */
.kt-rail__cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  white-space: nowrap;
  transition: background .14s, border-color .14s, color .14s;
}
.kt-rail__cta:hover,
.kt-rail__cta:focus-visible {
  background: var(--kt-accent);
  border-color: var(--kt-accent);
  color: #fff;
}

/* progress / chapter trigger */
.kt-chapters {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  padding: 5px 10px;
  cursor: pointer;
  color: #fff;
  font-family: var(--kt-mono);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .14s ease;
}
.kt-chapters:hover { background: rgba(255, 255, 255, .16); }
.kt-chapters__bars { display: inline-flex; gap: 3px; }
.kt-chapters__bar {
  position: relative;
  overflow: hidden;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .26);
  transition: background .18s ease;
}
.kt-chapters__bar.done { background: rgba(249, 113, 64, .5); }
.kt-chapters__bar.on { background: var(--kt-accent); }
/* The current chapter fills step by step rather than switching on all at once,
   so the bar keeps its empty track and the fill span paints the progress. */
.kt-chapters__bar.on.has-fill { background: rgba(255, 255, 255, .26); }
.kt-chapters__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 2px;
  background: var(--kt-accent);
  transition: width .24s cubic-bezier(.25, 1, .5, 1);
}
.kt-chapters__caret { font-size: 9px; opacity: .7; }

.kt-btn {
  font-family: var(--kt-sans);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 7px;
  padding: 7px 13px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .14s ease, border-color .14s ease, color .14s ease, opacity .14s ease;
}
.kt-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .85);
}
.kt-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.kt-btn--solid {
  background: var(--kt-accent);
  border-color: var(--kt-accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.kt-btn--solid:hover { background: var(--kt-accent-2); border-color: var(--kt-accent-2); }
.kt-btn[disabled] { opacity: .35; cursor: default; }
.kt-btn[disabled]:hover { background: transparent; }

.kt-rail__nav { display: inline-flex; gap: 6px; align-items: center; }

/* ── chapter menu ─────────────────────────────────────────── */

.kt-menu {
  position: fixed;
  z-index: 2147483001;
  top: calc(var(--kt-rail) + 8px);
  right: 16px;
  width: 400px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - var(--kt-rail) - 24px);
  overflow: auto;
  background: var(--kt-card);
  border: 1px solid var(--kt-line);
  border-radius: 10px;
  box-shadow: var(--kt-shadow);
  padding: 8px;
}
.kt-menu__head {
  font-family: var(--kt-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kt-muted);
  padding: 8px 10px 10px;
}
/* Chapter headings: the unit a thirteen-step track is actually navigated by. */
.kt-menu__chap {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 10px 6px;
  font-family: var(--kt-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--kt-navy);
}
.kt-menu__chap:first-child { padding-top: 4px; }
.kt-menu__chap-n {
  font-family: var(--kt-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--kt-faint);
  border: 1px solid var(--kt-line);
  border-radius: 4px;
  padding: 1px 5px;
}
.kt-menu__chap.on { color: var(--kt-accent-2); }
.kt-menu__chap.on .kt-menu__chap-n {
  color: var(--kt-accent-2);
  border-color: var(--kt-accent-line);
  background: var(--kt-accent-tint);
}
.kt-menu__chap-c {
  margin-left: auto;
  font-family: var(--kt-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--kt-faint);
}

.kt-menu__item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 9px 10px;
  cursor: pointer;
  font-family: var(--kt-sans);
  transition: background .12s ease;
}
.kt-menu__item:hover { background: var(--kt-paper); }
.kt-menu__item.on { background: var(--kt-accent-tint); }
.kt-menu__n {
  font-family: var(--kt-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--kt-faint);
}
.kt-menu__item.on .kt-menu__n { color: var(--kt-accent-2); }
.kt-menu__t {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--kt-navy);
}
.kt-menu__d {
  display: block;
  font-family: var(--kt-mono);
  font-size: 10px;
  color: var(--kt-faint);
  margin-top: 3px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── step card ────────────────────────────────────────────── */

.kt-card {
  position: fixed;
  z-index: 2147483001;
  right: 22px;
  bottom: 22px;
  width: 396px;
  max-width: calc(100vw - 32px);
  transition: right .28s cubic-bezier(.25, 1, .5, 1), left .28s cubic-bezier(.25, 1, .5, 1),
              top .28s cubic-bezier(.25, 1, .5, 1), bottom .28s cubic-bezier(.25, 1, .5, 1);
  background: var(--kt-card);
  border: 1px solid var(--kt-line);
  border-radius: 12px;
  box-shadow: var(--kt-shadow);
  padding: 18px 20px 16px;
}
.kt-card--enter { animation: kt-card-in 320ms cubic-bezier(.25, 1, .5, 1) both; }
@keyframes kt-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* The card moves out of the spotlight's way rather than sitting on top of it. */
.kt-card--br { right: 22px; bottom: 22px; left: auto; top: auto; }
.kt-card--bl { left: 22px; bottom: 22px; right: auto; top: auto; }
.kt-card--tr { right: 22px; top: calc(var(--kt-rail) + 22px); left: auto; bottom: auto; }
.kt-card--tl { left: 22px; top: calc(var(--kt-rail) + 22px); right: auto; bottom: auto; }

.kt-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.kt-card__ix {
  font-family: var(--kt-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kt-accent-2);
  background: var(--kt-accent-tint);
  border: 1px solid var(--kt-accent-line);
  border-radius: 5px;
  padding: 3px 8px;
}
.kt-card__icon {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--kt-faint);
  font-size: 13px;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  flex-shrink: 0;
}
.kt-card__icon:first-of-type { margin-left: auto; }
.kt-card__icon--x { font-size: 18px; }
.kt-card__icon:hover { color: var(--kt-navy); background: var(--kt-paper); }

.kt-card__punch {
  font-family: var(--kt-display);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.14;
  letter-spacing: -.005em;
  color: var(--kt-navy);
  margin: 0 0 10px;
}
.kt-card__mech {
  font-size: 14px;
  line-height: 1.55;
  color: var(--kt-ink-2);
  margin: 0;
}
.kt-card__fallback {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--kt-accent-2);
  background: var(--kt-accent-tint);
  border: 1px solid var(--kt-accent-line);
  border-radius: 7px;
  padding: 9px 11px;
}

/* ── the step you perform yourself ────────────────────────── */

.kt-do {
  margin-top: 14px;
  border: 1px solid var(--kt-accent-line);
  background: var(--kt-accent-tint);
  border-radius: 8px;
  padding: 10px 12px;
}
.kt-do__line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
}
.kt-do__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kt-accent);
  flex-shrink: 0;
  align-self: center;
}
.kt-do__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--kt-accent);
  animation: kt-pulse 1600ms ease-out infinite;
}
.kt-do__k {
  font-family: var(--kt-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--kt-accent-2);
}
.kt-do__t {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--kt-navy);
}

/* Performed. The prompt stops asking and starts confirming. */
.kt-do--done {
  border-color: var(--kt-line);
  background: var(--kt-paper);
}
.kt-do--done .kt-do__dot { background: var(--kt-muted); }
.kt-do--done .kt-do__dot::after { display: none; }
.kt-do--done .kt-do__k { color: var(--kt-muted); }
.kt-do--done .kt-do__t { color: var(--kt-muted); font-weight: 500; }

.kt-btn--held { cursor: default; }

/* An outstanding doIt: the ring is an instruction, so it says so louder. */
.kt-spot--do .kt-spot__ring {
  border-width: 2.5px;
  box-shadow: 0 0 0 5px rgba(249, 113, 64, .3);
  animation: kt-ring 1600ms ease-in-out infinite;
}
@keyframes kt-ring {
  0%, 100% { box-shadow: 0 0 0 5px rgba(249, 113, 64, .3); }
  50%      { box-shadow: 0 0 0 10px rgba(249, 113, 64, .12); }
}

.kt-more {
  margin-top: 14px;
  border-top: 1px solid var(--kt-line-2);
  padding-top: 12px;
}
.kt-more__t {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--kt-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--kt-muted);
}
.kt-more__t:hover { color: var(--kt-accent-2); }
.kt-more__caret { font-size: 8px; transition: transform .18s ease; }
.kt-more__t[aria-expanded="true"] .kt-more__caret { transform: rotate(90deg); }

.kt-more__body { margin-top: 11px; display: grid; gap: 9px; }
.kt-more__row { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: baseline; }
.kt-more__k {
  font-family: var(--kt-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--kt-faint);
}
.kt-more__v { font-size: 12.5px; line-height: 1.5; color: var(--kt-ink-2); }

.kt-card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.kt-card__foot .kt-btn--ghost {
  border-color: var(--kt-line);
  color: var(--kt-muted);
  background: transparent;
}
.kt-card__foot .kt-btn--ghost:hover { background: var(--kt-paper); color: var(--kt-navy); }
.kt-card__mode {
  margin: 10px 0 0;
  font-family: var(--kt-mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--kt-faint);
}
.kt-card__pause {
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--kt-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kt-faint);
  padding: 10px 6px;
}
.kt-card__pause:hover { color: var(--kt-accent-2); }

/* ── chapter-menu actions ─────────────────────────────────── */

.kt-menu__foot {
  border-top: 1px solid var(--kt-line-2);
  margin-top: 6px;
  padding-top: 6px;
  display: grid;
}
.kt-menu__act {
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--kt-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kt-muted);
  padding: 10px;
}
.kt-menu__act:hover { background: var(--kt-paper); color: var(--kt-accent-2); }

/* ── focus + screen readers ───────────────────────────────── */

.kt :focus-visible,
.kt-mobile :focus-visible {
  outline: 2px solid var(--kt-accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.kt-rail :focus-visible { outline-color: #fff; }

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

/* ── opening card: the answer, before the screens that earn it ── */

.kt-card--intro { width: 440px; }
.kt-card__answer {
  font-family: var(--kt-display);
  font-weight: 400;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -.008em;
  color: var(--kt-navy);
  margin: 0 0 12px;
}

/* ── orientation modal ────────────────────────────────────────
   Who you are, what you are trying to do, what makes it hard, and what
   changed — before a busy product screen gets a chance to compete. */

.kt-scrim {
  position: fixed;
  inset: var(--kt-rail) 0 0 0;
  z-index: 2147483001;
  background: rgba(12, 45, 87, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: kt-fade 220ms ease both;
}
@keyframes kt-fade { from { opacity: 0; } to { opacity: 1; } }

.kt-modal-wrap {
  position: fixed;
  inset: var(--kt-rail) 0 0 0;
  z-index: 2147483002;
  display: flex;
  /* `align-items: center` would centre the overflow on a short viewport and
     clip the top of the modal somewhere no scroll can reach — taking the close
     button with it. `margin: auto` on the child centres it when it fits and
     leaves the top edge scrollable when it does not. */
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow: auto;
}
.kt-modal {
  margin: auto;
  width: 100%;
  max-width: 660px;
  background: var(--kt-paper);
  border: 1px solid var(--kt-line);
  border-radius: 14px;
  box-shadow: 0 30px 80px -30px rgba(12, 45, 87, .6);
  padding: 22px 26px 20px;
  animation: kt-modal-in 300ms cubic-bezier(.25, 1, .5, 1) both;
}
@keyframes kt-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.kt-modal__top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }

.kt-modal__k {
  font-family: var(--kt-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kt-faint);
}
.kt-modal__who {
  font-family: var(--kt-display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.14;
  letter-spacing: -.006em;
  color: var(--kt-navy);
  margin: 6px 0 10px;
}
.kt-modal__job { font-size: 14.5px; line-height: 1.55; color: var(--kt-ink-2); margin: 0 0 20px; }
.kt-modal__jobk {
  font-family: var(--kt-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kt-faint);
  display: block;
  margin-bottom: 3px;
}

.kt-modal__contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--kt-line);
  border: 1px solid var(--kt-line);
  border-radius: 10px;
  overflow: hidden;
}
.kt-modal__col { background: var(--kt-card); padding: 13px 15px; }
.kt-modal__col p { margin: 7px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--kt-ink-2); }
.kt-modal__col--with { background: var(--kt-accent-tint); }
.kt-modal__col--with .kt-modal__k { color: var(--kt-accent-2); }

.kt-modal__answer {
  font-family: var(--kt-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: -.006em;
  color: var(--kt-navy);
  margin: 20px 0;
  padding-left: 14px;
  border-left: 3px solid var(--kt-accent);
}

.kt-modal__todo {
  counter-reset: kt-todo;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
}
.kt-modal__todo li {
  counter-increment: kt-todo;
  border-top: 2px solid var(--kt-line);
  padding-top: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--kt-ink-2);
}
.kt-modal__todo li::before {
  content: counter(kt-todo, decimal-leading-zero);
  display: block;
  font-family: var(--kt-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--kt-accent-2);
  margin-bottom: 4px;
}

.kt-modal .kt-card__foot { margin-top: 22px; }

/* One column below the width the contrast block needs to stay readable.

   Reported in handoff as dead — "the mobile interstitial takes over below
   720, so this can never apply". It can. shouldOfferMobile() refuses the
   interstitial when the demo's `mobileReady` is true, and engagement-tracker
   is the one demo that sets it; `which-practices-are-moving` runs entirely on
   that bundle and now carries an orientation modal, so this block is the only
   thing standing between a phone and a two-column contrast in a 414px
   viewport. It also applies in the 1px band at exactly 720, where the
   interstitial is refused (innerWidth >= MOBILE_MAX) but the query matches.
   Not verified on a real handset — see Phase 4. Do not delete it. */
@media (max-width: 720px) {
  .kt-modal { padding: 18px 18px 16px; }
  .kt-modal__contrast { grid-template-columns: 1fr; }
  .kt-modal__todo { grid-template-columns: 1fr 1fr; }
  .kt-modal__who { font-size: 23px; }
  .kt-modal__answer { font-size: 21px; }
}

/* ── end-of-track card ────────────────────────────────────── */

.kt-card--end { width: 452px; }
.kt-recap { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.kt-recap li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 11px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--kt-ink-2);
}
.kt-recap li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 7px;
  border-radius: 1.5px;
  background: var(--kt-accent);
}
.kt-card__note {
  margin: 14px 0 0;
  font-family: var(--kt-mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--kt-faint);
}
.kt-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--kt-sans);
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: var(--kt-accent);
  border-radius: 7px;
  padding: 11px 22px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 20px -10px rgba(207, 82, 28, .7);
  transition: background .15s ease;
}
.kt-card__cta:hover { background: var(--kt-accent-2); }

/* The hero close. Own block, ruled off from the recap points, full-width
   button — this is the conversion moment and the CTA should not read as one
   of two equal options beside "Next journey". */
.kt-end {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--kt-line);
}
.kt-end__h {
  margin: 0;
  font-family: var(--kt-display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--kt-navy);
}
.kt-end__p {
  margin: 7px 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--kt-muted);
}
.kt-card__cta--hero {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 13px 22px;
  font-size: 15px;
}
.kt-card__foot--end { margin-top: 12px; justify-content: center; }

.kt-card__next {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--kt-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kt-muted);
  padding: 8px 4px;
}
.kt-card__next:hover { color: var(--kt-accent-2); }

/* ── spotlight ────────────────────────────────────────────── */

.kt-spot { position: fixed; inset: 0; z-index: 2147482999; pointer-events: none; }
.kt-spot__dim {
  position: fixed;
  background: rgba(12, 45, 87, .34);
  pointer-events: none;
  transition: all 260ms cubic-bezier(.25, 1, .5, 1);
}
/* Explore mode: a hint of depth so the ring reads as focus, not a border.
   Far too light to say "disabled", which would be a lie — it is all live. */
.kt-spot--ring-only .kt-spot__dim { background: rgba(12, 45, 87, .09); }
.kt-spot__ring {
  position: fixed;
  border: 2px solid var(--kt-accent);
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(249, 113, 64, .22);
  pointer-events: none;
  transition: all 260ms cubic-bezier(.25, 1, .5, 1);
}
/* Names what the ring is around. Without it, a ring on a full-width pane is
   indistinguishable from a border, and the card's subject is a guess. */
.kt-spot__tag {
  position: fixed;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 340px;
  padding: 3px 10px 3px 4px;
  border-radius: 20px;
  background: var(--kt-accent);
  color: #fff;
  font-family: var(--kt-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 4px 12px -4px rgba(207, 82, 28, .8);
  transition: all 260ms cubic-bezier(.25, 1, .5, 1);
}
.kt-spot__tag-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .26);
  font-size: 9.5px;
  letter-spacing: 0;
  flex-shrink: 0;
}

.kt-spot__beacon {
  position: fixed;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--kt-accent);
  pointer-events: none;
  transition: all 260ms cubic-bezier(.25, 1, .5, 1);
}
.kt-spot__beacon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--kt-accent);
  animation: kt-pulse 1900ms ease-out infinite;
}
@keyframes kt-pulse {
  0%   { transform: scale(.6); opacity: .9; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── inline hosts (a demo rendered inside a Nuxt route) ────────
   No rail: the site header is already on the page. Progress and the
   chapter trigger move into the step card, and the resume affordance
   becomes a pill where the card would sit. */

/* the trigger lives in the card here, so the menu opens over it */
.kt-root--inline .kt-menu {
  top: auto;
  bottom: 22px;
  z-index: 2147483002;
  max-height: min(72vh, 620px);
}

/* the rail's chapter button is white-on-navy; in the card it is not */
.kt-card__top .kt-chapters {
  background: var(--kt-paper);
  border-color: var(--kt-line);
  color: var(--kt-navy);
  padding: 4px 9px;
  font-size: 11px;
}
.kt-card__top .kt-chapters:hover { background: var(--kt-accent-tint); border-color: var(--kt-accent-line); }
.kt-card__top .kt-chapters__bar { background: rgba(12, 45, 87, .16); width: 13px; }
.kt-card__top .kt-chapters__bar.done { background: rgba(249, 113, 64, .45); }
.kt-card__top .kt-chapters__bar.on { background: var(--kt-accent); }
.kt-card__top .kt-chapters__bar.on.has-fill { background: rgba(12, 45, 87, .16); }

.kt-pill {
  position: fixed;
  z-index: 2147483001;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--kt-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--kt-accent);
  border: 1px solid var(--kt-accent);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 26px -12px rgba(207, 82, 28, .8);
  transition: background .15s ease;
}
.kt-pill:hover { background: var(--kt-accent-2); border-color: var(--kt-accent-2); }

/* ── mobile interstitial ──────────────────────────────────── */

.kt-mobile {
  position: fixed;
  inset: 0;
  z-index: 2147483002;
  background: var(--kt-paper);
  overflow: auto;
  padding: 28px 22px 40px;
}
.kt-mobile__inner { max-width: 560px; margin: 0 auto; }
.kt-mobile__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--kt-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kt-accent-2);
  background: var(--kt-accent-tint);
  border: 1px solid var(--kt-accent-line);
  border-radius: 6px;
  padding: 5px 11px;
  margin-bottom: 18px;
}
.kt-mobile__h {
  font-family: var(--kt-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.04;
  color: var(--kt-navy);
  margin: 0 0 12px;
}
.kt-mobile__lede { font-size: 16px; line-height: 1.55; color: var(--kt-ink-2); margin: 0 0 22px; }
.kt-mobile__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 16px; }
.kt-mobile__list li {
  border-top: 1px solid var(--kt-line);
  padding-top: 14px;
}
.kt-mobile__n {
  font-family: var(--kt-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--kt-accent-2);
}
.kt-mobile__p {
  font-family: var(--kt-display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.18;
  color: var(--kt-navy);
  margin: 5px 0 6px;
}
.kt-mobile__m { font-size: 13.5px; line-height: 1.5; color: var(--kt-muted); margin: 0; }
.kt-mobile__acts { display: grid; gap: 10px; }
.kt-mobile__acts .kt-card__cta { justify-content: center; }
.kt-mobile__anyway {
  background: transparent;
  border: 1px solid var(--kt-line);
  border-radius: 7px;
  padding: 11px 18px;
  cursor: pointer;
  font-family: var(--kt-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kt-muted);
}
.kt-mobile__back {
  display: block;
  text-align: center;
  font-family: var(--kt-mono);
  font-size: 11.5px;
  color: var(--kt-muted);
  text-decoration: none;
  padding: 8px;
}

/* ── narrow rail ──────────────────────────────────────────── */

@media (max-width: 900px) {
  .kt-rail__track,
  .kt-rail__div { display: none; }
  /* One column: corner-dodging has nowhere to go, so pin to the bottom and
     let the card be full width with thumb-sized controls. */
  .kt-card,
  .kt-card--br, .kt-card--bl, .kt-card--tr, .kt-card--tl {
    right: 12px; left: 12px; bottom: 12px; top: auto; width: auto;
  }
  .kt-card--end,
  .kt-card--intro { width: auto; }
  .kt-card__answer { font-size: 25px; }
  .kt-btn { padding: 12px 16px; font-size: 13.5px; }
  .kt-rail__cta { padding: 5px 9px; font-size: 11.5px; }
  .kt-card__icon { width: 40px; height: 40px; }
  .kt-card__pause { padding: 12px 8px; }
  .kt-menu__item { padding: 12px 10px; }
}

/* ── reduced motion ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .kt *,
  .kt-spot__dim,
  .kt-spot__ring,
  .kt-spot__beacon,
  .kt-spot__beacon::after,
  .kt-do__dot::after,
  .kt-spot--do .kt-spot__ring {
    animation: none !important;
    transition: none !important;
  }
  .kt-spot__beacon { display: none; }
}
