/* AI Leads · product UI.
   One family (Inter, self-hosted: CSP allows same-origin only), cool neutrals, one accent (ultramarine) reserved for actions,
   selection and progress; green / amber / red are state only. Radii by hierarchy: 6px controls · 10px panels · pill chips.
   Numbers everywhere are tabular (font-feature tnum), never a monospace costume; mono is for ids, tokens and code only. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --canvas: #f4f5f9; --panel: #ffffff; --panel-2: #fafafd; --wash: #f0f1f6;
  --ink: #0e1230; --ink-2: #3b4262; --muted: #667089; --faint: #a3a9bc;
  --line: #e4e7ef; --line-2: #cdd2df;
  --accent: #2b3eff; --accent-hover: #1f2fd6; --accent-soft: #eef0ff; --accent-soft-2: #dce0ff; --accent-ring: rgba(43, 62, 255, .3);
  --ok: #0b7a52; --ok-soft: #e4f5ec; --warn: #b45309; --warn-soft: #fdf1d6; --bad: #cc2e3a; --bad-soft: #fdeced;
  --shadow-1: 0 1px 2px rgba(14, 18, 48, .06), 0 1px 1px rgba(14, 18, 48, .03);
  --shadow-2: 0 12px 32px -14px rgba(14, 18, 48, .3), 0 2px 6px rgba(14, 18, 48, .06);
  --r-ctl: 6px; --r-panel: 10px; --r-pill: 999px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --side-w: 252px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) transparent; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 14px/1.5 var(--sans); font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-soft-2); color: var(--ink); }
input, textarea { caret-color: var(--accent); }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid transparent; background-clip: padding-box; border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-ctl); }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: 22px; line-height: 1.25; }
h2 { font-size: 16px; line-height: 1.3; }
h3 { font-size: 14px; line-height: 1.4; }
p { margin: 0; }
p + p { margin-top: 8px; }
b, strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.n { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
.big { font-size: 36px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.huge { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.ic.sm { width: 15px; height: 15px; vertical-align: -3px; }
.ic.lg { width: 22px; height: 22px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--accent); border-radius: var(--r-ctl); background: var(--accent); color: #fff; font: 500 14px/1 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease); }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 8px; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.alt { background: var(--panel); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-1); }
.btn.alt:hover { background: var(--panel-2); border-color: var(--faint); color: var(--ink); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink-2); box-shadow: none; }
.btn.quiet:hover { background: var(--wash); color: var(--ink); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: #a82530; border-color: #a82530; }
.btn.danger.alt { background: var(--panel); color: var(--bad); border-color: var(--line-2); }
.btn.danger.alt:hover { background: var(--bad-soft); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.busy { position: relative; color: transparent; }
.btn.busy::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.alt.busy::after, .btn.quiet.busy::after { border-color: var(--line-2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--bad); }

.field { display: block; margin: 0 0 14px; }
.field > span, .label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.input, select.input, textarea.input { display: block; width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--panel); color: var(--ink); font: 400 14px/1.4 var(--sans); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); box-shadow: inset 0 1px 1px rgba(14, 18, 48, .03); }
.input::placeholder { color: var(--muted); }
.input:hover { border-color: var(--faint); }
.input:focus, .chips:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input:disabled { background: var(--wash); color: var(--muted); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23667089' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; cursor: pointer; }
.input.sm { height: 30px; font-size: 13px; padding: 0 9px; }
.input.lg { height: 44px; font-size: 15px; padding: 0 14px; border-radius: 8px; }
input[type="number"].input { -moz-appearance: textfield; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; }
.msg { min-height: 1.5em; font-size: 13px; color: var(--ink-2); }
.msg:empty { display: none; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.note .ic { color: var(--faint); margin-top: 1px; }

/* chip input */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 36px; padding: 4px 6px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--panel); cursor: text; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.chips:hover { border-color: var(--faint); }
.chips input { flex: 1; min-width: 110px; height: 26px; border: 0; padding: 0 4px; background: transparent; font: 400 14px var(--sans); color: var(--ink); }
.chips input:focus { outline: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 9px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-hover); font-size: 13px; font-weight: 500; line-height: 1; }
.chip.plain { background: var(--wash); color: var(--ink-2); padding-right: 9px; }
.chip button { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.chip button:hover { background: rgba(43, 62, 255, .15); }
.chip button .ic { width: 12px; height: 12px; stroke-width: 2.2; vertical-align: 0; }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; }

/* toggle pills (seniority) */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--panel); font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none; transition: all .15s var(--ease); }
.seg label:hover { border-color: var(--faint); color: var(--ink); }
.seg input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; padding: 6px 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; margin: 0; border-radius: var(--r-pill); background: var(--line-2); position: relative; cursor: pointer; transition: background .15s var(--ease); flex: none; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(14, 18, 48, .3); transition: transform .18s var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(14px); }

/* pills + tags */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; background: var(--wash); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.run { background: var(--accent-soft); color: var(--accent-hover); }
.pill.run::before { animation: pulse 1.2s ease-in-out infinite; }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.nodot::before { display: none; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .01em; background: var(--wash); color: var(--muted); white-space: nowrap; }
.tag.sim { background: var(--warn-soft); color: var(--warn); }
.locked { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--r-ctl); background: var(--wash); color: var(--muted); font-size: 13px; white-space: nowrap; }
.locked .ic { width: 13px; height: 13px; vertical-align: 0; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: 12px; font-weight: 500; }
.verified .ic { width: 14px; height: 14px; vertical-align: 0; stroke-width: 2; }

/* panels + tables */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-1); }
.card.pad { padding: 20px; }
.card > .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card > .head h2 { font-size: 14px; }
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { position: sticky; top: 0; z-index: 1; text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfbfe; }
th.r, td.r { text-align: right; font-variant-numeric: tabular-nums; }
td .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
td.primary { font-weight: 500; }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 20px; color: var(--muted); }
.empty .ic { width: 28px; height: 28px; color: var(--faint); stroke-width: 1.3; }
.empty b { color: var(--ink); font-weight: 600; }
.empty p { max-width: 42ch; }
.pager { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

/* skeleton */
.sk { position: relative; overflow: hidden; background: var(--wash); border-radius: 4px; height: 12px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shimmer 1.3s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skrows { display: grid; gap: 14px; padding: 18px; }
.skrows > div { display: grid; grid-template-columns: 1.3fr 1.6fr 1.4fr 1fr 1.2fr; gap: 16px; }

/* toast + dialog */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-2); z-index: 40; animation: toastin .22s var(--ease) forwards; }
.toast .ic { color: #8ef2c0; }
@keyframes toastin { to { transform: translate(-50%, 0); } }
dialog.dlg { border: 1px solid var(--line); border-radius: 12px; padding: 0; width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow-2); background: var(--panel); color: var(--ink); }
dialog.dlg::backdrop { background: rgba(14, 18, 48, .35); backdrop-filter: blur(2px); }
dialog.dlg form { padding: 20px; display: grid; gap: 12px; }
dialog.dlg h2 { font-size: 16px; }
dialog.dlg .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ---------- public site ---------- */
.strip { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 7px 16px; background: var(--ink); color: #c9cde6; font-size: 12.5px; font-weight: 500; text-align: center; }
.strip b { color: #fff; }
.banner { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-hover); font-size: 13.5px; font-weight: 500; }
.banner .ic { flex: none; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
header.site { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 64px; padding: 0 clamp(16px, 4vw, 48px); background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.site nav { display: flex; gap: 6px; align-items: center; }
header.site nav a:not(.btn) { padding: 8px 10px; border-radius: var(--r-ctl); color: var(--ink-2); font-weight: 500; }
header.site nav a:not(.btn):hover { background: var(--wash); color: var(--ink); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; }
.brand .logo svg { width: 16px; height: 16px; }
.brand b { display: block; font-size: 15px; line-height: 1.1; letter-spacing: -0.01em; }
.brand small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
footer.site { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px clamp(16px, 4vw, 48px); margin-top: 72px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); background: var(--panel); }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--ink-2); }

main.land { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); font-size: 16px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; max-width: 14ch; }
.hero .lede { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 48ch; }
.hero .cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero .cta .muted { font-size: 14px; }
.proof { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.proof div { display: grid; gap: 2px; }
.proof b { font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.proof span { font-size: 13px; color: var(--muted); }

/* the demo: a real-looking search with a live count and a masked preview */
.demo { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); overflow: hidden; font-size: 14px; }
.demo .bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.demo .bar .ic { color: var(--muted); }
.demo .bar .chip { height: 26px; }
.demo .bar .go { margin-left: auto; }
.demo .count { display: flex; align-items: baseline; gap: 10px; padding: 18px 18px 8px; }
.demo .count b { font-size: 40px; line-height: 1; letter-spacing: -0.035em; font-weight: 700; min-width: 6ch; }
.demo .count span { color: var(--muted); font-size: 14px; }
.demo .count .free { margin-left: auto; }
.demo table { font-size: 13px; }
.demo th { background: var(--panel); }
.demo td { padding: 10px 14px; }
.demo tfoot td { background: var(--panel-2); color: var(--muted); font-size: 12.5px; padding: 10px 14px; border: 0; }
.demo tfoot .ic { color: var(--ok); }

section.block { padding: clamp(40px, 6vw, 72px) 0 0; }
section.block > h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.025em; max-width: 24ch; margin-bottom: 8px; }
section.block > .sub { color: var(--ink-2); max-width: 56ch; margin-bottom: 28px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 22px 22px 22px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.steps b { display: block; font-size: 16px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15px; }
.lead-sample { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.lead-sample div { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead-sample div:nth-child(4n) { border-right: 0; }
.lead-sample div:nth-last-child(-n + 4) { border-bottom: 0; }
.lead-sample span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.lead-sample b { font-weight: 500; font-size: 15px; }
.honest { display: flex; gap: 14px; align-items: flex-start; margin-top: 36px; padding: 22px 24px; border-radius: var(--r-panel); background: var(--ink); color: #d6d9ee; font-size: 15px; line-height: 1.55; }
.honest .ic { width: 22px; height: 22px; color: #8ef2c0; flex: none; margin-top: 2px; }
.honest b { color: #fff; }
table.price { max-width: 640px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; font-size: 15px; }
table.price td { padding: 14px 18px; }
table.price td:first-child { font-weight: 500; }
table.price .gift td { background: var(--ok-soft); }
table.price .gift .pill { height: 20px; font-size: 11px; }
.faq { max-width: 720px; display: grid; gap: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-weight: 500; font-size: 16px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 62ch; }
.cta-end { margin-top: clamp(48px, 7vw, 88px); padding: clamp(36px, 5vw, 56px); border-radius: 16px; background: var(--accent); color: #fff; display: grid; gap: 16px; justify-items: start; }
.cta-end h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.03em; color: #fff; max-width: 20ch; }
.cta-end p { color: #d9dcff; font-size: 16px; max-width: 48ch; }
.cta-end .btn { background: #fff; color: var(--accent-hover); border-color: #fff; }
.cta-end .btn:hover { background: var(--accent-soft); }

main.narrow { max-width: 520px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) 16px 40px; }
main.narrow .card.pad { padding: 28px; }
main.narrow h1 { font-size: 24px; margin-bottom: 8px; }
main.narrow .sub { color: var(--muted); margin-bottom: 22px; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 16px; }
details.more summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { margin-bottom: 10px; }
main.legal { max-width: 680px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 16px 40px; font-size: 15px; line-height: 1.6; }
main.legal h1 { font-size: 28px; margin-bottom: 6px; }
main.legal h2 { font-size: 17px; margin: 28px 0 8px; }
main.legal p { color: var(--ink-2); max-width: 66ch; }
ul.tools { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.tools li { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.amount { font-size: 40px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin: 6px 0 14px; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 18px 14px; background: var(--panel); border-right: 1px solid var(--line); min-width: 0; }
.side .brand { padding: 2px 6px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 7px; color: var(--ink-2); font-weight: 500; font-size: 13.5px; text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease); }
.side nav a .ic { color: var(--muted); }
.side nav a:hover { background: var(--wash); color: var(--ink); }
.side nav a.on { background: var(--accent-soft); color: var(--accent-hover); }
.side nav a.on .ic { color: var(--accent); }
.side nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.credits { margin-top: auto; padding: 14px; border-radius: var(--r-panel); background: var(--panel-2); border: 1px solid var(--line); display: grid; gap: 10px; }
.credits .lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.credits .bal { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.credits .bal small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.who { display: flex; align-items: center; gap: 10px; padding: 4px 6px; min-width: 0; }
.who .avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; flex: none; text-transform: uppercase; }
.who .email { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.who .tag { flex: none; }
.who button { flex: none; color: var(--muted); }
.who button:hover { color: var(--ink); }
.topbar { display: none; }
.view { padding: 28px clamp(16px, 3.5vw, 44px) 80px; max-width: 1280px; min-width: 0; outline: none; }
.vh { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.vh p { color: var(--muted); margin-top: 4px; }
.vh .actions { display: flex; gap: 8px; }
.sect { margin-top: 28px; }
.sect > h2 { margin-bottom: 12px; }
.sect > h2 + .muted { margin: -8px 0 12px; }

/* ---------- search ---------- */
.split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 20px; display: grid; gap: 0; }
.filters .card { overflow: hidden; }
.filters .group { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filters .group:last-of-type { border-bottom: 0; }
.filters .group > h3 { margin-bottom: 12px; font-size: 13px; color: var(--ink); }
.filters .field:last-child { margin-bottom: 0; }
.filters .foot { padding: 14px 18px; background: var(--panel-2); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.filters details.more { margin-top: 2px; }
.results { min-width: 0; display: grid; gap: 16px; }
.start { padding: 36px 28px; display: grid; gap: 18px; justify-items: start; }
.start h2 { font-size: 18px; }
.start p { color: var(--muted); max-width: 52ch; }
.examples { display: grid; gap: 8px; width: 100%; max-width: 520px; }
.examples button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: 500 14px var(--sans); text-align: left; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.examples button:hover { border-color: var(--accent); background: var(--accent-soft); }
.examples button .ic { color: var(--muted); }
.examples button span.muted { margin-left: auto; font-weight: 400; font-size: 13px; }
.count { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; }
.count .num { font-size: 48px; line-height: 1; letter-spacing: -0.035em; font-weight: 700; }
.count .num small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.count .sum { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.count .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.reveal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; padding: 22px 24px; align-items: end; }
.reveal .head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; padding: 0; border: 0; }
.reveal .qty { display: grid; gap: 10px; }
.reveal .qty .top { display: flex; align-items: center; gap: 12px; }
.reveal .qty .top .input { width: 96px; font-weight: 600; font-size: 16px; text-align: center; }
.reveal .qty .top .muted { font-size: 13px; }
.reveal .cost { display: grid; gap: 4px; text-align: right; font-size: 13px; color: var(--muted); }
.reveal .cost b { font-size: 15px; color: var(--ink); }
.reveal .go { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
input[type="range"].slider { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"].slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--pct, 0%), var(--line-2) var(--pct, 0%)); }
input[type="range"].slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(14, 18, 48, .25); }
input[type="range"].slider::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
input[type="range"].slider::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type="range"].slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(14, 18, 48, .25); }
input[type="range"].slider:focus-visible { outline: none; }
input[type="range"].slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-ring); }

/* ---------- lists ---------- */
.phases { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.phases li { display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); }
.phases li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.phases li.done { color: var(--ink-2); } .phases li.done::before { background: var(--ink); }
.phases li.now { color: var(--accent-hover); font-weight: 600; } .phases li.now::before { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.progress { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.progress .big { color: var(--accent); }
.donebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; }
.stats div { padding: 14px 18px; border-right: 1px solid var(--line); display: grid; gap: 2px; }
.stats div:last-child { border-right: 0; }
.stats span { font-size: 12px; color: var(--muted); }
.stats b { font-size: 20px; letter-spacing: -0.02em; }
.stats b.pos { color: var(--ok); }
.stats b.accent { color: var(--accent); }
.stats b.warn { color: var(--warn); }

/* ---------- credits ---------- */
.balance { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; }
.balance .num { font-size: 44px; line-height: 1; letter-spacing: -0.035em; font-weight: 700; }
.balance .num small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pack { position: relative; display: grid; gap: 4px; padding: 18px 18px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-1); }
.pack.pop { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-1); }
.pack .pop-tag { position: absolute; top: -10px; left: 16px; background: var(--accent); color: #fff; }
.pack .credits-n { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-top: 4px; }
.pack .credits-n small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.pack .per { font-size: 13px; color: var(--muted); }
.pack .total { font-size: 18px; font-weight: 600; margin: 8px 0 12px; }

/* ---------- chat ---------- */
.chat { display: grid; grid-template-rows: minmax(0, 1fr) auto; max-width: 820px; height: calc(100vh - 170px); min-height: 420px; }
.chatlog { overflow-y: auto; padding: 20px; display: grid; gap: 14px; align-content: start; }
.bubble { max-width: 78%; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.bubble.bot { background: var(--wash); color: var(--ink); border-bottom-left-radius: 4px; justify-self: start; }
.bubble.me { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.bubble.wait { color: var(--muted); }
.bubble .chiprow { margin: 10px 0; }
.bubble .row { margin-top: 12px; }
.chatin { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--panel-2); border-radius: 0 0 var(--r-panel) var(--r-panel); }
.chatin .input { flex: 1; height: 40px; }
.chatin .btn { height: 40px; }

/* ---------- account / CRM ---------- */
.settings { display: grid; gap: 16px; max-width: 760px; }
.settings .card.pad { display: grid; gap: 14px; }
.settings .card.pad > h2 { margin-bottom: 0; }
.settings .card.pad > .muted { margin-top: -8px; }
.settings form.form { display: grid; gap: 0; max-width: 460px; }
.settings form.form .btn { justify-self: start; }
.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.conn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13.5px; }
.form.inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form.inline .field { margin: 0; }
.form.inline .input { width: 200px; }
ul.pushes { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
ul.pushes li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
ul.pushes li:first-child { border-top: 0; }
details.danger { border-top: 1px solid var(--line); padding-top: 16px; }
details.danger summary { cursor: pointer; color: var(--bad); font-weight: 500; font-size: 13.5px; list-style: none; }
details.danger summary::-webkit-details-marker { display: none; }
details.danger[open] summary { margin-bottom: 12px; }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 9px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; font-size: 13.5px; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.tiles div { background: var(--panel); padding: 14px 16px; display: grid; gap: 4px; }
.tiles span { font-size: 12px; color: var(--muted); }
.tiles b { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { width: auto; min-width: 220px; }
.setup { display: grid; gap: 0; }
.setupitem { padding: 14px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.setupitem:last-child { border-bottom: 0; }
.setupitem .row b { font-weight: 600; }
.setupitem pre { margin: 6px 0 0; padding: 10px 12px; background: var(--wash); border-radius: var(--r-ctl); font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .split { grid-template-columns: 280px minmax(0, 1fr); }
  .steps, .lead-sample { grid-template-columns: repeat(2, 1fr); }
  .lead-sample div:nth-child(4n) { border-right: 1px solid var(--line); }
  .lead-sample div:nth-child(2n) { border-right: 0; }
  .lead-sample div:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .lead-sample div:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 30; transform: translateX(-100%); transition: transform .22s var(--ease); box-shadow: none; }
  .side.open { transform: none; box-shadow: var(--shadow-2); }
  .scrim { position: fixed; inset: 0; background: rgba(14, 18, 48, .35); z-index: 25; }
  .topbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .topbar .brand b { font-size: 14px; } .topbar .brand small { display: none; }
  .topbar .bal { margin-left: auto; font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
  .topbar .bal .ic { color: var(--accent); }
  .view { padding: 18px 16px 72px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; }
  .phases { grid-template-columns: repeat(3, 1fr); }
  .packs { grid-template-columns: 1fr; }
  .reveal { grid-template-columns: 1fr; }
  .reveal .cost { text-align: left; }
  .chat { height: auto; min-height: 60vh; }
  .bubble { max-width: 92%; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  header.site nav a:not(.btn):not(.hide-sm) { display: none; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps, .lead-sample { grid-template-columns: 1fr; }
  .lead-sample div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .lead-sample div:last-child { border-bottom: 0 !important; }
  .proof { gap: 18px; }
  .count .num { font-size: 38px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { border-bottom: 1px solid var(--line); }
  .stats div:nth-child(2n) { border-right: 0; }
  .demo .count b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* late additions */
.main { min-width: 0; }
.mt { margin-top: 18px; }
