/* The Welcome page (welcome/). welcome.js ticks the list, shows "We can't see Vclip"
   when there's no word from it, and plays the burst at the end. */

.wl { width: min(1160px, calc(100% - 32px)); margin: 0 auto 120px; }

/* ---------- the top ---------- */
.wl-head { padding: clamp(48px, 7vw, 84px) 0 0; text-align: center; }
.wl-title .l1 { font-size: clamp(46px, 7vw, 92px); }
.wl-title .l2 { font-size: clamp(32px, 5vw, 64px); }
.wl-lede { max-width: 520px; margin: 22px auto 0; font-size: clamp(17px, 1.8vw, 19px); line-height: 1.55; color: #3E3858; }

/* no word from Vclip */
.wl-missing { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 880px; margin: 36px auto 0; padding: 20px 22px 20px 26px; border: 1px solid #DDD3FB; border-radius: 20px; background: var(--lilac); }
.wl-missing h2 { margin: 0; font-size: 18px; font-weight: 600; }
.wl-missing p { margin: 4px 0 0; font-size: 15px; color: #3E3858; }
.wl-missing .btn { flex: none; }

/* ---------- the practice video and the list ---------- */
.wl-stage { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 48px; }
.wl-player { position: relative; overflow: hidden; border-radius: 24px; background: var(--ink); box-shadow: 0 40px 80px -40px rgba(27, 21, 48, 0.6); }
.wl-player video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wl-cue { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(20, 20, 24, 0.7); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; backdrop-filter: blur(6px); }
.wl-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); animation: wl-pulse 1.6s infinite; }
@keyframes wl-pulse { 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.wl-list { padding: 24px 22px 18px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 20px 50px -34px rgba(91, 43, 224, 0.5); }
.wl-list header { display: flex; align-items: baseline; justify-content: space-between; }
.wl-list h2 { margin: 0; font: 700 26px/1.15 var(--display); }
.wl-count { margin: 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wl-count b { color: var(--violet); font-weight: 600; }
/* progress, drawn as Vclip's own range */
.wl-bar { position: relative; height: 6px; margin: 14px 0 6px; border-radius: 3px; background: var(--lilac); }
.wl-bar i { position: absolute; left: 0; top: -2px; bottom: -2px; width: 0; border-radius: 4px; background: var(--violet); transition: width 0.6s cubic-bezier(0.34, 1.3, 0.64, 1); }

.wl-steps { margin: 0; padding: 0; list-style: none; }
.wl-step { padding: 12px 0; border-bottom: 1px solid var(--line); }
.wl-step:last-child { border-bottom: 0; }
.wl-step button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; font: 600 16px/1.35 var(--body); cursor: pointer; }
.wl-step button:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 6px; }
.wl-step p { margin: 6px 0 0 38px; font-size: 14px; line-height: 1.55; color: #3E3858; }
.wl-step kbd { display: inline-block; padding: 1px 7px; border: 1px solid #D9D0F3; border-bottom-width: 2px; border-radius: 6px; background: #F6F2FF; color: var(--ink); font: 600 13px/1.5 var(--body); white-space: nowrap; }
.wl-tick { position: relative; flex: none; width: 26px; height: 26px; border: 2px solid #CDBBFF; border-radius: 50%; background: #fff; transition: background 0.25s, border-color 0.25s, transform 0.3s cubic-bezier(0.34, 1.6, 0.64, 1); }
.wl-tick::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; opacity: 0; transition: opacity 0.2s; }
.wl-step.done .wl-tick { background: var(--violet); border-color: var(--violet); }
.wl-step.done .wl-tick::after { opacity: 1; }
.wl-step.done button b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(107, 101, 133, 0.5); }
.wl-step.done p { color: var(--muted); }
.wl-step.just .wl-tick { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(91, 43, 224, 0.15); }
.wl-hand { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- all done ---------- */
.wl-done { margin-top: 56px; padding: clamp(36px, 5vw, 56px) clamp(22px, 4vw, 48px); border-radius: 28px; background: var(--lilac); border: 1px solid #DDD3FB; text-align: center; }
.wl-done .headline.section .l2 { color: var(--violet); }
.wl-done p { max-width: 560px; margin: 18px auto 0; color: #3E3858; }
.wl-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.wl-done .btn.soft { background: #fff; } /* a soft button would vanish on the lilac card */
.wl-done .btn.soft:hover { background: #F6F2FF; }
.wl-bit { position: fixed; z-index: 30; margin: -4px 0 0 -4px; border-radius: 3px; pointer-events: none; }

/* ---------- good to know ---------- */
.wl-tips { margin-top: 96px; }
.wl-tips h2 { margin: 0 0 22px; font: 700 clamp(28px, 3vw, 36px)/1.15 var(--display); }
.wl-tips ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.wl-tips li { display: grid; align-content: start; gap: 4px; padding: 22px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.wl-tips svg { width: 44px; height: 44px; margin-bottom: 10px; padding: 10px; border-radius: 13px; background: var(--lilac); fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wl-tips b { font-size: 16px; font-weight: 600; }
.wl-tips span { font-size: 15px; line-height: 1.5; color: #3E3858; }

/* ---------- less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .wl-dot { animation: none; }
  .wl-bar i, .wl-tick, .wl-tick::after { transition: none; }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 1023px) {
  .wl { margin-bottom: 96px; }
  .wl-stage { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }
  .wl-tips { margin-top: 72px; }
}
@media (max-width: 640px) {
  .wl-missing { flex-direction: column; align-items: stretch; text-align: center; }
  .wl-player { border-radius: 18px; }
  .wl-tips ul { grid-template-columns: minmax(0, 1fr); }
}
