:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #1b1b24;
  --muted: #5d5d6e;
  --line: #e3e3ec;
  --ocean: #4084d6;
  --lavender: #966ecd;
  --accent: #3f6fc6;
  --shadow: 0 1px 2px rgb(20 20 40 / 6%), 0 8px 24px rgb(20 20 40 / 6%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15151c;
    --surface: #1e1e27;
    --text: #ececf3;
    --muted: #a3a3b5;
    --line: #2e2e3a;
    --accent: #8ab4f0;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  font-size: 19px;
}

.brand img { width: 32px; height: 32px; }

header.site nav { display: flex; gap: 20px; font-size: 15px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  padding-block: 56px 72px;
}

.hero h1 {
  margin: 0 0 16px;
  font: 700 clamp(36px, 6vw, 58px)/1.08 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(120deg, var(--ocean), var(--lavender));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead { margin: 0 0 28px; font-size: 20px; color: var(--muted); max-width: 34em; }

.hero .art { display: flex; justify-content: center; }

.hero .art img {
  width: min(300px, 70vw);
  height: auto;
  filter: drop-shadow(0 24px 40px rgb(80 90 200 / 30%));
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 8px;
  background: linear-gradient(120deg, var(--ocean), var(--lavender));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button[aria-disabled="true"] { cursor: default; opacity: 0.9; }

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

section { padding: 48px 0; border-top: 1px solid var(--line); }

section h2 {
  margin: 0 0 8px;
  font: 650 30px/1.2 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

section > .wrap > p.sub { margin: 0 0 28px; color: var(--muted); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; margin: 0; padding: 0; list-style: none; }
.keys li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.keys li span { color: var(--muted); }

kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  font: 600 14px/1.5 "Segoe UI", system-ui, sans-serif;
  white-space: nowrap;
}

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

footer.site {
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { color: var(--muted); }

/* Long-form pages (privacy, support). */
.doc { max-width: 720px; padding: 32px 0 64px; }
.doc h1 { font: 700 40px/1.15 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; margin: 0 0 6px; letter-spacing: -0.015em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow); }
.doc .summary p { margin: 0; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { font: 15px Consolas, "Cascadia Mono", monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; word-break: break-all; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 32px 48px; gap: 24px; }
  .hero .art { order: -1; justify-content: flex-start; }
  .hero .art img { width: 120px; }
  .features, .promise { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  header.site nav { gap: 14px; }
  .hero p.lead { font-size: 18px; }
}
