/* PrintGuard v1 mini — unlinked, hash-gated live classifier demo. */

.demo-route-pending .site-header,
.demo-route-pending body > .skip-link,
.demo-route-pending body > main,
.demo-route-pending body > .site-footer { visibility: hidden; }
body.pg-open { overflow: hidden; }

.pg {
  --pg-allow: #2f7d5f;
  --pg-review: #b07d22;
  --pg-hold: var(--coral-deep);
  --pg-ink-panel: #14130f;
  --pg-grid: rgba(255, 253, 248, .14);
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  font-variant-numeric: tabular-nums;
}
.pg::backdrop { background: rgba(10, 9, 8, .92); }
.pg[open] { display: block; }
/* Author `display` rules outrank the UA [hidden] rule, so restate it. */
.pg [hidden] { display: none !important; }

.pg-shell { width: min(1280px, calc(100vw - 72px)); margin-inline: auto; }

/* ------------------------------------------------------------------ header */

.pg-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px min(36px, 4vw);
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid var(--line-light);
}
.pg-head .brand { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; letter-spacing: -.02em; }
.pg-head .brand-mark { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pg-badge {
  justify-self: center;
  padding: 7px 14px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral);
  border: 1px solid rgba(255, 104, 77, .5);
  border-radius: 999px;
  white-space: nowrap;
}
.pg-exit {
  justify-self: end;
  min-height: 40px;
  padding: 0 4px;
  color: rgba(255, 253, 248, .68);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 253, 248, .3);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.pg-exit:hover { color: var(--white); border-color: var(--white); }

/* -------------------------------------------------------------------- gate */

.pg-gate {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 66px);
  padding: 60px min(36px, 4vw);
  color: var(--white);
  background: var(--ink);
}
.pg-gate-card { width: min(430px, 100%); }
.pg-gate .eyebrow { color: var(--coral); }
.pg-gate h1 {
  margin: 18px 0 0;
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.055em;
}
.pg-gate p { margin: 20px 0 0; color: rgba(255, 253, 248, .6); font-size: 15px; line-height: 1.65; }
.pg-gate form { display: flex; gap: 10px; margin-top: 34px; }
.pg-gate input {
  flex: 1;
  min-width: 0;
  padding: 15px 16px;
  color: var(--white);
  background: rgba(255, 253, 248, .06);
  border: 1px solid rgba(255, 253, 248, .24);
  border-radius: 2px;
  font-size: 15px;
  letter-spacing: .04em;
}
.pg-gate input::placeholder { color: rgba(255, 253, 248, .34); letter-spacing: .18em; }
.pg-gate input:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.pg-gate button {
  padding: 0 24px;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease;
}
.pg-gate button:hover { background: var(--coral); color: var(--white); }
.pg-gate-error { min-height: 20px; margin-top: 14px; color: var(--coral); font-size: 13px; }
.pg-gate-error:empty { visibility: hidden; }
.pg-gate-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 12px; color: rgba(255, 253, 248, .42); }

/* -------------------------------------------------------------------- lede */

.pg-app[hidden] { display: none; }

.pg-lede { padding: clamp(52px, 7vw, 96px) 0 0; }
.pg-lede .eyebrow { color: var(--coral); }
.pg-lede h1 {
  max-width: 15ch;
  margin: 22px 0 0;
  font-size: clamp(46px, 6.6vw, 90px);
  font-weight: 500;
  line-height: .93;
  letter-spacing: -.06em;
}
.pg-lede-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.pg-lede-copy { max-width: 52ch; margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.62; }
.pg-lede-copy + .pg-lede-copy { margin-top: 16px; }
.pg-lede-copy strong { font-weight: 500; }

.pg-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 54px; border-top: 1px solid var(--line); }
.pg-fact { padding: 22px 20px 24px 0; border-right: 1px solid var(--line); }
.pg-fact:last-child { border-right: 0; }
.pg-fact:not(:first-child) { padding-left: 20px; }
.pg-fact strong { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.pg-fact span { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* ------------------------------------------------------------------- input */

.pg-section { padding-block: clamp(48px, 6vw, 84px); }
.pg-section-head { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; align-items: start; }
.pg-section-head h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.pg-section-head p { margin: 0; max-width: 56ch; color: var(--ink-soft); font-size: 16px; line-height: 1.62; }
.pg-step { display: block; margin-bottom: 14px; color: var(--coral); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

.pg-drop {
  display: grid;
  place-items: center;
  gap: 6px;
  margin-top: 36px;
  padding: clamp(38px, 6vw, 66px) 24px;
  text-align: center;
  background: var(--white);
  border: 1px dashed rgba(18, 17, 15, .34);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.pg-drop:hover, .pg-drop:focus-visible { border-color: var(--coral); }
.pg-drop.is-over { border-color: var(--coral); border-style: solid; background: rgba(255, 104, 77, .06); }
.pg-drop strong { font-size: clamp(20px, 2.4vw, 27px); font-weight: 500; letter-spacing: -.03em; }
.pg-drop span { color: var(--muted); font-size: 14px; }
.pg-drop em { margin-top: 12px; color: var(--muted); font-size: 11.5px; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.pg-drop-icon { width: 34px; height: 34px; margin-bottom: 12px; fill: none; stroke: var(--coral); stroke-width: 1.4; }

.pg-samples { margin-top: 34px; }
.pg-samples > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pg-chiprow { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.pg-chip:hover { border-color: var(--ink); }
.pg-chip[aria-pressed="true"] { color: var(--white); background: var(--ink); border-color: var(--ink); }
.pg-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--pg-allow); }
.pg-chip[data-truth="regulated"] i { background: var(--pg-hold); }
.pg-chip small { color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.pg-chip[aria-pressed="true"] small { color: rgba(255, 253, 248, .6); }

.pg-samples-note { margin: 16px 0 0; max-width: 76ch; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ------------------------------------------------------------------ result */

.pg-stage { margin-top: 44px; }
.pg-stage[hidden] { display: none; }

.pg-error {
  padding: 20px 22px;
  color: var(--coral-deep);
  background: rgba(255, 104, 77, .08);
  border: 1px solid rgba(255, 104, 77, .4);
  border-radius: 3px;
  font-size: 15px;
}

.pg-result { border-top: 1px solid var(--line); }
.pg-file {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.pg-file strong { font-size: 19px; font-weight: 500; letter-spacing: -.02em; word-break: break-all; }
.pg-file span { color: var(--muted); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }

.pg-verdict { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(30px, 4vw, 64px); padding: clamp(30px, 4vw, 52px) 0; }

.pg-score { display: flex; flex-direction: column; }
.pg-score-label { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pg-score-value { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 0; font-size: clamp(72px, 11vw, 132px); font-weight: 500; letter-spacing: -.06em; line-height: .86; }
.pg-score-value sup { font-size: .28em; font-weight: 400; letter-spacing: 0; }
.pg-decision { margin: 22px 0 0; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .04em; }
.pg-decision i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
[data-state="allow"] .pg-decision { color: var(--pg-allow); }
[data-state="review"] .pg-decision { color: var(--pg-review); }
[data-state="hold"] .pg-decision { color: var(--pg-hold); }
.pg-decision-copy { margin: 14px 0 0; max-width: 44ch; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

.pg-band { margin-top: 30px; }
.pg-band-track { position: relative; height: 44px; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; display: flex; }
.pg-band-zone { display: grid; place-items: center; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(18, 17, 15, .55); }
.pg-band-zone.allow { flex: 25; background: rgba(47, 125, 95, .13); }
.pg-band-zone.review { flex: 50; background: rgba(176, 125, 34, .14); border-inline: 1px solid var(--line); }
.pg-band-zone.hold { flex: 25; background: rgba(239, 77, 52, .14); }
.pg-band-marker { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); transition: left 620ms cubic-bezier(.2, .7, .2, 1); }
.pg-band-marker::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.pg-band-scale { display: flex; justify-content: space-between; margin-top: 9px; color: var(--muted); font-size: 11px; }

.pg-pipeline { display: flex; flex-direction: column; }
.pg-pipeline > p { margin: 0 0 16px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pg-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pg-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  opacity: .32;
  transition: opacity 260ms ease;
}
.pg-steps li.is-done, .pg-steps li.is-active { opacity: 1; }
.pg-steps li span:first-child { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.pg-steps li strong { font-size: 15px; font-weight: 400; }
.pg-steps li em { color: var(--muted); font-size: 12.5px; font-style: normal; white-space: nowrap; }
.pg-steps li.is-active em { color: var(--coral); }
.pg-steps li.is-done em { color: var(--ink); }

/* ------------------------------------------------------- what the model sees */

.pg-vision { margin-top: 0; padding: clamp(40px, 5vw, 70px) clamp(24px, 4vw, 54px) clamp(36px, 4vw, 56px); color: var(--white); background: var(--pg-ink-panel); border-radius: 3px; }
.pg-vision-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: end; }
.pg-vision-head h3 { margin: 0; font-size: clamp(27px, 3.2vw, 40px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.pg-vision-head .pg-step { color: var(--coral); }
.pg-vision-head p { margin: 0; max-width: 52ch; color: rgba(255, 253, 248, .6); font-size: 15px; line-height: 1.62; }

.pg-canvas-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 20px; margin-top: 36px; align-items: start; }
.pg-panel { padding: 18px; background: rgba(255, 253, 248, .04); border: 1px solid var(--pg-grid); border-radius: 3px; }
.pg-panel-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pg-panel-top h4 { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 253, 248, .8); }
.pg-panel-top span { color: rgba(255, 253, 248, .42); font-size: 11.5px; }
.pg-panel canvas { display: block; width: 100%; height: auto; }

.pg-views { display: flex; gap: 6px; }
.pg-views button {
  padding: 7px 12px;
  color: rgba(255, 253, 248, .58);
  background: transparent;
  border: 1px solid var(--pg-grid);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.pg-views button:hover { color: var(--white); }
.pg-views button[aria-pressed="true"] { color: var(--ink); background: var(--white); border-color: var(--white); }

.pg-canvas-foot { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 0; color: rgba(255, 253, 248, .42); font-size: 12px; }
.pg-attrib-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 54px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--pg-grid); }
.pg-attrib-row:last-child { border-bottom: 0; }
.pg-attrib-row span { color: rgba(255, 253, 248, .74); font-size: 13px; }
.pg-attrib-row b { color: rgba(255, 253, 248, .5); font-size: 12px; font-weight: 400; text-align: right; }
.pg-attrib-bar { height: 5px; background: rgba(255, 253, 248, .1); border-radius: 999px; overflow: hidden; }
.pg-attrib-bar i { display: block; height: 100%; background: var(--coral); border-radius: 999px; transition: width 520ms cubic-bezier(.2, .7, .2, 1); }
.pg-vision-note { margin: 26px 0 0; max-width: 80ch; color: rgba(255, 253, 248, .42); font-size: 12.5px; line-height: 1.6; }

/* --------------------------------------------------------------- model card */

.pg-card { border-top: 1px solid var(--line); }
.pg-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.pg-card-cell { padding: 26px 26px 30px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pg-card-cell:nth-child(even) { padding-right: 0; padding-left: 26px; border-right: 0; }
.pg-card-cell h4 { margin: 0; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.pg-card-cell strong { display: block; margin-top: 14px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.pg-card-cell p { margin: 12px 0 0; max-width: 46ch; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

.pg-compare { margin-top: 44px; }
.pg-compare h3 { margin: 0 0 20px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; letter-spacing: -.035em; }
.pg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pg-table th, .pg-table td { padding: 15px 16px 15px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pg-table thead th { color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.pg-table tbody th { font-weight: 400; color: var(--ink-soft); width: 30%; }
.pg-table td:last-child { color: var(--ink-soft); }
.pg-table .pg-mini-col { color: var(--ink); }

.pg-limits { margin-top: 40px; padding: 26px 28px; background: var(--paper-deep); border-left: 2px solid var(--coral); border-radius: 2px; }
.pg-limits h4 { margin: 0 0 14px; font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pg-limits ul { margin: 0; padding-left: 18px; }
.pg-limits li { margin-bottom: 9px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.pg-limits li:last-child { margin-bottom: 0; }

.pg-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding: 26px 0 60px; color: var(--muted); font-size: 12px; letter-spacing: .05em; }

/* ------------------------------------------------------------------ motion */

.pg-scanning .pg-score-value { opacity: .38; }
@keyframes pg-pulse { 50% { opacity: .45; } }
.pg-steps li.is-active em { animation: pg-pulse 1s ease-in-out infinite; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .pg-shell { width: calc(100vw - 48px); }
  .pg-canvas-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-verdict { grid-template-columns: minmax(0, 1fr); }
  .pg-lede-grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 26px; }
}

@media (max-width: 760px) {
  .pg-shell { width: calc(100vw - 34px); }
  .pg-head { grid-template-columns: 1fr auto; padding-inline: 17px; }
  .pg-badge { display: none; }
  .pg-section-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pg-facts { grid-template-columns: 1fr; }
  .pg-fact { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pg-fact:last-child { border-bottom: 0; }
  .pg-fact:not(:first-child) { padding-left: 0; }
  .pg-card-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-card-cell, .pg-card-cell:nth-child(even) { padding: 22px 0 24px; border-right: 0; }
  .pg-attrib-row { grid-template-columns: 130px minmax(0, 1fr) 46px; gap: 10px; }
  .pg-table thead { display: none; }
  .pg-table tbody th, .pg-table td { display: block; width: auto; padding: 4px 0; border-bottom: 0; }
  .pg-table tbody th { padding-top: 16px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
  .pg-table tbody tr { display: block; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .pg-table td::before { content: attr(data-label) " — "; color: var(--muted); }
  .pg-vision { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-steps li.is-active em { animation: none; }
  .pg-band-marker, .pg-attrib-bar i { transition: none; }
}
