/* Home page: a click-driven tour of a replica Klugg window, then themed
   persona stages. Scroll never drives anything; every change is a click.
   Under reduced motion, state changes stay and only the transitions go. */

:root {
  /* The app's five topic-state colors (apps/web/src/styles/tokens.css). */
  --st-none: #d6d3cb;
  --st-read: #9db0ea;
  --st-prac: #bf7f17;
  --st-demo: #2e8b57;
  --st-dur: #155c37;
}
/* Without JavaScript the window shows its first state only. */
html:not(.js) .tour [data-after] {
  display: none;
}
[hidden] {
  display: none !important;
}
.m-none {
  --m: var(--st-none);
}
.m-read {
  --m: var(--st-read);
}
.m-prac {
  --m: var(--st-prac);
}
.m-demo {
  --m: var(--st-demo);
}
.m-dur {
  --m: var(--st-dur);
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header) + clamp(14px, 2.6vw, 30px))
    max(var(--gutter), calc((100% - var(--max)) / 2)) clamp(40px, 6vw, 72px);
  background: var(--bg);
}
.hero-copy {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-bottom: clamp(16px, 2.2vw, 26px);
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 2.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero .lead {
  max-width: 46rem;
}
.hero-form {
  margin-top: 10px;
}
.tour-lead {
  margin-top: 6px;
  font-weight: 700;
  color: var(--fg-2);
}

.tour {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 20px clamp(20px, 3vw, 36px);
  align-items: start;
}
.app,
.payoff {
  grid-area: 1 / 1;
}
.rail {
  grid-area: 1 / 2;
}

/* ---------- Replica app window (the app's own warm tokens) ---------- */
.app {
  --a-canvas: #f6f5f2;
  --a-surface: #ffffff;
  --a-muted-bg: #edebe5;
  --a-ink: #1c1b19;
  --a-soft: #3b3934;
  --a-muted: #6b6862;
  --a-border: #e4e2dc;
  --a-accent: #1f3fae;
  --a-accent-bg: #e6ecfb;
  --a-mark: #fbe3a6;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  background: var(--a-canvas);
  color: var(--a-ink);
  border: 1px solid #d6d3cb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgb(28 27 25 / 8%),
    0 40px 80px -40px rgb(28 27 25 / 38%);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.app .k {
  display: block;
  margin-bottom: 4px;
  font-size: 0.6875rem;
  color: var(--a-muted);
}
.app button {
  cursor: pointer;
}
.app [data-target][aria-disabled="true"] {
  cursor: default;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--a-border);
}
.app-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--a-border);
}
.app-bar b {
  margin-left: 10px;
  font: 500 0.75rem var(--font-mono);
  color: var(--a-muted);
}
.app-body {
  flex: 1;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}
.app-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  border-right: 1px solid var(--a-border);
  background: #fbfaf8;
}
.app-side img {
  margin: 0 0 14px 8px;
}
.side-item {
  padding: 7px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--a-soft);
}
.app[data-view="chat"] .side-chat,
.app:not([data-view="chat"]) .side-goals {
  background: var(--a-muted-bg);
  color: var(--a-ink);
}
.app-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px clamp(14px, 2.4vw, 26px);
}

.app-btn {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--a-ink);
  color: #fff;
  font: 700 0.875rem var(--font-sans);
}
.state-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
  background: var(--st-none);
  transition: background-color 0.4s ease;
}
.state-dot.is-read {
  background: var(--st-read);
}
.state-dot.is-prac {
  background: var(--st-prac);
}
.state-dot.is-demo {
  background: var(--st-demo);
}
.state-pill {
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font: 700 0.75rem / 1.6 var(--font-sans);
  background: #edebe5;
  color: #55524c;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}
.state-pill.is-read {
  background: #e6ecfb;
  color: #1f3fae;
}
.state-pill.is-prac {
  background: #fbebd0;
  color: #7a4a00;
}
.state-pill.is-demo {
  background: #dcefe3;
  color: #1b6340;
}

.goal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--a-border);
}
.goal-head .k {
  grid-column: 1 / -1;
}
.goal-head strong {
  font: 600 1.125rem / 1.3 var(--font-serif);
}
.goal-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--a-muted);
  white-space: nowrap;
}
.segments {
  display: flex;
  gap: 3px;
}
.segments i {
  width: 18px;
  height: 8px;
  border-radius: 3px;
  background: #d9d5cc;
  transition: background-color 0.6s ease;
}
.segments i.is-filled {
  background: var(--st-prac);
}

.view {
  display: none;
}
.app[data-view="chat"] .view-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
}
.app[data-view="path"] .view-path,
.app[data-view="study"] .view-study,
.app[data-view="practice"] .view-practice {
  display: grid;
  gap: 14px 18px;
  align-items: start;
}

/* Chat */
.thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  max-width: 34rem;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--a-surface);
  border: 1px solid var(--a-border);
}
.msg-me {
  align-self: flex-end;
  background: var(--a-ink);
  border-color: var(--a-ink);
  color: #fff;
}
.proposal {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--a-accent-bg);
}
.proposal strong {
  font: 600 1.0625rem / 1.3 var(--font-serif);
}
.ideas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.idea {
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed var(--a-accent);
  background: var(--a-surface);
  color: var(--a-accent);
  font: 600 0.9375rem / 1.4 var(--font-sans);
}
.idea[data-done] {
  border-style: solid;
}
.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
  border: 1px solid var(--a-border);
  background: var(--a-surface);
}
.composer-text {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}
.placeholder {
  color: var(--a-muted);
}
.send {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--a-ink);
  color: #fff;
}
.send::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: url("/icons/arrow-up.svg") center / contain no-repeat;
}

/* Path */
.path-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.path-head .k {
  margin: 0;
}
.topics {
  display: grid;
  gap: 6px;
}
.topic {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--a-border);
  background: var(--a-surface);
  color: var(--a-ink);
  text-align: left;
  font: 600 0.9rem / 1.3 var(--font-sans);
}
.topic-name {
  flex: 1;
  min-width: 0;
}
.review {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--a-border);
  background: var(--a-surface);
  box-shadow: 0 12px 28px -16px rgb(28 27 25 / 35%);
}
.review .k {
  margin: 0;
}
.flash-card {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--a-border);
  border-radius: 10px;
  background: #fbfaf8;
  color: var(--a-ink);
  text-align: left;
  font: 600 1rem / 1.4 var(--font-serif);
}
.flash-a {
  padding-top: 8px;
  border-top: 1px dashed var(--a-faint, #c9c5bb);
  color: var(--a-soft);
  font-weight: 500;
}
.due {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--a-accent);
}
.scheduled {
  font-weight: 700;
  color: #1b6340;
}
.scheduled::before {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.3em;
  vertical-align: -0.12em;
  background: currentColor;
  mask: url("/icons/check.svg") center / contain no-repeat;
  content: "";
}

/* Study */
.topic-head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.topic-head strong {
  font-size: 1.0625rem;
}
.study-cols {
  display: grid;
  gap: 16px;
  align-items: start;
}
.lesson {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 16px 18px;
  border: 1px solid var(--a-border);
  border-radius: 12px;
  background: var(--a-surface);
}
.lesson .k {
  margin: 0;
}
.lesson .reading {
  font-size: 1.0625rem;
}
.cited {
  padding: 0 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline 2px var(--a-accent);
  text-underline-offset: 3px;
}
.cited[data-done] {
  background: var(--a-mark);
  text-decoration: none;
}
.source {
  max-width: none;
}

/* Practice */
.practice {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--a-border);
  border-radius: 12px;
  background: var(--a-surface);
}
.practice .k {
  margin: 0;
}
.q {
  font-weight: 650;
}
.options {
  display: grid;
  gap: 6px;
}
.option {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--a-border);
  background: #fbfaf8;
  color: var(--a-ink);
  text-align: left;
  font: 500 0.9rem / 1.4 var(--font-sans);
}
.option[data-done] {
  border-color: var(--st-demo);
  background: #dcefe3;
  color: #1b6340;
  font-weight: 700;
}
.feedback {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.ok {
  font-weight: 700;
  color: #1b6340;
}
.ok::before {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.3em;
  vertical-align: -0.12em;
  background: currentColor;
  mask: url("/icons/check.svg") center / contain no-repeat;
  content: "";
}
.fine {
  font-size: 0.8125rem;
  color: var(--a-muted);
}

/* Two columns once the window is wide enough. */
@media (min-width: 861px) {
  .view-path:has(.review:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
  }
  .study-cols:has(.source:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .practice {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 10px 20px;
  }
  .practice > * {
    grid-column: 1;
  }
  .practice > .app-btn,
  .practice > .feedback {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }
}

/* ---------- Spotlight and tooltip ---------- */
.is-spot {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.is-spot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 14px;
  border: 2px solid var(--blue);
  opacity: 0.45;
  pointer-events: none;
}
.send.is-spot::after {
  border-radius: 50%;
}
.is-spot:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.tip {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  width: min(320px, 100%);
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 0 0 1px #e4e2dc,
    0 22px 44px -18px rgb(28 27 25 / 40%);
}
.js .tip {
  display: grid;
}
.tip::before {
  content: "";
  position: absolute;
  left: var(--arrow, 28px);
  width: 14px;
  height: 14px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: -1px -1px 0 #e4e2dc;
}
.tip.is-below::before {
  top: -7px;
}
.tip.is-above::before {
  bottom: -7px;
  box-shadow: 1px 1px 0 #e4e2dc;
}
.tip:not(.is-below, .is-above)::before {
  display: none;
}
.tip-text {
  grid-area: 1 / 1 / 2 / 3;
  display: grid;
  gap: 2px;
}
.tip-claim {
  font-weight: 800;
  letter-spacing: -0.01em;
}
.tip-benefit {
  font-size: 0.875rem;
  color: #5b5852;
}
.tip-action {
  padding-right: 96px;
  font-weight: 750;
  color: var(--blue);
}
.tip-skip {
  grid-area: 1 / 2;
  align-self: end;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5b5852;
  text-underline-offset: 3px;
}
.tip-skip:hover {
  color: var(--blue);
}

/* ---------- Progress rail ---------- */
.rail {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--card-fg);
}
.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font: 600 0.75rem var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--card-fg-2);
}
.rail-count {
  font: 800 1.25rem var(--font-sans);
  letter-spacing: 0;
  color: var(--card-fg);
}
.markers {
  display: grid;
  gap: 12px;
}
.marker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--card-fg-2);
}
.slot {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  border: 2px dashed #8a8781;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}
.marker.is-earned {
  color: var(--card-fg);
}
.marker.is-earned .slot {
  background: var(--m);
  border: 2px solid color-mix(in srgb, var(--m) 72%, #000);
}
.legend-states {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.legend-states .k {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--card-fg-2);
}
.legend-states ul {
  display: grid;
  gap: 4px;
}
.legend-states li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--card-fg-2);
}
.legend-states i {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--m);
}
.legend-states li.is-current {
  background: color-mix(in srgb, var(--m) 22%, transparent);
  color: var(--card-fg);
  font-weight: 750;
}
.restart,
.text-button {
  cursor: pointer;
  font: 700 0.875rem var(--font-sans);
}
.restart {
  justify-self: start;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--card-fg);
}
.restart:hover {
  border-color: var(--card-fg);
}
.flyer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--m);
  box-shadow: 0 6px 16px -4px rgb(28 27 25 / 40%);
  pointer-events: none;
}

/* ---------- Payoff ---------- */
.payoff {
  position: relative;
  overflow: hidden;
  display: none;
  min-height: 500px;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 48px 24px;
  border-radius: 16px;
  text-align: center;
  background: var(--ink);
  color: #fff;
}
.tour.is-done .payoff {
  display: grid;
}
.tour.is-done .app {
  display: none;
}
.payoff .label {
  color: #8fbcff;
}
.payoff-title {
  font: italic 600 clamp(3rem, 2rem + 4vw, 5.5rem) / 1 var(--font-serif);
  letter-spacing: -0.03em;
}
.proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fbebd0;
  color: #7a4a00;
  font-weight: 700;
}
.payoff-body {
  max-width: 30rem;
  font-size: 1.25rem;
  color: #d6d3cb;
}
.payoff .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
  margin-top: 8px;
}
.text-button {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 1rem;
  text-decoration: underline 2px;
  text-underline-offset: 5px;
}
.payoff :focus-visible {
  outline-color: var(--marker);
}
.scatter {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--m);
  opacity: 0.9;
}
.scatter:nth-child(1) {
  top: 12%;
  left: 10%;
}
.scatter:nth-child(2) {
  top: 18%;
  right: 12%;
  width: 30px;
  height: 30px;
}
.scatter:nth-child(3) {
  bottom: 16%;
  left: 16%;
  width: 28px;
  height: 28px;
}
.scatter:nth-child(4) {
  bottom: 10%;
  right: 18%;
  width: 46px;
  height: 46px;
}
.scatter:nth-child(5) {
  top: 52%;
  left: 4%;
  width: 24px;
  height: 24px;
}

/* ---------- Hero chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg-2);
}
.chips a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
}
.chips a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- Why it works ---------- */
/* Three movements: the chores Klugg takes over, one memory curve the visitor
   drives, then the rest of the method at three different scales. */
.why {
  background: var(--bg);
  color: var(--fg);
}
.why-intro,
.why-features,
.memory {
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
}
.why-intro {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px) clamp(32px, 6vw, 96px);
  padding-block: clamp(48px, 5vw, 72px) clamp(56px, 6vw, 88px);
}
.why-intro h2 {
  grid-column: 1 / -1;
  font-size: clamp(2.5rem, 1rem + 4.4vw, 4.75rem);
  line-height: 0.98;
}
.why-intro h2 .serif-accent {
  display: block;
}
.why-intro .lead {
  color: var(--fg);
  font-weight: 500;
}
.why-sources {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--fg-2);
}
.why-sources a {
  color: inherit;
  text-underline-offset: 3px;
}
.chores li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 32px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.chores s,
.chores strong {
  font: italic 500 clamp(1.25rem, 1rem + 0.8vw, 1.625rem) / 1.25 var(--font-serif);
}
.chores s {
  color: var(--fg-2);
  text-decoration: line-through 2px var(--blue);
}
.chores strong {
  justify-self: start;
  padding: 0 6px;
  margin-left: -6px;
  background: var(--marker);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.chores span {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
}
.chores span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1.1em;
  height: 1.1em;
  background: var(--blue);
  mask: url("/icons/check.svg") center / contain no-repeat;
}
.chores .is-yours {
  border-top-color: var(--fg);
}
.chores .is-yours span {
  padding-left: 0;
  font-weight: 750;
}
.chores .is-yours span::before {
  display: none;
}

/* The shared voice of each claim: what studying usually feels like, struck out. */
.why-usual {
  font: italic 500 1.1875rem / 1.4 var(--font-serif);
  color: var(--fg-2);
  text-decoration: line-through 2px var(--accent);
}
.why-copy,
.memory-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}
.why-copy {
  max-width: 34rem;
}
.why-copy h3,
.memory h3 {
  font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.why-copy > p:last-child,
.memory-copy > p:not(.why-usual) {
  color: var(--fg-2);
  font-size: 1.0625rem;
}

/* Memory: a full-bleed ink band. The curve is drawn in script.js from the visitor's ratings. */
.memory {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 40px clamp(32px, 5vw, 80px);
  padding-block: clamp(56px, 6.5vw, 96px);
  background: var(--bg);
  color: var(--fg);
}
.memory h3 {
  font-size: clamp(1.875rem, 1.1rem + 2.4vw, 3.25rem);
}
.mem-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 80%);
}
.mem-card .k {
  font-size: 0.72rem;
  color: #6b6862;
}
.mem-card .reading {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
}
.mem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
html:not(.js) .mem-actions {
  display: none;
}
.mem-btn {
  min-height: 44px;
  padding: 0 22px;
  border: 1.5px solid #c9c5bb;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 700 0.9375rem var(--font-sans);
  cursor: pointer;
}
.mem-btn:hover {
  border-color: var(--ink);
}
.mem-btn.is-yes {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.mem-btn.is-yes:hover {
  border-color: var(--blue);
  background: var(--blue);
}
.mem-card :focus-visible {
  outline-color: var(--blue);
}
.mem-status {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #55524c;
}
.mem-board {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.mem-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.mem-gap {
  display: grid;
  justify-items: start;
}
.mem-gap .k {
  font-size: 0.72rem;
  color: var(--fg-2);
}
.mem-gap strong {
  font: italic 500 clamp(2.75rem, 2rem + 3vw, 4.5rem) / 1 var(--font-serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--marker);
}
.mem-gap strong span {
  font-size: 0.4em;
  letter-spacing: 0;
}
.mem-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
html:not(.js) .mem-chart {
  display: none;
}
.mem-axis {
  stroke: #3a3934;
  stroke-width: 2;
}
.mem-arc path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
}
.mem-arc text {
  fill: var(--accent);
  font: 600 14px var(--font-mono);
  text-anchor: middle;
}
.mem-arc.is-miss path {
  stroke: var(--fg-2);
  stroke-dasharray: 0.02 0.03;
}
.mem-arc.is-miss text {
  fill: var(--fg-2);
}
.mem-arc.is-next path {
  stroke: var(--marker);
}
.mem-arc.is-next text {
  fill: var(--marker);
}
.mem-arc.is-ahead {
  opacity: 0.3;
}
.mem-arc.is-ahead path {
  stroke-width: 2;
  stroke-dasharray: 0.02 0.03;
}
.mem-dot {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 3;
}
.mem-dot.is-miss {
  fill: var(--bg);
  stroke: var(--fg-2);
}
.mem-now {
  fill: var(--marker);
  stroke: var(--bg);
  stroke-width: 3;
}
.mem-tick {
  fill: var(--fg-2);
  font: 600 13px var(--font-mono);
  text-anchor: middle;
}
.mem-tick.is-now {
  fill: var(--marker);
}
.mem-tick.is-end {
  text-anchor: end;
}
.mem-log {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8125rem;
}
.mem-log li {
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-2);
}
.mem-log b {
  color: var(--fg);
}
.mem-log .is-now {
  border-color: var(--marker);
  color: var(--marker);
}
.mem-log .is-now b {
  color: inherit;
}
.mem-note {
  font-size: 0.8125rem;
  color: var(--fg-2);
}

/* The rest of the method. Each claim gets a different scale and a different kind of picture. */
.why-features {
  display: grid;
  gap: clamp(64px, 6.5vw, 96px);
  padding-block: clamp(64px, 6.5vw, 96px);
}
.why-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 40px clamp(32px, 6vw, 96px);
}

/* Retrieval: question, the learner's answer, feedback. Three layers that overlap. */
.ask {
  display: grid;
  width: min(100%, 36rem);
  justify-self: end;
}
.ask .k {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  color: #6b6862;
}
.ask-q,
.ask-fb {
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
}
.ask-q {
  margin-right: 8%;
  padding: 26px 28px 40px;
  box-shadow: var(--shadow);
}
.ask-q .reading {
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
}
.ask-a {
  position: relative;
  z-index: 1;
  width: 78%;
  margin: -22px 0 0 auto;
  padding: 14px 18px 16px;
  border-radius: 16px 16px 4px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 36px -18px rgb(28 27 25 / 60%);
}
.ask-a .k {
  margin-bottom: 4px;
  color: #a8a59d;
}
.ask-fb {
  display: grid;
  gap: 8px;
  margin: -18px 14% 0 5%;
  padding: 34px 24px 20px;
  box-shadow: var(--shadow);
}
.ask-fb .k {
  margin: 0;
}
.why-feedback {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.9375rem;
  font-weight: 600;
}
.why-feedback::before {
  content: "";
  flex: none;
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.2em;
  background: currentColor;
  mask: url("/icons/check.svg") center / contain no-repeat;
}
.why-feedback.is-ok {
  color: #1b6340;
}
.why-feedback.is-gap {
  color: #7a4a00;
}
.why-feedback.is-gap::before {
  mask-image: url("/icons/plus.svg");
}

/* Sources: what Klugg found, then what the learner brought. */
.shelf {
  display: grid;
  gap: 6px;
}
.shelf .k {
  font-size: 0.72rem;
  color: var(--fg-2);
}
.shelf ul + .k {
  margin-top: 18px;
}
.shelf li {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.shelf .type {
  font: 600 0.6875rem var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.shelf .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}
.shelf em {
  padding: 1px 9px;
  border-radius: 6px;
  background: #e6ecfb;
  color: #1f3fae;
  font: 700 0.75rem / 1.7 var(--font-mono);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .why-intro,
  .memory,
  .why-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .ask {
    justify-self: stretch;
  }
}
@media (max-width: 600px) {
  .chores li {
    grid-template-columns: minmax(0, 1fr);
  }
  .mem-gap strong {
    font-size: 2.5rem;
  }
  .ask-q {
    margin-right: 0;
    padding: 20px 20px 36px;
  }
  .ask-a {
    width: 88%;
  }
  .ask-fb {
    margin-inline: 0 8%;
  }
}

/* ---------- Personas: one stage, four people ---------- */
.personas {
  background: var(--bg);
  color: var(--fg);
}
.personas-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  padding: clamp(64px, 8vw, 110px) max(var(--gutter), calc((100% - var(--max)) / 2)) 0;
}
.personas-intro h2 {
  max-width: 16ch;
}
.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.switcher a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--fg-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 700;
}
.switcher a i {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.switcher a:hover {
  color: var(--fg);
}
.switcher a[aria-current="true"] {
  background: var(--fg);
  color: var(--bg);
}
.switcher a[aria-current="true"] i {
  background: currentColor;
}
.persona-stage {
  display: grid;
}
.persona {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px clamp(32px, 6vw, 96px);
  padding: clamp(40px, 5vw, 64px) max(var(--gutter), calc((100% - var(--max)) / 2))
    clamp(64px, 8vw, 110px);
  background: var(--bg);
  color: var(--fg);
}
/* With JavaScript the four share one cell and the section paints the world behind them. */
.js .persona {
  grid-area: 1 / 1;
  background: none;
}
.js .persona:not(.is-active) {
  visibility: hidden;
  opacity: 0;
}
.persona-copy {
  display: grid;
  gap: 18px;
}
.persona h3 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.persona .story {
  color: var(--fg);
  font-size: 1.125rem;
}
.persona .does {
  gap: 0;
}
.persona .does li {
  padding: 11px 0 11px 30px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--fg);
}
.persona .does li::before {
  left: 0;
  width: 1.15em;
  height: 1.15em;
  margin-top: -0.575em;
  border-radius: 0;
  background: var(--accent);
  mask: url("/icons/check.svg") center / contain no-repeat;
}
.persona-scene {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}
.persona-scene .explain {
  margin: 0;
}
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.flow li {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}
/* A drawn arrow between steps, in the section's text color. */
.flow li + li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: var(--fg);
  mask: url("/icons/arrow-right.svg") center / contain no-repeat;
}
.suggest strong {
  display: block;
  margin-bottom: 14px;
  font: 600 1.25rem / 1.3 var(--font-serif);
}
.suggest-actions {
  display: flex;
  gap: 8px;
}
.suggest-actions span {
  padding: 6px 14px;
  border: 1px solid #d6d3cb;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #3b3934;
}
.suggest-actions .yes {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- Sections after the personas ---------- */
.band {
  padding-block: clamp(64px, 8vw, 110px);
}
.faq,
.nots:has(.refusals) {
  padding-block: clamp(56px, 6.5vw, 92px);
}

/* Questions: native disclosure widgets, one per objection. */
.faq-list {
  max-width: 52rem;
}
.faq-list details {
  border-top: 1px solid var(--line);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  padding: 20px 0;
  font-weight: 700;
  font-size: 1.1875rem;
  cursor: pointer;
}
.faq-list p {
  padding-bottom: 20px;
  color: var(--fg-2);
  font-size: 1.0625rem;
  max-width: 44rem;
}

/* What Klugg will not do: three statements, set as type. */
.refusals li {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: baseline;
  gap: 8px clamp(24px, 4vw, 56px);
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--line);
}
.refusals strong {
  font: 600 clamp(1.625rem, 1.1rem + 1.8vw, 2.625rem) / 1.1 var(--font-serif);
  letter-spacing: -0.02em;
}
.refusals span {
  color: var(--fg-2);
  font-size: 1.125rem;
}

/* ---------- Narrow screens: the same tour, stacked ---------- */
@media (max-width: 860px) {
  .tour {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .tip {
    grid-area: 2 / 1;
    position: static;
    width: auto;
  }
  .tip::before {
    display: none;
  }
  .rail {
    grid-area: 3 / 1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }
  .restart {
    grid-area: 1 / 2;
    justify-self: end;
  }
  .markers {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .legend-states {
    grid-column: 1 / -1;
  }
  .legend-states ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
  }
  .legend-states li {
    font-size: 0.75rem;
  }
  .marker {
    flex-direction: column;
    gap: 4px;
    font-size: 0.6875rem;
    line-height: 1.2;
    text-align: center;
  }
  .app {
    min-height: 0;
  }
  .app-side {
    display: none;
  }
  .app-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .goal-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .payoff {
    min-height: 420px;
  }
  .persona,
  .personas-intro,
  .refusals li {
    grid-template-columns: minmax(0, 1fr);
  }
  .switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 26px;
  }
  .switcher a {
    padding: 0 10px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
}
@media (max-width: 480px) {
  .app-main {
    padding: 14px 12px;
  }
  .flow {
    gap: 14px;
  }
  .flow li {
    font-size: 0.75rem;
    padding: 6px 4px;
  }
  .tip-action {
    padding-right: 0;
  }
  .tip-skip {
    grid-area: 2 / 1 / 3 / 3;
    justify-self: start;
    margin-top: 6px;
  }
}

/* ---------- Motion (off under reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .tour [data-after]:not([hidden]) {
    animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .view-path .topics li {
    animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .view-path .topics li:nth-child(2) {
    animation-delay: 0.12s;
  }
  .view-path .topics li:nth-child(3) {
    animation-delay: 0.24s;
  }
  .view-path .topics li:nth-child(4) {
    animation-delay: 0.36s;
  }
  .view-path .topics li:nth-child(5) {
    animation-delay: 0.48s;
  }
  .view-path .topics li:nth-child(6) {
    animation-delay: 0.6s;
  }
  .tour .source:not([hidden]) {
    animation: open 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .is-spot::after {
    animation: ring 1.6s ease-out infinite;
  }
  .tip {
    transition:
      left 0.3s ease,
      top 0.3s ease;
  }
  .marker.is-earned .slot {
    animation: land 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
  }
  .tour.is-done .payoff > * {
    animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .tour.is-done .scatter {
    animation: drift 5s ease-in-out infinite alternate;
  }
  .tour.is-done .scatter:nth-child(even) {
    animation-duration: 6.5s;
    animation-direction: alternate-reverse;
  }
  .personas {
    transition:
      background-color 0.5s ease,
      color 0.5s ease;
  }
  .js .persona {
    transition:
      opacity 0.45s ease,
      visibility 0.45s;
  }
  .mem-btn,
  .chips a,
  .switcher a {
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      border-color 0.2s ease;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes open {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}
@keyframes land {
  from {
    transform: scale(1.6);
  }
}
@keyframes ring {
  from {
    transform: scale(0.97);
    opacity: 0.7;
  }
  to {
    transform: scale(1.1);
    opacity: 0;
  }
}
@keyframes drift {
  to {
    transform: translate(10px, -14px);
  }
}
