/* Design plan.
   Base: paper #F2F3F6, surface #FFFFFF, ink #14161B, muted #4A505C, line #D5D9E1, action #2246C4.
   Dark: ground #0F1115, surface #171A20, ink #ECEEF2, muted #A6ADBB, line #2B303A, action #9DB2FF.
   Module colors mirror the app's system colors and appear only as dots, badges and gauges beside a name.
   Type: one system family. Headlines in the rounded system face (ui-rounded), tight; numbers rounded with
   tabular digits, like the app's gauges. Body 17px/1.6, prose capped near 66ch.
   Layout: left aligned. The memorable piece is the drawn menu bar and popover in the hero; the rest is
   plain ruled lists and one comparison table. */

:root {
  --paper: #f2f3f6;
  --surface: #ffffff;
  --ink: #14161b;
  --muted: #4a505c;
  --line: #d5d9e1;
  --action: #2246c4;
  --action-ink: #ffffff;
  --tile: rgba(20, 22, 27, 0.05);
  --tile-line: rgba(20, 22, 27, 0.08);
  --c-green: #2fa84f;
  --c-orange: #f08a1c;
  --c-blue: #3478f6;
  --c-indigo: #5856d6;
  --c-teal: #2ba3b5;
  --c-purple: #af52de;
  --c-pink: #e8457c;
  --c-mint: #17a58f;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 40px; --s7: 72px;
  --wrap: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1115;
    --surface: #171a20;
    --ink: #eceef2;
    --muted: #a6adbb;
    --line: #2b303a;
    --action: #9db2ff;
    --action-ink: #0f1115;
    --tile: rgba(236, 238, 242, 0.06);
    --tile-line: rgba(236, 238, 242, 0.1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--action); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -4rem; background: var(--surface); color: var(--ink); padding: var(--s2) var(--s4); border-radius: 8px; z-index: 10; }
.skip:focus { top: var(--s2); }

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

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s5); padding-top: var(--s3); padding-bottom: var(--s3); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); font: 700 1.125rem/1 var(--round); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 22px; height: 22px; border-radius: 5px; background: var(--ink); display: grid; place-items: center; }
.brand-mark span { width: 12px; height: 3px; border-radius: 2px; background: var(--paper); box-shadow: 0 -5px 0 var(--paper), 0 5px 0 var(--paper); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; padding: var(--s1) 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.3em; }

/* Type */
h1, h2, h3 { font-family: var(--round); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); font-weight: 750; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 var(--s4); }
.lede { font-size: clamp(1.1875rem, 2vw, 1.4375rem); line-height: 1.45; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }
.num { font-family: var(--round); font-variant-numeric: tabular-nums; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0 var(--s4); }
.btn { display: inline-block; padding: 0.8em 1.3em; border-radius: 10px; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--tile); }
.btn-primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn-primary:hover { background: var(--action); filter: brightness(1.08); }

/* Hero */
.hero { padding: var(--s7) 0 var(--s6); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s6); align-items: center; }
.hero h1 { margin-bottom: var(--s5); max-width: 11ch; }
.fine { font-size: 0.9375rem; color: var(--muted); max-width: 34rem; }

/* Drawn menu bar and popover */
.desk { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.menubar { white-space: nowrap; gap: var(--s3); display: flex; align-items: center; justify-content: space-between; padding: 6px var(--s4); font-size: 0.8125rem; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--tile); }
.menubar .tray { display: flex; gap: var(--s3); align-items: center; }
.menubar .tray-icon { width: 16px; height: 16px; border-radius: 4px; background: var(--ink); display: grid; place-items: center; }
.menubar .tray-icon span { width: 9px; height: 2px; background: var(--surface); box-shadow: 0 -3.5px 0 var(--surface), 0 3.5px 0 var(--surface); }
.popover { margin: var(--s4) var(--s4) var(--s5) auto; width: min(100%, 22.5rem); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: var(--s3); box-shadow: 0 18px 40px -22px rgba(20, 22, 27, 0.45); }
.pop-head { display: flex; align-items: center; gap: var(--s2); padding: 2px 2px var(--s3); font: 700 0.9375rem/1 var(--round); }
.chip { font: 600 0.6875rem/1 var(--sans); padding: 4px 7px; border-radius: 99px; background: var(--tile); border: 1px solid var(--tile-line); color: var(--muted); }
.pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.tile { background: var(--tile); border: 0.5px solid var(--tile-line); border-radius: 12px; padding: 10px 12px 12px; min-height: 5.75rem; }
.tile.wide { grid-column: 1 / -1; }
.tile-head { display: flex; align-items: center; gap: var(--s2); font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-bottom: var(--s2); }
.tile-head .state { margin-left: auto; color: var(--ink); animation: pulse 2.4s ease-in-out infinite alternate; }
.badge { width: 20px; height: 20px; border-radius: 4.5px; display: grid; place-items: center; flex: none; }
.badge svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat { font: 600 1.375rem/1.1 var(--round); font-variant-numeric: tabular-nums; }
.stat small { font-size: 0.8125rem; color: var(--muted); font-weight: 600; margin-left: 2px; }
.spark { width: 100%; height: 34px; margin-top: var(--s2); }
.bar { height: 5px; border-radius: 3px; background: var(--tile-line); margin-top: var(--s3); overflow: hidden; }
.bar i { display: block; height: 100%; width: 62%; border-radius: 3px; background: var(--c-indigo); }
.ring { width: 34px; height: 34px; float: right; margin-top: -4px; }
.bg-green { background: var(--c-green); } .bg-orange { background: var(--c-orange); } .bg-blue { background: var(--c-blue); }
.bg-indigo { background: var(--c-indigo); } .bg-teal { background: var(--c-teal); } .bg-purple { background: var(--c-purple); }
.bg-pink { background: var(--c-pink); } .bg-mint { background: var(--c-mint); }
.caption { padding: 0 var(--s4) var(--s3); font-size: 0.8125rem; color: var(--muted); }
@keyframes pulse { from { opacity: 1; } to { opacity: 0.55; } }

/* Sections */
.band { padding: var(--s7) 0; border-top: 1px solid var(--line); }
.band > .wrap > h2 { margin-bottom: var(--s4); }
.band > .wrap > .intro { max-width: 40rem; color: var(--muted); margin-bottom: var(--s6); }
.dot { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; margin-right: 0.55em; vertical-align: 0.02em; }

.modules { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s6); }
.modules li { break-inside: avoid; padding: var(--s4) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 0 var(--s3); }
.modules h3 { margin-bottom: 2px; }
.modules p { margin: 0; color: var(--muted); font-size: 1rem; }
.modules .badge { margin-top: 2px; width: 24px; height: 24px; border-radius: 5.5px; }
.modules .badge svg { width: 14px; height: 14px; }
.tag { font-size: 0.8125rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; margin-left: var(--s2); vertical-align: 0.1em; white-space: nowrap; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table-wrap:focus-visible { outline-offset: 0; }
table.compare { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 52rem; font-size: 0.9375rem; line-height: 1.45; }
.compare caption { text-align: left; padding: var(--s3) var(--s4); color: var(--muted); caption-side: bottom; font-size: 0.875rem; }
.compare th, .compare td { padding: var(--s3) var(--s4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { vertical-align: bottom; background: var(--surface); }
.compare thead .price { display: block; font: 700 1.75rem/1.1 var(--round); font-variant-numeric: tabular-nums; margin-top: var(--s1); }
.compare thead .sub { font-weight: 500; color: var(--muted); font-size: 0.875rem; }
.compare tbody th { font-weight: 650; width: 15%; position: sticky; left: 0; background: var(--surface); border-right: 1px solid var(--line); }
.compare .col-pro { background: var(--tile); }
.compare .none { color: var(--muted); }
.compare .later { color: var(--muted); font-style: italic; }

table.versions { min-width: 40rem; }
.versions .mono { word-break: break-all; font-size: 0.8125rem; }

/* Prices */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.price-block { border-top: 3px solid var(--ink); padding-top: var(--s4); }
.price-block .amount { font: 750 clamp(3rem, 7vw, 4.5rem)/1 var(--round); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; margin: var(--s3) 0; }
.price-block .amount small { font-size: 1rem; letter-spacing: 0; font-weight: 600; color: var(--muted); margin-left: var(--s2); }
.price-block ul { padding-left: 1.2em; margin: 0 0 var(--s4); color: var(--muted); }
.price-block li { margin-bottom: var(--s1); }


/* Prose pages */
.page { padding: var(--s6) 0 var(--s7); }
.page h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: var(--s5); }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.5rem; margin: var(--s6) 0 var(--s3); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose .lede { margin-bottom: var(--s5); }
.callout { border-left: 4px solid var(--action); background: var(--surface); padding: var(--s3) var(--s4); border-radius: 0 10px 10px 0; margin: var(--s5) 0; }
.callout p:last-child { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }

/* Form */
.form { margin: var(--s5) 0; max-width: 28rem; }
.form label { display: block; font-weight: 600; margin-bottom: var(--s2); }
.form input { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--muted); border-radius: 10px; padding: 0.7em 0.9em; }
.form button { margin-top: var(--s3); font: inherit; font-weight: 600; cursor: pointer; }
.form button:disabled { opacity: 0.6; cursor: progress; }
.status { min-height: 1.6em; margin-top: var(--s3); font-weight: 600; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: var(--s6) 0; color: var(--muted); font-size: 0.9375rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); justify-content: space-between; }
.site-foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0; padding: 0; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }

@media (max-width: 52rem) {
  .hero { padding-top: var(--s6); }
  .hero .wrap, .prices { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .modules { columns: 1; }
  .band { padding: var(--s6) 0; }
  .popover { margin-right: auto; margin-left: auto; }
}
@media (max-width: 30rem) {
  .menubar .menus { display: none; }
  .menubar { justify-content: flex-end; }
  .wrap { padding: 0 var(--s4); }
  .site-nav ul { gap: var(--s1) var(--s4); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}