:root {
  --ink: #111; --paper: #fbf8ef; --yellow: #ffd23f; --red: #d7263d; --green: #1b8a5a; --amber: #c77d00;
  --muted: #5b5b5b; --line: #e3dcc8; --radius: 14px;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; font-size: 17px; }
a { color: inherit; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
header.top { border-bottom: 3px solid var(--ink); background: var(--yellow); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 900; font-size: 24px; letter-spacing: -0.5px; text-decoration: none; }
.logo span { background: var(--ink); color: var(--yellow); padding: 0 6px; margin-left: 2px; transform: rotate(-2deg); display: inline-block; }
.top nav a { margin-left: 18px; font-weight: 600; text-decoration: none; font-size: 15px; }
.hero { padding: 56px 0 36px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -1.5px; font-weight: 900; }
.hero h1 em { font-style: normal; background: var(--yellow); padding: 0 6px; box-shadow: 4px 4px 0 var(--ink); }
.hero p.lead { font-size: 20px; max-width: 640px; color: #222; }
.stamp { display: inline-block; border: 3px solid var(--red); color: var(--red); font-weight: 900; text-transform: uppercase; letter-spacing: 2px;
  padding: 4px 12px; transform: rotate(-4deg); border-radius: 6px; font-size: 14px; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 28px 0; }
.stat { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px; box-shadow: 4px 4px 0 var(--ink); }
.stat b { font-size: 34px; display: block; font-weight: 900; }
.stat small { color: var(--muted); font-size: 13px; }
.card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: 6px 6px 0 var(--ink); margin: 28px 0; }
h2 { font-size: 28px; letter-spacing: -0.5px; margin: 0 0 12px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps div { border-left: 4px solid var(--yellow); padding-left: 12px; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type=file], textarea, select, input[type=password], input[type=text] { width: 100%; font: inherit; padding: 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
textarea { min-height: 110px; }
.checks label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.checks input { margin-top: 5px; transform: scale(1.2); }
button, .btn { font: inherit; font-weight: 800; background: var(--ink); color: var(--yellow); border: 2px solid var(--ink); border-radius: 12px;
  padding: 14px 22px; cursor: pointer; box-shadow: 4px 4px 0 var(--yellow); text-decoration: none; display: inline-block; }
button.alt { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
button:disabled { opacity: .5; cursor: wait; }
.muted { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 999px; color: #fff; font-size: 14px; }
.badge.strong { background: var(--green); } .badge.possible { background: var(--amber); } .badge.weak, .badge.out_of_scope { background: var(--red); }
.grounds li { margin-bottom: 10px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.tier { border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; }
.tier.best { background: #fffbe6; }
.tier .price { font-size: 32px; font-weight: 900; }
.letter { white-space: pre-wrap; font-family: Georgia, serif; background: #fffdf6; border: 1px dashed var(--ink); padding: 20px; border-radius: 10px; }
.error { color: var(--red); font-weight: 600; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--yellow); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
footer { border-top: 3px solid var(--ink); margin-top: 60px; padding: 28px 0 40px; font-size: 14px; color: #333; }
.counter { background: var(--ink); color: var(--yellow); padding: 12px 16px; border-radius: 10px; font-weight: 700; display: inline-block; margin-bottom: 14px; }
table.log { width: 100%; border-collapse: collapse; font-size: 13px; }
table.log td, table.log th { border-bottom: 1px solid var(--line); padding: 6px; text-align: left; vertical-align: top; }
.faq dt { font-weight: 700; margin-top: 14px; }
.faq dd { margin: 4px 0 0; }
article.guide { max-width: 760px; }
article.guide h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -1px; margin: 36px 0 12px; font-weight: 900; }
article.guide h2 { font-size: 23px; margin-top: 32px; }
article.guide .facts { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 20px; box-shadow: 4px 4px 0 var(--ink); }
article.guide .facts dt { font-weight: 800; } article.guide .facts dd { margin: 0 0 8px; }
article.guide .cta { background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; }
article.guide .sources { font-size: 14px; color: var(--muted); }
.guide-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.guide-list a span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
