:root {
  --bg: #fbf8f5;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #6b625b;
  --line: #ece5de;
  --accent: #ff692d;
  --accent-deep: #c2410c;
  --accent-soft: #fff3ea;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(28 25 23 / 0.04), 0 8px 24px rgb(28 25 23 / 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141110;
    --surface: #1e1a18;
    --text: #f5f0ec;
    --muted: #a89d95;
    --line: #2f2925;
    --accent: #ff7a45;
    --accent-deep: #ff9a6e;
    --accent-soft: #2c2420;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

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

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

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

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

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

/* Hero */
.hero { padding: 72px 0 40px; }
.eyebrow { color: var(--accent-deep); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 16px; }
h2 { font-size: 26px; letter-spacing: -0.015em; line-height: 1.25; margin: 48px 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lede { font-size: 20px; color: var(--muted); max-width: 620px; margin: 0; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.product { display: flex; gap: 24px; align-items: center; text-decoration: none; color: inherit; }
.product:hover { border-color: var(--accent); }
.product img { width: 96px; height: 96px; border-radius: 22px; flex: none; }
.product p { margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid .card p { margin: 0; color: var(--muted); font-size: 16px; }

.app-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.app-hero img { width: 128px; height: 128px; border-radius: 29px; box-shadow: var(--shadow); }

.badge { display: inline-block; margin-top: 20px; padding: 10px 18px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; font-size: 15px; }

/* Long-form documents */
.doc h1 { font-size: clamp(30px, 5vw, 40px); }
.doc h2 { font-size: 22px; margin-top: 40px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc li { margin: 6px 0; }
.note { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; }

@media (max-width: 560px) {
  .product { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 48px; }
}
