:root {
  --bg: #0f1117;
  --card: #181c27;
  --border: #2a3045;
  --text: #e8ecf4;
  --muted: #9aa4bf;
  --accent: #5b8dee;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --green: #3ecf8e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header / footer */
header.site {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
nav.site { display: flex; gap: 20px; flex-wrap: wrap; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 14px; }
nav.site a:hover { color: var(--text); }

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 72px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); margin-right: 16px; }
footer.site a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
}
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.disabled { opacity: 0.65; cursor: default; }
.btn.primary.disabled:hover { background: var(--primary); }
.btn.primary:hover { background: var(--primary-hover); }

/* Landing page */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin-bottom: 16px; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--muted); }

section.block { padding: 48px 0 0; }
section.block h2 { font-size: 26px; margin-bottom: 8px; }
section.block p.sub { color: var(--muted); margin-bottom: 24px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p, .card li { color: var(--muted); font-size: 14px; }
.card ul { padding-left: 18px; margin-top: 8px; }
.card li { margin-bottom: 4px; }

section.block p.sub.fine { margin-top: 14px; margin-bottom: 0; font-size: 13px; }

.plan .price { font-size: 32px; font-weight: 700; margin: 8px 0 2px; }
.plan .price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan.featured { border-color: var(--primary); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: #2a1b38; color: #d8b4e2; border: 1px solid #7c3aed; margin-bottom: 8px; }

.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 40px; }
.steps .card::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 14px; left: 20px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

details.faq { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: var(--muted); margin-top: 10px; font-size: 14px; }

/* Legal / text pages */
main.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 0; }
main.doc h1 { font-size: 34px; margin-bottom: 6px; }
main.doc .meta { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
main.doc h2 { font-size: 20px; margin: 28px 0 8px; }
main.doc p, main.doc li { color: #c9d1e3; margin-bottom: 10px; }
main.doc ul { padding-left: 22px; margin-bottom: 10px; }
main.doc .todo { background: #3a2a10; border: 1px solid #b7791f; color: #f6d28b; padding: 2px 6px; border-radius: 4px; }

@media (max-width: 560px) {
  .hero { padding-top: 44px; }
}

.card.contact p a { font-size: 18px; font-weight: 600; word-break: break-all; }
.card.contact .hint { margin-top: 8px; font-size: 13px; }
