/* site.css — shared design system for the static pages (everything except /,
   which is React and uses src/styles.css). Tokens and component looks mirror
   the homepage so subpages carry the same brand.

   CANONICAL HEADER — paste after <body>, before <main>:

   <header class="site-nav">
     <a class="mark" href="/" aria-label="SourceVault home">
       <svg class="mark-glyph" viewBox="0 0 64 64" aria-hidden="true">
         <defs>
           <linearGradient id="svmark" x1="0" y1="0" x2="64" y2="64">
             <stop offset="0" stop-color="#6366f1"/><stop offset="1" stop-color="#4338ca"/>
           </linearGradient>
         </defs>
         <path d="M32 3.5 56.7 17.75 56.7 46.25 32 60.5 7.3 46.25 7.3 17.75Z" fill="url(#svmark)" stroke="#c7d2fe" stroke-width="2" stroke-linejoin="round"/>
         <circle cx="32" cy="33" r="14.5" fill="none" stroke="#fff" stroke-width="1.6" opacity="0.5"/>
         <g stroke="#fff" stroke-width="3.6" stroke-linecap="round">
           <path d="M32 33 32 19M32 33 45.3 28.67M32 33 40.23 44.33M32 33 23.77 44.33M32 33 18.7 28.67"/>
         </g>
         <g fill="#fff">
           <circle cx="32" cy="19" r="2.8"/><circle cx="45.3" cy="28.67" r="2.8"/><circle cx="40.23" cy="44.33" r="2.8"/><circle cx="23.77" cy="44.33" r="2.8"/><circle cx="18.7" cy="28.67" r="2.8"/>
         </g>
         <circle cx="32" cy="33" r="6.3" fill="#fff"/><circle cx="32" cy="33" r="2.3" fill="#4f46e5"/>
       </svg>
       <span class="mark-word">SourceVault</span>
     </a>
     <nav class="site-nav-links" aria-label="Site">
       <a href="/how-it-works/">How it works</a>
       <a href="/features/">Features</a>
       <a href="/#plans">Pricing</a>
       <a href="/install/">Install</a>
       <button type="button" class="theme-toggle" aria-label="Toggle theme" onclick="(function(){var n=document.documentElement.dataset.theme==='dark'?'light':'dark';document.documentElement.dataset.theme=n;try{localStorage.setItem('sv-theme',n)}catch(e){}})()">◐</button>
     </nav>
   </header>

   CANONICAL FOOTER — paste after </main>, before </body> (omit on noindex
   utility pages: /thanks/, /recover/, /upgrade/):

   <footer class="site-footer">
     <div class="site-footer-inner">
       <span class="foot-word">SourceVault</span>
       <nav aria-label="Footer">
         <a href="/how-it-works/">How it works</a>
         <a href="/features/">Features</a>
         <a href="/benchmark/">Benchmark</a>
         <a href="/support/">Support</a>
         <a href="/billing-policy/">Billing</a>
         <a href="https://discord.gg/tq88MVQjSn" rel="noreferrer">Discord</a>
       </nav>
       <a class="foot-mail" href="mailto:support@sourcevault.ai">support@sourcevault.ai</a>
     </div>
   </footer>
*/

/* 1. Tokens ---------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg: #fafafa;
  --bg-alt: #f4f4f5;
  --surface: #ffffff;
  --text: #18181b;
  --muted: #71717a;
  --text-muted: #3f3f46;
  --border: #e4e4e7;
  --accent: #4f46e5;
  --accent-soft: #6366f1;
  --code-bg: #f4f4f5;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b;
  --bg-alt: #101013;
  --surface: #18181b;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --text-muted: #a1a1aa;
  --border: #27272a;
  --accent: #818cf8;
  --accent-soft: #6366f1;
  --code-bg: #18181b;
}

/* 2. Base ------------------------------------------------------------ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 20px 90px;
}

main.wide {
  max-width: 980px;
}

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

h1 {
  font-size: 33px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 18px 0 12px;
}

h2 {
  font-size: 22px;
  margin: 40px 0 10px;
  letter-spacing: -0.01em;
}

p {
  margin: 15px 0;
}

code {
  font-size: 14px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 5px;
}

.lede {
  font-size: 19px;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note {
  font-size: 14px;
  color: var(--muted);
  border-left: 3px solid var(--border);
  padding: 6px 14px;
  margin: 22px 0;
}

/* 3. Header ---------------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.mark-glyph {
  display: block;
  width: 25px;
  height: 25px;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav-links a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.theme-toggle {
  width: 34px;
  height: 34px;
  margin-left: 6px;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}

.theme-toggle:hover {
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .site-nav-links a:not(:last-of-type) {
    display: none;
  }
}

/* 4. Footer ---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 20px 40px;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 980px;
  margin: 0 auto;
  font-size: 14px;
}

.foot-word {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* 5. Components ------------------------------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent-soft);
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.18);
}

.button:hover {
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

/* Wide content (comparison/benchmark tables) scrolls inside this container
   instead of stretching the page wider than a phone viewport. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.see-all a {
  font-weight: 700;
  text-decoration: none;
}

.see-all a:hover {
  text-decoration: underline;
}

.crumb {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}
