/* ===========================================================================
   Net Tinker — hoja del sitio público (landing y 404)
   ===========================================================================

   La identidad no se inventa aquí: los colores, el radio y la sombra son los
   mismos tokens que `src/options/options.css` — el mismo azul --primary
   (#4a63e7 en claro, #6c81f2 en oscuro, ya elegido allí por contraste), el
   mismo par fondo/superficie y el mismo stack de fuentes del sistema. Quien
   llegue de la extensión al sitio tiene que reconocerlo, y quien llegue del
   sitio a la extensión también.

   Nada de fuentes externas, ni de scripts, ni de peticiones a terceros: la CSP
   de `site/_headers` no los dejaría pasar, y un producto que vende "sin
   telemetría" no puede cargar nada de fuera en su propia web.
   =========================================================================== */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #eef0f7;
  --border: #e3e5ea;
  --text: #1a1d29;
  --text-muted: #6b7280;
  --primary: #4a63e7;
  --primary-hover: #3a50cc;
  --primary-text: #ffffff;
  --ok: #2e7d32;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 20, 43, 0.04), 0 4px 10px rgba(20, 20, 43, 0.04);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151c;
    --surface: #1c1e29;
    --surface-alt: #22242f;
    --border: #2c2f3d;
    --text: #e7e8ef;
    --text-muted: #9498a8;
    --primary: #6c81f2;
    --primary-hover: #839afc;
    --primary-text: #0e0f16;
    --ok: #7bc47f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-hover);
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 4px;
}

/* ---- cabecera ---- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  display: block;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  flex-wrap: wrap;
}

/* ---- botones ---- */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--primary-text);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--primary);
}

.btn-small {
  padding: 6px 12px;
  font-size: 14px;
}

/* ---- hero ---- */

.hero {
  padding: 56px 0 8px;
}

.hero h1 {
  font-size: clamp(28px, 4.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  max-width: 20ch;
}

/* El antetítulo lleva la marca para que el h1 pueda ser una frase con gancho
   sin dejar al visitante preguntándose en qué página ha caído. */
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Debajo del botón: dice adónde lleva antes de pulsarlo. Un botón que solo
   pone "Instalar" y salta a otro dominio se lee como algo que va a pasar sin
   pedir permiso. */
.cta-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.hero .lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.meta-line {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- secciones ---- */

section {
  padding: 40px 0;
}

h2 {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.section-lede {
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 68ch;
}

/* ---- tarjetas de capacidades ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.card h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.card p + p {
  margin-top: 8px;
}

/* ---- privacidad: el bloque que sostiene el argumento ---- */

.privacy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
}

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.figures .n {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}

.figures .what {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}

.privacy ul {
  margin: 0;
  padding-left: 20px;
}

.privacy li {
  margin-bottom: 8px;
}

.privacy li:last-child {
  margin-bottom: 0;
}

/* ---- capturas ---- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

figure {
  margin: 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- pie ---- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 32px;
  padding: 24px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

/* ---- 404 ---- */

.notfound {
  padding: 80px 0;
  text-align: center;
}

.notfound h1 {
  font-size: 28px;
  margin: 0 0 12px;
}

.notfound p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.notfound ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
