/* WannaCast Web: colores de la landing (índigo #37326c, fondo #16142e, lima #c9e07a), con modo claro. Sin fuentes externas:
   Poppins si está instalada; si no, la del sistema. */
:root {
  --bg: #16142e;
  --surface: #221f45;
  --text: #f2f1fa;
  --muted: #b3b0d1;
  --accent: #c9e07a;
  --accent-text: #16142e;
  --border: #37326c;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5fc;
    --surface: #ffffff;
    --text: #16142e;
    --muted: #55527a;
    --accent: #37326c;
    --accent-text: #ffffff;
    --border: #dcdaf0;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand img { border-radius: 8px; }

.top-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 1rem; }

.muted { color: var(--muted); }
.center { text-align: center; }

.pairing {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

@media (max-width: 720px) {
  .pairing { grid-template-columns: 1fr; gap: 1.5rem; justify-items: center; }
}

.qr-box { position: relative; text-align: center; }

#qr {
  width: 320px;
  height: 320px;
  max-width: 80vw;
  max-height: 80vw;
  border-radius: 16px;
  background: #ffffff;
}

.qr-paused {
  position: absolute;
  inset: 0 0 auto 0;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.qr-paused[hidden] { display: none; }

.short-code { margin: .75rem 0 0; color: var(--muted); }
.short-code strong { color: var(--text); font-size: 1.25rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }

.steps ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.steps li { margin-bottom: .5rem; }
.note { margin: .25rem 0; }

.card {
  max-width: 560px;
  margin: 3rem auto;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.button {
  font: inherit;
  font-weight: 600;
  padding: .6rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}

.link {
  font: inherit;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
}

.button:focus-visible, .link:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.foot { padding: 1rem 1.5rem; text-align: center; font-size: .9rem; }

[hidden] { display: none !important; }
