:root {
  --bg: #ffffff;
  --surface: #f5f7fb;
  --border: #e3e8f0;
  --text: #16181d;
  --muted: #5b6472;
  --accent: #0052cc;
  --accent-soft: #e8f0ff;
  --radius: 14px;
  --maxw: 900px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --border: #262b35;
    --text: #eef1f6;
    --muted: #a3acbb;
    --accent: #6ea8ff;
    --accent-soft: #16233a;
  }
}

* { box-sizing: border-box; }

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

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

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

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  z-index: 10;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0052cc, #3d8bff);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

nav.site { margin-left: auto; display: flex; gap: 20px; }

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

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

/* Hero */
.hero { padding: 66px 0 44px; }

.hero .eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(30px, 5.2vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 800;
  max-width: 18ch;
}

.hero p.lede {
  font-size: clamp(17px, 2.2vw, 19.5px);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 26px;
}

.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }

.badge {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13.5px;
  font-weight: 700;
}

main a { color: var(--accent); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #0a5bd3;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 16.5px;
}

.cta:hover { opacity: 0.9; }

.cta.ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

/* Sections */
section { padding: 46px 0; border-top: 1px solid var(--border); }

section h2 {
  font-size: clamp(23px, 3.4vw, 29px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 800;
}

section > .wrap > p.sub { color: var(--muted); margin: 0 0 26px; max-width: 62ch; }

/* App entries */
.app {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.app-head { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  flex: 0 0 auto;
}

.app-icon.doc { background: linear-gradient(135deg, #0052cc, #3d8bff); }
.app-icon.pp { background: linear-gradient(135deg, #0f9d76, #46c9a2); }
.app-icon.buddy { background: linear-gradient(135deg, #7a4dd6, #a983f5); }

.app h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }

.app .platform { color: var(--muted); font-size: 14px; font-weight: 600; }

.app .status {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.app p { color: var(--muted); font-size: 16px; margin: 14px 0 0; }

.app .links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 15px; font-weight: 600; }

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }

.tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--bg);
}

ul.plain { padding-left: 20px; margin: 0; color: var(--muted); }
ul.plain li { margin-bottom: 8px; }

dl.contact { margin: 0; }
dl.contact dt { font-weight: 700; margin-top: 16px; font-size: 15px; }
dl.contact dt:first-child { margin-top: 0; }
dl.contact dd { margin: 3px 0 0; color: var(--muted); }

/* Prose pages */
.prose { padding: 42px 0 60px; }
.prose h1 { font-size: clamp(27px, 4.4vw, 36px); letter-spacing: -0.02em; margin: 0 0 6px; }
.prose h2 { font-size: 20px; margin: 34px 0 8px; letter-spacing: -0.01em; }
.prose h3 { font-size: 17px; margin: 24px 0 6px; }
.prose .updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { font-weight: 700; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0 46px;
  color: var(--muted);
  font-size: 14.5px;
}

footer.site a { color: var(--muted); }
footer.site .row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }

@media (max-width: 560px) {
  .hero { padding: 44px 0 30px; }
  nav.site { gap: 14px; }
  nav.site a { font-size: 14px; }
  .app .status { margin-left: 0; }
}
