:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5d6370;
  --line: #e6e3dc;
  --accent: #1f3a5f;
  --accent-soft: #e8eef6;
  --max: 1040px;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a20;
    --text: #eceef2;
    --muted: #9aa1ad;
    --line: #262a33;
    --accent: #8fb3e3;
    --accent-soft: #1a2433;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 650; letter-spacing: -0.01em; font-size: 18px;
  color: var(--text); text-decoration: none;
}
.brand svg { width: 28px; height: 28px; color: var(--accent); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding-top: 112px; padding-bottom: 96px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px); line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 700; margin: 0 0 24px; max-width: 16ch;
}
.lede { font-size: 20px; color: var(--muted); max-width: 40ch; margin: 0; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 8px; }
.section-intro { color: var(--muted); margin: 0 0 36px; }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  color: inherit; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card img { width: 56px; height: 56px; border-radius: 13px; }
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--accent); }
.card.placeholder { border-style: dashed; justify-content: center; color: var(--muted); }
.badge {
  align-self: flex-start; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}

/* Two-column text */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cols p { margin: 0 0 16px; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--muted); }

/* Prose pages */
.prose { max-width: 720px; padding: 64px 0 96px; }
.prose h1 { font-size: 40px; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; }
.prose .updated { color: var(--muted); margin: 0 0 40px; }
.prose h2 { font-size: 22px; margin: 40px 0 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.prose code { font-size: 14px; background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; }
.table-scroll { overflow-x: auto; }

.button {
  display: inline-block; padding: 12px 20px; border-radius: 10px;
  background: var(--accent); color: var(--bg); font-weight: 600;
  text-decoration: none;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 72px; padding-bottom: 64px; }
  section { padding: 56px 0; }
  .cols { grid-template-columns: 1fr; gap: 24px; }
  .nav { gap: 16px; }
  .prose h1 { font-size: 32px; }
}

/* Bitemize accent */
:root { --accent: #2e7d32; --accent-soft: #e8f3e9; }
@media (prefers-color-scheme: dark) {
  :root { --accent: #7cc47f; --accent-soft: #1a2b1b; }
}
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.feature-grid .card h3 { font-size: 18px; }
.app-hero { display: flex; gap: 28px; align-items: center; margin-bottom: 28px; }
.app-hero img { width: 96px; height: 96px; border-radius: 22px; }
.note { color: var(--muted); font-size: 14px; }
