/* One stylesheet, no web fonts, nothing loaded from anywhere else: the site for a product with
   docs/privacy.md should be checkable in four seconds with the network tab open (#100). */
:root {
  --bg: #fbfbfa; --panel: #fff; --ink: #14171f; --muted: #5a6274;
  --line: #e3e5ea; --accent: #1a4fd6; --accent-ink: #123a9e; --warn-bg: #fff6e0;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1116; --panel: #161a22; --ink: #e8eaf0; --muted: #a2abbd;
    --line: #2a2f3a; --accent: #7da2ff; --accent-ink: #a9c2ff; --warn-bg: #2a2313;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; background: var(--panel); padding: 8px 12px;
  border: 2px solid var(--accent); border-radius: 6px; }
.chrome {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--panel);
}
footer.chrome { border-bottom: 0; border-top: 1px solid var(--line); margin-top: 48px;
  color: var(--muted); font-size: 14px; }
footer.chrome p { margin: 0; }
.brand { font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.chrome nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
main { max-width: 46rem; margin: 0 auto; padding: 32px 20px 0; }
main:focus { outline: none; }
h1 { font-size: 2.1rem; line-height: 1.2; letter-spacing: -0.02em; margin: 8px 0 20px; }
h2 { font-size: 1.35rem; margin: 38px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; margin: 26px 0 8px; }
p, li { color: var(--ink); }
.lead { font-size: 1.1rem; color: var(--muted); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--panel);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; overflow-x: auto; }
pre code { border: 0; background: none; padding: 0; font-size: 0.86em; }
blockquote { margin: 20px 0; padding: 12px 16px; background: var(--warn-bg);
  border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
blockquote p { margin: 0 0 8px; }
blockquote p:last-child { margin: 0; }
table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 0.95em; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line);
  vertical-align: top; }
th { font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
dl.docs dt { margin-top: 16px; font-weight: 600; }
dl.docs dd { margin: 2px 0 0; color: var(--muted); }
ul, ol { padding-left: 1.3rem; }
li { margin: 6px 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
@media (max-width: 640px) { body { font-size: 16px; } main { padding: 24px 16px 0; } }

/* ---------------------------------------------------------------------------
   Marketing layout (body.wide)

   `body.prose` keeps the single reading column that suits the docs. A landing
   page at that measure reads like a memo, so `wide` hands the width back to
   full-bleed sections, each setting its own via `.wrap`. Same stylesheet, same
   tokens, no second theme to keep in step.
   --------------------------------------------------------------------------- */
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 20px; }
/* The header keeps one width on every page. Constraining it to the prose measure made the
   nav wrap onto three lines as soon as it had seven items in it. */
body.wide main { max-width: none; padding: 0; }
.chrome-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; width: 100%; }
.chrome { padding: 0; }
.chrome > .wrap { padding-top: 12px; padding-bottom: 12px; }
footer.chrome { padding: 18px 0; }
.nav-cta {
  border: 1px solid var(--accent); border-radius: 999px; padding: 4px 13px;
  text-decoration: none; font-weight: 600;
}
.nav-cta:hover { background: var(--accent); color: #fff; }

.hero { padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 2.7rem; margin: 6px 0 18px; max-width: 20ch; }
.eyebrow {
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0;
}
.hero .lead { max-width: 60ch; font-size: 1.15rem; }
.hero-point { font-size: 1.15rem; margin: 22px 0 18px; }
.hero pre { max-width: 54rem; }
.hero-note { color: var(--muted); font-size: 0.95rem; max-width: 62ch; }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 8px; font-weight: 600;
  font-size: 0.97rem; text-decoration: none; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 0; }

.band { padding: 44px 0; border-bottom: 1px solid var(--line); }
.band-alt { background: var(--panel); }
.band h2 { margin-top: 0; font-size: 1.6rem; }
.band .lead { max-width: 62ch; }
.more { margin-top: 22px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 24px 0 0; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.band-alt .card { background: var(--bg); }
.card h3 { margin: 0 0 6px; font-size: 1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 22px 0 6px; }
.stat { display: flex; flex-direction: column; }
.stat .n { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat .k { font-size: 0.85rem; color: var(--muted); }

/* The limits are the differentiator, not a disclaimer. Styled to be read. */
.limits { margin-top: 20px; border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; }
.limits ul { padding-left: 1.1rem; margin: 0; }
.limits li { margin: 12px 0; max-width: 78ch; }

@media (max-width: 640px) {
  .hero { padding: 36px 0 30px; }
  .hero h1 { font-size: 2rem; }
  .band { padding: 32px 0; }
  .stats { gap: 24px; }
  .cta-row .btn { flex: 1 1 auto; text-align: center; }
}

/* Screenshots. Width and height are on the <img> so the page does not reflow as they load. */
/* Capped rather than full-bleed. A screenshot of a whole desktop viewport, shown at the full
   measure, is both enormous and illegible -- it dominates the section while its own text scales
   down to nothing. These are cropped to the part that carries the point and then bounded here. */
.shot { margin: 26px 0 0; max-width: 54rem; }
.shot img {
  width: 100%; height: auto; display: block; border-radius: 10px;
  border: 1px solid var(--line);
}
.shot figcaption {
  margin-top: 10px; color: var(--muted); font-size: 0.9rem; max-width: 74ch; line-height: 1.55;
}

/* The free-tools band sits directly under the hero, so it gets a tint of its own rather than
   alternating with everything else. */
.band-tools { background: var(--panel); }
.card-feature { border-color: var(--accent); }
.card-feature h3 { font-size: 1.05rem; }
.card-feature h3 a { text-decoration: none; }
.card-feature h3 a:hover { text-decoration: underline; }

.band-contact { background: var(--panel); }

.badge {
  display: inline-block; font-size: 0.76rem; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; border: 1px solid var(--line); margin-bottom: 4px;
}
.badge-done { color: #1a7a3a; border-color: #1a7a3a55; background: #1a7a3a12; }
.badge-open { color: #b85000; border-color: #b8500055; background: #b8500012; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-done { color: #5cc47f; border-color: #5cc47f44; }
  :root:not([data-theme="light"]) .badge-open { color: #e39a5a; border-color: #e39a5a44; }
}

.footer-grid { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.footer-grid p { margin: 0; }
.footer-contact a { white-space: nowrap; }

/* The promotional strip for the free tool. Above the header on every page, one line, and a link
   in its entirety rather than a banner with a button in it. */
.promo {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 9px 20px; background: var(--accent); color: #fff; text-decoration: none;
  font-size: 0.92rem; line-height: 1.45;
}
.promo:hover { background: var(--accent-ink); color: #fff; }
.promo:hover .promo-go { text-decoration: underline; }
.promo-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 3px 10px; flex: none;
}
.promo-text { flex: 1 1 22rem; }
.promo-go { font-weight: 600; flex: none; }
@media (max-width: 640px) { .promo { font-size: 0.86rem; padding: 8px 16px; gap: 10px; } }

/* "You are here". The underline sits below the header's own border so it reads as a tab. */
.chrome nav a.here {
  color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent);
}
.chrome nav a.here:hover { color: var(--accent); }

/* Numbered steps. The counter is drawn rather than listed so it can sit in the margin. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 26px 0 0; max-width: 60rem; }
.steps li {
  counter-increment: step; position: relative; padding-left: 3.1rem; margin: 0 0 20px;
  max-width: 78ch;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.92rem;
}
