/* ═══════════════════════════════════════════════════════════
   Prime Offer — Prisma Design System
   Standalone app CSS using Prisma tokens & fonts
   ═══════════════════════════════════════════════════════════ */

:root {
  --app-panel: #0B0B0B;
  --app-raised: #101010;
  --app-line: rgba(245, 241, 234, 0.08);
  --app-line-strong: rgba(245, 241, 234, 0.14);
  --amber-dim: rgba(198, 146, 63, 0.12);
  --amber-glow: rgba(198, 146, 63, 0.06);
  --success: #8ABF5E;
  --info: #5E9ABF;
  --danger: #BF5E5E;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 36px;
  --fs-3xl: 48px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg, #050505);
  color: var(--color-text, #F5F1EA);
  font-family: var(--font-display, 'Helvetica Now Display', Helvetica, Arial, sans-serif);
  font-size: var(--fs-base);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

::selection { background: var(--brand-amber, #C6923F); color: var(--brand-ink, #050505); }

/* ─── LAYOUT ─── */
main {
  margin-left: 280px;
  min-height: 100vh;
}

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  padding: 24px 16px;
  background: #080808;
  border-right: 1px solid var(--app-line);
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0 8px 28px;
}

.brand i {
  font-family: var(--font-script, 'Sloop', cursive);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--brand-amber, #C6923F);
  font-style: normal;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-bone, #F5F1EA);
  color: var(--brand-ink, #050505);
  font-family: var(--font-script, 'Sloop', cursive);
  font-size: 22px;
}

.product-switch {
  margin: 0 4px 20px;
  padding: 14px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: var(--app-panel);
}

.product-switch strong {
  display: block;
  margin-top: 5px;
  font-size: var(--fs-sm);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-subtle, #5C574E);
}

/* ─── NAV ─── */
nav { overflow-y: auto; flex: 1; padding: 0 2px; }

.nav-group {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-subtle, #5C574E);
  padding: 18px 10px 6px;
  font-weight: 600;
}

nav button {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--color-text-muted, #9E978B);
  font-size: var(--fs-sm);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

nav button:hover {
  background: #121212;
  color: var(--color-text, #F5F1EA);
}

nav button.active {
  color: var(--brand-bone, #F5F1EA);
  background: var(--amber-dim);
}

nav b {
  color: var(--brand-amber, #C6923F);
  font-size: 11px;
  width: 16px;
  font-weight: 500;
  flex-shrink: 0;
}

nav button.nav-sub {
  padding-left: 30px;
  font-size: 13px;
  color: var(--color-text-subtle, #5C574E);
}

nav button.nav-sub:hover {
  color: var(--color-text, #F5F1EA);
}

nav button.nav-sub.active {
  color: var(--brand-bone, #F5F1EA);
  background: var(--amber-dim);
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--app-line);
  padding: 16px 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── TOPBAR ─── */
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  border-bottom: 1px solid var(--app-line);
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(16px);
}

#mobile-menu { display: none; }

/* ─── SCREEN ─── */
.screen {
  padding: 48px 56px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.screen-head {
  margin-bottom: 36px;
}

.screen-head h1 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.035em;
  margin: 8px 0 0;
  font-weight: 700;
  line-height: 1.15;
}

/* ─── EVIDENCE BADGES ─── */
.ev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}

.ev-confirmed { color: var(--success); border-color: rgba(138, 191, 94, 0.3); }
.ev-hypothesis { color: var(--brand-amber, #C6923F); border-color: rgba(198, 146, 63, 0.35); }
.ev-unknown { color: var(--color-text-muted, #9E978B); border-color: rgba(158, 151, 139, 0.25); }
.ev-info { color: var(--info); border-color: rgba(94, 154, 191, 0.3); }
.ev-danger { color: var(--danger); border-color: rgba(191, 94, 94, 0.3); }

/* ─── TYPOGRAPHY HELPERS ─── */
.t-lead {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--color-text-muted, #9E978B);
  margin: 6px 0 0;
}

.c-muted { color: var(--color-text-muted, #9E978B) !important; }
.c-subtle { color: var(--color-text-subtle, #5C574E) !important; }
.c-amber { color: var(--brand-amber, #C6923F) !important; }
.c-amber-bright { color: var(--brand-amber-bright, #D4A24C) !important; }
.c-bone { color: var(--brand-bone, #F5F1EA) !important; }
.c-rust { color: var(--brand-rust, #A5421B) !important; }
.c-success { color: var(--success) !important; }
.c-info { color: var(--info) !important; }

/* ─── PANELS ─── */
.panel {
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.panel-highlight {
  border-color: rgba(198, 146, 63, 0.2);
  background: linear-gradient(135deg, rgba(198, 146, 63, 0.06), transparent 60%);
}

.panel-danger {
  border-color: rgba(165, 66, 27, 0.15);
}

.panel-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.panel-text {
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-text-muted, #9E978B);
  margin: 0;
}

.panel-promise {
  font-size: var(--fs-lg);
  line-height: 1.35;
  color: var(--brand-bone, #F5F1EA);
  margin: 0;
  font-weight: 500;
}

.sub-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle, #5C574E);
  margin: 16px 0 8px;
}

.sub-label:first-child { margin-top: 0; }

/* ─── GRIDS ─── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

/* ─── STAT ROW ─── */
.stat-row {
  display: flex;
  gap: 1px;
  background: var(--app-line);
  border: 1px solid var(--app-line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.stat {
  flex: 1;
  background: var(--app-panel);
  padding: 20px;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle, #5C574E);
}

.stat-value {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 6px;
}

.stat-value small {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--color-text-muted, #9E978B);
}

.stat-note { margin-top: 6px; }

/* ─── KV GRID ─── */
.kv-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
}

.kv-key {
  padding: 12px 0;
  border-top: 1px solid var(--app-line);
  font-size: var(--fs-sm);
  color: var(--color-text-subtle, #5C574E);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kv-val {
  padding: 12px 0;
  border-top: 1px solid var(--app-line);
  font-size: var(--fs-base);
  color: var(--color-text-muted, #9E978B);
}

.kv-key:nth-child(-n+2),
.kv-val:nth-child(-n+2) { border-top: none; }

/* ─── DASH LIST ─── */
.dash-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-list li {
  padding: 8px 0;
  border-top: 1px solid var(--app-line);
  color: var(--color-text-muted, #9E978B);
  font-size: var(--fs-base);
  line-height: 1.5;
}

.dash-list li:first-child { border-top: none; }

.dash-list li::before {
  content: '—';
  color: var(--brand-amber, #C6923F);
  margin-right: 8px;
}

/* ─── CHIPS ─── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-block;
  font-size: var(--fs-sm);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--app-line-strong);
  background: transparent;
  color: var(--color-text-muted, #9E978B);
}

.chip--solid {
  background: var(--amber-dim);
  border-color: rgba(198, 146, 63, 0.25);
  color: var(--brand-amber, #C6923F);
  font-weight: 600;
}

.chip--accent {
  background: var(--brand-amber, #C6923F);
  border-color: var(--brand-amber, #C6923F);
  color: var(--brand-ink, #050505);
  font-weight: 700;
}

.chip--subtle {
  border-style: dashed;
  color: var(--color-text-subtle, #5C574E);
}

/* ─── CHAIN (Dor Latente) ─── */
.chain-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.chain-step {
  width: 100%;
  max-width: 640px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  padding: 24px;
  background: var(--app-panel);
  text-align: center;
}

.chain-step--highlight {
  border-color: rgba(198, 146, 63, 0.25);
  background: linear-gradient(135deg, rgba(198, 146, 63, 0.08), transparent 70%);
}

.chain-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.chain-text {
  font-size: var(--fs-md);
  color: var(--color-text-muted, #9E978B);
  line-height: 1.5;
}

.chain-arrow {
  color: var(--brand-amber, #C6923F);
  font-size: 24px;
  padding: 6px 0;
}

/* ─── VALUE PROPOSITION CANVAS ─── */
.vpc {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: start;
  gap: 20px;
  margin-bottom: 32px;
}

.vpc-title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vpc-icon { font-size: 24px; }

.vpc-block {
  border: 1px solid var(--app-line);
  border-radius: 10px;
  padding: 18px;
  background: var(--app-panel);
  margin-bottom: 12px;
}

.vpc-block-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.vpc-item {
  padding: 7px 0;
  border-top: 1px solid var(--app-line);
  color: var(--color-text-muted, #9E978B);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.vpc-item:first-of-type { border-top: none; }

.vpc-fit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
}

.vpc-fit-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-amber, #C6923F);
  color: var(--brand-ink, #050505);
  font-weight: 900;
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
}

/* ─── CONNECTION LIST ─── */
.conn-list { margin-bottom: 24px; }

.conn-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--app-line);
}

.conn-row:first-child { border-top: none; }
.conn-pain { color: var(--brand-rust, #A5421B); font-size: var(--fs-sm); }
.conn-arrow { text-align: center; color: var(--brand-amber, #C6923F); font-size: 18px; }
.conn-relief { color: var(--success); font-size: var(--fs-sm); }

/* ─── FLOW ROW (Mechanism, Jornada) ─── */
.flow-row {
  display: flex;
  gap: 0;
  overflow-x: auto;
  margin-bottom: 24px;
}

.flow-node {
  flex: 1;
  min-width: 160px;
  padding: 18px;
  border: 1px solid var(--app-line);
  background: var(--app-panel);
  text-align: center;
}

.flow-node:first-child { border-radius: 10px 0 0 10px; }
.flow-node:last-child { border-radius: 0 10px 10px 0; }

.flow-node:not(:last-child) {
  border-right: none;
  position: relative;
}

.flow-node:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translate(50%, -50%);
  color: var(--brand-amber, #C6923F);
  font-size: 20px;
  z-index: 1;
}

.flow-node strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-node span {
  display: block;
  color: var(--color-text-muted, #9E978B);
  font-size: var(--fs-sm);
  margin-top: 6px;
  line-height: 1.4;
}

.flow-node--active {
  border-color: rgba(198, 146, 63, 0.3);
  background: var(--amber-dim);
}

/* ─── PILLAR CARDS ─── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillar-card {
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  border-radius: 12px;
  overflow: hidden;
}

.pillar-head {
  padding: 20px;
  font-size: var(--fs-md);
  font-weight: 700;
  background: var(--amber-dim);
  border-bottom: 1px solid rgba(198, 146, 63, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pillar-num {
  color: var(--brand-amber, #C6923F);
  font-size: 13px;
  font-weight: 500;
}

.pillar-body { padding: 20px; }

.pillar-section { margin-bottom: 18px; }
.pillar-section:last-child { margin-bottom: 0; }

.pillar-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pillar-section p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted, #9E978B);
  line-height: 1.5;
}

/* ─── BEFORE / AFTER ─── */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: start;
  gap: 16px;
  margin-top: 24px;
}

.ba-col {
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  border-radius: 12px;
  padding: 24px;
}

.ba-before { border-color: rgba(165, 66, 27, 0.15); }
.ba-after { border-color: rgba(138, 191, 94, 0.15); }

.ba-title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 14px;
}

.ba-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-amber, #C6923F);
  font-size: 28px;
  padding-top: 48px;
}

/* ─── TABLE ─── */
.po-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.po-table th,
.po-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--app-line);
  font-size: var(--fs-sm);
}

.po-table th {
  color: var(--color-text-subtle, #5C574E);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ─── OBJECTION CARDS ─── */
.obj-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--app-line);
  font-size: var(--fs-sm);
}

.obj-row:first-of-type { border-top: none; margin-top: 12px; }

.obj-key {
  flex-shrink: 0;
  width: 80px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-subtle, #5C574E);
}

.obj-val {
  color: var(--color-text-muted, #9E978B);
  line-height: 1.5;
}

/* ─── REVENUE ARCHITECTURE ─── */
.rev-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.rev-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  width: 100%;
  max-width: 800px;
  align-items: center;
}

.rev-row .panel { margin-bottom: 0; }

.rev-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

.rev-content {
  font-size: var(--fs-sm);
  color: var(--color-text-muted, #9E978B);
  line-height: 1.55;
}

.rev-connector {
  text-align: center;
  padding: 4px 0 4px 156px;
}

.rev-arrow-down {
  color: var(--brand-amber, #C6923F);
  font-size: 22px;
}

/* ─── BMC CANVAS (proper Osterwalder layout) ─── */
.bmc-canvas {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: 1fr 1fr auto;
  gap: 2px;
  margin-bottom: 20px;
}

.bmc-cell {
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  padding: 18px;
  min-height: 140px;
}

.bmc-kp { grid-column: 1 / 3; grid-row: 1 / 3; border-radius: 10px 0 0 0; }
.bmc-ka { grid-column: 3 / 5; grid-row: 1; }
.bmc-kr { grid-column: 3 / 5; grid-row: 2; }
.bmc-vp { grid-column: 5 / 7; grid-row: 1 / 3; }
.bmc-cr { grid-column: 7 / 9; grid-row: 1; }
.bmc-ch { grid-column: 7 / 9; grid-row: 2; }
.bmc-cs { grid-column: 9 / 11; grid-row: 1 / 3; border-radius: 0 10px 0 0; }
.bmc-co { grid-column: 1 / 6; grid-row: 3; border-radius: 0 0 0 10px; }
.bmc-rs { grid-column: 6 / 11; grid-row: 3; border-radius: 0 0 10px 0; }

.bmc-value {
  border-color: rgba(198, 146, 63, 0.2);
  background: linear-gradient(135deg, rgba(198, 146, 63, 0.06), transparent 60%);
}

.bmc-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-amber, #C6923F);
  margin-bottom: 10px;
}

.bmc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bmc-list li {
  padding: 5px 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted, #9E978B);
  line-height: 1.45;
}

/* ─── DIAGNOSIS ─── */
.diag-legend {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.diag-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--app-line);
}

.diag-row:first-child { border-top: none; }

.diag-dot {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
}

.diag-dim {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: 4px;
}

.diag-note {
  font-size: var(--fs-sm);
  color: var(--color-text-muted, #9E978B);
  line-height: 1.5;
}

/* ─── SOURCE LIST ─── */
.source-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--app-line);
}

.source-row:first-child { border-top: none; }

.source-type {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.source-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted, #9E978B);
}

/* ─── SYMPTOM CARDS ─── */
.symptom-card { transition: border-color 0.2s; }
.symptom-card:hover { border-color: var(--app-line-strong); }

.symptom-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.symptom-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }

.symptom-title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 4px;
}

.symptom-meta { display: flex; gap: 6px; }

.chip--danger {
  border-color: rgba(165, 66, 27, 0.35);
  color: var(--brand-rust, #A5421B);
}

/* ─── EMOTION ROWS ─── */
.emotion-row {
  padding: 14px 0;
  border-top: 1px solid var(--app-line);
}
.emotion-row:first-of-type { border-top: none; }

.emotion-feeling {
  font-weight: 700;
  font-size: var(--fs-base);
  margin-bottom: 6px;
}

.emotion-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted, #9E978B);
  line-height: 1.55;
}

/* ─── SCENARIO CARDS ─── */
.scenario-card {
  border-left: 3px solid var(--brand-amber, #C6923F);
}

/* ─── VPC STRATEGYZER CANVAS ─── */
.vpc-canvas {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 24px;
}

.vpc-shape {
  position: relative;
  background: var(--app-panel);
  border: 2px solid var(--app-line-strong);
  padding: 20px;
}

.vpc-shape--square {
  border-radius: 6px;
}

.vpc-shape--circle {
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16% 12%;
}

.vpc-shape-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-subtle, #5C574E);
  text-align: center;
  margin-bottom: 2px;
}

.vpc-shape-product {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-amber, #C6923F);
  text-align: center;
  margin-bottom: 16px;
}

.vpc-grid-3 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vpc-sector {
  padding: 12px 0;
  border-top: 1px solid var(--app-line);
}

.vpc-sector:first-child { border-top: none; padding-top: 0; }
.vpc-sector:last-child { padding-bottom: 0; }

.vpc-sector-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.vpc-circle-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 8px;
}

.vpc-circle-content .vpc-sector {
  padding: 10px 0;
}

.postit-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.postit {
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.3;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  max-width: 180px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-weight: 500;
}

.postit:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 3px 4px 8px rgba(0,0,0,0.4);
}

.postit--yellow { background: #E8D44D; color: #1a1a00; }
.postit--pink   { background: #E88B8B; color: #2a0a0a; }
.postit--green  { background: #7BC67B; color: #0a2a0a; }

.postit--active {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 0 0 2px var(--brand-amber, #C6923F), 4px 6px 12px rgba(0,0,0,0.5) !important;
  z-index: 2;
}

.vpc-fit-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
}

.vpc-fit-svg {
  width: 40px;
  height: 60px;
}

.vpc-fit-badge-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-amber, #C6923F);
  color: var(--brand-ink, #050505);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.vpc-detail {
  background: var(--app-panel);
  border: 1px solid var(--brand-amber, #C6923F);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
  animation: fadeIn 0.2s ease;
}

.vpc-detail-close {
  position: absolute;
  top: 12px;
  right: 16px;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 18px;
}

.vpc-detail-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ─── OFFER LADDER ─── */
.offer-ladder {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.offer-ladder-step {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border: 1px solid var(--app-line);
  border-bottom: none;
  background: var(--app-panel);
  transition: background 0.2s;
}

.offer-ladder-step:first-child { border-radius: 12px 12px 0 0; }
.offer-ladder-step:last-child  { border-bottom: 1px solid var(--app-line); border-radius: 0 0 12px 12px; }

.offer-ladder-step--current {
  background: rgba(198,146,63,0.08);
  border-color: rgba(198,146,63,0.3);
}

.offer-ladder-step--current + .offer-ladder-step { border-top-color: rgba(198,146,63,0.3); }

.offer-ladder-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber-dim, rgba(198,146,63,0.08));
  color: var(--brand-amber, #C6923F);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.offer-ladder-step--current .offer-ladder-num {
  background: var(--brand-amber, #C6923F);
  color: var(--brand-ink, #050505);
}

.offer-ladder-body { min-width: 0; }

.offer-ladder-stage {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.offer-ladder-product {
  font-size: 12px;
  color: var(--color-text-muted, #9E978B);
}

.offer-ladder-price {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.offer-ladder-ev {
  font-size: 12px;
}

/* ─── DELIVERY CALENDAR ─── */
.delivery-calendar {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--app-line);
}

/* ─── MECHANISM TIMELINE ─── */
.mech-timeline {
  margin-bottom: 24px;
}

.mech-step {
  position: relative;
  cursor: pointer;
}

.mech-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.mech-step-header:hover {
  border-color: var(--app-line-strong);
  background: var(--app-raised);
}

.mech-step--open .mech-step-header {
  border-color: rgba(198, 146, 63, 0.3);
  border-radius: 12px 12px 0 0;
  background: var(--amber-dim);
}

.mech-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amber-dim);
  color: var(--brand-amber, #C6923F);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

.mech-step--open .mech-step-num {
  background: var(--brand-amber, #C6923F);
  color: var(--brand-ink, #050505);
}

.mech-step-icon { font-size: 24px; flex-shrink: 0; }

.mech-step-info { flex: 1; }

.mech-step-name {
  font-size: var(--fs-md);
  font-weight: 700;
}

.mech-step-duration {
  font-size: var(--fs-sm);
  color: var(--color-text-muted, #9E978B);
  margin-top: 2px;
}

.mech-step-toggle {
  font-size: 20px;
  color: var(--color-text-subtle);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.mech-step--open .mech-step-toggle { transform: rotate(45deg); }

.mech-step-body {
  display: none;
  padding: 20px 24px;
  background: var(--app-panel);
  border: 1px solid rgba(198, 146, 63, 0.2);
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.mech-step--open .mech-step-body { display: block; }

.mech-detail {
  padding: 12px 0;
  border-top: 1px solid var(--app-line);
}
.mech-detail:first-child { border-top: none; }

.mech-detail-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--color-text-subtle, #5C574E);
}

.mech-connector {
  text-align: center;
  padding: 6px 0;
  color: var(--brand-amber, #C6923F);
  font-size: 20px;
}

/* ─── BOW-TIE FUNNEL (SVG) ─── */
.bt-principle {
  float: right;
  max-width: 240px;
  padding: 16px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  margin: 0 0 16px 24px;
}

.bt-principle-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle, #5C574E);
  margin-bottom: 6px;
}

.bt-principle p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted, #9E978B);
  font-style: italic;
  margin: 0;
}

.bt-visual {
  margin: 16px 0 24px;
  clear: right;
}

.bt-svg {
  width: 100%;
  height: auto;
  display: block;
}

.bt-svg .bt-hit { cursor: pointer; }
.bt-svg .bt-hit:hover rect { fill: rgba(198,146,63,0.1); }

.bt-detail {
  background: var(--app-panel);
  border: 1px solid rgba(198, 146, 63, 0.25);
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
  animation: fadeIn 0.2s ease;
}

.bt-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bt-detail-stage {
  font-size: var(--fs-lg);
  font-weight: 700;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── PLAYBOOK DE CRIATIVOS ─── */
.script-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.script-card-title {
  font-size: var(--fs-md);
  font-weight: 700;
  flex: 1;
}

.script-edit-btn {
  font-size: 12px;
  color: var(--color-text-muted, #9E978B);
  border: 1px solid var(--app-line);
  border-radius: 6px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.script-edit-btn:hover {
  color: var(--brand-amber, #C6923F);
  border-color: var(--brand-amber, #C6923F);
}

.script-restore-btn {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--color-text-subtle, #5C574E);
  text-decoration: underline;
}

.script-restore-btn:hover { color: var(--brand-amber, #C6923F); }

.exemplo-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-amber, #C6923F);
}

.exemplo-link:hover { text-decoration: underline; }

.script-card--editing { border-color: var(--brand-amber, #C6923F); }

.script-edit-title {
  width: 100%;
  background: var(--app-raised, #101010);
  border: 1px solid var(--app-line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-text, #F5F1EA);
  font-family: inherit;
  margin-bottom: 4px;
}

.script-edit-area {
  display: block;
  width: 100%;
  background: var(--app-raised, #101010);
  border: 1px solid var(--app-line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text, #F5F1EA);
  font-family: inherit;
  resize: vertical;
  margin-top: 4px;
}

.script-edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.script-edit-actions button {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
}

.btn-save {
  background: var(--brand-amber, #C6923F);
  color: var(--brand-ink, #050505);
}

.btn-save:hover { opacity: 0.9; }

.btn-cancel {
  border: 1px solid var(--app-line);
  color: var(--color-text-muted, #9E978B);
}

.btn-cancel:hover {
  color: var(--color-text, #F5F1EA);
  border-color: var(--app-line-strong);
}

.script-quote {
  border-left: 3px solid var(--brand-amber, #C6923F);
  background: var(--app-raised, #101010);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-top: 4px;
}

.script-quote p {
  margin: 0 0 10px;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text, #F5F1EA);
  font-style: italic;
}

.script-quote p:last-child { margin-bottom: 0; }

.script-quote p.placeholder {
  color: var(--color-text-subtle, #5C574E);
  font-style: normal;
  text-align: center;
}

.funnel-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.funnel-pill--atracao { background: var(--info, #5E9ABF); color: var(--app-panel, #0B0B0B); }
.funnel-pill--aplicacao { background: var(--brand-amber, #C6923F); color: var(--brand-ink, #050505); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .bmc-canvas {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
  }
  .bmc-kp { grid-column: 1/3; grid-row: 1/3; }
  .bmc-ka { grid-column: 3/5; grid-row: 1; }
  .bmc-kr { grid-column: 3/5; grid-row: 2; }
  .bmc-vp { grid-column: 1/3; grid-row: 3; }
  .bmc-cr { grid-column: 3/5; grid-row: 3; }
  .bmc-ch { grid-column: 1/3; grid-row: 4; }
  .bmc-cs { grid-column: 3/5; grid-row: 4; }
  .bmc-co { grid-column: 1/3; grid-row: 5; }
  .bmc-rs { grid-column: 3/5; grid-row: 5; }
  .vpc-canvas { grid-template-columns: 1fr; }
  .vpc-shape--circle { border-radius: 12px; aspect-ratio: auto; }
  .vpc-fit-bridge { flex-direction: row; padding: 12px 0; }
  .vpc-fit-svg { width: 30px; height: 40px; }
  .offer-ladder-step { grid-template-columns: 36px 1fr auto; }
  .offer-ladder-ev { display: none; }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.open { transform: none; }

  main { margin-left: 0; }

  .topbar { padding: 0 20px; }

  #mobile-menu {
    display: block;
    font-size: 20px;
    margin-right: 16px;
  }

  .screen { padding: 32px 20px; }

  .screen-head h1 { font-size: var(--fs-xl); }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .bmc-canvas { grid-template-columns: 1fr 1fr; }
  .bmc-kp, .bmc-ka, .bmc-kr, .bmc-vp, .bmc-cr, .bmc-ch, .bmc-cs, .bmc-co, .bmc-rs {
    grid-column: auto; grid-row: auto;
  }
  .stat-row { flex-direction: column; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-divider { padding: 0; transform: rotate(90deg); }
  .conn-row { grid-template-columns: 1fr; gap: 4px; }
  .conn-arrow { display: none; }
  .flow-row { flex-direction: column; }
  .flow-node { border-radius: 10px !important; border: 1px solid var(--app-line) !important; margin-bottom: 8px; }
  .flow-node::after { display: none !important; }

  .sidebar-bottom { display: none; }
  .kv-grid { grid-template-columns: 1fr; }
  .kv-key { border-top: none; padding-bottom: 0; }
  .source-row { grid-template-columns: 1fr; gap: 4px; }
  .vpc-canvas { grid-template-columns: 1fr; }
  .vpc-shape--circle { border-radius: 12px; aspect-ratio: auto; }
  .vpc-fit-bridge { flex-direction: row; padding: 8px 0; }
  .vpc-fit-svg { width: 24px; height: 32px; }
  .bt-principle { float: none; max-width: none; margin: 0 0 16px 0; }
  .postit { max-width: none; }
}
