:root {
  --bg: #f6f8fb; --surface: #fff; --surface-2: #f1f4f9; --border: #e3e8ef;
  --text: #0f1b2d; --muted: #5b6b80; --primary: #0b5cff; --primary-ink: #fff; --primary-soft: #e8efff;
  --accent: #0aa37f; --accent-soft: #e2f6f0; --warn: #b26b00; --warn-soft: #fff4e0; --danger: #c62828; --danger-soft: #fdecec;
  --star: #f5a623; --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --surface: #121a2b; --surface-2: #19233a; --border: #26324b; --text: #e7edf7; --muted: #9aa8bf;
    --primary: #5b8cff; --primary-soft: #1b2a4d; --accent: #2bc79d; --accent-soft: #11342c; --warn: #f0b04a; --warn-soft: #3a2c10;
    --danger: #ff6b6b; --danger-soft: #3b1717; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: 1.5rem; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-logo-footer { height: 38px; }
@media (max-width: 860px) { .brand-logo { height: 34px; } }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; color: #fff; font-size: .95rem; }
.nav-links { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.nav-links a { color: var(--text); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; color: var(--text); font-size: 1.2rem; }
.credit-pill { background: var(--accent-soft); color: var(--accent); font-weight: 700; padding: 4px 10px; border-radius: 999px; font-size: .85rem; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
}

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary); filter: brightness(1.08); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent); filter: brightness(1.08); }
.btn-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { margin-top: 4px; width: 16px; height: 16px; flex: none; accent-color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 500; background: var(--surface); }
.chip-check input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chip-check input:focus-visible + span { outline: 2px solid var(--primary); }
.form-error { background: var(--danger-soft); color: var(--danger); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: .9rem; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-link { color: inherit; display: block; transition: .15s; }
.card-link:hover { text-decoration: none; border-color: var(--primary); transform: translateY(-2px); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.badge-green { background: var(--accent-soft); color: var(--accent); }
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.stat { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.avatar { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex: none; }
.avatar-lg { width: 88px; height: 88px; font-size: 2rem; border-radius: 20px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon { font-size: 2.2rem; margin-bottom: 8px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: .88rem; }
.notice-info { background: var(--primary-soft); color: var(--primary); }

/* ---------- hero / landing ---------- */
.hero { padding: 64px 0 48px; background: radial-gradient(1200px 400px at 80% -20%, var(--primary-soft), transparent), radial-gradient(800px 300px at 0% 120%, var(--accent-soft), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.lead-text { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.quick-start { padding: 24px; }
.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.industry-card { display: flex; gap: 14px; align-items: flex-start; }
.industry-icon { font-size: 1.6rem; width: 46px; height: 46px; display: grid; place-items: center; background: var(--surface-2); border-radius: 12px; flex: none; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .cta-split { grid-template-columns: 1fr; } }
.cta-card { padding: 32px; border-radius: 16px; }
.cta-customer { background: var(--primary); color: #fff; }
.cta-pro { background: #0f1b2d; color: #fff; }
.cta-card .btn { background: #fff; color: #0f1b2d; border-color: #fff; }

/* ---------- wizard ---------- */
.wizard { max-width: 720px; margin: 32px auto; }
.progress { display: flex; gap: 6px; margin-bottom: 20px; }
.progress div { flex: 1; height: 6px; border-radius: 3px; background: var(--border); }
.progress div.on { background: var(--primary); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choice { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 14px; text-align: left; cursor: pointer; font: inherit; color: inherit; display: flex; gap: 10px; align-items: center; }
.choice:hover { border-color: var(--primary); }
.choice.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }

/* ---------- app shell (dashboards) ---------- */
.app-shell { display: grid; grid-template-columns: 230px 1fr; gap: 24px; padding: 24px 0 48px; }
@media (max-width: 860px) { .app-shell { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: 88px; align-self: start; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 860px) { .sidebar { position: static; } .sidebar nav { flex-direction: row; overflow-x: auto; } }
.sidebar a { color: var(--text); padding: 9px 12px; border-radius: 8px; font-weight: 500; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.sidebar a:hover { background: var(--surface-2); text-decoration: none; }
.sidebar a.active { background: var(--primary-soft); color: var(--primary); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 1.7rem; margin: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--accent); font-weight: 600; }
.neg { color: var(--danger); font-weight: 600; }

/* ---------- compare ---------- */
.compare-card { position: relative; display: flex; flex-direction: column; }
.compare-card.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.compare-card .ribbon { position: absolute; top: -10px; right: 16px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- packages ---------- */
.package { text-align: center; position: relative; cursor: pointer; }
.package.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.package .price { margin: 8px 0 0; }
.package .per { font-size: .82rem; color: var(--muted); }
.payment-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.card-brand { width: 46px; height: 30px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; font-size: .65rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 1; cursor: pointer; }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(20px); }

/* ---------- lead cards ---------- */
.lead-card .locked { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 6px, var(--surface) 6px, var(--surface) 12px); border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: .88rem; }
.cost { font-weight: 800; color: var(--primary); }

/* ---------- modal & toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 18, 32, .55); display: grid; place-items: center; z-index: 2000; padding: 16px; }
.modal { background: var(--surface); border-radius: 16px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 3000; }
.toast { background: #0f1b2d; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 360px; font-size: .92rem; animation: slidein .2s ease; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--accent); }
@keyframes slidein { from { transform: translateY(10px); opacity: 0; } }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- legal & footer ---------- */
.legal { max-width: 820px; margin: 32px auto 64px; }
.legal h2 { margin-top: 1.6em; font-size: 1.2rem; }
.legal .card { padding: 32px; }
.disclosure-bar { background: var(--warn-soft); color: var(--warn); font-size: .82rem; padding: 8px 0; text-align: center; }
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 24px; margin-top: 40px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); }
.footer-legal { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 16px; color: var(--muted); font-size: .8rem; }
.rating-bar { display: grid; grid-template-columns: 40px 1fr 30px; gap: 8px; align-items: center; font-size: .85rem; }
.rating-bar .bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.rating-bar .bar div { height: 100%; background: var(--star); }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 1.8rem; color: var(--border); cursor: pointer; margin: 0; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: none; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
