:root {
  color-scheme: light;
  --ink: #251c35;
  --muted: #665f72;
  --purple: #5934bd;
  --dark-purple: #432391;
  --line: #dedbe5;
  --bg: #faf9fc;
  --soft: #f2edf9;
  --radius: 16px;
  font: 100% Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 21px; height: 21px; flex: none; }
img { display: block; max-width: 100%; }
:where(button, a, input, select, summary):focus-visible { outline: 3px solid #8157da; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 12px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .shell, .footer-inner { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.header-inner { display: flex; gap: 40px; align-items: center; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.22rem; font-weight: 800; letter-spacing: -.065em; white-space: nowrap; }
.brand strong { color: var(--purple); }
.header nav { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.header nav a, .header-action { font-size: .94rem; font-weight: 600; }
.header nav a { padding-block: 10px; }
.header nav a:hover, .header nav a[aria-current], .footer-nav a:hover, .back:hover { color: var(--purple); text-decoration: underline; text-underline-offset: .26em; }
.header-action { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); border: 1px solid #d5cde3; background: #fff; border-radius: 9px; padding: 10px 16px; }
.header-action:hover:not(:disabled) { background: var(--soft); }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 9px; padding: 13px 19px; background: var(--purple); color: white; font-weight: 650; line-height: 1.3; }
.primary:hover:not(:disabled) { background: var(--dark-purple); }
.primary svg { width: 17px; height: 17px; }

.hero { display: grid; position: relative; isolation: isolate; overflow: hidden; grid-template-columns: 49% 51%; margin-top: 30px; border-radius: 23px; background: #e6dcfa; }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: clamp(34px, 4.6vw, 64px); }
.hero h1 { margin: 0; font-size: clamp(3.3rem, 5.9vw, 5rem); font-weight: 660; letter-spacing: -.072em; line-height: .96; }
.hero h1 em { color: #54318e; font: italic 1.11em/.95 "Instrument Serif", Georgia, "Times New Roman", serif; letter-spacing: -.065em; }
.hero p { max-width: 370px; color: #4d405c; line-height: 1.55; font-size: 1.06rem; margin: 20px 0 22px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 22px; }
.hero-action { background: #32233f; }
.hero-action:hover { background: #47315e; }
.quiet-link { font-weight: 600; text-decoration: underline; text-underline-offset: .3em; }
.hero-image { min-width: 0; position: relative; }
.hero-image img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, #e6dcfa, transparent 15%); }

.tools { padding: 40px 0 48px; scroll-margin-top: 18px; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 19px; }
.section-top > div { display: flex; align-items: baseline; gap: 16px; }
.section-top h2, .how h2, .tool-picker h2 { font-size: clamp(1.7rem, 3.5vw, 2.25rem); letter-spacing: -.055em; line-height: 1.15; margin: 0; }
.section-top p, .how p { color: var(--muted); line-height: 1.5; margin: 0; }
.section-top p { font-size: .9rem; }
.search { display: flex; align-items: center; gap: 11px; border: 1px solid #d5d0dc; border-radius: 10px; background: white; padding-inline: 14px; color: var(--muted); }
.search input { width: min(24vw, 260px); min-height: 45px; border: none; background: transparent; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }
.search svg { width: 18px; height: 18px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-bottom: 18px; }
.filter { min-height: 38px; padding: 6px 15px; font-size: .9rem; border-radius: 999px; border: 1px solid var(--line); background: white; color: #51495e; font-weight: 550; }
.filter:hover { border-color: #aa99c7; }
.filter[aria-pressed=true] { background: #352540; color: white; border-color: #352540; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.card { display: flex; min-width: 0; align-items: flex-start; gap: 15px; min-height: 104px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: white; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #a490c3; box-shadow: 0 4px 14px #2917370e; }
.card-copy { min-width: 0; }
.card-title { display: block; font-weight: 680; font-size: 1.06rem; letter-spacing: -.026em; margin: 1px 0 5px; }
.card-description { display: block; color: var(--muted); font-size: .93rem; line-height: 1.42; }
.tool-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: none; border-radius: 12px; background: var(--tone, #eee5fc); color: var(--color, #6636aa); }
.violet { --tone: #eee5fc; --color: #6636aa; }
.blue { --tone: #e5edfa; --color: #315baa; }
.amber { --tone: #feeddc; --color: #96551e; }
.mint { --tone: #e1f2e9; --color: #236744; }
.rose { --tone: #f9e7ed; --color: #a54060; }
.sky { --tone: #e0f0f4; --color: #226479; }
.empty { border: 1px solid var(--line); border-radius: var(--radius); text-align: center; background: white; padding: 33px 14px; }
.reset-search { border: 0; text-decoration: underline; background: none; color: var(--purple); font: inherit; }
.how { padding: 26px 30px; background: #efeaf5; border-radius: var(--radius); margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 22px; }
.step h3 { font-size: 1.05rem; margin: 12px 0 5px; }
.step p { font-size: 1rem; }
.footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 86px; padding-block: 18px; color: var(--muted); font-size: .9rem; }
.footer .brand { color: var(--ink); font-size: 1rem; }
.footer-nav { margin-inline-start: auto; }

.work { max-width: 900px; min-height: 72vh; padding: 32px 0 54px; }
.work:has(.workspace-layout) { max-width: 1100px; }
.back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; color: var(--muted); font-size: .94rem; font-weight: 550; }
.back svg { width: 16px; height: 16px; }
.work-head { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.work-head .tool-icon { width: 58px; height: 58px; border-radius: 15px; }
.work-head .tool-icon svg { height: 27px; width: 27px; }
.work-head h1 { margin: 0 0 6px; letter-spacing: -.055em; font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; }
.work-head p { color: var(--muted); margin: 0; line-height: 1.55; }
.workspace-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1.55fr) minmax(265px, 1fr); gap: 20px; }
.work-body { min-width: 0; display: grid; align-content: start; gap: 14px; }
.panel { padding: clamp(18px, 2.4vw, 28px); background: white; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel h2 { color: var(--ink); font-size: 1.25rem; letter-spacing: -.03em; line-height: 1.25; margin: 0 0 12px; }
fieldset.panel { margin: 0; }
.picker-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.picker-heading h2 { margin: 0; }
#file-count { color: var(--muted); font-size: .88rem; }
.drop { display: grid; justify-items: center; align-content: center; padding: 24px 14px; gap: 7px; border: 1.5px dashed #ae98ce; border-radius: 12px; background: #f7f3fd; text-align: center; }
.drop.active { outline: 2px solid var(--purple); outline-offset: -2px; background: #ede4ff; }
.drop-symbol { display: grid; place-items: center; padding: 12px; margin-bottom: 3px; border-radius: 13px; background: #e9dff8; color: var(--dark-purple); }
.drop-symbol svg { width: 24px; height: 24px; }
.drop strong { font-size: 1.15rem; letter-spacing: -.025em; }
.drop p, .privacy, .help { margin: 0; color: var(--muted); line-height: 1.5; font-size: .94rem; }
.drop button { margin-top: 7px; }
.compact .drop { padding: 12px 14px; }
.compact .drop-symbol, .compact .drop strong { display: none; }
.privacy { display: flex; align-items: center; gap: 7px; }
.privacy svg { width: 16px; height: 16px; color: var(--purple); }
.row { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row .tool-icon { width: 34px; height: 38px; border-radius: 7px; }
.file-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.file-text strong { display: block; font-size: .95rem; }
.file-text small { font-size: .85rem; color: var(--muted); }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); flex: none; }
.icon-button svg { width: 17px; height: 17px; }
.icon-button:hover:not(:disabled) { background: var(--soft); }
.options { display: flex; flex-wrap: wrap; gap: 14px; }
.field { display: grid; align-content: start; gap: 7px; flex: 1; min-width: min(145px, 100%); color: var(--ink); font-weight: 650; font-size: .94rem; }
.field input, .field select { border: 1px solid #d6cfdf; border-radius: 8px; min-height: 44px; width: 100%; min-width: 0; color: var(--ink); padding: 8px 10px; background: white; font-weight: 400; }
.field select { appearance: none; padding-inline-end: 34px; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 3 5 5 5-5' stroke='%23665f72' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; }
.help { margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.status, .file-feedback { margin: 0; line-height: 1.5; }
.status:empty, .file-feedback:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.status.error, .file-feedback:not(:empty) { padding: 10px 13px; border-radius: 8px; background: #fff0ed; color: #902e28; }
.file-feedback:not(:empty) { margin-top: 12px; }
.result { background: #eef8f1; border-color: #c3e2cc; }
.result p { margin: 0 0 12px; overflow-wrap: anywhere; }
.workflow-step { border: 0; padding: 0 0 1rem; margin: 0 0 1rem; border-bottom: 1px solid #e7e1ee; min-width: 0; }
.workflow-step .options { margin: .65rem 0; }
.workflow-step .help { margin: 0 0 1rem; }
.workflow-step .header-action, #add-step { cursor: pointer; }
.workflow-step .header-action:disabled, #add-step:disabled { opacity: .55; cursor: default; }
.redaction-preview { margin: 1rem 0 0; }
.redaction-preview figcaption { font-weight: 700; margin-bottom: .5rem; }
.redaction-preview div { position: relative; width: fit-content; max-width: min(100%, 28rem); overflow: hidden; outline: 1px solid #dfdae7; }
.redaction-preview img { display: block; max-width: 100%; height: auto; }
.redaction-preview span { position: absolute; background: #15121a; pointer-events: none; }
.redaction-preview p:empty { display: none; }

.workflow-link { color: var(--dark-purple); text-decoration: underline; }

.guide{margin-top:24px;line-height:1.6;color:var(--muted)}
.guide h2{color:var(--ink)}
.guide p{margin:0 0 16px}
.guide p:last-child,.guide ol:last-child{margin-bottom:0}
.guide ol{padding-inline-start:1.5rem}
.guide li+li{margin-top:.35rem}
.guide a{color:var(--dark-purple);text-decoration:underline;text-underline-offset:.2em}
.guide-links,.footer-nav{display:flex;flex-wrap:wrap;gap:8px 18px}
.guide-links{margin:0;padding:0;list-style:none}
.guide-links li+li{margin:0}

.tool-picker{margin:0 0 24px}
.tool-picker dl{margin:0}
.tool-picker dl div+div,.tool-answers section+section{margin-top:.85rem}
.tool-picker dt,.tool-answers h3{color:var(--ink);font-size:1rem;font-weight:750;margin:0}
.tool-picker dd{margin:.14rem 0 0}
.tool-answers h3+p{margin:.25rem 0 0}

.reading { max-width: 76ch; }
.reading section + section { margin-top: 1.45rem; }
.reading h2 { line-height: 1.35; }
.guide .further-reading { margin-top: 1rem; }
.guide code { color: var(--ink); background: #f4f0fa; padding: .1em .35em; border-radius: .25rem; }

.workspace-layout .how-to { margin: 0; background: #f2eef7; }
.how-to ol { padding-left: 1.35rem; }
.how-to li { padding-left: .2rem; }
.how-to li::marker { color: var(--purple); font-weight: 700; }
.reading { max-width: 100%; }
.reading section { max-width: 70ch; }
.footer-nav a { padding-block: 4px; }
@media (max-width: 950px) {
  .header-inner, .shell, .footer-inner { width: calc(100% - 48px); }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-copy { padding: 38px 30px; }
  .footer-nav { margin-inline-start: 0; }
}
@media (max-width: 720px) {
  .header-inner, .shell, .footer-inner { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; gap: 12px; flex-wrap: wrap; }
  .header nav { gap: 16px; }
  .header .header-action { display: none; }
  .hero { margin-top: 18px; grid-template-columns: 1fr; }
  .hero-copy { padding: 27px 24px 15px; }
  .hero h1 { font-size: clamp(3rem, 9vw, 4.1rem); }
  .hero h1 br { display: none; }
  .hero h1 em::before { content: " "; }
  .hero p { max-width: 45ch; margin: 14px 0 17px; }
  .hero-image { height: clamp(150px, 33vw, 210px); }
  .hero-image img { object-fit: contain; }
  .hero-image::after { background: linear-gradient(to bottom, #e6dcfa, transparent 12%); }
  .tools { padding: 28px 0; }
  .section-top { align-items: stretch; flex-direction: column; gap: 14px; margin-bottom: 14px; }
  .search input { width: 100%; }
  .filters { gap: 6px; padding-bottom: 14px; }
  .filter { padding-inline: 12px; }
  .card { min-height: auto; padding: 15px; gap: 11px; }
  .workspace-layout { grid-template-columns: 1fr; gap: 20px; }
  .work { padding: 23px 0 36px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { display: grid; grid-template-columns: 43px 1fr; column-gap: 12px; }
  .step .tool-icon { grid-row: span 2; }
  .step h3 { margin: 0 0 3px; }
  .footer-nav { width: 100%; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; gap: 8px; }
  .card { align-items: center; }
  .brand { font-size: 1rem; gap: 6px; }
  .header .brand img { width: 28px; height: 28px; }
  .header nav { gap: 13px; }
  .header nav a { font-size: .875rem; }
  .footer-inner { gap: 10px 16px; }
  .footer-nav { gap: 2px 14px; }
  .row { gap: 4px; }
  .row .tool-icon { display: none; }
  .work-head { align-items: flex-start; gap: 10px; }
  .work-head .tool-icon { width: 42px; height: 42px; border-radius: 10px; }
  .work-head .tool-icon svg { width: 21px; height: 21px; }
}
@media (max-width: 350px) {
  .header-inner { gap: 6px; }
  .header nav { gap: 8px; }
  .hero-copy { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

#analytics-settings { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
#analytics-settings:hover { text-decoration: underline; }
#analytics-choice { position: fixed; z-index: 20; inset: auto 1rem 1rem auto; width: min(25rem, calc(100% - 2rem)); padding: 1.1rem; border: 1px solid #c8bed8; border-radius: 1rem; background: #fff; color: #272334; box-shadow: 0 6px 32px #28203329; }
#analytics-choice p { margin: .4rem 0 .8rem; }
#analytics-choice button { font: inherit; padding: .45rem .8rem; color: #452678; background: #f5f1fb; border: 1px solid #c8bed8; border-radius: .45rem; cursor: pointer; }
#analytics-choice[hidden], #analytics-settings[hidden] { display: none; }
