/* Shared styling for standalone static pages (llms.txt sibling HTML,
   comparison pages, guides, future legal). Self-contained: no imports,
   no webfonts, no JS. Matches the email brand palette. */

:root {
  --sp-bg: #fdfcfa;
  --sp-surface: #ffffff;
  --sp-text: #2a2a28;
  --sp-muted: #5a5a55;
  --sp-dim: #8a8a84;
  --sp-accent: #3f6b4f;
  --sp-accent-strong: #2f5a3f;
  --sp-border: #e8e4dd;
  --sp-card: #f8f6f1;
  --sp-good: #3f6b4f;
  --sp-bad: #9a4a4a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sp-bg: #1a1d17;
    --sp-surface: #23261f;
    --sp-text: #e8e6df;
    --sp-muted: #b0ada3;
    --sp-dim: #82807a;
    --sp-accent: #7aaa8a;
    --sp-accent-strong: #a0c4ac;
    --sp-border: rgba(255, 255, 255, 0.08);
    --sp-card: rgba(255, 255, 255, 0.04);
    --sp-card-border: rgba(255, 255, 255, 0.1);
    --sp-good: #7aaa8a;
    --sp-bad: #c97878;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--sp-bg);
  color: var(--sp-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sp-nav {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sp-nav a.sp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sp-text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.sp-nav img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.sp-nav .sp-nav-spacer { flex: 1; }

.sp-nav a.sp-nav-link {
  color: var(--sp-muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}
.sp-nav a.sp-nav-link:hover { color: var(--sp-text); background: var(--sp-card); }

main.sp-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.sp-main.sp-wide {
  max-width: 920px;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h3 {
  font-size: 1.08rem;
  margin: 1.75rem 0 0.5rem;
  font-weight: 600;
  color: var(--sp-text);
}

p, li { color: var(--sp-text); }
p strong, li strong { color: var(--sp-text); font-weight: 600; }

.sp-lede {
  font-size: 1.12rem;
  color: var(--sp-muted);
  margin: 0 0 2rem;
  line-height: 1.6;
}

a { color: var(--sp-accent); text-decoration: none; }
a:hover { color: var(--sp-accent-strong); text-decoration: underline; }

ul, ol { padding-left: 1.25rem; }
li { margin: 0.3rem 0; }

.sp-meta {
  color: var(--sp-dim);
  font-size: 0.88rem;
  margin: 0 0 1.5rem;
}

.sp-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

.sp-cta {
  display: inline-block;
  background: var(--sp-accent);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.sp-cta:hover { background: var(--sp-accent-strong); color: #fff; text-decoration: none; }

.sp-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.75rem 0;
}

.sp-ghost {
  display: inline-block;
  color: var(--sp-text);
  border: 1px solid var(--sp-border);
  background: var(--sp-surface);
  padding: 0.72rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.sp-ghost:hover { background: var(--sp-card); text-decoration: none; }

/* Comparison table */
.sp-compare-wrap {
  margin: 1.5rem -0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.5rem;
}

table.sp-compare, table.sp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  overflow: hidden;
}

table.sp-compare th, table.sp-compare td,
table.sp-table th, table.sp-table td {
  padding: 0.7rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--sp-border);
  vertical-align: top;
  font-size: 0.94rem;
}

table.sp-compare th, table.sp-table th {
  background: var(--sp-card);
  font-weight: 600;
  color: var(--sp-text);
  font-size: 0.9rem;
}

table.sp-compare tr:last-child td,
table.sp-table tr:last-child td { border-bottom: none; }

.sp-yes { color: var(--sp-good); font-weight: 600; }
.sp-no  { color: var(--sp-bad); font-weight: 600; }
.sp-soft { color: var(--sp-muted); }

/* FAQ */
.sp-faq details {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  padding: 0.25rem 1rem;
  margin: 0.6rem 0;
}
.sp-faq summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.75rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  color: var(--sp-text);
}
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 0.55rem;
  font-size: 1.3rem;
  color: var(--sp-accent);
  transition: transform 0.2s ease;
}
.sp-faq details[open] summary::after {
  content: '\2212';
}
.sp-faq details p {
  margin: 0 0 0.75rem;
  color: var(--sp-muted);
}

footer.sp-footer {
  max-width: 920px;
  margin: 3rem auto 0;
  padding: 1.5rem 1.5rem 2.5rem;
  border-top: 1px solid var(--sp-border);
  color: var(--sp-dim);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
footer.sp-footer a { color: var(--sp-muted); }
footer.sp-footer a:hover { color: var(--sp-text); }
footer.sp-footer .sp-footer-spacer { flex: 1; }

@media (max-width: 540px) {
  .sp-nav { padding: 1rem 1rem 0; gap: 0.5rem; }
  .sp-nav a.sp-nav-link { padding: 0.3rem 0.45rem; font-size: 0.85rem; }
  main.sp-main { padding: 2rem 1rem 3rem; }
  h2 { margin-top: 2rem; }
}
