/* One stylesheet for the whole site. Same palette as the app, because the
   download page and the thing you download should feel like one product. */
:root {
  --bg: #0a0c10;
  --surface: #12151c;
  --surface-high: #181c25;
  --border: #232936;
  --text: #e8ecf3;
  --subtext: #8d97a8;
  --accent: #4c9aff;
  --good: #3ecf8e;
  --warn: #f0b429;
  --bad: #ef5350;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Ubuntu, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; color: var(--text); }
.logo i { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); display: block; }
header.top nav { margin-left: auto; display: flex; gap: 20px; font-size: 14.5px; }
header.top nav a { color: var(--subtext); }
header.top nav a:hover, header.top nav a.here { color: var(--text); text-decoration: none; }

.hero { padding: 76px 0 56px; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.7px; }
.hero p.lead { font-size: 19px; color: var(--subtext); margin: 0 0 30px; max-width: 620px; }

.idbox {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 22px; margin-bottom: 30px;
}
.idbox .digits { font-family: var(--mono); font-size: 30px; letter-spacing: 3px; }
.idbox .caption { font-size: 13.5px; color: var(--subtext); max-width: 210px; line-height: 1.4; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #04070d; font-weight: 650;
  padding: 12px 20px; border-radius: 10px; border: 1px solid var(--accent);
}
.btn:hover { background: #63a9ff; text-decoration: none; }
.btn.ghost { background: none; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--accent); background: var(--surface-high); }
.btn small { display: block; font-weight: 400; font-size: 11.5px; opacity: 0.75; }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

section { padding: 54px 0; border-top: 1px solid var(--border); }
section h2 { font-size: 27px; margin: 0 0 10px; letter-spacing: -0.3px; }
section > .wrap > p.sub { color: var(--subtext); margin: 0 0 30px; max-width: 640px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 13px; padding: 20px;
}
.card h3 { margin: 0 0 7px; font-size: 16.5px; }
.card p { margin: 0; color: var(--subtext); font-size: 14.5px; }
.card .pill { font-size: 11.5px; color: var(--good); border: 1px solid #23543f; padding: 1px 8px; border-radius: 999px; }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
ol.steps li { counter-increment: s; display: flex; gap: 16px; }
ol.steps li::before {
  content: counter(s);
  flex: 0 0 32px; height: 32px; border-radius: 50%;
  background: var(--surface-high); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--accent);
}
ol.steps b { display: block; }
ol.steps span { color: var(--subtext); font-size: 15px; }

table.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
table.compare th, table.compare td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare th { color: var(--subtext); font-weight: 600; font-size: 13.5px; }
table.compare td.y { color: var(--good); }
table.compare td.n { color: var(--subtext); }

.note {
  border-left: 3px solid var(--warn); background: var(--surface);
  padding: 16px 18px; border-radius: 0 10px 10px 0; margin: 22px 0;
}
.note.bad { border-left-color: var(--bad); }
.note.good { border-left-color: var(--good); }
.note p:last-child { margin-bottom: 0; }

details { border-bottom: 1px solid var(--border); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+ "; color: var(--accent); }
details[open] summary::before { content: "– "; }
details p { color: var(--subtext); margin: 10px 0 0; }

code, .mono { font-family: var(--mono); font-size: 0.92em; background: var(--surface-high); padding: 2px 6px; border-radius: 5px; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; overflow-x: auto; font-size: 13.5px; }
pre code { background: none; padding: 0; }

footer { border-top: 1px solid var(--border); padding: 34px 0 60px; color: var(--subtext); font-size: 14px; }
footer .row { justify-content: space-between; }

h1.page { font-size: 34px; margin: 46px 0 10px; letter-spacing: -0.5px; }
h3.sub { font-size: 18px; margin: 34px 0 8px; }
p.small { font-size: 14px; color: var(--subtext); }

@media (max-width: 640px) {
  .hero h1 { font-size: 33px; }
  header.top nav { gap: 14px; font-size: 13.5px; }
  .idbox { flex-direction: column; align-items: flex-start; gap: 8px; }
}
