:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --ink: #15171c;
  --muted: #5d6270;
  --line: #e4e4de;
  --accent: #2346d6;
  --accent-ink: #ffffff;
  --accent-soft: #e9edff;
  --good: #1d7a4c;
  --warn: #9a5b00;
  --bad: #b42318;
  --radius: 12px;
  --max: 1120px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(247,247,244,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 20px; margin-left: 8px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: #c9c9c1; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #1b39b5; border-color: #1b39b5; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-danger { color: var(--bad); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: 14px; }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* product illustration */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px -24px rgba(21,23,28,.25); overflow: hidden; font-size: 13px; }
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: center; color: var(--muted); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dcdcd5; display: inline-block; }
.mock-bar span { margin-left: 10px; }
.mock-body { padding: 16px; }
.mock-row { display: grid; grid-template-columns: 1.6fr .8fr .8fr .7fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mock-row:last-child { border-bottom: 0; }
.mock-row.head { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-on { background: #e3f4ea; color: var(--good); }
.pill-off { background: #f1f1ec; color: var(--muted); }
.mock-caption { font-size: 12px; color: var(--muted); padding: 0 16px 14px; }

/* sections */
section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section-alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.icon { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 20px; height: 20px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding-top: 44px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.step p { color: var(--muted); margin: 0; }
table.scopes { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.scopes th, table.scopes td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.scopes th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
table.scopes tr:last-child td { border-bottom: 0; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details p { color: var(--muted); margin: 10px 0 0; }
.cta-band { background: var(--ink); color: #fff; border-radius: 18px; padding: 44px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band p { color: #c9ccd6; margin: 0; }

/* prose (legal/about) */
.page-head { padding: 56px 0 8px; }
.page-head p { color: var(--muted); font-size: 17px; max-width: 40em; }
.prose { max-width: 760px; padding-bottom: 72px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: #343843; }
.prose ul { padding-left: 22px; }
.prose .meta { color: var(--muted); font-size: 14px; }

/* pricing */
.price-card { max-width: 460px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0; }
.price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; }
.checks li { padding: 6px 0 6px 28px; position: relative; color: #343843; }
.checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 10px; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg) scale(.8); }

/* forms */
.auth { min-height: calc(100vh - 64px - 160px); display: grid; place-items: center; padding: 48px 20px; }
.auth .card { width: 100%; max-width: 420px; padding: 32px; }
.auth h1 { font-size: 28px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-error { color: var(--bad); font-size: 14px; min-height: 20px; margin: 10px 0 0; }
.auth .btn-primary { width: 100%; margin-top: 18px; padding: 12px; }
.auth .switch { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--muted); background: var(--bg); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.disclaimer { flex-basis: 100%; font-size: 13px; }

/* app */
.app-shell { padding: 32px 0 72px; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.app-top h1 { font-size: 28px; margin: 0; }
.notice { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.notice.info { border-color: #c8d2ff; background: var(--accent-soft); }
.notice.error { border-color: #f3c3bd; background: #fdf0ee; color: var(--bad); }
.notice.ok { border-color: #bfe3cf; background: #ecf8f1; color: var(--good); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { font-size: 19px; margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
table.data td.num, table.data th.num { text-align: right; }
.form-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.form-row label { margin-top: 0; }
.empty { color: var(--muted); padding: 18px 0; }
.muted { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.kpi span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi strong { font-size: 22px; letter-spacing: -.02em; }

@media (max-width: 860px) {
  .hero .wrap, .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
  .form-row, .kpis { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 28px; }
}
@media (max-width: 520px) {
  .form-row, .kpis { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
}
.btn-disabled, .btn[aria-disabled] { opacity: .55; pointer-events: none; }
.pill-warn { background: #fdf2dc; color: var(--warn); }
.pill-bad { background: #fdecea; color: var(--bad); }
