/* PdfNext design system. System fonts only; no external assets. */
:root {
  --bg: #faf9f7;
  --bg-2: #f3f1ed;
  --surface: #ffffff;
  --ink: #16181d;
  --ink-2: #3b3f47;
  --muted: #646872;
  --line: #e7e4df;
  --line-2: #d9d5ce;
  --accent: #e5432d;
  --accent-ink: #c2321e;
  --accent-soft: #fdeae6;
  --mark-fold: #ffb4a6;
  --focus: #1f5fd6;
  --ok: #178a4c;
  --warn: #b25a00;
  --err: #c42b1c;
  --c-organize: #e5432d; --c-organize-soft: #fdeae6;
  --c-optimize: #178a4c; --c-optimize-soft: #e3f4ea;
  --c-convert: #1f5fd6; --c-convert-soft: #e6eefc;
  --c-edit: #7445d8; --c-edit-soft: #efe9fb;
  --c-security: #0b7a80; --c-security-soft: #def2f2;
  --shadow: 0 1px 2px rgb(22 24 29 / 0.04), 0 8px 24px rgb(22 24 29 / 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1013;
  --bg-2: #15171b;
  --surface: #191b20;
  --ink: #eeeef0;
  --ink-2: #c9cbd1;
  --muted: #9a9ea8;
  --line: #2a2d33;
  --line-2: #363a42;
  --accent: #ff5b42;
  --accent-ink: #ff7a66;
  --accent-soft: #3a1d18;
  --mark-fold: #ffc2b6;
  --focus: #7aa7ff;
  --ok: #3ccf7f;
  --warn: #ffb35c;
  --err: #ff7a6b;
  --c-organize: #ff6a52; --c-organize-soft: #3a1d18;
  --c-optimize: #3ccf7f; --c-optimize-soft: #13301f;
  --c-convert: #6f9dff; --c-convert-soft: #182640;
  --c-edit: #a989ff; --c-edit-soft: #261d40;
  --c-security: #3cc6cc; --c-security-soft: #0f2e2f;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.icon { width: 22px; height: 22px; flex: none; }
.icon.xs { width: 16px; height: 16px; }
.center { text-align: center; }
.section { padding-top: 56px; padding-bottom: 8px; }
@media (min-width: 900px) { .section { padding-top: 80px; } }
.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-2); max-width: 46rem; }
.hint { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 650; color: var(--accent-ink); margin-bottom: 10px; }
.eyebrow .icon { width: 18px; height: 18px; }

/* Buttons */
.btn { --b: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--b); color: var(--ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .2) inset, 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
:root[data-theme="dark"] .btn.primary { color: #1a0d0a; }
.btn.ghost { background: transparent; }
.btn.lg { min-height: 52px; padding: 12px 22px; font-size: 1.05rem; border-radius: 14px; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 0.9rem; border-radius: 10px; }
.btn.link { border: 0; background: none; color: var(--muted); min-height: 40px; }
.btn.link:hover { color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.brand .mark { width: 30px; height: 30px; }
.brand .word b { color: var(--accent); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.theme { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; margin-left: 6px; }
.theme:hover { color: var(--ink); border-color: var(--line-2); }
.theme .moon, :root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (max-width: 520px) { .hide-sm { display: none; } }

/* Hero */
.hero { padding: 56px 0 24px; background: radial-gradient(1200px 400px at 50% -120px, var(--accent-soft), transparent 70%); }
@media (min-width: 900px) { .hero { padding: 96px 0 40px; } }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .hl { color: var(--accent); }
.hero .lede { margin-inline: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; font-weight: 600; margin-bottom: 22px; box-shadow: var(--shadow); }
.pill .icon { width: 17px; height: 17px; color: var(--ok); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* Tool grid */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 100%; padding: 2px; }
.filters::-webkit-scrollbar { display: none; }

.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(4, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card-text .card-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--c); }
.card { --c: var(--c-organize); --cs: var(--c-organize-soft); display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-text { display: grid; gap: 3px; }
.card-text strong { font-size: 1.02rem; letter-spacing: -0.01em; }
.card-text span { font-size: .9rem; color: var(--muted); line-height: 1.45; }
@media (min-width: 900px) { .card { flex-direction: column; } }
.tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cs); color: var(--c); flex: none; }
.tile .icon { width: 24px; height: 24px; }
.tile.lg { width: 60px; height: 60px; border-radius: 16px; }
.tile.lg .icon { width: 32px; height: 32px; }
.cat-optimize { --c: var(--c-optimize); --cs: var(--c-optimize-soft); }
.cat-convert { --c: var(--c-convert); --cs: var(--c-convert-soft); }
.cat-edit { --c: var(--c-edit); --cs: var(--c-edit-soft); }
.cat-organize { --c: var(--c-organize); --cs: var(--c-organize-soft); }
.cat-security { --c: var(--c-security); --cs: var(--c-security-soft); }

/* Privacy points */
.points { display: grid; gap: 14px; margin-top: 26px; }
@media (min-width: 800px) { .points { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.point { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.point-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-2); color: var(--ink); margin-bottom: 14px; }
.point p { color: var(--muted); margin: 0; }

/* App CTA */
.app-cta { display: grid; gap: 24px; align-items: center; padding: 28px; border-radius: 24px; background: linear-gradient(135deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); overflow: hidden; }
@media (min-width: 800px) { .app-cta { grid-template-columns: 1.4fr 1fr; padding: 44px 48px; } }
.app-cta h2 { max-width: 18ch; }
.app-cta p { color: var(--ink-2); max-width: 36rem; }
.app-cta-art { display: flex; justify-content: center; }
.phone { width: 170px; height: 300px; border-radius: 30px; background: var(--ink); padding: 8px; box-shadow: var(--shadow); transform: rotate(4deg); }
.phone-screen { position: relative; height: 100%; border-radius: 23px; background: var(--bg); padding: 14px 12px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.ps-bar { height: 10px; width: 60%; border-radius: 6px; background: var(--line-2); }
.ps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ps-row i { height: 36px; border-radius: 9px; background: var(--c-organize-soft); }
.ps-row i:nth-child(2) { background: var(--c-convert-soft); }
.ps-row i:nth-child(3) { background: var(--c-optimize-soft); }
.ps-doc { height: 64px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.ps-doc.short { height: 44px; }
.ps-fab { position: absolute; right: 12px; bottom: 14px; width: 42px; height: 42px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; }
@media (max-width: 799px) { .app-cta-art { display: none; } }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
summary { cursor: pointer; list-style: none; font-weight: 650; padding: 16px 28px 16px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { color: var(--ink-2); margin: 0 0 18px; }

/* Tool page */
.tool-top { padding-top: 22px; }
.crumbs { display: flex; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.tool-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.tool-head h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); margin-bottom: 8px; }
.tool-head .lede { margin: 0; }
@media (max-width: 560px) { .tool-head { flex-direction: column; gap: 14px; } }

.bench { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 10px; box-shadow: var(--shadow); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 300px; padding: 36px 20px; border: 2px dashed color-mix(in srgb, var(--c) 35%, var(--line)); border-radius: 18px; background: color-mix(in srgb, var(--cs) 55%, transparent); cursor: pointer; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { border-color: var(--c); background: var(--cs); }
.drop-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--surface); color: var(--c); box-shadow: var(--shadow); margin-bottom: 6px; }
.drop-ic .icon { width: 30px; height: 30px; }
.drop-title { font-size: 1.2rem; letter-spacing: -0.01em; }
.drop-or { color: var(--muted); font-size: .9rem; }
.drop .btn { pointer-events: none; margin-top: 2px; }
.drop-note { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.drop-note .icon, .bench-foot .icon { color: var(--ok); }
.bench-foot { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .88rem; color: var(--muted); margin: 14px 0 0; text-align: center; }

.work { display: grid; gap: 10px; }
@media (min-width: 900px) { .work { grid-template-columns: 1.35fr 1fr; } }
.work-files, .work-side { padding: 18px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.work-side { display: flex; flex-direction: column; gap: 16px; }
.files-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.files-title { font-size: 1rem; margin: 0; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.file.dragging { opacity: .5; }
.file.drop-before { box-shadow: 0 -3px 0 var(--c); }
.file.drop-after { box-shadow: 0 3px 0 var(--c); }
.file-grip { color: var(--muted); cursor: grab; display: none; }
[data-multiple] .file-grip { display: block; }
.file-thumb { width: 40px; height: 48px; border-radius: 8px; background: var(--cs); color: var(--c); display: grid; place-items: center; flex: none; overflow: hidden; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-thumb .icon { width: 22px; height: 22px; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-weight: 650; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: .82rem; color: var(--muted); }
.file-meta.err { color: var(--err); }
.file-btns { display: flex; gap: 2px; flex: none; }
.ib { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 10px; cursor: pointer; }
.ib:hover { background: var(--bg-2); color: var(--ink); }
.ib[disabled] { opacity: .3; cursor: default; background: none; }
.ib .icon { width: 18px; height: 18px; }

/* Password entry for a protected file */
.file.locked { flex-wrap: wrap; }
.pw { flex-basis: 100%; display: grid; gap: 6px; padding: 10px 2px 2px; border-top: 1px solid var(--line); }
.pw-label { display: flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.pw-label .icon { width: 16px; height: 16px; flex: none; color: var(--c); }
.pw-row { display: flex; gap: 6px; align-items: center; }
.pw-row .text { flex: 1; min-width: 0; min-height: 40px; padding: 7px 10px; }
.pw-eye { flex: none; width: 40px; height: 40px; }
.pw-go { flex: none; min-height: 40px; }
.pw-msg { margin: 0; font-size: .85rem; color: var(--err); }
.pw-msg:empty { display: none; }

/* Options */
.options { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field[hidden] { display: none; }
.field-label { font-weight: 650; font-size: .9rem; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.text, select { width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; }
.text.short { max-width: 140px; }
.text:focus, select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.text[aria-invalid="true"] { border-color: var(--err); }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input[type="range"] { width: 100%; accent-color: var(--c); min-height: 32px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--line); }
.seg label { flex: 1 1 auto; position: relative; }
.seg input, .levels input, .pos-grid input, .swatches input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; text-align: center; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.seg input:focus-visible + span, .levels input:focus-visible + span, .pos-grid input:focus-visible + .pos, .swatches input:focus-visible + .sw, .check input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.levels { display: grid; gap: 8px; }
.level span { display: grid; gap: 1px; padding: 12px 14px 12px 42px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; position: relative; }
.level span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--line-2); }
.level input:checked + span { border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; }
.level input:checked + span::before { border: 6px solid var(--c); }
.level small { color: var(--muted); font-size: .85rem; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 260px; padding: 8px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.pos-grid label { cursor: pointer; }
.pos { display: block; position: relative; height: 40px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.pos i { position: absolute; width: 14px; height: 4px; border-radius: 2px; background: var(--line-2); }
.pos-top-left i { left: 8px; top: 8px; } .pos-top-center i { left: calc(50% - 7px); top: 8px; } .pos-top-right i { right: 8px; top: 8px; }
.pos-bottom-left i { left: 8px; bottom: 8px; } .pos-bottom-center i { left: calc(50% - 7px); bottom: 8px; } .pos-bottom-right i { right: 8px; bottom: 8px; }
.pos-grid input:checked + .pos { border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; }
.pos-grid input:checked + .pos i { background: var(--c); }
.swatches { display: flex; gap: 10px; }
.swatches label { cursor: pointer; }
.sw { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.sw-red { background: #d91a1a; } .sw-gray { background: #555b66; } .sw-blue { background: #1f5fd6; } .sw-green { background: #178a4c; }
.swatches input:checked + .sw { box-shadow: 0 0 0 2px var(--ink); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: .95rem; position: relative; }
.check span::before { content: ""; display: inline-block; vertical-align: -4px; width: 20px; height: 20px; margin-right: 10px; border-radius: 6px; border: 2px solid var(--line-2); background: var(--surface); }
.check input:checked + span::before { background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--c); }
.run { width: 100%; }
.status { margin: 0; min-height: 1.5em; font-size: .92rem; color: var(--muted); }
.status.err { color: var(--err); }
.status.busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid var(--line-2); border-top-color: var(--c); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Result */
.result { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 20px 24px; outline: none; }
.result-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-optimize-soft); color: var(--ok); margin-bottom: 16px; }
.result-ic .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.result-meta { color: var(--ink-2); }
.result-meta strong { color: var(--ok); }
.result-note { display: block; margin-top: 4px; font-size: .92rem; color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 10px; }

/* How-to */
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps p { margin: 0; color: var(--ink-2); }
.step-n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 800; }

/* Prose pages */
.prose-wrap { padding-top: 48px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.8em; font-size: 1.35rem; }
.prose li { margin-bottom: .4em; }
.prose ul.ticks { list-style: none; padding: 0; }
.prose ul.ticks li { position: relative; padding-left: 30px; }
.prose ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.center-block { text-align: center; }
.center-block .lede { margin-inline: auto; }
.center-block .cards { margin-top: 28px; text-align: left; }

/* Footer */
.foot { margin-top: 96px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 24px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 2fr 1fr; } }
.foot h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot nav[aria-label="Tools"] ul { columns: 2; column-gap: 24px; }
.foot li { margin-bottom: 8px; break-inside: avoid; }
.foot a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand p { color: var(--muted); font-size: .92rem; margin-top: 12px; max-width: 28ch; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.legal a { font-size: inherit; color: inherit; }

@media print { .top, .foot, .bench-foot { display: none; } }

/* Legal pages */
.prose .callout { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.prose .callout .icon { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.prose .callout p { margin: 0; }
.prose .summary { padding: 16px 20px 16px 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.prose h3 { margin-top: 1.4em; font-size: 1.08rem; }
