:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #17171f;
  --muted: #5c5c6e;
  --line: #e3e3ec;
  --accent: #5e62d6;
  --accent-text: #ffffff;
  --accent-soft: #ecebfd;
  --warn: #9a6410;
  --code: #f0f0f6;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111116;
    --surface: #1a1a22;
    --text: #ececf3;
    --muted: #a0a0b4;
    --line: #2b2b38;
    --accent: #7b7ff5;
    --accent-text: #ffffff;
    --accent-soft: #23234a;
    --warn: #e0a238;
    --code: #22222c;
    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.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

a { color: var(--accent); }

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

header.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

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

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
}

nav a:hover { color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 56px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
}

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

.hero .art img {
  width: min(300px, 70vw);
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(60, 60, 140, 0.25));
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-text);
}

.button:hover { filter: brightness(1.08); }

.button.secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.fine {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

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

section h2 {
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

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

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

.card h3 { margin: 0 0 6px; font-size: 17px; }

.card p { margin: 0; color: var(--muted); font-size: 15px; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.plan h3 { font-size: 20px; margin: 0 0 4px; }

.plan .price {
  font-size: 34px;
  font-weight: 700;
  margin: 8px 0 12px;
}

.plan ul { padding-left: 20px; color: var(--muted); margin: 0 0 20px; }

.plan form { margin: 0; }

.plan.featured { border-color: var(--accent); }

kbd {
  font: 14px ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

.key {
  display: block;
  width: 100%;
  font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  color: var(--text);
  word-break: break-all;
  white-space: pre-wrap;
  margin: 0 0 12px;
}

.notice {
  border-left: 3px solid var(--warn);
  padding: 4px 0 4px 14px;
  color: var(--muted);
}

ol.steps { padding-left: 22px; }

ol.steps li { margin-bottom: 6px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.narrow { max-width: 680px; padding: 32px 0 64px; }

.narrow h1 { font-size: 34px; letter-spacing: -0.02em; margin: 8px 0 16px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 24px; }
  .hero .art { order: -1; justify-content: flex-start; }
  .hero .art img { width: 112px; }
  .features, .plans { grid-template-columns: 1fr; }
  nav a { margin-left: 12px; font-size: 14px; }
  nav a:first-child { margin-left: 0; }
}

/* Pricing with three plans, the buy and lost-key forms. */
.plans.three { grid-template-columns: repeat(3, 1fr); }

.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }

.narrow h2 { font-size: 22px; margin: 32px 0 10px; }

.narrow ul { padding-left: 22px; }

.narrow li { margin-bottom: 6px; }

code {
  font: 14px ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--code);
  border-radius: 5px;
  padding: 1px 5px;
}

form.buy { margin: 20px 0 0; }

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
}

.choice:has(input:checked) { border-color: var(--accent); }

.choice span:nth-of-type(1) { flex: 1; display: flex; flex-direction: column; }

.choice small, .field small { color: var(--muted); font-size: 14px; }

.choice .cost { font-weight: 650; white-space: nowrap; }

.choice .cost s { color: var(--muted); font-weight: 400; margin-right: 6px; }

.field { margin: 16px 0; display: flex; flex-direction: column; gap: 6px; }

.field label { font-weight: 600; font-size: 15px; }

.field input {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 420px;
}

.field input[type="number"] { max-width: 120px; }

.field input:focus-visible, .button:focus-visible, .choice:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.total b { font-size: 26px; }

.total small { color: var(--muted); }

.button:disabled { opacity: 0.5; cursor: default; filter: none; }

[hidden] { display: none !important; }

@media (max-width: 760px) {
  .plans.three { grid-template-columns: 1fr; }
}
