/* Public marketing pages. Static HTML with no JavaScript, deliberately: these
   exist so a search engine (and a person evaluating the software before signing
   up) sees real content, which the application shell cannot provide. Same token
   approach as legal.css so the whole site reads as one thing. */

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --text: #334155;
  --text-muted: #64748b;
  --heading: #0f172a;
  --border: #e2e8f0;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --accent-text: #4338ca;
  --ok: #16a34a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-2: #172033;
    --text: #cbd5e1;
    --text-muted: #94a3b8;
    --heading: #f1f5f9;
    --border: #334155;
    --accent: #6366f1;
    --accent-soft: #1e1b4b;
    --accent-text: #a5b4fc;
    --ok: #4ade80;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* ---- top bar ---- */
.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand span { color: var(--accent); }
.topbar nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 18px;
}
.topbar nav a:hover { color: var(--heading); }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--border); color: var(--heading); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---- hero ---- */
.hero { padding: 68px 0 52px; text-align: center; }
.hero h1 {
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--heading);
  margin: 0 0 16px;
}
.hero p.sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* ---- sections ---- */
section { padding: 52px 0; border-top: 1px solid var(--border); }
section h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 10px;
}
section > .wrap > p.lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 0 28px;
}
h3 { font-size: 17px; color: var(--heading); margin: 0 0 6px; letter-spacing: -0.01em; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.card p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.card ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--text-muted); }
.card li { margin-bottom: 5px; }

/* ---- pricing ---- */
.tiers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: start; }
.tier {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--bg); }
.tier .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.tier h3 { font-size: 18px; margin-bottom: 2px; }
.tier .who { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; }
.tier .price { font-size: 30px; font-weight: 700; color: var(--heading); letter-spacing: -0.02em; }
.tier .price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.tier .annual { font-size: 13px; color: var(--text-muted); margin: 4px 0 16px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 14px; }
.tier li { padding: 5px 0 5px 22px; position: relative; color: var(--text); }
.tier li::before {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
}
.tier .cta { margin-top: auto; }
.tier .cta a { display: block; text-align: center; }

/* ---- comparison table ---- */
.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.compare th, table.compare td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.compare thead th { background: var(--surface-2); color: var(--heading); font-weight: 600; white-space: nowrap; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td.y { color: var(--ok); font-weight: 600; }
table.compare td.n { color: var(--text-muted); }
table.compare th[scope="row"] { font-weight: 500; color: var(--text); background: var(--bg); }

.faq { max-width: 780px; }
.faq h3 { margin-top: 26px; }
.faq p { font-size: 15px; color: var(--text-muted); margin: 0; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0 56px;
  font-size: 13px;
  color: var(--text-muted);
}
footer.site a { color: var(--text-muted); text-decoration: none; margin-right: 16px; }
footer.site a:hover { color: var(--heading); text-decoration: underline; }
footer.site .row { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center; }
footer.site .copy { margin-left: auto; }

@media (max-width: 640px) {
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 31px; }
  .hero p.sub { font-size: 17px; }
  section { padding: 40px 0; }
  footer.site .copy { margin-left: 0; width: 100%; padding-top: 8px; }
}
