/* RadarGo — hoja de estilo compartida por index, soporte, privacy y review.
   Los colores salen del icono: azul de barrido de radar sobre azul marino
   profundo, y el rojo del aviso de la app para lo que urge. */

:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --ink: #10141c;
  --muted: #59626f;
  --rule: #dfe5ee;
  --accent: #0a63d6;
  --accent-ink: #084ea8;
  --alert: #d92c20;
  --night: linear-gradient(140deg, #061436 0%, #0b3fa0 55%, #1a8cff 100%);
  --sweep: linear-gradient(135deg, #1a8cff 0%, #0a63d6 60%, #062a6b 100%);
  --shadow: 0 6px 20px rgba(10, 60, 140, .18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d14;
    --card: #141924;
    --ink: #eef2f8;
    --muted: #9aa5b4;
    --rule: #232a38;
    --accent: #64b0ff;
    --accent-ink: #8cc5ff;
    --alert: #ff6b5e;
    --shadow: 0 6px 20px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }

/* ── Cabecera ─────────────────────────────────────────────────────────── */

.hero { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.hero img.icon {
  width: 76px; height: 76px; border-radius: 18px; flex: 0 0 auto;
  box-shadow: var(--shadow); display: block;
}

h1 { font-size: 32px; line-height: 1.1; margin: 0; letter-spacing: -0.025em; }
.tag { color: var(--muted); margin: 4px 0 0; font-size: 15px; }

.standfirst {
  font-size: 19px; line-height: 1.5; color: var(--ink);
  margin: 26px 0 8px; max-width: 34em;
}

/* Los separadores «·» van en el HTML, así que los enlaces no llevan margen
   propio: si lo llevaran, el punto quedaría pegado al enlace siguiente. */
.lang { margin: 26px 0 40px; font-size: 14px; }
.lang a { white-space: nowrap; }

h2 {
  font-size: 20px; margin: 44px 0 14px; letter-spacing: -0.01em;
  padding-top: 26px; border-top: 1px solid var(--rule);
}
h3 { font-size: 16px; margin: 24px 0 6px; }

a { color: var(--accent); }
strong { font-weight: 650; }

ol { padding-left: 22px; }
ul { padding-left: 20px; }
ol li, ul li { margin: 8px 0; }

code {
  font: 13.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 5px; padding: 1px 5px;
}

/* ── Botones ──────────────────────────────────────────────────────────── */

.cta {
  display: inline-block; background: var(--sweep); color: #fff; text-decoration: none;
  font-weight: 650; padding: 13px 22px; border-radius: 12px; margin-top: 6px;
  box-shadow: 0 4px 14px rgba(10, 99, 214, .3);
}
.cta:hover { filter: brightness(1.06); }

.soon {
  display: inline-block; border: 1px solid var(--rule); background: var(--card);
  color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 11px 18px; border-radius: 12px; margin-top: 6px;
}

/* ── Tarjetas y listas de características ─────────────────────────────── */

.qa { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 4px 20px; margin: 16px 0; }
.qa h3 { font-size: 16px; margin: 18px 0 6px; }
.qa p { margin: 0 0 18px; }

.feats { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }

.feat {
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px;
  padding: 16px 18px;
}
.feat h3 { margin: 0 0 4px; font-size: 15.5px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.feat .glyph { font-size: 22px; line-height: 1; display: block; margin-bottom: 9px; }

/* ── Maquetas: el aviso y la Live Activity, como los dibuja la app ────── */

.demo { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin: 20px 0 6px; }
.demo > * { flex: 1 1 260px; min-width: 0; }

.banner {
  background: var(--night); border-radius: 20px; padding: 16px 18px; color: #fff;
  box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center;
}
.banner .dist { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.banner .dist span { font-size: 15px; font-weight: 600; opacity: .8; margin-left: 2px; }
.banner .meta { min-width: 0; }
.banner .road { font-size: 15px; font-weight: 700; }
.banner .sub { font-size: 13px; opacity: .82; margin-top: 3px; }
.banner .limit {
  margin-left: auto; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: #10141c; border: 4px solid var(--alert);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
}

.live {
  background: #10141c; border-radius: 22px; padding: 14px 16px; color: #fff;
  box-shadow: var(--shadow);
}
.live .top { display: flex; align-items: center; gap: 10px; }
.live .top img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.live .top .t { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.live .top .d { margin-left: auto; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.live .track {
  height: 6px; border-radius: 3px; margin: 12px 0 8px;
  background: linear-gradient(90deg, #1a8cff 0%, #1a8cff 62%, rgba(255, 255, 255, .16) 62%);
}
.live .foot { display: flex; font-size: 12px; opacity: .78; }
.live .foot span:last-child { margin-left: auto; }

.caption { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }

/* ── Documento largo (privacidad, página del revisor) ─────────────────── */

.doc header { border-bottom: 1px solid var(--rule); padding-bottom: 28px; margin-bottom: 36px; }
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.doc .wrap { padding-top: 48px; }

/* ── Varios ───────────────────────────────────────────────────────────── */

.note { color: var(--muted); font-size: 14px; }

.lead {
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px;
  padding: 18px 20px; margin: 0 0 8px;
}
.lead p { margin: 0; }
.lead p + p { margin-top: 10px; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.scroller { overflow-x: auto; }

.badge {
  display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.sub { color: var(--muted); margin: 0; font-size: 15px; }

hr.big { border: 0; border-top: 4px double var(--rule); margin: 72px 0 56px; }

footer {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 14px;
}
footer a { margin-right: 14px; }

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