/* Intelligence artificielle CM2
   The five-stage shell is the literal canonical Maths structure.
   This file owns only the AI subject tokens, class landing, and the
   lesson-specific Chemins du jugement humain illustration universe. */

.ai-curriculum-world,
.approved-course--ai-workshop {
  --ai-accent: #fdc8e9;
  --ai-support: #fff0f8;
  --ai-ink: #29272d;
  --ai-purple: #9267ea;
  --ai-blue: #2f73d9;
  --ai-green: #0fbc53;
  --ai-coral: #fd7666;
  --ai-yellow: #f6cc24;
  --ai-orange: #f29c45;
  --ai-blue-soft: #dceaff;
  --ai-green-soft: #dff7e7;
  --ai-purple-soft: #eee7ff;
  --ai-yellow-soft: #fff4b8;
  --kid-joy-surface: var(--ai-accent);
  --kid-joy-on-surface: var(--ai-ink);
  --course-banner: var(--ai-accent);
  --course-banner-soft: var(--ai-support);
  color: var(--ai-ink);
}

/* AI interface skin: keep the canonical shell and express its identity only
   through the locked AI accent, support, and shared ink tokens. */
.maths-pilot-sidebar.is-ai {
  background: linear-gradient(180deg, #fdc8e9 0%, #fdc8e9 58%, #fff0f8 100%);
  color: #29272d;
}

.maths-pilot-sidebar.is-ai::after {
  background: rgba(255, 255, 255, .32);
}

.maths-pilot-sidebar.is-ai nav a,
.maths-pilot-sidebar.is-ai nav button {
  color: #29272d;
}

.maths-pilot-sidebar.is-ai nav i {
  background: rgba(255, 255, 255, .48);
}

.maths-pilot-sidebar.is-ai nav .is-active {
  border-color: rgba(41, 39, 45, .24);
  background: #fff0f8;
  color: #29272d;
}

.maths-pilot-sidebar.is-ai .maths-pilot-language {
  border-color: rgba(41, 39, 45, .2);
  background: rgba(255, 255, 255, .34);
}

.maths-pilot-sidebar.is-ai .maths-pilot-language span {
  color: rgba(41, 39, 45, .68);
}

.maths-pilot-sidebar.is-ai .maths-pilot-language span.is-active {
  background: #fff;
  color: #29272d;
}

.maths-pilot-sidebar.is-ai .maths-pilot-sidebar__buddy {
  filter: drop-shadow(0 12px 16px rgba(41, 39, 45, .14));
}

.maths-pilot-header[data-course-theme="ai"] .maths-pilot-topbar > div > span {
  width: fit-content;
  padding: 8px 12px 8px 16px;
  border-left: 6px solid #fdc8e9;
  border-radius: 9px 16px 16px 9px;
  background: #fff0f8;
  color: #29272d;
}

.maths-pilot-header[data-course-theme="ai"] .maths-pilot-topbar > div > span i {
  color: #fdc8e9;
}

[data-course-theme="ai"].approved-course--ai-workshop.maths-pilot-course > .division-module-nav button.is-current {
  background: var(--subject-support) !important;
  color: var(--ai-ink) !important;
}

[data-course-theme="ai"].approved-course--ai-workshop.maths-pilot-course > .division-module-nav button i,
[data-course-theme="ai"].approved-course--ai-workshop.maths-pilot-course > .division-module-nav button.is-current i {
  background: var(--subject-dominant) !important;
  color: var(--ai-ink) !important;
}

.approved-course--ai-workshop.kid-lesson-welcome-page .kid-lesson-welcome__hero {
  background-color: var(--subject-support);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .76) 0 4px, transparent 5px);
}

body:has(.division-course-header.is-flashcards[data-course-theme="ai"]) .approved-course--ai-workshop.maths-pilot-course.division-flashcards-page > .division-module-nav button.is-current {
  background: var(--subject-support) !important;
  color: var(--ai-ink) !important;
}

body:has(.division-course-header.is-flashcards[data-course-theme="ai"]) .approved-course--ai-workshop.maths-pilot-course.division-flashcards-page > .division-module-nav button.is-current i {
  background: var(--subject-dominant) !important;
  color: var(--ai-ink) !important;
}

/* AI class landing, outside the five-stage canonical shell. */
.ai-curriculum-world {
  min-height: 100vh;
  padding: 22px clamp(18px, 4vw, 72px) 90px;
  background: #f3f3f3;
  font-family: var(--font-body);
}

.ai-curriculum-world > .class-back {
  position: relative;
  top: auto;
  left: auto;
  margin-bottom: 18px;
}

.ai-curriculum-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr);
  min-height: 680px;
  overflow: hidden;
  border-radius: 68px;
  background: var(--ai-accent);
}

.ai-curriculum-hero > div {
  align-self: center;
  padding: clamp(40px, 7vw, 110px);
  padding-right: 30px;
}

.ai-curriculum-hero > div > span,
.ai-course-library > header span {
  font: 900 12px/1 var(--font-body);
  letter-spacing: .14em;
}

.ai-curriculum-hero h1,
.ai-course-library h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
}

.ai-curriculum-hero h1 {
  max-width: 850px;
  margin: 20px 0 24px;
  font-size: clamp(62px, 7.5vw, 120px);
  line-height: .82;
  letter-spacing: -.075em;
}

.ai-curriculum-hero h1 i,
.ai-course-library h2 i {
  color: var(--ai-purple);
  font-style: normal;
}

.ai-curriculum-hero p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.45;
}

.ai-curriculum-hero button {
  min-height: 54px;
  margin-top: 34px;
  padding: 0 25px;
  border: 0;
  border-radius: 999px;
  background: var(--ai-purple);
  color: #fff;
  font-weight: 850;
}

.ai-curriculum-hero > aside {
  position: relative;
  min-height: 680px;
}

.ai-curriculum-hero .teacher-cutout {
  position: absolute;
  right: -2%;
  bottom: -2%;
  z-index: 2;
  width: 104%;
  height: 98%;
  object-fit: contain;
  object-position: bottom;
}
.ai-curriculum-hero .goodie-companion {
  position: absolute;
  right: 1%;
  bottom: 3%;
  z-index: 3;
  width: 210px;
  height: 210px;
}

.ai-course-library {
  width: min(100%, 1450px);
  margin: 80px auto 0;
}

.ai-course-library > header {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 35px;
  align-items: end;
}

.ai-course-library h2 {
  margin: 14px 0 0;
  font-size: clamp(55px, 7vw, 102px);
  line-height: .82;
  letter-spacing: -.07em;
}

.ai-course-library > header p {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}

.ai-course-card {
  display: grid;
  grid-template-columns: 110px 1fr 55px;
  gap: 28px;
  align-items: center;
  width: 100%;
  min-height: 250px;
  margin-top: 34px;
  padding: clamp(30px, 5vw, 68px);
  border: 0;
  border-radius: 54px;
  background: var(--ai-purple);
  color: #fff;
  text-align: left;
}

.ai-course-card > span {
  color: var(--ai-yellow);
  font: 900 clamp(58px, 7vw, 96px)/.8 var(--font-display);
}

.ai-course-card small {
  color: var(--ai-yellow);
  font-weight: 900;
  letter-spacing: .12em;
}

.ai-course-card strong {
  display: block;
  margin: 10px 0 9px;
  font: 900 clamp(36px, 4.5vw, 68px)/.9 var(--font-display);
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.ai-course-card p {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.ai-course-card em {
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.ai-course-card > b {
  font-size: 44px;
}

/* Locked AI interaction grammar: one physical apparatus, one learner action,
   one changed variable and evidence attached to the observed object. */
.ai-physical-proof {
  display: grid;
  width: min(100%, 980px);
  min-width: 0;
  margin: 0 auto;
  gap: 16px;
  color: var(--ai-ink);
  font-family: var(--font-body);
}

.ai-physical-proof > figcaption {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.ai-physical-proof > figcaption span {
  padding: 7px 11px;
  border: 2px solid var(--ai-ink);
  border-radius: 999px;
  background: var(--ai-yellow);
  font: 950 10px/1 var(--font-body);
  letter-spacing: .1em;
}

.ai-physical-proof > figcaption strong {
  font: 900 clamp(16px, 1.7vw, 20px)/1.15 var(--font-display);
}

.ai-hands-on__toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ai-tool-apparatus__scene {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 3px solid var(--ai-ink);
  border-radius: 32px;
  background:
    linear-gradient(180deg, #fffaf4 0 73%, #e6c598 73% 76%, #c9965b 76% 100%);
  box-shadow: inset 0 -16px 0 rgba(88, 51, 25, .09);
}

.ai-tool-apparatus__bench {
  position: absolute;
  inset: auto 0 73px;
  height: 10px;
  border-block: 3px solid var(--ai-ink);
  background: #f2d2a4;
  box-shadow: 0 12px 0 rgba(72, 43, 24, .12);
}

.ai-tool-apparatus__idea,
.ai-tool-apparatus__tool,
.ai-tool-apparatus__result {
  position: absolute;
  bottom: 82px;
  margin: 0;
}

.ai-tool-apparatus__idea {
  z-index: 2;
  left: 4%;
  width: 25%;
  transition: transform .36s cubic-bezier(.2, .85, .25, 1);
}

.ai-tool-apparatus__idea > span,
.ai-tool-apparatus__result-card > span,
.ai-tool-apparatus__tool > span {
  display: block;
  font: 950 10px/1 var(--font-body);
  letter-spacing: .08em;
  text-align: center;
}

.ai-tool-apparatus__idea > span {
  width: max-content;
  margin: 0 auto -4px;
  padding: 7px 12px 10px;
  border: 2px solid var(--ai-ink);
  border-radius: 12px 12px 0 0;
  background: var(--ai-blue);
  color: #fff;
}

.ai-tool-apparatus__idea-card {
  min-height: 206px;
  padding: 15px;
  border: 3px solid var(--ai-ink);
  border-radius: 17px;
  background: #fff;
  box-shadow: 8px 10px 0 rgba(47, 115, 217, .24);
  transform: rotate(-2deg);
}

.ai-tool-apparatus__idea-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.ai-tool-apparatus__idea-card svg :not(.is-cutout) {
  fill: var(--ai-coral);
  stroke: var(--ai-ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-tool-apparatus__idea-card svg .is-moon circle,
.ai-tool-apparatus__idea-card svg .is-key { fill: var(--ai-yellow); }
.ai-tool-apparatus__idea-card svg .is-cutout { fill: #fff; stroke: none; }
.ai-tool-apparatus__idea-card svg .is-eye,
.ai-tool-apparatus__idea-card svg .is-mouth { fill: none; stroke-width: 5; }

.ai-tool-apparatus__idea-card strong {
  display: block;
  margin-top: 3px;
  font: 900 clamp(11px, 1.25vw, 15px)/1.2 var(--font-body);
  text-align: center;
}

.ai-tool-apparatus__tool {
  z-index: 4;
  left: 35%;
  width: 30%;
  min-height: 252px;
  padding-top: 29px;
  border: 3px solid var(--ai-ink);
  border-radius: 34px 34px 24px 24px;
  background: linear-gradient(135deg, #ad89f3, var(--ai-purple));
  box-shadow: inset -14px -12px 0 rgba(68, 39, 125, .16), 9px 12px 0 rgba(68, 39, 125, .18);
}

.ai-tool-apparatus__tool > span {
  position: absolute;
  top: -18px;
  left: 50%;
  width: max-content;
  padding: 10px 16px;
  border: 3px solid var(--ai-ink);
  border-radius: 999px;
  background: var(--ai-accent);
  transform: translateX(-50%);
}

.ai-tool-apparatus__slot {
  position: absolute;
  top: 55px;
  left: -10px;
  width: 38px;
  height: 112px;
  border: 3px solid var(--ai-ink);
  border-radius: 14px 5px 5px 14px;
  background: #5d3f99;
  box-shadow: inset 8px 0 0 rgba(0, 0, 0, .18);
}

.ai-tool-apparatus__slot i {
  position: absolute;
  inset: 14px 8px;
  border-radius: 999px;
  background: #2c2440;
}

.ai-tool-apparatus__body {
  display: grid;
  width: 118px;
  height: 118px;
  margin: 43px auto 0;
  place-items: center;
  border: 3px solid var(--ai-ink);
  border-radius: 50%;
  background: var(--ai-yellow);
  box-shadow: inset -9px -8px 0 rgba(121, 89, 0, .16);
}

.ai-tool-apparatus__body i {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--ai-ink);
  border-radius: 50%;
  background: #fff;
}

.ai-tool-apparatus__body i:first-child { transform: translate(-26px, -14px); }
.ai-tool-apparatus__body i:nth-child(2) { transform: translate(26px, -14px); }
.ai-tool-apparatus__body b {
  width: 47px;
  height: 24px;
  margin-top: 31px;
  border: 3px solid var(--ai-ink);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  background: #fff;
}

.ai-tool-apparatus__tray {
  position: absolute;
  right: -43px;
  bottom: 22px;
  width: 62px;
  height: 132px;
  border: 3px solid var(--ai-ink);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background: #7650c7;
}

.ai-tool-apparatus__result {
  z-index: 5;
  right: 3.5%;
  width: 27%;
  opacity: 0;
  transform: translateX(-34%) scale(.84);
  transform-origin: left center;
  transition: opacity .28s ease-out, transform .36s cubic-bezier(.2, .85, .25, 1);
}

.ai-tool-apparatus__result-card {
  position: relative;
  min-height: 218px;
  padding: 16px 15px 38px;
  border: 3px solid var(--ai-ink);
  border-radius: 17px;
  background: #fff9cf;
  box-shadow: 8px 10px 0 rgba(246, 204, 36, .32);
  transform: rotate(1.5deg);
}

.ai-tool-apparatus__result-card > span {
  margin-bottom: 10px;
  color: #745c00;
}

.ai-tool-apparatus__result-card ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 7px;
  list-style: none;
}

.ai-tool-apparatus__result-card li {
  display: grid;
  grid-template-columns: 23px 1fr;
  align-items: center;
  gap: 7px;
  text-align: left;
}

.ai-tool-apparatus__result-card li i {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 2px solid var(--ai-ink);
  border-radius: 8px;
  background: var(--ai-coral);
  font-style: normal;
  font-size: 10px;
  font-weight: 950;
}

.ai-tool-apparatus__result-card li b {
  font-size: clamp(9px, 1vw, 12px);
  line-height: 1.12;
}

.ai-tool-apparatus__result-card > strong {
  position: absolute;
  right: 12px;
  bottom: -11px;
  padding: 8px 12px;
  border: 3px solid var(--ai-ink);
  border-radius: 8px;
  background: var(--ai-green);
  box-shadow: 4px 4px 0 rgba(15, 188, 83, .23);
  font: 950 10px/1 var(--font-body);
  transform: rotate(-3deg);
}

.ai-hands-on__toggle:checked ~ .ai-tool-apparatus__scene .ai-tool-apparatus__idea {
  transform: translateX(72%) scale(.83) rotate(1deg);
}

.ai-hands-on__toggle:checked ~ .ai-tool-apparatus__scene .ai-tool-apparatus__result {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.ai-hands-on__control {
  display: grid;
  grid-template-columns: 1fr 38px;
  width: min(100%, 370px);
  min-height: 58px;
  margin: 0 auto;
  padding: 9px 10px 9px 18px;
  align-items: center;
  border: 3px solid var(--ai-ink);
  border-radius: 18px;
  background: var(--ai-blue);
  box-shadow: 0 6px 0 #1e4d96;
  color: #fff;
  cursor: pointer;
  font: 900 14px/1.15 var(--font-display);
  text-align: left;
}

.ai-hands-on__control b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  color: var(--ai-blue);
  font-size: 29px;
  transition: transform .28s ease-out;
}

.ai-hands-on__control:active { box-shadow: 0 2px 0 #1e4d96; transform: translateY(4px); }
.ai-hands-on__toggle:focus-visible ~ .ai-hands-on__control { outline: 4px solid var(--ai-ink); outline-offset: 4px; }
.ai-hands-on__control .is-after,
.ai-hands-on__reading .is-after { display: none; }
.ai-hands-on__toggle:checked ~ .ai-hands-on__control .is-before,
.ai-hands-on__toggle:checked ~ .ai-hands-on__reading .is-before { display: none; }
.ai-hands-on__toggle:checked ~ .ai-hands-on__control .is-after,
.ai-hands-on__toggle:checked ~ .ai-hands-on__reading .is-after { display: inline; }
.ai-hands-on__toggle:checked ~ .ai-hands-on__control b { transform: rotate(180deg); }

.ai-hands-on__reading {
  width: min(100%, 760px);
  min-height: 58px;
  margin: 0 auto;
  padding: 13px 16px;
  border-left: 7px solid var(--ai-green);
  border-radius: 0 15px 15px 0;
  background: var(--ai-green-soft);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 800;
  line-height: 1.35;
}

.ai-hands-on__scene {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 3px solid var(--ai-ink);
  border-radius: 32px;
  background: linear-gradient(180deg, #fffaf4 0 74%, #e6c598 74% 77%, #c9965b 77% 100%);
  box-shadow: inset 0 -16px 0 rgba(88, 51, 25, .09);
}

.ai-hands-on__scene :where(article, div, ol, ul, li, span, strong, b, i, em) { box-sizing: border-box; }
.ai-hands-on__scene :where(ol, ul) { margin: 0; padding: 0; list-style: none; }
.ai-hands-on__scene :where(article, li) { min-width: 0; }

.ai-proof-table {
  position: absolute;
  inset: auto 0 73px;
  height: 10px;
  border-block: 3px solid var(--ai-ink);
  background: #f2d2a4;
  box-shadow: 0 12px 0 rgba(72, 43, 24, .12);
}

.ai-proof-tag {
  z-index: 9;
  display: block;
  width: max-content;
  padding: 8px 11px;
  border: 3px solid var(--ai-ink);
  border-radius: 9px;
  box-shadow: 4px 4px 0 rgba(41, 39, 45, .14);
  color: var(--ai-ink);
  font: 950 9px/1 var(--font-body);
  font-style: normal;
  letter-spacing: .04em;
}

.ai-proof-tag.is-green { background: var(--ai-green); }
.ai-proof-tag.is-coral { background: var(--ai-coral); }
.ai-proof-tag.is-blue { background: var(--ai-blue); color: #fff; }

.ai-hands-on__scene .is-after-state {
  opacity: 0;
  transition: opacity .24s ease-out, transform .34s cubic-bezier(.2, .85, .25, 1);
}

.ai-hands-on__toggle:checked ~ .ai-hands-on__scene .is-before-state { opacity: 0; }
.ai-hands-on__toggle:checked ~ .ai-hands-on__scene .is-after-state { opacity: 1; }

/* 02 · Open the same physical calculation box. */
.ai-calculation-box {
  position: absolute;
  bottom: 82px;
  left: 17%;
  width: 58%;
  height: 225px;
  border: 3px solid var(--ai-ink);
  border-radius: 26px;
  background: linear-gradient(135deg, #b99cf5, var(--ai-purple));
  box-shadow: inset -13px -12px 0 rgba(68, 39, 125, .14), 9px 11px 0 rgba(68, 39, 125, .18);
}

.ai-calculation-box > span {
  position: absolute;
  top: -17px;
  left: 18px;
  padding: 9px 14px;
  border: 3px solid var(--ai-ink);
  border-radius: 999px;
  background: var(--ai-accent);
  font: 950 10px/1 var(--font-body);
}

.ai-calculation-box__inside {
  position: absolute;
  inset: 43px 35% 27px 28px;
  display: grid;
  align-content: center;
  gap: 16px;
  opacity: .12;
  transition: opacity .3s ease-out;
}

.ai-calculation-box__inside ol { display: flex; align-items: center; justify-content: center; gap: 7px; }
.ai-calculation-box__inside li {
  display: grid;
  min-width: 41px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--ai-ink);
  border-radius: 12px;
  background: var(--ai-yellow);
  box-shadow: inset 0 -6px 0 rgba(121, 89, 0, .14);
  font: 950 15px/1 var(--font-display);
}
.ai-calculation-box__inside li:nth-child(even) { min-width: 25px; border: 0; background: transparent; box-shadow: none; font-size: 23px; }
.ai-calculation-box__inside strong { text-align: center; font: 950 13px/1 var(--font-body); letter-spacing: .08em; }

.ai-calculation-box__lid {
  position: absolute;
  inset: 35px 34% 20px 20px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ai-ink);
  border-radius: 20px;
  background: #7650c7;
  box-shadow: inset -10px -8px 0 rgba(48, 26, 95, .18);
  transform-origin: top center;
  transition: transform .42s cubic-bezier(.2, .8, .2, 1), opacity .25s ease-out;
}
.ai-calculation-box__lid i { width: 78px; height: 16px; border: 3px solid var(--ai-ink); border-radius: 999px; background: #3d2b65; }
.ai-calculation-box__lid b { position: absolute; bottom: 28px; color: #fff; font: 950 10px/1 var(--font-body); letter-spacing: .1em; }

.ai-calculation-box__paper {
  position: absolute;
  top: 40px;
  right: -33%;
  width: 39%;
  min-height: 150px;
  padding: 22px 16px;
  border: 3px solid var(--ai-ink);
  border-radius: 16px;
  background: #fff9cf;
  box-shadow: 7px 8px 0 rgba(246, 204, 36, .28);
  transform: rotate(2deg);
}
.ai-calculation-box__paper span { display: block; color: #745c00; font: 950 9px/1 var(--font-body); letter-spacing: .07em; }
.ai-calculation-box__paper strong { display: block; margin-top: 18px; font: 900 clamp(12px, 1.5vw, 17px)/1.25 var(--font-body); }
.ai-calculation-box > .ai-proof-tag { position: absolute; right: -32%; bottom: 5px; }
.ai-hands-on__toggle:checked ~ .ai-calculation-scene .ai-calculation-box__lid { opacity: .16; transform: translateY(-86px) rotate(-7deg) scale(.88); }
.ai-hands-on__toggle:checked ~ .ai-calculation-scene .ai-calculation-box__inside { opacity: 1; }

/* 03 · A single carrier moves four concrete input cards. */
.ai-input-carrier {
  z-index: 3;
  position: absolute;
  bottom: 84px;
  left: 5%;
  width: 47%;
  min-height: 215px;
  padding: 16px;
  border: 3px solid var(--ai-ink);
  border-radius: 22px;
  background: #dceaff;
  box-shadow: 9px 10px 0 rgba(47, 115, 217, .2);
  transition: transform .4s cubic-bezier(.2, .85, .25, 1);
}
.ai-input-carrier > span { display: block; margin-bottom: 15px; color: #174a97; font: 950 10px/1 var(--font-body); letter-spacing: .08em; text-align: center; }
.ai-input-carrier ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.ai-input-carrier li { display: grid; min-height: 142px; padding: 10px 4px; place-items: center; border: 3px solid var(--ai-ink); border-radius: 14px; background: #fff; }
.ai-input-carrier li i { font: 950 clamp(17px, 2.3vw, 27px)/1 var(--font-display); font-style: normal; }
.ai-input-carrier li b { align-self: end; font: 950 8px/1 var(--font-body); }
.ai-input-carrier li:nth-child(1) { border-bottom-color: var(--ai-blue); }
.ai-input-carrier li:nth-child(2) { border-bottom-color: var(--ai-coral); }
.ai-input-carrier li:nth-child(3) { border-bottom-color: var(--ai-green); }
.ai-input-carrier li:nth-child(4) { border-bottom-color: var(--ai-yellow); }

.ai-input-tool {
  z-index: 4;
  position: absolute;
  right: 8%;
  bottom: 82px;
  width: 33%;
  height: 240px;
  border: 3px solid var(--ai-ink);
  border-radius: 32px 32px 22px 22px;
  background: linear-gradient(135deg, #ad89f3, var(--ai-purple));
  box-shadow: inset -13px -12px 0 rgba(68, 39, 125, .16), 9px 11px 0 rgba(68, 39, 125, .18);
}
.ai-input-tool > span { display: block; margin: 20px auto; text-align: center; font: 950 11px/1 var(--font-body); }
.ai-input-tool__door { z-index: 6; position: absolute; inset: 58px auto 34px -13px; width: 49px; border: 3px solid var(--ai-ink); border-radius: 14px; background: #5d3f99; }
.ai-input-tool__door i { position: absolute; inset: 14px 10px; border-radius: 999px; background: #2c2440; }
.ai-input-tool > .ai-proof-tag { position: absolute; right: 18px; bottom: 22px; }
.ai-hands-on__toggle:checked ~ .ai-input-scene .ai-input-carrier { z-index: 5; transform: translateX(63%) scale(.8); }

/* 04 · One selected task card is fixed in a real clamp. */
.ai-task-cards { position: absolute; bottom: 92px; left: 4%; display: grid; width: 19%; gap: 10px; }
.ai-task-cards li { padding: 16px 8px; border: 3px solid var(--ai-ink); border-radius: 13px; background: #fff; box-shadow: 5px 6px 0 rgba(41, 39, 45, .12); font: 900 9px/1.15 var(--font-body); text-align: center; transform: rotate(-2deg); }
.ai-task-cards li:last-child { background: #dceaff; transform: rotate(2deg); }
.ai-task-card {
  z-index: 4;
  position: absolute;
  top: 92px;
  left: 27%;
  width: 23%;
  min-height: 125px;
  padding: 18px 13px;
  border: 3px solid var(--ai-ink);
  border-radius: 16px;
  background: var(--ai-yellow-soft);
  box-shadow: 7px 8px 0 rgba(246, 204, 36, .27);
  text-align: center;
  transition: transform .38s cubic-bezier(.2, .85, .25, 1);
}
.ai-task-card span { display: block; margin-bottom: 16px; color: #745c00; font: 950 8px/1 var(--font-body); letter-spacing: .06em; }
.ai-task-card strong { font: 950 clamp(11px, 1.3vw, 15px)/1.2 var(--font-display); }
.ai-task-clamp { position: absolute; bottom: 82px; left: 47%; width: 25%; height: 235px; border: 3px solid var(--ai-ink); border-radius: 29px; background: var(--ai-purple); box-shadow: inset -11px -10px 0 rgba(52, 28, 103, .15), 8px 10px 0 rgba(52, 28, 103, .16); }
.ai-task-clamp > span { display: block; margin-top: 18px; font: 950 10px/1 var(--font-body); text-align: center; }
.ai-task-clamp > div { position: absolute; inset: 58px 22px 32px; border: 3px solid var(--ai-ink); border-radius: 17px; background: #5d3f99; }
.ai-task-clamp > div i { position: absolute; top: 18px; left: 50%; width: 68%; height: 20px; border: 3px solid var(--ai-ink); border-radius: 999px; background: #2c2440; transform: translateX(-50%); }
.ai-task-clamp > div b { position: absolute; inset: 55px 16px 18px; border: 3px dashed #fff; border-radius: 10px; }
.ai-task-clamp > .ai-proof-tag { position: absolute; right: -13px; bottom: 13px; }
.ai-task-result { position: absolute; right: 4%; bottom: 105px; width: 19%; min-height: 122px; padding: 18px 12px; border: 3px solid var(--ai-ink); border-radius: 15px; background: #fff9cf; box-shadow: 7px 8px 0 rgba(246, 204, 36, .26); }
.ai-task-result span { display: block; color: #745c00; font: 950 8px/1 var(--font-body); }
.ai-task-result b { display: block; margin-top: 18px; font-size: 12px; }
.ai-hands-on__toggle:checked ~ .ai-task-scene .ai-task-card { transform: translate(99%, 79px) scale(.72) rotate(1deg); }

/* 05 · The same tool exposes a physical output drawer. */
.ai-output-input { position: absolute; bottom: 106px; left: 5%; width: 27%; min-height: 150px; padding: 20px 14px; border: 3px solid var(--ai-ink); border-radius: 16px; background: #dceaff; box-shadow: 7px 8px 0 rgba(47, 115, 217, .22); transform: rotate(-2deg); }
.ai-output-input span { display: block; color: #174a97; font: 950 9px/1 var(--font-body); letter-spacing: .08em; }
.ai-output-input strong { display: block; margin-top: 22px; font: 900 clamp(11px, 1.35vw, 15px)/1.3 var(--font-body); }
.ai-output-tool { position: absolute; bottom: 82px; left: 38%; width: 32%; height: 245px; border: 3px solid var(--ai-ink); border-radius: 31px; background: var(--ai-purple); box-shadow: inset -12px -10px 0 rgba(52, 28, 103, .16), 8px 10px 0 rgba(52, 28, 103, .17); }
.ai-output-tool > span { display: block; margin-top: 18px; font: 950 10px/1 var(--font-body); text-align: center; }
.ai-output-tool__slot { position: absolute; top: 68px; left: -13px; width: 48px; height: 112px; border: 3px solid var(--ai-ink); border-radius: 14px; background: #3d2b65; }
.ai-output-tool__drawer { z-index: 5; position: absolute; right: 15px; bottom: 25px; width: 84%; height: 147px; border: 3px solid var(--ai-ink); border-radius: 16px; background: #7650c7; box-shadow: inset -8px -7px 0 rgba(52, 28, 103, .17); transition: transform .38s cubic-bezier(.2, .85, .25, 1); }
.ai-output-tool__drawer > div { position: absolute; inset: 12px; padding: 13px; border: 3px solid var(--ai-ink); border-radius: 12px; background: #fff9cf; opacity: 0; transition: opacity .26s ease-out; }
.ai-output-tool__drawer span { display: block; color: #745c00; font: 950 9px/1 var(--font-body); letter-spacing: .08em; }
.ai-output-tool__drawer b { display: block; margin-top: 10px; font-size: 11px; line-height: 1.18; }
.ai-output-scene > .ai-proof-tag { position: absolute; right: 3%; bottom: 105px; }
.ai-hands-on__toggle:checked ~ .ai-output-scene .ai-output-tool__drawer { transform: translateX(89%); }
.ai-hands-on__toggle:checked ~ .ai-output-scene .ai-output-tool__drawer > div { opacity: 1; }

/* 06 · A hinged lens touches the original photo and attaches its label. */
.ai-recognition-photo { position: absolute; bottom: 82px; left: 27%; width: 42%; height: 252px; padding: 18px; border: 3px solid var(--ai-ink); border-radius: 20px; background: #fff; box-shadow: 9px 10px 0 rgba(47, 115, 217, .2); text-align: center; }
.ai-recognition-photo > span { display: block; color: #174a97; font: 950 9px/1 var(--font-body); letter-spacing: .08em; }
.ai-cat-sketch { display: block; width: 62%; max-height: 170px; margin: 2px auto -5px; }
.ai-cat-sketch path:first-child { fill: var(--ai-coral); stroke: var(--ai-ink); stroke-width: 5; stroke-linejoin: round; }
.ai-cat-sketch circle { fill: var(--ai-ink); }
.ai-cat-sketch path:last-child { fill: none; stroke: var(--ai-ink); stroke-width: 4; stroke-linecap: round; }
.ai-recognition-photo > b { font: 900 9px/1 var(--font-body); }
.ai-recognition-photo > .ai-proof-tag { position: absolute; right: -22px; bottom: 18px; }
.ai-recognition-lens { z-index: 5; position: absolute; top: -32px; left: 34%; width: 31%; height: 245px; border: 9px solid var(--ai-blue); border-radius: 50%; background: rgba(220, 234, 255, .25); box-shadow: inset 0 0 0 4px var(--ai-ink), 7px 8px 0 rgba(47, 115, 217, .2); transition: transform .42s cubic-bezier(.2, .85, .25, 1); }
.ai-recognition-lens > i { position: absolute; right: -34px; bottom: -88px; width: 42px; height: 112px; border: 4px solid var(--ai-ink); border-radius: 999px; background: var(--ai-blue); transform: rotate(-25deg); }
.ai-recognition-lens > div { position: absolute; inset: 0; }
.ai-recognition-lens span { position: absolute; padding: 5px 7px; border: 2px solid var(--ai-ink); border-radius: 999px; background: var(--ai-yellow); font: 950 7px/1 var(--font-body); opacity: 0; }
.ai-recognition-lens span:first-child { top: 45px; left: 18px; }
.ai-recognition-lens span:last-child { right: 5px; bottom: 42px; }
.ai-hands-on__toggle:checked ~ .ai-recognition-scene .ai-recognition-lens { transform: translateY(105px) scale(.77); }
.ai-hands-on__toggle:checked ~ .ai-recognition-scene .ai-recognition-lens span { opacity: 1; }

/* 07 · The route is constant; only the weather card changes. */
.ai-route-board { position: absolute; bottom: 84px; left: 5%; width: 59%; height: 240px; padding: 18px; border: 3px solid var(--ai-ink); border-radius: 23px; background: #dff7e7; box-shadow: 8px 10px 0 rgba(15, 188, 83, .18); }
.ai-route-board > span { display: block; color: #087b36; font: 950 9px/1 var(--font-body); letter-spacing: .08em; }
.ai-route-board__road { position: absolute; inset: 73px 25px 28px; border: 17px solid #fff; border-radius: 50% 30% 45% 35%; box-shadow: 0 0 0 3px var(--ai-ink); }
.ai-route-board__road i { position: absolute; width: 15px; height: 15px; border: 2px solid var(--ai-ink); border-radius: 50%; background: var(--ai-coral); }
.ai-route-board__road i:first-child { top: -7px; left: -7px; }
.ai-route-board__road i:nth-child(2) { top: 43%; left: 47%; }
.ai-route-board__road i:nth-child(3) { right: -7px; bottom: -7px; background: var(--ai-blue); }
.ai-route-board__road b { position: absolute; font: 950 7px/1 var(--font-body); }
.ai-route-board__road b:nth-of-type(1) { top: -32px; left: -16px; }
.ai-route-board__road b:nth-of-type(2) { right: -20px; bottom: -31px; }
.ai-weather-card { position: absolute; top: 17px; right: 17px; display: grid; grid-template-columns: 34px 1fr; align-items: center; width: 112px; height: 48px; padding: 5px 8px; border: 3px solid var(--ai-ink); border-radius: 13px; background: var(--ai-yellow); box-shadow: 4px 5px 0 rgba(41, 39, 45, .13); }
.ai-weather-card span { grid-row: 1; grid-column: 1; font-size: 26px; font-style: normal; line-height: 1; }
.ai-weather-card b { grid-row: 1; grid-column: 2; font: 950 9px/1 var(--font-body); }
.ai-time-gauge { position: absolute; right: 5%; bottom: 82px; width: 27%; height: 240px; padding: 18px; border: 3px solid var(--ai-ink); border-radius: 26px; background: var(--ai-purple-soft); box-shadow: 8px 10px 0 rgba(146, 103, 234, .2); text-align: center; }
.ai-time-gauge > span { display: block; color: #5d3f99; font: 950 9px/1 var(--font-body); letter-spacing: .07em; }
.ai-time-gauge > div { position: relative; display: grid; width: 134px; height: 134px; margin: 16px auto 9px; place-items: center; border: 4px solid var(--ai-ink); border-radius: 50%; background: #fff; }
.ai-time-gauge > div i { position: absolute; bottom: 50%; left: calc(50% - 3px); width: 6px; height: 47px; border-radius: 999px; background: var(--ai-coral); transform: rotate(-34deg); transform-origin: bottom center; transition: transform .34s ease-out; }
.ai-time-gauge > div b { grid-area: 1/1; margin-top: 22px; font: 950 31px/1 var(--font-display); }
.ai-time-gauge > div small { align-self: end; margin-bottom: 19px; font: 950 8px/1 var(--font-body); }
.ai-time-gauge > strong { font: 950 8px/1 var(--font-body); }
.ai-hands-on__toggle:checked ~ .ai-prediction-scene .ai-time-gauge > div i { transform: rotate(38deg); }
.ai-hands-on__toggle:checked ~ .ai-prediction-scene .ai-weather-card { background: #dceaff; }

/* 08 · A lever presses three physical idea blocks into one story strip. */
.ai-story-blocks { position: absolute; top: 67px; left: 4%; display: grid; width: 24%; gap: 10px; }
.ai-story-blocks li { padding: 17px 10px; border: 3px solid var(--ai-ink); border-radius: 13px; box-shadow: 5px 6px 0 rgba(41, 39, 45, .13); font: 950 10px/1 var(--font-body); text-align: center; transform: rotate(-2deg); }
.ai-story-blocks li:nth-child(1) { background: var(--ai-coral); }
.ai-story-blocks li:nth-child(2) { background: var(--ai-yellow); transform: rotate(2deg); }
.ai-story-blocks li:nth-child(3) { background: #dceaff; }
.ai-story-press { position: absolute; bottom: 82px; left: 34%; width: 32%; height: 240px; border: 3px solid var(--ai-ink); border-radius: 29px; background: var(--ai-purple); box-shadow: inset -11px -10px 0 rgba(52, 28, 103, .16), 8px 10px 0 rgba(52, 28, 103, .17); }
.ai-story-press > span { display: block; margin-top: 19px; font: 950 10px/1 var(--font-body); text-align: center; }
.ai-story-press__handle { position: absolute; top: -58px; left: 50%; width: 16px; height: 87px; border: 3px solid var(--ai-ink); border-radius: 999px; background: var(--ai-coral); transform: rotate(-44deg); transform-origin: bottom center; transition: transform .34s ease-out; }
.ai-story-press__handle i { position: absolute; top: -17px; left: -11px; width: 34px; height: 34px; border: 3px solid var(--ai-ink); border-radius: 50%; background: var(--ai-yellow); }
.ai-story-press__rollers { position: absolute; inset: 70px 28px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.ai-story-press__rollers i { border: 3px solid var(--ai-ink); border-radius: 999px; background: #7650c7; box-shadow: inset -7px -5px 0 rgba(52, 28, 103, .18); }
.ai-story-ribbon { z-index: 6; position: absolute; top: 86px; left: 58%; width: 128%; min-height: 133px; padding: 17px 16px; border: 3px solid var(--ai-ink); border-radius: 15px; background: #fff9cf; box-shadow: 7px 8px 0 rgba(246, 204, 36, .27); opacity: 0; transform: translateX(-62%) scale(.76); transition: opacity .25s ease-out, transform .4s cubic-bezier(.2, .85, .25, 1); }
.ai-story-ribbon span { display: block; color: #745c00; font: 950 8px/1 var(--font-body); letter-spacing: .06em; }
.ai-story-ribbon b { display: block; margin-top: 13px; font-size: 11px; line-height: 1.23; }
.ai-hands-on__toggle:checked ~ .ai-generation-scene .ai-story-press__handle { transform: rotate(18deg); }
.ai-hands-on__toggle:checked ~ .ai-generation-scene .ai-story-ribbon { opacity: 1; transform: translateX(0) scale(1); }

/* 09 · A trusted physical book corrects the answer card in place. */
.ai-answer-card { position: absolute; bottom: 92px; left: 5%; width: 35%; min-height: 205px; padding: 22px 17px; border: 3px solid var(--ai-ink); border-radius: 18px; background: #fff9cf; box-shadow: 8px 9px 0 rgba(246, 204, 36, .28); transform: rotate(-2deg); }
.ai-answer-card > span { display: block; color: #745c00; font: 950 9px/1 var(--font-body); letter-spacing: .07em; }
.ai-answer-card > b { display: block; margin-top: 31px; font-size: 15px; }
.ai-answer-card > strong { display: block; margin-top: 7px; font: 950 clamp(25px, 3vw, 38px)/1 var(--font-display); }
.ai-answer-card > .ai-proof-tag { position: absolute; right: 12px; bottom: 13px; }
.ai-fact-book { position: absolute; right: 5%; bottom: 82px; width: 49%; height: 240px; perspective: 900px; }
.ai-fact-book__pages { position: absolute; inset: 0; padding: 23px; border: 3px solid var(--ai-ink); border-radius: 17px 27px 27px 17px; background: #fff; box-shadow: 8px 10px 0 rgba(47, 115, 217, .2); text-align: center; }
.ai-fact-book__pages > span { display: block; color: #174a97; font: 950 9px/1 var(--font-body); letter-spacing: .08em; }
.ai-fact-book__pages > b { display: block; margin: 17px 0 5px; font: 950 19px/1 var(--font-display); }
.ai-fact-book__pages > div { display: flex; justify-content: center; gap: 21px; }
.ai-fact-book__pages > div i { width: 54px; height: 54px; border: 3px solid var(--ai-ink); border-radius: 50%; background: var(--ai-yellow); }
.ai-fact-book__pages > strong { display: block; margin-top: 9px; font: 950 12px/1 var(--font-body); }
.ai-fact-book__cover { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 25px; border: 3px solid var(--ai-ink); border-radius: 17px 27px 27px 17px; background: var(--ai-blue); box-shadow: inset -13px -11px 0 rgba(20, 65, 133, .17); color: #fff; transform-origin: left center; transition: transform .46s cubic-bezier(.2, .8, .2, 1); }
.ai-fact-book__cover span { font: 950 12px/1 var(--font-body); letter-spacing: .07em; }
.ai-fact-book__cover b { display: grid; width: 72px; height: 72px; place-items: center; border: 4px solid #fff; border-radius: 50%; font: 950 36px/1 var(--font-display); }
.ai-hands-on__toggle:checked ~ .ai-truth-scene .ai-fact-book__cover { opacity: .12; transform: rotateY(108deg); }

/* 10 · One hinged frame joins four prompt pieces without a flow diagram. */
.ai-prompt-board { position: absolute; inset: 43px 9% 83px; padding: 20px; border: 3px solid var(--ai-ink); border-radius: 24px; background: #f3eefe; box-shadow: 8px 9px 0 rgba(146, 103, 234, .19); }
.ai-prompt-board ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 100%; gap: 12px; }
.ai-prompt-board li { display: grid; align-content: center; padding: 14px 10px; border: 3px solid var(--ai-ink); border-radius: 14px; background: #fff; box-shadow: 4px 5px 0 rgba(41, 39, 45, .11); text-align: center; }
.ai-prompt-board li:nth-child(1) { border-top-color: var(--ai-blue); }
.ai-prompt-board li:nth-child(2) { border-top-color: var(--ai-coral); }
.ai-prompt-board li:nth-child(3) { border-top-color: var(--ai-yellow); }
.ai-prompt-board li:nth-child(4) { border-top-color: var(--ai-green); }
.ai-prompt-board li span { font: 950 9px/1 var(--font-body); letter-spacing: .07em; }
.ai-prompt-board li b { display: block; margin-top: 17px; font-size: 11px; line-height: 1.2; }
.ai-prompt-frame { z-index: 5; position: absolute; inset: -128px 10px 10px; border: 10px solid var(--ai-purple); border-radius: 20px; box-shadow: 0 0 0 4px var(--ai-ink), 7px 8px 0 rgba(146, 103, 234, .19); transition: transform .42s cubic-bezier(.2, .85, .25, 1); }
.ai-prompt-frame i { position: absolute; top: -47px; left: 50%; width: 110px; height: 39px; border: 4px solid var(--ai-ink); border-radius: 999px 999px 0 0; border-bottom: 0; transform: translateX(-50%); }
.ai-prompt-frame strong { position: absolute; right: 13px; bottom: -18px; padding: 9px 12px; border: 3px solid var(--ai-ink); border-radius: 9px; background: var(--ai-green); font: 950 9px/1 var(--font-body); opacity: 0; }
.ai-hands-on__toggle:checked ~ .ai-prompt-scene .ai-prompt-frame { transform: translateY(128px); }
.ai-hands-on__toggle:checked ~ .ai-prompt-scene .ai-prompt-frame strong { opacity: 1; }

/* 11 · A transparent checking plate lands on the result itself. */
.ai-test-paper { position: absolute; bottom: 82px; left: 27%; width: 45%; height: 250px; padding: 22px; border: 3px solid var(--ai-ink); border-radius: 18px; background: #fff9cf; box-shadow: 8px 10px 0 rgba(246, 204, 36, .26); }
.ai-test-paper > span { display: block; color: #745c00; font: 950 9px/1 var(--font-body); letter-spacing: .08em; }
.ai-test-paper > strong { display: block; margin: 17px 0; font: 950 17px/1 var(--font-display); }
.ai-test-paper li { margin-block: 7px; padding-bottom: 5px; border-bottom: 2px solid rgba(41, 39, 45, .18); font-size: 11px; }
.ai-test-paper > b { display: block; margin-top: 12px; font-size: 11px; }
.ai-test-overlay { z-index: 6; position: absolute; top: -208px; left: 30%; width: 40%; height: 235px; padding: 19px; border: 8px solid var(--ai-blue); border-radius: 19px; background: rgba(220, 234, 255, .88); box-shadow: 0 0 0 3px var(--ai-ink), 7px 8px 0 rgba(47, 115, 217, .2); transition: transform .42s cubic-bezier(.2, .85, .25, 1); }
.ai-test-overlay > span { display: block; color: #174a97; font: 950 9px/1 var(--font-body); letter-spacing: .07em; }
.ai-test-overlay ol { display: grid; margin-top: 19px; gap: 10px; }
.ai-test-overlay li { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; }
.ai-test-overlay li i { display: grid; width: 28px; height: 28px; place-items: center; border: 2px solid var(--ai-ink); border-radius: 8px; background: var(--ai-green); font-style: normal; font-weight: 950; }
.ai-test-overlay li.is-missing i { background: var(--ai-coral); }
.ai-test-overlay li b { font: 950 10px/1 var(--font-body); }
.ai-test-overlay > .ai-proof-tag { position: absolute; right: -14px; bottom: -16px; }
.ai-hands-on__toggle:checked ~ .ai-test-scene .ai-test-overlay { transform: translateY(257px); }

/* 12 · One correction tile repairs the same sheet in place. */
.ai-repair-paper { position: absolute; bottom: 82px; left: 24%; width: 46%; height: 255px; padding: 19px; border: 3px solid var(--ai-ink); border-radius: 18px; background: #fff9cf; box-shadow: 8px 10px 0 rgba(246, 204, 36, .27); }
.ai-repair-paper > span { display: flex; gap: 5px; color: #745c00; font: 950 9px/1 var(--font-body); letter-spacing: .08em; }
.ai-repair-paper > span b { grid-area: 1/1; }
.ai-repair-paper > strong { display: block; margin: 14px 0; font: 950 16px/1 var(--font-display); }
.ai-repair-paper li { margin-block: 6px; padding-bottom: 4px; border-bottom: 2px solid rgba(41, 39, 45, .16); font-size: 10px; }
.ai-repair-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; opacity: 0; transform: translateY(16px); transition: opacity .26s ease-out, transform .34s ease-out; }
.ai-repair-choices b { padding: 8px 5px; border: 2px solid var(--ai-ink); border-radius: 9px; background: var(--ai-green-soft); font-size: 8px; text-align: center; }
.ai-repair-paper > .ai-proof-tag { position: absolute; right: -19px; bottom: 14px; }
.ai-repair-piece { z-index: 6; position: absolute; right: 5%; top: 98px; width: 20%; min-height: 150px; padding: 17px 11px; border: 3px solid var(--ai-ink); border-radius: 16px; background: var(--ai-green); box-shadow: 7px 8px 0 rgba(15, 188, 83, .23); text-align: center; transition: transform .42s cubic-bezier(.2, .85, .25, 1), opacity .25s ease-out; }
.ai-repair-piece span { display: block; font: 950 8px/1 var(--font-body); letter-spacing: .06em; }
.ai-repair-piece strong { display: block; margin-top: 21px; font: 950 clamp(11px, 1.3vw, 15px)/1.2 var(--font-display); }
.ai-hands-on__toggle:checked ~ .ai-repair-scene .ai-repair-piece { opacity: .16; transform: translate(-142%, 92px) scale(.64) rotate(-3deg); }
.ai-hands-on__toggle:checked ~ .ai-repair-scene .ai-repair-choices { opacity: 1; transform: translateY(0); }

/* Chemins du jugement humain: open 3D scenes, never a faux interface. */
.ai-path-proof {
  position: relative;
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--ai-ink);
  font-family: var(--font-body);
}

.ai-path-proof__scene {
  display: grid;
  width: 100%;
  min-height: 300px;
  place-items: center;
}

.ai-path-proof__scene img {
  display: block;
  width: 100%;
  max-width: 920px;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
}

.ai-path-proof figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 0 clamp(6px, 2vw, 24px);
  color: var(--ai-ink);
  text-align: center;
}

.ai-path-proof figcaption span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 4px solid currentcolor;
  color: var(--ai-ink);
  font: 900 11px/1.15 var(--font-body);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ai-path-proof figcaption span.is-input { border-color: var(--ai-blue); }
.ai-path-proof figcaption span.is-calculation { border-color: var(--ai-purple); }
.ai-path-proof figcaption span.is-output { border-color: var(--ai-yellow); }
.ai-path-proof figcaption span.is-check { border-color: var(--ai-green); }
.ai-path-proof figcaption span.is-warning { border-color: var(--ai-coral); }

.ai-path-proof figcaption span:not(:last-of-type)::after {
  margin-left: 18px;
  color: #77717d;
  content: '→';
}

.ai-path-proof figcaption > strong {
  flex-basis: 100%;
  margin-top: 3px;
  font: 900 11px/1.2 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ai-path-proof.is-retry figcaption > strong { color: #b84335; }
.ai-path-proof.is-complete figcaption > strong { color: #087b36; }

.kid-step-visual .ai-path-proof,
.kid-step-visual .ai-physical-proof,
.kid-lab-visual .ai-path-proof,
.kid-summary-example-visual .ai-path-proof,
.kid-summary-example-visual .ai-physical-proof {
  grid-column: 1 / -1;
  justify-self: stretch;
  height: 100%;
  align-content: center;
}

.kid-lab-visual .ai-path-proof__scene {
  min-height: 270px;
}

.kid-summary-example-visual .ai-path-proof__scene {
  min-height: 250px;
}

.kid-summary-example-visual .ai-path-proof__scene img {
  max-height: 390px;
}

.ai-guide-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  margin: 38px 0 0;
}

.ai-guide-proof img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.ai-guide-proof figcaption,
.ai-guide-proof__caption {
  display: grid;
  gap: 10px;
}

.ai-guide-proof figcaption strong,
.ai-guide-proof__caption strong {
  color: #087b36;
  font: 900 11px/1.2 var(--font-body);
  letter-spacing: .1em;
}

.ai-guide-proof figcaption span,
.ai-guide-proof__caption span {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.45;
}

.ai-guide-proof--interactive { grid-template-columns: minmax(0, 1.55fr) minmax(230px, .45fr); }
.ai-guide-proof__scene { min-width: 0; }
.ai-guide-proof__scene .ai-physical-proof { width: 100%; }
.ai-guide-proof__scene .ai-hands-on__scene { min-height: 360px; }

@media (max-width: 980px) {
  .ai-curriculum-hero {
    grid-template-columns: 1fr;
  }

  .ai-curriculum-hero > aside {
    min-height: 470px;
  }

  .ai-course-library > header {
    grid-template-columns: 1fr;
  }

  .ai-path-proof__scene img {
    max-height: 470px;
  }
}

@media (max-width: 820px) {
  .ai-curriculum-world {
    padding-inline: 15px;
  }

  .ai-curriculum-hero {
    min-height: 0;
    border-radius: 42px;
  }

  .ai-curriculum-hero > div {
    padding: 50px 28px 10px;
  }

  .ai-curriculum-hero h1 {
    font-size: clamp(50px, 15vw, 86px);
  }

  .ai-course-card {
    grid-template-columns: 75px 1fr;
    border-radius: 38px;
  }

  .ai-course-card > b {
    display: none;
  }

  .ai-path-proof__scene,
  .kid-lab-visual .ai-path-proof__scene,
  .kid-summary-example-visual .ai-path-proof__scene {
    min-height: 220px;
  }

  .ai-guide-proof {
    grid-template-columns: 1fr;
  }

  .ai-hands-on__scene { min-height: 360px; }
  .ai-tool-apparatus__scene { min-height: 360px; }
  .ai-tool-apparatus__idea-card { min-height: 182px; padding: 11px; }
  .ai-tool-apparatus__tool { min-height: 225px; }
  .ai-tool-apparatus__body { width: 98px; height: 98px; margin-top: 38px; }
  .ai-tool-apparatus__result-card { min-height: 196px; padding-inline: 11px; }
}

@media (max-width: 480px) {
  .ai-curriculum-world {
    padding: 14px 10px 70px;
  }

  .ai-curriculum-hero {
    border-radius: 30px;
  }

  .ai-curriculum-hero > div {
    padding: 38px 20px 0;
  }

  .ai-curriculum-hero h1 {
    margin-block: 16px;
    font-size: 50px;
  }

  .ai-curriculum-hero p {
    font-size: 16px;
  }

  .ai-curriculum-hero > aside {
    min-height: 370px;
  }
.ai-curriculum-hero .goodie-companion {
    width: 130px;
    height: 130px;
  }

  .ai-course-library {
    margin-top: 55px;
  }

  .ai-course-library h2 {
    font-size: 50px;
  }

  .ai-course-library > header p,
  .ai-course-card p {
    font-size: 16px;
  }

  .ai-course-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 22px;
    border-radius: 30px;
  }

  .ai-course-card > span {
    font-size: 55px;
  }

  .ai-course-card strong {
    font-size: 36px;
  }

  .ai-path-proof {
    gap: 10px;
  }

  .ai-path-proof__scene,
  .kid-lab-visual .ai-path-proof__scene,
  .kid-summary-example-visual .ai-path-proof__scene {
    min-height: 0;
  }

  .ai-path-proof__scene img {
    max-height: none;
  }

  .ai-path-proof figcaption {
    gap: 7px 12px;
    padding-inline: 0;
  }

  .ai-path-proof figcaption span {
    border-bottom-width: 3px;
    font-size: 9px;
  }

  .ai-path-proof figcaption span:not(:last-of-type)::after {
    margin-left: 12px;
  }

  .ai-physical-proof { gap: 12px; }
  .ai-physical-proof > figcaption strong { font-size: 15px; }
  .ai-hands-on__scene { min-height: 360px; border-radius: 24px; }
  .ai-proof-table { bottom: 40px; }
  .ai-proof-tag { padding: 7px 8px; font-size: 7px; }
  .ai-tool-apparatus__scene { min-height: 360px; border-radius: 24px; }
  .ai-tool-apparatus__bench { bottom: 40px; }
  .ai-tool-apparatus__idea,
  .ai-tool-apparatus__tool,
  .ai-tool-apparatus__result { bottom: 48px; }
  .ai-tool-apparatus__tool { left: 25%; width: 36%; min-height: 208px; }
  .ai-tool-apparatus__idea { top: 21px; bottom: auto; left: 5%; width: 34%; }
  .ai-tool-apparatus__idea-card { min-height: 145px; padding: 8px; }
  .ai-tool-apparatus__idea-card strong { font-size: 10px; }
  .ai-tool-apparatus__body { width: 90px; height: 90px; }
  .ai-tool-apparatus__tray { right: -31px; }
  .ai-tool-apparatus__result { right: 2%; width: 40%; }
  .ai-tool-apparatus__result-card { min-height: 180px; padding: 13px 9px 34px; }
  .ai-tool-apparatus__result-card li { grid-template-columns: 20px 1fr; gap: 5px; }
  .ai-tool-apparatus__result-card li i { width: 20px; height: 20px; }
  .ai-tool-apparatus__result-card li b { font-size: 8px; }
  .ai-tool-apparatus__result-card > strong { right: 5px; font-size: 8px; }
  .ai-hands-on__toggle:checked ~ .ai-tool-apparatus__scene .ai-tool-apparatus__idea {
    transform: translate(54%, 94px) scale(.6) rotate(2deg);
  }
  .ai-hands-on__control { width: calc(100% - 12px); font-size: 12px; }
  .ai-hands-on__reading { width: calc(100% - 12px); font-size: 12px; }

  .ai-calculation-box { bottom: 48px; left: 5%; width: 66%; height: 210px; }
  .ai-calculation-box__inside { inset: 43px 30% 22px 13px; }
  .ai-calculation-box__inside ol { gap: 3px; }
  .ai-calculation-box__inside li { min-width: 26px; height: 39px; font-size: 11px; }
  .ai-calculation-box__lid { inset: 35px 29% 18px 10px; }
  .ai-calculation-box__paper { top: 45px; right: -43%; width: 47%; min-height: 139px; padding: 15px 9px; }
  .ai-calculation-box__paper strong { font-size: 9px; }
  .ai-calculation-box > .ai-proof-tag { right: -42%; }

  .ai-input-carrier { bottom: 49px; left: 3%; width: 57%; min-height: 215px; padding: 10px; }
  .ai-input-carrier ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ai-input-carrier li { min-height: 76px; padding: 7px 3px; }
  .ai-input-carrier li i { font-size: 16px; }
  .ai-input-tool { right: 3%; bottom: 48px; width: 37%; height: 225px; }
  .ai-input-tool > .ai-proof-tag { right: 8px; }
  .ai-hands-on__toggle:checked ~ .ai-input-scene .ai-input-carrier { transform: translateX(50%) scale(.67); }

  .ai-task-cards { bottom: 58px; left: 2%; width: 18%; }
  .ai-task-cards li { padding: 11px 3px; font-size: 6px; }
  .ai-task-card { top: 67px; left: 20%; width: 27%; min-height: 112px; padding: 13px 7px; }
  .ai-task-card strong { font-size: 9px; }
  .ai-task-clamp { bottom: 48px; left: 45%; width: 31%; height: 220px; }
  .ai-task-clamp > div { inset-inline: 12px; }
  .ai-task-result { right: 2%; bottom: 71px; width: 22%; min-height: 105px; padding: 12px 7px; }
  .ai-task-result b { font-size: 8px; }
  .ai-hands-on__toggle:checked ~ .ai-task-scene .ai-task-card { transform: translate(83%, 75px) scale(.62) rotate(1deg); }

  .ai-output-input { bottom: 64px; left: 2%; width: 29%; min-height: 135px; padding: 14px 8px; }
  .ai-output-input strong { font-size: 9px; }
  .ai-output-tool { bottom: 48px; left: 32%; width: 36%; height: 220px; }
  .ai-output-tool__drawer { width: 82%; height: 136px; }
  .ai-output-tool__drawer > div { padding: 8px; }
  .ai-output-tool__drawer b { font-size: 8px; }
  .ai-output-scene > .ai-proof-tag { right: 1%; bottom: 63px; }

  .ai-recognition-photo { bottom: 48px; left: 18%; width: 63%; height: 235px; padding: 13px; }
  .ai-cat-sketch { width: 74%; }
  .ai-recognition-lens { top: -56px; left: 27%; width: 47%; height: 220px; }
  .ai-recognition-lens span { font-size: 6px; }
  .ai-hands-on__toggle:checked ~ .ai-recognition-scene .ai-recognition-lens { transform: translateY(114px) scale(.72); }

  .ai-route-board { bottom: 48px; left: 2%; width: 62%; height: 225px; padding: 12px; }
  .ai-route-board__road { inset: 72px 14px 27px; }
  .ai-weather-card { top: 12px; right: 9px; width: 88px; height: 43px; grid-template-columns: 28px 1fr; }
  .ai-weather-card span { font-size: 21px; }
  .ai-weather-card b { font-size: 7px; }
  .ai-time-gauge { right: 2%; bottom: 48px; width: 32%; height: 225px; padding: 12px 6px; }
  .ai-time-gauge > div { width: 88px; height: 88px; }
  .ai-time-gauge > div i { height: 32px; }
  .ai-time-gauge > div b { font-size: 23px; }
  .ai-time-gauge > div small { margin-bottom: 10px; }

  .ai-story-blocks { top: 69px; left: 2%; width: 25%; }
  .ai-story-blocks li { padding: 13px 4px; font-size: 8px; }
  .ai-story-press { bottom: 48px; left: 30%; width: 35%; height: 220px; }
  .ai-story-press__rollers { inset-inline: 14px; }
  .ai-story-ribbon { left: 52%; width: 137%; padding: 13px 10px; }
  .ai-story-ribbon b { font-size: 8px; }

  .ai-answer-card { bottom: 57px; left: 2%; width: 36%; min-height: 188px; padding: 17px 9px; }
  .ai-answer-card > b { margin-top: 25px; font-size: 11px; }
  .ai-answer-card > strong { font-size: 25px; }
  .ai-fact-book { right: 2%; bottom: 48px; width: 58%; height: 220px; }
  .ai-fact-book__pages { padding: 18px 10px; }
  .ai-fact-book__cover span { font-size: 9px; }

  .ai-prompt-board { inset: 30px 3% 49px; padding: 11px; }
  .ai-prompt-board ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ai-prompt-board li { padding: 8px 5px; }
  .ai-prompt-board li b { margin-top: 8px; font-size: 8px; }
  .ai-prompt-frame { inset: -151px 7px 7px; }
  .ai-hands-on__toggle:checked ~ .ai-prompt-scene .ai-prompt-frame { transform: translateY(151px); }

  .ai-test-paper { bottom: 48px; left: 17%; width: 66%; height: 235px; padding: 16px; }
  .ai-test-overlay { top: -210px; left: 21%; width: 58%; height: 220px; padding: 14px; }
  .ai-hands-on__toggle:checked ~ .ai-test-scene .ai-test-overlay { transform: translateY(244px); }

  .ai-repair-paper { bottom: 48px; left: 8%; width: 65%; height: 235px; padding: 14px; }
  .ai-repair-piece { right: 2%; top: 76px; width: 25%; min-height: 134px; padding: 12px 6px; }
  .ai-repair-piece strong { font-size: 9px; }
  .ai-repair-choices b { font-size: 6px; }
  .ai-hands-on__toggle:checked ~ .ai-repair-scene .ai-repair-piece { transform: translate(-91%, 89px) scale(.54) rotate(-3deg); }

  .ai-guide-proof figcaption span,
  .ai-guide-proof__caption span {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-curriculum-world *,
  .ai-path-proof *,
  .ai-physical-proof * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Miss Layla's physical AI workshop.
   This is the locked Sciences-quality direction: one generous work surface,
   one familiar apparatus, one learner-controlled change and a proof that stays
   on the object being observed. */
.ai-hands-on {
  --layla-ink: #29272d;
  --layla-paper: #fffdf7;
  --layla-purple: #9267ea;
  --layla-purple-deep: #6341b7;
  --layla-purple-soft: #f2ebff;
  --layla-blue: #2f73d9;
  --layla-blue-deep: #2059af;
  --layla-blue-soft: #e2efff;
  --layla-cyan: #2bb7c9;
  --layla-cyan-soft: #e0f8fb;
  --layla-coral: #fd7666;
  --layla-coral-deep: #cc5044;
  --layla-coral-soft: #ffe7e2;
  --layla-green: #0fbc53;
  --layla-green-soft: #e5f8eb;
  --layla-yellow: #f6cc24;
  --layla-yellow-soft: #fff5c8;
  --layla-wood: #c99f70;
  color: var(--layla-ink);
}

.ai-physical-proof.ai-hands-on {
  width: 100%;
  max-width: 980px;
  gap: 9px;
}

.ai-physical-proof.ai-hands-on > figcaption {
  display: block;
  width: min(100%, 880px);
  margin: 0 auto 2px;
  text-align: left;
}

.ai-physical-proof.ai-hands-on > figcaption span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--layla-purple-deep);
  font: 950 11px/1 var(--font-body);
  letter-spacing: .11em;
}

.ai-hands-on__body {
  position: relative;
  display: grid;
  width: min(100%, 880px);
  margin-inline: auto;
  gap: 16px;
}

.ai-hands-on__scene,
.ai-tool-apparatus__scene {
  position: relative;
  min-height: clamp(310px, 43vw, 405px);
  overflow: hidden;
  border: 0;
  border-radius: 42px 42px 26px 26px;
  background:
    radial-gradient(circle at 78% 17%, rgba(255,255,255,.88) 0 7%, transparent 7.4%),
    radial-gradient(circle at 19% 15%, rgba(255,255,255,.72) 0 5%, transparent 5.4%),
    linear-gradient(90deg, transparent 49.8%, rgba(68,47,30,.045) 50%, transparent 50.2%),
    linear-gradient(180deg, #f8f3e8 0 75%, #ead8b9 75% 81%, var(--layla-wood) 81% 100%);
  box-shadow: inset 0 -14px 0 rgba(91,56,29,.12), 0 18px 34px rgba(76,57,34,.13);
}

.ai-hands-on__scene::after {
  position: absolute;
  z-index: 0;
  right: 6%;
  bottom: 8%;
  left: 6%;
  height: 7%;
  border-radius: 50%;
  background: rgba(80,51,27,.12);
  filter: blur(12px);
  content: '';
}

.ai-hands-on__scene :where(article, ul, ol, div, p) { z-index: 2; }
.ai-hands-on__scene :where(span, strong, b) { font-family: var(--font-body); }

.ai-hands-on__control {
  display: flex;
  grid-template-columns: none;
  width: min(100%, 390px);
  min-height: 58px;
  margin-inline: auto;
  padding: 10px 20px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 22px;
  background: var(--layla-blue);
  box-shadow: 0 8px 0 var(--layla-blue-deep), 0 14px 24px rgba(47,115,217,.2);
  color: #fff;
  font: 950 16px/1.15 var(--font-body);
  text-align: center;
  transition: translate .16s ease, box-shadow .16s ease, background .2s ease;
}

.ai-hands-on__control:hover { translate: 0 -2px; box-shadow: 0 10px 0 var(--layla-blue-deep), 0 16px 26px rgba(47,115,217,.22); }
.ai-hands-on__control:active { translate: 0 5px; transform: none; box-shadow: 0 3px 0 var(--layla-blue-deep); }
.ai-hands-on__control b {
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 25px;
  line-height: 1;
  transition: rotate .25s ease;
}

.ai-hands-on__body:has(.ai-hands-on__toggle:focus-visible) .ai-hands-on__control { outline: 4px solid var(--layla-yellow); outline-offset: 4px; }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .ai-hands-on__control { background: var(--layla-coral); box-shadow: 0 8px 0 var(--layla-coral-deep), 0 14px 24px rgba(253,118,102,.2); }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .ai-hands-on__control b { rotate: 180deg; transform: none; }

.ai-hands-on__reading {
  width: 100%;
  min-height: 27px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--layla-ink) 76%, transparent);
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.ai-hands-on__reading b { color: var(--layla-green); }
.ai-hands-on__verdict {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  width: min(100%, 880px);
  margin: 2px auto 0;
  padding: 12px 0 0 28px;
  align-items: baseline;
  gap: 12px;
  line-height: 1.35;
}

.ai-hands-on__verdict::before {
  position: absolute;
  top: 17px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 4px solid var(--layla-paper);
  border-radius: 50%;
  background: var(--layla-green);
  box-shadow: 0 0 0 2px var(--layla-green);
  content: '';
}

.ai-hands-on__verdict span { color: var(--layla-green); font-size: 10px; font-weight: 950; letter-spacing: .1em; }
.ai-hands-on__verdict strong { font-size: clamp(15px, 1.7vw, 19px); font-weight: 750; }

.ai-hands-on__body:has(.ai-hands-on__toggle:checked) :is(.ai-hands-on__control, .ai-hands-on__reading) .is-before { display: none; }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) :is(.ai-hands-on__control, .ai-hands-on__reading) .is-after { display: inline; }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-studio .is-before-state { opacity: 0; }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-studio .is-after-state { opacity: 1; }
.layla-studio .is-after-state { opacity: 0; }
.layla-studio .is-before-state,
.layla-studio .is-after-state { transition: opacity .28s ease; }

/* 01 · A familiar tablet turns one idea card into a visible proposal. */
.layla-idea-card {
  position: absolute;
  top: 11%;
  left: 6%;
  width: 31%;
  min-height: 62%;
  padding: clamp(12px,2vw,20px);
  border: 3px solid #d79043;
  border-radius: 18px;
  background: linear-gradient(145deg,#fffef9,#fff1bd);
  box-shadow: inset 7px 7px 0 rgba(255,255,255,.76), 0 15px 21px rgba(121,79,28,.17);
  text-align: center;
  transform: rotate(-2.5deg);
  transition: transform .72s cubic-bezier(.2,.85,.25,1), opacity .4s ease;
}

.layla-idea-card > span { color: #b56a18; font-size: clamp(9px,1.3vw,12px); font-weight: 950; letter-spacing: .09em; }
.layla-idea-card svg { display: block; width: 100%; margin: 8px auto 5px; filter: drop-shadow(0 7px 5px rgba(55,35,15,.12)); }
.layla-idea-card svg :not(.is-cutout) { fill: var(--layla-coral); stroke: #733b2e; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.layla-idea-card svg .is-moon circle,
.layla-idea-card svg .is-key { fill: var(--layla-yellow); }
.layla-idea-card svg .is-cutout { fill: #fff9df; stroke: none; }
.layla-idea-card svg :is(.is-eye,.is-mouth) { fill: none; stroke-width: 5; }
.layla-idea-card > strong { display: block; font-size: clamp(10px,1.45vw,14px); line-height: 1.22; }

.layla-tablet {
  position: absolute;
  right: 6%;
  bottom: 12%;
  width: 57%;
  height: 72%;
  padding: clamp(13px,2vw,20px);
  border: 4px solid var(--layla-purple-deep);
  border-radius: 30px;
  background: linear-gradient(135deg,#b79bf2,var(--layla-purple) 58%,#7350c8);
  box-shadow: inset 12px 10px 0 rgba(255,255,255,.22), inset -13px -12px 0 rgba(67,39,122,.17), 0 20px 26px rgba(68,39,125,.22);
}

.layla-tablet__camera { position: absolute; top: 8px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #37265e; box-shadow: inset 2px 2px 0 rgba(255,255,255,.22); transform: translateX(-50%); }
.layla-tablet__screen { position: relative; height: 100%; overflow: hidden; border: 3px solid #493178; border-radius: 19px; background: linear-gradient(155deg,#fff 0 70%,#f4f0ff); box-shadow: inset 9px 8px 13px rgba(255,255,255,.8); }
.layla-tablet__screen header { min-height: 18%; padding: 9px 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #ded1f7; background: var(--layla-purple-soft); }
.layla-tablet__screen header span { color: var(--layla-purple-deep); font-size: clamp(8px,1.15vw,11px); font-weight: 950; letter-spacing: .08em; }
.layla-tablet__screen header b { padding: 4px 8px; border-radius: 999px; background: var(--layla-green-soft); color: #087b38; font-size: clamp(8px,1.1vw,10px); }
.layla-tablet__empty { position: absolute; inset: 24% 10% 10%; display: grid; place-items: center; align-content: center; gap: 13px; color: #826cad; }
.layla-tablet__empty i { width: clamp(58px,9vw,88px); aspect-ratio: 1; border: 4px dashed #bca8e5; border-radius: 22px; background: rgba(242,235,255,.6); }
.layla-tablet__empty strong { font-size: clamp(9px,1.35vw,13px); letter-spacing: .07em; }
.layla-tablet__story { position: absolute; inset: 24% 8% 9%; padding: clamp(13px,2.2vw,24px); border-radius: 15px; background: linear-gradient(150deg,#fff6c9,#fffdf3); box-shadow: 0 10px 18px rgba(121,89,0,.14); transform: translateY(22px); transition: opacity .32s ease, transform .48s ease; }
.layla-tablet__story span { color: #8b6e00; font-size: clamp(8px,1.15vw,10px); font-weight: 950; letter-spacing: .08em; }
.layla-tablet__story strong { display: block; margin-top: clamp(12px,2.5vw,24px); font-size: clamp(12px,1.7vw,18px); line-height: 1.25; }
.layla-tablet__story b { position: absolute; right: 10px; bottom: 10px; padding: 6px 9px; border-radius: 8px; background: var(--layla-green); font-size: clamp(8px,1.1vw,10px); transform: rotate(-2deg); }
.layla-tablet__dock { position: absolute; z-index: 6; bottom: 11%; left: -7%; width: 15%; height: 40%; border-radius: 16px 7px 7px 16px; background: linear-gradient(90deg,#5a3c9b,#7d5bd0); box-shadow: 0 8px 12px rgba(57,34,97,.18); }
.layla-tablet__dock i { position: absolute; inset: 14% 24%; border-radius: 99px; background: #33264a; }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-idea-card { opacity: .38; transform: translate(112%,72%) scale(.38) rotate(0); }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-tablet__story { opacity: 1; transform: translateY(0); }

/* 02 · The same tablet-model turns over to reveal calculations on its back. */
.layla-studio--calculate { perspective: 1200px; }
.layla-flip-tablet { position: absolute; top: 10%; bottom: 13%; left: 18%; width: 64%; transform-style: preserve-3d; transition: transform .72s cubic-bezier(.2,.85,.25,1); }
.layla-flip-tablet__front,
.layla-flip-tablet__back { position: absolute; inset: 0; padding: clamp(20px,3vw,34px); border-radius: 30px; backface-visibility: hidden; }
.layla-flip-tablet__front { border: 5px solid var(--layla-purple-deep); background: linear-gradient(145deg,#b99cf5,var(--layla-purple)); box-shadow: inset 12px 10px 0 rgba(255,255,255,.2),0 20px 26px rgba(68,39,125,.2); }
.layla-flip-tablet__front::before { position: absolute; inset: 10%; border: 3px solid #4f347f; border-radius: 19px; background: linear-gradient(150deg,#fff,#f7f1ff); content: ''; }
.layla-flip-tablet__front span,
.layla-flip-tablet__front strong { position: relative; z-index: 2; display: block; width: 74%; margin-inline: auto; }
.layla-flip-tablet__front span { margin-top: 13%; color: var(--layla-purple-deep); font-size: clamp(9px,1.3vw,12px); font-weight: 950; letter-spacing: .09em; }
.layla-flip-tablet__front strong { margin-top: clamp(24px,4vw,40px); font-size: clamp(17px,2.8vw,29px); line-height: 1.25; }
.layla-flip-tablet__front i { position: absolute; z-index: 3; top: 4%; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: #342153; transform: translateX(-50%); }
.layla-flip-tablet__back { display: grid; align-content: center; gap: 17px; border: 5px solid var(--layla-purple-deep); background: linear-gradient(145deg,#6e4bbb,#3f2d69); box-shadow: inset 12px 10px 0 rgba(255,255,255,.12),0 20px 26px rgba(68,39,125,.2); color: #fff; transform: rotateY(180deg); }
.layla-flip-tablet__back > span { color: var(--layla-yellow); font-size: clamp(10px,1.4vw,13px); font-weight: 950; letter-spacing: .09em; text-align: center; }
.layla-flip-tablet__back ol { display: flex; justify-content: center; align-items: center; gap: 8px; }
.layla-flip-tablet__back li { min-width: 48px; padding: 11px 8px; border-radius: 12px; background: var(--layla-yellow); box-shadow: inset 0 -6px 0 rgba(121,89,0,.16); color: var(--layla-ink); font-weight: 950; text-align: center; }
.layla-flip-tablet__back li:nth-child(even) { min-width: 20px; padding-inline: 0; background: transparent; box-shadow: none; color: #fff; font-size: 22px; }
.layla-number-grid { display: grid; grid-template-columns: repeat(6,1fr); width: 72%; margin-inline: auto; gap: 7px; }
.layla-number-grid i { aspect-ratio: 1; border-radius: 50%; background: var(--layla-cyan); box-shadow: inset 3px 3px 0 rgba(255,255,255,.33); }
.layla-flip-tablet__back strong { padding-top: 10px; border-top: 2px solid rgba(255,255,255,.25); font-size: clamp(10px,1.45vw,14px); text-align: center; }
.layla-flip-note { position: absolute; z-index: 5; right: 8%; bottom: 7%; margin: 0; padding: 6px 10px; border-radius: 9px; background: var(--layla-coral-soft); color: var(--layla-coral-deep); font-size: clamp(8px,1.1vw,10px); font-weight: 950; }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-flip-tablet { transform: rotateY(180deg); }

/* 03 · Four solid cards ride together through one reader. */
.layla-input-tray { position: absolute; z-index: 4; top: 10%; bottom: 12%; left: 5%; width: 57%; padding: clamp(12px,2vw,20px); border: 4px solid #8c6a42; border-radius: 25px; background: linear-gradient(145deg,#f4d8b2,#c99f70); box-shadow: inset 10px 9px 0 rgba(255,255,255,.22),0 18px 22px rgba(78,52,27,.18); transition: transform .68s cubic-bezier(.2,.85,.25,1); }
.layla-input-tray > span { display: block; margin-bottom: 11px; color: #6f4a24; font-size: clamp(9px,1.25vw,12px); font-weight: 950; letter-spacing: .08em; text-align: center; }
.layla-input-tray ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); height: calc(100% - 25px); gap: 10px; }
.layla-input-tray li { display: grid; grid-template-columns: 46% 1fr; min-height: 0; padding: 8px; align-items: center; border-radius: 14px; background: linear-gradient(145deg,#fff,#f7f5f2); box-shadow: 0 8px 12px rgba(56,43,32,.12); }
.layla-input-tray li i { display: grid; aspect-ratio: 1; place-items: center; border-radius: 11px; background: var(--layla-blue-soft); color: var(--layla-blue); font-size: clamp(15px,2.4vw,25px); font-style: normal; font-weight: 950; }
.layla-input-tray li:nth-child(2) i { background: var(--layla-coral-soft); color: var(--layla-coral); }
.layla-input-tray li:nth-child(3) i { background: var(--layla-green-soft); color: var(--layla-green); }
.layla-input-tray li:nth-child(4) i { background: var(--layla-yellow-soft); color: #a87900; }
.layla-input-tray li b { font-size: clamp(8px,1.2vw,11px); }
.layla-reader { position: absolute; z-index: 5; top: 13%; right: 6%; bottom: 12%; width: 32%; border-radius: 31px; background: linear-gradient(145deg,#b69af0,var(--layla-purple) 58%,#7350c8); box-shadow: inset 11px 9px 0 rgba(255,255,255,.18),inset -12px -10px 0 rgba(67,39,122,.16),0 19px 24px rgba(68,39,125,.2); }
.layla-reader header { padding: 18px 12px 10px; display: grid; place-items: center; gap: 8px; }
.layla-reader header i { width: 13px; height: 13px; border-radius: 50%; background: var(--layla-green); box-shadow: 0 0 0 5px rgba(15,188,83,.15); }
.layla-reader header span { font-size: clamp(8px,1.25vw,11px); font-weight: 950; text-align: center; }
.layla-reader__mouth { position: absolute; top: 33%; bottom: 14%; left: -8%; width: 23%; border-radius: 15px 5px 5px 15px; background: #4e357f; box-shadow: inset 9px 0 0 rgba(0,0,0,.16); }
.layla-reader__mouth::after { position: absolute; inset: 13% 25%; border-radius: 99px; background: #2b2340; content: ''; }
.layla-reader > strong { position: absolute; right: 12%; bottom: 16%; padding: 7px 10px; border-radius: 9px; background: var(--layla-green); font-size: clamp(8px,1.15vw,10px); transform: rotate(-2deg); }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-input-tray { transform: translateX(26%) scale(.74); }

/* 04 · One paper task is physically clipped to the same tablet. */
.layla-task-stack { position: absolute; top: 20%; left: 5%; width: 22%; display: grid; gap: 12px; }
.layla-task-stack li { padding: 14px 10px; border-radius: 13px; background: #fff; box-shadow: 0 9px 13px rgba(55,42,31,.13); color: #746d65; font-size: clamp(8px,1.15vw,10px); font-weight: 900; text-align: center; transform: rotate(-3deg); }
.layla-task-stack li:last-child { background: var(--layla-blue-soft); transform: rotate(2deg); }
.layla-task-tablet { position: absolute; top: 10%; right: 8%; bottom: 12%; width: 53%; padding: 19px; border-radius: 31px; background: linear-gradient(145deg,#b79bf2,var(--layla-purple)); box-shadow: inset 10px 9px 0 rgba(255,255,255,.2),0 20px 25px rgba(68,39,125,.2); }
.layla-task-tablet__screen { position: relative; height: 100%; overflow: hidden; border: 3px solid #50347f; border-radius: 19px; background: linear-gradient(150deg,#fff,#f6f1ff); }
.layla-task-tablet__screen span,
.layla-task-tablet__screen strong { position: absolute; inset: 0; display: grid; padding: 20%; place-items: center; color: #846eae; font-size: clamp(10px,1.55vw,15px); text-align: center; }
.layla-task-tablet__screen strong { color: var(--layla-ink); font-size: clamp(14px,2.2vw,22px); line-height: 1.25; }
.layla-task-tablet__clip { position: absolute; z-index: 8; top: -9px; left: 50%; width: 38%; height: 34px; border-radius: 12px 12px 7px 7px; background: linear-gradient(180deg,#e8e9ec,#9ca1aa); box-shadow: 0 7px 9px rgba(35,31,28,.18); transform: translateX(-50%); }
.layla-task-tablet__clip i { position: absolute; inset: 8px 24%; border-radius: 99px; background: #5c6168; }
.layla-task-ticket { position: absolute; z-index: 6; top: 15%; left: 28%; width: 28%; min-height: 39%; padding: clamp(13px,2vw,21px); border-radius: 17px; background: linear-gradient(145deg,#fff8cf,#ffe989); box-shadow: inset 7px 7px 0 rgba(255,255,255,.44),0 14px 19px rgba(121,89,0,.18); text-align: center; transform: rotate(-2deg); transition: transform .68s cubic-bezier(.2,.85,.25,1); }
.layla-task-ticket span { color: #8b6e00; font-size: clamp(8px,1.15vw,10px); font-weight: 950; letter-spacing: .08em; }
.layla-task-ticket strong { display: block; margin-top: clamp(17px,3vw,30px); font-size: clamp(11px,1.7vw,17px); line-height: 1.18; }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-task-tablet__screen strong { padding: 42% 12% 9%; }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-task-ticket { transform: translate(84%,-12%) scale(.65) rotate(0); }

/* 05 · A real paper result slides from the tool. */
.layla-output-screen { position: absolute; top: 13%; bottom: 16%; left: 6%; width: 38%; padding: clamp(18px,3vw,30px); border: 4px solid var(--layla-purple-deep); border-radius: 27px; background: linear-gradient(145deg,#b89cf2,var(--layla-purple)); box-shadow: inset 10px 9px 0 rgba(255,255,255,.2),0 18px 23px rgba(68,39,125,.2); }
.layla-output-screen::before { position: absolute; inset: 14%; border: 3px solid #50347f; border-radius: 16px; background: #fff; content: ''; }
.layla-output-screen span,
.layla-output-screen strong { position: relative; z-index: 2; display: block; width: 72%; margin-inline: auto; }
.layla-output-screen span { margin-top: 15%; color: var(--layla-blue); font-size: clamp(8px,1.2vw,11px); font-weight: 950; letter-spacing: .08em; }
.layla-output-screen strong { margin-top: 16px; font-size: clamp(11px,1.55vw,15px); line-height: 1.28; }
.layla-output-screen i { position: absolute; z-index: 3; top: 5%; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #342153; transform: translateX(-50%); }
.layla-output-printer { position: absolute; z-index: 4; top: 15%; right: 7%; width: 42%; height: 45%; border-radius: 26px 26px 18px 18px; background: linear-gradient(145deg,#fff,#dfe3e8); box-shadow: inset 10px 8px 0 rgba(255,255,255,.78),inset -10px -9px 0 rgba(69,78,89,.09),0 18px 23px rgba(52,48,44,.18); }
.layla-output-printer header { height: 44%; display: grid; place-items: center; align-content: center; gap: 7px; }
.layla-output-printer header i { width: 12px; height: 12px; border-radius: 50%; background: var(--layla-green); }
.layla-output-printer header span { color: var(--layla-purple-deep); font-size: clamp(8px,1.15vw,10px); font-weight: 950; letter-spacing: .08em; }
.layla-output-printer__slot { position: absolute; right: 12%; bottom: 20%; left: 12%; height: 20%; border-radius: 8px; background: #34333a; box-shadow: inset 0 5px 0 rgba(0,0,0,.34); }
.layla-output-paper { position: absolute; z-index: 3; top: 72%; right: 10%; left: 10%; min-height: 138%; padding: clamp(12px,2vw,18px); border-radius: 0 0 15px 15px; background: linear-gradient(165deg,#fffef8,#fff5c8); box-shadow: 0 16px 19px rgba(85,65,35,.15); transform: scaleY(.07); transform-origin: top center; transition: transform .72s cubic-bezier(.2,.85,.25,1); }
.layla-output-paper span { color: #8b6e00; font-size: clamp(8px,1.15vw,10px); font-weight: 950; letter-spacing: .09em; }
.layla-output-paper strong { display: block; margin-top: 13px; font-size: clamp(10px,1.5vw,14px); line-height: 1.25; }
.layla-output-paper b { display: block; margin-top: 12px; padding-top: 8px; border-top: 2px solid rgba(139,110,0,.2); color: var(--layla-green); font-size: clamp(8px,1.1vw,10px); }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-output-paper { transform: scaleY(1); }

/* 06 · A glass reading frame lands on a large physical photo. */
.layla-photo-card { position: absolute; top: 10%; bottom: 12%; left: 24%; width: 52%; padding: clamp(15px,2.4vw,24px); border-radius: 19px; background: linear-gradient(145deg,#fff,#f5efe7); box-shadow: 0 18px 24px rgba(69,54,40,.18); text-align: center; transform: rotate(-1deg); }
.layla-photo-card > span { color: #736a60; font-size: clamp(8px,1.15vw,10px); font-weight: 950; letter-spacing: .09em; }
.layla-photo-card > div { width: 72%; height: 72%; margin: 5px auto; display: grid; place-items: center; overflow: hidden; border-radius: 17px; background: linear-gradient(145deg,#e0f8fb,#b8e9ef); box-shadow: inset 8px 7px 0 rgba(255,255,255,.35); }
.layla-photo-card svg { width: 86%; height: 86%; overflow: visible; filter: drop-shadow(0 12px 9px rgba(108,67,37,.18)); }
.layla-photo-card svg path:first-child { fill: #f29c45; stroke: #8a4d24; stroke-width: 4; }
.layla-photo-card svg circle { fill: #29272d; }
.layla-photo-card svg path:last-child { fill: none; stroke: #6f4024; stroke-width: 4; stroke-linecap: round; }
.layla-photo-card > strong { position: absolute; right: 6%; bottom: 4%; padding: 7px 10px; border-radius: 9px; background: var(--layla-green); font-size: clamp(8px,1.2vw,11px); transform: rotate(-2deg); }
.layla-reading-frame { position: absolute; z-index: 7; top: -60%; left: 29%; width: 42%; height: 66%; border: 11px solid var(--layla-blue); border-radius: 24px; background: rgba(226,239,255,.34); box-shadow: 0 0 0 4px rgba(255,255,255,.82),0 17px 24px rgba(47,115,217,.2); transition: transform .72s cubic-bezier(.2,.85,.25,1); }
.layla-reading-frame::before { position: absolute; top: -46px; left: 50%; width: 105px; height: 39px; border: 8px solid var(--layla-blue); border-bottom: 0; border-radius: 999px 999px 0 0; content: ''; transform: translateX(-50%); }
.layla-reading-frame i { position: absolute; inset: 13%; border: 3px dashed rgba(47,115,217,.55); border-radius: 50%; }
.layla-reading-frame span { position: absolute; padding: 5px 7px; border-radius: 7px; background: var(--layla-blue); color: #fff; font-size: clamp(7px,1.1vw,9px); font-weight: 950; opacity: 0; transition: opacity .3s ease .3s; }
.layla-reading-frame .is-ears { top: 20%; right: 3%; }
.layla-reading-frame .is-whiskers { right: 1%; bottom: 20%; }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-reading-frame { transform: translateY(108%); }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-reading-frame span { opacity: 1; }

/* 07 · The route stays fixed while one tactile weather dial changes. */
.layla-route-model { position: absolute; top: 12%; bottom: 13%; left: 5%; width: 62%; padding: clamp(15px,2.3vw,24px); border-radius: 26px; background: linear-gradient(145deg,#dff8f2,#9de4d4); box-shadow: inset 10px 9px 0 rgba(255,255,255,.34),0 18px 24px rgba(0,112,91,.15); }
.layla-route-model > span { color: #087b68; font-size: clamp(9px,1.2vw,11px); font-weight: 950; letter-spacing: .08em; }
.layla-route-model__road { position: absolute; right: 7%; bottom: 10%; left: 7%; height: 59%; overflow: hidden; border-radius: 32px; background: #5d6068; box-shadow: inset 0 0 0 7px rgba(255,255,255,.16),0 11px 15px rgba(52,52,55,.17); transform: rotate(-2deg); }
.layla-route-model__road i { position: absolute; top: 50%; right: 7%; left: 7%; height: 5px; background: repeating-linear-gradient(90deg,#fff 0 23px,transparent 23px 39px); transform: translateY(-50%); }
.layla-route-model__road b { position: absolute; top: 50%; display: grid; width: clamp(55px,8vw,78px); aspect-ratio: 1; place-items: center; border-radius: 18px; background: var(--layla-yellow); box-shadow: 0 7px 0 #c59c00; font-size: clamp(8px,1.15vw,10px); transform: translateY(-50%); }
.layla-route-model__road b:first-of-type { left: 6%; }
.layla-route-model__road b:last-of-type { right: 6%; background: var(--layla-coral); box-shadow: 0 7px 0 #c65347; }
.layla-weather-dial { position: absolute; z-index: 7; top: 4%; right: 5%; width: clamp(86px,13vw,126px); aspect-ratio: 1.5; border-radius: 19px; background: linear-gradient(145deg,#fff,#e6e8ec); box-shadow: 0 10px 15px rgba(49,47,44,.16); }
.layla-weather-dial i { position: absolute; top: 9px; left: 12px; font-size: clamp(25px,4vw,39px); font-style: normal; line-height: 1; }
.layla-weather-dial b { position: absolute; right: 10px; bottom: 11px; color: var(--layla-blue); font-size: clamp(8px,1.15vw,10px); }
.layla-time-counter { position: absolute; top: 15%; right: 6%; bottom: 13%; width: 25%; padding: 17px 10px; border-radius: 27px; background: linear-gradient(145deg,#b79bf2,var(--layla-purple)); box-shadow: inset 9px 8px 0 rgba(255,255,255,.2),0 18px 24px rgba(68,39,125,.2); text-align: center; }
.layla-time-counter > span { font-size: clamp(8px,1.15vw,10px); font-weight: 950; letter-spacing: .07em; }
.layla-time-counter > div { position: relative; width: 78%; aspect-ratio: 1; margin: 18% auto 10%; border: 4px solid #4b3379; border-radius: 20px; background: #25252b; box-shadow: inset 0 7px 0 rgba(0,0,0,.26); }
.layla-time-counter > div b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: clamp(30px,5.2vw,52px); }
.layla-time-counter > div small { position: absolute; right: 0; bottom: 7%; left: 0; color: var(--layla-yellow); font-size: clamp(8px,1.1vw,10px); font-weight: 950; }
.layla-time-counter > strong { display: block; color: #fff; font-size: clamp(8px,1.1vw,10px); }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-weather-dial { background: linear-gradient(145deg,#eef4ff,#b8d4fb); }

/* 08 · Three chunky idea pieces feed one tabletop story press. */
.layla-story-tokens { position: absolute; z-index: 5; top: 14%; left: 4%; width: 25%; display: grid; gap: 10px; }
.layla-story-tokens li { display: grid; grid-template-columns: 43px 1fr; min-height: 60px; padding: 8px 10px; align-items: center; gap: 9px; border-radius: 15px; background: linear-gradient(145deg,#fff,#f4eee6); box-shadow: 0 9px 13px rgba(67,51,36,.14); }
.layla-story-tokens li i { position: relative; display: block; width: 38px; height: 38px; border-radius: 12px; background: var(--layla-coral-soft); }
.layla-story-tokens li:nth-child(2) i { border-radius: 50%; background: var(--layla-yellow); box-shadow: inset -13px 0 0 #fff5c8; }
.layla-story-tokens li:nth-child(3) i { background: var(--layla-blue-soft); }
.layla-story-tokens li:nth-child(3) i::before { position: absolute; top: 8px; left: 7px; width: 13px; height: 13px; border: 4px solid var(--layla-blue); border-radius: 50%; content: ''; }
.layla-story-tokens li:nth-child(3) i::after { position: absolute; top: 20px; left: 20px; width: 18px; height: 6px; border-bottom: 5px solid var(--layla-blue); border-right: 5px solid var(--layla-blue); content: ''; transform: rotate(45deg); }
.layla-story-tokens li:first-child i::before,
.layla-story-tokens li:first-child i::after { position: absolute; top: 5px; width: 17px; height: 24px; border-radius: 60% 60% 45% 45%; background: var(--layla-coral); content: ''; }
.layla-story-tokens li:first-child i::before { left: 4px; transform: rotate(-20deg); }
.layla-story-tokens li:first-child i::after { right: 4px; transform: rotate(20deg); }
.layla-story-tokens li b { font-size: clamp(8px,1.2vw,11px); }
.layla-story-press { position: absolute; z-index: 4; top: 10%; bottom: 12%; left: 32%; width: 36%; border-radius: 28px; background: linear-gradient(145deg,#b79bf2,var(--layla-purple)); box-shadow: inset 10px 9px 0 rgba(255,255,255,.2),0 19px 24px rgba(68,39,125,.2); }
.layla-story-press header { padding: 18px 12px 0; text-align: center; }
.layla-story-press header span { font-size: clamp(8px,1.2vw,11px); font-weight: 950; letter-spacing: .07em; }
.layla-story-press__rollers { position: absolute; right: 12%; bottom: 13%; left: 12%; height: 42%; border-radius: 17px; background: #4e357f; }
.layla-story-press__rollers i { position: absolute; right: 11%; left: 11%; height: 25%; border-radius: 99px; background: linear-gradient(180deg,#fff5c8,var(--layla-yellow)); box-shadow: inset 0 -5px 0 rgba(121,89,0,.16); }
.layla-story-press__rollers i:first-child { top: 16%; }
.layla-story-press__rollers i:last-child { bottom: 16%; }
.layla-story-press__handle { position: absolute; z-index: 8; top: 19%; left: 50%; width: 20px; height: 38%; border-radius: 99px; background: #4e357f; transform-origin: bottom; transform: translateX(-50%) rotate(-25deg); transition: transform .52s ease; }
.layla-story-press__handle i { position: absolute; top: -13px; left: 50%; width: 43px; height: 43px; border-radius: 50%; background: var(--layla-coral); box-shadow: inset 6px 5px 0 rgba(255,255,255,.2),0 7px 10px rgba(108,52,45,.18); transform: translateX(-50%); }
.layla-story-ribbon { position: absolute; z-index: 3; top: 35%; left: 82%; width: 105%; min-height: 46%; padding: clamp(12px,2vw,20px); border-radius: 0 17px 17px 0; background: linear-gradient(155deg,#fffef6,#fff4bf); box-shadow: 0 15px 20px rgba(112,84,30,.16); opacity: .12; transform: translateX(-39%) scaleX(.35); transform-origin: left center; transition: opacity .35s ease, transform .72s cubic-bezier(.2,.85,.25,1); }
.layla-story-ribbon span { color: #8b6e00; font-size: clamp(8px,1.1vw,10px); font-weight: 950; letter-spacing: .08em; }
.layla-story-ribbon strong { display: block; margin-top: 12px; font-size: clamp(9px,1.35vw,13px); line-height: 1.23; }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-story-press__handle { transform: translateX(-50%) rotate(22deg); }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-story-ribbon { opacity: 1; transform: translateX(0) scaleX(1); }

/* 09 · A substantial reference book corrects the answer where it sits. */
.layla-answer-sheet { position: absolute; top: 17%; bottom: 14%; left: 6%; width: 36%; padding: clamp(17px,2.6vw,28px); border-radius: 18px; background: linear-gradient(145deg,#fffef8,#fff2bb); box-shadow: 0 18px 23px rgba(102,76,28,.17); transform: rotate(-2deg); }
.layla-answer-sheet > span { color: #8b6e00; font-size: clamp(8px,1.15vw,10px); font-weight: 950; letter-spacing: .08em; }
.layla-answer-sheet > b { display: block; margin-top: clamp(24px,4vw,39px); font-size: clamp(12px,1.7vw,17px); }
.layla-answer-sheet > strong { display: block; margin-top: 7px; color: var(--layla-coral); font-size: clamp(27px,5vw,48px); line-height: .95; }
.layla-answer-sheet > em { position: absolute; right: 7%; bottom: 9%; padding: 9px 12px; border-radius: 9px; background: var(--layla-coral); box-shadow: 0 6px 0 var(--layla-coral-deep); font-size: clamp(9px,1.3vw,12px); font-style: normal; font-weight: 950; transform: rotate(-4deg); }
.layla-planet-book { position: absolute; top: 12%; right: 6%; bottom: 13%; width: 49%; perspective: 900px; }
.layla-planet-book__pages,
.layla-planet-book__cover { position: absolute; inset: 0; border-radius: 18px 28px 28px 18px; }
.layla-planet-book__pages { padding: clamp(18px,3vw,31px); border: 3px solid #b8aa93; background: linear-gradient(90deg,#fffaf0 0 48%,#e4d7c4 49.5%,#fffaf0 51% 100%); box-shadow: 0 19px 25px rgba(76,57,34,.2); text-align: center; }
.layla-planet-book__pages > span { color: var(--layla-blue); font-size: clamp(8px,1.15vw,10px); font-weight: 950; letter-spacing: .08em; }
.layla-planet-book__pages > strong { display: block; margin-top: 12px; font-size: clamp(17px,2.5vw,25px); }
.layla-planet-book__pages > div { display: flex; justify-content: center; margin-block: 14px 8px; gap: clamp(14px,3vw,28px); }
.layla-planet-book__pages > div i { width: clamp(42px,7vw,66px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#ffaf77,#c95135 67%,#8a2e27); box-shadow: inset 7px 5px 0 rgba(255,255,255,.14),0 8px 11px rgba(108,50,36,.17); }
.layla-planet-book__pages > div i:last-child { width: clamp(26px,4.5vw,42px); align-self: end; background: radial-gradient(circle at 35% 30%,#e3e5e9,#8e949e); }
.layla-planet-book__pages > b { font-size: clamp(12px,1.7vw,17px); }
.layla-planet-book__cover { display: grid; padding: clamp(18px,3vw,30px); align-content: center; justify-items: center; gap: 17px; background: linear-gradient(145deg,#4883df,#2359ac); box-shadow: inset -14px -12px 0 rgba(14,48,99,.17),0 19px 25px rgba(32,68,125,.2); color: #fff; transform-origin: top center; transition: transform .72s cubic-bezier(.2,.85,.25,1), opacity .36s ease; }
.layla-planet-book__cover i { width: clamp(72px,13vw,122px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#ffaf77,#c95135 67%,#8a2e27); box-shadow: inset 12px 9px 0 rgba(255,255,255,.16),0 12px 15px rgba(11,36,77,.2); }
.layla-planet-book__cover span { font-size: clamp(11px,1.8vw,18px); font-weight: 950; letter-spacing: .06em; }
.layla-planet-book__cover b { font-size: clamp(9px,1.2vw,11px); }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-planet-book__cover { opacity: .12; transform: translateY(-82%) rotateX(58deg); }

/* 10 · Four sentence strips become one transparent prompt folder. */
.layla-prompt-folder { position: absolute; inset: 8% 8% 13%; padding: clamp(16px,2.5vw,26px); border-radius: 27px; background: linear-gradient(145deg,#efe5d3,#c9a87f); box-shadow: inset 10px 9px 0 rgba(255,255,255,.2),0 18px 24px rgba(77,53,31,.18); }
.layla-prompt-folder ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); height: 100%; gap: 12px; }
.layla-prompt-folder li { display: grid; grid-template-columns: 34% 1fr; padding: 11px; align-items: center; gap: 8px; border-radius: 14px; background: linear-gradient(145deg,#fff,#f8f6f2); box-shadow: 0 8px 12px rgba(65,49,35,.12); }
.layla-prompt-folder li span { display: grid; min-height: 42px; place-items: center; border-radius: 10px; background: var(--layla-blue-soft); color: var(--layla-blue); font-size: clamp(8px,1.2vw,11px); font-weight: 950; }
.layla-prompt-folder li:nth-child(2) span { background: var(--layla-coral-soft); color: var(--layla-coral-deep); }
.layla-prompt-folder li:nth-child(3) span { background: var(--layla-yellow-soft); color: #8b6e00; }
.layla-prompt-folder li:nth-child(4) span { background: var(--layla-green-soft); color: #087b38; }
.layla-prompt-folder li b { font-size: clamp(9px,1.3vw,12px); line-height: 1.2; }
.layla-prompt-folder__cover { position: absolute; z-index: 7; inset: 10px; border: 11px solid rgba(146,103,234,.88); border-radius: 22px; background: rgba(242,235,255,.4); box-shadow: 0 0 0 4px rgba(255,255,255,.8),0 16px 22px rgba(68,39,125,.17); transform: translateY(-118%); transition: transform .72s cubic-bezier(.2,.85,.25,1); }
.layla-prompt-folder__cover i { position: absolute; top: -48px; left: 50%; width: 116px; height: 38px; border: 9px solid var(--layla-purple); border-bottom: 0; border-radius: 999px 999px 0 0; transform: translateX(-50%); }
.layla-prompt-folder__cover strong { position: absolute; right: 12px; bottom: -18px; padding: 9px 12px; border-radius: 9px; background: var(--layla-green); box-shadow: 0 6px 0 #087b38; font-size: clamp(8px,1.2vw,11px); opacity: 0; transition: opacity .3s ease .35s; }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-prompt-folder__cover { transform: translateY(0); }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-prompt-folder__cover strong { opacity: 1; }

/* 11 · A transparent test sheet lands directly on the story sheet. */
.layla-story-sheet,
.layla-repair-sheet { position: absolute; top: 10%; bottom: 12%; left: 23%; width: 54%; padding: clamp(17px,2.7vw,28px); border-radius: 18px; background: linear-gradient(145deg,#fffef8,#fff4c7); box-shadow: 0 18px 24px rgba(102,76,28,.17); }
.layla-story-sheet > span,
.layla-repair-sheet > span { color: #8b6e00; font-size: clamp(8px,1.15vw,10px); font-weight: 950; letter-spacing: .08em; }
.layla-story-sheet > strong,
.layla-repair-sheet > strong { display: block; margin: 13px 0; font-size: clamp(14px,2.2vw,22px); }
.layla-story-sheet li,
.layla-repair-sheet li { margin-block: 7px; padding-bottom: 5px; border-bottom: 2px solid rgba(87,69,30,.16); font-size: clamp(9px,1.25vw,12px); }
.layla-story-sheet > b { color: #8b6e00; font-size: clamp(9px,1.2vw,11px); }
.layla-test-sheet { position: absolute; z-index: 7; top: -70%; left: 27%; width: 46%; height: 69%; padding: clamp(15px,2.3vw,23px); border: 11px solid rgba(47,115,217,.9); border-radius: 22px; background: rgba(226,239,255,.68); box-shadow: 0 0 0 4px rgba(255,255,255,.84),0 17px 24px rgba(47,115,217,.2); transition: transform .72s cubic-bezier(.2,.85,.25,1); }
.layla-test-sheet > span { color: var(--layla-blue-deep); font-size: clamp(8px,1.15vw,10px); font-weight: 950; letter-spacing: .08em; }
.layla-test-sheet ol { display: grid; margin-top: 16px; gap: 9px; }
.layla-test-sheet li { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 9px; }
.layla-test-sheet li i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--layla-green); font-style: normal; font-weight: 950; }
.layla-test-sheet li:last-child i { background: var(--layla-coral); }
.layla-test-sheet li b { font-size: clamp(8px,1.2vw,11px); }
.layla-test-sheet > strong { position: absolute; right: -17px; bottom: -16px; padding: 8px 11px; border-radius: 9px; background: var(--layla-coral); box-shadow: 0 6px 0 var(--layla-coral-deep); font-size: clamp(8px,1.2vw,11px); opacity: 0; transition: opacity .28s ease .32s; }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-test-sheet { transform: translateY(114%); }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-test-sheet > strong { opacity: 1; }

/* 12 · One green correction strip enters one slot; everything else stays put. */
.layla-repair-sheet { left: 16%; width: 56%; }
.layla-repair-sheet > span { display: flex; gap: 5px; }
.layla-repair-sheet > span b { grid-area: 1/1; }
.layla-repair-slot { position: relative; height: 47px; margin-top: 11px; border: 3px dashed rgba(15,188,83,.52); border-radius: 11px; background: rgba(229,248,235,.5); }
.layla-repair-slot i { position: absolute; top: 50%; right: 12px; left: 12px; height: 3px; background: rgba(15,188,83,.38); transform: translateY(-50%); }
.layla-repair-choices { position: absolute; inset: 3px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; opacity: 0; transform: translateY(9px); transition: opacity .32s ease, transform .48s ease; }
.layla-repair-choices b { padding: 8px 5px; border-radius: 9px; background: var(--layla-green-soft); color: #087b38; font-size: clamp(7px,1.05vw,9px); text-align: center; }
.layla-repair-strip { position: absolute; z-index: 7; top: 29%; right: 5%; width: 25%; min-height: 37%; padding: clamp(13px,2vw,20px); border-radius: 16px; background: linear-gradient(145deg,#c4f782,var(--layla-green)); box-shadow: inset 7px 7px 0 rgba(255,255,255,.23),0 14px 19px rgba(15,123,56,.17); text-align: center; transition: transform .72s cubic-bezier(.2,.85,.25,1), opacity .35s ease; }
.layla-repair-strip span { color: #087b38; font-size: clamp(7px,1.05vw,9px); font-weight: 950; letter-spacing: .07em; }
.layla-repair-strip strong { display: block; margin-top: 18px; font-size: clamp(10px,1.45vw,14px); line-height: 1.2; }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-repair-strip { opacity: 0; transform: translate(-119%,90%) scale(.68) rotate(-2deg); }
.ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-repair-choices { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .ai-physical-proof.ai-hands-on > figcaption,
  .ai-hands-on__body,
  .ai-hands-on__verdict { width: 100%; }
  .ai-hands-on__verdict { grid-template-columns: 1fr; gap: 2px; }
  .ai-hands-on__scene,
  .ai-tool-apparatus__scene { min-height: 370px; border-radius: 34px 34px 23px 23px; }
  .layla-tablet { width: 60%; }
  .layla-idea-card { width: 33%; }
  .layla-flip-tablet { left: 10%; width: 80%; }
  .layla-input-tray { width: 61%; }
  .layla-reader { width: 35%; right: 3%; }
  .layla-task-tablet { right: 4%; width: 56%; }
  .layla-task-ticket { left: 25%; width: 31%; }
  .layla-output-screen { left: 4%; width: 39%; }
  .layla-output-printer { right: 4%; width: 45%; }
  .layla-photo-card { left: 17%; width: 66%; }
  .layla-reading-frame { left: 24%; width: 52%; }
  .layla-route-model { left: 3%; width: 65%; }
  .layla-time-counter { right: 3%; width: 27%; }
  .layla-story-tokens { left: 2%; width: 27%; }
  .layla-story-press { left: 31%; width: 38%; }
  .layla-answer-sheet { left: 3%; width: 38%; }
  .layla-planet-book { right: 3%; width: 54%; }
  .layla-prompt-folder { inset-inline: 4%; }
  .layla-story-sheet { left: 17%; width: 66%; }
  .layla-test-sheet { left: 22%; width: 56%; }
  .layla-repair-sheet { left: 8%; width: 66%; }
  .layla-repair-strip { right: 2%; width: 27%; }
}

@media (max-width: 480px) {
  .ai-physical-proof.ai-hands-on { gap: 9px; }
  .ai-physical-proof.ai-hands-on > figcaption span { font-size: 10px; }
  .ai-hands-on__scene,
  .ai-tool-apparatus__scene { min-height: 360px; border-radius: 30px 30px 21px 21px; }
  .ai-hands-on__control { width: calc(100% - 12px); min-height: 56px; padding-inline: 14px; font-size: 13px; }
  .ai-hands-on__reading { padding-inline: 7px; font-size: 13px; }
  .ai-hands-on__verdict { padding-left: 27px; }
  .ai-hands-on__verdict strong { font-size: 14px; }

  .layla-idea-card { top: 10%; left: 3%; width: 36%; min-height: 56%; padding: 10px 7px; }
  .layla-idea-card > strong { font-size: 8px; }
  .layla-tablet { right: 3%; bottom: 12%; width: 60%; height: 68%; padding: 11px; border-width: 3px; }
  .layla-tablet__screen header { padding-inline: 7px; }
  .layla-tablet__screen header span { font-size: 6px; }
  .layla-tablet__story { inset-inline: 6%; padding: 10px; }
  .layla-tablet__story strong { font-size: 9px; }
  .ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-idea-card { transform: translate(95%,77%) scale(.35); }

  .layla-flip-tablet { top: 13%; bottom: 14%; left: 5%; width: 90%; }
  .layla-flip-tablet__front,
  .layla-flip-tablet__back { padding: 16px; border-width: 3px; }
  .layla-flip-tablet__front strong { font-size: 17px; }
  .layla-flip-tablet__back { gap: 12px; }
  .layla-flip-tablet__back li { min-width: 35px; padding: 8px 5px; font-size: 10px; }
  .layla-flip-note { right: 4%; bottom: 5%; }

  .layla-input-tray { top: 12%; bottom: 14%; left: 3%; width: 64%; padding: 10px; }
  .layla-input-tray ol { gap: 7px; }
  .layla-input-tray li { grid-template-columns: 38% 1fr; padding: 5px; }
  .layla-input-tray li b { font-size: 7px; }
  .layla-reader { top: 16%; right: 2%; bottom: 14%; width: 34%; }
  .layla-reader header span { font-size: 7px; }
  .ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-input-tray { transform: translateX(22%) scale(.7); }

  .layla-task-stack { left: 2%; width: 21%; }
  .layla-task-stack li { padding: 11px 5px; font-size: 6px; }
  .layla-task-tablet { top: 13%; right: 3%; bottom: 13%; width: 58%; padding: 12px; }
  .layla-task-ticket { top: 16%; left: 22%; width: 34%; min-height: 34%; padding: 10px 6px; }
  .layla-task-ticket strong { font-size: 9px; }
  .ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-task-ticket { transform: translate(76%,-9%) scale(.59); }

  .layla-output-screen { top: 15%; bottom: 18%; left: 2%; width: 41%; padding: 12px; }
  .layla-output-screen strong { font-size: 9px; }
  .layla-output-printer { top: 18%; right: 2%; width: 48%; }
  .layla-output-paper { min-height: 160%; padding: 10px; }
  .layla-output-paper strong { font-size: 9px; }

  .layla-photo-card { top: 12%; bottom: 14%; left: 12%; width: 76%; padding: 12px; }
  .layla-reading-frame { left: 20%; width: 60%; border-width: 8px; }
  .layla-reading-frame::before { border-width: 7px; }

  .layla-route-model { top: 13%; bottom: 14%; left: 2%; width: 68%; padding: 11px; }
  .layla-weather-dial { right: 3%; width: 82px; }
  .layla-time-counter { top: 18%; right: 2%; bottom: 14%; width: 28%; padding-inline: 5px; }
  .layla-time-counter > div { width: 88%; }

  .layla-story-tokens { top: 17%; left: 1%; width: 28%; gap: 7px; }
  .layla-story-tokens li { grid-template-columns: 31px 1fr; min-height: 49px; padding: 6px; }
  .layla-story-tokens li i { width: 29px; height: 29px; }
  .layla-story-tokens li b { font-size: 7px; }
  .layla-story-press { top: 13%; bottom: 14%; left: 30%; width: 40%; }
  .layla-story-ribbon { left: 80%; width: 111%; padding: 10px; }
  .layla-story-ribbon strong { font-size: 8px; }

  .layla-answer-sheet { top: 18%; bottom: 15%; left: 2%; width: 39%; padding: 12px 8px; }
  .layla-answer-sheet > strong { font-size: 28px; }
  .layla-planet-book { top: 14%; right: 2%; bottom: 14%; width: 56%; }
  .layla-planet-book__pages,
  .layla-planet-book__cover { padding: 13px 8px; }
  .layla-planet-book__cover span { font-size: 10px; }

  .layla-prompt-folder { inset: 10% 2% 14%; padding: 11px; }
  .layla-prompt-folder ol { gap: 7px; }
  .layla-prompt-folder li { padding: 7px 5px; }
  .layla-prompt-folder li span { min-height: 34px; font-size: 7px; }
  .layla-prompt-folder li b { font-size: 7px; }
  .layla-prompt-folder__cover { border-width: 8px; }

  .layla-story-sheet { top: 13%; bottom: 14%; left: 13%; width: 74%; padding: 13px; }
  .layla-test-sheet { left: 18%; width: 64%; padding: 12px; border-width: 8px; }
  .layla-test-sheet li { grid-template-columns: 25px 1fr; }
  .layla-test-sheet li i { width: 25px; height: 25px; }

  .layla-repair-sheet { top: 13%; bottom: 14%; left: 4%; width: 72%; padding: 12px; }
  .layla-repair-strip { top: 31%; right: 1%; width: 28%; min-height: 32%; padding: 9px 5px; }
  .layla-repair-strip strong { font-size: 8px; }
  .layla-repair-choices b { font-size: 6px; padding-inline: 3px; }
  .ai-hands-on__body:has(.ai-hands-on__toggle:checked) .layla-repair-strip { transform: translate(-93%,105%) scale(.61) rotate(-2deg); }
}
