/* Public examples of saved learning progress and an illustrated maths lesson. */
.feature-scene {
  margin: 0 var(--home-gutter);
  padding-top: clamp(46px, 6vw, 92px);
  scroll-margin-top: 72px;
}
.feature-intro { text-align: center; margin: 0 auto clamp(22px, 2.5vw, 38px); }
.feature-kicker, .illustration-tag { color: #1455d6; font-weight: 700; }
.feature-kicker { text-transform: uppercase; letter-spacing: .13em; font-size: clamp(12px, 1.15vw, 16px); }
#welcome .feature-intro h2 {
  margin: .32em auto .17em;
  font: 720 clamp(36px, 5.25vw, 76px)/1.01 var(--sans);
  letter-spacing: -.062em; text-wrap: balance;
}
.feature-intro > p:last-child { max-width: 57ch; margin: 0 auto; color: var(--lab-muted); font-size: clamp(16px, 1.7vw, 23px); line-height: 1.4; text-wrap: balance; }
.feature-stage {
  padding: clamp(20px, 3.5vw, 54px) clamp(20px, 4.5vw, 72px);
  border: 1px solid #c8dcf7; border-radius: clamp(18px, 2vw, 30px);
  background: linear-gradient(117deg, #edf5ff 0%, #e6f2ff 53%, #edf6ff 100%);
  color: #101a36; font-family: var(--sans);
}
.memory-window, .illustration-window {
  overflow: hidden; border: 1px solid #fff; border-radius: clamp(14px, 1.7vw, 25px); background: #fff;
  box-shadow: 0 12px 32px -15px #35598f5c, 0 1px 3px #35598f0e;
}
.memory-bar { display: flex; align-items: center; gap: 20px; padding: 12px 20px; border-bottom: 1px solid #dce4ed; font-size: 14px; }
.memory-wordmark { display: flex; align-items: center; gap: 7px; border-right: 1px solid #dce4ed; padding-right: 22px; font: 760 clamp(17px, 1.65vw, 24px)/1.1 var(--sans); letter-spacing: -.06em; }
.memory-wordmark i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e2efff; }
.memory-wordmark i::after { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #2762f0; border-left-color: transparent; }
.memory-avatar { margin-left: auto; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; background: #5d87da; color: white; font-size: 13px; }
.memory-layout { display: grid; grid-template-columns: minmax(112px,.75fr) minmax(0,2.45fr) minmax(0,1.35fr); gap: clamp(10px, 1.2vw, 18px); padding: 0 clamp(12px, 1.4vw, 23px) 0 0; background: #f8fafc; }
.memory-sidebar { padding: clamp(13px, 1.5vw, 24px) 7px; border-right: 1px solid #dce4ed; }
.memory-sidebar span { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 5px; padding: 10px 8px; font-size: clamp(12px, .98vw, 15px); line-height: 1.25; color: #485369; }
.memory-sidebar svg, .memory-companion svg, .memory-symbol svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.memory-sidebar svg { width: 1.2em; height: 1.2em; }
.memory-sidebar .memory-current { background: #e5f1ff; color: #174bb6; border-radius: 7px; }
.memory-record, .memory-companion { margin-block: clamp(12px, 1.5vw, 22px); border: 1px solid #dce5ef; border-radius: 13px; }
.memory-record { padding: clamp(15px, 1.85vw, 28px); background: white; }
.feature-example, .memory-record > p, .memory-topic p, .illustration-copy > p { color: #4b5872; }
.feature-example { font-size: 13px; }
#welcome .feature-stage h3 { margin: .25em 0; font: 720 clamp(23px, 2.4vw, 34px)/1.08 var(--sans); letter-spacing: -.055em; color: #0d1933; }
.memory-record > p:not(.feature-example), .memory-topic p, .illustration-copy > p { font-size: clamp(14px, 1.23vw, 18px); line-height: 1.45; }
.memory-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(7px, 1vw, 16px); margin-top: clamp(14px, 1.4vw, 24px); }
.memory-topic { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(10px, 1.3vw, 21px); border: 1px solid #dce5ef; border-radius: 11px; }
.memory-symbol { display: grid; place-items: center; width: clamp(33px, 3.4vw, 51px); aspect-ratio: 1; border-radius: 50%; background: #e1f7ee; color: #088466; }
.memory-symbol svg { width: 55%; height: 55%; stroke-width: 2.8; }
.memory-topic h4 { margin: .6em 0 .22em; font: 700 clamp(17px, 1.7vw, 24px)/1.14 var(--sans); letter-spacing: -.045em; }
.memory-topic p { margin-bottom: .6em; font-size: clamp(12px, 1.08vw, 16px); }
.memory-topic strong { width: 100%; margin-top: auto; background: #e2f6ef; border-radius: 7px; padding: .45em .8em; font-size: clamp(13px, 1.2vw, 18px); font-weight: 600; }
.memory-topic.revisit .memory-symbol { color: #c54157; }
.memory-topic.revisit :is(.memory-symbol, strong) { background: #fce7eb; }
.memory-companion { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: clamp(10px, 1.25vw, 19px); background: #e2efff; border-color: #c5dcfb; }
.memory-companion img { display: block; width: min(83%, 235px); height: auto; max-height: 202px; object-fit: contain; }
.memory-companion p { display: flex; align-items: center; gap: .75em; margin: 0; padding: .8em; border-radius: 13px; background: #fff3c9; font-size: clamp(13px, 1.25vw, 18px); line-height: 1.35; font-weight: 580; }
.memory-companion svg { width: 1.35em; height: 1.35em; }
.illustration-window { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(20px, 3.2vw, 48px); align-items: center; padding: clamp(12px, 1.7vw, 25px); }
#welcome #fractions-video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; background: #e6f1ff; border: 1px solid #d2e4fc; border-radius: 11px; }
.illustration-player { position: relative; }
#welcome #play-fractions {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center;
  width: clamp(44px,5.4vw,72px); aspect-ratio: 1; padding: 0 0 0 4px; border: 2px solid white; border-radius: 50%; background: #0c193be6;
}
#play-fractions::after { content: ""; border-block: 10px solid transparent; border-left: 16px solid #fff; }
.illustration-copy { padding-right: clamp(0px, .9vw, 14px); }
.illustration-copy .illustration-tag { display: inline-block; padding: .32em .8em; border-radius: 99px; background: #e5f0ff; color: #134cb6; font-size: 12px; font-weight: 650; }
#welcome .illustration-copy h3 { margin: .4em 0 .23em; font-size: clamp(24px, 3vw, 44px); }
#welcome #watch-fractions { margin-top: clamp(14px, 1.4vw, 22px); padding: .75em 1.5em; min-height: 44px; border-radius: 10px; border: 1px solid #102044; background: #0f2044; color: white; font: 620 15px/1.25 var(--sans); }
#welcome #watch-fractions:hover { background: #1b376e; }
#welcome #watch-fractions:focus-visible, #welcome #fractions-video:focus-visible { outline: 3px solid #205bea; outline-offset: 3px; }
@media (max-width: 860px) {
  .memory-sidebar { display: none; }
  .memory-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); padding-inline: 12px; }
}
@media (max-width: 620px) {
  .feature-stage { padding: 12px; }
  .feature-intro br { display: none; }
  .memory-bar { gap: 8px; padding: 10px; }
  .memory-bar > span:nth-child(2) { font-size: 12px; }
  .memory-wordmark { padding-right: 9px; }
  .memory-layout { display: block; padding: 10px; }
  .memory-record, .memory-companion { margin: 0; }
  .memory-companion { flex-direction: row; justify-content: center; margin-top: 8px; }
  .memory-companion img { width: 70px; max-height: 78px; }
  .memory-companion p { max-width: 22ch; }
  .illustration-window { grid-template-columns: 1fr; gap: 12px; }
  .illustration-copy { padding: 2px 4px 6px; }
}
@media (max-width: 360px) {
  .memory-wordmark { border-right: 0; }
  .memory-bar > span:nth-child(2) { display: none; }
  .memory-topics { grid-template-columns: 1fr; }
}


/* The public Maths Lab uses the same frame as the video example above it. */
.graph-lab { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(24px,5vw,76px); }
.graph-lab-controls { min-width: 0; }
#welcome .graph-lab-controls h3 { margin: 0; color: #264faa; font: 650 clamp(14px,1.35vw,19px)/1.3 var(--sans); }
.graph-lab-equation { margin: 8px 0 20px; color: #123eab; font: 600 clamp(27px,3.1vw,44px)/1.15 var(--sans); letter-spacing: -.04em; }
#lab-sliders label { display: flex; align-items: baseline; gap: .25em; color: #132449; font-weight: 650; }
#lab-sliders label span { margin-left: auto; color: #234ba7; font-variant-numeric: tabular-nums; }
#lab-sliders input { width: 100%; height: 30px; margin: 2px 0 14px; padding: 0; accent-color: #2457d6; cursor: pointer; }
#lab-sliders input:focus-visible { outline: 3px solid #265ed8; outline-offset: 2px; }
.graph-lab-reading { margin: 2px 0 0; padding: clamp(12px,1.5vw,22px); border-radius: 12px; border: 1px solid #d1dff1; background: #fff; color: #364765; font: 480 clamp(14px,1.2vw,17px)/1.45 var(--sans); }
.graph-lab-reading strong { display: block; color: #132449; margin-bottom: 4px; }
.graph-lab-figure { min-width: 0; display: grid; justify-items: center; gap: 2px; margin: 0; padding: clamp(8px,1.3vw,19px); border: 1px solid #d2e2f5; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px -20px #36568c90; }
.graph-lab-figure svg { display: block; width: min(100%,360px); height: auto; }
.graph-lab-ticks { fill: #52627d; text-anchor: middle; font: 550 11px var(--sans); }
.graph-lab-axis { font-style: italic; font-size: 14px; fill: #102346; }
.graph-lab-figure figcaption { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 18px; color: #475975; font: 550 13px/1.5 var(--sans); }
.graph-lab-figure figcaption span { display: inline-flex; gap: 6px; align-items: center; }
.graph-lab-figure figcaption span::before { content: ""; width: 15px; height: 3px; border-radius: 9px; background: #2457d6; }
.graph-lab-figure figcaption span + span::before { width: 8px; height: 8px; background: #078465; }
@media (max-width: 680px) {
  .graph-lab { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .graph-lab-equation { margin-bottom: 14px; }
  #lab-sliders input { margin-bottom: 8px; }
}
