/* Shared styles for the product landing pages.
 *
 * index.html and 404.html keep their own inline styles on purpose — they
 * predate this file and there's no reason to churn working pages. The
 * tokens below are the same ones they use, so the whole site still reads
 * as one thing.
 *
 * Served from 'self', which the shared Caddy CSP (default-src 'self')
 * allows without any change. Don't move this to a CDN. */

:root {
  --accent: #0f766e;
  --accent-strong: #0b5c56;
  --accent-wash: #dcece9;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --sunken: #eaf0ee;
  --border: #d7e2df;
  --text: #16221f;
  --text-muted: #526864;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4fb3a6;
    --accent-strong: #6fc9bc;
    --accent-wash: #1c3733;
    --bg: #16211f;
    --surface: #202c2a;
    --sunken: #1a2523;
    --border: #3a4d48;
    --text: #eef4f2;
    --text-muted: #9fb3ae;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 88px;
}

/* --- site header ---------------------------------------------------- */

.site-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
.site-head a {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}
.logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.site-name { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }

/* --- headings ------------------------------------------------------- */

h1 {
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  text-wrap: balance;
}
h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 52px 0 14px;
  text-wrap: balance;
}
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 16px; }
.lede {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 26px;
}

a { color: var(--accent-strong); text-underline-offset: 2px; }
a:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- call to action ------------------------------------------------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 10px; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.cta:hover { background: var(--accent-strong); }
@media (prefers-color-scheme: dark) { .cta { color: #10201d; } }
.cta-note { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* --- steps ---------------------------------------------------------- */

.steps { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
  padding-top: 2px;
}
.steps p { margin: 0; }
.steps .s-t { font-weight: 600; margin-bottom: 3px; }
.steps .s-d { color: var(--text-muted); font-size: 15.5px; }

/* --- panels --------------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 22px 0;
}
.panel :last-child { margin-bottom: 0; }
.panel-accent { border-color: var(--accent); background: var(--accent-wash); }

/* --- example table -------------------------------------------------- */

.scroller { overflow-x: auto; margin: 22px 0; }
table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 15.5px; }
caption {
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
  padding-bottom: 10px;
}
th, td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--border);
}
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 600; }
td { font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: none; font-weight: 600; }

/* --- faq ------------------------------------------------------------ */

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 600;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 19px; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 16px; color: var(--text-muted); font-size: 16px; }
.faq .a :last-child { margin-bottom: 0; }

/* --- misc ----------------------------------------------------------- */

ul.plain { margin: 0 0 16px; padding-left: 1.2em; }
ul.plain li { margin-bottom: 8px; color: var(--text-muted); }
ul.plain li strong { color: var(--text); }

.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.related a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 15px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.related a:hover { border-color: var(--accent); }

.site-foot {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-muted);
}
.site-foot a { color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* --- blog ------------------------------------------------------------
   Posts reuse everything above; these are the few things an article
   needs that a landing page doesn't. */

.crumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.crumb a { color: var(--text-muted); }

.post-meta {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 0 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

/* A single number pulled out of the prose, where the number IS the
   point of the paragraph. Used sparingly — twice a post at most. */
.figure {
  margin: 26px 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.figure-n {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-strong);
  margin: 0 0 6px;
}
.figure-l { margin: 0; color: var(--text-muted); font-size: 15.5px; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--border); }
.post-list li:last-child { border-bottom: none; }
.post-list a {
  display: block;
  padding: 22px 0;
  text-decoration: none;
  color: inherit;
}
.post-list a:hover .pl-t { color: var(--accent-strong); }
.pl-t { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 5px; }
.pl-d { color: var(--text-muted); font-size: 15.5px; margin: 0 0 6px; }
.pl-m { font-size: 13.5px; color: var(--text-muted); margin: 0; }
