:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --white: #fffdf7;
  --ink: #1c2e28;
  --muted: #495a51;
  --pine: #18392e;
  --deep: #142e26;
  --deep-hover: #224c3d;
  --leaf: #dce9ba;
  --moss: #314d37;
  --line: #bbc4b7;
  --edge: #7c8d81;
  --soft: #e6ecdf;
  --error: #9a3031;
  --focus: #286bba;
  --display: var(--body);
  --body: 'Segoe UI', system-ui, sans-serif;
  --mono: 'Cascadia Code', Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-block-start: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
::selection { color: var(--deep); background: #c3df91; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
:where(.site-header, .tool-intro, .site-footer) :focus-visible { outline-color: #92cdfd; }
:where(h1,h2,h3,h4,p,figure,dl) { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:disabled { opacity: .58; cursor: default; }
code { font: .93em/1.5 var(--mono); color: var(--pine); overflow-wrap: anywhere; }
.frame { width: min(100% - 4rem, 74rem); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0;
}
.skip-link { position: fixed; top: .7rem; left: 1rem; z-index: 3; padding: .65rem 1rem; background: var(--white); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--deep); color: #f8faee; }
.topbar { min-height: 4.65rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; color: inherit; font-size: 1.18rem; font-weight: 710; letter-spacing: -.022em; text-decoration: none; width: fit-content; }
.mark { display: inline-block; position: relative; flex: 0 0 1.75rem; height: 1.75rem; border: 1px solid currentColor; border-radius: .21rem; background: var(--leaf); color: var(--deep); }
.mark::before { content: ''; position: absolute; inset: .26rem .38rem .31rem .39rem; border: 1.5px solid currentColor; border-radius: 1px; }
.mark::after { content: ''; position: absolute; width: .69rem; height: .38rem; inset: .49rem auto auto .64rem; border: solid currentColor; border-width: 0 0 2px 2px; box-shadow: -1px 1px var(--leaf); transform: rotate(-45deg); }
nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2.15rem); }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #e4ecdd; font-size: .9rem; font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--leaf); text-decoration: underline; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 6vw, 5.4rem); align-items: center;
  padding-block: clamp(3rem, 6vw, 5.25rem) clamp(3.3rem, 6.7vw, 5.7rem);
}
h1,h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.04em; line-height: 1.045; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.5vw, 5.7rem); text-wrap: initial; }
h1 em { font-weight: inherit; font-style:normal; color: #385846; white-space: nowrap; }
.hero-copy > p { max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.16rem); margin-top: 1.45rem; }
.hero-actions { display: flex; gap: .65rem 1rem; flex-wrap: wrap; margin-top: 1.7rem; align-items: center; }
.button {
  display: inline-flex; min-height: 2.93rem; justify-content: center; align-items: center; gap: .7rem;
  padding: .55rem 1rem; font-size: .895rem; line-height: 1.25; font-weight: 700;
  text-align: center; text-decoration: none; cursor: pointer; background: transparent; border: 1px solid transparent; border-radius: .36rem;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.button.primary { background: var(--pine); color: #fbfcf3; border-color: var(--pine); }
.button.primary:hover:where(:enabled, a) { background: var(--deep-hover); border-color: var(--deep-hover); }
.button.secondary { color: var(--pine); border-color: var(--edge); }
.button.secondary:hover:enabled { background: var(--soft); }
.button.text-button { color: var(--pine); padding-inline: .55rem; }
.button.text-button:hover:enabled { text-decoration: underline; text-underline-offset: .23em; }
.arrow { display: inline-block; width: .82rem; height: .76rem; flex-shrink: 0; position: relative; }
.arrow::before { content: ''; position: absolute; left: 0; top: .35rem; width: .72rem; height: 1.5px; background: currentColor; }
.arrow::after { content: ''; position: absolute; right: .05rem; top: .18rem; width: .38rem; height: .38rem; transform: rotate(45deg); border: solid currentColor; border-width: 1.5px 1.5px 0 0; }
.arrow.down { transform: rotate(90deg); }
.arrow.up { transform: rotate(-90deg); }

.proof-sheet {
  position: relative; isolation: isolate; color: var(--ink); background: var(--white); border-radius: .8rem; padding-inline: clamp(1rem, 2.5vw, 1.6rem);
  box-shadow: 0 22px 48px #253a2930; transform: rotate(-2deg);
}
.proof-sheet::before { content: ''; position: absolute; inset: .5rem -1rem -.78rem .88rem; background: var(--leaf); border: 1px solid #acbd91; z-index: -2; border-radius: .8rem; transform: rotate(4deg); }
.proof-sheet::after { content: ''; position: absolute; inset: 0; background: var(--white); z-index: -1; border-radius: inherit; }
.proof-sheet figcaption { display: flex; gap: .6rem; justify-content: space-between; padding: .85rem 0 .65rem; font-size: .79rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.sheet-version { font-family: var(--mono); font-size: .76rem; color: var(--muted); font-weight: 500; }
.sheet-title { display: grid; gap: .16rem; margin: .85rem 0 .65rem; }
.sheet-title strong { font: 400 clamp(1.55rem, 3vw, 2.3rem)/1.1 var(--display); }
.sheet-title span, .sheet-foot { color: var(--muted); font-size: .8rem; }
.proof-row { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: .55rem; min-height: 3.45rem; border-top: 1px solid var(--line); }
.proof-id, .issue-id { color: #394e41; font: .78rem/1.3 var(--mono); overflow-wrap: anywhere; }
.proof-content { display: grid; gap: .08rem; }
.proof-content strong { font-size: .875rem; line-height: 1.25; font-weight: 710; }
.proof-content span { color: var(--muted); font-size: .75rem; }
.proof-state { display: inline-flex; align-items: center; gap: .35rem; font-size: .73rem; font-weight: 700; }
.proof-state.confirmed { color: #23543f; }
.proof-state.open { color: #8b382e; }
.proof-state.conflict { color: #685026; }
.state-dot { width: .45rem; height: .45rem; border: 1px solid currentColor; background: currentColor; border-radius: 50%; }
.proof-state.open .state-dot { background: transparent; border-radius: .06rem; }
.proof-state.conflict .state-dot { transform: rotate(45deg); border-radius: .06rem; }
.sheet-foot { border-top: 1px solid var(--line); padding-block: .65rem .85rem; }

.tool-band { background: var(--deep); color: #f8faee; }
.workspace { padding-block: clamp(2.3rem, 5vw, 4rem) clamp(2.7rem, 6vw, 4.4rem); }
.tool-intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.tool-intro h2, .method h2, .faq h2, .report h2 { font-size: clamp(2.15rem, 4.25vw, 3.6rem); }
.tool-intro p { color: #d5e4d6; max-width: 58ch; margin-top: .6rem; }
.button.dark-secondary { color: #edf5df; border-color: #99ab9c; flex-shrink: 0; }
.button.dark-secondary:hover:enabled { background: #27493b; }
.comparison, .report, .saved-panel { border-radius: .75rem; background: var(--white); color: var(--ink); }
.comparison { padding: clamp(1rem, 3.5vw, 2rem); }
.dataset-list, .traces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 2.4rem); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 1rem; font-size: 1.05rem; font-weight: 730; }
.dataset-tab { display: inline-block; padding: .19rem .5rem; margin-right: .35rem; background: #dce9d7; color: #264b35; border-radius: .2rem; font-size: .75rem; }
.dataset-tab.after { background: #e7e7cb; color: #4e5229; }
label { display: block; width: fit-content; font-weight: 690; font-size: .87rem; margin-bottom: .35rem; }
textarea, input {
  display: block; width: 100%; min-width: 0; color: var(--ink); background: #fffefa;
  caret-color: var(--pine); border: 1px solid var(--edge); border-radius: .36rem; padding: .62rem .7rem;
}
input { min-height: 2.75rem; }
textarea { resize: vertical; font: .88rem/1.55 var(--mono); tab-size: 4; scrollbar-color: #829888 #f1f4ec; }
textarea::placeholder, input::placeholder { opacity: 1; color: #536057; }
textarea[aria-invalid="true"] { border-color: var(--error); }
.hint { color: var(--muted); font-size: .86rem; }
fieldset .hint { margin-top: .42rem; }
.errors { color: var(--error); padding-left: 1.2rem; margin: .45rem 0 0; font-size: .88rem; }
.errors li + li { margin-top: .18rem; }
.form-detail { border-bottom: 1px solid var(--line); }
.form-detail:first-of-type { border-top: 1px solid var(--line); margin-top: 1.35rem; }
summary { min-height: 2.8rem; padding: .61rem 0; font-weight: 680; cursor: pointer; }
summary:hover { color: var(--pine); text-decoration: underline; text-underline-offset: .22em; }
.optional { color: var(--muted); font-size: .83rem; font-weight: 480; margin-inline-start: .35rem; }
.details-body { padding: .1rem 0 1rem; color: var(--muted); font-size: .915rem; max-width: 76ch; }
.details-body p + p { margin-top: .55rem; }
.details-body pre { margin: .55rem 0; padding: .6rem .7rem; overflow-wrap: anywhere; white-space: pre-wrap; background: var(--soft); border-radius: .24rem; }
.scope-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; max-width: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; margin-top: 1.2rem; }
.form-actions p:empty, #report-status:empty, #report-kind:empty { display: none; }

.saved-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; margin-top: .9rem; padding: .9rem 1rem; overflow-wrap: anywhere; }
.saved-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.tool-status { color: #e8f2db; margin-top: .75rem; }

.report { padding: clamp(1rem, 3.25vw, 2.15rem); margin-top: 2rem; overflow-wrap: anywhere; }
.report-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem 1rem; }
.report-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.account-summary > p { max-width: 66ch; }
.account-summary > strong { display: block; margin-block-start: .85rem; }
.account-summary-preview { white-space: pre-wrap; margin-block: .35rem .9rem; }
.account-summary a { display: inline-block; margin-block-start: .3rem; }
.account-summary a[hidden] { display: none; }
.report-heading .hint, #report-status { margin-top: .55rem; }
.report-scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding: .75rem 0; margin-top: .9rem; border-block: 1px solid var(--line); }
.report-scope dt, .report-scope dd { font-size: .87rem; }
dt { font-weight: 700; }
dd { color: var(--muted); margin: 0; }
.report-boundary { color: var(--muted); margin-block: .9rem 1.15rem; max-width: 70ch; font-size: .9rem; }
.counts { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 0; margin: 0; list-style: none; border-block: 1px solid var(--line); }
.counts li { display: flex; flex-direction: column; align-items: start; gap: .2rem; padding: .55rem .65rem; background: #f0f1e8; min-width: 0; }
.counts li + li { border-left: 1px solid var(--line); }
.counts li span { font-size: .79rem; font-weight: 660; }
.counts li strong { font: 400 1.55rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0 .25rem; }
.filters button { min-height: 2.75rem; padding-inline: .67rem; font-size: .82rem; }
.filters button[aria-pressed="true"] { background: var(--pine); color: white; border-color: var(--pine); }
.manual-copy { margin-top: .75rem; }
.finding-group { margin-top: 1.55rem; }
.finding-group > h3 { font: 400 1.65rem/1.1 var(--display); border-bottom: 1px solid var(--edge); padding-bottom: .5rem; }
.finding { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.finding h4 { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem; font-size: 1rem; }
.issue-id { background: var(--soft); border-radius: .2rem; padding: .16rem .36rem; }
.reason { color: var(--muted); font-size: .89rem; margin-top: .3rem; }
.finding summary { font-size: .87rem; color: var(--pine); width: fit-content; }
.traces { align-items: start; gap: .9rem; padding-block: .25rem .75rem; }
.traces h5 { margin: 0 0 .4rem; font-size: .89rem; }
.record { padding: .58rem; background: #f2f1e9; border-radius: .3rem; }
.record + .record { margin-top: .4rem; }
.record p { font-size: .875rem; font-weight: 690; }
.record dl { margin-top: .35rem; font-size: .815rem; }
.record dl > div + div { margin-top: .27rem; }
.source-location { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-block: .35rem; }
.source-location .hint { margin: 0; }
.finding-note { margin-top: .35rem; }
.finding-note label { width: 100%; }
.finding-note textarea { margin-top: .34rem; min-height: 4.5rem; font: .93rem/1.45 var(--body); }
.print-note { display: none; }

.method, .faq { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(1.5rem, 6vw, 6rem); }
.method { padding-block: clamp(2.9rem, 7vw, 6rem) clamp(2.3rem, 5vw, 4rem); }
.method h2, .faq h2 { text-wrap: initial; }
.method-copy p { color: var(--muted); margin-top: .85rem; max-width: 43ch; }
.method-list { list-style: none; counter-reset: method; margin: 0; padding: 0; border-top: 1px solid var(--edge); }
.method-list li { counter-increment: method; display: grid; grid-template-columns: 2rem minmax(0,1fr); gap: .15rem .7rem; padding: .83rem 0; border-bottom: 1px solid var(--line); }
.method-list li::before { grid-row: span 2; content: counter(method, decimal-leading-zero); padding-top: .15rem; color: var(--muted); font: .85rem/1.45 var(--mono); }
.method-list strong { font-size: 1.04rem; font-weight: 730; }
.method-list p { color: var(--muted); font-size: .93rem; }
.faq { border-top: 1px solid var(--edge); padding-block: clamp(2.4rem, 6vw, 4.75rem) clamp(3rem, 7vw, 6rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq details p { max-width: 69ch; padding: .15rem 0 .85rem; color: var(--muted); font-size: .94rem; }
.site-footer { background: var(--deep); color: #e6ede0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem; }
.footer-inner p, .footer-inner > a:last-child { color: #d5e4d6; font-size: .89rem; }

@media (max-width: 57rem) {
  .frame { width: min(100% - 3rem, 74rem); }
  .hero { gap: 1.6rem; }
  h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); }
  .proof-row { column-gap: .35rem; }
  .proof-state { font-size: .69rem; }
}
@media (max-width: 42rem) {
  .frame { width: calc(100% - 2rem); }
  .topbar { min-height: 4rem; gap: .65rem; }
  nav { gap: .65rem; }
  nav a { font-size: .79rem; }
  .wordmark { font-size: 1.04rem; gap: .44rem; }
  .mark { flex-basis: 1.65rem; height: 1.65rem; }
  .hero { grid-template-columns: 1fr; gap: 1.9rem; padding-block: 2.55rem 2.5rem; }
  h1 { font-size: clamp(2.8rem, 9.95vw, 4.4rem); }
  .hero-copy > p { margin-top: .85rem; }
  .hero-actions { margin-top: 1.1rem; }
  .proof-sheet { margin-inline: .35rem .7rem; transform: rotate(-1deg); }
  .proof-sheet::before { inset: .35rem -.4rem -.4rem .48rem; transform: rotate(2deg); }
  .sheet-title { margin-top: .65rem; }
  .proof-row { min-height: 3.15rem; }
  .tool-intro { align-items: start; flex-direction: column; }
  .dataset-list, .traces, .scope-inputs, .method, .faq { grid-template-columns: 1fr; }
  .dataset-list { gap: 1.4rem; }
  legend { margin-bottom: .65rem; }
  .report-scope { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-scope > div:first-child { grid-column: 1/-1; }
  .counts { grid-template-columns: 1fr; }
  .counts li { flex-direction: row; align-items: center; justify-content: space-between; padding: .33rem .58rem; }
  .counts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .method, .faq { gap: 1.05rem; }
  .footer-inner p { order: 1; flex-basis: 100%; }
  textarea { font-size: 1rem; }
}
@media (max-width: 22rem) {
  .frame { width: calc(100% - 1.5rem); }
  .topbar { align-items: start; flex-wrap: wrap; gap: .12rem .55rem; padding-top: .65rem; }
  nav { flex-basis: 100%; }
  h1 { font-size: 2.65rem; }
  .proof-id { font-size: .68rem; }
  .proof-content strong { font-size: .79rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  :root { color-scheme: light; }
  .no-print, .skip-link { display: none !important; }
  body, .tool-band, .report { background: white; color: #111; }
  .workspace, .report { width: auto; padding: 0; margin: 0; }
  .report { break-inside: auto; }
  .counts { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .finding, .report-scope { break-inside: avoid; }
  .finding summary { display: none; }
  .print-note { display: block; margin-top: .5rem; }
}

/* Keep product text upright, including browser form controls and print. */
*,*::before,*::after,::placeholder,::file-selector-button {font-style:normal!important;font-synthesis-style:none!important}

.hero-offer { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); max-width: 38rem; color: inherit; }
.hero-offer p { margin: 0; flex-basis: 100%; font-size: .95rem; line-height: 1.5; color: inherit; }
.hero-offer .button.secondary { color: inherit; border-color: currentColor; background: transparent; }
.hero-offer .button.secondary:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.hero-offer-link { color: inherit; font-size: .92rem; text-decoration: underline; text-underline-offset: .2em; }
