/* ==========================================================================
   REAL SCREENS
   .shot       a phone frame around a real device screenshot (assets/img/app/)
   .shot-live  the same frame around markup that matches a shipped screen:
               the quiz demo (QuizKK), the teacher home (TeacherHomeV3KK) and
               the assignment builder (AssignmentBuilderKK). Sizes are read off
               the 1179x2556 iPhone captures, scaled to a 300px-wide screen.
   Nothing here is an invented layout. If a screen changes in the app, change
   it here or swap in a fresh screenshot.
   ========================================================================== */
.shot {
  width: 300px; max-width: 100%; margin: 0 auto; line-height: 0;
  border: 9px solid #14213F; border-radius: 42px; overflow: hidden;
  background: #FAF5EC;
  box-shadow: 0 34px 70px -22px rgba(11,58,126,.45), 0 0 0 2px rgba(11,58,126,.10);
}
.shot img { width: 100%; height: auto; display: block; }
.shot-sm { width: 210px; border-width: 7px; border-radius: 32px; box-shadow: 0 20px 40px -18px rgba(11,58,126,.4); }

.lp-layout-shot { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); max-width: 900px; margin-inline: auto; }
@media (max-width: 1000px) {
  .lp-layout-shot { grid-template-columns: minmax(0, 1fr); }
  .lp-layout-shot .lp-side { margin-inline: auto; }
}

/* The quiz section breaks out of the 1180px column: the live demo on the left,
   the real screens in a 4-across grid beside it. No sideways scrolling anywhere. */
.quiz-wide {
  width: min(1500px, calc(100vw - 2 * var(--pad-x)));
  position: relative; left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 64px); align-items: start;
}
.shot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 32px) clamp(14px, 1.6vw, 28px); }
.shot-item { margin: 0; }
.shot-item .shot-sm { width: 100%; max-width: 250px; }
.shot-item figcaption { margin-top: 12px; font-size: .86rem; line-height: 1.4; color: var(--muted); text-align: center; }
.shot-item figcaption b { display: block; font-family: var(--f-head); font-weight: 600; font-size: .98rem; color: var(--ink); }
@media (max-width: 1100px) {
  .quiz-wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-item .shot-sm { border-width: 6px; border-radius: 28px; }
}

/* A grid of real screens on its own (no live demo beside it): same wide breakout. */
.shot-wide { width: min(1320px, calc(100vw - 2 * var(--pad-x))); position: relative; left: 50%; transform: translateX(-50%); }
.shot-wide .shot-item .shot-sm { max-width: 270px; }

/* ---- shared by the live screens ---- */
.shot-live { line-height: 1.3; }
.shot-live, .shot-live button { font-family: var(--f-app); }
.shot-live b { color: inherit; }
.aq, .at, .ab { display: flex; flex-direction: column; aspect-ratio: 590 / 1279; padding: 0 18px 20px; color: #232C4E; }
.aq-status { display: flex; justify-content: space-between; align-items: center; padding: 15px 22px 0; margin: 0 -18px 24px; font: 600 12.5px/1 var(--f-body); color: #111; }
.aq-batt { width: 22px; height: 10.5px; border-radius: 3.5px; background: #111; opacity: .85; }

/* ---- quiz: "How do you say…" ---- */
.aq-top { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.aq-x { color: #6A7193; line-height: 0; }
.aq-bar { flex: 1; height: 11px; border-radius: 6px; background: #F6EBD7; border: 1px solid #EFE4CC; overflow: hidden; }
.aq-bar i { display: block; width: 20%; height: 100%; border-radius: 6px; background: linear-gradient(to right, #F5B82E, #D89B12); }
.aq-h { font-weight: 800; font-size: 17px; margin-bottom: 14px; color: #232C4E; }
.aq-prompt { display: flex; align-items: center; gap: 13px; background: #F6EBD7; border: 1.6px solid #F5B82E; border-radius: 26px; padding: 15px 18px; min-height: 70px; }
.aq-en { width: 36px; height: 36px; border-radius: 50%; background: #F5B82E; display: grid; place-items: center; font-weight: 800; font-size: 11.5px; box-shadow: 0 6px 12px -4px rgba(216,155,18,.55); flex-shrink: 0; }
.aq-lead { display: block; font-weight: 700; font-size: 8.5px; color: #757D9C; }
.aq-word { display: block; font-weight: 800; font-size: 19px; line-height: 1.1; }
.aq-hint { font-weight: 700; font-size: 9.5px; color: #757D9C; margin: 14px 0 12px; }
.aq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.aq-grid .qz-tile {
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  aspect-ratio: 1 / 1.06; padding: 16px 6px 24px; background: #fff;
  border: 1.5px solid #EAE2D0; border-radius: 26px; box-shadow: none; cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.aq-grid .qz-tile:hover:not([disabled]) { transform: none; border-color: #2E4FE3; }
.aq-grid .qz-tile .qa { font-size: 21px; line-height: 1.5; color: #232C4E; }
.aq-grid .qz-tile .qt { font-family: var(--f-app); font-style: normal; font-weight: 700; font-size: 17px; color: #757D9C; }
.aq-grid .qz-tile[data-state="picked"]  { background: #EAF1FF; border: 2px solid #2E4FE3; }
.aq-grid .qz-tile[data-state="correct"] { background: #E5F6F2; border: 2px solid #2EB8A6; }
.aq-grid .qz-tile[data-state="wrong"]   { background: #FBEAE6; border: 2px solid #E2725B; }
.aq .qz-action { margin-top: auto; width: 100%; min-height: 43px; border-radius: 22px; font-weight: 700; font-size: 12.5px; }

.quiz-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; position: sticky; top: 96px; }
.quiz-side { display: grid; grid-template-columns: 96px 1fr; gap: 0 14px; align-items: center; }
.quiz-side .qz-sobek { grid-row: span 2; }
@media (max-width: 1100px) { .quiz-stage { position: static; justify-items: center; grid-template-columns: auto minmax(0, 280px); align-items: end; justify-content: center; gap: clamp(20px, 4vw, 48px); } .quiz-side { display: block; padding-bottom: 28px; } }
.quiz-side .qz-sobek { position: static; width: 96px; margin: 0; }
@media (max-width: 1100px) { .quiz-side .qz-sobek { width: 150px; margin-bottom: 14px; } }
.quiz-side .qz-note { text-align: left; font-size: .98rem; color: var(--ink); min-height: 3.2em; margin: 0 0 12px; }
@media (max-width: 720px) {
  .quiz-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .quiz-side { display: grid; grid-template-columns: 84px 1fr; gap: 0 14px; align-items: center; padding-bottom: 0; max-width: 340px; }
  .quiz-side .qz-sobek { width: 84px; margin: 0; grid-row: span 2; }
  .quiz-side .tiny { grid-column: 2; }
}

/* ---- teacher home (TeacherHomeV3KK) ---- */
.at { gap: 9px; padding-bottom: 0; }
.at .aq-status { margin-bottom: 8px; }
.at-head { display: flex; justify-content: space-between; align-items: center; }
.at-eyebrow { display: block; font: 700 8.5px/1.2 var(--f-body); letter-spacing: .1em; color: #757D9C; }
.at-name { display: block; font-weight: 800; font-size: 20px; line-height: 1.15; }
.at-bell { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1.5px solid #EAE2D0; display: grid; place-items: center; }
.at-ribbon { display: flex; align-items: center; gap: 9px; border-radius: 20px; padding: 10px 11px; min-height: 58px; }
.at-ribbon.lapis { background: #2E4FE3; color: #fff; }
.at-ribbon.gold  { background: #F5B82E; color: #232C4E; }
.at-ric { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255,255,255,.16); }
.at-ribbon.gold .at-ric { background: rgba(35,44,78,.16); }
.at-rtx { flex: 1; min-width: 0; }
.at-rtx b { display: block; font-weight: 700; font-size: 11.5px; }
.at-rtx i { display: block; font: 500 8px/1.3 var(--f-body); font-style: normal; opacity: .86; }
.at-ribbon.gold .at-rtx i { color: #6B5410; font-weight: 600; opacity: 1; }
.at-code { font-weight: 800; font-size: 10px; background: rgba(255,255,255,.18); border-radius: 10px; padding: 6px 7px; white-space: nowrap; }
.at-share { font-weight: 700; font-size: 10px; background: #232C4E; color: #fff; border-radius: 12px; padding: 6px 11px; }
.at-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.at-cta span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border-radius: 20px; background: #fff; border: 1.5px solid #EAE2D0; font-weight: 700; font-size: 12px; }
.at-cta span.gold { background: #F5B82E; border-color: transparent; box-shadow: 0 4px 0 #E9CF8C; }
.at-sec { display: flex; justify-content: space-between; align-items: baseline; margin-top: 3px; }
.at-sec span { font: 700 8.5px/1 var(--f-body); letter-spacing: .1em; color: #757D9C; }
.at-sec b { font-weight: 700; font-size: 10px; color: #2E4FE3; }
.at-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #EAE2D0; border-radius: 18px; padding: 8px 11px; }
.at-ring { flex-shrink: 0; }
.at-av { width: 30px; height: 30px; border-radius: 50%; background: #EAF1FF; color: #2E4FE3; display: grid; place-items: center; font-weight: 800; font-size: 10px; flex-shrink: 0; }
.at-rt { flex: 1; min-width: 0; }
.at-rt b { display: block; font-weight: 700; font-size: 12px; color: #232C4E; }
.at-rt i { display: flex; align-items: center; gap: 4px; font: 500 9px/1.3 var(--f-body); font-style: normal; color: #757D9C; }
.at-chev { color: #757D9C; }
.at-nav { margin: auto -18px 0; display: grid; grid-template-columns: repeat(6, 1fr); background: #fff; box-shadow: 0 -4px 16px rgba(35,44,78,.08); padding: 8px 6px 12px; }
.at-nav div { display: flex; flex-direction: column; align-items: center; gap: 3px; border-radius: 12px; padding: 5px 0; font: 600 7.5px/1 var(--f-app); color: #757D9C; }
.at-nav div.on { background: #F6EBD7; color: #2E4FE3; }

/* ---- assignment builder (AssignmentBuilderKK) ---- */
.ab .aq-status { margin-bottom: 12px; }
.ab-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.ab-head b { font-weight: 800; font-size: 18px; color: #232C4E; }
.ab-back { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1.5px solid #EAE2D0; display: grid; place-items: center; }
.ab-label { font-weight: 700; font-size: 10px; margin: 10px 0 7px; }
.ab-field { background: #fff; border: 1.5px solid #EAE2D0; border-radius: 20px; padding: 12px 16px; font-weight: 600; font-size: 12px; }
.ab-card { display: flex; align-items: center; gap: 11px; background: #fff; border: 1.5px solid #EAE2D0; border-radius: 22px; padding: 11px 13px; box-shadow: 0 3px 0 #EDE6D6; margin-bottom: 11px; }
.ab-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.ab-ic.lapis { background: #EAF1FF; color: #2E4FE3; }
.ab-ic.faience { background: #E5F6F2; color: #1F9A8A; }
.ab-ic.gold { background: #FCF0CE; color: #D89B12; }
.ab-tx { flex: 1; min-width: 0; }
.ab-tx b { display: block; font-weight: 700; font-size: 11.5px; color: #232C4E; }
.ab-tx i { display: block; font-style: normal; font-weight: 600; font-size: 8.5px; color: #757D9C; }
.ab-chev { color: #757D9C; }
.ab-assign { margin-top: auto; display: grid; place-items: center; min-height: 43px; border-radius: 22px; background: #F5B82E; box-shadow: 0 4px 0 #E9CF8C; font-weight: 700; font-size: 13px; }

/* A phone on a dark band: a light ring so the navy frame does not melt into the navy background. */
.cta-band .shot { border-color: #081B3F; box-shadow: 0 0 0 2px rgba(255,255,255,.28), 0 34px 70px -22px rgba(0,0,0,.55); }

/* Six tall phones in one row on wide screens; three, then two, as the page narrows. */
.shot-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .shot-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .shot-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Two full-size phones side by side. */
.shot-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(28px, 6vw, 96px); }
.shot-pair .shot-item { width: 300px; max-width: 100%; }

/* Three phones, kept to a modest width so the section stays calm. */
.shot-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 860px; margin-inline: auto; }
@media (max-width: 760px) { .shot-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .shot-grid-3 figcaption { font-size: .82rem; } }

/* A capture whose bottom tab bar has since been restyled: show the screen, not the old bar. */
.shot-notabs img { aspect-ratio: 1080 / 2150; object-fit: cover; object-position: top; }

/* ---- LIVE: "Your turn" — the only interactive thing on the page. It must not look like the screenshots or the
        bands: one white card on the page, three numbered steps that light up as you go, and the live phone. No character. ---- */
.try-it { position: relative; padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.try-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 80px); align-items: center;
  max-width: 1040px; margin-inline: auto; background: #fff; border-radius: 40px;
  padding: clamp(24px, 4vw, 56px) clamp(22px, 5vw, 72px);
  border: 2px solid var(--yolk); box-shadow: 0 0 0 8px rgba(254,210,8,.18), 0 40px 80px -40px rgba(11,58,126,.45);
}
.try-copy h2 { margin-top: 14px; }
.try-copy .lede { margin-top: 12px; color: #3C4568; }
.try-badge { display: inline-flex; align-items: center; gap: 9px; background: var(--navy); color: #fff; border-radius: 999px; padding: 7px 16px 7px 12px; font-family: var(--f-head); font-weight: 600; font-size: .92rem; }
.try-badge i { width: 10px; height: 10px; border-radius: 50%; background: #5BE38A; }

.try-steps { list-style: none; counter-reset: s; margin-top: 26px; display: grid; gap: 10px; }
.try-steps li {
  counter-increment: s; position: relative; padding: 14px 16px 14px 62px; border-radius: 20px;
  border: 1.5px solid var(--line); background: var(--papyrus); opacity: .62;
  transition: opacity .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.try-steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 700; color: var(--navy); background: #fff; border: 1.5px solid var(--line);
}
.try-steps b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.try-steps span { display: block; font-size: .9rem; color: var(--muted); }
.try-steps .qz-note { margin: 0; min-height: 0; text-align: left; font-size: .9rem; }
/* the step you are on */
.try-it[data-step="1"] .try-steps li[data-n="1"],
.try-it[data-step="2"] .try-steps li[data-n="2"],
.try-it[data-step="3"] .try-steps li[data-n="3"] { opacity: 1; background: #fff; border-color: var(--navy); box-shadow: var(--shadow-soft); }
.try-it[data-step="1"] .try-steps li[data-n="1"]::before,
.try-it[data-step="2"] .try-steps li[data-n="2"]::before,
.try-it[data-step="3"] .try-steps li[data-n="3"]::before { background: var(--yolk); border-color: var(--yolk); }
/* steps already done */
.try-it[data-step="2"] .try-steps li[data-n="1"], .try-it[data-step="3"] .try-steps li[data-n="1"], .try-it[data-step="3"] .try-steps li[data-n="2"] { opacity: .9; }
.try-it[data-step="2"] .try-steps li[data-n="1"]::before, .try-it[data-step="3"] .try-steps li[data-n="1"]::before, .try-it[data-step="3"] .try-steps li[data-n="2"]::before { content: "\2713"; background: var(--croc); border-color: var(--croc); color: #fff; }
/* the result colours step 3 */
.try-it[data-result="correct"] .try-steps li[data-n="3"] { border-color: var(--faience); background: var(--mint); }
.try-it[data-result="wrong"]   .try-steps li[data-n="3"] { border-color: var(--terra); background: var(--blush); }
.try-it[data-result] .try-steps .qz-note { color: var(--ink); font-weight: 600; }

.try-phone .shot { box-shadow: 0 30px 60px -24px rgba(11,58,126,.5), 0 0 0 2px rgba(11,58,126,.10); }
@media (prefers-reduced-motion: no-preference) {
  .try-badge i { animation: live-dot 1.8s ease-out infinite; }
  .try-it:not(.touched) .aq-grid .qz-tile { animation: tile-nudge 2.8s ease-in-out infinite; }
  .try-it:not(.touched) .aq-grid .qz-tile:nth-child(2) { animation-delay: .35s; }
  .try-it:not(.touched) .aq-grid .qz-tile:nth-child(3) { animation-delay: .7s; }
  .try-it:not(.touched) .aq-grid .qz-tile:nth-child(4) { animation-delay: 1.05s; }
}
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgba(91,227,138,.7); } 100% { box-shadow: 0 0 0 12px rgba(91,227,138,0); } }
@keyframes tile-nudge { 0%, 70%, 100% { transform: none; border-color: #EAE2D0; } 80% { transform: translateY(-4px); border-color: #2E4FE3; } }
@media (max-width: 860px) {
  .try-card { grid-template-columns: minmax(0, 1fr); justify-items: center; border-radius: 32px; }
  .try-copy { width: 100%; }
  .try-phone { order: -1; }
}
