:root {
  --ink: #16202b; --ink-2: #4a5765; --line: #e3e7ec; --bg: #f7f8fa; --card: #fff;
  --accent: #0f6b4f; --accent-ink: #fff; --accent-soft: #e7f3ee;
  --err: #b42318; --err-soft: #fdeceb; --warn: #9a5b00; --warn-soft: #fdf3e1; --info: #33557a; --info-soft: #eaf0f7;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 20px; }

.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #7f54b3 0 50%, #5e8e3e 50% 100%); }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); }

main { padding-bottom: 48px; }
.hero { padding: 44px 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .6em; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 44em; }
.muted, .note, .fine { color: var(--ink-2); }
.fine, .note { font-size: .88rem; }
.block { margin: 36px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 28px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two > .card { margin: 0; }
@media (max-width: 680px) { .two { grid-template-columns: 1fr; } }

.btn { display: inline-block; font: inherit; font-weight: 600; padding: 11px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: #c5ccd4; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #0b5a42; }
.btn.danger { color: var(--err); border-color: #f0c3bf; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { margin-top: 14px; }

.upload { border-color: #cfe3da; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.file { display: block; border: 1px dashed #c5ccd4; border-radius: 8px; padding: 14px; margin: 0 0 14px; background: #fbfcfd; }
.file-label { display: block; font-weight: 600; }
.file-hint { display: block; font-size: .88rem; color: var(--ink-2); margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--ink-2); }
.file input { max-width: 100%; font: inherit; font-size: .92rem; }
.status { min-height: 1.4em; margin: 10px 0 4px; font-weight: 500; }
.status.err { color: var(--err); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; }
.steps span { color: var(--ink-2); }
.ticks, .plain { padding: 0; margin: 0 0 12px; list-style: none; }
.ticks li, .plain li { position: relative; padding-left: 26px; margin: 0 0 8px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plain li::before { content: ""; position: absolute; left: 7px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: #9aa5b1; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 12px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.tier-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tier-name { font-weight: 600; }
.tier-price { font-size: 1.6rem; font-weight: 700; }
.tier-limit { color: var(--ink-2); font-size: .9rem; }

.totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 0; }
.totals div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.totals dt { font-size: .82rem; color: var(--ink-2); }
.totals dd { margin: 0; font-size: 1.45rem; font-weight: 700; }
@media (max-width: 560px) { .totals { grid-template-columns: repeat(2, 1fr); } }

.sev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.sev-card { border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.sev-n { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.sev-label { font-weight: 600; }
.sev-hint { font-size: .85rem; opacity: .85; }
.sev-error { background: var(--err-soft); color: var(--err); }
.sev-warning { background: var(--warn-soft); color: var(--warn); }
.sev-info { background: var(--info-soft); color: var(--info); }
@media (max-width: 560px) { .sev { grid-template-columns: 1fr; } .sev-card { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 10px; } .sev-hint { flex-basis: 100%; } }

.issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.issue { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.issue.sev-error { border-left-color: var(--err); color: inherit; background: var(--card); }
.issue.sev-warning { border-left-color: #e0a030; color: inherit; background: var(--card); }
.issue.sev-info { border-left-color: #7a9cc2; color: inherit; background: var(--card); }
.issue-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.issue-head h3 { margin: 0; flex: 1 1 200px; }
.badge { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 99px; }
.sev-error .badge { background: var(--err-soft); color: var(--err); }
.sev-warning .badge { background: var(--warn-soft); color: var(--warn); }
.sev-info .badge { background: var(--info-soft); color: var(--info); }
.count { font-weight: 700; color: var(--ink-2); }
.issue p { margin: 0 0 6px; color: var(--ink-2); }
.issue .fix { color: var(--ink); }
details summary { cursor: pointer; color: var(--accent); font-size: .92rem; }
.where { margin: 8px 0 0; padding-left: 18px; font-size: .9rem; color: var(--ink-2); overflow-wrap: anywhere; }
.where .more { list-style: none; margin-left: -18px; font-style: italic; }

.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f1f3f6; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.grid td { white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.anchors td:last-child { white-space: nowrap; }
.wm { position: relative; overflow: hidden; border-radius: var(--radius); }
.wm::after { content: attr(data-wm); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; font-size: clamp(1.4rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: .06em; color: rgba(180, 35, 24, .13); transform: rotate(-14deg); white-space: nowrap; }

.offer { border-color: var(--accent); }
.price { font-size: 2.4rem; font-weight: 800; margin: 0 0 4px; }
.price span { font-size: 1rem; font-weight: 500; color: var(--ink-2); margin-left: 8px; }
.warn { background: var(--warn-soft); color: #6b4000; padding: 10px 12px; border-radius: 8px; font-size: .92rem; }
.inline-form { margin: 18px 0 6px; }
.inline-form label, #wrong-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row input { flex: 1 1 220px; min-width: 0; }
input[type=email], input[type=text], textarea { font: inherit; padding: 10px 12px; border: 1px solid #c5ccd4; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.row input[type=email], .row input[type=text] { width: auto; }
textarea { resize: vertical; margin-bottom: 10px; }
.share-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; }

.top { margin: 0; }
ol.top { list-style: none; padding: 0; margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
ol.top li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
ol.top li:last-child { border-bottom: 0; }
.cta { text-align: left; background: var(--accent-soft); border-color: #cfe3da; }
.empty { color: var(--ink-2); font-style: italic; }
.prose h2 { margin-top: 1.4em; }

.foot { border-top: 1px solid var(--line); background: var(--card); font-size: .9rem; color: var(--ink-2); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.foot p { margin: 0; }
@media (max-width: 430px) {
  .wrap { padding: 0 16px; }
  .top-in { padding-top: 10px; padding-bottom: 10px; row-gap: 4px; }
  .nav { gap: 16px; font-size: .9rem; }
}
.paid { margin-top: 18px; }
.downloads { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.buy { font-size: 1.05rem; }

.eyebrow a { color: inherit; text-decoration: none; }
.actions .btn { margin: 0 8px 8px 0; }
.errlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.errlist li { margin: 0; }
.errlist h2 { font-size: 1.05rem; margin: 0 0 6px; }
.errlist p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.prose .steps { margin-top: 8px; }
