/* PaperCheck motion layer: every animation here marks a real state change (loading, step done, number arriving, result shown). No hover lifts, glows or decoration. */
header{transition:box-shadow .25s ease}header.pc-s{box-shadow:0 6px 16px rgba(0,0,0,.07)}

/* sliding tab underline */
.pc-slide{position:relative}.pc-slide button.on{border-bottom-color:transparent!important}
.pc-slide>i{position:absolute;bottom:0;height:2px;background:var(--accent);transition:left .3s cubic-bezier(.22,.61,.36,1),width .3s cubic-bezier(.22,.61,.36,1)}

/* spinner inside a button while it waits (Counting words..., Opening payment..., Confirming payment...) */
.pc-busy::before{content:"";display:inline-block;width:.9em;height:.9em;margin-right:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:pcspin .7s linear infinite}
@keyframes pcspin{to{transform:rotate(360deg)}}

/* tick: the circle draws, then the check. Used for every finished step and success message */
.pc-tick{width:1.1em;height:1.1em;flex:none;vertical-align:-3px;overflow:visible}
.pc-tick circle,.pc-tick path{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.pc-tick circle{stroke-dasharray:63;stroke-dashoffset:63;animation:pcdraw .35s ease-out forwards}
.pc-tick path{stroke-dasharray:18;stroke-dashoffset:18;animation:pcdraw .25s ease-out .3s forwards}
@keyframes pcdraw{to{stroke-dashoffset:0}}
.tip .pc-tick{margin-right:8px}

/* the steps of a running check */
.pc-stages{list-style:none;margin:12px 0 4px;padding:0}
.pc-stages li{display:flex;align-items:center;gap:10px;padding:4px 0;font-size:14px;color:var(--muted);transition:color .25s}
.pc-stages li.on,.pc-stages li.done{color:var(--fg)}
.pc-stages .ic{width:1.1em;height:1.1em;display:inline-grid;place-items:center;flex:none}
.pc-stages li.todo .ic::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--line)}
.pc-stages li.on .ic::before{content:"";width:.85em;height:.85em;border:2px solid var(--accent);border-right-color:transparent;border-radius:50%;animation:pcspin .7s linear infinite}
.pc-stages li.done .ic{color:var(--ok)}

/* the highlighter sweeps over each flagged sentence once, when the report first opens */
#paper.pc-mk mark{background-repeat:no-repeat;animation:pcmk .5s ease-out both;animation-delay:calc(var(--pi,0)*45ms)}
@keyframes pcmk{from{background-size:0 100%}to{background-size:100% 100%}}

/* things that appear below the fold on the home page */
.pc-rv{opacity:0;transform:translateY(10px);transition:opacity .5s ease-out,transform .5s ease-out}
.pc-rv.in{opacity:1;transform:none}

/* number that changes: small nudge */
.pc-bump{display:inline-block;animation:pcbump .3s ease}@keyframes pcbump{40%{transform:translateY(-2px)}}

/* FAQ: arrow turns, answer fades in */
#faq summary{list-style:none;position:relative;padding-right:24px}#faq summary::-webkit-details-marker{display:none}
#faq summary::after{content:"";position:absolute;right:4px;top:.55em;width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);transition:transform .25s}
#faq details[open]>summary::after{transform:rotate(-135deg)}
#faq details[open]>p{animation:pcfade .25s ease}

/* header free-checks bar eases when the number changes */
.words .bar i{transition:width .5s ease}

/* small line icons: single colour, 1.75 stroke */
.pc-i{width:16px;height:16px;flex:none;vertical-align:-3px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;margin-right:6px}
.pc-up{color:#1f4d3a;margin-right:10px}.pc-lock{width:14px;height:14px;color:#1f4d3a;margin-left:-18px;margin-right:4px;position:relative}
.pc-ok{color:#1f4d3a}.pc-ok path{stroke-dasharray:24;stroke-dashoffset:24;animation:pcdraw .25s ease-out forwards}
.drop{transition:border-color .2s,background-color .2s}.drop.is-dragging{border-color:#1f4d3a;background:#eef5f0}
.drop.is-dragging .pc-up{animation:pcbob .6s ease-in-out infinite alternate}@keyframes pcbob{to{transform:translateY(-2px)}}
.pc-lock{animation:pcpop .2s ease-out}@keyframes pcpop{from{transform:scale(.85);opacity:0}to{transform:none;opacity:1}}

.pc-clock{color:#b45309}.pc-hand{transform-origin:12px 12px;animation:pcspin 6s linear infinite}
.pc-al{animation:pcfade .15s ease-out}

.pc-read{position:absolute;left:0;bottom:-1px;height:3px;width:0;background:var(--accent);pointer-events:none}.pc-read[hidden]{display:none}

@media (prefers-reduced-motion:reduce){.pc-rv{opacity:1;transform:none;transition:none}*{animation:none!important}.pc-tick circle,.pc-tick path{stroke-dashoffset:0}}

/* your updated paper: one column, rewritten sentences tinted, tap one to see the old sentence */
.chn-paper{white-space:pre-wrap;line-height:1.75;overflow-wrap:anywhere}
.chn{background:color-mix(in srgb,var(--ok) 20%,transparent);border-radius:2px;padding:0 1px}
.chn-paper .chn{cursor:pointer}.chn-paper .chn:focus-visible{outline:2px solid var(--accent)}
.chn-was{display:block;margin:4px 0 8px;padding:8px 10px;font-size:14px;line-height:1.5;color:var(--muted);text-decoration:line-through;text-decoration-color:var(--bad);background:var(--soft);border-radius:4px}
