/**
 * Welcome / Goodbye / Internal — supplemental styles ONLY.
 *
 * Loaded AFTER /style.css (tokens, typography, header, footer, buttons,
 * .playground-* live-demo chrome all come from there). This file adds
 * the post-install onboarding components:
 *
 *   .wl-*  — /welcome flows (shared shell, live stage, fallback card,
 *            Firefox grant card, 16:9 survey/goodbye sections)
 *   .gb-*  — /goodbye uninstall exit-survey
 *
 * /internal carries its own tiny inline <style> (monospace utility page).
 */

/* ─── Shared shell ─────────────────────────────────────────────────── */

.wl-header-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.wl-main { padding-bottom: 96px; }

.wl-hero {
  padding: clamp(40px, 7dvh, 88px) 24px 8px;
  text-align: center;
}

/* Compact installed-confirmation row: the page's real hero is the stage,
   so the header collapses to one line (icon + sentence). */
.wl-installed-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wl-check--sm {
  width: 34px;
  height: 34px;
  margin-bottom: 0;
  flex: none;
}
.wl-check--sm svg { width: 18px; height: 18px; }
.wl-installed-title {
  font-size: clamp(1.15rem, 1.2vw + 0.8rem, 1.5rem) !important;
  margin: 0 !important;
}
.wl-installed-sub {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 2px;
}
@media (min-width: 720px) {
  .wl-installed-sub { display: inline; margin-left: 10px; }
}

/* One hint line + skip link under the stage (replaces the 3-card brief). */
.wl-stage-hint {
  text-align: center;
  color: var(--text-dim);
  font-size: 1rem;
  margin: 16px auto 0;
  max-width: 640px;
}
.wl-stage-skip-row {
  text-align: center;
  margin: 10px 0 0;
}

.wl-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #22c55e;
  box-shadow: 0 10px 34px -10px rgba(34, 197, 94, 0.45);
}
.wl-check svg { width: 26px; height: 26px; }

.wl-hero h1 {
  font-size: clamp(2rem, 3.4vw + 0.6rem, 3.2rem);
  margin: 0 0 14px;
}

.wl-hero-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.02rem;
  color: var(--text-dim);
}

.wl-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.wl-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.wl-chip strong { color: var(--text); font-weight: 600; }
.wl-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.wl-chip-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color var(--transition);
}
.wl-chip-link:hover { color: var(--accent); }

/* Monitor-move toast — offered branch switch after re-detection */
.wl-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(92vw, 560px);
  padding: 14px 18px;
  background: var(--bg-elev-2);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  color: var(--text-dim);
  animation: wl-toast-in 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes wl-toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.wl-toast button {
  flex-shrink: 0;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}
.wl-toast-switch { background: var(--accent); color: #1a1207; }
.wl-toast-switch:hover { background: var(--accent-hover); }
.wl-toast-dismiss {
  background: transparent;
  color: var(--text-mute);
  border-color: var(--border) !important;
}
.wl-toast-dismiss:hover { color: var(--text); }

/* Flow container rhythm */
.wl-flow { max-width: 920px; }
.wl-flow > section, .wl-flow > div { margin-top: clamp(40px, 6dvh, 72px); }
.wl-flow > div:first-child { margin-top: clamp(28px, 4dvh, 48px); }

.wl-section-title {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 1.4vw + 0.8rem, 1.7rem);
}
.wl-section-sub {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 0.96rem;
  max-width: 640px;
}

/* ─── A1 · Pre-brief cards ─────────────────────────────────────────── */

.wl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .wl-steps { grid-template-columns: 1fr; } }

.wl-step {
  padding: 18px 18px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.wl-step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.wl-step p { margin: 0; font-size: 0.92rem; color: var(--text-dim); }
.wl-step p strong { color: var(--text); }

.wl-brief-line {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-mute);
}
.wl-brief-line strong { color: var(--text-dim); }

/* ─── A2 · Live stage ──────────────────────────────────────────────── */

.wl-stage-screen {
  position: relative;
  aspect-ratio: 21 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.8), inset 0 2px 14px rgba(0, 0, 0, 0.55);
}
.wl-stage-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 16:9 in a 21:9 frame — the bars ARE the demo */
  background: #000;
}
/* Fullscreened wrapper: let it own the whole display. */
.wl-stage-screen:fullscreen { aspect-ratio: auto; border-radius: 0; }
.wl-stage-screen:-webkit-full-screen { border-radius: 0; }

.wl-stage-cta {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #1a1207;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 14px 40px -8px rgba(245, 158, 11, 0.65);
  transition: transform var(--transition), background var(--transition);
}
.wl-stage-cta:hover { background: var(--accent-hover); transform: translateX(-50%) translateY(-2px); }
.wl-stage-cta svg { width: 18px; height: 18px; }

.wl-stage-screen:fullscreen .wl-stage-cta { display: none; }

/* Fullscreen caption — bottom-center, deliberately far from the real
   HUD (which mounts top-right-ish inside this same wrapper). */
.wl-caption {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  z-index: 2;
  /* Informational overlay — must NEVER intercept clicks meant for the
     stage CTA / the extension HUD underneath (found by the e2e test:
     display:inline-flex was also overriding the [hidden] attribute). */
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 720px);
  padding: 14px 22px;
  background: rgba(8, 8, 8, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1.05rem;
  color: var(--text);
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}
.wl-caption[hidden] { display: none; }
.wl-caption strong { color: var(--accent); }
.wl-caption--success { border-color: rgba(34, 197, 94, 0.55); }

/* Arrow hint pointing up-right toward where the HUD appears. */
.wl-caption-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
  animation: wl-arrow-nudge 1.2s ease-in-out infinite;
}
@keyframes wl-arrow-nudge {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(3px, -3px); }
}

/* ─── A2 fallback · static 3-frame annotated strip ─────────────────── */

.wl-fallback {
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.wl-fallback-title { margin: 0 0 4px; font-size: 1.1rem; }
.wl-fallback-sub { margin: 0 0 18px; font-size: 0.88rem; color: var(--text-mute); }

.wl-frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .wl-frames { grid-template-columns: 1fr; } }

.wl-frame-cap {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: var(--text-dim);
  text-align: center;
}
.wl-frame-cap strong { color: var(--text); }

.wl-frame-screen {
  position: relative;
  aspect-ratio: 21 / 9;
  background: #000;
  border: 1px solid #232323;
  border-radius: 10px;
  overflow: hidden;
}
.wl-mini-video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 76.2%; /* 16:9 inside 21:9 */
  background:
    radial-gradient(120% 90% at 30% 20%, #3d3428 0%, #221d15 55%, #15120c 100%);
}
.wl-mini-video--filled { width: 100%; }
.wl-frame-label {
  position: absolute;
  left: 8px;
  bottom: 7px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.wl-frame-check {
  position: absolute;
  right: 8px;
  top: 7px;
  font-size: 0.8rem;
  color: #22c55e;
}

/* HUD mockup — a faithful, clearly-labeled DRAWING of the real popup:
   small dark rounded box, mode rows, amber "Smoothie". Static — no
   fake interactivity. */
.wl-hud-mock {
  position: absolute;
  top: 8%;
  right: 5%;
  width: min(46%, 150px);
  padding: 6px;
  background: rgba(16, 16, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65);
  font-family: var(--font-body);
}
.wl-hud-mock-title {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 4px 5px;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.wl-hud-mock-title::before {
  content: "";
  width: 10px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
}
.wl-hud-mode {
  padding: 4px 8px;
  margin-top: 3px;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
}
.wl-hud-mode--accent {
  color: #1a1207;
  font-weight: 700;
  background: var(--accent);
  border-color: var(--accent);
}
.wl-hud-mock--pointed .wl-hud-mode--accent { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 1px; }

.wl-fallback-steps {
  margin: 18px 0 0;
  padding-left: 1.2rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.wl-fallback-steps li { margin: 6px 0; }
.wl-fallback-steps strong { color: var(--text); }

/* ─── Firefox grant card ───────────────────────────────────────────── */

.wl-grant {
  padding: 24px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, var(--bg-elev) 70%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius);
}
.wl-grant-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.wl-grant-head svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.wl-grant-head h3 { margin: 0; font-size: 1.15rem; }
.wl-grant ol {
  margin: 0 0 14px;
  padding-left: 1.3rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.wl-grant ol li { margin: 7px 0; }
.wl-grant ol strong { color: var(--text); }
.wl-grant-wait {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
}
.wl-grant-wait-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: wl-pulse 1.4s ease-in-out infinite;
}
@keyframes wl-pulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

/* ─── Simulated playground wrapper (grant flow / 16:9 / no-ext) ────── */

.wl-sim-monitor { position: relative; margin-top: 18px; }
.wl-sim-badge {
  position: absolute;
  top: -12px;
  left: 18px;
  z-index: 5;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: #14110a;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 999px;
}

/* ─── A3 · YouTube handoff ─────────────────────────────────────────── */

.wl-handoff { text-align: center; }
.wl-handoff-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 34px;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  color: #1a1207;
  background: var(--accent);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 18px 50px -12px rgba(245, 158, 11, 0.6);
  transition: transform var(--transition), background var(--transition);
}
.wl-handoff-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.wl-handoff-btn svg { width: 20px; height: 20px; }
.wl-handoff-note {
  margin: 14px auto 0;
  max-width: 520px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.wl-handoff-note strong { color: var(--text); }

/* ─── A4 · Pro strip (quiet) ───────────────────────────────────────── */

.wl-pro {
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.wl-pro-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
@media (max-width: 640px) { .wl-pro-cols { grid-template-columns: 1fr; } }
.wl-pro-col { padding: 16px 18px; }
.wl-pro-col + .wl-pro-col { border-left: 1px solid var(--border-soft); }
@media (max-width: 640px) {
  .wl-pro-col + .wl-pro-col { border-left: none; border-top: 1px solid var(--border-soft); }
}
.wl-pro-col h4 { margin: 0 0 6px; font-size: 0.98rem; }
.wl-pro-col p { margin: 0; font-size: 0.88rem; color: var(--text-dim); }
.wl-pro-price { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-dim); }
.wl-pro-star { color: var(--accent); }
.wl-pro-note { margin: 14px 0 0; font-size: 0.86rem; color: var(--text-dim); }
.wl-pro-drm { margin: 8px 0 0; font-size: 0.8rem; color: var(--text-mute); }
.wl-pro-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-dim);
  border-bottom: 1px dotted var(--border);
  transition: color var(--transition), border-color var(--transition);
}
.wl-pro-link:hover { color: var(--accent); border-color: var(--accent); }

/* ─── A5 · Trust footer ────────────────────────────────────────────── */

.wl-trust details {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0 18px;
}
.wl-trust summary {
  padding: 14px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.wl-trust summary::-webkit-details-marker { display: none; }
.wl-trust summary::after { content: " +"; color: var(--text-mute); }
.wl-trust details[open] summary::after { content: " −"; }
.wl-trust details ol {
  margin: 0 0 14px;
  padding-left: 1.3rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.wl-trust details li { margin: 6px 0; }
.wl-privacy {
  margin: 18px 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-mute);
}

/* ─── S1 · 16:9 honest verdict ─────────────────────────────────────── */

.wl-verdict {
  padding: 22px 24px;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius);
}
.wl-verdict h3 { margin: 0 0 8px; font-size: 1.2rem; }
.wl-verdict p { margin: 0; font-size: 0.96rem; color: var(--text-dim); }
.wl-verdict strong { color: var(--text); }

/* ─── S2 · Micro-survey ────────────────────────────────────────────── */

.wl-survey { max-width: 560px; }
.wl-survey-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px 18px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.wl-survey-btn:hover {
  border-color: var(--accent);
  background: var(--bg-elev-2);
  transform: translateY(-1px);
}
.wl-survey-dismiss {
  display: inline-block;
  margin-top: 12px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--text-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.wl-survey-dismiss:hover { color: var(--text); }
.wl-survey-thanks {
  margin-top: 14px;
  font-size: 0.92rem;
  color: #86efac;
}

/* ─── S4 · Take it with you ────────────────────────────────────────── */

.wl-take {
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.wl-take-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.wl-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.wl-copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.wl-copy-btn.is-copied { border-color: rgba(34, 197, 94, 0.5); color: #86efac; }

.wl-email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 260px;
}
.wl-email-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.wl-email-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.wl-email-form button {
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1207;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.wl-email-form button:hover { background: var(--accent-hover); }
.wl-email-sent { margin-top: 10px; font-size: 0.88rem; color: #86efac; }

/* ─── S5 · Graceful goodbye ────────────────────────────────────────── */

.wl-uninst {
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.wl-uninst h3 { margin: 0 0 10px; font-size: 1.1rem; }
.wl-uninst ol {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.wl-uninst ol li { margin: 6px 0; }
.wl-uninst ol strong { color: var(--text); }
.wl-feedback {
  margin: 16px 0 0;
  font-size: 0.86rem;
  color: var(--text-mute);
}
.wl-feedback a {
  color: var(--text-dim);
  border-bottom: 1px dotted var(--border);
}
.wl-feedback a:hover { color: var(--accent); border-color: var(--accent); }

/* ─── uw_no_ext compact flow ───────────────────────────────────────── */

.wl-noext-lede {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.02rem;
  color: var(--text-dim);
}
.wl-noext-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/* ─── Boot veil — flows hidden until branch assigned; a small mono
       status line keeps the 0–3s handshake window from looking dead. */
.wl-booting {
  margin-top: 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.wl-booting .wl-grant-wait-dot { display: inline-block; margin-right: 8px; }

/* ─── /goodbye page ────────────────────────────────────────────────── */

.gb-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width: 560px) { .gb-buttons { grid-template-columns: 1fr; } }
.gb-btn {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.gb-btn:hover { border-color: var(--accent); background: var(--bg-elev-2); }
.gb-thanks {
  margin-top: 20px;
  padding: 16px 18px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  color: #86efac;
  font-size: 0.95rem;
}
.gb-links {
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--text-mute);
}
.gb-links a {
  color: var(--text-dim);
  border-bottom: 1px dotted var(--border);
}
.gb-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ─── Reduced motion ───────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .wl-caption-arrow { animation: none; }
  .wl-grant-wait-dot { animation: none; opacity: 1; }
  .wl-toast { animation: none; }
  .wl-stage-cta,
  .wl-handoff-btn,
  .wl-survey-btn { transition: none; }
}

/* ═══ v3 · status bar, two-card 16:9 flow, pill controls ═══════════════
   Owner feedback pass: nothing floats — the status bar mounts flush on
   top of the active flow; every interactive element reads as a button. */

.wl-page-title {
  font-size: clamp(1.2rem, 1.4vw + 0.8rem, 1.7rem);
  margin: 0 0 18px;
  text-align: center;
}

.wl-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 18px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #17130d, #100e0a);
  border: 1px solid var(--border-soft, rgba(245, 158, 11, 0.14));
  border-radius: 14px;
}
.wl-status-installed {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}
.wl-status-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #22c55e;
  flex: none;
}
.wl-status-check svg { width: 12px; height: 12px; }
.wl-status-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wl-status-detect {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.wl-status-toggle {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border-soft, rgba(245, 158, 11, 0.18));
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.wl-status-toggle:hover {
  color: var(--text);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

/* 16:9 flow — verdict + two equal cards, one viewport */
.wl-verdict-title {
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2.2rem);
  margin: 6px 0 10px;
}
.wl-verdict p { color: var(--text-dim); max-width: 720px; margin: 0 0 22px; }

.wl-cards2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 860px) { .wl-cards2 { grid-template-columns: 1fr; } }

.wl-card { text-align: left; }
.wl-card-title { margin: 0 0 10px; font-size: 1.15rem; }
.wl-card-sub { color: var(--text-dim); font-size: 0.95rem; margin: 0 0 14px; }

.wl-pill-stack { display: flex; flex-direction: column; gap: 10px; }
.wl-pill-btn {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  background: #17130d;
  border: 1px solid var(--border-soft, rgba(245, 158, 11, 0.16));
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.wl-pill-btn:hover {
  border-color: rgba(245, 158, 11, 0.55);
  background: #1b1610;
  transform: translateY(-1px);
}

.wl-thanks-line { color: #22c55e; font-weight: 600; margin: 0 0 8px; }
.wl-mini-details { margin-top: 12px; }
.wl-mini-details summary {
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.wl-mini-details ol { color: var(--text-dim); font-size: 0.9rem; padding-left: 20px; }

.wl-card-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wl-cta-sm { padding: 11px 20px !important; font-size: 0.95rem !important; }
.wl-cta-sm svg { width: 16px; height: 16px; }
#copy-link-btn.is-copied { filter: saturate(0.6); }
.wl-demo-line { margin: 14px 0 0; font-size: 0.9rem; color: var(--text-dim); }

.wl-ghost-link {
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-dim);
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.wl-ghost-link:hover { color: var(--text); }

/* goodbye page: centered card + pill answers */
.gb-wrap { max-width: 720px; margin: 0 auto; }
.gb-btn {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: #17130d;
  border: 1px solid var(--border-soft, rgba(245, 158, 11, 0.16));
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, transform 0.15s;
}
.gb-btn:hover { border-color: rgba(245, 158, 11, 0.55); transform: translateY(-1px); }

/* ═══ v3.1 · owner polish round 2 ══════════════════════════════════════ */

/* Footer must sit at the viewport bottom, not float mid-void. */
body { min-height: 100dvh; display: flex; flex-direction: column; }
main.wl-main { flex: 1; }
main.account-page { flex: 1; }

/* Post-aha block: ONE cohesive card instead of a pile of boxes. */
.wl-after-card { text-align: center; padding: 32px 28px; }
.wl-after-card .wl-card-title { margin-bottom: 18px; }
.wl-after-card .wl-handoff-btn { margin: 0 auto; }
.wl-handoff-note { margin: 14px auto 0; max-width: 560px; color: var(--text-dim); font-size: 0.95rem; }
.wl-after-sep {
  border: none;
  border-top: 1px solid var(--border-soft, rgba(245, 158, 11, 0.14));
  margin: 22px auto;
  max-width: 480px;
}
.wl-pro-line { margin: 0 auto 8px; max-width: 640px; color: var(--text-dim); font-size: 0.92rem; }
.wl-pro-line strong { color: var(--text); }
.wl-pro-line a { color: var(--accent); }
.wl-pro-drm { margin: 0 auto; max-width: 640px; color: var(--text-mute); font-size: 0.82rem; }

/* Share card: URL chip + Copy with breathing room between icon and label. */
.wl-url-chip {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.9rem;
  color: var(--text);
  background: #100e0a;
  border: 1px solid var(--border-soft, rgba(245, 158, 11, 0.18));
  border-radius: 10px;
  padding: 10px 14px;
}
.wl-cta-sm { display: inline-flex !important; align-items: center; gap: 8px; }

/* In-fullscreen caption: explicit exit affordance. The caption stays
   pointer-events:none; only the button opts back in. */
.wl-caption-btn {
  pointer-events: auto;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1207;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  margin-left: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.wl-caption-btn:hover { background: var(--accent-hover, #fbbf24); }

/* Fallback store-first block + noext install-first note. */
.wl-fallback-install {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft, rgba(245, 158, 11, 0.14));
}
.wl-fallback-install p { margin: 0 0 12px; color: var(--text-dim); }
.wl-fallback-install strong { color: var(--text); }
.wl-noext-note {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ═══ v3.2 · step-2 card composition + big share row ═══════════════════ */

/* Step 2: landing-grade composition — eyebrow + title head, text column
   left / CTA column right, rescue docked at the card bottom. Everything
   left-aligned; no orphan blocks. */
.wl-step2 { text-align: left; padding: 28px 30px 18px; }
.wl-eyebrow2 {
  display: block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.wl-step2-title { margin: 0 0 18px; font-size: 1.35rem; }
.wl-step2-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 760px) {
  .wl-step2-body { grid-template-columns: 1fr; }
  .wl-step2-cta { justify-self: start; }
}
.wl-step2-lead { margin: 0 0 12px; color: var(--text); font-size: 1rem; }
.wl-step2 .wl-pro-line { margin: 0 0 8px; max-width: none; text-align: left; font-size: 0.9rem; }
.wl-step2 .wl-pro-drm { margin: 0; max-width: none; text-align: left; font-size: 0.8rem; }
.wl-step2-cta .wl-handoff-btn { margin: 0; white-space: nowrap; }
.wl-step2-rescue {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft, rgba(245, 158, 11, 0.14));
}
.wl-step2-rescue summary {
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 600;
}
.wl-step2-rescue ol { color: var(--text-dim); font-size: 0.9rem; padding-left: 20px; margin: 12px 0 4px; }

/* Privacy: one quiet, consistently left-aligned line under the card. */
#uw-after > .wl-privacy { text-align: left; margin: 14px 4px 0; }

/* Share row: the URL is the hero of the card — big chip + big copy button. */
.wl-share-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.wl-url-chip--lg {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  font-size: 1.02rem;
  padding: 13px 16px;
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wl-cta-copy {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 13px 22px !important;
  font-size: 1rem !important;
}
.wl-cta-copy svg { width: 17px; height: 17px; }
.wl-share-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--text-mute); }
