/* The shared lesson page, getspringle.com/l/<id> (docs/65): the site's dark ground, the lesson's paper board in the
   middle, its takeaway as a sticky note, and every step in words below. */
/* Keyboard focus inside the player must not start a page scroll that moves the next clicked control. */
html.pg-lesson { scroll-behavior: auto; }
.pg-lesson main.lesson { max-width: 900px; margin: 0 auto; padding: 120px 20px 40px; }
.lesson-msg { text-align: center; padding: 80px 0 40px; }
.lesson-msg h1 { font: 400 clamp(34px, 6vw, 52px)/1.05 'Instrument Serif', serif; margin: 0 0 14px; }
.lesson-msg p { color: var(--ink-2); margin: 0 0 24px; }

/* The menu stays at the top of the page here. Floating, it sat over the lesson as the page was scrolled to it: the
   lesson's own title was under it, and the page's heading showed in the gap above it (16 November 2026). */
.pg-lesson .nav { position: absolute; }

.lesson-head { text-align: center; margin-bottom: 26px; }
.lesson-head .eyebrow { margin: 0 0 10px; font: 600 13px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.lesson-head h1 { font: 400 clamp(34px, 6vw, 58px)/1.04 'Instrument Serif', serif; margin: 0 auto; max-width: 18ch; text-wrap: balance; }
.lesson-head .asked { margin: 14px auto 0; max-width: 52ch; color: var(--ink-2); font-style: italic; }
.lesson-head .meta { margin: 10px 0 0; color: var(--ink-3); font-size: 14px; }

.stage { position: relative; width: min(100%, 680px); height: min(78vh, 760px); min-height: 520px; margin: 0 auto; border-radius: 20px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06), 0 -34px 130px -44px var(--scene-top, transparent), 0 44px 140px -44px var(--scene-bottom, transparent);
  background: #FCF8F3; transition: box-shadow .6s ease; }
/* A soft light round the card in the colours its scene has at the top and at the foot (player.js, `ground`), changing
   with each step: the card belongs to its page (24 November 2026). */
@media (prefers-reduced-motion: reduce) { .stage { transition: none; } }
.stage.tall { width: min(100%, 580px); height: min(88vh, 1080px); }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 20px; background: transparent; }
/* Sized to its lesson by the page (player.js `fit`): its width and height are set there. */
.stage.fitted { min-height: 0; max-width: 100%; }
/* Play on the picture's middle, Watch again just inside its foot (`fit` says where those are): both were over the
   step's words under the picture. */
.stage .start, .stage .again { position: absolute; left: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: #23232B; color: #FCF8F3; font: 650 16px/1 var(--font); cursor: pointer;
  white-space: nowrap; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .14); transition: transform .2s, background .2s; }
.stage .start { top: var(--picture-middle, 46%); transform: translate(-50%, -50%); }
.stage .again { bottom: calc(var(--under-picture, 110px) + 18px); transform: translateX(-50%); }
.stage .start:hover { transform: translate(-50%, -50%) translateY(-1px); background: #000; }
.stage .again:hover { transform: translateX(-50%) translateY(-1px); background: #000; }
.stage .start[hidden], .stage .again[hidden] { display: none; }

.takeaway { position: relative; max-width: 560px; margin: 34px auto 0; padding: 20px 24px 22px; border-radius: 4px 4px 18px 4px; background: #FFE89A; color: #3B320F;
  transform: rotate(-.6deg); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); }
.takeaway .label { display: block; font: 700 11.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; opacity: .6; margin-bottom: 8px; }
.takeaway p { margin: 0; font: 600 19px/1.4 var(--font); }
.source { text-align: center; color: var(--ink-3); font-size: 14px; margin: 20px 0 0; }
.source a { color: var(--ink-2); }

.every-step { margin: 64px auto 0; max-width: 720px; }
.every-step h2, .lesson-cta h2 { font: 400 34px/1.1 'Instrument Serif', serif; margin: 0 0 18px; }
.every-step ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.every-step li { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, box-shadow .25s; }
.every-step li:not(:has(img)) { grid-template-columns: 1fr; }
.every-step li.now { background: rgba(255, 232, 154, .07); box-shadow: inset 0 0 0 1px rgba(255, 232, 154, .3); }
.every-step img { width: 100%; border-radius: 10px; background: #FCF8F3; }
.every-step h3 { margin: 2px 0 6px; font: 650 17px/1.3 var(--font); display: flex; gap: 8px; align-items: baseline; }
.every-step .go { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--ink); font-size: 10px; cursor: pointer; transform: translateY(-2px); }
.every-step .go:hover { background: rgba(255, 255, 255, .16); }
.every-step p { margin: 0 0 8px; color: var(--ink-2); line-height: 1.55; }
.every-step p.note { color: #FFE89A; font-weight: 600; }
.every-step blockquote { margin: 6px 0 0; padding-left: 12px; border-left: 2px solid var(--line-2); color: var(--ink-3); font-style: italic; }

.lesson-cta { margin: 72px auto 0; max-width: 720px; padding: 32px; border-radius: 22px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.lesson-cta p { color: var(--ink-2); max-width: 52ch; margin: 0 auto 22px; }
.lesson-cta .cta-row { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.lesson-cta .invite { color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
.lesson-cta .invite b { color: var(--ink); letter-spacing: .02em; }
.lesson-cta .invite[hidden] { display: none; }

@media (max-width: 640px) {
  .pg-lesson main.lesson { padding: 96px 16px 32px; }
  .stage { height: 74vh; min-height: 460px; border-radius: 16px; }
  .stage iframe { border-radius: 16px; }
  .every-step li { grid-template-columns: 1fr; }
  .lesson-cta { padding: 24px 18px; }
}
/* On a phone the privacy button floated over the lesson's Back and Next: here it sits at the foot of the page. */
@media (max-width: 760px) {
  html.pg-lesson .measurement-settings { position: static; display: block; margin: 0 auto 24px; }
}
@media (prefers-reduced-motion: reduce) { .takeaway { transform: none; } }

/* A lesson that is in the Library (api/lesson.js): where it sits, more on its topic, and a way to report it. */
.shelf-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; font-size: 13.5px; color: var(--ink-3); }
.shelf-crumbs a { color: inherit; text-decoration: none; }
.shelf-crumbs a:hover { color: var(--ink); }
.shelf-crumbs [aria-current] { color: var(--ink-2); }
.shelf-more { margin: 64px auto 0; max-width: 720px; }
.shelf-more h2 { margin: 0 0 14px; font: 400 30px/1.1 'Instrument Serif', serif; }
.shelf-more ol { list-style: none; margin: 0; padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); }
.shelf-more a.row { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.shelf-more a.row:hover { background: rgba(255, 255, 255, .05); }
.shelf-more .row-pic { width: 86px; height: 54px; flex: none; border-radius: 9px; overflow: hidden; background: #FCF8F3; }
.shelf-more .row-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shelf-more .row-words { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shelf-more .row-title { font-size: 15px; font-weight: 500; line-height: 1.25; }
.shelf-more .row-meta { font-size: 12.5px; color: var(--ink-3); }
.shelf-more .row-n { width: 20px; flex: none; text-align: center; font-size: 12px; color: var(--ink-3); }
.shelf-more .row.now { background: rgba(255, 255, 255, .07); }
.shelf-more .all { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.report { margin: 40px auto 0; max-width: 720px; font-size: 13.5px; color: var(--ink-3); }
.report summary { cursor: pointer; width: max-content; }
.report summary:hover { color: var(--ink-2); }
.report form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.report label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); cursor: pointer; }
.report label:has(input:checked) { background: var(--ink); color: #0a0a0b; }
.report input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.report textarea { flex-basis: 100%; min-height: 64px; padding: 10px 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--ink); font: inherit; resize: vertical; }
.report button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: #0a0a0b; font-weight: 600; cursor: pointer; }
.report button:disabled { opacity: .5; cursor: default; }
.report .said { flex-basis: 100%; margin: 4px 0 0; color: var(--ink-2); }

/* Inside Springle's apps (api/lesson.js forApp): the lesson fills the screen, nothing of the website around it. */
.in-app .nav, .in-app .foot, .in-app .glow-top, .in-app .lesson-cta, .in-app .shelf-crumbs, .in-app .shelf-more { display: none; }
.in-app main.lesson { padding: calc(env(safe-area-inset-top) + 8px) 10px calc(env(safe-area-inset-bottom) + 24px); }
.in-app .lesson-head { margin-bottom: 12px; }
.in-app .lesson-head .eyebrow { display: none; }
.in-app .lesson-head h1 { font-size: clamp(26px, 7vw, 40px); }
.in-app .stage { height: calc(100vh - 150px); height: calc(100dvh - 150px); min-height: 360px; }

/* ---------- Made with Springle: one quiet line under the title (26 November 2026) ---------- */
.lesson-head .made { display: inline-flex; align-items: center; gap: 9px; margin: 16px 0 0; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: 500 13.5px/1.3 var(--font); text-align: left; }
.lesson-head .made a { color: var(--ink); font-weight: 650; text-decoration: none; }
.lesson-head .made a:hover { text-decoration: underline; text-underline-offset: 3px; }
.made-orb, .ec-orb { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); }
.made-orb i, .ec-orb i { width: 3.2px; height: 6.4px; border-radius: 2px; background: #0a0a0b; animation: ec-blink 5.5s infinite; }
@keyframes ec-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.15); } }

/* ---------- The end card: a beat after the lesson ends, "make your own" (lesson/end-card.js) ---------- */
.stage iframe { transition: filter .5s ease; }
.stage.ended iframe { filter: blur(2px) saturate(.8); }
.stage.ended .again { visibility: hidden; }
.end-card { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; border-radius: inherit; overflow: auto;
  background: radial-gradient(120% 80% at 50% 0%, rgba(60, 227, 164, .12), transparent 60%), rgba(9, 9, 11, .8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); text-align: center; align-content: safe center;
  opacity: 0; transition: opacity .45s ease; }
.end-card.in { opacity: 1; }
.end-card[hidden] { display: none; }
.ec-in { width: min(100%, 440px); transform: translateY(14px); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.end-card.in .ec-in { transform: none; }
.ec-orb { width: 46px; height: 46px; gap: 6px; margin-bottom: 18px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .05), 0 18px 50px -12px rgba(60, 227, 164, .5); }
.ec-orb i { width: 7px; height: 15px; border-radius: 4px; }
.end-card h2 { max-width: none; margin: 0 auto 12px; text-align: center; font: 400 clamp(32px, 5.4vw, 44px)/1.02 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.end-card h2 em { font-style: italic; color: var(--listen); }
.ec-lede { margin: 0 auto 24px; max-width: 36ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.ec-main { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ec-main .btn { min-width: 250px; }
.ec-store img { display: block; height: 52px; width: auto; }
.ec-fine { margin: 12px 0 0; color: var(--ink-3); font-size: 13px; }
.ec-invite { display: inline-block; margin-top: 10px; color: var(--ink-2); font-size: 14px; text-decoration: none; }
.ec-invite b { color: var(--ink); letter-spacing: .02em; }
.ec-invite[hidden] { display: none; }
.ec-row { display: flex; justify-content: center; gap: 6px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.ec-link { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 550 14px/1 var(--font); cursor: pointer; transition: background .2s, color .2s; }
.ec-link:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
.ec-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Which door: a computer gets the Mac button (download.js turns it into Windows or the waiting list where it must);
   an iPhone or iPad gets Springle for iPhone first, and the Mac link as the quieter second. */
.end-card[data-device="computer"] .ec-store, .end-card[data-device="computer"] .ec-iph, .end-card[data-device="computer"] .ec-for-iphone { display: none !important; }
.end-card[data-device="iphone"] .ec-for-computer { display: none; }
.end-card[data-device="iphone"] .ec-mac { order: 2; height: 46px; background: rgba(255, 255, 255, .06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.ec-main [hidden], .ec-fine [hidden] { display: none !important; }
@media (max-width: 760px) {
  .end-card { padding: 16px; }
  .ec-orb { display: none; }
  .end-card h2 { font-size: 30px; margin-bottom: 10px; }
  .ec-lede { font-size: 14px; margin-bottom: 16px; }
  .ec-main .btn { min-width: 0; width: 100%; height: 48px; font-size: 15px; }
  .end-card[data-device="iphone"] .ec-mac { height: 42px; }
  .ec-fine { margin-top: 10px; font-size: 12.5px; }
  .ec-invite { margin-top: 6px; font-size: 13px; }
  .ec-row { margin-top: 12px; padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .end-card, .ec-in, .stage iframe { transition: none; } .made-orb i, .ec-orb i { animation: none; } }
.in-app .end-card, .in-app .lesson-head .made, .in-app .cta-more { display: none !important; }

/* ---------- Make your own, under every step ---------- */
.lesson-cta .cta-k { margin: 0 0 10px; font: 600 12.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--listen); }
.lesson-cta h2 { max-width: 22ch; margin-inline: auto; text-align: center; text-wrap: balance; }
.lesson-cta h2 em { font-style: italic; }
.lesson-cta .cta-more { margin: 20px auto 0; font-size: 14px; color: var(--ink-3); }
.lesson-cta .cta-more a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.lesson-cta .cta-more .cta-home { display: block; margin-top: 6px; }
