:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --border: #e6e8ef;
  --text: #14171f;
  --muted: #6b7280;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-2: #7c3aed;
  --danger: #dc2626;
  --good: #16a34a;
  --warn: #d97706;
  --shadow-sm: 0 1px 2px rgba(20, 23, 31, 0.05);
  --shadow-md: 0 4px 16px rgba(20, 23, 31, 0.06);
  --shadow-lg: 0 12px 40px rgba(20, 23, 31, 0.10);
  --radius: 12px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 80px; }
.wrap.narrow { max-width: 420px; padding-top: 80px; }

/* ---------- App topbar (dashboard/admin) ---------- */
header.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
header.topbar .brand {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
header.topbar nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 14px; font-weight: 500; }
header.topbar nav a:hover { color: var(--text); }

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 15px; height: 15px; }

h1 { font-size: 24px; letter-spacing: -0.01em; }
h2 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 36px; font-weight: 700; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat {
  flex: 1;
  min-width: 140px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.stat .value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat .label { color: var(--muted); font-size: 13px; margin-top: 2px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }

input, select, textarea, button {
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 11px 14px;
}
input, select, textarea { width: 100%; margin-bottom: 12px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
button {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
}
button:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: var(--shadow-md); }
button:active { transform: translateY(1px); }
button.secondary { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
button.secondary:hover { background: var(--bg); border-color: var(--border); box-shadow: none; }
button.danger { background: var(--danger); border-color: var(--danger); }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.good { background: rgba(22,163,74,0.10); color: var(--good); }
.pill.warn { background: rgba(217,119,6,0.10); color: var(--warn); }
.pill.danger { background: rgba(220,38,38,0.10); color: var(--danger); }
.pill.muted { background: rgba(107,114,128,0.10); color: var(--muted); }

.muted { color: var(--muted); }
.error { color: var(--danger); margin-bottom: 12px; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); margin-top: -6px; margin-bottom: 12px; }

pre.snippet {
  background: #f4f5f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  overflow-x: auto;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}

.plan-grid { display: flex; gap: 14px; flex-wrap: wrap; }
.plan-card {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  background: var(--panel);
}
.plan-card .price { font-size: 26px; font-weight: 800; margin: 8px 0; letter-spacing: -0.02em; }
.plan-card.current { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.10); }

/* ==================================================================
   Marketing / landing page
   ================================================================== */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
}
.navbar .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; color: var(--text); }
.navbar nav { display: flex; align-items: center; gap: 28px; }
.navbar nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.navbar nav a:hover { color: var(--text); }
.navbar .nav-actions { display: flex; align-items: center; gap: 12px; }
.navbar .nav-actions a.ghost { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 9px 14px; }
.navbar .nav-actions a.cta {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.navbar .nav-actions a.cta:hover { background: var(--accent-dark); }

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79,70,229,0.08);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 780px;
  margin: 0 auto 20px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero .cta-row a.primary {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(79,70,229,0.25);
}
.hero .cta-row a.primary:hover { background: var(--accent-dark); }
.hero .cta-row a.secondary {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.hero .fineprint { font-size: 13.5px; color: var(--muted); }

.mockup-frame {
  max-width: 960px;
  margin: 56px auto 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup-frame .frame-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fbfbfd;
}
.mockup-frame .frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mockup-frame .frame-body { padding: 28px; }

.section { max-width: 1120px; margin: 0 auto; padding: 88px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.section-head h2 { text-transform: none; letter-spacing: -0.02em; color: var(--text); font-size: 34px; margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 16.5px; line-height: 1.6; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: left; }
.step .num {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; margin: 0 0 8px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.feature-card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(79,70,229,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card .icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.feature-card h3 { font-size: 16.5px; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(79,70,229,0.16);
  position: relative;
}
.price-card.featured .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.price-card .plan-name { font-weight: 700; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.price-card .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 2px; }
.price-card .amount span { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-card .cap { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-bottom: 12px; color: var(--text); }
.price-card li svg { width: 16px; height: 16px; stroke: var(--good); flex-shrink: 0; margin-top: 2px; }
.price-card a.plan-cta {
  text-align: center; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 12px; border-radius: 9px; border: 1px solid var(--border); color: var(--text);
}
.price-card.featured a.plan-cta { background: var(--accent); color: #fff; border-color: var(--accent); }

.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item h3 { font-size: 16px; margin: 0 0 8px; letter-spacing: -0.01em; }
.faq-item p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

.cta-band {
  max-width: 1120px;
  margin: 0 auto 88px;
  padding: 64px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; text-transform: none; letter-spacing: -0.02em; font-size: 30px; margin: 0 0 12px; font-weight: 800; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 16px; margin: 0 0 28px; }
.cta-band a { display: inline-block; background: #fff; color: var(--accent); text-decoration: none; font-weight: 700; font-size: 16px; padding: 15px 30px; border-radius: 10px; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}
footer.site-footer .inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer.site-footer .logo { display: flex; align-items: center; gap: 8px; font-weight: 700; }
footer.site-footer a { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 20px; }
footer.site-footer a:hover { color: var(--text); }
footer.site-footer .copyright { color: var(--muted); font-size: 13px; margin-top: 16px; }

@media (max-width: 860px) {
  .steps, .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero p.lede { font-size: 17px; }
  .navbar nav { display: none; }
}
