/* ---------------------------------------------------------------
   RedactPro demo. A dark recreation of the real three screen flow:
   Drop, Review, Done. Everything is laid out at a fixed design size
   of 1440x900 inside .rp-fit, which is scaled to the frame width.
   The camera (.rp-cam) is the only thing that moves for the zooms.
   --------------------------------------------------------------- */
.demo[data-demo="redact"] { background: var(--ink-0); }

.rp-fit {
  position: absolute; top: 0; left: 0; width: 1440px; height: 900px;
  transform-origin: 0 0;
}
.rp-cam {
  position: absolute; top: 0; left: 0; width: 1440px; height: 900px;
  transform-origin: 0 0; background: var(--ink-0); overflow: hidden;
  font-family: var(--font-body); font-size: 14px; line-height: 1.6;
  font-weight: 400; color: var(--text-on-ink);
  -webkit-font-smoothing: antialiased;
}
.rp-cam * { box-sizing: border-box; }
.rp-cam p, .rp-cam h4 { margin: 0; }
.rp-cam mark { background: none; color: inherit; }
.rp-cam svg { display: block; }

.rp-screen { position: absolute; inset: 0; opacity: 0; background: var(--ink-0); }

/* severity */
.rp-cam { --rp-crit: #e35d5d; --rp-high: #d9a441; --rp-med: #5b8def; }

/* ---------- shared chrome ---------- */
.rp-head {
  position: absolute; top: 0; left: 0; right: 0; height: 62px; z-index: 3;
  display: flex; align-items: center; gap: 16px; padding: 0 32px;
  background: var(--ink-1); border-bottom: 1px solid var(--ink-line);
}
.rp-brand { font-family: var(--font-display); font-size: 17px; font-weight: 400; letter-spacing: 0.07em; }
.rp-back { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-on-ink-muted); }
.rp-back svg { width: 8px; height: 12px; }
.rp-head__doc { line-height: 1.25; }
.rp-head__n { font-size: 13.5px; }
.rp-head__s { font-size: 10.5px; color: var(--text-on-ink-faint); letter-spacing: 0.04em; }
.rp-pill {
  margin-left: auto; font-size: 11px; letter-spacing: 0.05em; color: var(--text-on-ink-muted);
  border: 1px solid var(--ink-line); border-radius: 999px; padding: 5px 13px; white-space: nowrap;
}
.rp-gear { width: 15px; height: 15px; color: var(--text-on-ink-faint); }

.rp-btn {
  display: inline-block; font-family: var(--font-display); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; background: var(--accent); color: var(--ink-0);
  border-radius: 4px; padding: 11px 28px; text-align: center;
}

/* ---------- Screen A: drop ---------- */
.rp-a { position: absolute; top: 62px; left: 220px; width: 1000px; padding-top: 100px; }
.rp-a__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.rp-a__title {
  font-family: var(--font-display); font-size: 22px; font-weight: 300;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.rp-a__folder { margin-left: auto; display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-on-ink-muted); }
.rp-a__folder svg { width: 14px; height: 12px; }
.rp-a__open { font-size: 12.5px; color: var(--accent); }
.rp-card { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 6px; }
.rp-file { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px; font-size: 13.5px; border-top: 1px solid var(--ink-line); }
.rp-file:first-child { border-top: 0; }
.rp-file svg { width: 12px; height: 15px; color: var(--text-on-ink-faint); flex: none; }

.rp-profs { display: flex; gap: 16px; margin-top: 26px; }
.rp-prof {
  position: relative; flex: 1; background: var(--ink-2); border: 1px solid var(--ink-line);
  border-radius: 6px; padding: 15px 17px 17px;
}
.rp-prof__k {
  font-family: var(--font-display); font-size: 9.5px; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--text-on-ink-faint); margin-bottom: 11px;
}
.rp-prof__n {
  font-family: var(--font-display); font-size: 14px; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 9px;
}
.rp-prof__d { font-size: 11.5px; line-height: 1.6; color: var(--text-on-ink-muted); }
.rp-prof__sel {
  position: absolute; inset: -1px; border: 1px solid var(--accent); border-radius: 6px;
  background: rgba(201, 168, 106, 0.07); opacity: 0; pointer-events: none;
}

.rp-a__foot { display: flex; align-items: center; margin-top: 26px; }
.rp-safe { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-on-ink-muted); }
.rp-safe svg { width: 11px; height: 14px; color: var(--accent); }
.rp-a__foot .rp-btn { margin-left: auto; }

/* ---------- the letter ---------- */
.rp-page {
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 3px; overflow: hidden;
}
.rp-page h4 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
}
.rp-page p { color: #d6d2ca; }

.rp-page--review { position: absolute; top: 26px; left: 112px; width: 860px; height: 848px; padding: 44px 56px; }
.rp-page--review h4 { font-size: 14px; margin-bottom: 22px; }
.rp-page--review p { font-size: 15px; line-height: 1.85; margin-bottom: 15px; }

.rp-page--done { width: 860px; margin: 0 auto; height: 412px; padding: 22px 32px; text-align: left; }
.rp-page--done h4 { font-size: 11.5px; margin-bottom: 14px; }
.rp-page--done p { font-size: 12px; line-height: 1.68; margin-bottom: 8px; }
.rp-page .rp-sig { margin-top: 4px; margin-bottom: 0; }

.rp-m { position: relative; display: inline-block; white-space: nowrap; }
.rp-m__hl {
  position: absolute; left: -2px; right: -2px; top: -1px; bottom: -1px; border-radius: 2px;
  opacity: 0; pointer-events: none;
}
.rp-m__t { position: relative; z-index: 1; }
.rp-m__b {
  position: absolute; left: -3px; right: -3px; top: -2px; bottom: -2px; z-index: 2;
  background: #05070a; border-radius: 1px; overflow: hidden; opacity: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.7);
}
.rp-page--review .rp-m__b { font-size: 9px; }
.rp-page--done .rp-m__b { font-size: 7.5px; }

.rp-m--crit .rp-m__hl { background: rgba(227, 93, 93, 0.16); border-bottom: 1.5px solid var(--rp-crit); }
.rp-m--high .rp-m__hl { background: rgba(217, 164, 65, 0.16); border-bottom: 1.5px solid var(--rp-high); }
.rp-m--med  .rp-m__hl { background: rgba(91, 141, 239, 0.16); border-bottom: 1.5px solid var(--rp-med); }

.rp-page--done .rp-m__hl { opacity: 0 !important; }
.rp-page--done .rp-m__t { opacity: 0; }
.rp-page--done .rp-m__b { opacity: 1; }
.rp-page--done .rp-m--off .rp-m__t { opacity: 1; }
.rp-page--done .rp-m--off .rp-m__b { opacity: 0; }

/* ---------- Screen B: review ---------- */
.rp-b__doc { position: absolute; top: 62px; left: 0; right: 355px; bottom: 0; background: var(--ink-1); }
.rp-panel {
  position: absolute; top: 62px; right: 0; bottom: 0; width: 355px; padding: 16px 18px 0;
  background: var(--ink-2); border-left: 1px solid var(--ink-line);
}
.rp-panel__h { font-size: 12.5px; color: var(--text-on-ink-muted); margin-bottom: 13px; }
.rp-panel__h b { font-weight: 500; font-size: 15px; color: var(--text-on-ink); }
.rp-legend { display: flex; gap: 16px; font-size: 10.5px; color: var(--text-on-ink-muted); margin-bottom: 6px; }
.rp-sw { display: inline-block; width: 14px; height: 5px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.rp-sev {
  display: flex; align-items: center; gap: 8px; margin: 15px 0 5px;
  font-family: var(--font-display); font-size: 9.5px; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--text-on-ink-faint);
}
.rp-dot { width: 6px; height: 6px; border-radius: 50%; }
.rp-row { display: flex; align-items: center; height: 27px; font-size: 12.5px; }
.rp-row__c { margin-left: auto; margin-right: 11px; font-size: 11.5px; color: var(--text-on-ink-muted); }
.rp-tog { position: relative; width: 26px; height: 14px; border-radius: 999px; background: var(--accent); flex: none; }
.rp-tog::after { content: ""; position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-0); }
.rp-tog--off { background: rgba(233, 230, 223, 0.14); }
.rp-tog--off::after { right: auto; left: 2px; background: var(--text-on-ink-faint); }
.rp-panel__btn { position: absolute; left: 18px; right: 18px; bottom: 22px; }

/* ---------- the loader ---------- */
.rp-modal { position: absolute; inset: 0; z-index: 30; opacity: 0; }
.rp-modal__scrim { position: absolute; inset: 0; background: rgba(7, 9, 12, 0.66); }
.rp-modal__box {
  position: absolute; left: 50%; top: 300px; width: 520px; margin-left: -260px; padding: 26px 30px 28px;
  background: var(--ink-2); border: 1px solid var(--ink-line-strong); border-radius: 6px;
}
.rp-modal__t {
  font-family: var(--font-display); font-size: 14px; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 20px;
}
.rp-track { position: relative; height: 3px; background: rgba(233, 230, 223, 0.12); border-radius: 2px; overflow: hidden; }
.rp-bar { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.rp-steps { position: relative; height: 16px; margin-top: 16px; }
.rp-step {
  position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-size: 11px;
  color: var(--text-on-ink-muted); opacity: 0; white-space: nowrap;
}

/* ---------- Screen C: done ---------- */
.rp-c { position: absolute; top: 62px; left: 0; right: 0; padding-top: 8px; text-align: center; }
.rp-check { width: 26px; height: 26px; margin: 0 auto 8px; color: var(--accent); }
.rp-c__t { font-family: var(--font-display); font-size: 26px; font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; }
.rp-c__s { font-size: 12px; color: var(--text-on-ink-muted); margin-top: 6px; }
.rp-rows { width: 860px; margin: 14px auto 0; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 6px; text-align: left; }
.rp-r { position: relative; display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 18px; border-top: 1px solid var(--ink-line); }
.rp-r:first-child { border-top: 0; }
.rp-r svg { width: 14px; height: 15px; color: var(--text-on-ink-faint); flex: none; }
.rp-r__t { font-size: 12.5px; }
.rp-r__d { font-size: 11px; color: var(--text-on-ink-muted); }
.rp-r__b {
  margin-left: auto; font-family: var(--font-display); font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-on-ink-muted);
  border: 1px solid var(--ink-line); border-radius: 3px; padding: 5px 12px;
}
.rp-c__page { margin-top: 10px; }
.rp-cert {
  width: 860px; margin: 8px auto 0; padding: 9px 18px; text-align: left;
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 6px;
  display: flex; align-items: center; gap: 26px;
}
.rp-cert__k {
  font-family: var(--font-display); font-size: 9.5px; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--accent); flex: none;
}
.rp-cert__h { font-family: var(--font-mono); font-size: 10px; color: var(--text-on-ink-muted); line-height: 1.7; }
.rp-cert__h span { color: var(--text-on-ink-faint); display: inline-block; width: 58px; }
.rp-cert__s { margin-left: auto; font-size: 10px; color: var(--text-on-ink-faint); text-align: right; line-height: 1.7; flex: none; }

/* ---------- ring (base.css .demo__ring, squared off for cards) ---------- */
.demo[data-demo="redact"] .rp-ring {
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.12);
}

/* Captions sit over the page and over the burned boxes at the deep zoom,
   so they carry a small ink chip and a brass rule to stay legible. */
.demo[data-demo="redact"] .demo__caption {
  background: rgba(7, 9, 12, 0.86);
  border-left: 2px solid var(--accent);
  padding: 8px 14px 8px 12px;
  border-radius: 2px;
}
