/* ==========================================================================
   AI-Readiness Report — two-zone visual system

   Owner zone (top of report): warm paper, expressive serif display,
   compact sans body. The signal color (burnt orange) marks "needs attention";
   the positive color (deep teal-green) marks verified and CTAs.

   Dev zone (below the divider): dark slate. Same information, but rendered
   for someone who reads code. Mono is the primary voice.

   Shared: landing / scanning pages inherit the owner-zone tokens.
   ========================================================================== */

:root {
  /* Owner zone (default for all pages except the report's dev section) */
  --paper: #F4F0E8;
  --ink: #181818;
  --muted: #6B6963;
  --border: #DDD8CC;
  --signal: #C0532A;
  --signal-soft: #F3E1D6;
  --positive: #2F5D50;
  --positive-soft: #DDE9E4;

  /* Dev zone */
  --slate: #161A1F;
  --slate-elev: #1E242B;
  --slate-fg: #E8E6E1;
  --slate-muted: #8A8F94;
  --slate-border: #2B333B;
  --mono-bg: #0E1114;
  --dev-positive: #7BC391;
  --dev-signal: #E68A5D;

  /* Type */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font: 400 16px/1.55 var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

header {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 2rem;
}
.brand {
  font: 600 1.05rem var(--font-body);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  color: var(--muted);
  text-align: center;
  margin-top: 4rem;
  font-size: 0.85rem;
}

/* ----- Type scale ---------------------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; }
h1 { font-size: 2.4rem; line-height: 1.1; margin: 0 0 0.5rem; font-variation-settings: 'opsz' 96, 'SOFT' 30; }
h2 { font-size: 1.5rem; line-height: 1.2; margin: 2.5rem 0 0.75rem; font-variation-settings: 'opsz' 48; }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 1.5rem 0 0.5rem; }
.lede { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.9rem; }
.url { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }

.error {
  background: var(--signal-soft);
  border-left: 3px solid var(--signal);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 2px;
  color: var(--ink);
}

/* ----- Landing / scanning shared shell ------------------------------------- */
.landing-hero {
  max-width: 44rem;
  margin: 2rem auto 0;
  padding: 1rem 0 0;
}
.landing-eyebrow {
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}
.landing-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 96, 'SOFT' 40;
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1rem;
  max-width: 20ch;
}
.landing-lede {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 44rem;
}

/* ----- Forms (landing / unlock / scanning) --------------------------------- */
.scan-form {
  margin: 1rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-label {
  font: 500 0.72rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.field-hint {
  font: 400 0.78rem/1.2 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font-style: italic;
}
.scan-form input, .unlock-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  font: 400 1rem var(--font-body);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.field-primary input {
  padding: 1rem 1.15rem;
  font-size: 1.08rem;
  font-weight: 500;
}
.scan-form input:focus, .unlock-form input:focus {
  outline: 2px solid var(--positive);
  outline-offset: -1px;
  border-color: var(--positive);
}
.scan-form button, .unlock-form button {
  padding: 0.9rem 1.5rem;
  font: 500 1rem var(--font-body);
  background: var(--positive);
  color: #fff;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.01em;
  margin-top: 0.4rem;
}
.scan-form button { width: 100%; }
.scan-form button:hover, .unlock-form button:hover { background: #24483d; }
.scan-form button:focus-visible,
.unlock-form button:focus-visible,
.owner-fixes a:focus-visible {
  outline: 2px solid var(--positive);
  outline-offset: 2px;
}
.owner-fixes a:focus-visible { border-radius: 2px; }
.scan-footnote {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}
.unlock-form { display: flex; gap: 0.5rem; margin: 1rem 0 0; }
.unlock-form input { flex: 1; }

/* ----- Scanning page (progress ring) --------------------------------------- */
.scanning {
  max-width: 34rem;
  margin: 3rem auto 0;
  text-align: center;
}
.scanning .landing-eyebrow { justify-content: center; }
.scanning-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 96, 'SOFT' 40;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 2rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.scan-progress {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
}
.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}
.ring-fill {
  fill: none;
  stroke: var(--positive);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease;
}
@keyframes ring-spin {
  from { transform: rotate(-90deg); }
  to   { transform: rotate(270deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .progress-ring { animation: ring-spin 12s linear infinite; }
}
.progress-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}
.progress-count {
  font: 500 1.5rem/1 var(--font-mono);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.progress-label {
  font: 500 0.7rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.scan-target {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.scan-target .url {
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 0.9rem;
}
.scan-now {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 2rem;
  min-height: 1.4em;
}

/* ----- Progress steps (compact list under the ring) ------------------------ */
.progress-steps { list-style: none; padding: 0; margin: 0; }
.progress-steps.compact {
  text-align: left;
  max-width: 26rem;
  margin: 0 auto;
}
.progress-steps .step {
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
}
.progress-steps .step:last-child { border-bottom: 1px solid var(--border); }
.progress-steps .step.pending { color: var(--muted); }
.progress-steps .step.done { color: var(--ink); }
.progress-steps .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.progress-steps .done .mark {
  background: var(--positive);
  border-color: var(--positive);
  color: #fff;
}

/* ----- Report teaser (locked preview) -------------------------------------- */
.report-teaser {
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}
.teaser-verdict {
  --verdict-accent: var(--muted);
  border-left: 3px solid var(--verdict-accent);
  padding: 0.15rem 0 0.15rem 1.25rem;
  margin: 0 0 2.5rem;
}
.teaser-verdict.tone-good    { --verdict-accent: var(--positive); }
.teaser-verdict.tone-mixed   { --verdict-accent: var(--muted); }
.teaser-verdict.tone-bad     { --verdict-accent: var(--signal); }
.teaser-verdict.tone-unknown { --verdict-accent: var(--border); }
.teaser-eyebrow {
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}
.teaser-score-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin: 0 0 0.7rem;
}
.teaser-score-row .verdict-headline { margin: 0; }

.teaser-gaps { margin: 0 0 2.5rem; }
.teaser-gap-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0.75rem;
}
.teaser-gap-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}
.teaser-gap-list li:last-child { border-bottom: 1px solid var(--border); }
.teaser-gap-list .sev-dot {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--muted);
}
.teaser-gap-list .sev-high .sev-dot   { background: var(--signal); }
.teaser-gap-list .sev-medium .sev-dot { background: var(--positive); opacity: 0.75; }
.teaser-gap-list .sev-low .sev-dot    { background: var(--muted); opacity: 0.55; }
.teaser-gap-list .fix-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}
.teaser-fade {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin: 0.5rem 0 0;
}

.teaser-unlock {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  margin: 2.5rem 0 0;
}
.teaser-unlock h2 { margin-top: 0; }
.teaser-unlock-value {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0.25rem 0 1rem;
  max-width: 55ch;
}

/* ==========================================================================
   REPORT — OWNER ZONE
   ========================================================================== */

/* Bust out of the narrow main container for the report — needs the full
   canvas so the dev-section divider can span edge to edge. */
main:has(> .report-owner) {
  max-width: none;
  padding: 0;
}
.report-owner {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

/* ----- Back-to-landing link (top of report / teaser) ---------------------- */
.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  margin: 0 0 1.25rem;
  padding: 0.2rem 0;
  letter-spacing: -0.005em;
}
.back-link:hover { color: var(--ink); }
.back-link:focus-visible {
  outline: 2px solid var(--positive);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ----- Identity header ---------------------------------------------------- */
.identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.identity .name {
  font: 500 1.1rem var(--font-body);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.identity .dot { color: var(--border); }

/* ----- Hero (AI chat bubble) ---------------------------------------------- */
.hero { margin: 0 0 3rem; }

.hero-verdict {
  --verdict-accent: var(--muted);
  border-left: 3px solid var(--verdict-accent);
  padding: 0.15rem 0 0.15rem 1.25rem;
  margin: 0 0 2rem;
}
.hero-verdict.tone-good  { --verdict-accent: var(--positive); }
.hero-verdict.tone-mixed { --verdict-accent: var(--muted); }
.hero-verdict.tone-bad   { --verdict-accent: var(--signal); }
.hero-verdict.tone-unknown { --verdict-accent: var(--border); }

.verdict-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'opsz' 72, 'SOFT' 50;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6rem;
  max-width: 24ch;
}
.verdict-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 55ch;
}

.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.hero-prompt {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  margin: 0 0 1.5rem;
  max-width: 100%;
  flex-wrap: wrap;
}
.hero-prompt .prompt-label {
  font: 500 0.68rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 0.55rem;
  border-right: 1px solid var(--border);
}
.hero-prompt .prompt-text {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 500;
}
.hero-prompt .prompt-text::before { content: '\201C'; }
.hero-prompt .prompt-text::after { content: '\201D'; }

.hero-evidence-lead {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.hero-bridge {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}
.hero-bridge span { color: var(--signal); margin-left: 0.15rem; }

.engine-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.engine-row li {
  flex: 1 1 140px;
  display: grid;
  grid-template-columns: 0.6rem 1fr;
  align-items: baseline;
  column-gap: 0.55rem;
  row-gap: 0.1rem;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--border);
}
.engine-row .glyph {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border);
}
.engine-row .e-name {
  grid-column: 2;
  grid-row: 1;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.engine-row .e-state {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.2;
}
.engine-row .cited .glyph { background: var(--positive); border-color: var(--positive); }
.engine-row .cited .e-state { color: var(--positive); font-weight: 500; }
.engine-row .mention .glyph {
  background: radial-gradient(circle at center, var(--positive) 45%, transparent 47%);
  border-color: var(--positive);
}
.engine-row .mention .e-state { color: var(--positive); }
.engine-row .miss .glyph { background: transparent; border-color: var(--muted); opacity: 0.5; }
.engine-row .miss .e-name { color: var(--muted); }
.engine-row .error .glyph {
  background: var(--signal);
  border-color: var(--signal);
  border-radius: 2px;
}
.engine-row .error .e-state { color: var(--signal); }

.hero-answer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 2px;
  padding: 1.25rem 1.4rem;
  position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.hero-answer .who {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.hero-answer .text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
}
.hero-empty {
  padding: 1.25rem;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-summary {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.score-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.4rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font: 600 1.4rem var(--font-mono);
  letter-spacing: -0.02em;
}
.score-pill span { font-size: 0.8rem; opacity: 0.6; font-weight: 500; }
.hero-summary .tally { font-size: 1rem; color: var(--ink); }
.hero-summary .tally strong { font-weight: 600; }

/* ----- What to fix (owner cards) ------------------------------------------ */
.owner-fixes { list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: fix; }
.owner-fixes li {
  counter-increment: fix;
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  align-items: flex-start;
}
.owner-fixes li:last-child { border-bottom: 1px solid var(--border); }
.owner-fixes a {
  color: inherit;
  text-decoration: none;
  display: flex;
  gap: 1rem;
  width: 100%;
  align-items: flex-start;
}
.owner-fixes a:hover .fix-title { text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; }

.owner-fixes .sev-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  margin-top: 0.45rem;
  flex-shrink: 0;
  background: var(--border);
}
.owner-fixes .sev-high .sev-dot   { background: var(--signal); }
.owner-fixes .sev-medium .sev-dot { background: var(--positive); opacity: 0.75; }
.owner-fixes .sev-low .sev-dot    { background: var(--muted); opacity: 0.5; }
.owner-fixes .body { flex: 1; min-width: 0; }
.owner-fixes .fix-title {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 0.25rem;
}
.owner-fixes .fix-summary {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.45;
}
.owner-fixes .impact {
  font: 500 0.8rem var(--font-mono);
  color: var(--signal);
  white-space: nowrap;
  padding-top: 0.15rem;
}
.owner-fixes .status-verified .fix-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--positive); }
.owner-fixes .status-verified .impact { color: var(--positive); }

.owner-empty {
  padding: 1.5rem;
  background: var(--positive-soft);
  border-radius: 3px;
  color: var(--positive);
  font-weight: 500;
}

/* ----- Timeline ----------------------------------------------------------- */
.timeline { margin: 2.5rem 0 0; }
.timeline-strip {
  list-style: none;
  padding: 1.25rem 0 0;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  overflow-x: auto;
}
.timeline-strip::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.timeline-point {
  flex: 1;
  min-width: 90px;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.timeline-point .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--border);
}
.timeline-point.current .dot { background: var(--positive); border-color: var(--positive); }
.timeline-point .score-num {
  font: 500 1rem var(--font-mono);
  color: var(--ink);
}
.timeline-point .when { color: var(--muted); font-size: 0.75rem; }

/* ==========================================================================
   DIVIDER BAND — visual audience handoff
   ========================================================================== */
.audience-divider {
  background: var(--slate);
  color: var(--slate-fg);
  padding: 2rem 2rem;
  margin-top: 3rem;
  text-align: center;
}
.audience-divider .label {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 72, 'SOFT' 40;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin: 0;
}
.audience-divider .hint {
  color: var(--slate-muted);
  font-size: 0.9rem;
  margin: 0.4rem 0 0;
}
.audience-divider .arrow {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

/* ==========================================================================
   REPORT — DEV ZONE
   ========================================================================== */
.report-dev {
  background: var(--slate);
  color: var(--slate-fg);
  padding: 2.5rem 0 4rem;
}
.report-dev-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}
.report-dev h2 {
  color: var(--slate-fg);
  font-family: var(--font-display);
  font-weight: 400;
  margin: 2.5rem 0 0.5rem;
  font-size: 1.4rem;
}
.report-dev h2:first-child { margin-top: 0; }
.report-dev .kind-count {
  color: var(--slate-muted);
  font: 500 0.85rem var(--font-mono);
  margin-left: 0.5rem;
}
.report-dev .kind-hint { color: var(--slate-muted); margin: 0 0 1rem; font-size: 0.9rem; }

.dev-card {
  background: var(--slate-elev);
  border: 1px solid var(--slate-border);
  border-radius: 3px;
  padding: 1.1rem 1.25rem;
  margin: 0 0 1rem;
}
.dev-card.status-verified { opacity: 0.55; }
.dev-card.status-reopened { border-color: var(--dev-signal); }

.dev-card-head {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.dev-card-head .k {
  font: 500 0.75rem var(--font-mono);
  color: var(--slate-muted);
  background: var(--mono-bg);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}
.dev-card-head .t {
  font-weight: 500;
  color: var(--slate-fg);
  flex: 1;
  min-width: 0;
}
.dev-card-head .status-tag {
  font: 500 0.72rem var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  color: var(--slate-muted);
  background: var(--mono-bg);
}
/* Redundant when the card is already in the "to fix" section — hide until it moves to a meaningful state. */
.dev-card-head .status-tag.pending { display: none; }
.dev-card-head .status-tag.claimed_fixed { color: var(--paper); background: #4a3a1f; }
.dev-card-head .status-tag.reopened { color: var(--dev-signal); background: rgba(230, 138, 93, 0.15); }
.dev-card-head .status-tag.verified { color: var(--dev-positive); background: rgba(123, 195, 145, 0.15); }

.dev-card .instruction {
  color: var(--slate-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}
.dev-card pre.fix {
  background: var(--mono-bg);
  color: var(--slate-fg);
  padding: 0.9rem 1rem;
  border-radius: 3px;
  overflow-x: auto;
  font: 400 0.82rem var(--font-mono);
  margin: 0 0 0.75rem;
  border: 1px solid var(--slate-border);
  white-space: pre;
  line-height: 1.5;
}

.dev-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.dev-btn {
  padding: 0.5rem 0.9rem;
  font: 500 0.85rem var(--font-body);
  border-radius: 3px;
  border: 1px solid var(--slate-border);
  cursor: pointer;
  background: var(--slate-elev);
  color: var(--slate-fg);
  transition: background 0.15s, border-color 0.15s;
}
.dev-btn:hover { background: var(--slate); border-color: var(--slate-muted); }
.dev-btn:disabled { opacity: 0.5; cursor: wait; }
.dev-btn:focus-visible {
  outline: 2px solid var(--dev-positive);
  outline-offset: 2px;
  outline-radius: 3px;
}
.dev-btn.primary { background: var(--dev-positive); color: var(--slate); border-color: var(--dev-positive); }
.dev-btn.primary:hover { background: #93d1a5; border-color: #93d1a5; }
.dev-btn.verify { background: var(--paper); color: var(--slate); border-color: var(--paper); }
.dev-btn.verify:hover { background: #fff; border-color: #fff; }
.verify-result { font-size: 0.85rem; margin-left: 0.5rem; }
.verify-ok { color: var(--dev-positive); font-weight: 500; }
.verify-fail { color: var(--dev-signal); font-weight: 500; }

/* Merged LocalBusiness block — the primary paste artifact */
.merged-block {
  background: var(--mono-bg);
  border: 1px solid var(--dev-positive);
  border-radius: 3px;
  padding: 1.1rem 1.25rem;
  margin: 0 0 2rem;
  box-shadow: 0 0 0 3px rgba(123, 195, 145, 0.08);
}
.merged-block pre.fix {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 0.9rem;
  max-height: 26rem;
  overflow-y: auto;
}
.merged-block .dev-btn.primary { width: 100%; padding: 0.7rem 1rem; font-size: 0.95rem; }

/* JSON syntax tokens (tokenizer runs client-side on merged-json). */
.merged-block .tok-tag { color: #6b7580; }
.merged-block .tok-key { color: #7bc3d1; }
.merged-block .tok-str { color: #e8c990; }
.merged-block .tok-num { color: #c495c9; }
.merged-block .tok-lit { color: #c495c9; }

/* Compact card variant for "what's in the block" list */
.dev-card.compact {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.dev-card.compact .instruction { margin-bottom: 0.5rem; font-size: 0.85rem; }
.dev-card.compact .dev-btns { gap: 0.4rem; }
.dev-card.compact .dev-btn { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

/* Full visibility matrix — collapsed by default, expandable for devs who care */
.matrix-details { margin: 2rem 0 0; }
.matrix-details > summary {
  cursor: pointer;
  color: var(--slate-fg);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  padding: 0.6rem 0;
  list-style: none;
}
.matrix-details > summary::-webkit-details-marker { display: none; }
.matrix-details > summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--slate-muted);
  font-size: 0.85rem;
  transition: transform 0.15s;
}
.matrix-details[open] > summary::before { transform: rotate(90deg); }
.matrix-details > summary .kind-count {
  color: var(--slate-muted);
  font: 500 0.75rem var(--font-mono);
  margin-left: 0.5rem;
}

/* Matrix table */
.matrix {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.85rem;
}
.matrix th, .matrix td {
  border: 1px solid var(--slate-border);
  padding: 0.55rem 0.8rem;
  text-align: left;
}
.matrix th {
  background: var(--slate-elev);
  font-weight: 500;
  color: var(--slate-fg);
  font-family: var(--font-body);
}
.matrix td { color: var(--slate-fg); }
.matrix td strong { color: var(--dev-positive); font-weight: 500; }
.matrix .warn { color: var(--dev-signal); }

/* Dev-zone body prose */
.report-dev p, .report-dev li { color: var(--slate-fg); }
.report-dev .muted { color: var(--slate-muted); }
.report-dev code {
  font: 400 0.85em var(--font-mono);
  background: var(--mono-bg);
  padding: 0.1em 0.35em;
  border-radius: 2px;
  color: var(--slate-fg);
}

.rescan {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 20;
}
.rescan button {
  padding: 0.65rem 1.1rem;
  font: 500 0.9rem var(--font-body);
  background: var(--paper);
  color: var(--slate);
  border: 1px solid var(--paper);
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.rescan button:hover { background: #fff; }
.rescan form { margin: 0; }

/* ----- Mobile ------------------------------------------------------------- */
@media (max-width: 640px) {
  main { padding: 1.5rem 1rem; }
  .report-owner { padding: 2rem 1rem 1.5rem; }
  .audience-divider { padding: 1.5rem 1rem; }
  .report-dev-inner { padding: 0 1rem; }
  h1 { font-size: 1.9rem; }
  .hero-prompt { font-size: 1.4rem; }
  .engine-row { gap: 0.4rem 0.9rem; font-size: 0.8rem; }
  .owner-fixes li { padding: 0.85rem 0; }
  .dev-card { padding: 0.9rem 1rem; }
  .dev-card pre.fix { font-size: 0.75rem; }
}
