/* ============ Reset + base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100vh;
  transition: background 0.25s, color 0.25s;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ============ Theme: dark (default) ============ */
[data-theme="dark"] body {
  background: #14181f;
  color: #e8ecf2;
}
[data-theme="dark"] .surface { background: #1a1f28; border-color: #232932; }
[data-theme="dark"] .muted   { color: #b6bdc8; }
[data-theme="dark"] .dim     { color: #8b94a3; }
[data-theme="dark"] .accent  { color: #a3e4cb; }
[data-theme="dark"] .cta-primary {
  background: #a3e4cb; color: #14181f; border-color: #a3e4cb;
}
[data-theme="dark"] .cta-secondary {
  background: transparent; color: #e8ecf2; border-color: #2d3540;
}
[data-theme="dark"] .cta-disabled {
  background: transparent; color: #8b94a3; border-color: #2d3540; cursor: not-allowed;
}
[data-theme="dark"] hr { border: 0; border-top: 1px solid #1d232c; }
[data-theme="dark"] a:hover { color: #a3e4cb; }

/* ============ Theme: light (warm) ============ */
[data-theme="light"] body {
  background: linear-gradient(135deg, #fef3e7 0%, #fde4d3 60%, #f9c9b0 100%);
  background-attachment: fixed;
  color: #3d2817;
}
[data-theme="light"] .surface { background: rgba(255,255,255,0.55); border-color: rgba(61,40,23,0.12); }
[data-theme="light"] .muted   { color: #7a5a45; }
[data-theme="light"] .dim     { color: #9a7a65; }
[data-theme="light"] .accent  { color: #c2410c; }
[data-theme="light"] .cta-primary {
  background: #c2410c; color: white; border-color: #c2410c;
}
[data-theme="light"] .cta-secondary {
  background: rgba(255,255,255,0.7); color: #3d2817; border-color: rgba(61,40,23,0.18);
}
[data-theme="light"] .cta-disabled {
  background: transparent; color: #9a7a65; border-color: rgba(61,40,23,0.18); cursor: not-allowed;
}
[data-theme="light"] hr { border: 0; border-top: 1px solid rgba(61,40,23,0.12); }
[data-theme="light"] a:hover { color: #c2410c; }

/* ============ Layout ============ */
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
header.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0;
}
header.site-header .brand { font-weight: 700; font-size: 1.05rem; text-decoration: none; }
header.site-header nav { display: flex; gap: 22px; align-items: center; font-size: 0.9rem; }
header.site-header nav a { text-decoration: none; }
button.theme-toggle {
  background: transparent; border: 1px solid currentColor; opacity: 0.55;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit; font-size: 14px; padding: 0;
}
button.theme-toggle:hover { opacity: 1; }

main { padding: 32px 0 80px; }
section.block { padding: 32px 0; }
section.block + section.block { border-top: 1px solid; border-color: inherit; }

/* ============ Typography ============ */
h1.hero { font-size: 3rem; line-height: 1.1; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 14px; font-weight: 600; }
h3 { font-size: 1.125rem; margin: 0 0 8px; font-weight: 600; }
p  { margin: 0 0 14px; }
p.lead { font-size: 1.15rem; }
.label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

@media (max-width: 640px) {
  h1.hero { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .wrap { padding: 0 18px; }
}

/* ============ CTAs ============ */
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cta {
  display: inline-block; padding: 11px 18px; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; transition: transform 0.1s;
}
.cta:hover { transform: translateY(-1px); }
.cta-disabled:hover { transform: none; }

/* ============ Feature grid ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.feature { padding: 18px; border-radius: 10px; border: 1px solid; }
.feature h3 { margin-bottom: 6px; }
.feature p  { margin: 0; font-size: 0.92rem; }
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ============ Trigger pills ============ */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill {
  padding: 6px 13px; border-radius: 999px; font-size: 0.85rem;
  border: 1px solid; background: inherit;
}

/* ============ Footer ============ */
footer.site-footer {
  padding: 40px 0 32px; border-top: 1px solid;
  font-size: 0.88rem;
}
footer.site-footer .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px;
}
footer.site-footer .cols strong { display: block; margin-bottom: 8px; font-size: 0.92rem; }
footer.site-footer a { display: block; text-decoration: none; padding: 2px 0; }
footer.site-footer a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  footer.site-footer .cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ Prose (for /privacy, /how-it-works, /faq long text) ============ */
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 22px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; padding: 1px 5px; border-radius: 4px; }
[data-theme="dark"] .prose code { background: #1a1f28; }
[data-theme="light"] .prose code { background: rgba(61,40,23,0.08); }

/* ============ FAQ ============ */
details.faq-item {
  padding: 16px 18px; border: 1px solid; border-radius: 10px; margin-bottom: 10px;
}
details.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item[open] { padding-bottom: 20px; }
details.faq-item summary::after { content: " +"; opacity: 0.5; }
details.faq-item[open] summary::after { content: " –"; }
details.faq-item p { margin-top: 12px; margin-bottom: 0; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
