:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5d6370;
  --line: #e6e6e3;
  --accent: #1f5eff;
  --accent-soft: #eaf0ff;
  --radius: 16px;
  --max: 1080px;
  color-scheme: light dark;
}

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding-block: 96px 72px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 14ch;
}
.lede { font-size: 20px; color: var(--muted); max-width: 46ch; margin: 0 0 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.btn:hover { text-decoration: none; opacity: 0.88; }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; max-width: 60ch; }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.apps { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.app { display: flex; gap: 18px; align-items: flex-start; }
.app img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.app .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.app .links { margin-top: 12px; display: flex; gap: 16px; font-size: 14px; font-weight: 600; }

/* Prose pages */
.page { padding-block: 72px 96px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; margin: 0 0 12px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; margin: 40px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }

.contact-card { max-width: 560px; margin-top: 32px; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; }
.contact-card dt { font-weight: 600; }
.contact-card dd { margin: 0; color: var(--muted); }

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

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .hero { padding-block: 64px 48px; }
  .grid.apps { grid-template-columns: 1fr; }
}

/* App landing pages (see _template/) */
.app-hero { padding-block: 88px 64px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.app-hero .icon { width: 96px; height: 96px; border-radius: 22px; border: 1px solid var(--line); margin-bottom: 24px; }
.app-hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; }
.app-hero .shot { width: 280px; max-width: 100%; border-radius: 32px; border: 1px solid var(--line); }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 16px; display: block; }

@media (max-width: 800px) {
  .app-hero { grid-template-columns: 1fr; padding-block: 56px 40px; }
  .app-hero .shot { justify-self: center; }
}
