/* Homepage showcase: lesson window, counts, flashcard stack, AI marking. */
.kicker { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--pink); margin-bottom: 14px; letter-spacing: .01em; }

/* lesson window */
.lw { margin: 0; background: var(--stage); border-radius: var(--r-l); overflow: hidden; position: relative;
      box-shadow: 0 40px 80px -36px rgba(22, 20, 43, .7), 0 0 0 1px rgba(255, 255, 255, .04); }
.lw::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(229, 72, 127, .22), transparent); pointer-events: none; }
.lw-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(200, 215, 240, .08); position: relative; }
.lw-dots { display: flex; gap: 6px; flex: none; }
.lw-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.lw-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.lw-tabs button { border: 0; background: transparent; color: #a9a6c3; font: 600 13px var(--sans); padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.lw-tabs button:hover { color: #fff; }
.lw-tabs button[aria-selected="true"] { background: rgba(229, 72, 127, .18); color: #ffd6e5; }
.lw-stage { position: relative; aspect-ratio: 16 / 9; background: var(--stage); }
.lw-stage .player { border-radius: 0; background: var(--stage); }
.lw-stage .stage { position: relative; aspect-ratio: 16 / 9; }
.lw-stage .stage canvas { width: 100%; height: 100%; display: block; cursor: default; }
.lw-stage .player.preview .transport, .lw-stage .player.preview .stage-note, .lw-stage .player.preview .bigplay, .lw-stage .player-notice, .lw-stage .wm { display: none !important; }
.lw-poster { position: absolute; inset: 0; display: grid; place-items: center; gap: 10px; color: #8f8bab; font-size: 14px; grid-auto-flow: column; }
.lw-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); animation: lwp 1.2s ease-in-out infinite; }
@keyframes lwp { 50% { opacity: .25; transform: scale(.7); } }
.lw-cap { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #c9c6dc; font-size: 13.5px; border-top: 1px solid rgba(200, 215, 240, .08); flex-wrap: wrap; position: relative; }
.lw-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; font-size: 12px; background: rgba(229, 72, 127, .9); padding: 2px 9px; border-radius: 999px; }
.lw-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: lwp 1.6s ease-in-out infinite; }
#lwTitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-cap a { color: #ffb3cd; font-weight: 600; text-decoration: none; }
.lw-cap a:hover { color: #fff; }

/* counts */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin-top: -40px; margin-bottom: 110px; }
.stats > div { padding: 22px 24px; border-left: 1.5px solid var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 15px; max-width: 24ch; }

/* showcase sections */
.sx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-bottom: 120px; }
.sx h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; }
.sx-copy > p { color: var(--ink-2); margin-top: 16px; font-size: 17px; max-width: 52ch; }
.sx-copy > p.kicker { color: var(--pink); font-size: 14px; margin-top: 0; }
.sx-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.sx-list li { padding-left: 28px; position: relative; color: var(--ink-2); }
.sx-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.sx-list b { color: var(--ink); }

/* flashcard stack */
.deck-stage { position: relative; min-height: 470px; display: grid; justify-items: center; align-content: center; padding: 30px 10px 10px; }
.deck-stage::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 40px; background: radial-gradient(closest-side, var(--accent-soft), transparent); z-index: 0; }
.deck-back, .deck-card { width: min(440px, 100%); border-radius: 18px; background: #FBFAF7; border: 1px solid #E6E3DC; }
.deck-back { position: absolute; top: 46px; height: 330px; z-index: 1; box-shadow: 0 10px 30px -18px rgba(27, 26, 46, .4); }
.deck-back.b1 { transform: rotate(-3deg) translateY(8px); }
.deck-back.b2 { transform: rotate(4deg) translateY(16px); opacity: .7; }
#deckStage .deck-card { position: relative; z-index: 2; min-height: 330px; padding: 18px 20px 22px; box-shadow: 0 30px 60px -30px rgba(27, 26, 46, .45); cursor: pointer; font-size: 17px;
             transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .45s; }
#deckStage .deck-card.in { animation: cardin .45s cubic-bezier(.2, .8, .2, 1); }
#deckStage .deck-card.out { transform: translateX(-130%) rotate(-12deg); opacity: 0; }
#deckStage .deck-card.flipped { animation: flip .5s ease; }
@keyframes cardin { from { transform: translateY(26px) scale(.96); opacity: 0; } }
@keyframes flip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
#deckStage .deck-card img { max-height: 210px; width: auto; }
#deckStage .deck-card .st-q { font-size: 18px; }
.deck-rate { position: relative; z-index: 2; display: flex; gap: 8px; margin-top: 18px; }
.deck-rate span { font: 600 13px var(--sans); padding: 7px 14px; border-radius: 10px; background: var(--paper); border: 1.5px solid var(--line); color: var(--ink-3); transition: all .2s; }
.deck-rate .good.on { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* AI marking example */
.mark-demo { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-l); padding: 26px; box-shadow: 0 30px 60px -36px rgba(27, 26, 46, .35); display: grid; gap: 16px; min-height: 420px; align-content: start; }
.md-tag { font: 600 12px var(--sans); color: var(--accent-ink); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.md-q p { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.35; }
.md-a { background: var(--porcelain); border-radius: var(--r-s); padding: 14px 16px; min-height: 96px; }
.md-label { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.md-a p { margin-top: 6px; color: var(--ink); }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--pink); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.md-r { border-top: 1.5px dashed var(--line); padding-top: 14px; display: grid; gap: 10px; animation: cardin .4s ease; }
.md-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.md-head b { font-family: var(--display); font-size: 26px; color: var(--ink); }
.md-r p { display: grid; grid-template-columns: 26px 1fr; gap: 6px; font-size: 15px; color: var(--ink-2); animation: cardin .35s ease; }
.md-r p span.t { width: auto; height: auto; display: block; border-radius: 0; font-size: 15px; font-weight: 400; color: var(--ink-2); }
.md-r p span:first-child { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
.md-r p.ok span:first-child { background: var(--accent); }
.md-r p.no span:first-child { background: var(--pink); }
.md-r p.tip { display: block; background: var(--brand-soft); color: var(--brand-2); border-radius: var(--r-s); padding: 10px 12px; font-size: 14px; }
.tutor-demo { margin-top: 26px; background: var(--stage); color: #e7e5f3; border-radius: var(--r-m); padding: 18px; display: grid; gap: 10px; max-width: 520px; }
.tutor-demo .tq { justify-self: end; background: var(--brand); color: #fff; padding: 9px 14px; border-radius: 16px 16px 4px 16px; font-size: 15px; max-width: 85%; }
.tutor-demo .ta { background: var(--stage-2); padding: 11px 14px; border-radius: 16px 16px 16px 4px; font-size: 15px; max-width: 92%; }
.tutor-demo .ta b { color: #ffd6e5; }
.tutor-demo .tt { font-size: 12px; color: #8f8bab; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -50px; margin-bottom: 80px; }
  .stats > div { border-left: 0; padding-left: 0; border-top: 1.5px solid var(--line); }
  .sx { grid-template-columns: 1fr; gap: 40px; padding-bottom: 90px; }
  .sx-mark .mark-demo { order: 2; }
  .deck-stage { min-height: 430px; }
}
@media (prefers-reduced-motion: reduce) { .lw-pulse, .lw-live::before, .caret { animation: none; } #deckStage .deck-card { transition: none; animation: none !important; } }
