:root {
  --accent: #f97316;        /* ember orange */
  --accent-2: #fbbf24;      /* spark yellow */
  --accent-rgb: 249, 115, 22;
  --bg: #0c0e12;            /* forge black */
  --surface: #14171d;       /* steel plate */
  --surface-2: #1b1f27;
  --border: #262b35;
  --text: #edeef2;
  --muted: #8b93a3;
  --danger: #f87171;
  --ok: #4ade80;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(700px 380px at 50% -120px, rgba(var(--accent-rgb), 0.10), transparent 70%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(12, 14, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #3b4252, #14171d 60%);
  border: 1px solid #3a4150;
  color: var(--accent); display: grid; place-items: center; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 16px -6px rgba(var(--accent-rgb), .8);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: none; border-radius: 9px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14px;
  padding: 10px 18px; transition: filter .15s, background .15s, color .15s;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: #16100a;
  box-shadow: 0 0 22px -8px rgba(var(--accent-rgb), .8);
}
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn.ghost:hover { color: var(--text); border-color: #39404e; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(248, 113, 113, .35); }
.btn.small { padding: 7px 12px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: default; }

main { max-width: 1040px; margin: 0 auto; padding: 32px 20px 80px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #333a47;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface-2);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(var(--accent-rgb), .7); outline-offset: -1px; }
select option { background: var(--surface-2); color: var(--text); }

label.field { display: block; margin-bottom: 14px; }
label.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
label.field small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

.muted { color: var(--muted); }
.error-text { color: var(--danger); font-size: 13px; }
.ok-text { color: var(--ok); font-size: 13px; }

.badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.badge.free { background: #232936; color: var(--muted); }
.badge.pro { background: rgba(74, 222, 128, .12); color: var(--ok); }

/* ---------- landing ---------- */
.hero-l { text-align: center; padding: 60px 20px 30px; }
.hero-l h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 14px; line-height: 1.15; }
.hero-l h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-l p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 26px; line-height: 1.6; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin: 40px 0; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .fi {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: rgba(var(--accent-rgb), .12); color: var(--accent);
  display: grid; place-items: center; font-size: 16px;
  border: 1px solid rgba(var(--accent-rgb), .2);
}
.feature-list b { display: block; font-size: 15px; }
.feature-list p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 640px; margin: 30px auto; }
@media (max-width: 640px) { .pricing { grid-template-columns: 1fr; } }
.price-card { text-align: left; }
.price-card.hot { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 12px 44px -18px rgba(var(--accent-rgb), .55); }
.price-card h3 { margin: 0; font-size: 16px; }
.price-card .amount { font-size: 34px; font-weight: 800; margin: 10px 0; }
.price-card .amount small { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 18px; color: var(--muted); font-size: 13.5px; display: grid; gap: 7px; }
.price-card ul li::before { content: "✓  "; color: var(--ok); font-weight: 700; }

section.block { margin: 60px 0; }
section.block > h2 { text-align: center; font-size: 26px; letter-spacing: -0.02em; }
section.block > .sub { text-align: center; color: var(--muted); margin: -6px 0 26px; }

footer { text-align: center; color: #5b6373; font-size: 12.5px; padding: 30px 20px; border-top: 1px solid var(--border); }

/* ---------- dashboard ---------- */
.auth-box { max-width: 400px; margin: 60px auto; }
.auth-box h2 { margin-top: 0; }

.list-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px;
}
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-weight: 600; font-size: 15px; }
.list-row .lr-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.list-row .lr-actions { display: flex; gap: 8px; }

.editor-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .editor-grid { grid-template-columns: 1fr; } }

.q-row { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; background: var(--surface-2); }
.q-row .q-head { display: flex; gap: 10px; margin-bottom: 10px; }
.q-row .q-head input { flex: 1; }
.q-row .q-head select { width: 150px; }
.opt-row { display: flex; gap: 8px; margin-bottom: 6px; }
.opt-row input:first-child { flex: 1; }
.opt-row input:nth-child(2) { width: 110px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table td .sub { color: var(--muted); font-size: 12px; }

.embed-code {
  background: #07080b; color: #fdba74; font-family: ui-monospace, Consolas, monospace;
  font-size: 12px; padding: 14px; border-radius: 10px; overflow-x: auto; white-space: pre;
  border: 1px solid var(--border);
}

.toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 50; }
.toast {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 11px 16px; font-size: 13.5px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
}

.tabs-inline { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tabs-inline button {
  border: none; background: none; font: inherit; font-weight: 600; font-size: 13.5px;
  color: var(--muted); padding: 9px 14px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs-inline button.active { color: var(--accent); border-bottom-color: var(--accent); }

.hidden { display: none !important; }

/* The live preview stays light — the widget ships on customers' (mostly light)
   sites and the preview should show it as their visitors will see it. */
#preview-slot, #demo-slot { background: #eef1f5; border-radius: 12px; padding: 16px; }
