/* Legio Recovery AI — design system (no external dependencies) */
:root {
  --blue: #4284ff;
  --blue-600: #2d6bea;
  --blue-700: #1f55c4;
  --blue-50: #eef4ff;
  --blue-100: #dbe7ff;
  --ink: #0b1220;
  --ink-2: #1e293b;
  --ink-3: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e6e8ee;
  --line-2: #f0f2f6;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --green: #12a150;
  --green-50: #e9f8ef;
  --yellow: #ca8a04;
  --yellow-50: #fef9e7;
  --orange: #ea580c;
  --orange-50: #fff1e8;
  --red: #dc2626;
  --red-50: #fdecec;
  --grey-50: #f1f5f9;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 20px 50px -20px rgba(15, 23, 42, 0.25);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Montserrat', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 12px; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
pre { background: var(--ink); color: #e2e8f0; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; line-height: 1.6; margin: 0; white-space: pre; }
code.inline { background: var(--grey-50); padding: 2px 6px; border-radius: 6px; color: var(--ink-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 28px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); } .span-2 { grid-column: auto; } .grid-5.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { background: var(--bg-soft); border-color: #d6dae3; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--blue-100); outline-offset: 1px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-600); border-color: var(--blue-600); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-2); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-50); border-color: #f5c2c2; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--grey-50); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.block { width: 100%; }

/* ---------- forms ---------- */
label.field, .field { display: block; }
.field > span, .label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.field .hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d9dde5; border-radius: 10px; background: #fff; font: 15px var(--font); color: var(--ink); transition: border-color .15s;
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-100); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue); }
.form-error { display: none; background: var(--red-50); color: #991b1b; border: 1px solid #f7caca; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.form-error.show { display: block; }
.form-ok { display: none; background: var(--green-50); color: #14532d; border: 1px solid #bfe8cf; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.form-ok.show { display: block; }
fieldset { border: 0; padding: 0; margin: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 600; color: var(--ink-2); background: #fff; }
.choice:hover { border-color: #cdd3de; }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); box-shadow: 0 0 0 3px var(--blue-100); }
.choice small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }

/* ---------- cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card.pad-0 { padding: 0; }
.card.soft { background: var(--bg-soft); box-shadow: none; }
.card.blue { background: var(--blue-50); border-color: var(--blue-100); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 0 0 10px; }

/* KPI */
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .k-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .k-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-top: 4px; }
.kpi .k-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.accent { background: var(--ink); border-color: var(--ink); }
.kpi.accent .k-label, .kpi.accent .k-sub { color: #9aa7bd; }
.kpi.accent .k-value { color: #fff; }
.kpi.blue { background: var(--blue); border-color: var(--blue); }
.kpi.blue .k-label, .kpi.blue .k-sub { color: #dbe7ff; }
.kpi.blue .k-value { color: #fff; }
.value-note { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--grey-50); color: var(--ink-3); white-space: nowrap; }
.badge.blue { background: var(--blue-50); color: var(--blue-700); }
.badge.green { background: var(--green-50); color: #0f7a3d; }
.badge.yellow { background: var(--yellow-50); color: #8a5a00; }
.badge.orange { background: var(--orange-50); color: #b43f07; }
.badge.red { background: var(--red-50); color: #b91c1c; }
.badge.dark { background: var(--ink); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted-2); flex: none; }
.dot.green { background: var(--green); } .dot.yellow { background: #eab308; } .dot.orange { background: var(--orange); } .dot.red { background: var(--red); } .dot.grey { background: #cbd5e1; } .dot.blue { background: var(--blue); }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 28px; padding: 0 8px; border-radius: 8px; font: 800 14px var(--font-display); }
.score.low { background: var(--grey-50); color: var(--muted); }
.score.medium { background: var(--yellow-50); color: #8a5a00; }
.score.high { background: var(--orange-50); color: #b43f07; }
.score.very_high { background: var(--red-50); color: #b91c1c; }
.score.lg { min-width: 64px; height: 44px; font-size: 22px; border-radius: 12px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-soft); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.link-row { cursor: pointer; }
.table tr.link-row:hover td { background: #fafbff; }
.table .cell-main { font-weight: 600; color: var(--ink); }
.table .cell-sub { font-size: 12px; color: var(--muted); }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; padding: 18px 14px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: var(--ink) !important; text-decoration: none !important; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--blue); display: grid; place-items: center; flex: none; }
.brand-text { font: 800 15px/1.1 var(--font-display); letter-spacing: 0.02em; }
.brand-text small { display: block; font-size: 10px; letter-spacing: .16em; color: var(--blue); font-weight: 700; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--ink-3); font-weight: 500; font-size: 14px; text-decoration: none; }
.nav a:hover { background: var(--bg-soft); }
.nav a.active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav .count { margin-left: auto; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.nav-sep { height: 1px; background: var(--line); margin: 12px 6px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.org-switch select { height: 38px; font-size: 13px; font-weight: 600; }
.user-line { display: flex; align-items: center; gap: 10px; padding: 10px 6px 0; font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.main { min-width: 0; background: var(--bg-soft); }
.content { max-width: 1240px; margin: 0 auto; padding: 28px 32px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.topbar { display: none; }
.demo-banner { background: repeating-linear-gradient(135deg, #0b1220, #0b1220 12px, #111a2e 12px, #111a2e 24px); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-align: center; padding: 7px 12px; }
.demo-banner span { color: #9ec0ff; letter-spacing: normal; font-weight: 500; margin-left: 8px; }
.backdrop { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(11, 18, 32, .35); z-index: 40; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
  .content { padding: 20px 16px 56px; }
  h1 { font-size: 23px; }
}

/* ---------- misc components ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); display: grid; place-items: center; margin: 0 auto 14px; color: var(--blue); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-color: var(--blue); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-3); font-size: 13px; font-weight: 600; text-decoration: none; }
.pills a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input, .filters select { height: 38px; width: auto; min-width: 150px; }
.filters input[type=search] { min-width: 220px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 16px 28px; }
.timeline li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--muted-2); }
.timeline li.sys::before { border-color: var(--blue); background: var(--blue); }
.timeline li.hot::before { border-color: var(--orange); background: var(--orange); }
.timeline .t-date { font-size: 12px; color: var(--muted); }
.timeline .t-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.timeline .t-meta { font-size: 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); word-break: break-word; }
.why { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 12px; padding: 14px 16px; color: var(--ink-2); }
.why strong { color: var(--blue-700); }
.contrib { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.contrib:last-child { border: 0; }
.contrib .pos { color: var(--green); font-weight: 700; }
.contrib .neg { color: var(--red); font-weight: 700; }
.flag { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.flag.block { background: var(--red-50); color: #991b1b; }
.flag.warn { background: var(--yellow-50); color: #854d0e; }
.email-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.email-preview .ep-head { background: var(--bg-soft); padding: 10px 14px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.email-preview .ep-body { padding: 16px; white-space: pre-wrap; font-size: 14px; }
.actions-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.reply-card { border-left: 3px solid var(--line); padding: 10px 14px; background: var(--bg-soft); border-radius: 0 10px 10px 0; }
.reply-card.interested { border-color: var(--green); } .reply-card.needs_info { border-color: #eab308; } .reply-card.negotiate { border-color: var(--orange); } .reply-card.not_interested { border-color: var(--red); } .reply-card.wants_human { border-color: var(--muted-2); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line); background: #fff; }
.notice.warn { background: var(--yellow-50); border-color: #f4e2a8; color: #713f12; }
.notice.info { background: var(--blue-50); border-color: var(--blue-100); color: #1e3a8a; }
.notice.danger { background: var(--red-50); border-color: #f7caca; color: #7f1d1d; }
.notice.ok { background: var(--green-50); border-color: #bfe8cf; color: #14532d; }
.alert-item { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.alert-item:last-child { border: 0; }
.alert-item.unread { background: #fbfcff; }
.alert-item .a-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 17px; background: var(--orange-50); }
.alert-item .a-icon.warning { background: var(--yellow-50); }
.alert-item .a-icon.info { background: var(--blue-50); }
.progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); fill: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.funnel-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.funnel-row svg { width: 100%; height: 22px; display: block; }
.type-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.type-row:last-child { border: 0; }
.hero-found { background: var(--ink); color: #fff; border-radius: 18px; padding: 28px; position: relative; overflow: hidden; }
.hero-found h2 { color: #fff; font-size: 26px; }
.hero-found p { color: #b6c2d6; }
.hero-found .chip { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 6px 12px; font-size: 13px; margin: 0 6px 6px 0; color: #fff; }
.hero-found::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(66, 132, 255, .5), rgba(66, 132, 255, 0) 70%); }
.keybox { display: flex; gap: 8px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; word-break: break-all; }
.steps { display: flex; gap: 6px; margin-bottom: 26px; }
.steps span { flex: 1; height: 4px; border-radius: 99px; background: var(--line); }
.steps span.done { background: var(--blue); }
.rule-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) 90px minmax(0, 1fr) 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 760px) { .rule-row { grid-template-columns: minmax(0, 1fr); } .kv { grid-template-columns: minmax(0, 1fr); } .kv dt { margin-top: 6px; } }

/* dialog */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--ink-2); }
dialog::backdrop { background: rgba(11, 18, 32, .45); }
dialog .d-head { padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: center; }
dialog .d-body { padding: 16px 20px 20px; }

/* toast */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); max-width: 360px; }
.toast.error { background: #7f1d1d; }

/* ---------- auth & public pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: 34px; max-width: 460px; }
.auth-side p { color: #aab6ca; max-width: 440px; }
.auth-side::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(66, 132, 255, .45), rgba(66, 132, 255, 0) 70%); }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 400px; }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } }
.onb { max-width: 680px; margin: 0 auto; padding: 40px 16px 80px; }

/* landing */
.lp-nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.lp-nav .in { max-width: 1160px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-nav nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
.lp-nav nav a { color: var(--ink-3); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.lp-hero { padding: 88px 0 56px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); padding: 6px 12px; border-radius: 999px; }
.lp-hero h1 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; max-width: 960px; margin: 22px auto 0; font-weight: 800; }
.lp-hero h1 em { font-style: normal; color: var(--blue); }
.lp-hero .sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 640px; margin: 22px auto 30px; }
.lp-section { padding: 80px 0; }
.lp-section.soft { background: var(--bg-soft); }
.lp-section.dark { background: var(--ink); color: #c9d3e3; }
.lp-section.dark h2, .lp-section.dark h3 { color: #fff; }
.lp-h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; max-width: 760px; }
.lp-lead { font-size: 17px; color: var(--muted); max-width: 640px; margin-top: 12px; }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.lp-card .num { font: 800 13px var(--font-display); color: var(--blue); letter-spacing: .1em; }
.lp-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font: 700 13px var(--font-display); letter-spacing: .08em; margin-top: 26px; }
.lp-flow span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--ink); }
.lp-flow i { color: var(--blue); font-style: normal; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px; }
.mock-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.price { font: 800 34px var(--font-display); color: var(--ink); letter-spacing: -0.03em; }
.price-card.featured { border: 2px solid var(--blue); box-shadow: 0 20px 40px -24px rgba(66, 132, 255, .6); }
.check-list { list-style: none; padding: 0; margin: 14px 0 0; }
.check-list li { padding: 5px 0 5px 26px; position: relative; font-size: 14px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue-50); border: 4px solid var(--blue-100); box-sizing: border-box; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: '+'; color: var(--blue); font-weight: 800; }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 10px 0 0; color: var(--muted); }
.lp-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .lp-nav nav { display: none; } .lp-hero { padding: 56px 0 36px; } .lp-section { padding: 56px 0; } }
.brand-mark.lg { width: 40px; height: 40px; border-radius: 12px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 28px; } .mb-0 { margin-bottom: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-90 { width: 90px !important; min-width: 0 !important; }
.pre-line { white-space: pre-line; }
progress { height: 8px; width: 100%; accent-color: var(--blue); }
.mt-4 { margin-top: 4px; }
.col-wide { min-width: 360px; }
.col-name { min-width: 190px; }
.big-value { font: 800 26px var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.kv .badge { white-space: normal; height: auto; min-height: 24px; padding: 3px 9px; }
.card { min-width: 0; }
@media (max-width: 760px) { .hide-sm { display: none !important; } .col-wide { min-width: 260px; } }
pre { white-space: pre-wrap; word-break: break-word; }

/* ---- v0.3: account banners, plan meters, admin area */
.banners { display: flex; flex-direction: column; gap: 8px; padding: 12px 24px 0; }
.banner { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; border: 1px solid var(--line); background: #fff; }
.banner .btn { margin-left: auto; }
.banner.warn { background: var(--yellow-50); border-color: #f4e2a8; color: #713f12; }
.banner.info { background: var(--blue-50); border-color: var(--blue-100); color: #1e3a8a; }
.banner.danger { background: #1f0b0b; border-color: #7f1d1d; color: #fee2e2; }
.banner.danger .btn { background: #fff; color: #111; }
progress.warn::-webkit-progress-value { background: #eab308; }
progress.full::-webkit-progress-value { background: #dc2626; }
progress.warn::-moz-progress-bar { background: #eab308; }
progress.full::-moz-progress-bar { background: #dc2626; }
.checklist { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.checklist li.off { color: var(--muted, #6b7280); }
.row-wrap { flex-wrap: wrap; }
.row-wrap > input.grow, .row-wrap > .grow { min-width: 200px; }
.row.end { justify-content: flex-end; }
.pad { padding: 16px; }
.badge.simulated { background: #fef3c7; color: #92400e; border: 1px dashed #f59e0b; }
.admin-top { background: #0b1220; color: #fff; padding: 10px 24px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.admin-top a { color: #cfe0ff; text-decoration: none; font-size: 14px; white-space: nowrap; }
.admin-top .xs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.admin-top a.active { color: #fff; font-weight: 700; }
.admin-top .brand-text { color: #fff; }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted, #6b7280); }
.kv dd { margin: 0; }
@media (max-width: 720px) {
  .banners { padding: 10px 12px 0; }
  .banner .btn { margin-left: 0; }
  .admin-wrap { padding: 14px; }
  .table-wrap { overflow-x: auto; }
}
.card.pad-0 > .card-head { padding: 18px 20px 0; }
.lp-hero .row { justify-content: center; flex-wrap: wrap; }
.lp-hero .row > .grow { display: none; }
@media (max-width: 720px) {
  .lp-hero .row .btn { width: 100%; justify-content: center; }
}
/* v0.4: DNS records of a sender domain, wide tables */
.dns-list { display: grid; gap: 10px; }
.dns-rec { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 10px 12px; background: #fff; display: grid; gap: 4px; min-width: 0; }
.dns-val { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: #f6f8fb; border-radius: 6px; padding: 6px 8px; word-break: break-all; user-select: all; }
.table-scroll { overflow-x: auto; max-width: 100%; }
/* v1.0: «Conectar mi web» */
.connect-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.connect-opt { border: 1px solid var(--line, #e5e7eb); border-radius: 12px; padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; background: #fff; }
.connect-head { display: flex; gap: 12px; align-items: center; }
.connect-head h3 { margin: 0; font-size: 17px; }
.connect-icon { width: 38px; height: 38px; border-radius: 10px; background: #eef3ff; color: #4284ff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.snippet { white-space: pre-wrap; word-break: break-all; font-size: 12px; }
details.platform { border: 1px solid var(--line, #e5e7eb); border-radius: 8px; padding: 8px 12px; background: #fff; }
details.platform summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details.platform ol { margin: 8px 0 0; padding-left: 18px; }
.btn.xs { padding: 2px 8px; font-size: 12px; min-height: 0; }
.stack-xs { display: grid; gap: 6px; }
@media (max-width: 900px) { .connect-grid { grid-template-columns: 1fr; } }
