:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --ink: #16151a;
  --muted: #5e5c66;
  --line: #e6e2da;
  --brand: #4b3fd8;
  --brand-ink: #ffffff;
  --brand-soft: #ecebfd;
  --star: #f2a900;
  --good: #1f8a4c;
  --bad: #c9362b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 18, 30, .04), 0 8px 24px rgba(20, 18, 30, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111116;
    --surface: #1a1a21;
    --surface-2: #22222b;
    --ink: #f1f0f4;
    --muted: #a6a4b0;
    --line: #2e2e38;
    --brand: #8f86ff;
    --brand-ink: #111116;
    --brand-soft: #25234a;
    --star: #ffc233;
    --good: #4cc47f;
    --bad: #ff6b5e;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
@media (max-width: 720px) { .nav a:not(.lang):not(.btn) { display: none; } .nav { gap: 10px; } }

.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand); color: var(--brand-ink) !important; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink) !important; background: var(--surface); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* hero */
.hero { padding: 88px 0 64px; }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 6px 12px; margin: 0 0 20px; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 800; }
h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

section { padding: 72px 0; }
section.alt { background: var(--surface-2); }
.section-lead { color: var(--muted); max-width: 680px; margin: 0 0 40px; font-size: 18px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

.status { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-bottom: 12px; }
.status.live { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.status.soon { background: var(--brand-soft); color: var(--brand); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { padding-left: 34px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--good) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.checklist b { display: block; }
.checklist span { color: var(--muted); font-size: 15.5px; }

.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.cta { text-align: center; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }

/* product mock in hero */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.review { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg); }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.review-head b { font-size: 15px; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 14px; white-space: nowrap; }
.stars .off { color: var(--line); }
.review p { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.tag.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.tag.wait { background: var(--brand-soft); color: var(--brand); }
.src { font-size: 12px; color: var(--muted); }

/* legal pages */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 24px; margin-top: 44px; }
.legal h3 { font-size: 18px; margin-top: 28px; }
.legal p, .legal li { color: var(--ink); }
.legal .meta { color: var(--muted); margin-bottom: 32px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; }
.legal th { color: var(--muted); font-weight: 600; }
.legal .box { background: var(--brand-soft); border-radius: 12px; padding: 18px 20px; margin: 20px 0; }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 22px; }
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; }
.table-scroll { overflow-x: auto; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--muted); font-size: 14.5px; }
footer .cols { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
footer h4 { color: var(--ink); margin: 0 0 10px; font-size: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .legalline { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr; } }

/* demo app */
.demo-shell { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 64px); }
.demo-side { border-right: 1px solid var(--line); background: var(--surface); padding: 18px; }
.demo-main { padding: 26px; }
.demo-banner { background: var(--brand-soft); color: var(--ink); padding: 10px 20px; font-size: 14px; text-align: center; }
.loc { display: block; width: 100%; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer; font: inherit; margin-bottom: 6px; }
.loc:hover { background: var(--surface-2); }
.loc.active { border-color: var(--brand); background: var(--brand-soft); }
.loc b { display: block; font-size: 15px; }
.loc small { color: var(--muted); font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpi small { color: var(--muted); display: block; font-size: 13px; }
.kpi b { font-size: 24px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: none; border: none; font: inherit; font-weight: 600; color: var(--muted); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--brand); }
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.reply-box { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.reply-box textarea { width: 100%; min-height: 84px; font: inherit; font-size: 14.5px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); resize: vertical; }
.tpls { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tpls button { font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.company-reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 10px 10px 0; font-size: 14px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table td:first-child { color: var(--muted); width: 34%; }
.data-table input { width: 100%; font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.pending { display: block; font-size: 13px; color: var(--brand); margin-top: 4px; }
.log { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.log li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.log time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .demo-shell { grid-template-columns: 1fr; }
  .demo-side { border-right: none; border-bottom: 1px solid var(--line); }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
