/* ScrollGist — shared site styles (self-contained, no CDNs) */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f6f6fa;
  --fg: #17171c;
  --muted: #5b5b66;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --card: #ffffff;
  --border: #e5e5ee;
  --shadow: 0 10px 30px rgba(40, 30, 120, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101017;
    --bg-soft: #16161f;
    --fg: #ececf2;
    --muted: #9c9cab;
    --accent: #a5b4fc;
    --accent-2: #c4b5fd;
    --card: #1a1a24;
    --border: #2a2a38;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--fg); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
nav.main { margin-left: auto; display: flex; gap: 22px; font-size: 0.95rem; }
nav.main a { color: var(--muted); }
nav.main a:hover { color: var(--fg); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 84px 0 56px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; margin: 0 0 16px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.badge {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 10px; padding: 10px 16px; font-size: 0.9rem; color: var(--muted);
}
.badge strong { color: var(--fg); }
.badge .soon { font-size: 0.75rem; color: var(--accent); margin-left: 6px; }

/* Sections */
section.block { padding: 56px 0; }
section.block.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2.section { text-align: center; font-size: 1.7rem; margin: 0 0 8px; }
p.section-sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 560px; }

/* Cards / grids */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 0.85rem; margin-bottom: 10px;
}

/* Pricing */
.pricing { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 12px 36px rgba(79, 70, 229, 0.18); }
.pill {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.price { font-size: 2rem; font-weight: 800; margin: 6px 0 2px; }
.price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.per { color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; }
ul.feat { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
ul.feat li { padding: 6px 0; font-size: 0.92rem; color: var(--fg); }
ul.feat li::before { content: "✓  "; color: var(--accent); font-weight: 700; }
.cta {
  display: block; text-align: center; padding: 12px 18px; border-radius: 10px;
  font-weight: 600; border: 1px solid var(--border); color: var(--fg);
}
.cta:hover { text-decoration: none; border-color: var(--accent); }
.cta.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff; border: none;
}
.cta.primary:hover { filter: brightness(1.06); }
.fineprint { text-align: center; color: var(--muted); font-size: 0.83rem; margin-top: 18px; }

/* FAQ */
details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 2px; font-size: 0.94rem; }

/* Legal pages */
main.legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
main.legal h1 { font-size: 1.9rem; margin: 0 0 4px; }
main.legal h2 { font-size: 1.2rem; margin: 36px 0 10px; }
main.legal .meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
main.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.94rem; display: block; overflow-x: auto; }
main.legal th, main.legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
main.legal th { color: var(--muted); font-weight: 600; }
main.legal code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 0.88em; }
.tldr {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 22px; margin: 22px 0 8px;
}
.tldr strong { display: block; margin-bottom: 6px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 34px 0 44px; margin-top: 40px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; color: var(--muted); font-size: 0.88rem; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site nav a { color: var(--muted); }
footer.site .copy { margin-left: auto; }
@media (max-width: 640px) {
  nav.main { display: none; }
  footer.site .copy { margin-left: 0; }
}
