:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0066cc;
  --accent-hover: #0071e3;
  --on-accent: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #3a3a3c;
    --accent: #2997ff;
    --accent-hover: #47a6ff;
    --on-accent: #000000;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
img { max-width: 100%; }

/* Navigation */
.nav { background: var(--bg); }
.nav-inner { max-width: 1040px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.button { color: var(--on-accent); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 500; padding: 10px 20px; border-radius: 8px; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; white-space: nowrap; }
.button:hover { background: var(--accent-hover); text-decoration: none; }
.button.secondary { background: var(--bg-soft); color: var(--text); }
.button.secondary:hover { background: var(--line); }
.button.small { padding: 5px 12px; font-size: 14px; }
.button.large { padding: 12px 24px; }

/* Text pages */
main { max-width: 720px; margin: 0 auto; padding: 48px 20px 40px; }
main.wide { max-width: none; padding: 0; }
h1 { font-size: 40px; line-height: 1.1; margin: 0 0 8px; }
h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
h1, h2 { text-wrap: balance; }
li + li { margin-top: 4px; }
.muted { color: var(--muted); }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 32px; }
.note { padding: 14px 18px; border-radius: 8px; background: var(--bg-soft); font-size: 15px; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.toc { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.toc li + li { margin-top: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 48px; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 28px 20px 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; font-size: 13px; color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }
.footer-inner .copyright { margin-left: auto; }

/* Landing */
.section { max-width: 1040px; margin: 0 auto; padding: 72px 20px; }
.section > h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.15; margin: 0 0 12px; }
.section > .intro { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0 0 40px; }
.hero { text-align: center; padding-top: 72px; padding-bottom: 48px; }
.hero .icon { width: 104px; height: 104px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(40px, 6.5vw, 60px); margin-bottom: 14px; }
.hero .lede { max-width: 600px; margin: 0 auto 28px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Before and after */
.example { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.example > div { background: var(--bg-soft); border-radius: 12px; padding: 20px 24px; }
.example h3 { margin: 0 0 10px; font-size: 15px; color: var(--muted); font-weight: 600; }
.example ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.8; }
.example li { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.example .before li { color: var(--muted); }
.example .dir { font-weight: 600; }
.example .in1 { padding-left: 1.2em; }
.example .in2 { padding-left: 2.4em; }

.section > ul { padding-left: 20px; margin: 0; max-width: 680px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.features h3 { margin: 0 0 4px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
.plan { background: var(--bg-soft); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; }
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 40px; font-weight: 700; margin: 8px 0 0; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan-sub { margin: 0; font-size: 15px; }
.plan ul { margin: 16px 0 24px; padding-left: 20px; flex: 1; font-size: 16px; }
.plan .button { width: 100%; }
.plan .button.secondary { background: var(--bg); }
.plans-note { color: var(--muted); font-size: 14px; margin: 20px 0 0; }

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 48px 16px; }
  .hero { padding-top: 48px; }
  main { padding: 40px 16px 24px; }
  h1 { font-size: 32px; }
  .nav-inner { padding: 0 16px; gap: 12px; }
  .nav-links { gap: 14px; }
  .nav-links .optional { display: none; }
  .features, .plans, .example { grid-template-columns: 1fr; }
  .footer-inner { padding: 24px 16px 32px; }
  .footer-inner .copyright { margin-left: 0; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border: 0; padding: 2px 0; }
  tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
