/* StatusTrail marketing site — one shared stylesheet. Theme-aware, zero dependencies. */
:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --border: #e3e6ef;
  --ink: #1c1e2b;
  --muted: #5b6072;
  --brand: #3b5bdb;
  --brand-ink: #ffffff;
  --accent: #0ca678;
  --radius: 12px;
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161f;
    --surface: #1c1f2b;
    --border: #2a2e3d;
    --ink: #eef0f6;
    --muted: #9aa0b4;
    --brand: #5c7cfa;
    --accent: #38d9a9;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: inline-block;
}
nav.site a { color: var(--muted); margin-left: 22px; font-size: 15px; }
nav.site a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.07); text-decoration: none; }
.btn.ghost { border-color: var(--border); color: var(--ink); background: var(--surface); }
.btn.ghost:hover { border-color: var(--brand); text-decoration: none; }

/* Hero */
.hero { padding: 84px 0 56px; text-align: center; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lede { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 12px; letter-spacing: -0.01em; text-align: center; }
section .sub { color: var(--muted); text-align: center; max-width: 620px; margin: 0 auto 40px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ic { font-size: 22px; margin-bottom: 12px; display: block; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.tier h3 { margin: 0 0 4px; font-size: 20px; }
.tier .price { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.tier li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.tier li.off { color: var(--muted); }
.tier li.off::before { content: "–"; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 2px 9px; border-radius: 20px; margin-left: 8px; }

/* Prose pages (privacy/terms/docs) */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.prose h1 { font-size: 34px; letter-spacing: -0.02em; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: var(--ink); }
.prose .meta { color: var(--muted); font-size: 14px; }
.prose .draft { background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid var(--accent); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--ink); }
.prose ol.steps { padding-left: 20px; }
.prose ol.steps li { margin: 10px 0; }
.prose code { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 90%; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer.site a { color: var(--muted); margin-right: 18px; }
