.learn-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 21px;
}
.learn-actions a {
  font-weight: 650;
  font-size: 0.9rem;
}
.learn-actions .glass-button {
  gap: 8px;
}
.learn-hero-stage {
  position: relative;
  min-width: 0;
}
.learn-workspace-figure {
  margin: 0;
}
.learn-workspace-figure .app-window.glass-demo {
  border-radius: 14px !important;
}
.learn-workflow,
.learn-agents,
.learn-close {
  padding-block: clamp(59px, 8vw, 110px);
}
.learn-workflow {
  scroll-margin-top: 70px;
}
.learn-section-heading h2,
.learn-close h2 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2.15rem, 4.6vw, 4.25rem);
  font-weight: 670;
  letter-spacing: -0.057em;
  line-height: 1.06;
  text-wrap: balance;
}
.learn-section-heading p,
.learn-close p {
  margin: 14px 0 0;
  line-height: 1.55;
}
.learn-close {
  text-align: center;
  background: radial-gradient(ellipse at 50% 80%, #e2e8ff, transparent 68%);
}
.learn-close h2,
.learn-close p {
  margin-inline: auto;
}
.learn-close p {
  max-width: 50ch;
}
.learn-close .learn-actions {
  justify-content: center;
  margin-top: 24px;
}
.glass-page.learn-page .site-header {
  background: transparent;
  border-bottom: 0;
}

.learn-hero {
  isolation: isolate;
  overflow: clip;
  padding: clamp(128px, 11vw, 174px) 0 clamp(54px, 6vw, 92px);
  text-align: center;
  background:
    radial-gradient(ellipse at 22% 71%, #c4d9ff, transparent 42%),
    radial-gradient(ellipse at 78% 73%, #ddcef9, transparent 46%),
    linear-gradient(180deg, #f8f8ff, #edf1ff);
}

.learn-hero h1 {
  color: #111e43;
  font-size: clamp(3.15rem, 7.3vw, 7.2rem);
  font-weight: 700;
  line-height: 1;
}

.learn-hero-copy p {
  max-width: 40ch;
  margin: 18px auto 22px;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  text-wrap: balance;
}

.learn-hero-copy .learn-actions {
  justify-content: center;
}

.learn-hero-stage {
  width: min(1010px, 100% - 42px);
  margin: clamp(28px, 4vw, 60px) auto 0;
  text-align: left;
}

.learn-hero-stage .learn-workspace {
  box-shadow:
    0 32px 84px #3e4e982e,
    0 5px 18px #3e4e9816;
}

@media (prefers-reduced-motion: no-preference) {
  .learn-hero-stage .learn-workspace {
    animation: learn-workspace-enter 700ms var(--ease) both;
  }
}

@keyframes learn-workspace-enter {
  from {
    opacity: 0.72;
    transform: translateY(24px) scale(0.98);
  }
}

.learn-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  padding-top: clamp(34px, 5vw, 65px);
}

.learn-capabilities article {
  border-top: 1px solid #c8d3ec;
  padding-top: 18px;
}

.learn-capabilities .icon {
  color: #455fb6;
}

.learn-capabilities h3 {
  margin: 8px 0;
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
  font-weight: 700;
}

.learn-capabilities p {
  max-width: 32ch;
  line-height: 1.55;
}

.learn-agents {
  background: linear-gradient(155deg, #e8eeff, #f1f1ff 65%, #f4f7ff);
}

.learn-agent-scene {
  margin-top: clamp(40px, 6vw, 86px);
}

.learn-agent-scene + .learn-agent-scene {
  padding-top: clamp(36px, 6vw, 82px);
  border-top: 1px solid #cbd4ed;
}

.learn-agent-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #2d487e;
}

.learn-agent-name img {
  object-fit: contain;
}

.learn-agent-copy h3 {
  font-size: clamp(1.85rem, 3.45vw, 3.55rem);
  font-weight: 700;
  line-height: 1.03;
  text-wrap: balance;
}

.learn-agent-copy p {
  max-width: 58ch;
  margin-top: 11px;
  line-height: 1.55;
}

.learn-demo {
  overflow: hidden;
  min-width: 0;
  margin-top: clamp(23px, 3vw, 40px);
  border: 1px solid #c4d0eb;
  border-radius: 13px;
  box-shadow: 0 20px 53px -22px #30478048;
  background: #f9faff;
  color: #172749;
}

.learn-demo-bar,
.learn-demo-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 16px;
  padding: 6px clamp(12px, 2vw, 24px);
  background: #ecf1fe;
}

.learn-demo-bar {
  border-bottom: 1px solid #cfd9ef;
  font-weight: 600;
}

.learn-demo-bar small {
  color: #435b83;
}

.learn-demo-footer {
  min-height: 31px;
  border-top: 1px solid #cfd9ef;
}

.learn-demo-footer p {
  font-size: 0.79rem;
  line-height: 1.4;
}

.learn-demo-pause {
  display: grid;
  width: 32px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #425981;
  font-size: 0.92rem;
  line-height: 1;
}

.learn-demo-pause:hover {
  background: #dce5fa;
}

.learn-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.learn-demo-label {
  font-size: 0.82rem;
  font-weight: 700;
}

.offcourse-workspace,
.blueprint-workspace {
  display: grid;
  grid-template-columns: minmax(132px, 0.65fr) minmax(0, 2.25fr) minmax(
      0,
      1.25fr
    );
  min-height: 350px;
}

.offcourse-editor {
  min-width: 0;
  padding: 14px clamp(12px, 2vw, 21px);
  background: #101b32;
  color: #dce9ff;
  transition: filter 320ms ease;
}

.offcourse-editor pre {
  min-height: 10em;
  margin: 12px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  line-height: 1.6;
}

.offcourse-fix.is-corrected,
.offcourse-demo:not(.demo-animated) .offcourse-fix {
  color: #a3efcf;
  background: #284444;
}

.offcourse-output {
  border-top: 1px solid #3a4c6f;
  padding-top: 9px;
}

.offcourse-output p {
  margin-top: 4px;
  color: #c8d5ed;
  font:
    0.82rem/1.5 ui-monospace,
    Consolas,
    monospace;
}

.offcourse-output [data-result="error"] {
  color: #ffb9bc;
}

.offcourse-output [data-result="success"] {
  color: #9fefcb;
}

.offcourse-chat,
.blueprint-chat,
.blueprint-board {
  padding: 14px clamp(12px, 2vw, 22px);
}

.offcourse-context {
  font-size: 0.78rem;
  margin: 4px 0 12px;
}

.learn-demo .demo-user-message,
.learn-demo .demo-agent-message {
  margin-top: 8px;
  padding: 9px 11px;
  min-height: 2.8em;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.learn-demo .demo-user-message {
  background: #e8eefc;
  color: #263b68;
}

.learn-demo .demo-agent-message {
  border-left: 2px solid #687fc8;
  background: #f0f3fd;
  color: #2c4067;
}

.learn-blueprint .learn-demo-bar,
.learn-blueprint .learn-demo-footer {
  background: #f0edfc;
}

.offcourse-chat {
  min-height: 228px;
}

.demo-animated :is(.demo-user-message, .demo-agent-message, [data-reveal]) {
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.demo-animated
  :is(.demo-user-message, .demo-agent-message, [data-reveal]):not(
    [data-visible]
  ) {
  opacity: 0;
  transform: translateY(7px);
}

.blueprint-board {
  background:
    linear-gradient(0deg, #f9f7ffcc, #faf8ffcc),
    radial-gradient(circle, #a597d0 0.7px, transparent 1.2px) 0 0 / 14px 14px;
}

.blueprint-map {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.blueprint-scope {
  display: grid;
  justify-items: center;
  text-align: center;
}

.blueprint-scope span,
.blueprint-report small {
  color: #5f5181;
  font-size: 0.76rem;
}

.blueprint-scope strong {
  color: #332450;
  font-weight: 700;
}

.blueprint-flow {
  --node-gap: clamp(13px, 2.7vw, 32px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--node-gap);
}

.blueprint-node {
  display: grid;
  position: relative;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 9px clamp(6px, 1.4vw, 15px);
  border: 1px solid #dcd5ee;
  border-radius: 9px;
  background: linear-gradient(146deg, #fff, #f2eefc);
  box-shadow: 0 4px 11px #55428210;
  font-size: clamp(0.72rem, 1.1vw, 0.95rem);
  line-height: 1.25;
}

.blueprint-node + .blueprint-node::before {
  content: "→";
  position: absolute;
  right: 100%;
  top: 45%;
  width: var(--node-gap);
  color: #725abd;
  text-align: center;
}

.blueprint-node .icon {
  width: 17px;
  height: 17px;
  margin-bottom: 2px;
  color: #6346b5;
}

.blueprint-node code {
  color: #58487a;
  font-size: 0.82em;
  overflow-wrap: anywhere;
}

.blueprint-outcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(6px, 2vw, 24px);
  padding-top: 12px;
  border-top: 1px solid #e1dbf2;
  font-size: 0.8rem;
}

.blueprint-milestones ol {
  margin: 5px 0 0;
  padding-inline-start: 17px;
  color: #594d73;
  line-height: 1.57;
}

.blueprint-milestones .is-current {
  color: #4e3196;
  font-weight: 650;
}

.blueprint-report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  column-gap: 6px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #eee8fb;
  line-height: 1.1;
}

.blueprint-report strong {
  grid-column: 1;
  color: #34225c;
  font-size: clamp(0.95rem, 2vw, 1.4rem);
}

.blueprint-chart {
  grid-area: 1 / 2 / span 2;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  color: #564979;
  font-size: 0.62rem;
}

.blueprint-chart span {
  display: grid;
  justify-items: center;
  gap: 3px;
  flex: 1;
}

.blueprint-chart i {
  display: block;
  width: 70%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#9272d1, #b69ce6);
}

.blueprint-bar-mon {
  height: 12px;
}
.blueprint-bar-wed {
  height: 19px;
}
.blueprint-bar-fri {
  height: 22px;
}

@media (max-width: 850px) {
  .learn-demo-rail {
    display: none;
  }
  .offcourse-workspace,
  .blueprint-workspace {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .learn-hero-stage {
    width: calc(100% - 32px);
  }

  .learn-capabilities {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .offcourse-workspace,
  .blueprint-workspace {
    grid-template-columns: 1fr;
  }

  .offcourse-chat {
    min-height: 191px;
  }

  .blueprint-report {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .blueprint-chart {
    grid-area: auto;
  }
}
.learn-flow {
  overflow: hidden;
  margin-top: clamp(22px, 3.5vw, 42px);
  border: 1px solid #ccd6ec;
  border-radius: 13px;
  background: #fbfcff;
  box-shadow: 0 20px 45px -30px #35578965;
}

.learn-flow-bar,
.learn-demo-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.learn-flow-bar {
  padding: 9px 16px;
  border-bottom: 1px solid #d5dff2;
  background: #eef2fd;
}

.learn-flow-bar small {
  margin-left: auto;
  color: #4c6088;
}

.learn-flow-panes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.learn-flow-pane {
  display: grid;
  gap: 10px;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: clamp(14px, 2vw, 23px);
}

.learn-flow-pane + .learn-flow-pane {
  border-left: 1px solid #dce4f3;
}

.learn-flow-pane h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.learn-flow-pane h3 .icon {
  width: 16px;
  height: 16px;
  color: #435eb6;
}

.learn-flow-lesson,
.learn-flow-editor,
.learn-flow-history {
  min-height: 122px;
  border-radius: 8px;
  padding: 11px 12px;
}

.learn-flow-lesson {
  display: grid;
  align-content: start;
  color: #eff4ff;
  background: radial-gradient(ellipse at 85% 100%, #4358a1, #212f61 67%);
}

.learn-flow-lesson small {
  color: #cbdbff;
}
.learn-flow-lesson strong {
  color: #f5f7ff;
}

.learn-flow-lesson-art {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 9px;
  font:
    0.85rem ui-monospace,
    Consolas,
    monospace;
}

.learn-flow-lesson-art span {
  padding: 5px 8px;
  border: 1px solid #b5caff73;
  border-radius: 5px;
  background: #ffffff19;
}
.learn-flow-lesson-art b {
  color: #c3d3ff;
}

.learn-flow-editor {
  min-width: 0;
  background: #142039;
  color: #dce9ff;
}

.learn-flow-editor small {
  color: #a9bde8;
}
.learn-flow-editor pre {
  margin: 9px 0 0;
  font-size: clamp(0.66rem, 1vw, 0.85rem);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.learn-flow-editor em {
  color: #cbb9ff;
  font-style: normal;
}
.learn-flow-editor mark {
  color: #a4f0d0;
  background: #294749;
}

.learn-flow-history {
  display: grid;
  gap: 5px;
  border: 1px solid #d8e2f4;
  background: #f5f8ff;
}

.learn-flow-history span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #384f7a;
}

.learn-flow-history i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #679e8a;
}

.learn-flow-history small {
  margin-left: auto;
}

.learn-flow-evidence {
  display: flex;
  gap: 7px;
  color: #425b83;
  font-size: 0.82rem;
}

.learn-flow-evidence > span:first-child {
  font-weight: 700;
}
.learn-flow-check {
  color: #287961;
}

.learn-demo-brand img,
.learn-demo-pane-head img {
  flex: none;
  object-fit: contain;
}

.learn-demo-brand small {
  font-weight: 500;
}

.learn-demo-rail {
  padding: 16px 9px;
  border-right: 1px solid #d3dcf0;
  background: #eef2fa;
  color: #43577a;
  font-size: 0.76rem;
}

.learn-demo-rail > * {
  display: block;
  padding: 4px 6px;
  border-radius: 5px;
}

.learn-demo-rail small {
  margin: 4px 0;
  color: #52688d;
}
.learn-demo-rail .rail-active {
  background: #dee7fa;
  color: #253f94;
  font-weight: 700;
}

.learn-demo-pane-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 12px;
}

.learn-demo-pane-head strong {
  display: flex;
  align-items: center;
  gap: 6px;
}

.learn-demo-pane-head span {
  font-size: 0.75rem;
}
.offcourse-editor .learn-demo-pane-head strong {
  color: #f5f8ff;
}
.demo-run {
  padding: 2px 8px;
  border: 1px solid #4c64a1;
  border-radius: 5px;
  color: #d5e0fa;
}
[data-running] .demo-run {
  background: #354c85;
}

.offcourse-chat,
.blueprint-chat {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #d4dcef;
  background: #fbfcff;
  transition:
    box-shadow 360ms ease,
    transform 360ms ease;
}

[data-chat-active] :is(.offcourse-chat, .blueprint-chat) {
  transform: translateX(-4px);
  box-shadow: -11px 0 20px #26395f21;
}

[data-chat-active] .offcourse-editor {
  filter: brightness(0.9);
}

.learn-demo-composer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 9px 10px;
  border: 1px solid #d4dff3;
  border-radius: 8px;
  color: #4d648b;
  background: #fff;
  font-size: 0.79rem;
  line-height: 1.35;
}

.learn-demo-composer > span:last-child {
  color: #3756b5;
}
.learn-demo .demo-agent-message {
  margin-bottom: 10px;
}
.blueprint-chat .demo-agent-message {
  border-left-color: #a18bd9;
}

@media (max-width: 680px) {
  .learn-flow-panes {
    grid-template-columns: minmax(0, 1fr);
  }
  .learn-flow-pane + .learn-flow-pane {
    border-left: 0;
    border-top: 1px solid #dce4f3;
  }
  .learn-flow-editor pre {
    font-size: 0.78rem;
  }
}

@media (max-width: 590px) {
  .offcourse-workspace,
  .blueprint-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .offcourse-chat,
  .blueprint-chat {
    border-left: 0;
    border-top: 1px solid #d4dcef;
    min-height: 237px;
  }

  [data-chat-active] :is(.offcourse-chat, .blueprint-chat) {
    transform: none;
  }

  .blueprint-chat {
    grid-row: 1;
    border-top: 0;
    border-bottom: 1px solid #d4dcef;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offcourse-editor,
  .offcourse-chat,
  .blueprint-chat {
    transition: none;
  }
}
