@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/fonts/instrument-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/fonts/instrument-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/fonts/instrument-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f3f5f8;
  --sheet: #ffffff;
  --ink: #16202e;
  --muted: #5a6577;
  --line: #d8dee6;
  --cobalt: #2450d8;
  --cobalt-ink: #ffffff;
  --amber: #ffd45c;
  --amber-ink: #3d2c00;
  --redact: #16202e;
  --ok: #17794a;
  --warn: #b3261e;
  --focus: #2450d8;
  --radius-lg: 18px;
  --radius-sm: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1622; --sheet: #172131; --ink: #e8edf4; --muted: #9aa6b8; --line: #2a374a;
    --cobalt: #6d8dff; --cobalt-ink: #0b1220; --amber: #e2b23a; --amber-ink: #1d1500;
    --redact: #e8edf4; --ok: #4cc38a; --warn: #ff8a80; --focus: #8fa8ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 "Instrument", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px/1 "Bricolage", sans-serif; text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.head-links { display: flex; gap: 18px; align-items: center; font-size: 15px; }
.head-links a { text-decoration: none; color: var(--muted); }
.head-links a:hover { color: var(--ink); }
.pro-badge { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); }

/* hero */
.hero { padding: 28px 0 8px; }
.hero h1 {
  font: 700 clamp(38px, 6.4vw, 72px)/1.02 "Bricolage", sans-serif;
  letter-spacing: -0.035em; margin: 0 0 18px; max-width: 17ch;
  font-variation-settings: "opsz" 96;
}
.hero p.lede { font-size: 19px; color: var(--muted); max-width: 56ch; margin: 0 0 28px; }

/* tool */
.tool { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px, 3vw, 28px); }
.drop {
  position: relative; display: grid; place-items: center; text-align: center; gap: 6px;
  min-height: 210px; padding: 28px 16px; border-radius: 12px;
  border: 2px dashed var(--line); transition: border-color .15s, background-color .15s;
}
.drop.is-over { border-color: var(--cobalt); background: color-mix(in srgb, var(--cobalt) 6%, transparent); }
.drop h2 { font: 650 24px/1.2 "Bricolage", sans-serif; margin: 0; letter-spacing: -0.01em; }
.drop p { margin: 0; color: var(--muted); font-size: 15px; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 "Instrument", sans-serif; padding: 13px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--cobalt); color: var(--cobalt-ink); }
.btn-primary:hover { filter: brightness(1.08); color: var(--cobalt-ink); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.drop .btn { margin-top: 10px; pointer-events: none; }

.options { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 16px; font-size: 15px; color: var(--muted); }
.options label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.options input { width: 18px; height: 18px; accent-color: var(--cobalt); }
.privacy-note { display: flex; gap: 8px; align-items: center; }
.privacy-note svg { flex: none; }

.batch-bar { display: none; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.batch-bar.show { display: flex; }
.batch-bar .summary { font-weight: 600; }
.batch-bar .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* file cards: an "evidence tag" per photo */
.files { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.file {
  display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start;
  padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
}
.thumb { width: 112px; height: 112px; border-radius: 10px; background: var(--line) center/cover no-repeat; }
.file-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.file-name { font-weight: 600; word-break: break-all; }
.file-size { color: var(--muted); font-size: 14px; }
.verdict { margin: 4px 0 10px; font-size: 15px; }
.verdict.exposed { color: var(--warn); font-weight: 600; }
.verdict.clean { color: var(--ok); font-weight: 600; }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts mark { background: var(--amber); color: var(--amber-ink); padding: 0 4px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.facts .val { position: relative; display: inline; }
/* the one orchestrated moment: values get redacted when cleaned */
.facts .val::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 2px; bottom: 2px; background: var(--redact);
  border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.6,.05,.3,1);
}
.file.is-clean .facts .val::after { transform: scaleX(1); }
.file.is-clean .facts .val mark { background: transparent; }
.file.is-clean .facts dd:nth-of-type(2) .val::after { transition-delay: .06s; }
.file.is-clean .facts dd:nth-of-type(3) .val::after { transition-delay: .12s; }
.file.is-clean .facts dd:nth-of-type(4) .val::after { transition-delay: .18s; }
.file.is-clean .facts dd:nth-of-type(5) .val::after { transition-delay: .24s; }
.file.is-clean .facts dd:nth-of-type(n+6) .val::after { transition-delay: .3s; }
.more { margin-top: 8px; font-size: 14px; color: var(--muted); }
.more summary { cursor: pointer; }
.more ul { margin: 6px 0 0; padding-left: 18px; }
.file-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.file-actions .note { font-size: 14px; color: var(--muted); }
.file.has-error .verdict { color: var(--warn); }
.map-link { font-size: 14px; margin-left: 6px; }
.file.is-clean .map-link { display: none; }

@media (prefers-reduced-motion: reduce) { .facts .val::after { transition: none !important; } }
@media (max-width: 560px) {
  .file { grid-template-columns: 1fr; }
  .thumb { width: 100%; height: 120px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 6px; }
  .head-links .hide-sm { display: none; }
}

/* content */
.section { padding: clamp(48px, 8vw, 88px) 0 0; }
.section h2 { font: 700 clamp(28px, 3.6vw, 40px)/1.1 "Bricolage", sans-serif; letter-spacing: -0.025em; margin: 0 0 16px; max-width: 22ch; }
.section h3 { font: 650 20px/1.3 "Bricolage", sans-serif; margin: 28px 0 8px; }
.section p, .section li { max-width: 68ch; }
.section p { margin: 0 0 14px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; padding-top: 14px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); display: block; font: 700 34px/1 "Bricolage", sans-serif; margin-bottom: 10px; }
.steps strong { display: block; margin-bottom: 4px; }
.leaks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; margin-top: 20px; }
.leaks div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.leaks dt { font-weight: 600; }
.leaks dd { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style-position: outside; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; max-width: 760px; }
.plan { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.plan.featured { border: 2px solid var(--ink); }
.plan h3 { margin: 0 0 4px; }
.plan .price { font: 700 40px/1.1 "Bricolage", sans-serif; margin: 8px 0 2px; }
.plan .price small { font: 400 15px "Instrument", sans-serif; color: var(--muted); }
.plan ul { padding-left: 18px; margin: 14px 0 20px; }
.prose h1 { font: 700 clamp(32px, 5vw, 48px)/1.1 "Bricolage", sans-serif; letter-spacing: -0.03em; margin: 24px 0 18px; }
.prose h2 { font: 650 24px/1.3 "Bricolage", sans-serif; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink); }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.related a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 15px; background: var(--sheet); }
.related a:hover { border-color: var(--ink); color: var(--ink); }

.site-foot { margin-top: 96px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* modal */
dialog.modal { border: none; border-radius: var(--radius-lg); padding: 0; width: min(460px, 100% - 32px); background: var(--sheet); color: var(--ink); box-shadow: 0 24px 60px rgba(10, 20, 40, .28); }
dialog.modal::backdrop { background: rgba(12, 18, 28, .55); }
.modal-body { padding: 28px; }
.modal-body h2 { font: 700 26px/1.15 "Bricolage", sans-serif; margin: 0 0 8px; letter-spacing: -0.02em; }
.modal-body p { margin: 0 0 14px; color: var(--muted); }
.modal-body ul { margin: 0 0 18px; padding-left: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 15px; }
.field input { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.modal-msg { min-height: 1.4em; font-size: 15px; margin-top: 10px; }
.modal-msg.error { color: var(--warn); }
.linkish { background: none; border: none; padding: 0; color: var(--cobalt); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.license-box { font: 600 20px/1.4 "Instrument", sans-serif; letter-spacing: .04em; padding: 14px 16px; border-radius: 10px; background: var(--paper); border: 1px dashed var(--ink); word-break: break-all; }
