:root {
  color-scheme: dark;
  --strip: #0a0a0a; --content: #191919; --nav: #1f1f1f; --panel: #202020;
  --field: #2c2c2c; --hover: #2d2d2d; --divider: #303030; --line: #3a3a3a;
  --pressed: #424242;
  --text: #f0f0f0; --label: #e1e1e1; --weak: #c8c8c8; --dim: #a0a0a0;
  --accent: #60cdff; --on-accent: #000;
  --accent-soft: rgba(96, 205, 255, .1);
  --warn-text: #e8b84a;
  --focus: var(--text);
  --dur: 150ms;
  --wrap: 1080px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, "SF Mono", Menlo, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --strip: #e8e8e8; --content: #ffffff; --nav: #f9f9f9; --panel: #f3f3f3;
  --field: #ffffff; --hover: #f0f0f0; --divider: #e5e5e5; --line: #dedede;
  --pressed: #dedede;
  --text: #1a1a1a; --label: #232323; --weak: #4a4a4a; --dim: #606060;
  --accent: #005fb8; --on-accent: #fff;
  --accent-soft: rgba(0, 95, 184, .07);
  --warn-text: #8a5a00;
  --focus: #1a1a1a;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --strip: #e8e8e8; --content: #ffffff; --nav: #f9f9f9; --panel: #f3f3f3;
    --field: #ffffff; --hover: #f0f0f0; --divider: #e5e5e5; --line: #dedede;
    --pressed: #dedede;
    --text: #1a1a1a; --label: #232323; --weak: #4a4a4a; --dim: #606060;
    --accent: #005fb8; --on-accent: #fff;
    --accent-soft: rgba(0, 95, 184, .07);
    --warn-text: #8a5a00;
    --focus: #1a1a1a;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
  html { scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--content); color: var(--text);
  font: 16px/1.6 var(--font);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
code, kbd { font: 14px var(--mono); background: var(--field); padding: 1px 5px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

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

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 5px;
}
.skip:focus { top: 12px; }

/* header */
.site-head { border-bottom: 1px solid var(--divider); background: var(--content); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em;
}
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a, .theme-btn {
  color: var(--weak); text-decoration: none; font-size: 15px;
  padding: 6px 10px; border-radius: 5px; min-height: 36px; display: inline-flex; align-items: center;
}
.site-nav a:hover, .theme-btn:hover { background: var(--hover); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); }
.theme-btn { background: none; border: 0; font: inherit; cursor: pointer; }
.theme-btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .site-head .wrap { gap: 4px 12px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { margin-left: -10px; width: calc(100% + 10px); }
  .site-nav .lang { margin-left: auto; }
  .site-nav a, .theme-btn { padding: 6px 10px; font-size: 15px; }
}

/* type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 600; }
h1 { font-size: clamp(34px, 6vw, 60px); letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 18px; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--weak); max-width: 38em; }
.eyebrow { font: 13px/1.4 var(--mono); color: var(--accent); letter-spacing: .02em; }
.muted { color: var(--dim); }
.small { font-size: 14px; }

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--divider); }
@media (max-width: 640px) { section { padding: 56px 0; } }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 44em; }

/* hero */
.hero { padding: 96px 0 72px; }
.hero .wrap { display: grid; gap: 24px; }
.hero h1 { max-width: 13em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.signals {
  display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; padding: 0; list-style: none;
  font: 14px/1.5 var(--mono); color: var(--dim);
}
.signals strong { color: var(--text); font-weight: 600; }
.signals li { display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
@media (max-width: 640px) { .hero { padding: 56px 0 48px; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 6px;
  font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
}
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { background: var(--pressed); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* features */
.shot {
  margin: 0 0 48px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--strip);
}
.shot figcaption { font-size: 14px; color: var(--dim); padding: 10px 14px; border-top: 1px solid var(--divider); }
.grid { display: grid; gap: 1px; background: var(--divider); border: 1px solid var(--divider); border-radius: 8px; overflow: hidden; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cell { background: var(--content); padding: 24px; display: grid; gap: 8px; align-content: start; }
.cell p { color: var(--weak); font-size: 15px; }
@media (max-width: 860px) { .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } .cell { padding: 20px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { padding-left: 22px; position: relative; color: var(--weak); }
.list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 2px; background: var(--accent); }
.list li strong { color: var(--text); font-weight: 600; }

.note {
  border: 1px solid var(--line); border-left: 3px solid var(--warn-text); border-radius: 6px;
  padding: 16px 18px; background: var(--panel); color: var(--weak); font-size: 15px;
}
.note strong { color: var(--text); }

/* feed sample */
.feed {
  font: 13.5px/1.7 var(--mono); background: var(--strip); border: 1px solid var(--line);
  border-radius: 8px; padding: 18px 20px; margin: 0; overflow-x: auto; color: var(--weak);
  white-space: pre;
}
@media (max-width: 560px) { .feed { white-space: pre-wrap; font-size: 12.5px; padding: 14px 16px; } }
.feed b { color: var(--text); font-weight: 600; }
.feed i { color: var(--dim); font-style: normal; }
.feed u { color: var(--accent); text-decoration: none; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan {
  border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--content);
  display: flex; flex-direction: column; gap: 16px;
}
.plan.pick { border-color: var(--accent); background: var(--accent-soft); }
.plan h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tag { font: 12px/1.4 var(--mono); color: var(--accent); font-weight: 400; letter-spacing: 0; }
.price { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.price span { font-size: 15px; font-weight: 400; color: var(--dim); letter-spacing: 0; }
.alt { font-size: 14px; color: var(--dim); margin-top: -8px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; color: var(--weak); }
.plan ul li { padding-left: 20px; position: relative; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--accent); }
.plan .btn { margin-top: auto; width: 100%; }
.plan-foot { margin-top: 20px; color: var(--dim); font-size: 14px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
caption { text-align: left; padding: 14px 16px; color: var(--dim); font-size: 14px; caption-side: bottom; border-top: 1px solid var(--divider); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--divider); vertical-align: top; }
thead th { font-weight: 600; background: var(--panel); white-space: nowrap; }
tbody th { font-weight: 400; color: var(--weak); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.y { color: var(--text); }
td.n { color: var(--dim); }

/* faq */
.faq { border-top: 1px solid var(--divider); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--divider); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg);
  transition: transform var(--dur) ease-out;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent); }
.faq .a { padding: 0 0 22px; color: var(--weak); display: grid; gap: 12px; max-width: 46em; }

/* cta band */
.band { text-align: left; }
.band .wrap { display: grid; gap: 20px; }

/* prose pages */
.prose { max-width: 44em; padding: 64px 0 96px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--weak); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; margin: 12px 0 0; }
.prose .updated { color: var(--dim); font-size: 14px; margin-bottom: 32px; }
.prose .note { margin-top: 24px; }

/* footer */
.site-foot { background: var(--strip); border-top: 1px solid var(--divider); padding: 48px 0 40px; font-size: 14px; color: var(--dim); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-grid h2 { font-size: 13px; font-weight: 600; color: var(--weak); letter-spacing: 0; margin-bottom: 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-grid a { color: var(--weak); text-decoration: none; display: inline-block; padding: 3px 0; }
.foot-grid a:hover { color: var(--text); text-decoration: underline; }
.foot-grid a.brand { display: inline-flex; color: var(--text); padding: 0; }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--divider); display: grid; gap: 6px; }
