:root {
  --bg: #0b0e13;
  --card: #141a22;
  --ink: #f1f3f5;
  --muted: #9aa3b2;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --ok: #34d399;
  --line: #1f2937;
  --soft: #111827;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(52, 211, 153, 0.06), transparent 45%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 1.25rem 1.25rem 3.5rem; }

/* Header */
header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 0 1.35rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.logo {
  font-weight: 750;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: #fff; }
.logo span { color: var(--accent); }
nav {
  display: flex;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  align-items: center;
}
nav a { color: var(--muted); font-weight: 500; }
nav a:hover, nav a.active { color: var(--ink); text-decoration: none; }
nav .nav-cta {
  margin-left: 0.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
}
nav .nav-cta:hover { filter: brightness(1.08); text-decoration: none; }

/* Type */
h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  font-weight: 750;
}
h2 { font-size: 1.15rem; margin: 0 0 0.65rem; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
  margin: 0 0 1.5rem;
  line-height: 1.65;
}
.muted { color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ok);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Buttons */
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 2rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  transition: filter 0.15s, border-color 0.15s, background 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: #4b5563; text-decoration: none; color: #fff; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
.btn-danger {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.1); text-decoration: none; }

/* Layout */
.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 2rem 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
}
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.card h2 { margin-bottom: 0.75rem; }
.split {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: start;
  margin-bottom: 0.5rem;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  nav { width: 100%; }
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.75rem 0 2rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.price-card.featured {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), var(--shadow);
  background: linear-gradient(180deg, #172033 0%, var(--card) 40%);
}
.price-card .plan-name { font-size: 1.2rem; font-weight: 750; margin: 0 0 0.35rem; }
.price-card .plan-desc { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.15rem; min-height: 2.6em; }
.price-card .amount {
  font-size: 2.35rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.25rem;
}
.price-card .amount span { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card .period { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.25rem; }
.price-card ul {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  flex: 1;
}
.price-card li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.35rem;
  color: var(--muted);
  font-size: 0.93rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.7);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}
.price-card .btn { width: 100%; margin-top: auto; }
.badge-rec {
  position: absolute;
  top: -0.65rem;
  right: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

/* Steps */
.steps { counter-reset: step; margin: 1.5rem 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0 0.85rem 3rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { color: var(--ink); font-weight: 600; }

/* Tables (pricing extras, partners) */
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0.75rem 0; }
th, td {
  text-align: left;
  padding: 0.7rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.price { font-size: 1.2rem; font-weight: 750; color: var(--ink); }
.ok { color: var(--ok); font-weight: 700; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  color: #c4d0e0;
}

/* Forms */
label { display: block; font-size: 0.88rem; color: var(--muted); margin: 0.75rem 0 0.3rem; font-weight: 500; }
input, textarea, select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
}
textarea { min-height: 110px; resize: vertical; }
.form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.note { font-size: 0.85rem; color: var(--muted); margin-top: 0.85rem; line-height: 1.5; }
.banner {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 10px;
  padding: 0.85rem 1.05rem;
  margin-bottom: 1.35rem;
  font-size: 0.93rem;
  color: #bfdbfe;
}
ul.clean { margin: 0.4rem 0 0; padding-left: 1.15rem; color: var(--muted); }
ul.clean li { margin: 0.4rem 0; }

/* Section helpers */
.section { margin: 2.5rem 0; }
.section-title {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.section-lead { color: var(--muted); margin: 0 0 1.25rem; max-width: 36rem; }
.hero-panel {
  background: linear-gradient(145deg, #172033 0%, #141a22 55%, #12171f 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.hero-panel h2 { margin-bottom: 0.5rem; }
.hero-panel p { margin: 0 0 1rem; color: var(--muted); }
.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

/* Footer */
footer.site {
  margin-top: 3.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--ink); }
footer.site .brand-f { color: var(--ink); font-weight: 650; }

/* Alerts / app */
.alert { padding: 0.8rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.95rem; }
.alert-err { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-ok { background: rgba(52, 211, 153, 0.1); color: #86efac; border: 1px solid rgba(52, 211, 153, 0.28); }
.alert-info { background: rgba(59, 130, 246, 0.1); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.28); }
.chk-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 1rem 0;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}
.chk-row input { width: auto; margin-top: 0.2rem; }
.stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 1rem 0 1.5rem;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.stat .n { font-size: 1.75rem; font-weight: 750; letter-spacing: -0.03em; }
.stat .l { color: var(--muted); font-size: 0.85rem; }
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.copy-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.5rem 0 1rem; }
.copy-row input { flex: 1; min-width: 12rem; max-width: 100%; }
.table-actions { white-space: nowrap; }
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #151a22ee;
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  display: none;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.cookie-bar.show { display: flex; }
