/*
 * Keystone marketing site — single shared stylesheet (framework-free, no third-party imports).
 *
 * Page chrome convention (reused on every page):
 *   <header class="site-header"> … <nav class="site-nav"> with links to / /privacy /support /terms
 *   <main class="site-main"> page content
 *   <footer class="site-footer"> — on legal pages carries the Effective date + draft / not-legal-advice disclaimer
 */

:root {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e2e8f0;
  --maxw: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #f8fafc;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* ---- Header / nav ---- */
.site-header {
  background: var(--bg);
  color: #fff;
}
.site-header__inner,
.site-main,
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #fff; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: #fff;
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.hero h1 { font-size: 2.1rem; margin: 0 0 0.5rem; }
.hero p.lede { font-size: 1.15rem; color: #cbd5e1; margin: 0 0 1.5rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost {
  background: transparent;
  border: 1px solid #475569;
  color: #e2e8f0;
  margin-left: 0.5rem;
}

/* ---- Main content ---- */
.site-main { background: var(--surface); }
.site-main h1 { font-size: 1.9rem; margin-top: 0; }
.site-main h2 { font-size: 1.3rem; margin-top: 2rem; }
.site-main h3 { font-size: 1.05rem; margin-top: 1.5rem; }

/* ---- Feature grid ---- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.features li {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}
.features strong { display: block; margin-bottom: 0.25rem; }

/* ---- Screenshot placeholders ---- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.shot {
  aspect-ratio: 9 / 16;
  background: repeating-linear-gradient(45deg, #e2e8f0, #e2e8f0 12px, #eef2f7 12px, #eef2f7 24px);
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
}

/* ---- FAQ / definition lists ---- */
.faq dt { font-weight: 600; margin-top: 1.1rem; }
.faq dd { margin: 0.25rem 0 0; color: #334155; }

/* ---- Disclosure table ---- */
table.disclosures {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
table.disclosures th,
table.disclosures td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
table.disclosures th { background: #f1f5f9; }

/* ---- Callout ---- */
.callout {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: #78350f;
}

.effective { color: var(--muted); font-size: 0.9rem; }

/* ---- Footer ---- */
.site-footer {
  background: #0b1220;
  color: #94a3b8;
  margin-top: 2rem;
  font-size: 0.88rem;
}
.site-footer a { color: #cbd5e1; }
.site-footer__inner { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- 404 ---- */
.notfound { text-align: center; padding: 4rem 1.25rem; }
.notfound h1 { font-size: 3rem; margin: 0; }
