/* Unlock: a focused course offer with Learn Britain's own learning-game art. */
#unlock {
  position: fixed;
  inset: 0;
  z-index: 26;
  display: none;
  overflow-y: auto;
  overflow-anchor: none;
  background: var(--paper);
  color: var(--ink);
  border-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) solid var(--paper);
  padding: 24px 18px calc(100px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}
#unlock.show { display: block; animation: panel-enter .26s ease both; }
.unlock-inner { display: grid; gap: 28px; max-width: 620px; margin: 0 auto; }
.unlock-inner > * { min-width: 0; }
.unlock-hero { text-align: center; align-self: center; }
.unlock-hero h1 { margin: 0 0 16px; font: 700 clamp(34px, 6vw, 46px)/1.08 Fredoka, Nunito, system-ui, sans-serif; letter-spacing: -.8px; color: var(--ink); outline: none; }
.unlock-lead { max-width: 42ch; margin: 0 auto; font-size: 17px; line-height: 1.6; font-weight: 600; color: var(--ink-2); }
.unlock-mascot-scene { position: relative; width: min(100%, 400px); height: 218px; margin: 24px auto 0; isolation: isolate; }
.unlock-mascot-halo { position: absolute; z-index: -1; width: 220px; height: 184px; bottom: 0; left: 50%; transform: translateX(-50%) rotate(-8deg); border-radius: 45% 55% 48% 52%; background: var(--brand-soft); }
.unlock-mascot-halo::before { content: ""; position: absolute; inset: -14px; border: 2px dashed var(--brand-soft-2); border-radius: inherit; }
.unlock-corgi { position: absolute; width: 206px; height: 206px; bottom: -2px; left: 50%; transform: translateX(-50%); object-fit: contain; }
.unlock-cheer { position: absolute; z-index: 1; top: 0; left: 50%; transform: translateX(-50%) rotate(-4deg); padding: 9px 16px; border: 2px solid var(--line-2); border-radius: 14px; background: var(--paper); font: 800 15px/1.3 Nunito, sans-serif; white-space: nowrap; box-shadow: 0 3px 0 var(--line-2); }
.unlock-cheer::after { content: ""; position: absolute; width: 10px; height: 10px; bottom: -7px; left: 35%; border-bottom: 2px solid var(--line-2); border-right: 2px solid var(--line-2); background: var(--paper); transform: rotate(45deg); }
.unlock-scene-icon { position: absolute; width: 48px; height: 48px; object-fit: contain; }
.unlock-scene-icon.is-book { left: 4%; top: 76px; transform: rotate(-14deg); }
.unlock-scene-icon.is-star { right: 4%; bottom: 34px; transform: rotate(14deg); }
.unlock-spark { position: absolute; color: #ffc21b; font-size: 25px; }
.unlock-spark.is-one { left: 14%; bottom: 22px; }
.unlock-spark.is-two { right: 13%; top: 40px; font-size: 18px; color: #1cb0f6; }

.unlock-card.is-full { position: relative; align-self: start; padding: 0 22px 20px; border: 2px solid #1cb0f6; border-radius: 24px; background: var(--paper); box-shadow: 0 5px 0 #089bdb; }
.unlock-offer-banner { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 -22px 22px; padding: 11px 16px; border-radius: 21px 21px 0 0; background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; font-weight: 850; }
.unlock-offer-banner img { flex: none; width: 28px; height: 28px; object-fit: contain; }
.unlock-card-head h2 { margin: 0; color: var(--ink); font: 700 29px/1.2 Fredoka, Nunito, sans-serif; }
.unlock-card-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.unlock-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; color: var(--ink); }
.unlock-price b { font: 700 56px/1.05 Fredoka, Nunito, sans-serif; letter-spacing: -1.5px; }
.unlock-price span { font-size: 14px; font-weight: 750; color: var(--ink-2); }
.unlock-payment-note { margin: 6px 0 18px; color: var(--brand-ink); font-size: 14px; line-height: 1.5; font-weight: 800; }
.unlock-list { list-style: none; margin: 0; padding: 0; }
.unlock-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.unlock-tick { flex: 0 0 22px; width: 22px; height: 22px; color: #1cb0f6; }
.unlock-included-note { margin: 8px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; font-weight: 600; }
.unlock-checkout-note { text-align: center; margin: 10px 0 0; color: var(--ink-2); font-size: 12px; font-weight: 650; }
.unlock-honest { margin: 18px 0 0; padding: 14px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; line-height: 1.5; }

.unlock-benefits { padding: 14px 0; }
.unlock-benefits h2 { margin: 0 0 26px; text-align: center; font: 700 26px/1.25 Fredoka, Nunito, sans-serif; color: var(--ink); }
.unlock-benefit-grid { display: grid; gap: 24px; }
.unlock-benefit { display: grid; grid-template-columns: 56px 1fr; align-content: start; column-gap: 16px; }
.unlock-benefit img { grid-row: 1 / 3; width: 56px; height: 56px; object-fit: contain; }
.unlock-benefit h3 { margin: 0 0 6px; font: 850 17px/1.3 Nunito, sans-serif; color: var(--ink); }
.unlock-benefit p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.unlock-card.is-free { padding-top: 24px; border-top: 2px solid var(--line-1); }
.unlock-card.is-free h2 { font-size: 22px; }
.unlock-card.is-free .unlock-keep { width: auto; margin-top: 18px; padding: 10px 18px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.unlock-free-details { margin-top: 18px; color: var(--ink-2); font-size: 14px; }
.unlock-free-details summary { width: fit-content; min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 750; text-underline-offset: 4px; }
.unlock-free-details summary:hover { color: var(--brand-ink); }
.unlock-free-details summary:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 3px; border-radius: 4px; }
.unlock-free-details .unlock-list { padding: 12px 16px; margin-top: 8px; border-radius: 14px; background: var(--panel); }

/* The hit area contains the face at both heights. Only the face sinks; the
   base stays below it, just like the lesson buttons. */
.unlock-cta-wrap { position: relative; margin-top: 20px; isolation: isolate; }
.unlock-cta {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0 0 6px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #754609;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
  user-select: none;
}
.unlock-cta::before {
  content: "";
  position: absolute;
  inset: 6px 0 0;
  border-radius: inherit;
  background: #efb315;
  box-shadow: 0 2px 0 #ce9209;
  pointer-events: none;
}
/* Moving descendants must not change the hit target near the upper edge. */
.unlock-cta * { pointer-events: none; }
/* Match the navbar's golden corgi: lemon rim, amber face and broad shine bands. */
.unlock-cta-face {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 72px; padding: 10px 11px; border: 5px solid transparent; border-radius: inherit;
  background:
    linear-gradient(134deg, transparent 0 20%, #fff39485 20% 28%, transparent 28% 65%, #fff39475 65% 73%, transparent 73%) padding-box,
    linear-gradient(150deg, #ffe25b, #ffc21b 48%, #ffd139 80%, #ffbf12) padding-box,
    linear-gradient(150deg, #fff18a, #ffe44e 55%, #ffd333) border-box;
  box-shadow: inset 0 2px 0 #fff49a, inset 0 -2px 0 #efb318;
  transform: translateY(0);
  transition: transform .1s var(--ease), box-shadow .1s var(--ease), filter .1s var(--ease);
}
.unlock-cta:not(:disabled):hover .unlock-cta-face { filter: brightness(1.045); }
.unlock-cta.is-pressed:not(:disabled) .unlock-cta-face,
.unlock-cta:not(:disabled):active .unlock-cta-face { transform: translateY(6px); box-shadow: inset 0 2px 0 #ffe97a; }
.unlock-cta-emblem { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff08b; box-shadow: 0 2px 0 #e7b322; transform: rotate(-8deg); transition: transform .4s cubic-bezier(.22, 1.7, .48, 1); }
.unlock-cta-emblem img { display: block; width: 32px; height: 32px; }
.unlock-cta.is-pressed .unlock-cta-emblem { transform: rotate(-16deg) scale(.88); }
.unlock-cta-label { flex: 1; text-align: center; }
.unlock-cta-arrow { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.unlock-cta-arrow { transition: transform .3s cubic-bezier(.22, 1.7, .48, 1); }
.unlock-cta.is-pressed .unlock-cta-arrow { transform: translateX(4px) scale(.9); }
.unlock-cta:disabled { opacity: 1; cursor: default; }
.unlock-cta:focus-visible { outline: 3px solid #1289b9; outline-offset: 4px; }
.unlock-keep, .unlock-gate-secondary {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 2px solid var(--line-2);
  border-radius: 16px;
  background: var(--paper);
  color: var(--brand-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 var(--line-2);
  cursor: pointer;
}
.unlock-keep:active, .unlock-gate-secondary:active { transform: translateY(4px); box-shadow: none; }

.unlock-checkout-status { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); color: var(--ink-2); font-size: 14px; font-weight: 700; line-height: 1.45; }

.unlock-smallprint { margin: 8px 0 0; font-size: 12px; font-weight: 650; line-height: 1.5; color: var(--ink-3); text-align: center; }
.unlock-smallprint a { color: var(--brand-ink); }

/* ---------- the gate ---------- */
.unlock-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 0;
  background: rgb(7 24 39 / 55%);
  animation: unlock-gate-in .2s ease both;
}
.unlock-gate-card {
  width: 100%;
  max-width: 540px;
  max-height: 100%;
  overflow-y: auto;
  padding: 22px 20px calc(22px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  border-radius: 24px 24px 0 0;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 -8px 30px rgb(0 0 0 / 18%);
  animation: unlock-gate-rise .26s var(--ease) both;
}
.unlock-gate-corgi { display: block; width: 130px; height: 130px; margin: 0 auto 4px; object-fit: contain; }
.unlock-gate-lock { display: grid; place-items: center; width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 50%; background: #e6ecf2; color: #46566a; }
.unlock-gate-lock svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.unlock-gate-card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; letter-spacing: -.2px; line-height: 1.2; text-wrap: balance; }
.unlock-gate-card > p { margin: 0 0 4px; font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--ink-2); }
.unlock-gate-card .unlock-list { text-align: left; margin: 8px auto 16px; max-width: 320px; }
.unlock-gate-card .unlock-list li { padding: 5px 0; font-size: 14px; }
body.unlock-gate-open { overflow: hidden; }
@keyframes unlock-gate-in { from { opacity: 0; } }
@keyframes unlock-gate-rise { from { transform: translateY(24px); opacity: 0; } }

@media (min-width: 720px) {
  .unlock-gate { place-items: center; padding: 24px; }
  .unlock-gate-card { border-radius: 24px; padding-bottom: 22px; }
}

@media (min-width: 960px) {
  #unlock { left: var(--desktop-rail, 0px); padding: clamp(28px, 3.4vw, 64px) clamp(24px, 3.4vw, 64px) 36px; }
  .unlock-inner { width: 100%; max-width: none; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); column-gap: clamp(28px, 4vw, 80px); row-gap: 42px; }
  .unlock-hero h1 { font-size: clamp(40px, 3.9vw, 64px); }
  .unlock-lead { font-size: 18px; padding-inline: 10px; }
  .unlock-mascot-scene { height: 288px; margin-top: 24px; }
  .unlock-mascot-halo { width: 292px; height: 238px; }
  .unlock-corgi { width: 280px; height: 280px; }
  .unlock-cheer { font-size: 17px; }
  .unlock-scene-icon { width: 58px; height: 58px; }
  .unlock-scene-icon.is-book { top: 100px; left: 0; }
  .unlock-scene-icon.is-star { bottom: 45px; right: 0; }
  .unlock-card.is-full { padding-inline: clamp(24px, 2.5vw, 42px); padding-bottom: 26px; }
  .unlock-offer-banner { margin-inline: calc(-1 * clamp(24px, 2.5vw, 42px)); }
  .unlock-list li { font-size: 16px; }
  .unlock-benefits { grid-column: 1 / -1; padding: 30px 0 8px; border-top: 2px solid var(--line-1); }
  .unlock-benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
  .unlock-benefit { display: block; text-align: center; }
  .unlock-benefit img { width: 64px; height: 64px; margin-bottom: 10px; }
  .unlock-benefit p { max-width: 34ch; margin-inline: auto; }
  .unlock-card.is-free { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: center; }
  .unlock-card.is-free .unlock-keep { margin: 0; }
  .unlock-free-details { grid-column: 1 / -1; margin-top: 8px; }
  .unlock-free-details .unlock-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .unlock-smallprint { grid-column: 1 / -1; margin: -16px 0 0; }
  .unlock-inner > .payment-panel, .unlock-inner > p { grid-column: 1 / -1; }
}
@media (max-width: 959px) {
  .unlock-hero { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 14px 8px; text-align: left; align-items: center; }
  .unlock-hero-copy { display: contents; }
  .unlock-hero h1 { grid-column: 1; margin: 0; font-size: clamp(28px, 6vw, 40px); }
  .unlock-lead { grid-column: 1 / -1; grid-row: 2; max-width: none; font-size: 15px; line-height: 1.5; }
  .unlock-mascot-scene { grid-column: 2; grid-row: 1; width: 120px; height: 140px; margin: 0; }
  .unlock-mascot-halo { width: 112px; height: 104px; bottom: 5px; }
  .unlock-mascot-halo::before { inset: -5px; }
  .unlock-corgi { width: 142px; height: 142px; }
  .unlock-cheer, .unlock-scene-icon, .unlock-spark { display: none; }
  .unlock-card.is-full .unlock-list li { padding-block: 7px; }
}
@media (max-width: 359px) {
  #unlock { padding-inline: 14px; }
  .unlock-hero { grid-template-columns: minmax(0, 1fr) 100px; }
  .unlock-hero h1 { font-size: 28px; }
  .unlock-mascot-scene { width: 100px; }
  .unlock-mascot-halo { width: 88px; height: 94px; }
  .unlock-corgi { width: 120px; height: 120px; }
  .unlock-card.is-full { padding-inline: 16px; }
  .unlock-offer-banner { margin-inline: -16px; font-size: 12px; }
  .unlock-price b { font-size: 48px; }
  .unlock-card.is-full .unlock-cta-emblem { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #unlock.show, .unlock-gate, .unlock-gate-card { animation: none; }
  .unlock-cta, .unlock-keep { transition: none; }
  .unlock-cta-face, .unlock-cta-emblem, .unlock-cta-arrow { transition: none; }
  .unlock-cta.is-pressed:not(:disabled) .unlock-cta-face, .unlock-cta:not(:disabled):active .unlock-cta-face { transform: translateY(0); filter: brightness(.94); }
  .unlock-cta.is-pressed .unlock-cta-emblem { transform: rotate(-8deg); }
  .unlock-cta.is-pressed .unlock-cta-arrow { transform: none; }
}
