:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1f21;
  --muted: #5f6368;
  --line: #e4e2dc;
  --accent: #2f7d4f;
  --accent-soft: #e5f1e9;
  --code-bg: #f1efe9;
  --max: 920px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161819;
    --surface: #1e2122;
    --text: #e8e6e1;
    --muted: #a3a7a9;
    --line: #2e3234;
    --accent: #6cc58f;
    --accent-soft: #1f3328;
    --code-bg: #262a2b;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #161819;
  --surface: #1e2122;
  --text: #e8e6e1;
  --muted: #a3a7a9;
  --line: #2e3234;
  --accent: #6cc58f;
  --accent-soft: #1f3328;
  --code-bg: #262a2b;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

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

code {
  font: 0.9em/1.4 ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

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

.brand svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  padding-top: 72px;
  padding-bottom: 56px;
}

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

.hero p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.hero p + p {
  margin-top: 16px;
}

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

h2 {
  margin: 0 0 20px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

@media (min-width: 600px) {
  .features .key {
    grid-column: span 2;
  }
}

.features strong {
  display: block;
  margin-bottom: 4px;
}

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

ul.plain {
  margin: 0;
  padding-left: 20px;
}

ul.plain li + li {
  margin-top: 6px;
}

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

.site-footer p {
  margin: 0 0 6px;
}

.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home h1 {
  margin: 0 0 32px;
  font-size: 22px;
  font-weight: 650;
  color: var(--muted);
}

.product {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 420px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.product:hover {
  border-color: var(--accent);
}

.product svg {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.product strong {
  display: block;
  font-size: 19px;
}

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