/* ============================================================================
   REEL/REAL — WEBSITE LAYOUT
   ----------------------------------------------------------------------------
   Website-only styles. Loaded AFTER tokens.css, which supplies every colour,
   font family, size step and shared primitive used below.

   Nothing in this file is duplicated into the extension: a fixed masthead,
   100vh hero and 3-up grids are meaningless in a 380px popup.
   ========================================================================== */

/* ============================================================================
   EFFECTS — glitch headline, ticker, scan-line, typewriter
   ========================================================================== */

/* --- Ticker marquee --- */
.ticker-wrap {
  overflow: hidden;
  background: var(--forest-green);
  border-top: 3px solid var(--forest-green);
  border-bottom: 3px solid var(--forest-green);
  padding: 12px 0;
  white-space: nowrap;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-track {
  display: inline-block;
  animation: ticker-scroll 22s linear infinite;
}
.ticker-item {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-cream);
  padding: 0 28px;
}
.ticker-sep {
  display: inline-block;
  color: var(--accent-orange);
  padding: 0 4px;
}

/* --- Forensic scan line --- */
@keyframes scan-sweep {
  0%   { top: 0%;    opacity: 1; }
  90%  { top: 100%;  opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}
.scan-line {
  display: none;
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--forest-green), var(--accent-orange), var(--forest-green), transparent);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 8px var(--accent-orange);
}
.staged-preview.scanning .scan-line {
  display: block;
  animation: scan-sweep 1.8s ease-in-out infinite;
}

/* --- Typewriter cursor --- */
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}
.typewriter-cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--accent-orange);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 0.75s step-end infinite;
}

body {
  margin: 0;
  background-color: var(--bg-cream);
  color: var(--forest-green);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Masthead ---------- */
/* The masthead is fixed, so an anchor jump would otherwise scroll a section's
   heading underneath it and leave the body copy as the first visible thing.
   scroll-padding-top holds every #anchor landing clear of the bar - measured
   header height is 78px, plus breathing room. */
html { scroll-padding-top: 96px; }

.mast {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(245, 243, 238, 0.85);
  border-bottom: 1px solid var(--border-color);
}
.mast-in {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; font-size: var(--step--1); font-weight: 600; letter-spacing: .05em;
}
.mark {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--forest-green);
  letter-spacing: 0.04em; text-transform: uppercase;
  display: flex; align-items: center; gap: 4px;
}
.mark span { color: var(--accent-orange); }
.mast nav { display: flex; gap: 28px; }
.mast nav a {
  color: var(--forest-green); opacity: 0.85; transition: opacity .2s, transform .2s;
  position: relative; padding-bottom: 4px; font-weight: 600;
  text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em;
}
.mast nav a:hover { opacity: 1; transform: translateY(-1px); }
@media (max-width: 760px) { .mast nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 0 60px; position: relative;
  background: var(--bg-cream);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center; width: 100%;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}

.hero-text { display: flex; flex-direction: column; gap: 18px; }
.hero-tag {
  display: inline-block; align-self: flex-start;
  padding: 6px 16px; background: rgba(20, 77, 55, 0.1); color: var(--forest-green);
  border-radius: 50px; font-size: var(--step--1); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
@media (max-width: 960px) { .hero-tag { align-self: center; } }

.title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.5vw, 5.8rem);
  line-height: 0.92;
  color: var(--forest-green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* The italic serif second line is the one deliberate break from the display
   face — it carries the whole "editorial" feel of the brand. */
.title span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--accent-orange);
  display: block;
  letter-spacing: normal;
  font-size: 0.85em;
  margin-top: 4px;
}

.sub {
  margin: 0; color: var(--text-muted); font-size: var(--step-0);
  line-height: 1.7; max-width: 52ch; font-weight: 400;
}

/* ---------- Hero video pair (phone mockups, 9:16 reel format) ---------- */
.pair-wrapper { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  position: relative; align-items: center;
}
.vs-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 10; width: 48px; height: 48px; background: var(--accent-orange);
  color: var(--white); font-family: var(--font-display); font-size: 1.1rem;
  letter-spacing: 0.05em; border-radius: 50%; display: grid; place-content: center;
  box-shadow: 0 6px 20px rgba(239, 99, 55, 0.3); border: 2px solid var(--bg-cream);
}

/* Phone mockup frame */
.phone-frame {
  position: relative;
  display: flex;
  justify-content: center;
  border: 4px solid var(--forest-green);
  border-radius: 28px;
  background: var(--bg-cream);
  box-shadow: 6px 6px 0 var(--forest-green);
  padding: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.phone-frame:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--forest-green);
}
.phone-frame:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

/* Notch at top center */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 4.5rem;
  height: 0.5rem;
  background: var(--forest-green);
  border: 1px solid var(--forest-green);
  border-radius: 0 0 10px 10px;
}

/* Side buttons (power + volume) */
.phone-btn {
  position: absolute;
  right: -10px;
  border: 4px solid var(--forest-green);
  border-radius: 4px;
  background: none;
}
.phone-btn--power { top: 3.5rem; height: 1.75rem; }
.phone-btn--vol { top: 6.5rem; height: 2.5rem; }

.slot {
  position: relative; background: var(--forest-dark); aspect-ratio: 9/16;
  border-radius: 22px; overflow: hidden;
  width: 100%;
}
.slot:hover { transform: none; }
.slot video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Placeholder shown until the video's first frame decodes — and left in place
   permanently if assets/reel.mp4 and assets/real.mp4 are missing. */
.slot .ghost {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; color: var(--white);
  background: var(--forest-green);
  font-size: var(--step--1); padding: 12px;
}
.slot .ghost b { display: block; font-size: var(--step-0); font-family: var(--font-display); letter-spacing: 0.05em; }

.slot-tag {
  position: absolute; left: 10px; bottom: 10px; display: flex;
  align-items: center; gap: 6px; padding: 6px 12px; background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px); border-radius: 50px;
  font-size: clamp(.6rem, .55rem + .18vw, .7rem);
  font-weight: 700; color: var(--forest-green); text-transform: uppercase; letter-spacing: 0.03em;
}

.pair-note {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 16px;
  font-size: var(--step--1); color: var(--text-muted); font-weight: 600;
}

/* ---------- Statement ---------- */
.statement { padding: 60px 0 80px; text-align: center; }
.statement p {
  margin: 0 auto; max-width: 68ch; font-size: var(--step-1);
  line-height: 1.6; color: var(--forest-green); font-weight: 600;
}
.statement small { display: block; margin-top: 14px; color: var(--text-muted); font-size: var(--step-0); }

/* ---------- Section headers ---------- */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 32px; border-bottom: 2px solid var(--border-color); padding-bottom: 12px;
}
.sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--forest-green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sec-head span { font-size: var(--step--1); color: var(--text-muted); font-weight: 600; }

/* ---------- Upload ---------- */
.upload { padding-bottom: 100px; }
.upload .drop { padding: clamp(40px, 6vw, 80px) 24px; }
.drop h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  color: var(--forest-green);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.drop p { margin: 0 auto; max-width: 50ch; color: var(--text-muted); font-size: var(--step-0); }
.drop .btn { margin-top: 24px; }

.limits {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  margin-top: 24px; font-size: var(--step--1); color: var(--text-muted); font-weight: 600;
}

/* Staged file panel — appears once a file is chosen. */
.staged {
  margin-top: 24px; display: none; padding: 24px;
  border: 3px solid var(--forest-green);
  border-radius: 0;
  box-shadow: 8px 8px 0 var(--forest-green);
  background: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.staged.on { display: block; }
.staged-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.staged-row .name { font-size: var(--step-0); font-weight: 700; color: var(--forest-green); }
.staged-row .meta { color: var(--text-muted); font-size: var(--step--1); }
.staged-row .grow { margin-left: auto; display: flex; gap: 12px; }
.staged .bar { margin-top: 18px; }

/* Hidden until stageFile() has a blob to play. Results imported from the
   extension have no playable file, so this stays collapsed there. */
.staged-preview { display: none; margin-top: 18px; }
.staged-preview.on { display: block; }
.staged-preview video {
  display: block; width: 100%; max-height: 320px;
  background: #000; border-radius: 0;
  object-fit: contain;                 /* letterbox rather than crop or stretch */
}

/* ---------- Report ---------- */
.report { display: none; padding-bottom: 100px; }
.report.on { display: block; }

.verdict {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; padding: 28px; border-bottom: 1px solid var(--border-color);
}
.verdict .file h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--forest-green);
  overflow-wrap: anywhere;
}
.verdict .file p { margin: 4px 0 0; color: var(--text-muted); font-size: var(--step--1); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }
.stat span { display: block; color: var(--text-muted); font-size: var(--step--1); font-weight: 600; }
.stat strong {
  display: block; margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--forest-green);
  letter-spacing: 0.04em;
}

/* The evidence panel used to sit beside the player in a 2-column grid. With
   that panel gone the player is the only child, so it is centred and capped
   rather than stretched to the full report width. */
.viewer { display: block; padding: 24px; }

.viewer-video {
  background: #000; border-radius: 16px; overflow: hidden;
  position: relative; display: flex; align-items: center;
  width: 100%; max-width: 560px; margin-inline: auto;
  aspect-ratio: 16 / 9;                /* holds the box open before a clip loads */
}
.viewer-video video { width: 100%; height: 100%; object-fit: contain; }
.viewer-video .ghost {
  position: absolute; inset: 0; display: grid; place-content: center;
  color: var(--white); font-size: var(--step--1); background: var(--forest-green);
  text-align: center; padding: 20px;
}

.timeline { padding: 28px; }
.timeline h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--forest-green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.timeline .hint { margin: 0 0 20px; font-size: var(--step--1); color: var(--text-muted); }

/* Headline + guidance panel: shown only for real (server) results. */
.report-headline {
  padding: 20px 28px 4px;
  border-bottom: 1px solid var(--border-color);
}
.report-headline .headline-text {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--forest-green);
  line-height: 1.4;
}
.report-headline .guidance-text {
  margin: 0;
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Verdict state skins ----------
   The report deliberately looks different in all three states, so that
   "measured and nothing was found" is never mistaken for a weak flag or for a
   check that did not run. app.js sets exactly one of these classes on the
   panel. The default (no class) is the flagged look already defined above. */

/* Measured, nothing found: a soft green wash and a green rule. */
.brutalist-panel.state-clean {
  background: linear-gradient(180deg, rgba(20, 77, 55, 0.07) 0%, var(--white) 260px);
  border-color: var(--true);
  box-shadow: 8px 8px 0 var(--true);
}

/* Not enough evidence to judge: deliberately unresolved. A dashed border
   says "no call was made" in a way a colour alone cannot. */
.brutalist-panel.state-unknown {
  background: var(--white);
  border-style: dashed;
  border-color: var(--text-muted);
  box-shadow: 8px 8px 0 rgba(42, 107, 80, 0.35);
}

/* The clean-result line. Hidden unless app.js opts it in, because it is a
   statement about a result and must never appear over a missing one. */
.clean-note {
  display: none;
  margin: 0;
  padding: 22px 28px 4px;
  font-size: var(--step-1);
  color: var(--true);
  line-height: 1.5;
}
.clean-note::before {
  content: "✓";
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 800;
  margin-right: 10px;
  display: inline-grid;
  place-content: center;
  width: 1.5em; height: 1.5em;
  vertical-align: -.35em;
  border-radius: 50%;
  background: var(--true);
  color: var(--white);
  font-size: .62em;
}
.brutalist-panel.state-clean .clean-note { display: block; }

/* Evidence sentences list — pinned-note styling. Each sentence is written by
   the pipeline from a real number, so they are presented as individual
   findings rather than as one run of prose. */
.evidence-list {
  counter-reset: evidence-item;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.evidence-list li {
  counter-increment: evidence-item;
  position: relative;
  padding: 13px 18px 13px 52px;
  font-size: var(--step--1);
  color: var(--forest-green);
  line-height: 1.6;
  background: var(--white);
  border: 2px solid var(--forest-green);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 rgba(20, 77, 55, 0.18);
}
/* These cards were tilted a fraction of a degree each, alternating, to read as
   hand-pinned notes. At full width against a straight page edge that does not
   read as charm - it reads as a layout that has slipped. Straight. */

/* Each sentence is numbered. The number comes from a CSS counter rather than
   from the markup, so app.js still writes plain <li> text and the digits are
   never part of the sentence a screen reader announces - the <ol> already
   conveys the ordering to assistive tech.

   This was a magnifier glyph until the CSS hex escape for it turned into a
   control character in transit and rendered as five stray characters. A digit
   cannot fail that way, and it carries more meaning than the icon did. */
.evidence-list li::before {
  content: counter(evidence-item);
  position: absolute;
  /* Centred on the first line of text: 12px card padding + half a 1.6 line. */
  left: 14px; top: 12px;
  width: 26px; height: 26px;
  display: grid; place-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
  color: var(--forest-green);
  background: var(--bg-cream);
  border: 2px solid var(--forest-green);
  border-radius: 50%;
}
.brutalist-panel.state-clean .evidence-list li { border-color: var(--true); }

.caveat { padding: 24px; color: var(--forest-green); font-size: var(--step--1); line-height: 1.7; }

.report-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* Banner shown only when a report arrived from the Chrome extension via the
   URL fragment. Hidden by default; app.js adds .on. */
.handoff-note {
  display: none; margin-bottom: 20px; padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(58, 130, 196, 0.12);
  border: 1px solid rgba(58, 130, 196, 0.35);
  color: var(--forest-green); font-size: var(--step--1); font-weight: 600;
}
.handoff-note.on { display: block; }

/* ---------- Themed section wrappers ---------- */
.pink-theme-section { background-color: var(--bg-pink); padding: 80px 0; }

.method { padding-bottom: 60px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 820px) { .method-grid { grid-template-columns: 1fr; } }

.cell {
  padding: 1.5rem 1.4rem;
  background-color: var(--white);
  border: 3px solid var(--forest-green);
  border-radius: 0;
  box-shadow: 8px 8px 0 var(--forest-green);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  /* Override glass-panel on these cards */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.cell::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(239, 99, 55, 0.08), transparent);
  transition: all 0.5s;
}
.cell:hover::before { left: 100%; }
.cell:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--forest-green);
}
.cell:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}
.cell h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  color: var(--forest-green);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 900;
  border-bottom: 2px solid var(--forest-green);
  padding-bottom: 10px;
}
.cell p { margin: 0; color: var(--forest-green); font-size: var(--step--1); line-height: 1.7; font-weight: 600; }

.dark-theme-section {
  background-color: var(--forest-green);
  color: var(--bg-cream);
  padding: 80px 0;
}
.dark-theme-section .sec-head { border-bottom-color: rgba(255, 255, 255, 0.2); }
.dark-theme-section .sec-head h2 { color: var(--bg-cream); }
.dark-theme-section .sec-head span { color: var(--bg-pink); }
.dark-theme-section .cell {
  background-color: var(--forest-dark);
  border-color: var(--bg-cream);
  box-shadow: 8px 8px 0 rgba(245, 243, 238, 0.35);
}
.dark-theme-section .cell:hover {
  box-shadow: 11px 11px 0 rgba(245, 243, 238, 0.45);
}
.dark-theme-section .cell h3 { color: var(--bg-cream); border-bottom-color: rgba(245, 243, 238, 0.3); }
.dark-theme-section .cell p { color: rgba(245, 243, 238, 0.8); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border-color); padding: 40px 0 60px;
  color: var(--forest-green); font-size: var(--step--1); font-weight: 600;
  background: var(--bg-cream);
}
.foot-in { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

/* ---------- Print ----------------------------------------------------------
   No button triggers this any more. It is kept so that a reader who prints the
   page themselves (Ctrl+P, or Save as PDF) still gets just the report instead
   of the whole marketing page. Delete this block to drop printing entirely. */
@media print {
  .mast, .hero, .statement, .upload, .report-actions,
  .pink-theme-section, .dark-theme-section, footer { display: none !important; }
  .report { display: block !important; padding: 0; }
  .glass-panel { backdrop-filter: none; background: #fff; box-shadow: none; }
  body { background: #fff; }
}

/* ============================================================================
   VERIFY PAGE (verify.html)
   ----------------------------------------------------------------------------
   Reuses the report's panel, badge and .ev row styles so a verified receipt
   reads as the same kind of object as the report it came from.
   ========================================================================== */
.verify-intro { padding: 20px 24px; margin-bottom: 28px; border: 2px solid var(--border-color); border-radius: var(--radius-sm); background: var(--white-trans); }

.verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .verify-grid { grid-template-columns: 1fr; } }

.verify-cell { background: var(--white-trans); border: 2px solid var(--border-color); border-radius: var(--radius-sm); padding: 22px; }
.verify-cell h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--forest-green);
}
.verify-cell h3 em { font-family: var(--font-serif); text-transform: none; letter-spacing: 0; color: var(--text-muted); }
.verify-cell .hint { margin: 0 0 14px; font-size: var(--step--1); color: var(--text-muted); line-height: 1.6; }

#receiptText {
  width: 100%; min-height: 190px; resize: vertical;
  padding: 14px; border: 2px solid var(--border-color); border-radius: var(--radius-sm);
  background: var(--white); color: var(--forest-green);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px; line-height: 1.55;
}
#receiptText:focus-visible { outline: 2px solid var(--forest-green); outline-offset: 2px; }

/* A compact version of the uploader's drop zone. */
.drop--small { padding: 26px 20px; min-height: 0; }
.drop--small p { margin: 0 0 14px; font-size: var(--step--1); color: var(--text-muted); }

.verify-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.verify-actions { margin-top: 28px; }

/* Hidden until a check has actually run - an empty verdict box reads as a
   check that passed. */
.verify-result { display: none; margin-top: 32px; }
.verify-result.on { display: block; }

#hashLine { margin: 12px 0 0; font-family: ui-monospace, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
#vFields .ev b { min-width: 150px; }
#vFields .ev span { font-family: ui-monospace, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; text-align: right; }

/* ============================================================================
   SERVER STATUS / SAMPLE CLIPS / RECENT CHECKS
   ========================================================================== */

/* Shown only once a probe has actually failed. Orange, not red-on-white decor:
   this says the numbers on screen are invented, which is the single most
   important thing the interface can tell you. */
.server-note { display: none; margin-bottom: 24px; padding: 18px 22px; border: 3px solid var(--fake); border-radius: 0; background: rgba(239, 99, 55, .08); box-shadow: 6px 6px 0 var(--fake); }
.server-note.on { display: block; }
.server-note b { display: block; font-family: var(--font-display); font-size: var(--step-1); letter-spacing: .04em; text-transform: uppercase; color: var(--fake); }
.server-note span { display: block; margin-top: 6px; font-size: var(--step--1); color: var(--forest-green); line-height: 1.65; }
.server-note code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--white); padding: 2px 6px; border: 1px solid var(--border-color); }

.samples, .history { margin-top: 28px; }
.samples h4, .history h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--forest-green);
}
.samples .hint, .history .hint { margin: 0 0 14px; font-size: var(--step--1); color: var(--text-muted); line-height: 1.6; }

.sample-row, .history-row { display: flex; gap: 12px; flex-wrap: wrap; }

.sample {
  flex: 1 1 200px; text-align: left; cursor: pointer;
  padding: 16px 18px; font: inherit;
  background: var(--white); color: var(--forest-green);
  border: 2px solid var(--forest-green); border-radius: var(--radius-sm);
  box-shadow: 4px 4px 0 var(--forest-green);
  transition: transform .12s ease, box-shadow .12s ease;
}
.sample:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--forest-green); }
.sample:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--forest-green); }
.sample:disabled { opacity: .55; cursor: progress; }
.sample b { display: block; font-size: var(--step-0); font-weight: 700; overflow-wrap: anywhere; }
.sample .sample-truth { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 50px; background: var(--green-glass); border: 1px solid var(--border-color); font-size: var(--step--1); color: var(--text-muted); }
.sample em { display: block; margin-top: 8px; font-family: var(--font-serif); font-size: var(--step--1); color: var(--text-muted); }

.history-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }

.link-btn { background: none; border: none; padding: 0; font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--text-muted); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--forest-green); }

.hist {
  flex: 1 1 190px; padding: 14px 16px;
  background: var(--white-trans); border: 2px solid var(--border-color);
  border-radius: var(--radius-sm); border-left-width: 6px;
}
.hist b { display: block; font-size: var(--step--1); font-weight: 700; color: var(--forest-green); overflow-wrap: anywhere; }
.hist span { display: block; margin-top: 4px; font-size: var(--step--1); color: var(--text-muted); }
.hist em { display: block; margin-top: 6px; font-family: var(--font-serif); font-size: var(--step--1); color: var(--text-muted); }
.hist .link-btn { margin-top: 8px; }

/* One border colour per state, matching the report's own three-state skin. */
.hist--authentic { border-left-color: var(--true); }
.hist--synthetic { border-left-color: var(--fake); }
.hist--inconclusive { border-left-color: var(--text-muted); border-left-style: dashed; }
.hist--sim { border-left-color: var(--warn); background: rgba(217, 119, 6, .07); }

/* ============================================================================
   METHOD FLOW — the pipeline as a numbered sequence
   ----------------------------------------------------------------------------
   Replaces three equal cards with an ordered list, because the three cards were
   describing stages that happen in an order and looked like independent
   features. Step numbers come from a CSS counter, so the markup stays a plain
   <ol> and a screen reader gets the ordering from the list itself.
   ========================================================================== */
.flow {
  counter-reset: flow-step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 32px;
  position: relative;
}

.flow-step {
  counter-increment: flow-step;
  position: relative;
  padding: 26px 22px 22px;
  background: var(--white);
  border: 3px solid var(--forest-green);
  box-shadow: 8px 8px 0 var(--forest-green);
  transition: transform .2s ease, box-shadow .2s ease;
}
.flow-step:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--forest-green); }

/* The step number sits on the top-left corner of the card, overlapping the
   border so the sequence reads before the words do. */
.flow-step::before {
  content: counter(flow-step);
  position: absolute;
  top: -20px; left: -14px;
  width: 44px; height: 44px;
  display: grid; place-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--white);
  background: var(--accent-orange);
  border: 3px solid var(--forest-green);
  border-radius: 50%;
}

/* The connector to the next step. Drawn only between cards on the same row:
   the last item in each row has nothing to its right to point at. */
.flow-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -32px;
  width: 32px;
  height: 3px;
  background: repeating-linear-gradient(90deg,
    var(--forest-green) 0 7px, transparent 7px 13px);
}
.flow-step:nth-child(3n)::after,
.flow-step:last-child::after { content: none; }

.flow-step h3 {
  margin: 0 0 10px;
  padding-left: 24px;            /* clear of the number badge */
  font-family: var(--font-display);
  font-size: var(--step-1);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--forest-green);
}
.flow-step p { margin: 0; font-size: var(--step--1); line-height: 1.7; color: var(--text-muted); }
.flow-step em { font-family: var(--font-serif); font-style: italic; color: var(--forest-green); }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 40px; }
  /* Stacked, the connector turns to point downwards instead of sideways. */
  .flow-step::after {
    top: auto; bottom: -40px; right: auto; left: 28px;
    width: 3px; height: 40px;
    background: repeating-linear-gradient(180deg,
      var(--forest-green) 0 7px, transparent 7px 13px);
  }
  .flow-step:nth-child(3n)::after { content: ""; }
  .flow-step:last-child::after { content: none; }
}

/* ----------------------------------------------------------------------------
   VERIFY PANEL STATES
   ----------------------------------------------------------------------------
   Three outcomes, three skins, mirroring the report's own three-state rule.
   A failed signature and a receipt that belongs to a different video are NOT
   the same finding, so they do not share a colour: one means someone altered
   the numbers, the other means the receipt is genuine and simply describes a
   different clip.
   -------------------------------------------------------------------------- */

/* Signature broken, or the receipt is unreadable - and, on the report, a clip
   the detector flagged as manipulated. The same wash in both places is
   deliberate: it is the project's one "something is wrong here" colour, the
   same --fake used by the badge, the timeline bars and the legend. */
.brutalist-panel.state-flagged,
.brutalist-panel.state-invalid {
  background: linear-gradient(180deg, rgba(239, 99, 55, .10) 0%, var(--white) 260px);
  border-color: var(--fake);
  box-shadow: 8px 8px 0 var(--fake);
}
.brutalist-panel.state-flagged .verdict .file h3,
.brutalist-panel.state-invalid .verdict .file h3 { color: var(--fake); }
.brutalist-panel.state-flagged .badge,
.brutalist-panel.state-invalid .badge { border-color: var(--fake); color: var(--fake); background: rgba(239, 99, 55, .1); }

/* Signature good, but it is about some other file. */
.brutalist-panel.state-warn {
  background: linear-gradient(180deg, rgba(217, 119, 6, .10) 0%, var(--white) 260px);
  border-color: var(--warn);
  box-shadow: 8px 8px 0 var(--warn);
}
.brutalist-panel.state-warn .verdict .file h3 { color: var(--warn); }
.brutalist-panel.state-warn .badge { border-color: var(--warn); color: var(--warn); background: rgba(217, 119, 6, .1); }

/* The "waking up" state of the server banner. Amber and quiet: a sleeping
   container is the normal state of a scale-to-zero deployment, not a fault,
   and it must not look like the red "your numbers are invented" warning. */
.server-note--waking {
  border-color: var(--warn);
  background: rgba(217, 119, 6, .07);
  box-shadow: 6px 6px 0 rgba(217, 119, 6, .45);
}
.server-note--waking b { color: var(--warn); }
