/* SEO GEO Scan – štýly */
:root {
  --paper: #F2F4F8;
  --surface: #FFFFFF;
  --surface-2: #F7F8FB;
  --ink: #121A2B;
  --muted: #5A6478;
  --line: #DDE3EC;
  --accent: #2B4BD8;
  --accent-hover: #2140C2;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6EBFF;
  --good: #0E9F6E;  --good-soft: #E1F5EC;
  --mid: #BF7B04;   --mid-soft: #FBF0D9;
  --bad: #D64545;   --bad-soft: #FBE6E6;
  --info: #5A6478;  --info-soft: #EDF0F5;
  --grid: rgba(43, 75, 216, .09);
  --shadow: 0 1px 2px rgba(18, 26, 43, .05), 0 8px 24px -12px rgba(18, 26, 43, .18);
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D1320;
    --surface: #151D2C;
    --surface-2: #1A2334;
    --ink: #E7ECF5;
    --muted: #9AA5B8;
    --line: #263147;
    --accent: #7D93FF;
    --accent-hover: #97A8FF;
    --accent-ink: #0D1320;
    --accent-soft: #1E2850;
    --good: #3CCB97;  --good-soft: #10302A;
    --mid: #F0B444;   --mid-soft: #33290F;
    --bad: #F07272;   --bad-soft: #3A1C20;
    --info: #9AA5B8;  --info-soft: #1E2738;
    --grid: rgba(125, 147, 255, .08);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-size: .92em; background: var(--surface-2); border: 1px solid var(--line); padding: .05em .35em; border-radius: 5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }
.narrow { max-width: 760px; }

.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 16px; height: 16px; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-family: var(--f-display); font-weight: 500; font-size: 1.22rem; letter-spacing: -.02em; }
.brand-name b { font-weight: 800; color: var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 560px) {
  .topbar-in { flex-wrap: wrap; padding-block: 10px; gap: 6px; }
  .nav { width: 100%; justify-content: flex-start; margin-inline: -10px; }
  .nav a { padding: 6px 10px; font-size: .9rem; }
}

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--f-body); border: 0; border-radius: var(--r-md); padding: 14px 22px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, box-shadow .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-sm { padding: 8px 12px; font-size: .88rem; border-radius: var(--r-sm); }

.scan-form { width: 100%; }
.scan-field { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 16px; padding: 7px 7px 7px 16px; box-shadow: var(--shadow), inset 0 0 0 1.5px var(--line); transition: box-shadow .15s; }
.scan-field:focus-within { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.scan-prefix { color: var(--accent); display: flex; }
.scan-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 1.15rem/1.2 var(--f-body); padding: 12px 4px; }
.scan-field input::placeholder { color: var(--muted); opacity: .7; }
.scan-lg .scan-field { padding: 9px 9px 9px 20px; }
.scan-lg .scan-field input { font-size: 1.3rem; padding-block: 14px; }
.scan-lg .btn { padding: 18px 26px; font-size: 1.05rem; }
@media (max-width: 520px) {
  .scan-field { flex-wrap: wrap; padding: 8px; }
  .scan-prefix { display: none; }
  .scan-field input, .scan-lg .scan-field input { width: 100%; flex-basis: 100%; padding: 12px 10px; font-size: 1.1rem; }
  .scan-field .btn, .scan-lg .btn { width: 100%; }
}

.form { display: grid; gap: 16px; margin-top: 8px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form small { font-weight: 400; color: var(--muted); }
.form input, .form textarea, .list-tools input, .list-tools select {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; width: 100%;
}
.form input:focus, .form textarea:focus, .list-tools input:focus, .list-tools select:focus { outline: 0; border-color: var(--accent); }
.form .btn { justify-self: start; }
.narrow-form { max-width: 360px; }

.alert { display: flex; gap: 10px; align-items: flex-start; background: var(--bad-soft); color: var(--ink); border-radius: var(--r-md); padding: 12px 16px; margin: 0 0 16px; }
.alert .ic { color: var(--bad); margin-top: 1px; }
.alert-info { background: var(--accent-soft); }
.alert-info .ic { color: var(--accent); }
.alert-ok { background: var(--good-soft); }
.alert-ok .ic { color: var(--good); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); overflow: hidden; border-bottom: 1px solid var(--line);
  background-image: radial-gradient(var(--grid) 1.2px, transparent 1.3px); background-size: 22px 22px; background-position: -11px -11px; }
.hero-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; max-width: 12ch; margin-bottom: 20px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.hero .lead { margin-bottom: 28px; }
.hero-meta { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
.hero-meta strong { color: var(--ink); }

.sample { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; transform: rotate(1.2deg); }
.sample-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.sample-url { margin-left: 10px; font-size: .85rem; color: var(--muted); background: var(--surface); padding: 3px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.sample-body { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 26px; }
.sample-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sample-bars li { display: grid; gap: 4px; font-size: .84rem; color: var(--muted); }
@media (max-width: 959px) { .hero-visual { display: none; } }

/* ---------- Score ring ---------- */
.ring { --size: 200px; position: relative; width: var(--size); height: var(--size); flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-ticks line { stroke: var(--line); stroke-width: 1.2; stroke-linecap: round; }
.ring-track { fill: none; stroke: var(--surface-2); stroke-width: 9; }
.ring-val { fill: none; stroke-width: 9; stroke-linecap: round; animation: ring-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.ring-good .ring-val { stroke: var(--good); }
.ring-mid .ring-val { stroke: var(--mid); }
.ring-bad .ring-val { stroke: var(--bad); }
@keyframes ring-in { from { stroke-dashoffset: var(--c); } }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); }
.ring-inner { display: flex; align-items: baseline; }
.ring-score { font-size: calc(var(--size) * .27); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.ring-max { font-size: calc(var(--size) * .085); color: var(--muted); margin-left: 2px; }

.bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bar b { display: block; height: 100%; border-radius: inherit; }
.bar-good b { background: var(--good); }
.bar-mid b { background: var(--mid); }
.bar-bad b { background: var(--bad); }

.pill { display: inline-grid; place-items: center; min-width: 40px; height: 30px; padding: 0 8px; border-radius: 9px; font: 700 .95rem/1 var(--f-display); }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-mid { background: var(--mid-soft); color: var(--mid); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-lg { min-width: 48px; height: 36px; font-size: 1.1rem; }

/* ---------- Home sections ---------- */
.areas, .recent, .how, .faq { padding-block: clamp(44px, 6vw, 72px) 0; }
.areas-grid { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .areas-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }
.area { padding: 26px 24px 22px 0; border-bottom: 1px solid var(--line); }
.area-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.area p { color: var(--muted); margin: 0; font-size: .97rem; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

.ledger { list-style: none; margin: 8px 0 0; padding: 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.ledger li + li { border-top: 1px solid var(--line); }
.ledger-row { display: grid; grid-template-columns: auto minmax(0, 14rem) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 18px; color: var(--ink); text-decoration: none; }
.ledger-row:hover { background: var(--surface-2); color: var(--ink); }
.ledger-domain { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-title { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.ledger-time { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.ledger-item { display: flex; align-items: center; }
.ledger-item .ledger-row { flex: 1; min-width: 0; }
.ledger-visit { display: grid; place-items: center; width: 44px; height: 44px; margin-right: 8px; color: var(--muted); border-radius: var(--r-sm); }
.ledger-visit:hover { color: var(--accent); background: var(--accent-soft); }
@media (max-width: 720px) {
  .ledger-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .ledger-title { display: none; }
}

.steps { list-style: none; counter-reset: s; margin: 8px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.steps li { counter-increment: s; position: relative; padding-top: 56px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; font: 800 2.6rem/1 var(--f-display); color: var(--accent); letter-spacing: -.04em; }
.steps b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

.faq { padding-bottom: clamp(48px, 7vw, 88px); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 1.06rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { color: var(--muted); max-width: 68ch; padding-bottom: 6px; }

/* ---------- Report ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); overflow-wrap: anywhere; }
.crumbs + .wrap .alert { margin-top: 16px; }

.report-hero { display: grid; gap: 32px; align-items: center; padding-block: 28px 32px; }
@media (min-width: 880px) { .report-hero { grid-template-columns: 1fr auto; } }
.rh-domain { font-size: clamp(2.1rem, 5.2vw, 3.8rem); font-weight: 800; letter-spacing: -.035em; overflow-wrap: anywhere; margin-bottom: 10px; }
.rh-title { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin-bottom: 14px; }
.rh-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: .93rem; margin-bottom: 20px; }
.ext-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; overflow-wrap: anywhere; }
.rescan { margin: 0; }
.rh-score { display: flex; align-items: center; gap: 28px; background: var(--surface); border-radius: var(--r-lg); padding: 24px 30px 24px 24px; box-shadow: 0 0 0 1px var(--line); }
.verdict { font: 800 1.9rem/1.1 var(--f-display); letter-spacing: -.02em; margin-bottom: 14px; }
.verdict-good { color: var(--good); }
.verdict-mid { color: var(--mid); }
.verdict-bad { color: var(--bad); }
.counts { display: grid; gap: 7px; margin: 0; font-size: .95rem; }
.counts span { display: inline-flex; align-items: center; gap: 8px; }
.c-ok .ic { color: var(--good); } .c-warn .ic { color: var(--mid); } .c-fail .ic { color: var(--bad); }
@media (max-width: 520px) {
  .rh-score { flex-direction: column; text-align: center; padding: 24px; }
  .rh-score .ring { --size: 180px !important; }
  .counts { justify-items: center; }
}

.summary-grid { display: grid; gap: 20px; }
@media (min-width: 880px) { .summary-grid { grid-template-columns: 1.4fr 1fr; } }
.panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); padding: 22px 24px; }
.panel-h { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 14px; }
.cat-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-bars a { display: grid; grid-template-columns: auto minmax(0, 12rem) 1fr 2.4rem; gap: 14px; align-items: center; padding: 9px 8px; margin-inline: -8px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.cat-bars a:hover { background: var(--surface-2); }
.cb-ic { color: var(--accent); display: flex; }
.cb-name { font-weight: 500; font-size: .96rem; }
.cb-score { font: 700 1.05rem/1 var(--f-display); text-align: right; }
@media (max-width: 520px) {
  .cat-bars a { grid-template-columns: auto 1fr 2.2rem; row-gap: 6px; }
  .cat-bars .bar { grid-column: 2 / 4; grid-row: 2; }
}
.facts dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

.priorities { padding-top: 44px; }
.prio-list { list-style: none; counter-reset: p; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.prio { counter-increment: p; position: relative; background: var(--surface); border-radius: var(--r-md); padding: 16px 20px 14px 64px; box-shadow: 0 0 0 1px var(--line); }
.prio::before { content: counter(p); position: absolute; left: 18px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 .95rem/1 var(--f-display); }
.prio-fail::before { background: var(--bad-soft); color: var(--bad); }
.prio-warn::before { background: var(--mid-soft); color: var(--mid); }
.prio-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 4px; }
.prio p { margin: 0; color: var(--muted); }
.tag { font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); padding: 3px 9px; border-radius: 999px; }

.results { display: grid; gap: 28px; padding-top: 44px; }
.cat { scroll-margin-top: 84px; }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cat-head h2 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); flex: 1; }
.cat-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.checks { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.check + .check { border-top: 1px solid var(--line); }
.check summary, .ck-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 15px 20px; }
.check summary { cursor: pointer; list-style: none; }
.check summary::-webkit-details-marker { display: none; }
.check summary:hover { background: var(--surface-2); }
.st { display: flex; padding-top: 1px; }
.check-ok .st { color: var(--good); }
.check-warn .st { color: var(--mid); }
.check-fail .st { color: var(--bad); }
.check-info .st { color: var(--info); }
.ck-body { display: grid; gap: 2px; min-width: 0; }
.ck-title { font-weight: 600; }
.ck-detail { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.ck-more { font-size: .84rem; font-weight: 600; color: var(--accent); padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); white-space: nowrap; margin-top: 1px; }
details[open] .ck-more { background: var(--accent); color: var(--accent-ink); }
.ck-tip { margin: 0 20px 16px 56px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); font-size: .96rem; }
@media (max-width: 560px) {
  .check summary { grid-template-columns: auto 1fr; }
  .ck-more { grid-column: 2; justify-self: start; }
  .ck-tip { margin-left: 20px; }
}

.badge-box { display: grid; gap: 20px; margin-top: 48px; padding-block: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 880px) { .badge-box { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.badge-copy p { color: var(--muted); margin: 0; }
.badge-embed { display: grid; gap: 12px; }
.code-wrap { display: grid; gap: 8px; }
.code-wrap textarea { width: 100%; font: .85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; resize: vertical; }
.code-wrap .btn { justify-self: start; }

.cta-again { padding-block: 48px 64px; }
.fineprint { margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* ---------- List page / prose ---------- */
.page-head { padding-block: 40px 20px; }
.page-head h1, .prose h1, .admin h1, .empty h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.list-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.list-tools input { flex: 1 1 260px; width: auto; }
.list-tools select { flex: 0 0 auto; width: auto; }
.list-count { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 24px 0 8px; color: var(--muted); }
.pager a { font-weight: 600; }
.empty { padding-block: 40px 64px; }
.empty p { color: var(--muted); }

.prose { padding-block: 40px 72px; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: 84px; }
.prose p { max-width: 70ch; }
.prose p:not(.lead) { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.weights { border-collapse: collapse; margin: 4px 0 18px; min-width: 300px; }
.weights th, .weights td { text-align: left; padding: 8px 24px 8px 0; border-bottom: 1px solid var(--line); }
.weights th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.weights td:last-child { font-weight: 700; font-family: var(--f-display); }

.admin { padding-block: 32px 64px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--line); margin-bottom: 32px; font-size: .93rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { background: var(--surface-2); font-size: .82rem; color: var(--muted); }
.admin-table .actions { white-space: nowrap; }
.admin-table .actions form { display: inline-flex; gap: 6px; margin: 0; }
@media (max-width: 720px) { .admin-table { display: block; overflow-x: auto; } }

.ad-slot { margin-block: 40px 0; text-align: center; }

/* ---------- Footer ---------- */
.footer { margin-top: 0; background: var(--surface); border-top: 1px solid var(--line); }
.footer-in { display: grid; gap: 28px; padding-block: 40px 24px; }
@media (min-width: 820px) { .footer-in { grid-template-columns: 1.3fr 1fr auto; align-items: start; } }
.brand-sm .brand-name { font-size: 1.1rem; }
.footer-about p { color: var(--muted); font-size: .93rem; max-width: 44ch; margin: 8px 0 0; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--accent); }
.partner-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding: 12px 16px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); }
.partner-link:hover { background: var(--accent); color: var(--accent-ink); }
.footer-base { padding-block: 16px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* ---------- Scan overlay ---------- */
.scan-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: blur(8px); }
.scan-overlay[hidden] { display: none; }
.scan-box { width: min(440px, 100%); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: 30px 28px 22px; text-align: center; }
.scan-dial { position: relative; width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line);
  background: radial-gradient(var(--grid) 1px, transparent 1.2px) 0 0 / 8px 8px; overflow: hidden; }
.scan-dial span { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, color-mix(in srgb, var(--accent) 55%, transparent) 100%); animation: sweep 1.6s linear infinite; }
.scan-dial::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--accent); }
@keyframes sweep { to { transform: rotate(360deg); } }
.scan-host { font: 700 1.3rem/1.2 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; margin-bottom: 14px; }
.scan-steps { list-style: none; margin: 0 0 14px; padding: 0; text-align: left; display: grid; gap: 6px; font-size: .93rem; }
.scan-steps li { color: var(--muted); padding-left: 24px; position: relative; opacity: .45; transition: opacity .3s, color .3s; }
.scan-steps li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.scan-steps li.done { opacity: .9; }
.scan-steps li.done::before { background: var(--good); }
.scan-steps li.now { opacity: 1; color: var(--ink); font-weight: 600; }
.scan-steps li.now::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.scan-note { font-size: .85rem; color: var(--muted); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  .sample { transform: none; }
}
