/* Canon — "proofing desk, in colour".
   Paper, ink and an editor's pencil, now with a vivid indigo→violet→coral accent,
   depth, and motion that explains what Canon is doing. */
:root {
  --paper: #f4f5fa; --sheet: #ffffff; --ink: #141b2d; --ink-2: #3a4357; --muted: #646e85; --faint: #98a2b3;
  --rule: #e4e7ef; --rule-2: #d0d5e0;
  --pencil: #3b5bdb; --pencil-ink: #ffffff; --pencil-wash: #eaefff; --pencil-line: #bccaf7;
  --violet: #6d4aff; --violet-wash: #f0ebff; --coral: #ff6b4a; --coral-wash: #fff0eb;
  --red: #d1361b; --red-wash: #fdece8; --amber: #b8650a; --amber-wash: #fdf2df; --slate: #4b5565; --slate-wash: #eff1f5;
  --green: #1f8a57; --green-wash: #e2f5eb; --teal: #0f8b8d; --teal-wash: #e0f4f4;
  --grad: linear-gradient(115deg, #3b5bdb 0%, #6d4aff 52%, #ff6b4a 100%);
  --grad-soft: linear-gradient(115deg, #eef2ff 0%, #f3eeff 55%, #fff1ec 100%);
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --lift: 0 1px 2px rgba(20, 27, 45, .05), 0 10px 30px -14px rgba(20, 27, 45, .22);
  --lift-2: 0 2px 4px rgba(20, 27, 45, .06), 0 22px 48px -20px rgba(59, 91, 219, .35);
  --ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --proof: "Source Serif 4", Georgia, "Times New Roman", serif;
  --serif: var(--proof);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--ui); font-feature-settings: "tnum" 1;
  background-image: radial-gradient(1200px 500px at 100% -10%, rgba(109, 74, 255, .07), transparent 60%),
                    radial-gradient(900px 420px at -10% 0%, rgba(59, 91, 219, .07), transparent 60%);
  background-attachment: fixed; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--pencil); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .45rem; line-height: 1.15; letter-spacing: -.015em; }
h1 { font-size: 2.15rem; font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: 1.14rem; font-weight: 650; }
h3 { font-size: .98rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--muted); }
.faint { color: var(--faint); }
::selection { background: #dfe6ff; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- top bar ---------- */
.top { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(208, 213, 224, .7); position: sticky; top: 0; z-index: 30; }
.top-in { max-width: 1240px; margin: 0 auto; padding: .6rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 750; font-size: 1.15rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; display: grid; place-items: center;
  font: 700 15px/1 var(--proof); position: relative; box-shadow: 0 6px 16px -6px rgba(109, 74, 255, .7); }
.logo-mark::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 6px; height: 2px; background: rgba(255, 255, 255, .75); border-radius: 2px; }
.nav { display: flex; gap: .1rem; flex: 1; min-width: 0; }
.nav a { white-space: nowrap; color: var(--muted); padding: .42rem .75rem; border-radius: 99px; font-weight: 600; font-size: .9rem; transition: color .15s, background .15s; position: relative; }
.nav a:hover { color: var(--ink); background: rgba(59, 91, 219, .07); text-decoration: none; }
.nav a.on { color: var(--pencil); background: var(--pencil-wash); }
.nav .pill { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--coral);
  color: #fff; font-size: .68rem; font-weight: 700; margin-left: .3rem; vertical-align: 1px; }
.who { display: flex; align-items: center; gap: .6rem; font-size: .86rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .76rem; flex: none; }
.avatar.agency { background: linear-gradient(135deg, #0f8b8d, #22a06b); }
.avatar.reviewer { background: linear-gradient(135deg, #6d4aff, #b14aff); }
.avatar.legal { background: linear-gradient(135deg, #b8650a, #ff6b4a); }
.avatar.admin { background: linear-gradient(135deg, #141b2d, #3b5bdb); }
.who-name { line-height: 1.2; }
.who-name b { display: block; font-weight: 650; }

main { max-width: 1240px; width: 100%; margin: 0 auto; padding: 2rem 1.5rem 4.5rem; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.page-head p { margin: .3rem 0 0; color: var(--muted); max-width: 68ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--violet); margin-bottom: .45rem; }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--grad); }

/* ---------- surfaces ---------- */
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.3rem; box-shadow: 0 1px 2px rgba(20, 27, 45, .04); }
.card + .card { margin-top: 1rem; }
.grid > .card + .card, .accounts > * { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .8rem; flex-wrap: wrap; }
.lift { transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--lift-2); border-color: var(--pencil-line); }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.review { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 1.5rem; }
.stack > * + * { margin-top: 1rem; }
.sticky { position: sticky; top: 78px; }
.soft { background: var(--grad-soft); border-color: #e4defa; }
.dark { background: #10172a; color: #e9ecf5; border-color: #10172a; }
.dark small, .dark .muted { color: #a8b0c6; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--rule-2); background: var(--sheet); color: var(--ink);
  padding: .55rem 1rem; border-radius: 10px; font: 650 .88rem/1.2 var(--ui); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s; }
.btn:hover { border-color: var(--ink-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(115deg, #3b5bdb, #6d4aff); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px rgba(91, 74, 255, .9); }
.btn.primary:hover { box-shadow: 0 10px 26px -10px rgba(91, 74, 255, 1); filter: brightness(1.06); }
.btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { color: var(--red); border-color: #f2c5bb; }
.btn.small { padding: .36rem .7rem; font-size: .8rem; border-radius: 8px; }
.btn.big { padding: .8rem 1.35rem; font-size: 1rem; border-radius: 12px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: rgba(20, 27, 45, .05); }
.btn.light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn.light:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; box-shadow: none; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
input[type=text], input[type=date], input[type=file], select, textarea { width: 100%; border: 1px solid var(--rule-2); border-radius: 10px; padding: .58rem .75rem; font: inherit; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input[type=file] { padding: .5rem; background: var(--paper); cursor: pointer; }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pencil); box-shadow: 0 0 0 4px rgba(59, 91, 219, .14); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, .account:focus-visible { outline: 2px solid var(--pencil); outline-offset: 2px; }
.field + .field { margin-top: .9rem; }
.hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
details > summary { cursor: pointer; color: var(--ink-2); font-size: .84rem; font-weight: 650; list-style: none; padding: .2rem 0; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+"; display: inline-block; width: 1rem; color: var(--pencil); font-weight: 700; transition: transform .15s; }
details[open] > summary::before { content: "−"; }
.drop { border: 2px dashed var(--pencil-line); border-radius: var(--r-md); padding: 1.1rem; background: #f8f9ff; text-align: center; transition: background .15s, border-color .15s; }
.drop:hover, .drop.over { background: var(--pencil-wash); border-color: var(--pencil); }
.drop input[type=file] { background: transparent; border: 0; text-align: center; }
.tabs { display: inline-flex; background: var(--slate-wash); padding: 4px; border-radius: 12px; gap: 2px; flex-wrap: wrap; }
.tabs a { padding: .45rem .9rem; border-radius: 9px; color: var(--muted); font-weight: 650; font-size: .88rem; }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 27, 45, .12); }

/* ---------- tags ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .56rem; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--slate-wash); color: var(--slate); white-space: nowrap; }
.badge.high { background: var(--red-wash); color: var(--red); }
.badge.medium { background: var(--amber-wash); color: var(--amber); }
.badge.low { background: var(--slate-wash); color: var(--slate); }
.badge.ok, .badge.approved { background: var(--green-wash); color: var(--green); }
.badge.accent, .badge.in_review { background: var(--pencil-wash); color: var(--pencil); }
.badge.draft { background: var(--slate-wash); color: var(--muted); }
.badge.changes_requested { background: var(--amber-wash); color: var(--amber); }
.badge.ai { background: var(--violet-wash); color: var(--violet); }
.badge.rule { background: var(--pencil-wash); color: var(--pencil); }
.badge.visual { background: var(--teal-wash); color: var(--teal); }
.badge.fast { background: var(--green-wash); color: var(--green); }
.badge.standard { background: var(--pencil-wash); color: var(--pencil); }
.badge.legal { background: var(--coral-wash); color: #c4401f; }
.badge.solid { background: var(--ink); color: #fff; }
.badge .dotx { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip { font: 700 .74rem/1 var(--ui); letter-spacing: .01em; background: var(--sheet); border: 1px solid var(--rule-2); padding: .22rem .4rem; border-radius: 6px; color: var(--ink-2); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); }
.dot.on { background: #34c47e; box-shadow: 0 0 0 3px rgba(52, 196, 126, .25); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px rgba(52, 196, 126, .08); } }

/* ---------- flash (toast-like) ---------- */
.flash { border-radius: var(--r-md); padding: .75rem 1rem .75rem 2.6rem; margin-bottom: 1.1rem; border: 1px solid; font-weight: 600; font-size: .92rem; position: relative; box-shadow: var(--lift); }
.flash::before { position: absolute; left: .9rem; top: .72rem; font-weight: 800; }
.flash.success { background: #f1fbf5; border-color: #bfe5cf; color: #17663f; }
.flash.success::before { content: "✓"; }
.flash.error { background: #fff4f1; border-color: #f4c7bc; color: #a82b14; }
.flash.error::before { content: "!"; }
.flash.info { background: #f3f6ff; border-color: var(--pencil-line); color: #2a45b0; }
.flash.info::before { content: "i"; font-family: var(--proof); font-style: italic; }
main > .flash { animation: drop .35s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- the proof sheet (signature element) ---------- */
.doc { font-family: var(--proof); font-size: 1.12rem; line-height: 1.95; white-space: pre-wrap; word-wrap: break-word; color: #1d2333; }
.doc a.mk { color: inherit; text-decoration: none; }
.doc mark { background: transparent; color: inherit; padding: 0 1px; cursor: pointer; border-radius: 3px;
  background-image: linear-gradient(var(--u, var(--pencil)), var(--u, var(--pencil))), linear-gradient(var(--w, transparent), var(--w, transparent));
  background-size: 0% 2.5px, 100% 38%; background-position: 0 100%, 0 100%; background-repeat: no-repeat;
  animation: underline .7s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 120ms + 200ms); }
@keyframes underline { to { background-size: 100% 2.5px, 100% 38%; } }
.doc mark.high { --u: var(--red); --w: rgba(209, 54, 27, .1); }
.doc mark.medium { --u: var(--amber); --w: rgba(184, 101, 10, .11); }
.doc mark.low { --u: var(--pencil); --w: rgba(59, 91, 219, .08); }
.doc mark:hover { --w: rgba(59, 91, 219, .16); }
.doc sup { font: 700 .62rem/1 var(--ui); color: #fff; background: var(--pencil); border-radius: 99px; padding: .12rem .32rem; margin-left: 2px; position: relative; top: -.15em; }
.doc mark.high + sup { background: var(--red); }
.doc mark.medium + sup { background: var(--amber); }
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 2rem 2.2rem; box-shadow: var(--lift); position: relative; overflow: hidden; }
.sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 1.15rem; border-left: 1px solid #f3d3cb; }
.sheet.scanning::after { content: ""; position: absolute; left: 0; right: 0; height: 90px; top: -90px;
  background: linear-gradient(180deg, transparent, rgba(109, 74, 255, .16), transparent); animation: scan 1.4s ease-in-out infinite; }
@keyframes scan { to { top: 100%; } }

/* image under review */
.art { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: repeating-conic-gradient(#f2f3f7 0 25%, #fff 0 50%) 0 0/18px 18px; }
.art img { display: block; width: 100%; height: auto; }
.art .box { position: absolute; border: 2.5px solid var(--pencil); border-radius: 6px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); transition: background .15s;
  animation: boxin .5s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i, 0) * 140ms + 300ms); }
.art .box:hover { background: rgba(59, 91, 219, .12); }
.art .box.high { border-color: var(--red); }
.art .box.medium { border-color: var(--amber); }
.art .box b { position: absolute; top: -11px; left: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--pencil); color: #fff; display: grid; place-items: center; font-size: .72rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.art .box.high b { background: var(--red); }
.art .box.medium b { background: var(--amber); }
@keyframes boxin { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: none; } }
.imgmeta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-top: .6rem; font-size: .8rem; color: var(--muted); }
.ocr { font-family: var(--proof); background: var(--paper); border-radius: 8px; padding: .6rem .8rem; white-space: pre-wrap; font-size: .95rem; line-height: 1.55; }

/* margin notes */
.issue { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--sheet); scroll-margin-top: 92px; position: relative; box-shadow: 0 1px 2px rgba(20, 27, 45, .04);
  animation: notein .45s ease-out both; animation-delay: calc(var(--i, 0) * 70ms); transition: box-shadow .15s, transform .15s; }
.issue:hover { box-shadow: var(--lift); }
@keyframes notein { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.issue + .issue { margin-top: .8rem; }
.issue::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--slate); }
.issue.high::before { background: var(--red); }
.issue.medium::before { background: var(--amber); }
.issue.low::before { background: var(--pencil); }
.issue:target { box-shadow: 0 0 0 3px var(--pencil-line), var(--lift); }
.issue-top { padding: .9rem 1rem .4rem 1.15rem; }
.issue-title { font-weight: 650; margin: .45rem 0 .1rem; line-height: 1.35; }
.source { margin: .5rem 1rem .4rem 1.15rem; padding: .55rem .7rem; background: var(--paper); border-radius: var(--r-sm); font-size: .85rem; color: var(--ink-2); }
.source b { font-weight: 650; color: var(--ink); }
.intent { margin: .5rem 1rem .3rem 1.15rem; font-size: .86rem; color: var(--muted); }
.intent b { color: var(--ink); font-weight: 600; }
.fix { margin: .45rem 1rem .8rem 1.15rem; padding: .6rem .75rem; border-left: 3px solid var(--pencil-line); background: #f8f9ff; font-family: var(--proof); font-size: 1rem; line-height: 1.65; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.fix-label { font: 700 .74rem var(--ui); color: var(--pencil); display: block; margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .04em; }
del { background: var(--red-wash); color: #8a1f0f; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; border-radius: 3px; padding: 0 2px; }
ins { background: var(--green-wash); color: #155a35; text-decoration: none; border-radius: 3px; padding: 0 2px; }
.issue-actions { padding: .7rem 1rem .85rem 1.15rem; border-top: 1px dashed var(--rule); }
.issue-actions details { margin-top: .35rem; }
.issue-actions details form { margin-top: .4rem; }
.issue-actions textarea { min-height: 60px; font-size: .9rem; }
.review-flag { font-size: .76rem; color: var(--amber); font-weight: 650; }
.where { font-size: .74rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .04em; }

.empty { text-align: center; padding: 2.2rem 1rem; color: var(--muted); }
.empty .big { font-size: 2rem; margin-bottom: .35rem; color: var(--green); }

/* score ring */
.score { display: flex; align-items: center; gap: 1rem; }
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--ring, var(--green)) calc(var(--p) * 1%), #e9ecf3 0); transition: --p 1s; }
.ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.ring span { position: relative; z-index: 1; font-weight: 750; font-size: 1.35rem; letter-spacing: -.03em; }
.ring span small { font-size: .6rem; font-weight: 600; display: block; text-align: center; margin-top: -.25rem; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .76rem; color: var(--muted); font-weight: 700; padding: .55rem .6rem; border-bottom: 1px solid var(--rule-2); text-transform: uppercase; letter-spacing: .03em; }
td { padding: .7rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fafbfe; }
.table-wrap { overflow-x: auto; }

/* ---------- home ---------- */
.hero-wrap { background: #0d1324; color: #eef1fa; margin: -2rem calc(50% - 50vw) 0; padding: 0 calc(50vw - 50%); position: relative; overflow: hidden; }
.hero-wrap::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 380px at 85% 20%, rgba(109, 74, 255, .45), transparent 60%),
              radial-gradient(520px 340px at 15% 90%, rgba(59, 91, 219, .45), transparent 60%),
              radial-gradient(420px 300px at 60% 110%, rgba(255, 107, 74, .32), transparent 60%); animation: glow 12s ease-in-out infinite alternate; }
.hero-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%); }
@keyframes glow { to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; padding: 4.2rem 0 4.5rem; position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; }
.hero h1 { font-size: 3.4rem; line-height: 1.02; letter-spacing: -.04em; margin-bottom: 1.1rem; max-width: 13ch; color: #fff; }
.hero .lede { font-size: 1.12rem; color: #c3cadd; max-width: 48ch; line-height: 1.6; }
.hero .kicker-pill { display: inline-flex; gap: .5rem; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); padding: .3rem .75rem .3rem .35rem; border-radius: 99px; font-size: .82rem; color: #dfe4f5; margin-bottom: 1.2rem; }
.hero .kicker-pill b { background: var(--grad); color: #fff; padding: .1rem .5rem; border-radius: 99px; font-size: .72rem; }
.hero .hint { color: #8f99b5; }
.proof-demo { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 16px; align-items: start; position: relative; }
.proof-demo .sheet { padding: 1.5rem 1.5rem 1.4rem 2.2rem; transform: rotate(-1deg); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-1deg) translateY(-6px); } }
.proof-demo .doc { font-size: 1.04rem; line-height: 2.05; }
.proof-meta { font: 600 .78rem var(--ui); color: var(--muted); margin-bottom: .5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.margin { display: flex; flex-direction: column; gap: 10px; padding-top: 1.2rem; }
.note { background: rgba(255, 255, 255, .97); color: var(--ink); border: 1px solid rgba(255, 255, 255, .6); border-radius: var(--r-md); padding: .6rem .7rem; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); font-size: .8rem; line-height: 1.4; position: relative; }
.note::before { content: ""; position: absolute; left: -17px; top: 14px; width: 16px; border-top: 1.5px dashed rgba(188, 202, 247, .7); }
.note b { display: block; margin-bottom: .15rem; }
.note .fixline { font-family: var(--proof); font-size: .9rem; margin-top: .3rem; }
.note .num { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--pencil); color: #fff; font-size: .66rem; font-weight: 700; margin-right: .3rem; vertical-align: 1px; }
.note.n1 .num, .note.n2 .num { background: var(--red); }
.note.n3 .num { background: var(--amber); }
.stamp { position: absolute; right: 228px; bottom: -26px; width: 118px; height: 118px; border-radius: 50%; border: 3px solid #34c47e; color: #34c47e; display: grid; place-items: center; text-align: center;
  font: 800 .8rem/1.15 var(--ui); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-14deg); background: rgba(13, 19, 36, .82);
  box-shadow: inset 0 0 0 5px rgba(13, 19, 36, .82), inset 0 0 0 7px rgba(52, 196, 126, .6); }
.stamp small { display: block; color: #9fe3bf; font-size: .62rem; letter-spacing: .04em; margin-top: .2rem; }
@media (prefers-reduced-motion: no-preference) {
  .note { animation: pin .5s cubic-bezier(.2, .9, .3, 1.2) both; }
  .note.n1 { animation-delay: .9s; } .note.n2 { animation-delay: 1.2s; } .note.n3 { animation-delay: 1.5s; }
  @keyframes pin { from { opacity: 0; transform: translateX(14px) scale(.96); } to { opacity: 1; transform: none; } }
  .stamp { animation: stamp .5s cubic-bezier(.2, .9, .3, 1.4) 2.2s both; }
  @keyframes stamp { from { opacity: 0; transform: rotate(-14deg) scale(2.2); } to { opacity: 1; transform: rotate(-14deg) scale(1); } }
}
.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stats div { font-size: .8rem; color: #8f99b5; }
.hero-stats b { display: block; font-size: 1.6rem; color: #fff; letter-spacing: -.03em; font-weight: 700; }

.section { padding: 3.2rem 0 1rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.section-head h2 { font-size: 1.9rem; letter-spacing: -.03em; font-weight: 700; }
.section-head p { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.35rem; position: relative; overflow: hidden; }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; margin-bottom: .9rem; color: #fff; background: var(--grad); box-shadow: 0 10px 20px -10px rgba(109, 74, 255, .8); }
.feature.t2 .ico { background: linear-gradient(135deg, #0f8b8d, #22a06b); box-shadow: 0 10px 20px -10px rgba(15, 139, 141, .8); }
.feature.t3 .ico { background: linear-gradient(135deg, #ff6b4a, #f5b83d); box-shadow: 0 10px 20px -10px rgba(255, 107, 74, .8); }
.feature h3 { font-size: 1.06rem; margin-bottom: .35rem; }
.feature p { color: var(--ink-2); margin: 0; font-size: .93rem; }
.feature .tag { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); display: block; margin-bottom: .35rem; }
.feature.new::after { content: "New in Round 3"; position: absolute; top: 14px; right: -34px; transform: rotate(35deg); background: var(--coral); color: #fff; font-size: .6rem; font-weight: 800; padding: .2rem 2.4rem; letter-spacing: .05em; text-transform: uppercase; }

.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: s; }
.journey > div { counter-increment: s; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.2rem; position: relative; }
.journey > div::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: .7rem; }
.journey .who-tag { font-size: .76rem; font-weight: 700; color: var(--violet); }
.journey p { margin: .25rem 0 0; color: var(--ink-2); font-size: .9rem; }

.stat { padding: 1.1rem 1.2rem; position: relative; overflow: hidden; }
.stat .n { font-size: 2.1rem; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.stat .l { color: var(--muted); font-size: .84rem; margin-top: .4rem; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--grad-soft); }
.stat.c1 .n { color: var(--pencil); } .stat.c2 .n { color: var(--violet); } .stat.c3 .n { color: var(--coral); } .stat.c4 .n { color: var(--green); }
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.account { display: flex; gap: .8rem; align-items: center; width: 100%; text-align: left; border: 1px solid var(--rule); background: var(--sheet); border-radius: var(--r-md); padding: .85rem .95rem; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.account:hover { border-color: var(--pencil-line); transform: translateY(-2px); box-shadow: var(--lift-2); }
.account .avatar { width: 40px; height: 40px; font-size: .86rem; }
.account b { display: block; font-size: .93rem; }
.account small { display: block; line-height: 1.35; }
.kicker { font-size: .8rem; font-weight: 700; color: var(--violet); }

/* ---------- lists & lanes ---------- */
.item { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); align-items: center; }
.item:last-child { border-bottom: 0; }
.item-title { font-weight: 650; color: var(--ink); }
.lane { background: rgba(255, 255, 255, .55); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1rem; position: relative; }
.lane::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--rule-2); }
.lane.in_review::before, .lane.standard::before { background: var(--pencil); }
.lane.changes_requested::before { background: var(--amber); }
.lane.approved::before, .lane.fast::before { background: var(--green); }
.lane.draft::before { background: var(--violet); }
.lane.legal::before { background: var(--coral); }
.lane h2 { display: flex; align-items: center; gap: .5rem; }
.lane .item { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-md); padding: .8rem .95rem; margin-top: .6rem; transition: transform .15s, box-shadow .15s, border-color .15s; }
.lane .item:hover { transform: translateY(-2px); box-shadow: var(--lift); border-color: var(--pencil-line); }
.count { background: var(--sheet); border: 1px solid var(--rule); border-radius: 99px; font-size: .74rem; padding: 0 .5rem; color: var(--muted); font-weight: 700; }
.thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--rule); flex: none; }
.risk { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; }
.risk .bar { width: 54px; height: 6px; border-radius: 99px; background: #e9ecf3; overflow: hidden; }
.risk .bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22a06b, #f5b83d 50%, #d1361b); background-size: 54px 100%; }
.reasons { margin: .4rem 0 0; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.reasons li::before { content: "•"; color: var(--violet); margin-right: .35rem; }

/* ---------- meters ---------- */
.meter { height: 8px; background: #e6e9f0; border-radius: 99px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--grad); border-radius: 99px; animation: grow 1s cubic-bezier(.3, .7, .2, 1) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.meter.warn > span { background: linear-gradient(90deg, #ff6b4a, #d1361b); }
.big-num { font-size: 2.4rem; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.timeline { border-left: 1.5px dashed var(--pencil-line); margin-left: .4rem; padding-left: 1.2rem; }
.timeline > div { position: relative; padding-bottom: 1.2rem; }
.timeline > div::before { content: ""; position: absolute; left: -1.66rem; top: .3rem; width: 11px; height: 11px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--violet); }

/* ---------- seal & verify ---------- */
.seal-card { display: flex; gap: 1rem; align-items: center; }
.seal { width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center; text-align: center; color: #fff; position: relative;
  background: radial-gradient(circle at 30% 30%, #3fd08a, #1f8a57); box-shadow: 0 12px 26px -12px rgba(31, 138, 87, .9), inset 0 0 0 4px rgba(255, 255, 255, .25); font: 800 .7rem/1.1 var(--ui); letter-spacing: .06em; text-transform: uppercase; }
.seal::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .55); }
.seal.outdated { background: radial-gradient(circle at 30% 30%, #f5b83d, #b8650a); box-shadow: 0 12px 26px -12px rgba(184, 101, 10, .9), inset 0 0 0 4px rgba(255, 255, 255, .25); }
.seal.bad { background: radial-gradient(circle at 30% 30%, #ff8a6e, #d1361b); }
.seal.unknown { background: radial-gradient(circle at 30% 30%, #a0a9bd, #646e85); }
.seal .big { font-size: 1.6rem; display: block; }
.code { font: 700 1.05rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; background: var(--paper); border: 1px dashed var(--rule-2); padding: .4rem .6rem; border-radius: 8px; }
.verdict { border-radius: var(--r-lg); padding: 1.4rem; border: 1px solid; animation: drop .4s cubic-bezier(.2, .9, .3, 1.2) both; }
.verdict.approved, .verdict.approved_copy, .verdict.excerpt { background: #f1fbf5; border-color: #bfe5cf; }
.verdict.outdated, .verdict.similar { background: #fff8ec; border-color: #f2d7a6; }
.verdict.modified, .verdict.tampered, .verdict.bad { background: #fff4f1; border-color: #f4c7bc; }
.verdict.unknown, .verdict.empty { background: #f6f7fa; border-color: var(--rule-2); }
.verify-hero { background: var(--grad-soft); border: 1px solid #e4defa; border-radius: 24px; padding: 2rem; }

/* ---------- partner workspace ---------- */
.partner-hero { background: linear-gradient(120deg, #0f3a3d 0%, #10172a 60%); color: #e9f4f2; border-radius: 22px; padding: 1.8rem 2rem; position: relative; overflow: hidden; margin-bottom: 1.5rem; }
.partner-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 160, 107, .45), transparent 70%); }
.partner-hero h1 { color: #fff; }
.partner-hero p { color: #b7cbcf; }
.partner-hero .stats { display: flex; gap: 2rem; margin-top: 1.2rem; flex-wrap: wrap; position: relative; z-index: 1; }
.partner-hero .stats b { display: block; font-size: 1.7rem; color: #fff; letter-spacing: -.03em; }
.partner-hero .stats span { font-size: .8rem; color: #9fb7bb; }
.brief { border: 1px solid var(--rule); border-radius: var(--r-md); padding: 1rem 1.1rem; background: #fff; }
.brief + .brief { margin-top: .7rem; }
.due { font-size: .76rem; font-weight: 700; }
.due.soon { color: var(--coral); }
.logo-tile { border: 1px solid var(--rule); border-radius: var(--r-md); padding: .8rem; text-align: center; background: #fff; position: relative; }
.logo-tile img { max-width: 100%; height: 56px; object-fit: contain; }
.logo-tile.retired img { filter: grayscale(.2); opacity: .75; }
.logo-tile.retired::after { content: "Don't use"; position: absolute; top: 8px; right: 8px; background: var(--red); color: #fff; font-size: .62rem; font-weight: 800; padding: .1rem .4rem; border-radius: 4px; text-transform: uppercase; }

/* ---------- charts ---------- */
.chart-box { position: relative; height: 260px; }
.chart-box.tall { height: 320px; }
.legend-note { font-size: .78rem; color: var(--muted); }

/* ---------- reveal on load ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .doc mark { background-size: 100% 2.5px, 100% 38%; }
}

/* busy overlay while a check runs */
.busy { position: fixed; inset: 0; z-index: 50; background: rgba(13, 19, 36, .55); backdrop-filter: blur(4px); display: none; place-items: center; }
.busy.on { display: grid; animation: drop .25s ease both; }
.busy-card { background: #fff; border-radius: 18px; padding: 1.5rem 1.8rem; width: min(380px, 90vw); text-align: center; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.busy-card .spinner { width: 46px; height: 46px; margin: 0 auto .9rem; border-radius: 50%; background: conic-gradient(from 0deg, #3b5bdb, #6d4aff, #ff6b4a, transparent 80%); animation: spin 1s linear infinite;
  mask: radial-gradient(circle, transparent 54%, #000 56%); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); }
@keyframes spin { to { transform: rotate(1turn); } }
.busy-card .step { font-size: .85rem; color: var(--muted); min-height: 1.3em; }

footer { background: #0d1324; color: #8f99b5; font-size: .82rem; margin-top: auto; }
footer .in { max-width: 1240px; margin: 0 auto; padding: 1.4rem 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { color: #b9c6ff; }

@media (max-width: 1080px) {
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .review, .hero, .g2, .g3, .features { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky { position: static; }
  .hero { gap: 3rem; padding: 3rem 0 3.5rem; }
  .hero h1 { font-size: 2.5rem; }
  .proof-demo { grid-template-columns: 1fr; }
  .margin { padding-top: 0; }
  .note::before { display: none; }
  .stamp { right: 12px; bottom: auto; top: -40px; width: 96px; height: 96px; font-size: .68rem; }
  .top-in { flex-wrap: wrap; gap: .6rem; }
  .nav { order: 3; flex: 1 0 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav a { flex: none; }
  .who { margin-left: auto; }
}
@media (max-width: 560px) {
  .who-name { display: none; }
  .g4, .journey { grid-template-columns: 1fr; }
  main { padding: 1.4rem 1rem 3rem; }
  .hero-wrap { margin-top: -1.4rem; }
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 2.1rem; }
  .sheet { padding: 1.3rem 1.2rem 1.3rem 1.8rem; }
  .sheet::before { left: .8rem; }
  .verify-hero, .partner-hero { padding: 1.3rem; }
}

/* server-rendered SVG charts */
svg.chart { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--ui); }
svg.chart text { font-family: var(--ui); }
svg.chart rect.bar { transform-box: fill-box; transform-origin: bottom; animation: rise .7s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }
svg.chart rect.hbar { transform-box: fill-box; transform-origin: left; animation: grow .8s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
svg.chart path.line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s ease-out .2s forwards; }
svg.chart rect:hover, svg.chart circle:hover { filter: brightness(1.12); }
@keyframes rise { from { transform: scaleY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .6rem; font-size: .8rem; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
