:root {
  --ink: #16213a; --muted: #5b6478; --line: #e3e7ef; --bg: #ffffff; --alt: #f6f8fc;
  --accent: #1d5bd8; --accent-d: #1447b0; --accent-soft: #e8f0ff;
  --ok: #2e8b57; --warn: #d49a00; --high: #e0631d; --bad: #c62828;
  --radius: 14px; --shadow: 0 10px 30px rgba(22, 33, 58, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 4.2vw, 46px); margin: .2em 0 .4em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 1.6em 0 .6em; }
h3 { font-size: 18px; margin: .2em 0 .4em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.opt { color: var(--muted); font-weight: 400; font-size: 13px; }
.err { color: var(--bad); }
.w100 { width: 100%; }

/* nav */
.nav { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.logo { font-weight: 800; color: var(--ink); font-size: 18px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 16px; }
.nav nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav nav a:not(.btn) { color: var(--ink); }
@media (max-width: 640px) { .nav nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; transition: .15s; }
.btn:hover { background: var(--accent-d); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.btn-ghost { background: #fff; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; font-size: 14px; }

/* hero */
.hero { padding: 64px 0 56px; background: radial-gradient(1200px 400px at 80% -10%, #e5eeff 0, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.hl { color: var(--accent); }
.lead { font-size: 19px; color: #33405c; max-width: 600px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 26px 0 18px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.hero-card { position: relative; }
.doc-mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; transform: rotate(1.2deg); }
.dm-head { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dm-dot { width: 8px; height: 8px; background: var(--ok); border-radius: 50%; }
.dm-title { font-weight: 800; font-size: 20px; margin: 8px 0 14px; }
.dm-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.arrow { color: var(--muted); }
.dm-langs { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }
.dm-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12.5px; }
.dm-files span { background: var(--alt); border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px; }

/* risk badges */
.r { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.r-low { background: var(--ok); } .r-medium { background: var(--warn); } .r-high { background: var(--high); } .r-serious { background: var(--bad); } .r-locked { background: #aab2c2; }

/* sections */
.section { padding: 56px 0; }
.alt { background: var(--alt); }
.band { background: var(--ink); color: #fff; padding: 34px 0; }
.problem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.problem p { color: #c9d1e3; margin: 6px 0 0; font-size: 15px; }
.stat { font-size: 22px; font-weight: 800; }
@media (max-width: 760px) { .problem { grid-template-columns: 1fr; } }
.steps, .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps, .features { grid-template-columns: 1fr; } }
.step, .feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feat p, .step p { color: var(--muted); margin: 0; font-size: 15px; }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 8px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.plan-pop { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.pop-badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.price span { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 10px 0 20px; flex: 1; font-size: 14.5px; }
.ticks li { padding: 4px 0 4px 24px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* faq */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

/* forms */
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; margin: 0 0 20px; background: #fff; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; }
.form label { display: block; font-weight: 600; font-size: 14.5px; margin: 12px 0 0; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfd6e3; border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.lbl { font-weight: 600; font-size: 14.5px; margin: 16px 0 8px; }
.radios, .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.form label.chip, label.chip { display: inline-flex; align-items: center; gap: 7px; margin: 0; border: 1px solid #cfd6e3; border-radius: 99px; padding: 7px 13px; font-weight: 500; font-size: 14px; cursor: pointer; background: #fff; user-select: none; }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-d); }
.form label.chip { max-width: 100%; }
.chip input { accent-color: var(--accent); margin: 0; }
.form-err, .note { background: #fdecec; color: var(--bad); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.note { background: var(--accent-soft); color: var(--accent-d); }
.mypacks { background: var(--alt); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
#rpBox { margin-top: 10px; }

/* pack */
.spinner { width: 44px; height: 44px; border: 4px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 20px auto; }
.spinner.sm { width: 22px; height: 22px; border-width: 3px; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.pack-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pack-head h1 { margin-bottom: .1em; }
.redflags { background: #fff6e6; border: 1px solid #f2d39a; border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.redflags h3 { color: #8a5a00; }
.redflags ul { margin: 0; padding-left: 20px; }
.unlock { background: var(--alt); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 24px 0; }
.unlock h2 { margin-top: 0; }
.codebox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.codebox input { padding: 8px 12px; border: 1px solid #cfd6e3; border-radius: 8px; font: inherit; min-width: 240px; flex: 1; max-width: 340px; }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
@media (max-width: 860px) { .downloads { grid-template-columns: 1fr; } }
.dl { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.dl:hover { border-color: var(--accent); text-decoration: none; }
.dl > span { font-size: 28px; }
.dl small { display: block; color: var(--muted); }
.cols { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } }
aside { background: var(--alt); border-radius: var(--radius); padding: 18px; align-self: start; margin-top: 30px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.checklist li::before { content: '○'; position: absolute; left: 4px; color: var(--muted); }
.checklist li.done::before { content: '✓'; color: var(--ok); font-weight: 800; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.haz { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.haz th { text-align: left; background: var(--alt); padding: 10px; font-size: 13px; }
.haz td { padding: 10px; border-top: 1px solid var(--line); vertical-align: top; }
.haz ul { margin: 0; padding-left: 18px; }
.blur { filter: blur(4px); user-select: none; }
.legis { display: grid; gap: 10px; }
.leg { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tag { font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.tag-yes { background: #e2f3ea; color: var(--ok); } .tag-likely { background: #fff1d6; color: #8a5a00; } .tag-check { background: #eef0f5; color: var(--muted); }
.warnlist li { margin: 6px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 14px; }
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.copyblock { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.cb-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--alt); font-weight: 600; font-size: 14px; }
.copyblock pre { margin: 0; padding: 14px; white-space: pre-wrap; font-family: inherit; font-size: 14px; }
.small3 .feat p { font-size: 14px; }
.disclaimer { margin-top: 36px; }

/* success */
.big-check { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; background: #e2f3ea; color: var(--ok); font-size: 38px; display: grid; place-items: center; font-weight: 800; }
.wallet { margin-top: 28px; background: var(--alt); border-radius: var(--radius); padding: 20px; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 24px; font-weight: 700; letter-spacing: .05em; margin: 10px 0; }

/* guides */
.guide-list { display: grid; gap: 14px; margin-top: 20px; }
.guide-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--ink); }
.guide-card:hover { border-color: var(--accent); text-decoration: none; }
.guide-card p { margin: 4px 0 0; font-size: 15px; }
.prose { font-size: 17px; }
.prose p, .prose li { color: #2b3651; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 14px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px; text-align: left; }
.cta-box { background: var(--accent-soft); border-radius: var(--radius); padding: 22px; margin: 32px 0; }

/* admin */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.kpis div { background: var(--alt); border-radius: 12px; padding: 14px; }
.kpis b { display: block; font-size: 24px; }
.kpis span { color: var(--muted); font-size: 13px; }
.inline-form { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.inline-form input { padding: 8px; border: 1px solid #cfd6e3; border-radius: 8px; font: inherit; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0; margin-top: 20px; font-size: 14px; }
.foot-inner { display: grid; gap: 10px; }

/* feedback + offer banner */
.feedback { background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 32px; display: grid; gap: 10px; }
.feedback h3 { margin: 0; }
.feedback textarea, .feedback input[name=name] { font: inherit; padding: 10px 12px; border: 1px solid #cfd6e3; border-radius: 10px; width: 100%; }
.stars { display: flex; flex-wrap: wrap; gap: 6px; }
.stars .chip { color: #d49a00; }
.offer { background: #e2f3ea; color: #1d6b42; border-bottom: 1px solid #bfe3cf; text-align: center; padding: 10px 16px; font-size: 15px; }
.guide-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.guide-chips a { border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; background: #fff; color: var(--ink); font-weight: 500; }
.guide-chips a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
