:root {
  --ink: #17212b;
  --muted: #55636f;
  --line: #e4e9ee;
  --brand: #2457c9;
  --brand-dark: #173c96;
  --bg-soft: #f5f7fa;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background: #fff;
}
a { color: var(--brand); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
header.site nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
header.site nav a { font-size: 0.95rem; text-decoration: none; color: var(--muted); white-space: nowrap; }
header.site nav a:hover { color: var(--brand); }

.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { font-size: 2.5rem; line-height: 1.15; margin: 0 0 18px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { color: var(--brand); border: 1px solid var(--line); }

.hero-image {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  margin: 44px auto 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(23, 33, 43, 0.4);
}

section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: 1.7rem; margin: 0 0 8px; }
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 620px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step img {
  display: block; width: 100%; height: 170px; object-fit: cover;
  border-radius: 10px; margin-bottom: 16px;
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 0.9rem;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.audience .card {
  border: 1px solid var(--line); border-radius: 10px; padding: 20px;
}
.audience .card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.audience .card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1.02rem;
}
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Prose pages: privacy, terms, support */
.legal { padding-top: 48px; padding-bottom: 72px; max-width: 720px; }
.legal h1 { font-size: 2rem; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 36px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; }
.legal .back-link { display: inline-block; margin-bottom: 28px; font-size: 0.95rem; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
footer.site .footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer.site .footer-links a { color: var(--muted); text-decoration: none; }
footer.site .footer-links a:hover { color: var(--brand); }

@media (max-width: 680px) {
  .hero h1 { font-size: 1.9rem; }
  .steps { grid-template-columns: 1fr; }
  header.site .wrap { justify-content: center; text-align: center; }
  header.site nav { justify-content: center; }
  footer.site .wrap { justify-content: center; text-align: center; }
}

/* Scroll-in reveal: content is visible by default (no-JS/no-motion baseline);
   only once .js is on <html> do elements start hidden, ready for the
   IntersectionObserver below to reveal them on scroll. */
.js .reveal {
  --reveal-delay: 0s;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.21, 0.6, 0.35, 1) var(--reveal-delay),
              transform 0.7s cubic-bezier(0.21, 0.6, 0.35, 1) var(--reveal-delay);
}
.js .reveal-img {
  --reveal-delay: 0s;
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.21, 0.6, 0.35, 1) var(--reveal-delay),
              transform 0.7s cubic-bezier(0.21, 0.6, 0.35, 1) var(--reveal-delay);
}
.reveal.is-visible, .reveal-img.is-visible {
  opacity: 1;
  transform: none;
}
.hero p.lead { --reveal-delay: 0.1s; }
.hero .cta-row { --reveal-delay: 0.2s; }
.hero-image { --reveal-delay: 0.3s; }
.steps .step:nth-child(2) { --reveal-delay: 0.12s; }
.steps .step:nth-child(3) { --reveal-delay: 0.24s; }
.audience .card:nth-child(2) { --reveal-delay: 0.08s; }
.audience .card:nth-child(3) { --reveal-delay: 0.16s; }
.audience .card:nth-child(4) { --reveal-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-img {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
