/* Backstop — marketing site
   Copyright © 2026 Kagebito. All rights reserved.

   One stylesheet, no framework, no build step. The site is four static pages; anything more would be
   infrastructure for its own sake. */

:root {
  --ink: #10131a;
  --ink-soft: #4a5263;
  --ink-faint: #8b93a3;
  --paper: #ffffff;
  --paper-tint: #f5f6f8;
  --rule: #e3e6ec;
  --accent: #1f6feb;
  --good: #1a7f4b;
  --bad: #b4232b;
  --code-bg: #0f1420;
  --code-ink: #dbe3f0;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9edf4;
    --ink-soft: #a6afc0;
    --ink-faint: #6f7889;
    --paper: #0d1017;
    --paper-tint: #141924;
    --rule: #242b38;
    --accent: #6ea8ff;
    --good: #4ec98a;
    --bad: #ff7b7b;
    --code-bg: #070a10;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--measure); }

/* ---- navigation ---- */

header.site {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.75rem;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}

header.site nav { margin-left: auto; display: flex; gap: 1.25rem; flex-wrap: wrap; }

header.site nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
}

header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--ink); }

/* ---- type ---- */

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin: 0 0 1rem;
  font-weight: 660;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
  margin: 3.25rem 0 0.75rem;
  font-weight: 640;
}

h3 { font-size: 1.06rem; margin: 2rem 0 0.4rem; font-weight: 620; }

p { margin: 0 0 1.05rem; max-width: var(--measure); }

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

a { color: var(--accent); text-underline-offset: 2px; }

small, .fine { font-size: 0.86rem; color: var(--ink-faint); }

/* ---- hero ---- */

.hero { padding: 4.5rem 0 3rem; }

.hero .claim {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}

.proof-line {
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--good);
  background: var(--paper-tint);
  border-radius: 0 8px 8px 0;
  max-width: 38rem;
}

.proof-line strong { font-weight: 620; }

/* ---- layout helpers ---- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem 2.25rem;
  margin: 1.5rem 0 0;
}

.cols p { margin-bottom: 0; }

hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 3.5rem 0; }

/* ---- code ---- */

pre {
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 1rem 1.15rem;
  border-radius: 9px;
  overflow-x: auto;
  font: 13.5px/1.65 ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--rule);
}

code {
  font: 0.92em ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  background: var(--paper-tint);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

pre code { background: none; padding: 0; font-size: inherit; }

/* ---- tables ---- */

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th { font-weight: 620; font-size: 0.86rem; letter-spacing: 0.02em; color: var(--ink-soft); }

td.yes { color: var(--good); }
td.no { color: var(--bad); }

.table-scroll { overflow-x: auto; }

/* ---- pricing ---- */

.price-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.75rem;
  background: var(--paper-tint);
  max-width: 26rem;
}

.price {
  font-size: 2.6rem;
  font-weight: 660;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price span { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }

ul.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; }

ul.ticks li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.55rem;
  max-width: var(--measure);
}

ul.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

.button {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 560;
}

.button.secondary { background: none; color: var(--accent); border: 1px solid var(--rule); }

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

.faq h3 { margin-top: 2.5rem; }

/* ---- footer ---- */

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
  padding: 2rem 0 3rem;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

footer.site nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

@media (max-width: 40rem) {
  .hero { padding: 3rem 0 2rem; }
  header.site .wrap { flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  header.site nav { margin-left: 0; width: 100%; }
}
