:root {
  --ink: #1d2433; --muted: #5b6475; --line: #e3e6ee; --bg: #f7f8fb;
  --brand: #4f46e5; --brand-dark: #3730a3; --ok: #0b8a6b; --warn: #b45309;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
header { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; background: #fff; border-bottom: 1px solid var(--line); }
header .logo { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
header .logo span { color: var(--brand); }
header nav a { margin-left: 20px; text-decoration: none; color: var(--muted); }
main { max-width: 960px; margin: 0 auto; padding: 48px 24px; }
.hero { text-align: center; padding: 40px 0; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 16px; }
.hero p { font-size: 20px; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 12px 22px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-dark); }
.btn.secondary { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.price-card { max-width: 420px; margin: 24px auto; text-align: center; }
.price { font-size: 48px; font-weight: 800; margin: 8px 0; }
.price small { font-size: 16px; font-weight: 400; color: var(--muted); }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--bg); margin-bottom: 8px; }
.toggle span { padding: 6px 16px; border-radius: 999px; cursor: pointer; user-select: none; }
.toggle span.active { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); font-weight: 600; }
.badge { display: inline-block; font-size: 12px; background: #ecfdf5; color: var(--ok); padding: 2px 8px; border-radius: 999px; }
form { display: grid; gap: 14px; max-width: 420px; margin: 0 auto; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
input, select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; color: var(--muted); }
.winner { color: var(--ok); font-weight: 700; }
pre.log { background: #0f172a; color: #cbd5e1; padding: 16px; border-radius: 8px; max-height: 360px; overflow: auto; font-size: 12px; }
.note { font-size: 13px; color: var(--muted); }
.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--ok); padding: 16px; border-radius: 8px; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } }

/* ---- in-app (app.html) ---- */
.btn.small { padding: 6px 12px; font-size: 14px; }
.app-top { display: flex; align-items: center; gap: 12px; }
.app-top a.btn { margin-left: 0; color: #fff; }
.badge.trial { background: #eef2ff; color: var(--brand); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.app-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 65px); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 24px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar a { padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.sidebar a:hover { background: var(--bg); }
.sidebar a.active { background: #eef2ff; color: var(--brand); font-weight: 600; }
.sidebar .signout { margin-top: auto; color: var(--muted); }
.app-main { padding: 32px 40px; max-width: 980px; }
.app-main h1 { margin-top: 0; }
.app-main section > * + * { margin-top: 20px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi strong { display: block; font-size: 28px; margin-top: 4px; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.checklist li { padding: 6px 0 6px 28px; position: relative; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; border: 2px solid var(--line); border-radius: 50%; }
.checklist li.done { color: var(--muted); text-decoration: line-through; }
.checklist li.done::before { background: var(--ok); border-color: var(--ok); }
.row { display: flex; align-items: center; justify-content: space-between; }
.app-main form { margin: 0; }
label.radio { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 16px; margin: 8px 0; }
@media (max-width: 700px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .sidebar .signout { margin-top: 0; }
  .sidebar a { white-space: nowrap; }
  .app-main { padding: 20px 16px; }
  .kpis { grid-template-columns: 1fr; }
}
