/* Original course free-offer styling and animation. */
.free-type-stable{position:relative}
.free-type-reserve{visibility:hidden;pointer-events:none}
.free-type-ink{position:absolute;inset:0;white-space:inherit}
.free-lesson-card {
  position: absolute;
  inset: 12px;
  margin: auto;
  height: fit-content;
  max-width: 540px;
  width: calc(100% - 24px);
  padding: 40px 60px 40px;
  box-sizing: border-box;
  background: transparent;
  color: #183552;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
  z-index: 5;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
  animation: none;
}
.free-lesson-card::after { content: ""; position: absolute; inset: -8px; z-index: -2; border-radius: 14px; background: #142038; pointer-events: none; }
@media (min-width: 821px) {
  .start-player-canvas > .free-lesson-card { max-width: 600px; padding: 34px 62px; transform: scale(.94); transform-origin: center; }
  .start-player-canvas .free-lesson-card h2 { font-size: 38px; }
  .start-player-canvas .free-lesson-features strong { font-size: 18px; line-height: 1.2; min-height: 1.2em; }
  .start-player-canvas .free-lesson-features small { font-size: 14px; line-height: 1.3; min-height: 2.6em; margin-top: 3px; }
  .start-player-canvas .free-lesson-features > div { padding-block: 8px; }
  .start-player-canvas .free-lesson-start { font-size: 17px; }
}
.start-player-canvas .player-start-brand { transition: opacity 600ms ease; }
.start-player-canvas:has(.free-lesson-card:not([hidden])) .player-start-brand { opacity: .12; }
.free-lesson-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("./assets/shared-scroll.webp") center / 100% 100% no-repeat, linear-gradient(#fffdf5, #fffdf5) center / 80% 85% no-repeat; filter: drop-shadow(0 16px 20px #0005); animation: free-offer-unroll .9s cubic-bezier(.16,.72,.14,1) 1.05s both; }
.free-lesson-content { animation: free-offer-content .25s ease-out 1.8s both; }
.free-lesson-scroll-throw { position: absolute; width: 110px; height: 160px; object-fit: contain; left: 50%; top: 50%; pointer-events: none; animation: free-offer-throw 1.1s ease-in-out both; }
.free-lesson-content .free-lesson-topic { margin: 12px 0; min-height: 1.4em; font-size: 14px; font-weight: 600; }
.free-lesson-eyebrow { position: relative; top: 10px; color: #64788b; letter-spacing: .15em; font-size: 10px; font-weight: 800; min-height: 14px; padding: 0 22px; }
.free-lesson-card h2 { color: #183552; font-size: clamp(28px, 3vw, 36px); letter-spacing: -.04em; line-height: 1.08; margin: 12px 0 16px; min-height: 2.16em; text-wrap: balance; }
.free-lesson-value { display: flex; align-items: center; justify-content: center; gap: 16px; border-block: 1px solid #d9e4ec; padding: 12px 0; }
.free-lesson-value > strong { font-size: 42px; line-height: 1; letter-spacing: -.05em; color: #a46018; white-space: nowrap; }
.free-lesson-value small { font-size: 22px; }
.free-lesson-value > span { font-size: 13px; max-width: 160px; text-align: left; min-height: 2.6em; display: flex; align-items: center; }
.free-lesson-card > .free-lesson-topic { margin: 14px 0; min-height: 1.4em; font-size: 14px; font-weight: 600; }
.free-lesson-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.free-lesson-features > div { display: flex; align-items: flex-start; gap: 8px; padding: 11px 8px; border: 1px solid #dce6ed; background: #ffffffb3; border-radius: 9px; text-align: left; min-height: 76px; box-sizing: border-box; font-size: 14px; line-height: 1.4; }
.free-lesson-number { color: #9e6a29; font-size: 10px; font-weight: 800; padding-top: 3px; }
.free-lesson-features strong { display: block; min-height: 1.4em; font-size: 14px; color: #183552; }
.free-lesson-features small { display: block; min-height: 2.8em; color: #64788b; font-size: 11px; }
.free-lesson-note { display: block; margin-top: 10px; min-height: 1.4em; font-size: 11px; color: #64788b; }
.free-lesson-close { position: absolute; right: 38px; top: 20px; border: 0; background: #fff9e8; border-radius: 50%; color: #24466a; font-size: 28px; width: 36px; height: 36px; cursor: pointer; z-index: 2; }
.free-lesson-start, .free-lesson-reopen { border: 0; border-radius: 14px; padding: 14px 18px; background: #245d90; color: #fff; font: 700 16px/1.4 "Segoe UI", sans-serif; cursor: pointer; }
.free-lesson-start { width: 100%; background: #183f65; box-shadow: 0 5px 12px #183f6520; border-radius: 9px; }
.free-lesson-reopen { position: absolute; bottom: 18px; z-index: 5; }
.free-lesson-card button:focus-visible, .free-lesson-reopen:focus-visible { outline: 3px solid #245d90; outline-offset: 3px; }
@keyframes free-lesson-appear { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes free-offer-unroll { from { opacity: 0; transform: scaleX(.04); } to { opacity: 1; transform: scaleX(1); } }
@keyframes free-offer-content { from { opacity: 0; } to { opacity: 1; } }
@keyframes free-offer-throw { 0% { opacity: 0; transform: translate(180%, -120%) scale(.12) rotate(-60deg); } 15% { opacity: 1; } 85% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(720deg); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1) rotate(720deg); } }
@media (max-width: 820px) {
  .chalk-app > .free-lesson-card { position: fixed; inset: 70px 4px auto; width: calc(100% - 8px); max-height: calc(100dvh - 88px); overflow-y: auto; padding: 36px 36px 34px; z-index: 50; }
  .chalk-app > .free-lesson-card::before { filter: drop-shadow(0 12px 14px #14203866); }
  .chalk-app:has(> .free-lesson-card:not([hidden]))::after { content: ""; position: fixed; inset: 60px 0 0; background: #142038db; z-index: 40; animation: free-offer-content .25s both; pointer-events: none; }
  .free-lesson-close { right: 25px; top: 12px; }
  .chalk-app > .free-lesson-reopen { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); z-index: 10; }
}
@media (prefers-reduced-motion: reduce) { .free-lesson-card, .free-lesson-card::before, .free-lesson-content, .chalk-app:has(> .free-lesson-card:not([hidden]))::after { animation: none; } .free-lesson-scroll-throw { display: none; animation: none; } .start-player-canvas::after, .start-player-canvas .player-start-brand { transition: none; } }
