/* Public website – accessible by design: high contrast, visible focus, no motion without consent */
:root {
  --ink: #0f172a; --muted: #475569; --line: #cbd5e1; --bg: #ffffff; --soft: #f1f5f9;
  --brand: #1e3a8a; --brand-2: #1d4ed8; --ok: #166534; --warn: #92400e; --bad: #991b1b; --focus: #f59e0b;
  --radius: 10px; --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
       font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-2); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10;
        border-radius: 0 0 6px 6px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
                   clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--brand); text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--ink); font-weight: 600; }
.site-header nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .25rem 0; }
.site-header nav a:hover { text-decoration: underline; }

/* hero */
.hero { background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); padding: 3rem 0 2.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
.kicker { display: inline-block; font-size: .875rem; font-weight: 600; color: var(--brand); background: #dbeafe;
          padding: .25rem .65rem; border-radius: 999px; margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.25; margin: 0 0 1.25rem; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.lead { font-size: 1.2rem; color: #1e293b; margin: 0 0 1.5rem; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.trust li { padding-left: 1.75rem; position: relative; }
.trust li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }

/* form card */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.card h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
.hint { display: block; color: var(--muted); font-size: .9rem; margin-top: .25rem; }
input[type=text], input[type=url], input[type=email], input[type=number], input[type=password], select, textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .65rem .75rem; border: 2px solid #64748b; border-radius: 8px; background: #fff; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--brand-2); }
input[aria-invalid=true] { border-color: var(--bad); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .95rem; margin: .25rem 0 1rem; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--brand-2); }
.error { color: var(--bad); font-weight: 600; font-size: .95rem; margin-top: .3rem; }
.error-summary { border: 2px solid var(--bad); border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; background: #fef2f2; }
.error-summary h3 { color: var(--bad); margin: 0 0 .3rem; font-size: 1rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.btn { display: inline-block; font: inherit; font-weight: 700; color: #fff; background: var(--brand-2); border: 2px solid var(--brand-2);
       border-radius: 8px; padding: .75rem 1.25rem; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.full { width: 100%; }
.btn.light { background: #fff; color: var(--brand-2); }
.btn.light:hover { background: #eff6ff; color: var(--brand); }
.btn.small { padding: .35rem .7rem; font-size: .9rem; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.note { font-size: .875rem; color: var(--muted); margin: .75rem 0 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* sections */
section.block { padding: 3rem 0; }
section.block.alt { background: var(--soft); }
.grid { display: grid; gap: 1.25rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.tile p { margin: 0; color: #1e293b; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%;
                    background: var(--brand-2); color: #fff; display: grid; place-items: center; font-weight: 800; }
ul.bullets { padding-left: 1.2rem; margin: 0; }
ul.bullets li { margin-bottom: .6rem; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2.25rem; font-weight: 800; margin: .25rem 0 0; color: var(--ink); }
.plan .price-note { color: var(--muted); margin: 0 0 1rem; }
.plan ul { padding-left: 1.2rem; margin: 0 0 1.25rem; flex: 1; }
.plan .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
details { border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; background: #fff; margin-bottom: .6rem; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .6rem 0 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-footer a { color: #334155; }

/* scan page + simple pages */
.page { padding: 3rem 0 4rem; }
.page .wrap { max-width: 760px; }
.status-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: #fff; }
.spinner { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 4px solid #bfdbfe; border-top-color: var(--brand-2);
           animation: spin 1s linear infinite; margin-bottom: 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { max-width: 70ch; }

/* admin */
.admin { font-size: .95rem; }
.admin .wrap { max-width: 1280px; }
.admin table { border-collapse: collapse; width: 100%; background: #fff; }
.admin th, .admin td { border-bottom: 1px solid var(--line); padding: .45rem .5rem; text-align: left; vertical-align: top; }
.admin th { background: var(--soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.admin .stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.admin .stat { border: 1px solid var(--line); border-radius: 8px; padding: .75rem; background: #fff; }
.admin .stat b { display: block; font-size: 1.6rem; }
.admin .row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.admin .row .field { margin: 0; min-width: 220px; }
.admin form.inline { display: inline; }
.flash { padding: .75rem 1rem; border-radius: 8px; background: #ecfdf5; border: 1px solid #86efac; margin: 1rem 0; }
.flash.err { background: #fef2f2; border-color: #fca5a5; }
.tag { display: inline-block; font-size: .8rem; padding: .1rem .45rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
pre.mail { white-space: pre-wrap; background: var(--soft); padding: 1rem; border-radius: 8px; font-size: .9rem; }

@media (max-width: 860px) {
  .hero .wrap, .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
