:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #ccfbf1;
  --card: #ffffff;
  --code-bg: #111827;
  --code-text: #e5e7eb;
  --radius: 14px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-soft: #111827;
    --ink: #f9fafb;
    --text: #d1d5db;
    --muted: #9ca3af;
    --line: #1f2937;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: #134e4a;
    --card: #111827;
    --code-bg: #030712;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-strong); }
a:hover { color: var(--accent); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, pre { font-family: "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace; font-size: .9em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.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; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-weight: 400; color: var(--muted); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-strong); }

/* Sections */
section { padding: 64px 0; }
.soft { background: var(--bg-soft); }
.hero { padding: 80px 0 64px; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 46em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 12px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-primary:hover { color: #042f2e; } }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; pointer-events: none; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: .85rem; font-weight: 600; }
.note { color: var(--muted); font-size: .95rem; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-top: 0; }
.product-card { display: flex; flex-direction: column; }
.product-card .head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.product-card .head img { width: 56px; height: 56px; border-radius: 12px; }
.product-card .head h3 { margin: 0; font-size: 1.4rem; }
.product-card .tag { color: var(--muted); font-size: .95rem; }
.product-card ul { padding-left: 1.2em; margin: 0 0 20px; }
.product-card .actions { margin-top: auto; }

.feature h3 { font-size: 1.05rem; margin-bottom: .3em; }
.feature p { margin: 0; font-size: .97rem; }

.product-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.product-hero img { width: 96px; height: 96px; border-radius: 20px; }
.product-hero > div { flex: 1 1 320px; }

/* Pricing */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.price { font-size: 2.2rem; font-weight: 700; color: var(--ink); }
.price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price s { font-size: 1.2rem; color: var(--muted); font-weight: 400; margin-right: 6px; }
.plan ul { padding-left: 1.2em; }
.plan.pro { border: 2px solid var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 480px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); background: var(--bg-soft); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--accent-strong); font-weight: 700; }

pre { background: var(--code-bg); color: var(--code-text); padding: 18px 20px; border-radius: 12px; overflow-x: auto; line-height: 1.5; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--card); margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: 10px 0 0; }

/* Prose pages (privacy, terms) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.draft { border: 1px dashed #d97706; background: rgba(217, 119, 6, .08); padding: 14px 18px; border-radius: 10px; margin-bottom: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-strong); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 44px; }
  .site-header { position: static; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .card { padding: 22px; }
}
