@font-face {
  font-family: "Kalam";
  src: url("/assets/fonts/kalam-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kalam";
  src: url("/assets/fonts/kalam-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --board-deep: oklch(25% 0.055 164);
  --board: oklch(30% 0.064 164);
  --board-light: oklch(35% 0.068 164);
  --chalk: oklch(94% 0.022 92);
  --chalk-soft: oklch(83% 0.025 113);
  --chalk-dim: oklch(70% 0.03 146);
  --yellow: oklch(87% 0.15 93);
  --coral: oklch(73% 0.14 29);
  --blue: oklch(78% 0.095 224);
  --paper: oklch(95% 0.02 86);
  --ink: oklch(25% 0.04 53);
  --wood: oklch(45% 0.095 63);
  --wood-dark: oklch(31% 0.075 55);
  --wood-light: oklch(64% 0.105 72);
  --shadow: oklch(11% 0.02 165);
  --font-display: "Kalam", "Segoe Print", cursive;
  --font-body: "Nunito Sans", "Avenir Next", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --content: 76rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--wood-dark);
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--chalk);
  background:
    linear-gradient(90deg, oklch(36% 0.08 55 / 0.85), transparent 2%, transparent 98%, oklch(29% 0.07 55 / 0.8)),
    repeating-linear-gradient(
      92deg,
      var(--wood-dark) 0,
      var(--wood) 5%,
      oklch(49% 0.105 64) 9%,
      var(--wood-dark) 17%,
      var(--wood-light) 25%,
      var(--wood) 32%
    );
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: var(--scroll-progress, 0%);
  height: 0.22rem;
  background: var(--yellow);
  box-shadow: 0 0 0.35rem oklch(87% 0.15 93 / 0.35);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  color: var(--board-deep);
  background: var(--yellow);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.classroom-shell {
  position: relative;
  width: min(calc(100% - clamp(1rem, 4vw, 4rem)), 94rem);
  margin: clamp(0.5rem, 2vw, 1.6rem) auto;
  overflow: hidden;
  border: clamp(0.5rem, 1.2vw, 1rem) solid var(--wood);
  outline: 0.25rem solid var(--wood-dark);
  background:
    radial-gradient(circle at 15% 23%, oklch(92% 0.02 95 / 0.045) 0 0.05rem, transparent 0.07rem),
    radial-gradient(circle at 76% 64%, oklch(92% 0.02 95 / 0.035) 0 0.06rem, transparent 0.08rem),
    linear-gradient(115deg, transparent 0 55%, oklch(92% 0.02 95 / 0.018) 56% 58%, transparent 59%),
    var(--board);
  background-size: 1.25rem 1.35rem, 1.75rem 1.55rem, 22rem 22rem, auto;
  box-shadow:
    0 1.5rem 3.5rem oklch(10% 0.025 55 / 0.48),
    inset 0 0 4rem oklch(15% 0.035 164 / 0.45);
}

.classroom-shell::before,
.classroom-shell::after {
  position: absolute;
  z-index: 15;
  left: 0;
  width: 100%;
  height: 0.3rem;
  background: linear-gradient(
    90deg,
    var(--wood-dark),
    var(--wood-light) 12%,
    var(--wood) 30%,
    var(--wood-light) 72%,
    var(--wood-dark)
  );
  content: "";
  pointer-events: none;
}

.classroom-shell::before {
  top: 0;
}

.classroom-shell::after {
  bottom: 0;
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - clamp(2rem, 7vw, 8rem)), var(--content));
  margin: 0 auto;
  padding: clamp(1rem, 2.3vw, 1.7rem) 0;
  border-bottom: 0.1rem solid oklch(90% 0.02 100 / 0.18);
}

.wordmark {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  text-decoration: none;
}

.wordmark svg {
  width: 2.4rem;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wordmark span {
  display: grid;
  line-height: 1.05;
}

.wordmark strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.wordmark small {
  color: var(--chalk-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topbar-download {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.65rem;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.25rem 0.35rem 0.8rem;
  border: 0.08rem solid oklch(94% 0.02 90 / 0.3);
  border-radius: 0.15rem 0.35rem 0.2rem 0.4rem;
  text-decoration: none;
  transform: rotate(0.25deg);
  transition:
    color 140ms var(--ease-out),
    background-color 140ms var(--ease-out),
    transform 140ms var(--ease-out);
}

.topbar-download > span {
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
}

.topbar-download small {
  grid-column: 1;
  color: var(--chalk-soft);
  font-size: 0.66rem;
  line-height: 1.2;
}

.topbar-download svg {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
  width: min(calc(100% - clamp(2rem, 7vw, 8rem)), var(--content));
  min-height: min(52rem, calc(100vh - 4rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 8rem);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 47rem;
}

.eyebrow {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 7.7rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-wrap: balance;
  text-shadow:
    0.035em 0.02em 0 oklch(92% 0.02 96 / 0.4),
    -0.025em -0.015em 0 oklch(92% 0.02 96 / 0.16);
}

.hero h1 span {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 0.12em;
  color: var(--yellow);
  font-size: 0.58em;
  letter-spacing: -0.035em;
}

.hero h1 span::after {
  position: absolute;
  right: -0.05em;
  bottom: -0.08em;
  left: 0;
  height: 0.15em;
  border-top: 0.055em solid currentColor;
  border-radius: 45%;
  content: "";
  transform: rotate(-1.2deg);
}

.hero-intro {
  max-width: 42rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  color: var(--chalk-soft);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.6;
}

.hero-intro strong {
  color: var(--chalk);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.primary-action {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.75rem 1rem 0.7rem 1.25rem;
  border-radius: 0.2rem 0.4rem 0.25rem 0.35rem;
  color: var(--board-deep);
  background: var(--yellow);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0.35rem 0.4rem 0 oklch(18% 0.04 164 / 0.45);
  transform: rotate(-0.4deg);
  transition:
    box-shadow 140ms var(--ease-out),
    transform 140ms var(--ease-out);
}

.primary-action svg {
  width: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms var(--ease-out);
}

.hero-actions p {
  margin: 0;
  color: var(--chalk-dim);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-sketch {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 23rem;
}

.sketch-line {
  position: absolute;
  inset: -2.2rem -1rem auto;
  width: calc(100% + 2rem);
  height: 25rem;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-back {
  stroke: oklch(94% 0.02 93 / 0.14);
  stroke-width: 9;
}

.route-front {
  stroke: var(--chalk);
  stroke-width: 2.2;
  stroke-dasharray: 7 10;
  stroke-dashoffset: 250;
  animation: draw-route 2.1s 450ms var(--ease-out) forwards;
}

.arrow {
  stroke: var(--chalk);
  stroke-width: 3;
}

.sketch-node {
  position: absolute;
  display: grid;
  width: 8.4rem;
  justify-items: center;
  font-family: var(--font-display);
  text-align: center;
  opacity: 0;
  animation: node-in 600ms var(--ease-out) forwards;
}

.sketch-node svg {
  width: 5rem;
  height: 5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0.08rem 0.06rem 0 oklch(95% 0.02 100 / 0.18));
}

.sketch-node span {
  margin-top: 0.5rem;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.sketch-node small {
  margin-top: 0.32rem;
  color: var(--chalk-soft);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.node-model {
  top: 0;
  left: 1%;
  color: var(--blue);
  animation-delay: 550ms;
  transform: rotate(-3deg);
}

.node-prompt {
  top: 8.8rem;
  left: calc(50% - 4.2rem);
  color: var(--yellow);
  animation-delay: 900ms;
  transform: rotate(1.5deg);
}

.node-agent {
  top: 10rem;
  right: 0;
  color: var(--coral);
  animation-delay: 1.25s;
  transform: rotate(2.5deg);
}

.sketch-note {
  position: absolute;
  top: -2rem;
  left: 8.5rem;
  margin: 0;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 1rem;
  transform: rotate(5deg);
}

.sketch-note::after {
  position: absolute;
  top: 1.35rem;
  left: -1.5rem;
  width: 2.8rem;
  height: 1.6rem;
  border-bottom: 0.12rem solid currentColor;
  border-left: 0.12rem solid currentColor;
  border-radius: 0 0 0 70%;
  content: "";
  transform: rotate(18deg);
}

.chalk-dust {
  position: absolute;
  width: 12rem;
  height: 9rem;
  opacity: 0.32;
  background:
    radial-gradient(circle, var(--chalk) 0 0.04rem, transparent 0.07rem) 0 0 / 1rem 1rem,
    radial-gradient(circle, var(--chalk) 0 0.025rem, transparent 0.06rem) 0.3rem 0.45rem / 1.4rem 1.2rem;
  filter: blur(0.15rem);
  pointer-events: none;
}

.dust-one {
  top: 8rem;
  right: 2rem;
  transform: rotate(18deg);
}

.dust-two {
  bottom: 2rem;
  left: 35%;
  transform: rotate(-10deg);
}

.course-map {
  width: min(calc(100% - clamp(2rem, 7vw, 8rem)), var(--content));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 0.1rem solid oklch(90% 0.02 100 / 0.14);
}

.section-heading p {
  margin: 0 0 0.35rem;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: rotate(-0.8deg);
}

.section-heading h2 {
  max-width: 38rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.1;
  text-wrap: balance;
}

.map-steps {
  display: grid;
  gap: 2.5rem;
  margin: clamp(2.8rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.map-steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1rem;
  align-items: start;
  min-height: 5rem;
}

.map-steps li:not(:last-child)::after {
  position: absolute;
  top: 4.2rem;
  bottom: -2.6rem;
  left: 1.45rem;
  border-left: 0.12rem dashed oklch(94% 0.02 93 / 0.32);
  content: "";
}

.map-steps span {
  grid-row: 1 / 3;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 0.14rem solid currentColor;
  border-radius: 47% 53% 44% 56%;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-4deg);
}

.map-steps li:nth-child(2) span {
  color: var(--blue);
  transform: rotate(3deg);
}

.map-steps li:nth-child(3) span {
  color: var(--coral);
  transform: rotate(-2deg);
}

.map-steps strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.map-steps small {
  max-width: 20rem;
  margin-top: 0.3rem;
  color: var(--chalk-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.lectures {
  width: min(calc(100% - clamp(2rem, 7vw, 8rem)), var(--content));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 0.1rem solid oklch(90% 0.02 100 / 0.14);
}

.lectures-intro {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(4.5rem, 9vw, 8rem);
}

.lectures-intro > p {
  max-width: 32rem;
  margin: 0;
  color: var(--chalk-soft);
  font-size: 0.95rem;
}

abbr {
  text-decoration: none;
}

.lesson {
  display: grid;
  gap: clamp(3.5rem, 8vw, 7rem);
  align-items: center;
}

.lesson-preview {
  position: relative;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
}

.paper {
  position: relative;
  width: 100%;
  padding: clamp(0.55rem, 1.2vw, 0.9rem);
  background: var(--paper);
  box-shadow:
    0.85rem 1.1rem 0 oklch(13% 0.035 164 / 0.28),
    0 1.5rem 2.5rem oklch(12% 0.03 164 / 0.28);
}

.paper::after {
  position: absolute;
  inset: 0.35rem;
  border: 0.05rem solid oklch(50% 0.03 80 / 0.14);
  content: "";
  pointer-events: none;
}

.paper img {
  width: 100%;
  height: auto;
  background: var(--paper);
}

.paper-one {
  transform: rotate(-2.4deg);
}

.paper-two {
  transform: rotate(2deg);
}

.paper-three {
  transform: rotate(-1.2deg);
}

.tape {
  position: absolute;
  z-index: 2;
  top: -1.25rem;
  left: calc(50% - 3.4rem);
  width: 6.8rem;
  height: 2.1rem;
  background:
    linear-gradient(90deg, transparent 0 2%, oklch(89% 0.09 88 / 0.72) 3% 97%, transparent 98%),
    repeating-linear-gradient(15deg, oklch(94% 0.05 92 / 0.5) 0 0.25rem, oklch(82% 0.08 85 / 0.38) 0.28rem 0.5rem);
  box-shadow: 0 0.2rem 0.3rem oklch(25% 0.03 70 / 0.12);
  clip-path: polygon(0 8%, 5% 0, 11% 7%, 17% 1%, 23% 6%, 29% 0, 35% 5%, 42% 1%, 48% 7%, 54% 2%, 60% 6%, 67% 0, 73% 7%, 80% 1%, 86% 6%, 93% 0, 100% 7%, 97% 93%, 90% 100%, 83% 94%, 75% 100%, 68% 94%, 61% 100%, 54% 95%, 47% 100%, 40% 94%, 33% 100%, 26% 95%, 18% 100%, 10% 94%, 3% 100%);
  transform: rotate(1.5deg);
}

.preview-note {
  position: absolute;
  right: -0.5rem;
  bottom: -2.3rem;
  margin: 0;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 1.05rem;
  transform: rotate(-4deg);
}

.preview-note::before {
  display: inline-block;
  width: 2rem;
  margin-right: 0.4rem;
  border-top: 0.12rem solid currentColor;
  content: "";
  transform: translateY(-0.35rem) rotate(-6deg);
}

.lesson-copy {
  max-width: 38rem;
}

.lesson-kicker {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lesson-kicker span:first-child {
  padding: 0.25rem 0.55rem 0.2rem;
  border: 0.1rem solid currentColor;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  line-height: 1;
  transform: rotate(-3deg);
}

.lesson-kicker span + span::before {
  margin-right: 0.65rem;
  content: "•";
}

.lesson-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  text-wrap: balance;
}

.lesson-copy > p {
  margin: 1.4rem 0 0;
  color: var(--chalk-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
}

.topic-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.6rem 0 2rem;
  padding: 0;
  list-style: none;
}

.topic-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--chalk);
  font-size: 0.91rem;
  line-height: 1.5;
}

.topic-list li::before {
  position: absolute;
  top: 0.47em;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border: 0.12rem solid var(--coral);
  border-radius: 47% 53% 44% 56%;
  content: "";
  transform: rotate(15deg);
}

.lesson-two .topic-list li::before {
  border-color: var(--blue);
}

.lesson-three .topic-list li::before {
  border-color: var(--yellow);
}

.download-action {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 4.2rem;
  padding: 0.75rem 1rem 0.75rem 1.2rem;
  border: 0.11rem solid oklch(94% 0.02 93 / 0.45);
  border-radius: 0.15rem 0.4rem 0.2rem 0.35rem;
  text-decoration: none;
  transform: rotate(-0.25deg);
  transition:
    color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.download-action span {
  display: grid;
}

.download-action strong {
  font-size: 0.94rem;
}

.download-action small {
  color: var(--chalk-soft);
  font-size: 0.71rem;
}

.download-action svg {
  width: 1.55rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms var(--ease-out);
}

.chalk-divider {
  position: relative;
  display: grid;
  height: 8rem;
  margin: clamp(3.5rem, 8vw, 7rem) 0;
  place-items: center;
}

.chalk-divider svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: oklch(94% 0.02 93 / 0.24);
  stroke-width: 1.8;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
}

.chalk-divider span {
  position: relative;
  z-index: 1;
  padding: 0.1rem 1rem;
  color: var(--coral);
  background: var(--board);
  font-family: var(--font-display);
  font-size: 0.95rem;
  transform: rotate(-2deg);
}

.divider-reverse span {
  color: var(--blue);
  transform: rotate(2deg);
}

.takeaway {
  display: grid;
  gap: 2rem;
  align-items: center;
  width: min(calc(100% - clamp(2rem, 7vw, 8rem)), var(--content));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0;
  border-top: 0.1rem solid oklch(90% 0.02 100 / 0.14);
}

.takeaway-sketch svg {
  width: min(13rem, 60%);
  margin: 0 auto;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0.07rem 0.05rem 0 oklch(95% 0.02 90 / 0.2));
  transform: rotate(-4deg);
}

.takeaway h2 {
  max-width: 46rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.08;
  text-wrap: balance;
}

.takeaway > div:nth-child(2) > p:last-child {
  max-width: 42rem;
  margin: 1.3rem 0 0;
  color: var(--chalk-soft);
  font-size: 1.05rem;
}

.bundle-action {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 1rem;
  align-items: center;
  padding: 1.2rem 1.2rem 1.1rem 1.4rem;
  color: var(--board-deep);
  background: var(--yellow);
  text-decoration: none;
  box-shadow: 0.45rem 0.55rem 0 oklch(17% 0.04 164 / 0.5);
  transform: rotate(0.5deg);
  transition:
    box-shadow 150ms var(--ease-out),
    transform 150ms var(--ease-out);
}

.bundle-action::before {
  position: absolute;
  inset: 0.25rem;
  border: 0.08rem dashed oklch(30% 0.06 164 / 0.45);
  content: "";
  pointer-events: none;
}

.bundle-action span,
.bundle-action small {
  position: relative;
  z-index: 1;
}

.bundle-action span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.bundle-action small {
  grid-column: 1;
  color: oklch(36% 0.055 164);
  font-size: 0.72rem;
  font-weight: 800;
}

.bundle-action svg {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / 3;
  width: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: min(calc(100% - clamp(2rem, 7vw, 8rem)), var(--content));
  margin: 0 auto;
  padding: 2rem 0 clamp(2rem, 5vw, 4rem);
  border-top: 0.1rem solid oklch(90% 0.02 100 / 0.14);
  color: var(--chalk-dim);
  font-size: 0.75rem;
}

footer strong {
  color: var(--chalk);
  font-family: var(--font-display);
  font-size: 1rem;
}

footer p {
  margin: 0.25rem 0 0;
}

footer a {
  align-self: flex-start;
  min-height: 2.75rem;
  padding: 0.7rem 0;
  color: var(--chalk);
  font-weight: 800;
  text-underline-offset: 0.3em;
}

.download-toast {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  gap: 0.75rem;
  align-items: center;
  max-width: calc(100% - 2rem);
  padding: 0.9rem 1.1rem;
  border: 0.16rem solid var(--chalk);
  border-radius: 0.2rem 0.45rem 0.25rem 0.4rem;
  color: var(--chalk);
  background: var(--board-deep);
  box-shadow: 0.45rem 0.55rem 0 oklch(13% 0.03 164 / 0.48);
  font-family: var(--font-display);
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem) rotate(1deg);
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.download-toast.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(1deg);
}

.download-toast svg {
  width: 1.4rem;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 0.2rem solid var(--yellow);
  outline-offset: 0.28rem;
}

@media (hover: hover) and (pointer: fine) {
  .topbar-download:hover {
    color: var(--board-deep);
    background: var(--chalk);
    transform: rotate(-0.4deg) translateY(-0.08rem);
  }

  .topbar-download:hover small {
    color: var(--board-light);
  }

  .primary-action:hover {
    box-shadow: 0.2rem 0.24rem 0 oklch(18% 0.04 164 / 0.45);
    transform: rotate(0.15deg) translate(0.12rem, 0.12rem);
  }

  .primary-action:hover svg {
    transform: translateX(0.2rem);
  }

  .download-action:hover {
    color: var(--board-deep);
    background: var(--chalk);
    transform: rotate(0.2deg) translateY(-0.1rem);
  }

  .download-action:hover small {
    color: var(--board-light);
  }

  .download-action:hover svg {
    transform: translateY(0.18rem);
  }

  .bundle-action:hover {
    box-shadow: 0.22rem 0.27rem 0 oklch(17% 0.04 164 / 0.5);
    transform: rotate(-0.15deg) translate(0.18rem, 0.18rem);
  }
}

@media (min-width: 44rem) {
  .map-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-steps li:not(:last-child)::after {
    top: 1.45rem;
    right: -2rem;
    bottom: auto;
    left: calc(100% - 0.25rem);
    width: 2.6rem;
    border-top: 0.12rem dashed oklch(94% 0.02 93 / 0.32);
    border-left: 0;
  }

  .lectures-intro {
    grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.7fr);
  }

  footer {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  footer a {
    align-self: auto;
  }
}

@media (min-width: 58rem) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(23rem, 0.92fr);
  }

  .hero h1 {
    font-size: clamp(4.2rem, 7.3vw, 7.7rem);
  }

  .hero-sketch {
    min-height: 26rem;
  }

  .lesson {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  }

  .lesson-two .lesson-preview {
    grid-column: 2;
    grid-row: 1;
  }

  .lesson-two .lesson-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .takeaway {
    grid-template-columns: minmax(9rem, 0.32fr) minmax(0, 1fr);
  }

  .bundle-action {
    grid-column: 2;
    max-width: 34rem;
  }
}

@media (max-width: 31rem) {
  .topbar-download {
    border: 0;
    padding-right: 0;
  }

  .topbar-download > span {
    font-size: 0;
  }

  .topbar-download > span::after {
    font-size: 0.78rem;
    content: "All decks";
  }

  .topbar-download small {
    display: none;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-sketch {
    min-height: 20rem;
  }

  .sketch-node {
    width: 6.5rem;
  }

  .sketch-node svg {
    width: 4.1rem;
    height: 4.1rem;
  }

  .sketch-node span {
    font-size: 1.25rem;
  }

  .sketch-node small {
    font-size: 0.6rem;
  }

  .node-model {
    left: -0.4rem;
  }

  .node-prompt {
    left: calc(50% - 3.25rem);
  }

  .node-agent {
    right: -0.2rem;
  }

  .sketch-note {
    left: 6.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes draw-route {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes node-in {
  from {
    opacity: 0;
    translate: 0 1rem;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}
