@font-face { font-family: AH; src: url('fonts/AtkinsonHyperlegible-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: AH; src: url('fonts/AtkinsonHyperlegible-Bold.ttf'); font-weight: 700; font-display: swap; }
:root {
  --bg: #f7f6f2; --card: #ffffff; --ink: #1d1d1b; --muted: #5d5b55; --line: #dcd9d0;
  --accent: #1f4e79; --accent-ink: #ffffff; --soft: #e9eef4; --warn: #8a5a00; --err: #a1261d;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161616; --card: #202020; --ink: #ecebe6; --muted: #a9a6a0; --line: #3a3936; --accent: #8db8e3; --accent-ink: #10202f; --soft: #23303c; --warn: #e2b250; --err: #ff8a80; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: AH, system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.55; }
a { color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1040px; margin: 0 auto; padding: 18px 16px; }
.brand { font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.mark { width: 22px; height: 22px; background:
  linear-gradient(var(--ink), var(--ink)) 0 0 / 10px 10px no-repeat,
  linear-gradient(var(--ink), var(--ink)) 12px 12px / 10px 10px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 12px 0 / 10px 10px no-repeat; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
main { max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; margin: 18px 0 12px; max-width: 18ch; }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; margin: 0 0 28px; }
.tool, .pro, .faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 0 0 28px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-weight: 700; margin-bottom: 8px; }
.types { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.pill:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 18px; margin-bottom: 16px; }
.grid2 label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.grid2 label[hidden] { display: none; }
input[type=text], input[type=number], select { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.checks label { display: flex; gap: 8px; align-items: center; }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
button, .button { font: inherit; font-weight: 700; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 11px 22px; cursor: pointer; text-decoration: none; display: inline-block; }
button:disabled { opacity: 0.6; cursor: wait; }
.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
progress { width: 220px; height: 10px; }
.note { color: var(--muted); font-size: 15px; }
.error { color: var(--err); font-weight: 700; }
.summary { font-weight: 700; }
.warnings { color: var(--warn); padding-left: 20px; }
.downloads { display: flex; gap: 12px; flex-wrap: wrap; }
#preview { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px 28px; margin: 0 0 32px; }
.features h3 { margin: 0 0 6px; font-size: 18px; }
.features p { margin: 0; color: var(--muted); }
.pro table { border-collapse: collapse; width: 100%; margin: 6px 0 16px; }
.pro th, .pro td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pro th { font-size: 15px; color: var(--muted); }
.keyform { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.keyform label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; min-width: 260px; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--muted); margin: 8px 0 0; }
.article { max-width: 72ch; }
.article h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; margin: 18px 0 14px; }
.article h2 { margin-top: 30px; }
.cta { margin: 22px 0; }
footer { max-width: 1040px; margin: 0 auto; padding: 0 16px 32px; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .tool, .pro, .faq { padding: 16px; } #preview { height: 420px; } .pro th, .pro td { padding: 7px 4px; font-size: 15px; } }
