/* Lume — heylume.app
 *
 * Hoja única para toda la web estática. Sin frameworks ni fuentes externas a propósito:
 * la web se sirve desde el mismo Nginx que la API y tiene que pesar nada y no depender
 * de ningún CDN. La tipografía es la del sistema (ui-rounded cae en SF Rounded en
 * dispositivos Apple, que es exactamente la letra de la app).
 *
 * Tema único oscuro: la app vive sobre negro y la web no cambia de piel a mitad de scroll.
 * Un solo acento (--fire, el naranja del onboarding); la rampa de calor de HeatColor.swift
 * aparece solo en la leyenda, porque ahí es contenido, no decoración.
 */

:root {
  --bg: #0d0a08;
  --surface: #171210;
  --line: rgba(244, 237, 228, 0.1);
  --text: #f4ede4;
  --muted: #b3a698;
  --fire: #ff8c33;          /* rgb(255,140,51): el acento del onboarding */
  --fire-deep: #f5731c;     /* Brasa, nivel 3 */

  --radius: 14px;           /* el mismo de los botones de la app */
  --measure: 65ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: ui-rounded, system-ui, -apple-system, sans-serif;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

a { color: var(--fire); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navegación ------------------------------------------------------- */

.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-family: ui-rounded, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.nav .brand:hover { text-decoration: none; }
.nav .brand img { display: block; }

.nav .links {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
}
.nav .links a { color: var(--muted); }
.nav .links a:hover { color: var(--text); text-decoration: none; }

/* --- Botones ----------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--fire);
  color: #14100c;
  font-weight: 650;
  font-size: 1.02rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.99); }

/* --- Pie --------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: 96px;
  padding: 36px 0 44px;
  font-size: 0.92rem;
  color: var(--muted);
}
footer .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: baseline;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer .foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer .foot-links a { display: inline-flex; align-items: center; gap: 6px; }

/* --- Prosa legal (privacidad, soporte) ---------------------------------- */

.prose {
  max-width: var(--measure);
  padding-top: 40px;
}
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 10px; }
.prose .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 40px; }
.prose h2 {
  font-size: 1.35rem;
  margin: 44px 0 12px;
}
.prose h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.prose p, .prose li { color: #d9cfc3; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0 12px 22px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--fire); }
.prose strong { color: var(--text); }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav .links { gap: 18px; }
}
