/* Impact Narrative Hub — editorial poster meets working app
   Flow: Upload → Analyse → Results → Detail */

:root {
  --ink: #16140f;
  --ink-2: #2a2620;
  --ink-3: #5a554a;
  --ink-4: #8a857a;
  --paper: #f3efe4;
  --paper-2: #ebe6d8;
  --paper-3: #ddd6c4;
  --line: #16140f;
  --line-soft: rgba(22, 20, 15, 0.14);
  --line-softer: rgba(22, 20, 15, 0.08);
  --accent: #e8ff4d;
  --accent-deep: #c9e22e;
  --accent-ink: #16140f;
  --warn: #d8a35a;
  --good: #8aab6a;
  --shadow: 0 1px 0 rgba(22, 20, 15, 0.04), 0 12px 32px -16px rgba(22, 20, 15, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

.script {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* --- Decorative primitives --- */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  background: transparent;
  white-space: nowrap;
  line-height: 1;
}
.pill.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill.dark { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.pill.ghost { border-color: var(--line-soft); color: var(--ink-3); }

.poster-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .35 0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.5'/></svg>");
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.55;
}

/* --- App chrome --- */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.topbar.on-dark {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: rgba(243, 239, 228, 0.1);
}

.brand-lockup {
  display: flex; align-items: center; gap: 12px;
}
.brand-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
}

.tb-spacer { flex: 1; }

.tb-link {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 0;
  background: transparent;
  padding: 6px 10px;
}
.topbar.on-dark .tb-link { color: rgba(243, 239, 228, 0.6); }
.tb-link:hover { color: var(--ink); }
.topbar.on-dark .tb-link:hover { color: var(--paper); }

.tb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tb-btn:hover { background: var(--accent-deep); }
.tb-btn.ghost { background: transparent; border-color: var(--line-soft); }

/* --- Canvas / sections --- */

.canvas {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  width: 100%;
}

/* --- Editorial type helpers --- */

.editorial-h1 {
  font-size: 72px;
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.editorial-h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* --- Upload screen poster --- */

.poster-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  min-height: calc(100vh - 73px);
  overflow: hidden;
  padding: 60px 60px 40px;
  display: flex;
  flex-direction: column;
}
.poster-hero::before {
  content: '';
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 255, 77, 0.5), transparent 62%);
  filter: blur(60px);
  top: -180px; right: -240px;
  pointer-events: none;
}
.poster-hero::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 255, 77, 0.18), transparent 60%);
  filter: blur(40px);
  bottom: -120px; left: -80px;
  pointer-events: none;
}

.poster-pills {
  position: relative;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.poster-pills .pill {
  color: var(--accent);
  border-color: var(--accent);
}

.poster-stack {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}
.poster-stack-h1 {
  font-size: 96px;
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: pretty;
  color: var(--paper);
}
.poster-stack-h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.poster-stack-lede {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(243, 239, 228, 0.75);
  margin: 24px 0 0;
  max-width: 480px;
}

.poster-foot {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, 0.5);
  padding-top: 18px;
  border-top: 1px solid rgba(232, 255, 77, 0.18);
  margin-top: 40px;
  gap: 20px;
}
.poster-foot a { color: inherit; text-decoration: none; }
.poster-foot a:hover { color: var(--accent); }

/* --- Drop zone (light variant, inside dark poster) --- */

.drop-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.drop-zone {
  border: 1.5px dashed var(--line-soft);
  border-radius: 12px;
  padding: 28px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
  background: var(--paper-2);
}
.drop-zone:hover, .drop-zone.dragging {
  border-color: var(--line);
  background: var(--paper-3);
}
.drop-zone.has-file {
  border-style: solid;
  background: var(--paper);
  text-align: left;
  align-items: flex-start;
}
.drop-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  font-size: 20px;
  color: var(--ink);
}
.drop-error {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(216, 163, 90, 0.18);
  border: 1px solid var(--warn);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
}

/* --- Analyse / loading screen --- */

.analyse-stage {
  background: var(--ink);
  color: var(--paper);
  min-height: calc(100vh - 73px);
  padding: 60px 60px;
  position: relative;
  overflow: hidden;
}
.analyse-stage::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 255, 77, 0.18), transparent 60%);
  filter: blur(80px);
  top: 30%; right: -10%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite alternate;
}
@keyframes float {
  to { transform: translate(40px, -40px) scale(1.05); }
}

/* --- Reading-the-document animation --- */

.doc-stage {
  position: relative;
  margin-top: 36px;
  border: 1px solid rgba(232, 255, 77, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(243, 239, 228, 0.05);
  height: 520px;
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.doc-viewport {
  position: absolute; inset: 0;
  overflow: hidden;
  perspective: 1200px;
}

.doc-scroll {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; flex-direction: column;
  gap: 28px;
  padding: 24px 32px;
  animation: docScroll 12s linear infinite;
}
@keyframes docScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-66.66%); }
}

.doc-page {
  background: rgba(243, 239, 228, 0.92);
  border-radius: 6px;
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.4);
  flex: none;
  min-height: 280px;
}
.doc-page-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(22, 20, 15, 0.45);
  margin-bottom: 4px;
}
.doc-line {
  height: 5px;
  background: rgba(22, 20, 15, 0.14);
  border-radius: 2px;
}
.doc-line.title {
  height: 11px;
  background: rgba(22, 20, 15, 0.55);
  margin: 6px 0 8px;
  width: 60%;
}
.doc-line.heading {
  height: 8px;
  background: rgba(22, 20, 15, 0.35);
  margin: 4px 0 2px;
  width: 38%;
}
.doc-line.gap { background: transparent; height: 2px; }
.doc-line.short { width: 32%; }
.doc-line.long  { width: 92%; }
.doc-line.medium { width: 68%; }
.doc-line.mid    { width: 80%; }

.doc-line.hit {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(232, 255, 77, 0.5);
}

.doc-beam {
  position: absolute;
  left: 0; right: 0;
  top: 42%;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.doc-beam::before {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 18%, var(--accent) 82%, transparent 100%);
  box-shadow: 0 0 22px 4px rgba(232, 255, 77, 0.45);
}
.doc-beam::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -36px; height: 70px;
  background: linear-gradient(180deg, transparent 0%, rgba(232, 255, 77, 0.08) 50%, transparent 100%);
  pointer-events: none;
}

.doc-viewport::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 12%, transparent 88%, var(--ink) 100%);
  pointer-events: none;
  z-index: 4;
}

.doc-phrase {
  position: absolute;
  z-index: 5;
  top: 40%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--accent);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  animation: phraseFly 1.8s ease-out forwards;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(232, 255, 77, 0.4);
}
@keyframes phraseFly {
  0%   { opacity: 0; transform: translate(0, 6px) scale(0.9); }
  18%  { opacity: 1; transform: translate(0, 0)   scale(1);   }
  100% { opacity: 0; transform: translate(220px, -120px) scale(0.95); }
}

.analyse-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.analyse-grid > * { width: 100%; }

/* --- Results page --- */

.results-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  padding: 42px 44px 36px;
  margin-bottom: 32px;
}
.results-hero::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 255, 77, 0.28), transparent 60%);
  filter: blur(60px);
  top: -120px; right: -160px;
  pointer-events: none;
}
.results-hero h1 {
  font-size: 56px;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 16px 0 12px;
  max-width: 800px;
  position: relative;
}
.results-hero h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.025em;
}
.results-hero-stats {
  position: relative;
  display: flex; gap: 32px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(232, 255, 77, 0.2);
}
.results-hero-stat .num {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.results-hero-stat .lbl {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, 0.55);
  margin-top: 4px;
}

.diag-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 16px;
  position: relative;
}
.diag-card .label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.diag-card .label::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); border: 1px solid var(--line);
}
.diag-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}
.diag-card.read .diag-text {
  font-size: 18px;
  font-family: 'Inter Tight', sans-serif;
  font-style: normal;
  color: var(--ink-2);
  line-height: 1.55;
}

.diag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

/* --- Narrative cards --- */

.tier-section { margin-top: 36px; }

.tier-header {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.tier-header .tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tier-header .tag.tell { background: var(--accent); color: var(--ink); }
.tier-header .tag.develop { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.tier-header .tag.flag { background: transparent; color: var(--ink-3); border: 1px dashed var(--line-soft); }
.tier-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.tier-header h2 em { font-family: 'Playfair Display', serif; font-weight: 400; color: var(--ink-3); }
.tier-header .desc {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
  max-width: 380px;
  text-align: right;
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.card-title {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}
.card-title em { font-family: 'Playfair Display', serif; font-weight: 400; }
.card-snippet {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-foot .arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
  color: var(--ink);
}

.card.poster-card {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  min-height: 340px;
}
.card.poster-card .card-head { color: rgba(243, 239, 228, 0.55); }
.card.poster-card .card-title em { color: var(--accent); }
.card.poster-card .card-snippet { color: rgba(243, 239, 228, 0.75); }
.card.poster-card .card-foot { border-top-color: rgba(232, 255, 77, 0.2); color: rgba(243, 239, 228, 0.55); }
.card.poster-card .card-foot .arrow { color: var(--accent); }
.card.poster-card .poster-image {
  height: 110px;
  border-radius: 8px;
}

.imgblock {
  position: relative;
  background: linear-gradient(135deg, #c4a87a 0%, #8d7350 40%, #2a2620 100%);
  overflow: hidden;
  border-radius: 8px;
}
.imgblock::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.25), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.3), transparent 50%);
  filter: blur(8px);
}
.imgblock::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .25 0'/></filter><rect width='80' height='80' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.6;
}
.imgblock.green { background: linear-gradient(140deg, #a8b87a 0%, #5a6840 50%, #2a2620 100%); }
.imgblock.blue { background: linear-gradient(140deg, #8aa5b8 0%, #4a6580 50%, #2a2620 100%); }
.imgblock.rust { background: linear-gradient(140deg, #c8927a 0%, #8a5840 50%, #2a2620 100%); }
.imgblock.ash { background: linear-gradient(140deg, #b8b3a8 0%, #6a655a 50%, #2a2620 100%); }

.imgblock-lbl {
  position: absolute;
  bottom: 8px; left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

/* --- Detail page --- */

.detail-header {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 36px 28px;
  background: var(--paper);
  overflow: hidden;
  margin-bottom: 24px;
}
.detail-header.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.detail-header.dark::before {
  content: '';
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 255, 77, 0.25), transparent 60%);
  filter: blur(50px);
  top: -160px; right: -160px;
  pointer-events: none;
}
.detail-header h1 {
  font-size: 64px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 28px 0 0;
  text-wrap: pretty;
  position: relative;
}
.detail-header h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.detail-header.dark h1 em { color: var(--accent); }
.detail-header:not(.dark) h1 em { color: var(--ink-3); }
.detail-header .crumb {
  display: flex; gap: 10px; align-items: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.detail-header.dark .crumb { color: rgba(243, 239, 228, 0.55); }

.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 24px 26px;
}
.panel.shaded { background: var(--paper-2); border-color: var(--line-soft); }

.panel-h {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.panel-h::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.panel-h .right {
  margin-left: auto;
  color: var(--ink-4);
  font-size: 10px;
  font-weight: 400;
}

.field-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}
.field-body + .field-body { margin-top: 12px; }

.aud-row {
  border-bottom: 1px dashed var(--line-soft);
  padding: 18px 0;
}
.aud-row:first-of-type { padding-top: 8px; }
.aud-row:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.aud-name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.aud-name .num {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.aud-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}
.aud-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  padding-top: 2px;
}

.proof-list { display: flex; flex-direction: column; }
.proof-row {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}
.proof-row:last-child { border-bottom: 0; }
.proof-bullet {
  width: 5px; height: 5px;
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-top: 8px;
  flex: none;
}

.quote-card {
  background: var(--paper-2);
  border-radius: 12px;
  padding: 20px 22px;
}
.quote-card + .quote-card { margin-top: 12px; }
.quote-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}
.quote-attrib {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
  display: block;
}
.quote-why {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 10px 0 0;
  font-style: italic;
}

.angle-callout {
  background: var(--accent);
  border-radius: 14px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.angle-callout .panel-h::before {
  background: var(--ink);
  border-color: var(--ink);
}

.starting-callout {
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 26px 28px;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.starting-callout .panel-h { color: var(--accent); }
.starting-callout .panel-h::before { background: var(--accent); border-color: var(--accent); }
.starting-callout .field-body {
  color: var(--paper);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.tier-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tier-pill.tell { background: var(--accent); color: var(--ink); }
.tier-pill.develop { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line-soft); }
.tier-pill.flag { background: transparent; color: var(--ink-3); border: 1px dashed var(--line-soft); }
.detail-header.dark .tier-pill.develop {
  background: rgba(243, 239, 228, 0.1);
  color: var(--paper);
  border-color: rgba(243, 239, 228, 0.2);
}
.detail-header.dark .tier-pill.flag {
  color: rgba(243, 239, 228, 0.55);
  border-color: rgba(243, 239, 228, 0.2);
}

.back-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.back-btn {
  border: 1px solid var(--line-soft);
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
}
.back-btn:hover { color: var(--ink); border-color: var(--line); }

.detail-foot {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.detail-foot-meta {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.results-topmeta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.results-end {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-soft);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- Diagnostic sections (greenhushing / greenwashing / what's not here) --- */

.diag-section {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.diag-section-header {
  margin-bottom: 22px;
  max-width: 720px;
}
.diag-section-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.diag-section-title em {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-3);
}
.diag-section-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
.diag-section-empty {
  margin: 0;
  padding: 18px 0;
  font-size: 13.5px;
  color: var(--ink-3);
  font-style: italic;
}

.diag-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.diag-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px dashed var(--line-soft);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.diag-item:first-child { border-top: 0; padding-top: 6px; }
.diag-item-bullet {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-top: 3px;
  flex: none;
  width: 26px;
}
.diag-item-body {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}
.diag-item-body .page-ref {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.diag-item-main {
  flex: 1 1 100%;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.diag-item-evidence {
  flex: 1 1 100%;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  padding-left: 12px;
  border-left: 2px solid var(--line-soft);
}

/* Variant tints for the three diagnostic kinds. */
.diag-greenhushing .diag-section-title em { color: var(--ink-3); }
.diag-greenwashing .diag-item-body .page-ref { border-color: var(--warn); color: var(--warn); }
.diag-greenwashing .diag-item-evidence { border-left-color: var(--warn); }
.diag-gaps .diag-item-bullet { color: var(--ink-4); }


@media (max-width: 900px) {
  .poster-stack { grid-template-columns: 1fr; gap: 32px; }
  .poster-stack-h1 { font-size: 64px; }
  .cards { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .canvas { padding: 24px; }
  .poster-hero { padding: 32px; }
  .analyse-stage { padding: 36px 24px; }
  .topbar { padding: 14px 20px; }
  .diag-grid { grid-template-columns: 1fr; }
  .tier-header { flex-wrap: wrap; }
  .tier-header .desc { margin-left: 0; text-align: left; max-width: none; }
  .results-hero h1 { font-size: 40px; }
  .detail-header h1 { font-size: 44px; }
  .poster-foot { flex-direction: column; align-items: flex-start; }
}
