/* landing.css — Estilos de la página pública (index.html) y páginas de error. */
:root {
  --bg: #0d0d10; --fg: #f4f4f6; --muted: #a1a1aa; --card: #17171c;
  --line: #2a2a33; --accent: #7c5cff; --accent-2: #a78bfa; --warn: #f59e0b;
  --radius: 18px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f6f6f8; --fg: #0b0b0c; --muted: #5b5b66; --card: #fff; --line: #e4e4ea; color-scheme: light; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(124,92,255,.25), transparent), var(--bg);
  color: var(--fg); -webkit-font-smoothing: antialiased;
}
.wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.card {
  width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
h1 { font-size: 1.5rem; line-height: 1.2; margin: 12px 0 8px; }
.muted { color: var(--muted); }
.tiny { font-size: .8rem; word-break: break-all; }
.badge {
  display: inline-block; font-size: .75rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(124,92,255,.15); color: var(--accent-2); font-weight: 600;
}
.badge.warn { background: rgba(245,158,11,.15); color: var(--warn); }
.btn {
  display: block; width: 100%; margin-top: 18px; padding: 14px 18px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #5b3df5); color: #fff; font-weight: 700;
  font-size: 1rem; text-decoration: none; cursor: pointer;
}
.btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); margin-top: 10px; }
.steps { text-align: left; margin: 18px 0 0; padding-left: 22px; }
.steps li { margin: 6px 0; }
.spinner {
  width: 36px; height: 36px; margin: 8px auto 12px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Flecha flotante que señala el control nativo de la app */
.pointer { position: fixed; z-index: 50; width: 34px; height: 56px; color: var(--accent-2); pointer-events: none; }
.pointer svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.pointer.top-right { top: 8px; right: 14px; }
.pointer.bottom { bottom: 8px; left: 50%; transform: translateX(-50%) rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .pointer.top-right { animation: bob-up 1.4s ease-in-out infinite; }
  .pointer.bottom { animation: bob-down 1.4s ease-in-out infinite; }
}
@keyframes bob-up { 50% { transform: translateY(-8px); } }
@keyframes bob-down { 50% { transform: translateX(-50%) rotate(180deg) translateY(-8px); } }

.debug {
  position: fixed; left: 8px; right: 8px; bottom: 8px; max-height: 40vh; overflow: auto; z-index: 60;
  background: rgba(0,0,0,.85); color: #9effa0; font: 11px/1.4 ui-monospace, monospace; padding: 10px; border-radius: 8px;
  white-space: pre-wrap; word-break: break-all;
}
[hidden] { display: none !important; }
