/* seo.css — the page families added in the 2026-09-12 SEO build:
 * feature pages, vertical pages, comparisons, setup guides, customers,
 * changelog and docs.
 *
 * Extends rack.css, never forks it. Every colour, face and step of the type
 * scale comes from the tokens in rack.css :root — nothing is hardcoded, so a
 * change to the key-rack palette carries here for free. Components below
 * exist only where the existing vocabulary had no equivalent: a comparison
 * table, a numbered step list, a troubleshooting list, a story card, a dated
 * changelog and a link index.
 *
 * Load order on a page: rack.css → shell.css → product.css → seo.css
 */

/* ── Shared: a lead paragraph under a page hero ──────────────────────────── */
.intro-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.intro-band .wrap { padding-block: var(--s-8); }
.intro-band p {
  font-family: var(--f-ui);
  font-size: var(--t-lg);
  line-height: 1.65;
  color: var(--slate);
  max-width: 68ch;
  margin: 0;
}

/* ── Comparison table ────────────────────────────────────────────────────── */
/* Row semantics carry the information: a key on its hook means included, an
 * empty hook means not. Same vocabulary as the pricing table in prices.css,
 * so the two read as one system. */
.cmp-wrap { overflow-x: auto; }
.cmp {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-ui);
  font-size: var(--t-md);
  min-width: 560px;
}
.cmp caption {
  text-align: left;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--crimson);
  padding-bottom: var(--s-4);
}
.cmp th, .cmp td {
  text-align: left;
  padding: var(--s-4) var(--s-3);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cmp thead th {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  border-bottom-color: var(--ink);
}
.cmp thead th.is-us { color: var(--crimson); }
.cmp tbody th {
  font-weight: 500;
  color: var(--ink);
  width: 46%;
}
.cmp td { width: 27%; }
.cmp .mark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  color: var(--slate);
}
.cmp .mark b {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}
.cmp .yes b { background: var(--crimson); }
.cmp .part b { background: var(--tint-2); border: 1px solid var(--crimson-2); }
.cmp .no b { background: transparent; border: 1px solid var(--line); }
.cmp .yes { color: var(--ink); }
.cmp small {
  display: block;
  color: var(--slate-2);
  font-size: var(--t-xs);
  margin-top: var(--s-1);
  line-height: 1.5;
}

/* ── Pricing side-by-side + verdict ──────────────────────────────────────── */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
}
.duo > div {
  border: 1px solid var(--line);
  padding: var(--s-6);
  background: var(--bg);
}
.duo > div.is-us { border-color: var(--crimson); }
.duo h3 {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 var(--s-3);
  font-weight: 500;
}
.duo.is-us h3, .duo > div.is-us h3 { color: var(--crimson); }
.duo p { margin: 0; color: var(--slate); line-height: 1.65; }
.duo-note {
  margin-top: var(--s-4);
  color: var(--slate-2);
  font-size: var(--t-sm);
  max-width: 70ch;
}

/* ── Steps (setup + connection guides) ───────────────────────────────────── */
/* Numbering is real here: these are sequential and the order is the content. */
.step-group + .step-group { margin-top: var(--s-8); }
.step-group > h3 {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 var(--s-4);
  font-weight: 500;
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
}
.steps > li::before {
  content: counter(step);
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--crimson);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.steps h4 {
  font-family: var(--f-ui);
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--s-2);
}
.steps p { margin: 0; color: var(--slate); line-height: 1.65; max-width: 64ch; }

/* ── Prerequisites + "how to tell it worked" ─────────────────────────────── */
.prereq { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.prereq li {
  position: relative;
  padding-left: var(--s-6);
  color: var(--slate);
  line-height: 1.6;
}
.prereq li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 10px; height: 10px;
  border-radius: var(--r-tag);
  background: var(--crimson);
}

/* ── Embed snippet ───────────────────────────────────────────────────────── */
.snippet {
  background: var(--night);
  color: #eceef6;
  padding: var(--s-4) var(--s-6);
  overflow-x: auto;
  border-radius: 6px;
}
.snippet pre { margin: 0; }
.snippet code {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  line-height: 1.8;
  white-space: pre;
  color: #eceef6;
}

/* ── Troubleshooting + FAQ (shared disclosure list) ──────────────────────── */
.qa { border-top: 1px solid var(--line); }
.qa details {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s-4) var(--s-8) var(--s-4) 0;
  position: relative;
  font-family: var(--f-ui);
  font-weight: 600;
  color: var(--ink);
  font-size: var(--t-md);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute;
  right: var(--s-2); top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-mono);
  font-size: var(--t-lg);
  color: var(--crimson);
  line-height: 1;
}
.qa details[open] summary::after { content: "−"; }
.qa summary:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
.qa .a { padding: 0 var(--s-8) var(--s-6) 0; color: var(--slate); line-height: 1.7; max-width: 70ch; }
.qa .a p { margin: 0; }

/* ── Customer stories ────────────────────────────────────────────────────── */
.stories { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-12); }
.stories > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
  padding-top: var(--s-8);
  border-top: 1px solid var(--line);
}
.stories > li:first-child { border-top: 0; padding-top: 0; }
.stories .meta {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 var(--s-3);
}
.stories h2 { margin: 0 0 var(--s-3); }
.stories .sum { font-size: var(--t-lg); color: var(--ink); line-height: 1.6; margin: 0 0 var(--s-4); }
.stories .det { color: var(--slate); line-height: 1.7; margin: 0 0 var(--s-4); }
.stories .uses { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.stories .uses li {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--r-tag);
  padding: 4px 9px;
}
@media (max-width: 820px) { .stories > li { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ── Changelog ───────────────────────────────────────────────────────────── */
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.log > li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--line);
}
.log time {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  color: var(--slate-2);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.log h2 { font-size: var(--t-xl); margin: 0 0 var(--s-2); }
.log p { margin: 0; color: var(--slate); line-height: 1.7; max-width: 68ch; }
.log .tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--crimson);
  border: 1px solid var(--tint-2);
  background: var(--tint);
  border-radius: var(--r-tag);
  padding: 3px 8px;
  margin-bottom: var(--s-3);
}
@media (max-width: 700px) { .log > li { grid-template-columns: 1fr; gap: var(--s-2); } }

/* ── Docs index + comparison hub ─────────────────────────────────────────── */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-8) var(--s-8);
}
.index-grid section h2 {
  font-size: var(--t-xl);
  margin: 0 0 var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.index-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.index-grid a {
  color: var(--slate);
  text-decoration: none;
  line-height: 1.5;
  display: inline-block;
  border-bottom: 1px solid transparent;
}
.index-grid a:hover, .index-grid a:focus-visible { color: var(--crimson); border-bottom-color: var(--crimson); }

.hub { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hub > li { border-bottom: 1px solid var(--line); }
.hub a {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr auto;
  gap: var(--s-6);
  align-items: baseline;
  padding: var(--s-6) 0;
  text-decoration: none;
  color: inherit;
}
.hub b { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 600; color: var(--ink); }
.hub span { color: var(--slate); line-height: 1.6; }
.hub em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--crimson);
  white-space: nowrap;
}
.hub a:hover b, .hub a:focus-visible b { color: var(--crimson); }
@media (max-width: 760px) { .hub a { grid-template-columns: 1fr; gap: var(--s-2); } .hub em { display: none; } }

/* ── Related links strip, reused by every family ─────────────────────────── */
.related { border-top: 1px solid var(--line); }
.related .wrap { padding-block: var(--s-8); }
.related h2 {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 500;
  margin: 0 0 var(--s-4);
}
.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.related a {
  display: inline-block;
  font-size: var(--t-sm);
  color: var(--slate);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--r-tag);
  padding: 7px 12px;
}
.related a:hover, .related a:focus-visible { color: var(--crimson); border-color: var(--crimson); }
