:root {
  color-scheme: light;
  --ink: #192827;
  --muted: #536460;
  --line: #d9e0db;
  --page: #f5f6f2;
  --white: #fff;
  --pine: #173b33;
  --pine-hover: #215247;
  --green-light: #e8f3e8;
  --view: #243737;
  --red: #9e2532;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Cascadia Code", "Courier New", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.55 var(--sans); }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: inherit; text-underline-offset: 4px; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #347b67; outline-offset: 3px; }
.viewer :focus-visible { outline-color: #b9e7d4; }
p, h1, h2, h3 { margin: 0; }
.wrap { margin-inline: auto; width: min(100% - 72px, 1400px); }
.skip-link { position: absolute; inset: 10px auto auto 10px; z-index: 5; padding: 12px; background: white; transform: translateY(-150%); }
.skip-link:focus-visible { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: #fbfcfa; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; gap: 10px; align-items: center; justify-self: start; width: fit-content; font-size: 22px; font-weight: 750; letter-spacing: -.05em; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--pine); border-radius: 8px; }
.brand-mark i { display: block; width: 13px; height: 17px; border: 1.5px solid white; border-radius: 2px; position: relative; }
.brand-mark i::after { content: ""; position: absolute; top: 5px; left: 2px; width: 6px; height: 5px; border-block: 1px solid white; }
nav { display: flex; gap: 30px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; }
nav a:hover, nav a[aria-current] { color: var(--pine); }
nav a:hover { text-decoration: underline; }
.button { min-height: 38px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid transparent; border-radius: 7px; text-decoration: none; font-weight: 650; line-height: 1.25; }
.button-outline { border-color: #c9d4ce; background: white; color: var(--pine); }
.button-outline:hover:enabled, a.button-outline:hover { background: #eff4f0; border-color: #9cad9f; }
.button-primary { background: var(--pine); color: white; }
.button-primary:hover:enabled, a.button-primary:hover { background: var(--pine-hover); }
.header-pro { justify-self: end; font-size: 13px; }
.intro { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; padding: 35px 0 25px; }
.intro h1 { font: 400 clamp(37px, 4.1vw, 65px)/1.05 var(--serif); letter-spacing: -.065em; text-wrap: balance; }
.intro p { margin-top: 10px; }
.intro div > p { color: var(--muted); font-size: 16px; }
.mobile-break { display: none; }
.privacy-badge { align-self: flex-end; margin-bottom: 2px; display: inline-flex; gap: 8px; align-items: center; background: var(--green-light); color: #204b38; border: 1px solid #cce0d0; padding: 7px 11px; border-radius: 6px; font-size: 11px; font-weight: 700; text-wrap: pretty; }
.privacy-badge span { color: #357c55; font-size: 10px; }
.workbench { display: grid; grid-template-columns: minmax(208px, 19fr) minmax(0, 58fr) minmax(258px, 23fr); border: 1px solid #cad4cd; border-radius: 13px; background: white; box-shadow: 0 12px 36px #162e2420; overflow: clip; }
.pane { min-width: 0; display: flex; flex-direction: column; gap: 13px; padding: 16px; }
.pane-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 24px; }
.pane-heading h2 { font-size: 15px; line-height: 1.25; letter-spacing: -.014em; }
.count { display: inline-grid; place-items: center; padding: 0 7px; min-width: 24px; min-height: 23px; background: #eef2ee; border-radius: 12px; color: #415a50; font: 600 11px var(--mono); }
.drop-zone { display: grid; place-items: center; gap: 1px; min-height: 113px; padding: 12px 6px; background: #f7faf7; border: 1px dashed #9fb6a9; border-radius: 8px; line-height: 1.35; font-size: 13px; }
.drop-zone.dragging { background: #e2f2e7; border-color: #287453; }
.drop-icon { margin-bottom: 3px; width: 28px; height: 28px; text-align: center; line-height: 27px; color: var(--pine); background: #e6efe8; border-radius: 6px; font-weight: 750; font-size: 17px; }
.text-button { min-height: 29px; border: 0; padding: 3px 5px; color: var(--pine); font-size: 12px; font-weight: 700; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.sample-button { width: 100%; min-height: 36px; font-size: 11px; padding-inline: 6px; }
.sample-button span { font-size: 15px; }
.queue-heading { display: flex; justify-content: space-between; gap: 4px; border-top: 1px solid var(--line); padding-top: 13px; font-size: 12px; }
.queue-heading span, .small { color: var(--muted); font-size: 11px; }
.empty-queue { padding: 0 4px; }
.doc-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; max-height: 250px; overflow: auto; }
.doc-list:empty { display: none; }
.doc-item { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 4px 5px; }
.doc-item.active { background: #f0f5f1; border-color: #a3b9ab; }
.doc-select { width: 100%; min-height: 33px; text-align: left; border: 0; background: transparent; color: var(--ink); padding: 2px 4px; }
.doc-select strong { display: block; overflow-wrap: anywhere; font-size: 12px; line-height: 1.2; }
.doc-controls { display: flex; gap: 4px; }
.plan-strip { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.4; }
.plan-strip div { display: grid; gap: 2px; }
.plan-strip div > span { color: var(--muted); }
.plan-dot { height: 8px; width: 8px; flex: 0 0 8px; border-radius: 50%; background: #4e896a; }
.viewer { min-width: 0; background: var(--view); color: #edf5f1; display: grid; grid-template-rows: 45px minmax(0, 1fr) 32px; }
.viewer-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; padding-inline: 11px; background: #2a3e3c; border-bottom: 1px solid #405553; font-size: 11px; }
.viewer-label { min-width: 0; display: flex; gap: 6px; align-items: center; }
.viewer-label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-label span:first-child { color: #afd0c1; font-size: 14px; }
.pager, .zoom { display: flex; align-items: center; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zoom { justify-self: end; }
.pager > span { min-width: 39px; text-align: center; }
.icon-button { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 5px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--pine); font-size: 13px; line-height: 1; }
.viewer .icon-button { border-color: #536761; color: #f6faf9; background: #324947; }
.viewer .icon-button:hover:enabled { background: #476762; }
.icon-button:hover:enabled { background: #e8f1ea; }
#prev, #next, #zoom-out, #zoom-in { font-size: 18px; }
#zoom-fit { font-size: 10px; min-width: 37px; }
.viewport { height: 498px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; position: relative; padding: 20px; background: radial-gradient(circle, #f0faf428 1px, transparent 1px) 0 0 / 15px 15px, var(--view); }
.paper { position: relative; margin-inline: auto; width: max-content; min-width: 1px; box-shadow: 0 3px 22px #080a0b70; background: white; }
.paper canvas { display: block; }
#overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#overlay.drawing { pointer-events: auto; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.preview-message { position: absolute; inset: 30px 12px auto; text-align: center; font-size: 13px; }
.viewer-footer { min-width: 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 0 12px; color: #d6e2dd; background: #2a3e3c; border-top: 1px solid #405553; font-size: 10px; }
.viewer-footer span:last-child { white-space: nowrap; }
.settings { gap: 12px; }
.settings output { font: 600 10px/1.3 var(--mono); background: #edf3ef; color: var(--pine); border-radius: 4px; padding: 4px 6px; max-width: 59%; overflow-wrap: anywhere; }
#stamp-form { display: grid; gap: 9px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
label, legend { display: block; min-width: 0; font-size: 11px; font-weight: 650; color: #374b44; }
input:not([type=radio]), select { width: 100%; min-height: 32px; margin-top: 3px; background: #fbfcfb; padding: 5px 8px; color: var(--ink); border: 1px solid #cbd7ce; border-radius: 5px; font-size: 12px; }
input::placeholder { color: #687772; }
.colors { min-width: 0; margin: 0; padding: 0 0 0 2px; border: 0; display: flex; align-items: center; gap: 8px; }
.colors label { position: relative; margin-top: 6px; height: 26px; width: 24px; display: grid; place-items: center; cursor: pointer; }
.colors input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch { width: 19px; height: 19px; border-radius: 50%; pointer-events: none; }
.swatch.black { background: #15191d; }
.swatch.red { background: #9e2532; }
.swatch.blue { background: #214b9d; }
.colors input:checked + .swatch { outline: 1px solid #53645c; outline-offset: 2px; }
.colors input:focus-visible + .swatch { outline: 3px solid #347b67; outline-offset: 3px; }
.redaction { display: grid; gap: 6px; padding-top: 11px; border-top: 1px solid var(--line); }
.redaction-actions { display: grid; gap: 6px; grid-template-columns: 1fr auto; }
.redaction-actions .button { min-height: 34px; font-size: 11px; white-space: nowrap; }
.redact-button { background: #fbefee; border-color: #e7ccc8; color: #78272b; }
.redact-button:hover:enabled { background: #f9e3e1; }
.redact-button[aria-pressed=true] { background: #78272b; color: white; }
.redact-button[aria-pressed=true]:hover:enabled { background: #632026; }
.mask-list { display: grid; gap: 3px; max-height: 72px; overflow: auto; }
.mask-list:empty { display: none; }
.mask-item { display: flex; justify-content: space-between; align-items: center; background: #f8f2f1; border-radius: 4px; padding: 2px 4px 2px 7px; font-size: 11px; }
.mask-item button { min-width: 24px; height: 23px; }
.export-panel { margin-top: auto; display: grid; gap: 6px; }
.export-panel p { text-align: center; }
.status { min-height: 24px; margin-top: 9px; color: #465c53; font-size: 12px; overflow-wrap: anywhere; }
.status[data-error], #stamp-error { color: #882133; }
progress { width: 100%; height: 6px; accent-color: var(--pine); }
.privacy-section { margin-top: 36px; background: var(--pine); color: #f3f9f3; }
.privacy-inner { padding-block: 40px; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 44px; }
.privacy-inner h2, .content-section h2 { font: 400 clamp(27px, 3.2vw, 43px)/1.12 var(--serif); letter-spacing: -.047em; }
.privacy-inner p { color: #d4e5db; margin-top: 8px; max-width: 65ch; }
.privacy-note { border-left: 1px solid #5c8072; padding-left: 20px; }
.content-section { max-width: 1130px; padding-block: 43px; border-bottom: 1px solid var(--line); }
.content-section > p, .pricing > div:first-child p { color: var(--muted); margin-top: 8px; max-width: 64ch; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; padding: 0; margin: 25px 0 0; list-style: none; }
.workflow li { border-top: 2px solid #9ab5a4; padding-top: 13px; }
.workflow li > span { display: inline-grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 600 12px var(--mono); }
.workflow h3 { margin-top: 8px; font-size: 16px; }
.workflow p { margin-top: 4px; color: var(--muted); }
.compare table { width: 100%; margin-top: 18px; border-collapse: collapse; table-layout: fixed; background: white; }
.compare :is(th, td) { border: 1px solid var(--line); text-align: left; padding: 10px; overflow-wrap: anywhere; }
.compare thead { background: #e9eeea; }
.compare :is(th, td):first-child { width: 25%; }
.compare .source-note { max-width: none; }
.pricing { display: grid; grid-template-columns: 1fr minmax(240px, 370px); align-items: center; gap: 30px; }
.pricing a { display: inline-block; margin-top: 12px; font-weight: 650; }
.price-card { padding: 21px; background: white; border: 1px solid #b8cbc0; border-radius: 10px; }
.price-card .price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font: 400 45px/1.3 var(--serif); letter-spacing: -.045em; }
.price-card ul { padding-left: 20px; }
.price-card button { width: 100%; }
.faq details { border-bottom: 1px solid var(--line); }
.faq h2 { margin-bottom: 10px; }
.faq details p { padding: 0 0 12px 18px; color: var(--muted); max-width: 74ch; }
.faq summary { padding: 13px 0; font-weight: 700; }
.site-footer > div { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
dialog { border: 1px solid #9fb5aa; border-radius: 12px; padding: 22px; width: min(440px, calc(100% - 28px)); color: var(--ink); }
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { background: #101d19b0; overflow: hidden; overscroll-behavior: contain; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dialog-heading h1 { font: 400 30px/1.15 var(--serif); }
.dialog-close { font-size: 20px; }
#checkout { margin-top: 12px; }
#checkout-note { margin: 12px 0; }
#license-form { margin-top: 14px; }
#license-form input { min-height: 40px; }
.license-message { min-height: 19px; color: var(--red); }
#export-free { margin-top: 8px; }
@media (max-width: 1120px) {
  .wrap { width: calc(100% - 38px); }
  .intro { align-items: flex-start; flex-direction: column; gap: 5px; }
  .privacy-badge { align-self: flex-start; }
  .pane { padding: 12px; }
}
@media (max-width: 920px) {
  .workbench { grid-template-columns: 215px minmax(0, 1fr); }
  .settings { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; border-top: 1px solid var(--line); }
  .settings > .pane-heading { grid-column: 1 / -1; }
  .redaction { padding-top: 0; border-top: 0; }
  .export-panel { grid-column: 2; }
}
@media (max-width: 660px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 59px; grid-template-columns: 1fr auto; gap: 8px; }
  nav { display: none; }
  .brand { font-size: 20px; }
  .intro { padding: 24px 0 17px; }
  .intro h1 { font-size: clamp(36px, 8.5vw, 52px); }
  .mobile-break { display: initial; }
  .privacy-badge { font-size: 10px; }
  .workbench { grid-template-columns: minmax(0, 1fr); }
  .documents { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .documents :is(.pane-heading, .queue-heading, .doc-list, .empty-queue, .plan-strip) { grid-column: 1 / -1; }
  .sample-button { align-self: center; min-height: 42px; }
  .drop-zone { min-height: 78px; }
  .drop-icon { display: none; }
  .plan-strip { margin-top: 2px; padding-top: 6px; }
  .viewer-bar { padding-inline: 6px; }
  .viewport { height: 390px; padding: 12px; }
  .settings { grid-template-columns: 1fr; }
  .export-panel { grid-column: 1; }
  .redaction { padding-top: 8px; border-top: 1px solid var(--line); }
  .privacy-inner, .workflow, .pricing { grid-template-columns: 1fr; gap: 16px; }
  .privacy-inner { padding-block: 24px; }
  .content-section { padding-block: 28px; }
  .compare :is(th, td) { padding: 6px; font-size: 12px; }
}
