/*
 * Doutor Lucro — identidade editorial investigativa
 * Esta camada altera somente apresentação. A lógica, os dados e os fluxos
 * permanecem em app.js.
 */

:root {
  --kraft: #0b0b0b;
  --kraft-dk: #151515;
  --ink: #f5f0e8;
  --red: #c8392b;
  --blue-pen: #c8392b;
  --forest: #5e8a72;
  --paper: #111111;
  --amber: #d18a22;
  --mono: "IBM Plex Mono", monospace;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --handwrite: "Caveat", cursive;

  /* Compatibilidade com os componentes funcionais existentes. */
  --bg: var(--kraft);
  --bg-deep: var(--kraft-dk);
  --surface: var(--kraft);
  --surface-strong: var(--kraft-dk);
  --surface-soft: rgba(17, 17, 17, 0.94);
  --gold: var(--red);
  --gold-bright: var(--red);
  --gold-soft: rgba(200, 57, 43, 0.09);
  --gold-line: rgba(200, 57, 43, 0.52);
  --text: var(--ink);
  --text-soft: #d8d3ca;
  --muted: #9d968b;
  --muted-dark: #6e6962;
  --line: rgba(245, 240, 232, 0.18);
  --line-strong: rgba(245, 240, 232, 0.45);
  --danger: var(--red);
  --danger-soft: rgba(200, 57, 43, 0.09);
  --success: var(--forest);
  --success-soft: rgba(36, 68, 54, 0.11);
  --radius-xl: 0;
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;
  --shadow: 10px 10px 0 rgba(23, 23, 23, 0.1);
  color-scheme: dark;
}

html {
  background: var(--kraft-dk);
}

body {
  position: relative;
  color: var(--ink);
  background: var(--kraft);
  font-family: var(--mono);
  font-size: 14px;
}

body::before {
  position: fixed;
  z-index: 999;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E");
}

body[data-view="analyzing"] {
  background: var(--kraft);
}

button,
input,
select,
textarea {
  font-family: var(--mono);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(36, 84, 215, 0.42);
  outline-offset: 3px;
}

.shell {
  width: min(1240px, calc(100% - 48px));
}

.landing-copy h1,
.section-title,
.analysis-card h1,
.report-title,
.section-heading h2,
.field-section-title,
.journey-heading h2,
.bottleneck-card h3,
.plan-item h3,
.closing-section h2,
.capture-modal h2,
.impact-value,
.score-number,
.pillar-score,
.pipeline-stage strong,
.review-stage strong {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.button-primary,
.button-secondary,
.button-quiet,
.nav-button,
.capture-submit {
  border-radius: 0;
  font-family: var(--condensed);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-primary {
  color: var(--paper);
  border: 3px solid var(--red);
  background: var(--red);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-primary:hover {
  color: var(--paper);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.button-secondary {
  color: var(--ink);
  border: 2px solid var(--ink);
  background: transparent;
}

.button-secondary:hover {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

.button-quiet {
  color: var(--muted);
}

.required-mark,
.red-ink {
  color: var(--red) !important;
}

.eyebrow,
.step-kicker,
.section-heading small,
.analysis-kicker,
.capture-kicker {
  color: var(--red);
  font-family: var(--mono);
  font-weight: 700;
}

.eyebrow::before {
  background: var(--red);
}

/* ─── LANDING / ABERTURA DO CASO ───────────────────────────── */
.landing {
  min-height: 100svh;
  overflow: hidden;
  background: var(--kraft);
}

.landing-header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 40px;
  border-bottom: 3px solid var(--ink);
  background: var(--kraft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-header b {
  color: var(--red);
}

.landing-shell {
  width: 100%;
  max-width: none;
  min-height: 100svh;
}

.landing-stage {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "logo portrait"
    "copy portrait"
    "action portrait";
  column-gap: 0;
  padding: 0;
  border-right: 1px solid rgba(200, 57, 43, 0.72);
  border-left: 1px solid rgba(200, 57, 43, 0.72);
}

.landing-stage::before {
  display: none;
}

.landing-logo {
  grid-area: logo;
  align-self: start;
  margin: 0;
  padding: clamp(28px, 4vh, 46px) clamp(34px, 5vw, 64px) 18px;
}

.landing-logo img {
  display: block;
  width: clamp(240px, 24vw, 380px);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.landing-logo small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-copy {
  z-index: 1;
  grid-area: copy;
  align-self: center;
  padding: 12px clamp(34px, 6vw, 92px);
}

.landing-diagnostic-label {
  display: inline-flex;
  margin-bottom: 24px;
  padding-bottom: 7px;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  font-family: var(--condensed);
  font-size: clamp(0.86rem, 1vw, 1.02rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.stamp {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 3px solid currentColor;
  color: var(--red);
  font-family: var(--condensed);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: rotate(-1.5deg);
}

.stamp::after {
  position: absolute;
  inset: 2px;
  content: "";
  border: 1px solid currentColor;
  opacity: 0.28;
}

.landing-copy h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(4rem, 6.8vw, 7.7rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.landing-copy h1 em {
  display: inline;
  color: var(--red);
  font-style: normal;
}

.landing-copy p {
  max-width: 690px;
  margin: 25px 0 0;
  padding-left: 16px;
  color: var(--text-soft);
  border-left: 3px solid var(--red);
  font-size: clamp(0.78rem, 1vw, 0.91rem);
  line-height: 1.7;
}

.landing-copy > strong {
  display: block;
  max-width: 680px;
  margin: 14px 0 0 19px;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.55;
}

.landing-action {
  z-index: 2;
  grid-area: action;
  align-self: end;
  margin: 0;
  padding: 25px clamp(34px, 6vw, 92px) clamp(34px, 5vh, 56px);
}

.landing-cta {
  min-height: 58px;
  padding: 0 30px;
  font-size: 1.03rem;
}

.landing-action p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.61rem;
}

.landing-reset {
  color: var(--blue-pen);
}

.strategist-portrait {
  position: relative;
  display: flex;
  grid-area: portrait;
  width: 100%;
  height: auto;
  min-height: 100svh;
  align-self: stretch;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 28px 0;
  overflow: hidden;
  border-left: 1px solid rgba(200, 57, 43, 0.72);
  background:
    linear-gradient(rgba(245, 240, 232, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 232, 0.025) 1px, transparent 1px),
    #0d0d0d;
  background-size: 32px 32px, 32px 32px, auto;
}

.portrait-halo {
  position: absolute;
  z-index: 0;
  inset: 13% 2% 7%;
  height: auto;
  border: 1px solid rgba(23, 23, 23, 0.22);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 42px rgba(23, 23, 23, 0.035), 0 0 0 84px rgba(23, 23, 23, 0.025);
  filter: none;
}

.portrait-frame {
  z-index: 1;
  display: flex;
  width: min(94%, 490px);
  height: min(76svh, 720px);
  align-items: flex-end;
  justify-content: center;
}

.strategist-portrait .portrait-frame img {
  display: block;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(1) contrast(1.13) drop-shadow(18px 22px 0 rgba(200, 57, 43, 0.1));
  mix-blend-mode: normal;
}

.portrait-annotation {
  position: absolute;
  z-index: 3;
  top: 15%;
  right: 7%;
  color: var(--blue-pen);
  font-family: var(--handwrite);
  font-size: 1.35rem;
  transform: rotate(-5deg);
}

.landing-casefile {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 25px;
  left: 22px;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  background: rgba(245, 240, 232, 0.94);
  box-shadow: 7px 7px 0 rgba(23, 23, 23, 0.17);
}

.landing-casefile > small {
  display: block;
  margin-bottom: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.landing-casefile div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(23, 23, 23, 0.22);
  font-size: 0.6rem;
}

.landing-casefile div:last-child {
  border-bottom: 0;
}

.landing-casefile span {
  color: var(--muted);
}

.landing-casefile b {
  text-align: right;
}

/* ─── NAVEGAÇÃO E FORMULÁRIO ───────────────────────────────── */
.assessment {
  min-height: 100svh;
  padding: 0 0 72px;
  background: var(--kraft);
}

.assessment-nav-wrap {
  border-bottom: 3px solid var(--ink);
  background: rgba(231, 221, 201, 0.97);
  box-shadow: none;
  backdrop-filter: none;
}

.assessment-nav {
  grid-template-columns: 168px minmax(0, 1fr) auto;
  min-height: 94px;
}

.assessment-brand img {
  width: 158px;
  height: auto;
}

.assessment-progress .step-list {
  gap: 0;
}

.assessment-progress .step-list li {
  min-height: 37px;
  color: var(--muted);
  border-bottom: 1px solid rgba(23, 23, 23, 0.18);
  font-size: 0.59rem;
}

.step-index,
.assessment-progress .step-index {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

.step-list li.active {
  color: var(--ink);
}

.step-list li.active .step-index {
  color: var(--paper);
  border-color: var(--red);
  background: var(--red);
  transform: rotate(-2deg);
}

.step-list li.done {
  color: var(--forest);
}

.step-list li.done .step-index {
  color: var(--paper);
  border-color: var(--forest);
  background: var(--forest);
}

.progress-track {
  height: 4px;
  border-radius: 0;
  background: rgba(23, 23, 23, 0.12);
}

.progress-fill {
  border-radius: 0;
  background: var(--red);
}

.nav-button {
  min-height: 42px;
  color: var(--ink);
  border: 2px solid var(--ink);
  background: transparent;
}

.nav-button.next {
  color: var(--paper);
  border-color: var(--red);
  background: var(--red);
  box-shadow: 3px 3px 0 var(--ink);
}

.assessment-layout {
  width: min(1080px, calc(100% - 48px));
}

.assessment-card {
  min-height: 680px;
  margin-top: 34px;
  padding: clamp(28px, 5vw, 58px);
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--kraft);
  box-shadow: 10px 10px 0 var(--kraft-dk);
}

.step-kicker {
  font-size: 0.67rem;
  letter-spacing: 0.18em;
}

.section-title {
  max-width: 880px;
  margin: 14px 0 13px;
  font-size: clamp(2.65rem, 5vw, 4.55rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.section-intro {
  max-width: 800px;
  margin-bottom: 38px;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.72;
}

.field label,
.field-label {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.funnel-entry input,
.capture-modal input {
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.field input::placeholder,
.field textarea::placeholder,
.funnel-entry input::placeholder,
.capture-modal input::placeholder {
  color: #918878;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.funnel-entry input:focus,
.capture-modal input:focus {
  border-color: var(--blue-pen);
  box-shadow: 4px 4px 0 rgba(36, 84, 215, 0.15);
}

.field-help {
  color: var(--muted);
}

.unknown-toggle {
  color: var(--muted);
}

.unknown-toggle input {
  accent-color: var(--red);
}

.choice-grid {
  gap: 12px;
}

.choice-card {
  min-height: 84px;
  color: var(--text-soft);
  border: 2px solid rgba(23, 23, 23, 0.42);
  border-radius: 0;
  background: rgba(245, 240, 232, 0.65);
  box-shadow: none;
}

.choice-card:hover {
  border-color: var(--ink);
  background: var(--paper);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(23, 23, 23, 0.12);
}

.choice-card.selected {
  color: var(--ink);
  border-color: var(--red);
  background: rgba(200, 57, 43, 0.07);
  box-shadow: 4px 4px 0 rgba(200, 57, 43, 0.16);
}

.choice-radio {
  border: 2px solid var(--ink);
  border-radius: 0;
}

.choice-card.selected .choice-radio {
  border-color: var(--red);
}

.choice-card.selected .choice-radio::after {
  width: 9px;
  height: 9px;
  border-radius: 0;
  background: var(--red);
}

.choice-copy strong {
  color: var(--ink);
}

.choice-copy small {
  color: var(--muted);
}

.field-section {
  border-top: 2px solid var(--ink);
}

.field-section-title {
  font-size: 1.65rem;
  text-transform: uppercase;
}

.field-section-note {
  color: var(--muted);
}

.funnel-entry {
  padding: 17px;
  border: 2px solid rgba(23, 23, 23, 0.4);
  border-radius: 0;
  background: rgba(245, 240, 232, 0.55);
}

.funnel-entry-top span {
  color: var(--ink);
}

.funnel-entry-top small {
  color: var(--red);
}

.live-reading,
.context-message {
  color: var(--blue-pen);
  border: 1px solid rgba(36, 84, 215, 0.36);
  border-left: 4px solid var(--blue-pen);
  border-radius: 0;
  background: rgba(36, 84, 215, 0.04);
}

.validation-message {
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 0;
  background: rgba(200, 57, 43, 0.05);
}

.review-summary {
  gap: 0;
  border: 2px solid var(--ink);
}

.review-item {
  min-height: 104px;
  border: 0;
  border-right: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
}

.review-item:last-child {
  border-right: 0;
}

.review-item small {
  color: var(--muted);
}

.review-item strong {
  color: var(--ink);
}

.review-pipeline {
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
}

.review-stage {
  min-height: 94px;
  color: var(--ink);
  background: var(--kraft-dk);
}

.review-stage span {
  color: var(--muted);
}

.review-note {
  color: var(--blue-pen);
  border-left: 4px solid var(--blue-pen);
  background: transparent;
}

.form-end-note {
  color: var(--muted);
  border-top: 1px dashed rgba(23, 23, 23, 0.35);
}

.privacy-dot {
  background: var(--forest);
  box-shadow: none;
}

/* Caminho ao vivo */
.journey-panel {
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background:
    linear-gradient(rgba(23, 23, 23, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.055) 1px, transparent 1px),
    var(--kraft-dk);
  background-size: 24px 24px, 24px 24px, auto;
}

.journey-heading small {
  color: var(--red);
}

.journey-heading h2 {
  font-size: 1.75rem;
  text-transform: uppercase;
}

.journey-heading > span,
.journey-explainer {
  color: var(--muted);
}

.journey-volume {
  color: var(--muted);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.journey-stage.known .journey-volume {
  color: var(--ink);
  border-color: var(--red);
  background: var(--paper);
  box-shadow: 4px 4px 0 rgba(200, 57, 43, 0.13);
}

.journey-stage > span {
  color: var(--ink);
}

.journey-stage > small {
  color: var(--muted);
}

.journey-loop,
.journey-arrow {
  color: var(--red);
}

/* ─── PROCESSAMENTO ─────────────────────────────────────────── */
.analyzing {
  min-height: 100svh;
  background: var(--ink);
}

.analysis-card {
  position: relative;
  overflow: hidden;
  width: min(670px, 100%);
  padding: clamp(32px, 6vw, 56px);
  color: var(--paper);
  border: 3px solid var(--kraft);
  border-radius: 0;
  background: var(--ink);
  box-shadow: 12px 12px 0 var(--red);
}

.analysis-card::before {
  position: absolute;
  top: 19px;
  left: 21px;
  content: "INVESTIGAÇÃO ATIVA";
  color: rgba(231, 221, 201, 0.28);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.analysis-seal {
  width: 124px;
  height: 124px;
  border: 3px solid var(--red);
  border-radius: 50%;
  color: var(--red);
}

.analysis-seal::before {
  border: 2px dashed var(--red);
}

.analysis-seal::after {
  border-color: rgba(200, 57, 43, 0.45);
  background: rgba(200, 57, 43, 0.12);
}

.analysis-seal span {
  color: var(--paper);
  font-family: var(--condensed);
  font-weight: 900;
}

.analysis-card h1 {
  font-size: clamp(2.55rem, 6vw, 4.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.analysis-card > p {
  color: var(--kraft-dk);
}

.analysis-step {
  color: rgba(231, 221, 201, 0.28);
}

.analysis-step.active,
.analysis-step.done {
  color: var(--paper);
}

.analysis-check {
  border-color: rgba(231, 221, 201, 0.25);
  border-radius: 0;
}

.analysis-step.done .analysis-check {
  color: var(--paper);
  border-color: var(--forest);
  background: var(--forest);
}

.analysis-progress {
  border-radius: 0;
  background: rgba(231, 221, 201, 0.12);
}

.analysis-progress span {
  border-radius: 0;
  background: var(--red);
}

.analysis-live-data {
  color: rgba(231, 221, 201, 0.3);
}

.analysis-live-data span {
  color: var(--paper);
  font-family: var(--display);
}

.analysis-live-data small {
  color: var(--kraft-dk);
  font-family: var(--mono);
}

/* ─── RELATÓRIO / DOSSIÊ ───────────────────────────────────── */
.report {
  padding: 26px 0 82px;
  background: var(--kraft);
}

.report-toolbar {
  min-height: 62px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.report-toolbar-copy small {
  color: var(--red);
  font-weight: 700;
}

.report-toolbar-copy strong {
  color: var(--ink);
}

.toolbar-actions .button-primary,
.toolbar-actions .button-secondary {
  min-height: 44px;
}

.report-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 270px;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--kraft-dk);
  box-shadow: 10px 10px 0 rgba(23, 23, 23, 0.12);
}

.report-hero::after {
  right: -25px;
  bottom: 17px;
  width: auto;
  height: auto;
  content: "CASO ANALISADO";
  padding: 5px 14px;
  color: rgba(200, 57, 43, 0.25);
  border: 4px solid currentColor;
  border-radius: 0;
  box-shadow: inset 0 0 0 2px var(--kraft-dk);
  font-family: var(--condensed);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  transform: rotate(-7deg);
}

.report-badge {
  min-height: 30px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

.report-badge.gold {
  color: var(--paper);
  border-color: var(--red);
  background: var(--red);
  transform: rotate(-1deg);
}

.report-title {
  max-width: 800px;
  margin: 26px 0 16px;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.report-thesis {
  max-width: 780px;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.72;
}

.score-ring,
.mini-score-ring {
  background: conic-gradient(var(--red) calc(var(--progress) * 1%), rgba(23, 23, 23, 0.12) 0);
}

.score-ring {
  width: 238px;
  height: 238px;
}

.score-ring::after {
  inset: 11px;
  background: var(--paper);
}

.score-inside small {
  color: var(--muted);
}

.score-number {
  color: var(--red);
  font-size: 5.2rem;
}

.score-inside span {
  color: var(--ink);
}

.report-section {
  margin-top: 18px;
  padding: clamp(25px, 4vw, 40px);
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--kraft);
}

.section-heading {
  border-bottom: 1px solid rgba(23, 23, 23, 0.28);
  padding-bottom: 18px;
}

.section-heading small {
  letter-spacing: 0.17em;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.section-heading p {
  color: var(--muted);
}

.pillar-grid {
  gap: 0;
  border: 2px solid var(--ink);
}

.pillar-card {
  min-height: 180px;
  padding: 19px;
  border: 0;
  border-right: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
}

.pillar-card:last-child {
  border-right: 0;
}

.pillar-card-top {
  color: var(--muted);
}

.pillar-card-top span:last-child {
  color: var(--red);
}

.pillar-score {
  color: var(--ink);
  font-size: 3rem;
}

.pillar-track {
  border-radius: 0;
  background: rgba(23, 23, 23, 0.11);
}

.pillar-track span {
  border-radius: 0;
  background: var(--red);
}

.pillar-status {
  color: var(--muted);
}

.pipeline {
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
}

.pipeline-stage {
  min-height: 158px;
  color: var(--ink);
  border-right: 1px solid var(--ink);
  background: var(--paper);
}

.pipeline-stage:last-child {
  border-right: 0;
}

.pipeline-stage:not(:last-child)::after {
  right: -7px;
  border-color: var(--red);
  background: var(--paper);
}

.pipeline-stage small,
.pipeline-stage em {
  color: var(--muted);
}

.pipeline-stage strong {
  color: var(--ink);
  font-size: 2.25rem;
}

.pipeline-stage span {
  color: var(--red);
}

.pipeline-stage.data-gap strong,
.pipeline-stage.data-gap span {
  color: var(--muted-dark);
}

.impact-layout {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.impact-layout .section-heading {
  border-bottom-color: rgba(231, 221, 201, 0.2);
}

.impact-layout .section-heading h2 {
  color: var(--paper);
}

.impact-value {
  color: var(--paper);
  font-size: clamp(4rem, 8vw, 7.3rem);
}

.impact-period {
  color: var(--red);
}

.impact-copy p {
  color: var(--kraft-dk);
}

.scenario-panel {
  border: 1px solid rgba(231, 221, 201, 0.35);
  border-radius: 0;
  background: transparent;
}

.scenario-panel h3,
.scenario-row strong {
  color: var(--paper);
}

.scenario-row,
.scenario-note {
  color: var(--kraft-dk);
}

.scenario-bar {
  border-radius: 0;
  background: rgba(231, 221, 201, 0.12);
}

.scenario-bar span {
  border-radius: 0;
  background: var(--red);
}

.scenario-note {
  border-top-color: rgba(231, 221, 201, 0.2);
}

.bottleneck-grid {
  gap: 12px;
}

.bottleneck-card {
  min-height: 390px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--kraft-dk);
  box-shadow: 5px 5px 0 rgba(23, 23, 23, 0.1);
}

.priority-number {
  color: var(--red);
}

.severity-tag {
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 0;
  background: transparent;
  font-family: var(--condensed);
  font-weight: 900;
  letter-spacing: 0.07em;
  transform: rotate(-1deg);
}

.bottleneck-card h3 {
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1;
  text-transform: uppercase;
}

.bottleneck-card > p {
  color: var(--text-soft);
}

.evidence-box {
  color: var(--blue-pen);
  border-left: 4px solid var(--blue-pen);
  background: rgba(36, 84, 215, 0.035);
}

.action-box {
  color: var(--ink);
  border-top: 1px solid rgba(23, 23, 23, 0.28);
}

.action-box b {
  color: var(--red);
}

.plan-grid {
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
}

.plan-item {
  min-height: 275px;
  color: var(--ink);
  border-right: 1px solid var(--ink);
  background: var(--paper);
}

.plan-item:last-child {
  border-right: 0;
}

.plan-item > span {
  color: var(--red);
}

.plan-item h3 {
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.plan-item p {
  color: var(--text-soft);
}

.plan-target {
  color: var(--ink);
  border-top-color: rgba(23, 23, 23, 0.25);
}

.plan-target b {
  color: var(--blue-pen);
}

.not-now {
  color: var(--muted);
  border: 2px dashed rgba(23, 23, 23, 0.5);
  border-radius: 0;
}

.not-now strong {
  color: var(--red);
}

.closing-section {
  border-color: var(--ink);
  background: var(--kraft-dk);
}

.closing-section h2 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  text-transform: uppercase;
}

.closing-section p {
  color: var(--text-soft);
}

.closing-choice {
  color: var(--text-soft);
  border: 2px solid var(--blue-pen);
  border-radius: 0;
  background: transparent;
  transform: rotate(0.6deg);
}

.closing-choice strong {
  color: var(--blue-pen);
}

.methodology {
  border: 2px solid var(--ink);
  border-radius: 0;
  background: rgba(245, 240, 232, 0.45);
}

.methodology summary {
  color: var(--ink);
}

.methodology-content,
.report-footer {
  color: var(--muted);
}

/* ─── CAPTURA E AVISOS ─────────────────────────────────────── */
.capture-backdrop {
  background: rgba(23, 23, 23, 0.82);
  backdrop-filter: blur(5px);
}

.capture-modal {
  color: var(--paper);
  border: 3px solid var(--kraft);
  border-radius: 0;
  background: var(--ink);
  box-shadow: 12px 12px 0 var(--red);
}

.capture-close {
  color: var(--paper);
  border: 1px solid var(--kraft);
  border-radius: 0;
  background: transparent;
}

.capture-modal h2 {
  color: var(--paper);
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-transform: uppercase;
}

.capture-modal > p,
.capture-modal label {
  color: var(--kraft-dk);
}

.capture-modal input {
  color: var(--ink);
}

.capture-success-icon {
  color: var(--paper);
  border-color: var(--forest);
  border-radius: 0;
  background: var(--forest);
}

.capture-error {
  color: #ff9b8e;
}

.toast {
  color: var(--paper);
  border: 2px solid var(--paper);
  border-radius: 0;
  background: var(--red);
  box-shadow: 6px 6px 0 var(--ink);
}

.noscript {
  color: var(--ink);
  border: 2px solid var(--red);
  border-radius: 0;
  background: var(--kraft);
}

/* ─── PALETA NOIR / VERMELHO EM TODA A EXPERIÊNCIA ────────── */
.button-primary {
  color: #f5f0e8;
  box-shadow: 5px 5px 0 #000;
}

.button-primary:hover {
  color: #f5f0e8;
  box-shadow: 8px 8px 0 #000;
}

.nav-button.next,
.step-list li.active .step-index,
.step-list li.done .step-index,
.report-badge.gold,
.capture-success-icon {
  color: #f5f0e8;
}

.button-secondary:hover {
  color: #0b0b0b;
  border-color: var(--ink);
  background: var(--ink);
}

.assessment-nav-wrap {
  border-bottom-color: var(--red);
  background: rgba(11, 11, 11, 0.96);
}

.assessment-progress .step-list li,
.field-section,
.form-end-note,
.section-heading,
.action-box,
.plan-target,
.scenario-note {
  border-color: rgba(245, 240, 232, 0.19);
}

.assessment-card {
  border-color: rgba(245, 240, 232, 0.68);
  background: #0d0d0d;
  box-shadow: 9px 9px 0 rgba(200, 57, 43, 0.2);
}

.field input,
.field select,
.field textarea,
.funnel-entry input,
.capture-modal input {
  color: var(--ink);
  border-color: rgba(245, 240, 232, 0.5);
  background: #121212;
}

.choice-card,
.funnel-entry {
  color: var(--text-soft);
  border-color: rgba(245, 240, 232, 0.27);
  background: rgba(255, 255, 255, 0.025);
}

.choice-card:hover {
  border-color: rgba(245, 240, 232, 0.72);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 4px 4px 0 rgba(245, 240, 232, 0.08);
}

.choice-card.selected {
  border-color: var(--red);
  background: rgba(200, 57, 43, 0.1);
  box-shadow: 4px 4px 0 rgba(200, 57, 43, 0.16);
}

.choice-radio {
  border-color: rgba(245, 240, 232, 0.65);
}

.review-summary,
.review-pipeline,
.journey-panel,
.pillar-grid,
.pipeline,
.plan-grid,
.not-now,
.methodology {
  border-color: rgba(245, 240, 232, 0.58);
}

.review-item,
.review-stage,
.pillar-card,
.pipeline-stage,
.plan-item {
  color: var(--ink);
  border-color: rgba(245, 240, 232, 0.2);
  background: #111;
}

.review-pipeline,
.pillar-grid,
.pipeline,
.plan-grid {
  background: rgba(245, 240, 232, 0.4);
}

.journey-panel {
  background:
    linear-gradient(rgba(245, 240, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 232, 0.035) 1px, transparent 1px),
    #111;
  background-size: 24px 24px, 24px 24px, auto;
}

.journey-volume,
.journey-stage.known .journey-volume {
  color: var(--ink);
  background: #0b0b0b;
}

.journey-volume {
  border-color: rgba(245, 240, 232, 0.48);
}

.analysis-card {
  color: #f5f0e8;
  border-color: rgba(245, 240, 232, 0.72);
  background: #0b0b0b;
}

.analysis-seal span,
.analysis-card h1,
.analysis-step.active,
.analysis-step.done,
.analysis-live-data span {
  color: #f5f0e8;
}

.analysis-card > p,
.analysis-live-data small {
  color: #aaa39a;
}

.report-toolbar {
  border-bottom-color: rgba(245, 240, 232, 0.52);
}

.report-hero {
  border-color: rgba(245, 240, 232, 0.7);
  background: #111;
  box-shadow: 9px 9px 0 rgba(200, 57, 43, 0.2);
}

.report-hero::after {
  box-shadow: inset 0 0 0 2px #111;
}

.report-badge {
  border-color: rgba(245, 240, 232, 0.52);
}

.score-ring::after {
  background: #0d0d0d;
}

.report-section {
  border-color: rgba(245, 240, 232, 0.58);
  background: #0d0d0d;
}

.pillar-card:nth-child(n),
.pipeline-stage,
.plan-item {
  border-color: rgba(245, 240, 232, 0.2);
}

.pillar-track,
.scenario-bar {
  background: rgba(245, 240, 232, 0.12);
}

.pipeline-stage:not(:last-child)::after {
  background: #111;
}

.impact-layout {
  color: #f5f0e8;
  border-color: var(--red);
  background: #080808;
}

.impact-layout .section-heading h2,
.impact-value,
.scenario-panel h3,
.scenario-row strong {
  color: #f5f0e8;
}

.impact-copy p,
.scenario-row,
.scenario-note {
  color: #aaa39a;
}

.scenario-panel {
  border-color: rgba(245, 240, 232, 0.27);
  background: rgba(255, 255, 255, 0.02);
}

.bottleneck-card {
  border-color: rgba(245, 240, 232, 0.48);
  background: #111;
  box-shadow: 5px 5px 0 rgba(200, 57, 43, 0.13);
}

.evidence-box {
  color: #f07868;
  border-left-color: var(--red);
  background: rgba(200, 57, 43, 0.055);
}

.closing-section {
  border-color: var(--red);
  background: #111;
}

.closing-choice {
  border-color: var(--red);
}

.closing-choice strong,
.plan-target b {
  color: #f07868;
}

.methodology {
  background: rgba(255, 255, 255, 0.02);
}

.capture-modal {
  color: #f5f0e8;
  border-color: rgba(245, 240, 232, 0.72);
  background: #0b0b0b;
}

.capture-modal h2,
.capture-close {
  color: #f5f0e8;
}

.capture-modal > p,
.capture-modal label {
  color: #aaa39a;
}

@media (max-width: 1040px) {
  .landing-stage {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
  }

  .landing-copy h1 {
    font-size: clamp(3rem, 6.5vw, 5.2rem);
  }

  .landing-casefile div {
    display: block;
  }

  .landing-casefile b {
    display: block;
    margin-top: 2px;
    text-align: left;
  }

  .assessment-nav {
    grid-template-columns: 132px minmax(0, 1fr) auto;
  }

  .assessment-brand img {
    width: 124px;
  }

  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-card:nth-child(2) {
    border-right: 0;
  }

  .pillar-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }
}

@media (max-width: 760px) {
  .shell,
  .assessment-layout {
    width: min(100% - 24px, 1240px);
  }

  .landing-header {
    min-height: 43px;
    padding: 9px 14px;
    font-size: 0.52rem;
  }

  .landing-header span:last-child {
    display: none;
  }

  .landing-shell {
    width: 100%;
    min-height: 100svh;
  }

  .landing-stage {
    display: grid;
    min-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(145px, 23vh) auto;
    grid-template-areas:
      "logo"
      "copy"
      "portrait"
      "action";
    border: 0;
  }

  .landing-logo {
    padding: 18px 18px 12px;
  }

  .landing-logo img {
    width: 220px;
  }

  .landing-logo small {
    margin-top: 6px;
    font-size: 0.48rem;
  }

  .landing-copy {
    align-self: start;
    padding: 8px 18px 0;
  }

  .landing-eyebrow {
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.49rem;
  }

  .stamp {
    padding: 3px 8px;
    border-width: 2px;
    font-size: 0.66rem;
  }

  .landing-copy h1 {
    max-width: 560px;
    font-size: clamp(2.45rem, 12vw, 4rem);
    line-height: 0.91;
  }

  .landing-copy p {
    margin-top: 14px;
    padding-left: 11px;
    font-size: 0.68rem;
    line-height: 1.5;
  }

  .landing-copy > strong {
    margin: 8px 0 0 14px;
    font-size: 0.59rem;
  }

  .strategist-portrait {
    width: 100%;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 0 12px;
    border-top: 1px solid rgba(200, 57, 43, 0.72);
    border-bottom: 1px solid rgba(200, 57, 43, 0.72);
    border-left: 0;
  }

  .portrait-frame {
    width: 48%;
    height: 100%;
    margin-right: auto;
  }

  .portrait-annotation {
    top: 8%;
    right: 5%;
    font-size: 1rem;
  }

  .landing-casefile {
    top: 34px;
    right: 12px;
    bottom: auto;
    left: 47%;
    padding: 9px 10px;
    box-shadow: 4px 4px 0 rgba(23, 23, 23, 0.14);
  }

  .landing-casefile > small {
    margin-bottom: 4px;
    padding-bottom: 4px;
    font-size: 0.44rem;
  }

  .landing-casefile div {
    display: flex;
    padding: 3px 0;
    font-size: 0.47rem;
  }

  .landing-casefile b {
    display: block;
    margin: 0;
    text-align: right;
  }

  .landing-action {
    width: 100%;
    margin: 0;
    padding: 14px 18px 18px;
  }

  .landing-cta {
    width: 100%;
    min-height: 51px;
    font-size: 0.86rem;
  }

  .landing-action p {
    margin-top: 8px;
    font-size: 0.53rem;
  }

  .assessment-nav {
    grid-template-columns: 74px minmax(0, 1fr) auto;
    min-height: 72px;
  }

  .assessment-brand img {
    width: 70px;
  }

  .assessment-card {
    margin-top: 16px;
    padding: 26px 17px;
    border-width: 2px;
    box-shadow: 5px 5px 0 var(--kraft-dk);
  }

  .section-title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .review-summary {
    grid-template-columns: 1fr;
  }

  .review-item {
    min-height: 80px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .review-item:last-child {
    border-bottom: 0;
  }

  .journey-panel {
    padding: 17px 14px;
  }

  .journey-heading h2 {
    font-size: 1.45rem;
  }

  .report-toolbar {
    align-items: stretch;
  }

  .toolbar-actions .button-secondary,
  .toolbar-actions .button-primary {
    width: 50%;
  }

  .report-hero {
    grid-template-columns: 1fr;
    padding: 25px 17px;
    box-shadow: 5px 5px 0 rgba(23, 23, 23, 0.12);
  }

  .report-title {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .report-hero::after {
    display: none;
  }

  .report-section {
    padding: 23px 16px;
  }

  .pillar-card {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .pillar-card:last-child {
    border-bottom: 0;
  }

  .impact-value {
    font-size: clamp(3.7rem, 19vw, 6rem);
  }

  .bottleneck-card {
    min-height: 0;
  }

  .plan-item {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .plan-item:last-child {
    border-bottom: 0;
  }

  .capture-modal {
    box-shadow: 7px 7px 0 var(--red);
  }
}

@media (max-width: 430px) {
  .landing-casefile div:nth-of-type(2),
  .landing-casefile div:nth-of-type(3) {
    display: none;
  }

  .landing-copy h1 {
    font-size: clamp(2.25rem, 11.5vw, 3.25rem);
  }

  .landing-diagnostic-label {
    margin-bottom: 14px;
    font-size: 0.66rem;
  }

  .landing-eyebrow > span:last-child {
    max-width: 145px;
    line-height: 1.25;
  }
}

@media print {
  :root {
    --kraft: #ffffff;
    --kraft-dk: #f2eee6;
    --paper: #ffffff;
    --ink: #171717;
    color-scheme: light;
  }

  body,
  .report {
    background: #ffffff;
  }

  body::before {
    display: none;
  }

  .report-hero,
  .report-section,
  .pillar-card,
  .pipeline-stage,
  .scenario-panel,
  .bottleneck-card,
  .plan-item,
  .methodology {
    color: #171717;
    background: #ffffff;
    box-shadow: none;
  }

  .impact-layout {
    color: #171717;
    border-color: #171717;
  }

  .impact-layout .section-heading h2,
  .impact-value,
  .scenario-panel h3,
  .scenario-row strong {
    color: #171717;
  }

  .impact-copy p,
  .scenario-row,
  .scenario-note {
    color: #5e5a52;
  }
}
