/* Paleta espejo de constants/theme.ts, para que la web y la app se vean de la
   misma familia: acento #007AFF / #0A84FF, grises de sistema iOS. */
:root {
  --bg: #ffffff;
  --surface: #f2f2f7;
  --label: #000000;
  --label-2: #6c6c70;
  --label-3: #8e8e93;
  --separator: #e5e5ea;
  --accent: #007aff;
  --radius: 18px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --label: #ffffff;
    --label-2: #98989f;
    --label-3: #8e8e93;
    --separator: #38383a;
    --accent: #0a84ff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- nav ---------- */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--label);
  font-weight: 650;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }

/* ---------- hero ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.hero { padding: 3.5rem 0 3rem; max-width: 46rem; }
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.7rem;
  background: var(--surface);
  color: var(--label-2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.lede { margin: 0 0 1.5rem; font-size: 1.2rem; color: var(--label-2); }
.note {
  margin: 0;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--label-2);
}

/* ---------- screenshots ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1rem 0 3.5rem;
}
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--separator);
  border-radius: var(--radius);
}
.shots figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--label-3);
  text-align: center;
}

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-bottom: 3.5rem;
}
.feature {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature h2 { margin: 0 0 0.5rem; font-size: 1.1rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--label-2); font-size: 0.98rem; }

/* ---------- supermercados ---------- */
.supers { padding-bottom: 3.5rem; }
.supers h2 { font-size: 1.1rem; margin: 0 0 1rem; }
.supers ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
}
.supers li {
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  color: var(--label-2);
}
.small { margin: 0; font-size: 0.85rem; color: var(--label-3); }

/* ---------- disclosure ---------- */
.disclosure {
  border-top: 1px solid var(--separator);
  padding: 2.5rem 0 3rem;
  max-width: 44rem;
}
.disclosure h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
.disclosure p { margin: 0 0 1rem; color: var(--label-2); font-size: 0.98rem; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--separator);
  padding: 2rem 1.25rem 3.5rem;
}
/* El borde superior va a todo el ancho, pero el texto se alinea con `main`.
   Ojo: el max-width y el `margin: auto` tienen que ir en la MISMA regla que el
   resto del margin, o un `margin: 0 0 x` posterior pisa el centrado. */
footer p {
  max-width: var(--maxw);
  margin: 0 auto 0.9rem;
  color: var(--label-3);
  font-size: 0.85rem;
}
footer .links {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ---------- páginas de texto (privacidad) ---------- */
.prose { max-width: 44rem; padding: 2.5rem 0 4rem; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.25rem; }
.prose h2 { font-size: 1.15rem; margin-top: 2.25rem; margin-bottom: 0.5rem; }
.prose p, .prose li { color: var(--label-2); }
.prose .updated { color: var(--label-3); margin-top: 0; font-size: 0.9rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.3rem 0; }
.prose strong { color: var(--label); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .shots { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding: 2.5rem 0 2rem; }
  .shots { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .shots figcaption { font-size: 0.78rem; }
}
