:root {
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --text: #0f172a;
  --muted: #526071;
  --line: #e2e8f0;
  --brand: #0b2447;
  --accent: #14b8a6;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #111a2c;
    --text: #e6edf6;
    --muted: #9aa8bb;
    --line: #1f2b40;
    --brand: #e6edf6;
    --card: #131e33;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.topbar { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-weight: 700; text-decoration: none; color: var(--brand); font-size: 18px; white-space: nowrap; }
nav { display: flex; gap: 18px; }
nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--text); }

.hero { padding: 72px 0 56px; background: linear-gradient(135deg, rgba(11,36,71,.07), rgba(20,184,166,.10)); }
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.5px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 620px; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
}
.btn:hover { filter: brightness(1.05); }
.btn-disabled { background: var(--line); color: var(--muted); }

.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: 26px; margin: 0 0 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.card {
  display: flex; gap: 16px; padding: 20px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none;
  border-top: 4px solid var(--accent); transition: transform .15s ease;
}
.card:hover { transform: translateY(-2px); }
.card h3 { margin: 0 0 4px; font-size: 19px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.card-icon { border-radius: 18px; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip.status { border-color: var(--accent); color: var(--text); }

.app-head { display: flex; gap: 28px; align-items: center; }
.app-icon { border-radius: 28px; box-shadow: var(--shadow); flex: none; }
.summary { font-size: 18px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 28px 0; }
.feature { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.faq { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; background: var(--card); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.prose h1 { font-size: 32px; margin: 0 0 6px; }
.prose h2 { font-size: 20px; margin: 32px 0 8px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); }
code { font-size: .92em; }

.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.draft { background: #fef3c7; color: #78350f; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.link-list { padding-left: 18px; }
.link-list li { margin: 6px 0; }

.footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  nav { gap: 12px; }
  nav a { font-size: 14px; }
  .app-head { flex-direction: column; align-items: flex-start; }
  .app-icon { width: 96px; height: 96px; }
  .hero { padding: 48px 0 40px; }
}
