/* Vocal Warm Up — two-column player (stage + routine panel) and page-specific content.
   Shared explainer rows and the tool CTA card live in ../css/tool-pages.css. */

[hidden] { display: none !important; }

/* ── Tool shell ── */
.vwu-tool {
  background:
    radial-gradient(ellipse 70% 60% at 15% 0%, rgba(37, 99, 235, 0.16), transparent 70%),
    #05070a;
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--page-pad-inline, 1.25rem) clamp(2rem, 5vw, 3.5rem);
  scroll-margin-top: 4rem;
}
.vwu-tool__inner { max-width: 1280px; margin: 0 auto; }

.vwu-intro {
  display: grid;
  gap: 0.75rem 2.5rem;
  align-items: end;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}
@media (min-width: 960px) { .vwu-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.vwu-intro__title {
  margin: 0;
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f8fafc;
}
.vwu-intro__title span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.5em;
  letter-spacing: -0.01em;
  color: var(--accent-bright, #60a5fa);
}
.vwu-intro__lead { margin: 0 0 0.75rem; color: #cbd5e1; font-size: 1rem; line-height: 1.6; }

.vwu-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.vwu-chips li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vwu-grid { display: grid; gap: 1rem; }
@media (min-width: 960px) {
  .vwu-grid { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); align-items: stretch; }
}

/* ── Left: stage ── */
.vwu-stage {
  position: relative;
  min-height: 440px;
  border-radius: 20px;
  overflow: hidden;
  background: #070b14;
  border: 1px solid rgba(96, 165, 250, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
@media (min-width: 960px) { .vwu-stage { min-height: 560px; } }

.vwu-hero { position: absolute; inset: 0; display: flex; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); }
.vwu-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; }
.vwu-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 9, 18, 0.92) 0%, rgba(5, 9, 18, 0.72) 34%, rgba(5, 9, 18, 0.08) 62%, rgba(5, 9, 18, 0) 100%);
}
.vwu-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 21rem;
}
.vwu-hero__kicker { margin: 0; font-family: var(--font-display, "Sora", sans-serif); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: #f8fafc; }
.vwu-start-btn {
  padding: 1rem 1.9rem;
  border: none;
  border-radius: 999px;
  background: var(--accent, #3b82f6);
  color: #fff;
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px var(--glow, rgba(37, 99, 235, 0.35));
  transition: background 0.15s;
}
.vwu-start-btn:hover { background: var(--accent-bright, #60a5fa); }
.vwu-note { margin: 0; font-size: 0.875rem; line-height: 1.5; color: #cbd5e1; }
.vwu-privacy { margin: 0; font-size: 0.8125rem; color: #94a3b8; }

@media (max-width: 959px) {
  .vwu-hero { align-items: flex-end; }
  .vwu-hero__img { object-position: 80% 25%; }
  .vwu-hero::after { background: linear-gradient(180deg, rgba(5, 9, 18, 0) 18%, rgba(5, 9, 18, 0.78) 55%, rgba(5, 9, 18, 0.97) 100%); }
  .vwu-hero__copy { max-width: none; }
}

/* Player */
.vwu-player, .vwu-done {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: inherit;
  height: 100%;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.14), transparent 65%);
  outline: none;
}
.vwu-player__top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; color: #94a3b8; font-size: 0.875rem; }
.vwu-progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.vwu-progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, #3b82f6, #60a5fa); transition: width 0.1s linear; }
.vwu-player__body { display: grid; gap: 1.25rem; align-items: center; flex: 1; }
@media (min-width: 720px) { .vwu-player__body { grid-template-columns: minmax(0, 1fr) auto; } }
.vwu-name {
  margin: 0 0 0.6rem;
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f8fafc;
}
.vwu-how { margin: 0; color: #cbd5e1; font-size: 1.05rem; line-height: 1.65; max-width: 36rem; }
.vwu-say {
  margin: 1rem 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  max-width: 36rem;
}
.vwu-say__label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #93c5fd; margin-bottom: 0.3rem; }
.vwu-say__text { font-family: var(--font-display, "Sora", sans-serif); font-size: 1.15rem; line-height: 1.45; color: #f1f5f9; }
.vwu-clock { position: relative; width: 168px; height: 168px; margin: 0 auto; }
.vwu-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vwu-clock__track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 10; }
.vwu-clock__ring { fill: none; stroke: #60a5fa; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 0.1s linear; }
.vwu-clock__time {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 2.4rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}
.vwu-player.is-paused .vwu-clock__ring { stroke: #94a3b8; }
.vwu-next { margin: 0; color: #94a3b8; font-size: 0.9rem; }
.vwu-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.vwu-btn {
  padding: 0.65rem 1.2rem;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #dbeafe;
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.vwu-btn:hover:not(:disabled) { background: rgba(59, 130, 246, 0.24); }
.vwu-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.vwu-btn--primary { background: var(--accent, #3b82f6); border-color: transparent; color: #fff; min-width: 7.5rem; }
.vwu-btn--primary:hover:not(:disabled) { background: var(--accent-bright, #60a5fa); }
.vwu-keys { margin: 0; font-size: 0.8rem; color: #64748b; }

.vwu-done { justify-content: center; align-items: flex-start; }
.vwu-done h2 { margin: 0; font-family: var(--font-display, "Sora", sans-serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: #f8fafc; }
.vwu-done p { margin: 0; color: #cbd5e1; line-height: 1.6; max-width: 34rem; }
.vwu-done__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ── Right: routine panel ── */
.vwu-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border-radius: 20px;
  background: linear-gradient(180deg, #0f1a30 0%, #0b1324 100%);
  border: 1px solid rgba(96, 165, 250, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.vwu-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}
.vwu-panel__title { margin: 0; font-family: var(--font-display, "Sora", sans-serif); font-size: 1.1rem; color: #f1f5f9; }
.vwu-status {
  margin: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
}
.vwu-panel[data-state="running"] .vwu-status { color: #86efac; }
.vwu-panel[data-state="paused"] .vwu-status { color: #fcd34d; }
.vwu-panel[data-state="done"] .vwu-status { color: #93c5fd; }
.vwu-label { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }

.vwu-routines { display: grid; gap: 0.45rem; }
.vwu-routine { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.65rem 0.8rem; border-radius: 12px; border: 1px solid rgba(96, 165, 250, 0.14); background: rgba(10, 17, 34, 0.6); cursor: pointer; }
.vwu-routine:has(input:checked) { border-color: rgba(96, 165, 250, 0.6); background: rgba(59, 130, 246, 0.14); }
.vwu-routine input { margin-top: 0.25rem; accent-color: #3b82f6; }
.vwu-routine__body { display: grid; gap: 0.15rem; flex: 1; }
.vwu-routine__top { display: flex; justify-content: space-between; gap: 0.5rem; color: #f1f5f9; font-size: 0.9375rem; }
.vwu-routine__min { color: #93c5fd; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.vwu-routine__for { color: #94a3b8; font-size: 0.8125rem; line-height: 1.4; }

.vwu-check { display: flex; gap: 0.5rem; align-items: center; color: #cbd5e1; font-size: 0.9rem; cursor: pointer; }
.vwu-check input { accent-color: #3b82f6; width: 1rem; height: 1rem; }

.vwu-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.2rem; max-height: 240px; overflow-y: auto; counter-reset: vwustep; }
.vwu-steps li { counter-increment: vwustep; }
.vwu-steps button {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}
.vwu-steps button::before { content: counter(vwustep); flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; background: rgba(255, 255, 255, 0.06); color: #94a3b8; }
.vwu-steps__name { flex: 1; }
.vwu-steps__sec { color: #64748b; font-variant-numeric: tabular-nums; }
.vwu-steps button:hover { background: rgba(255, 255, 255, 0.04); }
.vwu-steps li.is-done button { color: #64748b; }
.vwu-steps li.is-done button::before { content: "✓"; color: #86efac; }
.vwu-steps li.is-current button { background: rgba(59, 130, 246, 0.16); color: #f8fafc; }
.vwu-steps li.is-current button::before { background: #3b82f6; color: #fff; }
.vwu-total { margin: 0; color: #94a3b8; font-size: 0.8125rem; }

/* ── Written exercise list ── */
.vwu-list { display: grid; gap: 1rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 820px) { .vwu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vwu-ex {
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border-radius: 18px;
  background: rgba(17, 26, 46, 0.7);
  border: 1px solid rgba(96, 165, 250, 0.12);
}
.vwu-ex h3 { margin: 0 0 0.25rem; font-family: var(--font-display, "Sora", sans-serif); font-size: 1.2rem; color: #f1f5f9; }
.vwu-ex__time { margin: 0 0 0.6rem; font-size: 0.8125rem; color: #93c5fd; font-weight: 600; }
.vwu-ex p, .vwu-ex li { color: #cbd5e1; line-height: 1.65; font-size: 0.9625rem; }
.vwu-ex ol { margin: 0.4rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.vwu-ex p + p { margin-top: 0.5rem; }
.vwu-ex em { color: #f1f5f9; font-style: normal; font-weight: 600; }

/* Routine timeline diagram (HTML, used in an explainer row) */
.vwu-timeline { margin: 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 18px; background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.16), transparent 65%), #0b1324; border: 1px solid rgba(96, 165, 250, 0.16); }
.vwu-timeline__title { margin: 0 0 1rem; font-family: var(--font-display, "Sora", sans-serif); font-weight: 600; color: #f1f5f9; }
.vwu-timeline ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.vwu-timeline li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0.75rem; align-items: center; }
.vwu-timeline__t { font-variant-numeric: tabular-nums; color: #93c5fd; font-size: 0.85rem; font-weight: 600; }
.vwu-timeline__bar { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 10px; background: rgba(59, 130, 246, 0.12); border-left: 3px solid #3b82f6; color: #e2e8f0; font-size: 0.9rem; }
.vwu-timeline__bar span:last-child { color: #94a3b8; font-size: 0.8rem; white-space: nowrap; }
.vwu-timeline li.is-body .vwu-timeline__bar { border-left-color: #a78bfa; background: rgba(167, 139, 250, 0.12); }
.vwu-timeline li.is-words .vwu-timeline__bar { border-left-color: #34d399; background: rgba(52, 211, 153, 0.1); }
.vwu-timeline figcaption, .vwu-scale figcaption { margin-top: 0.9rem; color: #94a3b8; font-size: 0.85rem; }

/* Singer scale diagram */
.vwu-scale { margin: 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 18px; background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.16), transparent 65%), #0b1324; border: 1px solid rgba(96, 165, 250, 0.16); }
.vwu-scale__row { display: flex; align-items: flex-end; gap: 0.35rem; height: 150px; }
.vwu-scale__note { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.35rem; height: 100%; }
.vwu-scale__dot { width: 100%; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #60a5fa, rgba(59, 130, 246, 0.25)); }
.vwu-scale__syl { font-size: 0.8rem; color: #e2e8f0; font-weight: 600; }
.vwu-scale__deg { font-size: 0.7rem; color: #64748b; }

.vwu-inline-start { background: none; border: 0; padding: 0; color: var(--accent-bright, #60a5fa); font: inherit; text-decoration: underline; cursor: pointer; }
