/* liathos.com — the same dark, ivory-on-graphite look as the app (src/app.css),
   with its three typefaces served from here instead of a CDN. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #161616;
  --bg-raised: #1e1e1e;
  --bg-hover: #2e2e2e;
  --text: #bdbab4;
  --text-quiet: #9b9b9b;
  --ivory: #ded5c4;
  --ivory-bright: #f2ede2;
  --gold: #b3a476;
  --gold-lit: #d4c392;
  --link: #9db6c7;
  --border: #313131;
  --warn: #d9a574;
  --radius: 12px;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  color: var(--ivory);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand img { border-radius: 50%; }

h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 7vw, 44px);
  line-height: 1.15;
  color: var(--ivory-bright);
}

h2 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
  color: var(--ivory);
}

p { margin: 0 0 14px; }

.lead { font-size: 18px; color: var(--text); margin-bottom: 40px; }

section {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

strong { color: var(--ivory); font-weight: 600; }
em { font-style: normal; color: var(--ivory); }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #acd0e9; }

/* ── Qué sección se ve ───────────────────────────────────────────────── */
.for-phone { display: none; }
html[data-device="phone"] .for-windows,
html[data-device="phone"] .for-other { display: none; }
html[data-device="phone"] .for-phone { display: block; }
html[data-device="windows"] .for-other { display: none; }
html[data-device="other"] .for-windows { display: none; }

/* ── Los tres pasos ──────────────────────────────────────────────────── */
.steps {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 0 44px;
  margin-bottom: 20px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-lit);
  font-size: 15px;
  font-weight: 600;
}
.steps p { margin-bottom: 10px; }

.command {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.command code {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ivory-bright);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.after { color: var(--text-quiet); font-size: 15px; margin: 8px 0 0; }

/* ── Botones ─────────────────────────────────────────────────────────── */
button, .secondary {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-hover);
  color: var(--ivory);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
button:hover, .secondary:hover { background: #383838; border-color: #4a4a4a; color: var(--ivory-bright); }

.command .copy { flex-shrink: 0; min-width: 96px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.actions > * { flex: 1 1 200px; }
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold-lit);
  outline-offset: 3px;
}

/* ── Qué hace el instalador ──────────────────────────────────────────── */
.trust {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trust summary {
  padding: 16px 24px;
  color: var(--ivory);
  font-weight: 600;
  cursor: pointer;
}
.trust ul { margin: 0; padding: 0 24px 20px 44px; }
.trust li { margin-bottom: 10px; font-size: 16px; }
.trust code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ivory);
  overflow-wrap: anywhere;
}

.warning {
  padding: 16px 20px;
  border-left: 3px solid var(--warn);
  background: var(--bg-raised);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  main { padding-top: 32px; }
  section { padding: 20px 16px; }
  .command { flex-direction: column; }
  .command .copy { width: 100%; }
  .trust summary { padding: 14px 16px; }
  .trust ul { padding: 0 16px 16px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
