:root {
  --bg: #ffffff; --bg2: #f4f4f6; --ink: #0a0a0b; --muted: #5d5d66; --line: #e3e3e8;
  --brand: #0a0a0b; --brand-d: #2a2a2f; --accent: #0a0a0b; --danger: #b42318; --warn: #8a5a00;
  --radius: 12px; --shadow: 0 10px 30px rgba(0,0,0,.08);
  --font: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; border: 1px solid var(--brand); background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--bg2); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; }
input:focus, select:focus, textarea:focus, [contenteditable]:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 4px; }
.msg { padding: 10px 12px; border-radius: 8px; font-size: 14px; margin: 10px 0; }
.msg.err { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.msg.ok { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.msg.info { background: var(--bg2); color: var(--muted); }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* marketing */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--brand); }
.nav .links { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.nav .links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav .links a:not(.btn):hover { color: var(--ink); }
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: -.03em; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.hero .cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.mock { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.mock .bar { background: var(--bg2); padding: 8px 12px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.mock .tabs { display: flex; gap: 6px; padding: 10px 12px 0; flex-wrap: wrap; }
.mock .tab { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg2); color: var(--muted); }
.mock .tab.on { background: var(--brand); color: #fff; }
.mock ul { list-style: none; margin: 0; padding: 10px 12px 14px; }
.mock li { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; font-size: 14px; display: flex; justify-content: space-between; }
.mock li b { color: var(--brand); font-weight: 600; font-size: 12px; }
section { padding: 64px 0; }
section.alt { background: var(--bg2); }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 640px; margin: 0 auto 36px; font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps .card::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.price { max-width: 460px; margin: 0 auto; text-align: center; }
.price .amt { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.price ul { text-align: left; list-style: none; padding: 0; margin: 18px 0 22px; }
.price li { padding: 6px 0 6px 26px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 760px; margin: 0 auto; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; }
footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 800px) { .hero .grid { grid-template-columns: 1fr; } .nav .links a:not(.btn) { display: none; } }

/* auth pages */
.authbox { max-width: 420px; margin: 48px auto; padding: 28px; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.authbox h1 { font-size: 24px; }
.authbox .btn { width: 100%; margin-top: 18px; }
.legal { max-width: 760px; margin: 40px auto; padding: 0 20px; }
.legal h2 { margin-top: 1.6em; font-size: 20px; }
