/* Lookopen Remote — download site
   Single stylesheet, no framework. Optimised for the one-pager flow:
   land → see your platform → click → done. */

:root {
  --ink:        #0f1419;
  --ink-soft:   #46505a;
  --paper:      #ffffff;
  --line:       #e7eaee;
  --accent:     #1f6feb;
  --accent-ink: #ffffff;
  --warn-bg:    #fff8e1;
  --warn-line:  #facc15;
  --trust-bg:   #f1f5f9;
  --code-bg:    #0f1419;
  --code-ink:   #e7eaee;
  --radius:     10px;
  --shadow:     0 1px 0 rgba(15, 20, 25, .04), 0 6px 24px -8px rgba(15, 20, 25, .12);
  --font:       -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
                Helvetica, Arial, sans-serif;
  --mono:       "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
header .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
}
header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
}
header nav a:hover { color: var(--ink); }

h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 32px 0 16px;
}
h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  letter-spacing: -0.005em;
}
h3 {
  font-size: 16px;
  margin: 8px 0 4px;
}
.lede {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 28px;
}
p, ul, ol { margin: 0 0 14px; }

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

code {
  font-family: var(--mono);
  font-size: 13.5px;
  background: var(--trust-bg);
  border-radius: 4px;
  padding: 1px 5px;
}
pre {
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.55;
}
pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* ── Primary CTA ─────────────────────────────────────────────────────── */
.download {
  margin: 24px 0;
}
.button {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  box-shadow: var(--shadow);
  transition: transform .08s ease, box-shadow .08s ease;
}
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.button-secondary {
  background: var(--paper);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.button .version {
  font-weight: 400;
  font-size: 13px;
  opacity: 0.75;
}
.sha {
  margin: 10px 2px 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ── Alternates list ──────────────────────────────────────────────────── */
details.alt {
  margin-top: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
details.alt summary {
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 8px;
}
details.alt ul {
  list-style: none;
  padding: 0;
}
details.alt li {
  padding: 4px 0;
  font-size: 14.5px;
}
details.alt .sha-mini {
  font-family: var(--mono);
  color: var(--ink-soft);
  font-size: 12px;
  margin-left: 6px;
}

/* ── Warning block (unsigned installers) ─────────────────────────────── */
.warning {
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-line);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin: 28px 0;
}
.warning h2 { margin-top: 0; }
.warning ul { margin: 12px 0 12px 22px; }

/* ── Trust block (key fingerprint) ───────────────────────────────────── */
.trust {
  background: var(--trust-bg);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin: 28px 0;
}
.trust h2 { margin-top: 0; }

/* ── Steps list (iOS, verify pages) ──────────────────────────────────── */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.steps > li {
  counter-increment: step;
  padding: 16px 0 16px 56px;
  border-top: 1px solid var(--line);
  position: relative;
}
.steps > li:first-child { border-top: none; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
}

.qr img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--paper);
}

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

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13.5px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #e6e8ea;
    --ink-soft:   #9aa4ad;
    --paper:      #0d1117;
    --line:       #21262d;
    --warn-bg:    #2c2410;
    --warn-line:  #d4a017;
    --trust-bg:   #161b22;
    --code-bg:    #161b22;
    --code-ink:   #e6e8ea;
    --shadow:     0 1px 0 rgba(0, 0, 0, .4), 0 6px 24px -8px rgba(0, 0, 0, .6);
  }
}
