:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --accent: #059669;
  --accent-soft: #ecfdf5;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
}
.nav-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-block; padding: 10px 20px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px; border: none; cursor: pointer;
  transition: all .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; text-align: center; }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
h1 {
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08;
  letter-spacing: -.035em; font-weight: 800; max-width: 800px; margin: 0 auto 20px;
}
h1 .grad {
  background: linear-gradient(90deg, var(--brand), #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 18px; }
.hero-note { font-size: 13.5px; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card .icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-size: 20px; margin-bottom: 16px; background: #eef2ff;
}
.card h3 { font-size: 17.5px; margin-bottom: 8px; letter-spacing: -.015em; }
.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.badge-pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin: 20px 0 26px; flex: 1; }
.price-card li { font-size: 14.5px; padding: 7px 0; color: #3f3f46; display: flex; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { font-weight: 600; font-size: 15.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 36px; background: var(--surface); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: #3f3f46; padding: 4px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-legal { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; line-height: 1.7; }

/* ---------- Dashboard preview & demo ---------- */
.dash-frame {
  margin: 56px auto 0; max-width: 960px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(79,70,229,.12);
  overflow: hidden; text-align: left;
}
.dash-bar {
  display: flex; gap: 7px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: #fafafa;
}
.dash-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.dash-bar i:nth-child(1) { background: #fca5a5; }
.dash-bar i:nth-child(2) { background: #fcd34d; }
.dash-bar i:nth-child(3) { background: #86efac; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.kpi .label { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi .value { font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.kpi .delta { font-size: 13px; font-weight: 600; }
.delta.up { color: var(--accent); }
.delta.down { color: var(--danger); }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.panel h3 { font-size: 15.5px; margin-bottom: 16px; letter-spacing: -.01em; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 11px 12px; border-bottom: 1px solid #f4f4f5; }
tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--accent); font-weight: 600; }
.neg { color: var(--danger); font-weight: 600; }
.chip {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
}
.chip.etsy { background: #fff7ed; color: #c2410c; }

.fee-row { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; font-size: 13.5px; }
.fee-row .name { width: 150px; color: #3f3f46; }
.fee-row .bar-track { flex: 1; height: 9px; background: #f4f4f5; border-radius: 99px; overflow: hidden; }
.fee-row .bar { height: 100%; border-radius: 99px; background: var(--brand); }
.fee-row .amt { width: 74px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.demo-banner {
  background: #fefce8; border-bottom: 1px solid #fde68a; color: #854d0e;
  font-size: 13.5px; font-weight: 500; text-align: center; padding: 9px 16px;
}

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.legal h1 { font-size: 34px; text-align: left; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin: 34px 0 12px; }
.legal p, .legal li { font-size: 15px; color: #3f3f46; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

@media (max-width: 860px) {
  .grid-3, .grid-2, .kpis { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .kpis { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
