:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --line: #e5e5ea;
  --key: #f0f0f3;
  --card: #f7f7f9;
  --accent: #4288f9;
  --accent-text: #2f6fd6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #6e6e73;
    --line: #2c2c2e;
    --key: #242427;
    --card: #1b1b1d;
    --accent-text: #6aa3ff;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img.app-icon { border-radius: 22.5%; display: block; }

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

/* nav */
.nav { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 10; }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav nav a:not(.btn) { color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* buttons */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px; font-size: 16px; font-weight: 500;
  border: 1px solid var(--line); color: var(--text); background: var(--bg); white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #3378e8; border-color: #3378e8; }
.btn.small { padding: 6px 14px; font-size: 14px; border-radius: 8px; }

/* hero */
.hero { text-align: center; padding: 72px 0 40px; }
.hero img { margin: 0 auto 28px; }
h1 { font-size: 56px; line-height: 1.07; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 700; }
.lead { font-size: 21px; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--faint); margin-top: 16px; }

/* keyboard demo */
.demo { padding: 24px 0 80px; }
.demo-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--card); }
.demo-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 16px; font-size: 15px; }
.demo-head strong { font-size: 16px; }
.demo-head .stat { color: var(--muted); font-variant-numeric: tabular-nums; }
.demo-head .stat b { color: var(--text); font-weight: 600; }
.demo-head button {
  margin-left: auto; font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0;
}
.demo-head button:hover { color: var(--text); }
.kb { position: relative; width: 100%; aspect-ratio: 15 / 5.65; }
.key {
  position: absolute; border-radius: 6px; background: var(--key);
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(8px, 1.25vw, 13px); color: var(--muted);
  transition: transform .2s ease, background-color .25s ease, color .25s ease;
  user-select: none;
}
.key.down { transform: scale(.92); background: var(--text) !important; color: var(--bg) !important; transition-duration: .04s; }
.demo-input {
  width: 100%; margin-top: 18px; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); outline: none;
}
.demo-input:focus { border-color: var(--accent); }
.demo-foot { font-size: 14px; color: var(--muted); margin: 12px 0 0; min-height: 1.5em; }

/* sections */
section.block { padding: 80px 0; border-top: 1px solid var(--line); }
h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 19px; margin: 0 0 44px; max-width: 620px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
.grid h3 { font-size: 18px; margin: 0 0 6px; }
.grid p { margin: 0; color: var(--muted); font-size: 16px; }
kbd {
  font: 600 13px -apple-system, BlinkMacSystemFont, sans-serif; padding: 2px 6px; border-radius: 5px;
  background: var(--key); border: 1px solid var(--line); color: var(--text);
}

.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.privacy p { color: var(--muted); margin: 0 0 14px; }
.privacy ul { margin: 0; padding: 0; list-style: none; }
.privacy li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 16px; }
.privacy li span:last-child { color: var(--muted); text-align: right; }

/* pricing */
.price-card { border: 1px solid var(--line); border-radius: 16px; padding: 36px; max-width: 460px; background: var(--card); }
.price { font-size: 52px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.price small { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card ul { padding: 0; margin: 24px 0 28px; list-style: none; }
.price-card li { padding: 7px 0 7px 26px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-text); font-weight: 700; }
.price-card .cta { justify-content: flex-start; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; max-width: 720px; }

/* steps (download + thanks) */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; max-width: 640px; }
.steps li { counter-increment: s; padding-left: 46px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin: 2px 0 4px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--faint); }
footer .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer .links { margin-left: auto; display: flex; gap: 18px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 28px; }
  h1 { font-size: 40px; }
  .lead { font-size: 18px; }
  h2 { font-size: 28px; }
  .sub { font-size: 17px; margin-bottom: 32px; }
  section.block { padding: 56px 0; }
  .grid, .privacy { grid-template-columns: 1fr; gap: 28px; }
  .demo-card { padding: 14px; }
  .demo-head { flex-wrap: wrap; gap: 6px 14px; }
  .key { border-radius: 3px; }
  .price-card { padding: 26px; }
  footer .links { margin-left: 0; }
}
