.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;
}

.demo-section { padding-block: 95px 0; }
.experience { overflow: hidden; }

.learning-demo {
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: 620px;
  height: calc(100dvh - 100px);
  margin-top: 55px;
  margin-left: -50vw;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.demo-discovery {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 34%, #fff 0, #f7f9f5 42%, #edf1e9 100%);
}

.demo-discovery::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#64735f0a 1px, transparent 1px),
    linear-gradient(90deg, #64735f0a 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #0008, transparent 82%);
}

.question-sky { position: absolute; inset: 0; }

.question-sky-label {
  position: absolute;
  top: 42px;
  left: 50%;
  margin: 0;
  color: #758171;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.question-chip {
  position: absolute;
  padding: 15px 21px;
  border: 1px solid #dce2d9;
  border-radius: 999px;
  background: #ffffffc7;
  color: #52604e;
  box-shadow: 0 12px 32px -22px #24362380;
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1.4;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  transition: color .3s, background .3s, border-color .3s, box-shadow .3s, transform .3s;
  animation: question-float 7s ease-in-out infinite;
}

.question-chip:hover {
  color: #203020;
  border-color: #aab7a4;
  background: #fff;
  box-shadow: 0 16px 36px -24px #1c311a8c;
}

.question-chip[aria-pressed="true"] {
  z-index: 2;
  color: #fff;
  border-color: #263624;
  background: #263624;
  box-shadow: 0 20px 46px -23px #172516b8;
  transform: scale(1.04);
}

.question-chip-a { top: 17%; left: 8%; font-size: clamp(17px, 1.8vw, 24px); }
.question-chip-b { top: 14%; left: 49%; animation-delay: -1.8s; }
.question-chip-c { top: 31%; right: 5%; font-size: clamp(15px, 1.55vw, 20px); animation-delay: -3.4s; }
.question-chip-d { top: 43%; left: 13%; animation-delay: -5.1s; }
.question-chip-e { top: 53%; right: 17%; font-size: clamp(14px, 1.4vw, 19px); animation-delay: -2.7s; }
.question-chip-f { bottom: 25%; left: 5%; font-size: clamp(13px, 1.2vw, 16px); animation-delay: -4.2s; }
.question-chip-g { right: 4%; bottom: 23%; animation-delay: -.9s; }

.research-dock {
  position: absolute;
  z-index: 4;
  right: 50%;
  bottom: 34px;
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(760px, calc(100% - 48px));
  padding: 10px 10px 10px 18px;
  border: 1px solid #d8dfd5;
  border-radius: 24px;
  background: #fffffff0;
  box-shadow: 0 24px 70px -30px #1729168c;
  backdrop-filter: blur(22px);
  transform: translateX(50%);
}

.research-dock-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #edf2e9;
  color: #506348;
  font-size: 14px;
}

.research-dock p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #3e4d3b;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-dock .button {
  min-height: 44px;
  margin: 0;
  padding: 11px 20px;
  white-space: nowrap;
}

.demo-start:disabled {
  cursor: default;
  opacity: .8;
}

.demo-process {
  min-height: 680px;
  margin: 0;
  padding: 58px 9%;
  background: radial-gradient(circle at 50% 28%, #f9fbf8 0, #eef2eb 48%, #e7ede4 100%);
  text-align: center;
}

.process-orbit {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 24px;
}

.process-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid #83937c55;
  border-radius: 50%;
  animation: orbit-spin 5s linear infinite;
}

.process-orbit span:nth-child(2) {
  inset: 16px;
  animation-direction: reverse;
  animation-duration: 3.5s;
}

.process-orbit span::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #53694c;
  box-shadow: 0 0 0 6px #53694c12;
}

.process-orbit i {
  position: absolute;
  inset: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #263624;
  color: #fff;
  box-shadow: 0 12px 30px -12px #19281780;
  font-style: normal;
}

.process-kicker,
.demo-kicker {
  margin: 0 0 12px;
  color: #758170;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.demo-process > h3 {
  max-width: 680px;
  margin: 0 auto 38px;
  color: #243323;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.45;
  text-wrap: balance;
}

.demo-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(620px, 100%);
  margin-inline: auto;
  color: #60705b;
  font-size: 13px;
}

#demo-progress {
  display: block;
  width: min(620px, 100%);
  height: 4px;
  margin: 13px auto 30px;
  appearance: none;
  border: 0;
  border-radius: 2px;
  background: #dce2d5;
}

#demo-progress::-webkit-progress-bar { background: #dce2d5; }
#demo-progress::-webkit-progress-value { background: #697f59; transition: width .5s; }
#demo-progress::-moz-progress-bar { background: #697f59; }

.research-log {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(720px, 100%);
  margin: 0 auto 24px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.research-log li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 15px 16px;
  border: 1px solid #d9e0d5;
  border-radius: 14px;
  background: #ffffff9c;
  opacity: .46;
  transition: opacity .35s, border-color .35s, background .35s, box-shadow .35s;
}

.research-log li[data-state="active"],
.research-log li[data-state="done"] { opacity: 1; }

.research-log li[data-state="active"] {
  border-color: #9fad98;
  background: #fff;
  box-shadow: 0 15px 35px -28px #263b2380;
}

.log-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #edf2e9;
  color: #607259;
  font-size: 17px;
}

.research-log li[data-state="active"] .log-icon {
  background: #263624;
  color: #fff;
}

.research-log strong { font-size: 13px; font-weight: 500; }
.research-log p { margin: 2px 0 0; color: #74816c; font-size: 11px; }
.stage-state { color: #8d9988; font-size: 10px; }
.research-log li[data-state="active"] .stage-state,
.research-log li[data-state="done"] .stage-state { color: #526a4c; }

.text-button {
  padding: 3px 0;
  border: 0;
  background: none;
  color: #4f6745;
  font-size: 13px;
  line-height: 1.7;
}

.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }

.demo-output {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: #c9d1c4 transparent;
  scrollbar-gutter: stable;
  padding: 38px clamp(28px, 7vw, 92px) 60px;
  background: linear-gradient(145deg, #fff, #fafcf9);
}

.demo-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
  color: #707d68;
  font-size: 13px;
  letter-spacing: .5px;
}

.demo-tabs {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  border-bottom: 1px solid #e4e8df;
}

.demo-tabs button {
  padding: 15px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #8a9382;
  font-size: 14px;
}

.demo-tabs button[aria-selected="true"] { color: #2b4123; border-bottom-color: #3f5835; }
.demo-tabs button span { margin-left: 5px; padding: 3px 6px; border-radius: 4px; background: #edf1e8; font-size: 10px; }

.demo-report {
  max-width: 760px;
  margin-inline: auto;
  padding-top: 46px;
}

.demo-report h3,
.demo-study h3 {
  margin: 0 0 24px;
  color: #243323;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.35;
}

.demo-report > p:not(.demo-kicker) { color: #5d6c55; font-size: 16px; line-height: 2; }
.demo-report h4 { margin: 34px 0 8px; font-size: 18px; font-weight: 500; }
.demo-report strong { color: #304127; font-weight: 500; }
.demo-report a { text-decoration: underline; text-underline-offset: 3px; }
.demo-report .demo-source { margin: 25px 0; padding-top: 15px; border-top: 1px solid #e5e9e0; font-size: 12px; }
.demo-report .button { margin-top: 8px; font-size: 13px; }

#demo-point-list,
.demo-study { max-width: 720px; margin-inline: auto; }

#demo-point-list { padding-top: 35px; }
.demo-points-title { margin: 0 0 14px; font-size: 24px; font-weight: 500; line-height: 1.5; }
.demo-small { color: #6c7b63; font-size: 14px; line-height: 1.85; }

.knowledge-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 26px 0;
  border: 0;
  border-top: 1px solid #e0e6d9;
  background: transparent;
  color: #425639;
  text-align: left;
  transition: background .2s, padding .2s;
}

.knowledge-row:first-of-type { margin-top: 30px; }
.knowledge-row:hover { padding-inline: 10px; background: #f7f9f4; }
.knowledge-row > span:first-child { color: #8f9a86; font-size: 11px; }
.knowledge-row > span:last-child { margin-left: auto; }
.knowledge-row strong { font-size: 16px; font-weight: 500; }
.knowledge-row small { display: block; margin-top: 8px; color: #8d9784; font-size: 12px; }
.demo-session-note { padding-top: 25px; border-top: 1px solid #e0e6d9; }

.demo-study { padding-top: 22px; }
.demo-study > .demo-kicker { margin-top: 35px; }
.demo-study h3 { font-size: 26px; }
.demo-study > #demo-reveal { margin-top: 22px; }
.demo-answer-copy { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e2e7dc; }
.demo-answer-copy > p:not(.demo-kicker) { color: #53644a; font-size: 15px; line-height: 1.9; }
.demo-ratings { display: flex; gap: 12px; }
.demo-ratings button:disabled { cursor: default; opacity: .45; }

.demo-secondary {
  padding: 12px 22px;
  border: 1px solid #d5ddcd;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
}

.demo-scheduled {
  margin-top: 25px;
  padding: 24px;
  border: 1px solid #dfe8d7;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2f6ee, #eaf1e3);
}

.demo-scheduled h4 { margin: 0 0 12px; color: #3b5631; font-size: 24px; font-weight: 500; }
.demo-scheduled time { color: #506943; font-size: 14px; }
.demo-scheduled p:not(.demo-kicker) { color: #6e7f62; font-size: 13px; line-height: 1.8; }
.demo-scheduled .demo-small { font-size: 11px; }

#demo-answer,
.demo-scheduled { animation: detail-enter .55s ease both; }

.demo-discovery,
.demo-process,
.demo-output { animation: scene-in .55s cubic-bezier(.2, .65, .3, 1) both; }

@keyframes scene-in {
  from { opacity: 0; transform: scale(.992); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes detail-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes question-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .demo-section { padding-block: 65px 0; }
  .learning-demo { min-height: 640px; height: calc(100dvh - 85px); margin-top: 34px; border-radius: 0; }
  .demo-discovery { padding: 30px 18px 18px; }
  .question-sky { position: relative; display: flex; align-content: flex-start; justify-content: center; gap: 10px; flex-wrap: wrap; padding-top: 58px; }
  .question-sky-label { top: 12px; }
  .question-chip { position: static; padding: 12px 15px; font-size: 13px; white-space: normal; animation-duration: 8s; }
  .question-chip-a { font-size: 17px; }
  .question-chip[aria-pressed="true"] { transform: none; }
  .research-dock { right: 18px; bottom: 18px; left: 18px; grid-template-columns: 1fr; width: auto; padding: 10px; transform: none; }
  .research-dock-icon { display: none; }
  .research-dock p { padding: 3px 5px 0; font-size: 12px; }
  .research-dock .button { width: 100%; }
  .demo-process { padding: 42px 20px; }
  .process-orbit { width: 84px; height: 84px; }
  .process-orbit i { inset: 27px; }
  .demo-process > h3 { margin-bottom: 28px; font-size: 25px; }
  .research-log { grid-template-columns: 1fr; }
  .research-log li { padding: 12px 13px; }
  .demo-output { padding: 26px 22px 42px; }
  .demo-report { padding-top: 30px; }
  .demo-report h3 { font-size: 30px; }
  .demo-report > p:not(.demo-kicker) { font-size: 15px; }
  .demo-result-header { font-size: 12px; }
  .demo-ratings button { flex: 1; padding-inline: 12px; }
  .demo-scheduled { padding: 20px; }
  .demo-section .section-heading h2 { font-size: 38px; }
}

@media (max-width: 380px) {
  .demo-output { padding-inline: 18px; }
  .demo-ratings { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-discovery,
  .demo-process,
  .demo-output,
  .question-chip,
  .process-orbit span,
  #demo-answer,
  .demo-scheduled { animation: none; }
  #demo-progress::-webkit-progress-value { transition: none; }
  .research-log li { transition: none; }
  .question-chip[aria-pressed="true"] { transform: none; }
}

/* Dense question field and an interleaved research workspace. */
.question-sky {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 52px 6% 132px;
}

.question-sky-heading { margin-bottom: 36px; text-align: center; }
.question-sky-heading p { margin: 0 0 10px; color: #7d8878; font-size: 11px; letter-spacing: 1.3px; }
.question-sky-heading h3 { margin: 0; color: #263324; font-size: clamp(25px, 3vw, 38px); font-weight: 500; letter-spacing: -1.2px; }

.question-cluster { display: grid; gap: 4px; width: 100%; min-width: 0; }
.question-sky { padding-inline: 0; }
.question-row {
  width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.question-row::-webkit-scrollbar { display: none; }
.question-track, .question-group { display: flex; width: max-content; align-items: center; }
.question-group { gap: 20px; padding: 6px 20px 12px 0; }
.question-cluster .question-chip {
  position: relative; inset: auto; flex: none; display: flex; align-items: center;
  width: max-content; height: 58px; padding: 0 26px;
  font-size: 15px; line-height: 1.4; white-space: nowrap;
  overflow-wrap: normal; text-align: center; animation: none; transform: none;
  box-shadow: 0 8px 18px -14px #24362365;
}
.question-chip:focus-visible { outline: 2px solid #526b48; outline-offset: 3px; }

.question-chip-a { font-size: clamp(17px, 1.7vw, 22px); }
.question-chip-c { font-size: clamp(15px, 1.45vw, 19px); }
.question-chip-e { font-size: clamp(14px, 1.35vw, 18px); }

.demo-start {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 38px;
  left: 0;
  min-width: 190px;
  width: max-content;
  margin-inline: auto;
  padding: 14px 24px;
  white-space: nowrap;
  transform: none;
}

.demo-start:disabled {
  cursor: default;
  border-color: #dfe4dc;
  background: #dfe4dc;
  color: #8e988b;
  box-shadow: none;
  opacity: 1;
}

.demo-process {
  min-height: 680px;
  margin: 0;
  padding: 38px clamp(24px, 5vw, 66px) 30px;
  background: radial-gradient(circle at 30% 15%, #fff 0, #f1f4ee 46%, #e8ede5 100%);
  text-align: left;
}

.process-heading {
  display: flex;
  max-width: 1050px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 24px;
}

.process-heading h3 {
  max-width: 760px;
  margin: 0;
  color: #243323;
  font-size: clamp(21px, 2.5vw, 31px);
  font-weight: 500;
  letter-spacing: -.8px;
  line-height: 1.4;
}

.process-live { display: flex; align-items: center; gap: 8px; flex: none; color: #64745f; font-size: 12px; }
.process-live i { width: 7px; height: 7px; border-radius: 50%; background: #5f8156; box-shadow: 0 0 0 5px #5f815616; animation: live-pulse 1.8s ease-out infinite; }

.research-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(260px, .58fr);
  gap: 14px;
  max-width: 1050px;
  margin: 0 auto;
}

.draft-preview {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 68px clamp(30px, 5vw, 70px) 42px;
  border: 1px solid #dce2d8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px -44px #1d302080;
}

.draft-toolbar { position: absolute; top: 0; right: 0; left: 0; display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px; border-bottom: 1px solid #e9ece6; background: #fafbf9; }
.draft-toolbar > span { display: flex; gap: 5px; }
.draft-toolbar i { width: 7px; height: 7px; border-radius: 50%; background: #d7ddd3; }
.draft-toolbar p { margin: 0; color: #8a9485; font-size: 10px; letter-spacing: .7px; }
.draft-overline { margin: 0 0 13px; color: #8a9685; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
.draft-preview h4 { max-width: 500px; margin: 0 0 30px; color: #253423; font-size: clamp(25px, 3vw, 37px); font-weight: 500; letter-spacing: -1.2px; line-height: 1.35; }
.draft-preview h5 { margin: 28px 0 14px; color: #334430; font-size: 16px; font-weight: 500; }
.draft-line { height: 9px; margin: 0 0 11px; border-radius: 10px; background: #cbd4c6; }
.draft-line-a { width: 93%; }
.draft-line-b { width: 72%; }
.draft-line-c { width: 86%; }
.draft-citation { display: flex; align-items: center; gap: 10px; width: max-content; margin-top: 25px; padding: 9px 12px; border: 1px solid #dfe5da; border-radius: 8px; color: #667461; font-size: 10px; }
.draft-citation span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 5px; background: #edf2e9; }
.draft-citation b { font-weight: 400; }
[data-draft] { opacity: .09; transform: translateY(5px); transition: opacity .5s, transform .5s; }
[data-draft][data-state="ready"] { opacity: 1; transform: none; }
.writing-cursor { display: inline-block; width: 2px; height: 16px; margin-top: 18px; background: #40543b; animation: cursor-blink .8s steps(1) infinite; }

.activity-panel {
  min-height: 430px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #273027;
  border-radius: 20px;
  background: #1d241d;
  color: #ecf1ea;
  box-shadow: 0 24px 60px -42px #101a10;
}

.activity-title { margin: 0 0 16px; color: #96a293; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.active-operation { min-height: 75px; padding: 14px; border: 1px solid #3c493b; border-radius: 12px; background: #252e25; }
.active-operation span { color: #a9bba4; font-size: 10px; letter-spacing: .8px; }
.active-operation p { margin: 7px 0 0; color: #f4f7f2; font-size: 13px; line-height: 1.45; }

.activity-panel .research-log {
  display: flex;
  width: auto;
  margin: 14px 0 0;
  padding: 0;
  gap: 0;
  list-style: none;
  flex-direction: column;
}

.activity-panel .research-log li {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 33px;
  margin: 0;
  padding: 5px 7px;
  border: 0;
  border-left: 1px solid #3d473c;
  border-radius: 0;
  background: transparent;
  color: #707d6e;
  opacity: .42;
  transition: color .3s, opacity .3s, transform .3s;
}

.activity-panel .research-log li > span { font-size: 9px; letter-spacing: .6px; }
.activity-panel .research-log li p { margin: 0; overflow: hidden; color: inherit; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.activity-panel .research-log li[data-state="active"] { color: #f1f5ef; opacity: 1; transform: translateX(4px); }
.activity-panel .research-log li[data-state="active"] > span { color: #b8d0b1; }
.activity-panel .research-log li[data-state="done"] { color: #9ba899; opacity: .72; }

.process-footer {
  display: flex;
  max-width: 1050px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px auto 0;
}

.process-footer > div { display: flex; align-items: center; gap: 12px; width: min(620px, 72%); }
.process-footer #demo-progress { width: 100%; margin: 0; }
.process-footer #demo-percent { color: #687765; font-size: 11px; }

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 #5f815638; }
  70%, 100% { box-shadow: 0 0 0 8px #5f815600; }
}

@keyframes cursor-blink { 50% { opacity: 0; } }

@keyframes question-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: var(--drift-x, 4px) -9px; }
}

@media (max-width: 760px) {
  .question-sky { display: grid; padding: 24px 0 100px; }
  .question-sky-heading { margin-bottom: 20px; }
  .question-cluster { gap: 2px; }
  .question-cluster .question-chip { height: 48px; padding: 0 20px; font-size: 13px; line-height: 1.4; }
  .question-group { gap: 12px; padding-right: 12px; }
  .question-chip-a { font-size: 15px; }
  .demo-start { bottom: 24px; width: calc(100% - 48px); }
  .demo-process { min-height: 720px; padding: 28px 18px 24px; }
  .process-heading { align-items: flex-start; margin-bottom: 18px; }
  .process-heading h3 { font-size: 21px; }
  .process-live { margin-top: 4px; }
  .research-workspace { grid-template-columns: 1fr; }
  .draft-preview { min-height: 285px; padding: 60px 26px 28px; }
  .draft-preview h4 { margin-bottom: 20px; font-size: 25px; }
  .draft-preview h5 { margin-top: 20px; }
  .activity-panel { min-height: 0; padding: 14px; }
  .active-operation { min-height: 64px; padding: 11px 12px; }
  .activity-panel .research-log { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-panel .research-log li { min-height: 29px; grid-template-columns: 38px 1fr; padding: 3px 5px; }
  .process-footer { margin-top: 14px; }
  .process-footer > div { width: 68%; }
}

@media (prefers-reduced-motion: reduce) {
  .process-live i,
  .writing-cursor { animation: none; }
}

/* Linear guided experience: one document, one current action, one next step. */
.demo-process {
  display: grid;
  height: 100%;
  min-height: 0;
  place-items: center;
  padding: 38px clamp(24px, 6vw, 76px);
  background: radial-gradient(circle at 50% 18%, #fff 0, #f4f6f1 48%, #e9eee6 100%);
}

.demo-process[hidden] { display: none; }

.demo-process > .draft-preview {
  width: min(940px, 100%);
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.demo-process .draft-toolbar {
  display: none;
}

.demo-process .draft-toolbar > p { margin-right: auto; }
.demo-process .draft-toolbar .process-live { color: #667461; font-size: 11px; }
.demo-process .draft-toolbar .process-live i { width: 6px; height: 6px; background: #64825c; }

.draft-body {
  width: min(720px, calc(100% - 56px));
  height: calc(100% - 86px);
  margin: 0 auto;
  padding: 46px 0 36px;
  overflow-y: auto;
  scrollbar-width: none;
}

.draft-body::-webkit-scrollbar { display: none; }

.draft-body > .process-kicker { margin-bottom: 10px; }
.draft-body > #process-question {
  max-width: 680px;
  margin: 0 0 22px;
  color: #223021;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.35;
}

.demo-process .process-footer > .inline-operation {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: #657361;
}

.inline-operation > #operation-kind {
  padding: 4px 8px;
  border-radius: 6px;
  background: #e9eee5;
  color: #4f624a;
  font-size: 10px;
  letter-spacing: .7px;
}

.inline-operation > p { margin: 0; font-size: 12px; }

.draft-body .draft-overline { margin-top: 38px; margin-bottom: 12px; }
.draft-body h4 { max-width: 620px; margin-bottom: 26px; font-size: clamp(27px, 3.6vw, 43px); }
.draft-body h5 { margin-top: 31px; font-size: 18px; }

.draft-copy { display: grid; gap: 10px; }
.draft-copy span { height: 8px; border-radius: 99px; background: #cbd4c6; }
.draft-copy span:nth-child(1) { width: 94%; }
.draft-copy span:nth-child(2) { width: 82%; }
.draft-copy span:nth-child(3) { width: 65%; }
.draft-copy-short span:nth-child(1) { width: 89%; }
.draft-copy-short span:nth-child(2) { width: 58%; }

.demo-process .process-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 3px;
  align-content: center;
  gap: 12px;
  position: absolute;
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(720px, calc(100% - 56px));
  height: 86px;
  max-width: 720px;
  margin: 0;
  padding: 18px 0 22px;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
}

.demo-process .process-footer > div { flex: 1; width: auto; min-width: 0; }
.demo-process .process-footer #demo-progress { height: 3px; }
.demo-process .process-footer #demo-percent { font-variant-numeric: tabular-nums; }

.demo-report { max-width: 720px; padding-bottom: 28px; }
.demo-report #demo-learn { display: block; margin: 24px 0 0 auto; }

.demo-study,
.demo-complete {
  width: min(680px, 100%);
  min-height: 540px;
  margin: 0 auto;
  padding: 72px 0 54px;
}

.demo-study > .demo-kicker { margin-top: 0; }
.demo-study h3 { max-width: 620px; margin: 42px 0 18px; font-size: clamp(31px, 4vw, 48px); line-height: 1.35; }
.demo-study h3:focus { outline: none; }
.demo-study > .demo-small { margin-bottom: 28px; }
.demo-study > #demo-reveal { display: block; margin: 22px 0 0 auto; }

.recall-progress {
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #e6ebe2;
}

.recall-progress span { display: block; width: 50%; height: 100%; border-radius: inherit; background: #657d5c; transition: width .45s ease; }
.demo-answer-copy { margin-top: 34px; }
.demo-ratings { justify-content: flex-end; margin-top: 14px; }
.demo-scheduled { margin-top: 28px; }
.demo-scheduled > .button { margin-top: 10px; }

.demo-complete {
  display: grid;
  align-content: center;
  justify-items: start;
}

.demo-complete[hidden] { display: none; }
.demo-complete h3 { margin: 8px 0 20px; color: #253423; font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.6px; line-height: 1.4; }
.demo-complete > p:not(.demo-kicker) { max-width: 520px; margin: 0 0 30px; color: #6a7765; font-size: 15px; line-height: 1.9; }
.demo-complete > .button { justify-self: end; }

.recall-summary {
  width: 100%;
  margin: 4px 0 22px;
  border-top: 1px solid #dfe5da;
}

.recall-summary article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  padding: 20px 0;
  border-bottom: 1px solid #dfe5da;
}

.recall-summary article > div { display: flex; align-items: center; gap: 14px; min-width: 0; }
.recall-summary article > div { grid-row: 1 / 3; }
.recall-summary article > div span { color: #97a193; font-size: 10px; letter-spacing: .8px; }
.recall-summary article > div p { margin: 0; overflow: hidden; color: #344332; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.recall-summary strong { grid-column: 2; grid-row: 1; justify-self: end; padding: 5px 9px; border-radius: 99px; background: #e8f0e3; color: #486341; font-size: 10px; font-weight: 500; }
.recall-summary strong[data-recalled="false"] { background: #f1eee6; color: #7c6a4d; }
.recall-summary time { grid-column: 2; grid-row: 2; justify-self: end; color: #7a8775; font-size: 12px; }

@media (max-width: 760px) {
  .demo-process { min-height: 0; padding: 18px; }
  .demo-process > .draft-preview { min-height: 0; border-radius: 18px; }
  .draft-body { width: calc(100% - 38px); height: calc(100% - 92px); padding: 30px 0 32px; }
  .draft-body > #process-question { font-size: 25px; }
  .draft-body h4 { font-size: 29px; }
  .demo-process .process-footer { right: auto; bottom: 0; left: 50%; width: calc(100% - 38px); height: 92px; gap: 12px; }
  .demo-process .process-footer > div { width: auto; }
  .demo-output { padding-inline: 24px; }
  .demo-study,
  .demo-complete { min-height: 520px; padding: 46px 0 34px; }
  .demo-study h3 { margin-top: 34px; font-size: 34px; }
  .demo-complete h3 { font-size: 26px; }
  .recall-summary article { gap: 7px 12px; }
  .recall-summary article > div p { font-size: 13px; }
  .demo-ratings button { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .inline-operation > i { animation: none; }
  .question-chip:not([aria-pressed="true"]) { animation: none; }
  .recall-progress span { transition: none; }
}

/* Full original research articles, inside the existing experience viewport. */
.report-content { color: #455140; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.report-content h1 { color: #253423; font-size: clamp(25px, 3vw, 36px); line-height: 1.45; margin: 0 0 28px; }
.report-content h2 { font-size: 24px; line-height: 1.5; margin: 40px 0 18px; }
.report-content h3 { font-size: 20px; line-height: 1.5; margin: 28px 0 14px; }
.report-content h4 { font-size: 18px; margin: 24px 0 12px; }
.report-content p { margin: 0 0 18px; }
.report-content ul, .report-content ol { padding-left: 1.6em; margin: 18px 0; }
.report-content li { margin: 8px 0; }
.report-content blockquote { margin: 24px 0; padding: 4px 20px; border-left: 2px solid #c7d1c0; }
.report-content pre { overflow-x: auto; padding: 18px; background: #f3f5ef; border-radius: 10px; }
.report-content code { font-size: .9em; }
.report-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 24px 0; }
.report-content th, .report-content td { min-width: 100px; padding: 10px 14px; border: 1px solid #dfe5da; text-align: left; }
.report-content a { color: #486b3d; text-decoration: underline; text-underline-offset: 3px; }
.report-content hr { border: 0; border-top: 1px solid #e5e9e0; margin: 32px 0; }
.report-content math[display="block"] { margin: 24px 0; overflow-x: auto; }
.demo-report #demo-learn[hidden] { display: none; }

/* Keep the experience frame stable while only its reading area scrolls. */
.demo-output { overflow: hidden; padding-bottom: 24px; animation: none; }
#demo-result { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.demo-result-header { flex: none; padding-bottom: 20px; }
.demo-result-body { flex: 1; min-height: 0; overflow-y: auto; overflow-anchor: none; scrollbar-gutter: stable; scrollbar-color: #c9d1c4 transparent; padding-bottom: 28px; }
.learning-demo { overflow-anchor: none; }
@media (max-width: 760px) {
  .demo-output { padding-top: 26px; padding-bottom: 18px; }
  .demo-result-header { padding-bottom: 16px; }
}

/* Recall is a viewport-sized task, with its action row always available. */
.learning-demo:has(.demo-study:not([hidden])),
.learning-demo:has(.demo-complete:not([hidden])) {
  height: calc(100dvh - 49px);
  min-height: 0;
}
.demo-output:has(.demo-study:not([hidden])) { padding-top: clamp(18px, 3vh, 28px); padding-bottom: 20px; }
.demo-result-body:has(.demo-study:not([hidden])) { overflow: hidden; padding-bottom: 0; }
.demo-study:not([hidden]) {
  display: flex; flex-direction: column;
  height: 100%; max-height: 560px; min-height: 0; padding: clamp(12px, 3vh, 26px) 0 0;
}
.demo-study > .demo-kicker { margin: 0 0 12px; }
.demo-study .recall-progress { flex-shrink: 0; }
.demo-study h3 { flex-shrink: 0; margin: 22px 0 12px; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.45; letter-spacing: -.5px; }
.demo-study > .demo-small { margin: 0 0 16px; }
.demo-study > #demo-reveal { margin: auto 0 0 auto; flex-shrink: 0; }
.demo-study #demo-answer:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.demo-study .demo-answer-copy { min-height: 0; overflow-y: auto; margin-top: 8px; padding-top: 16px; flex: 1; }
.demo-study .demo-answer-copy > .demo-kicker { margin: 0 0 10px; }
.demo-study .demo-answer-copy > p:not(.demo-kicker) { margin: 0; font-size: 15px; line-height: 1.85; }
.demo-study #demo-answer > .demo-small { margin: 12px 0 8px; flex-shrink: 0; }
.demo-study .demo-ratings { margin: 0; flex-shrink: 0; }
.demo-study .demo-ratings button, .demo-study > #demo-reveal { padding: 11px 22px; font-size: 14px; }
@media (max-width: 760px), (max-height: 700px) {
  .demo-output:has(.demo-study:not([hidden])) { padding-top: 18px; padding-bottom: 18px; }
  .demo-output:has(.demo-study:not([hidden])) .demo-result-header { padding-bottom: 12px; }
  .demo-study:not([hidden]) { padding-top: 10px; }
  .demo-study h3 { margin-top: 16px; font-size: 24px; }
  .demo-study > .demo-small { font-size: 13px; margin-bottom: 10px; }
}
