@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --bg: #0F0C08;
  --bg-soft: #16110A;
  --bg-card: #FFFFFF;
  --bg-card-soft: #FDF8F2;
  --text: #1A1208;
  --text-soft: #6B5A3E;
  --line: #EDE0CC;
  --primary: #D97B1A;
  --primary-strong: #B35E08;
  --primary-soft: rgba(217, 123, 26, 0.10);
  --success: #0f9f67;
  --warning: #d67c00;
  --danger: #c34040;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow: 0 18px 50px rgba(40, 20, 5, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: linear-gradient(180deg, #F5EDE0 0%, #EFE3D0 100%);
  color: var(--text);
}

h1, h2, h3 {
  font-family: "Syne", "DM Sans", system-ui, sans-serif;
}

.app-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #0C0905 0%, #16100A 100%);
  color: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #C84B0A 0%, #D97B1A 55%, #F5A833 100%);
  color: white;
  font-weight: 800;
  font-family: "Syne", sans-serif;
  font-size: 18px;
}
.brand h1 {
  font-size: 17px;
  margin: 0;
  font-family: "Syne", sans-serif;
}
.brand p {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.68);
  text-align: left;
  font: inherit;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: .18s ease;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(217, 123, 26, 0.14);
  color: #F5A833;
}

.sidebar-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px;
}
.sidebar-card h3,
.sidebar-card p,
.sidebar-card strong { margin: 0; }
.sidebar-card.small { font-size: 14px; }
.status-stack {
  display: grid;
  gap: 14px;
}

.main {
  padding: 34px;
}

.panel { display: none; }
.panel.active { display: block; }

.hero,
.section-header,
.card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.hero {
  background: linear-gradient(135deg, #0C0905 0%, #221508 52%, #3D2208 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.hero h2,
.section-header h2,
.card-header h3 {
  margin: 8px 0 0;
}
.hero h2 { max-width: 780px; font-size: 34px; line-height: 1.15; }
.hero p { max-width: 760px; color: rgba(255,255,255,0.72); }
.hero-actions,
.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.hero .eyebrow,
.sidebar .eyebrow { color: rgba(255,255,255,0.55); }

.section-copy {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--text-soft);
}

.save-pill {
  background: #FEF3E2;
  color: #8C4A0A;
  border: 1px solid rgba(217, 123, 26, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}

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

.metric-card,
.content-card,
.doc-card,
.form-card,
.score-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.metric-card h3,
.content-card h3,
.doc-card h3,
.form-card h3,
.score-panel h3 {
  margin: 8px 0;
}
.metric-card p,
.content-card p,
.doc-card p,
.form-card p,
.score-panel p,
li {
  color: var(--text-soft);
  line-height: 1.6;
}

.callout {
  padding: 18px;
  border-radius: 14px;
  font-weight: 600;
}
.callout.info { background: #FEF3E2; color: #8C4A0A; }

.mini-list { display: grid; gap: 10px; margin-top: 16px; }
.mini-flag {
  border: 1px dashed var(--line);
  background: var(--bg-card-soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

.phase-list { display: grid; gap: 18px; }
.phase-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: start;
}
.phase-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #d5c8b8;
  margin-top: 4px;
}
.phase-item.done .phase-dot { background: var(--success); }
.phase-item.progress .phase-dot { background: var(--warning); }

/* ======================================================================== */
/* Client Command Center                                                     */
/* ======================================================================== */

/* Hero */
.cc-hero {
  background: linear-gradient(135deg, #0C0905 0%, #221508 52%, #3A1E06 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 30px 36px;
  margin-bottom: 22px;
  box-shadow: 0 24px 60px rgba(20,8,0,0.18);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cc-hero-glow {
  position: absolute;
  top: -60px;
  right: 80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(217,123,26,0.22) 0%, transparent 68%);
  pointer-events: none;
}
.cc-hero-main { min-width: 0; position: relative; z-index: 1; }
.cc-phase-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  margin-bottom: 12px;
}
.cc-client-name {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 800;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-client-sub {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  margin: 0;
}
.cc-hero-aside {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.cc-hero-score { text-align: right; }
.cc-hero-next  { text-align: right; max-width: 200px; }
.cc-score-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0 0 5px;
}
.cc-score-block { display: flex; align-items: baseline; gap: 4px; }
.cc-score-num {
  font-size: 48px;
  font-weight: 900;
  color: white;
  line-height: 1;
  font-family: "Syne", sans-serif;
}
.cc-score-denom { font-size: 16px; color: rgba(255,255,255,0.35); }
.cc-next-hint {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0;
}

/* Metric cards */
.cc-mc { border-radius: var(--radius-xl); }
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddd5c8;
  flex-shrink: 0;
  transition: background 0.25s;
}
.status-dot.done     { background: var(--success); }
.status-dot.progress { background: var(--warning); }

/* Score mini-bar */
.cc-score-bar-wrap { margin: 5px 0 9px; }
.cc-score-bar-track {
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.cc-score-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary) 0%, #f0a840 100%);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* Pipeline */
.cc-pip-list { display: grid; gap: 0; margin-top: 12px; }
.cc-pip-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding-bottom: 26px;
  position: relative;
  align-items: start;
}
.cc-pip-step:last-child { padding-bottom: 0; }
.cc-pip-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
}
.cc-pip-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  opacity: 0.45;
  line-height: 1;
}
.cc-pip-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e0d4c4;
  position: relative;
  z-index: 1;
  transition: background 0.25s, box-shadow 0.25s;
}
.cc-pip-step:not(:last-child) .cc-pip-track::after {
  content: '';
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 26px);
  background: #e0d4c4;
  transition: background 0.25s;
}
.cc-pip-step.done .cc-pip-dot {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(15,159,103,0.15);
}
.cc-pip-step.done .cc-pip-track::after { background: var(--success); }
.cc-pip-step.done .cc-pip-num { opacity: 0.7; }
.cc-pip-step.progress .cc-pip-dot {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(214,124,0,0.18);
}
.cc-pip-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.cc-pip-body strong { font-size: 14px; font-weight: 700; }
.cc-pip-body p { font-size: 13px; margin: 0; color: var(--text-soft); line-height: 1.5; }
.cc-pip-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: #EDE0CC;
  color: var(--text-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.cc-pip-step.done     .cc-pip-badge { background: rgba(15,159,103,0.12); color: #0a7a50; }
.cc-pip-step.progress .cc-pip-badge { background: rgba(214,124,0,0.13);  color: #7a4500; }

/* Next action card */
.cc-action-card { display: flex; flex-direction: column; }
.cc-next-action-box {
  background: linear-gradient(135deg, #FEF3E2 0%, #fdf6ec 100%);
  border: 1px solid rgba(217,123,26,0.22);
  border-radius: var(--radius-lg);
  padding: 22px;
  font-size: 15px;
  font-weight: 600;
  color: #6B3309;
  line-height: 1.7;
  flex: 1;
}

/* Gaps section */
.cc-gaps-section { margin-top: 4px; margin-bottom: 24px; }
.cc-gaps-header  { margin-bottom: 10px; }
.cc-gaps-list    { display: grid; gap: 8px; }
.cc-gaps-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.cc-gap-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 1px;
}
.cc-gap-badge.critical { background: rgba(195,64,64,0.1);  color: #8c1a1a; }
.cc-gap-badge.useful   { background: rgba(214,124,0,0.12); color: #7a4500; }
.cc-gap-badge.optional { background: #EDE0CC;              color: var(--text-soft); }
.cc-gap-label  { font-size: 13px; font-weight: 700; display: block; margin-bottom: 1px; }
.cc-gap-reason { font-size: 12px; color: var(--text-soft); }
.cc-gaps-empty {
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
  padding: 14px 18px;
  background: rgba(15,159,103,0.07);
  border: 1px solid rgba(15,159,103,0.16);
  border-radius: var(--radius-md);
  margin: 0;
}
/* ======================================================================== */

.form-grid {
  display: grid;
  gap: 18px;
}
.field-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.two-col { grid-template-columns: repeat(2, 1fr); }
label { display: grid; gap: 8px; }
label span { font-size: 14px; font-weight: 600; }
input, textarea, select {
  width: 100%;
  border: 1px solid #DDD0BE;
  background: #FDFAF6;
  color: var(--text);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
}
textarea { resize: vertical; min-height: 92px; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(217, 123, 26, 0.22);
  border-color: var(--primary);
}
.helper-text {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}
.btn.primary {
  background: var(--primary);
  color: white;
}
.btn.primary:hover { background: var(--primary-strong); }
.btn.secondary {
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.btn.secondary:hover { background: rgba(217, 123, 26, 0.18); }
.btn.ghost {
  background: white;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn.ghost:hover { background: var(--bg-card-soft); }
.btn.muted {
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-weight: 600;
}
.btn.muted:hover { background: #e4ddd5; }

.score-panel {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.score-main h3 { font-size: 42px; }
.score-breakdown,
.score-gaps {
  display: grid;
  gap: 12px;
}
.score-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
}
ul { margin: 8px 0 0; padding-left: 18px; }

.check-list,
.accordion-list { display: grid; gap: 12px; }
.check-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card-soft);
}
.check-icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--primary);
  margin-top: 4px;
}
.check-item strong { display: block; margin-bottom: 6px; }
.check-item p { margin: 0; }
.accordion-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  overflow: hidden;
}
.accordion-head {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  background: var(--bg-card-soft);
}
.accordion-body {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
}
.accordion-body ul { margin-top: 0; }

.doc-card {
  display: grid;
  gap: 12px;
}
.doc-card-featured {
  border: 1.5px solid rgba(180, 120, 60, 0.35);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(180,120,60,0.04) 100%);
}
.doc-status {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.doc-status.ready {
  background: rgba(15,159,103,0.1);
  border-color: rgba(15,159,103,0.2);
  color: var(--success);
}

/* ========================================================================== */
/* Visual System                                                               */
/* ========================================================================== */

.vs-card { margin-bottom: 16px; }

.vs-header-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.vs-header-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vs-meta-note { font-size: 13px; color: var(--text-soft); }
.vs-meta-warn { color: #92400E; }

/* Certainty badges */
.vs-certainty-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.vs-badge-confirmed   { background: #D1FAE5; color: #065F46; }
.vs-badge-inferred    { background: #DBEAFE; color: #1E40AF; }
.vs-badge-recommended { background: #FEF3C7; color: #92400E; }
.vs-badge-missing     { background: #F3F4F6; color: #6B7280; }

/* Direction */
.vs-direction-summary { font-size: 15px; line-height: 1.6; margin-bottom: 16px; color: var(--text); }
.vs-direction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.vs-rationale { font-size: 13px; color: var(--text-soft); font-style: italic; margin-top: 12px; }

/* Lists */
.vs-list { margin: 8px 0 0 0; padding-left: 18px; }
.vs-list li { font-size: 14px; line-height: 1.6; margin-bottom: 4px; color: var(--text); }
.vs-empty-note { font-size: 13px; color: var(--text-soft); font-style: italic; }
.vs-subsection { margin-top: 16px; }
.vs-subsection strong { display: block; font-size: 13px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }

/* Color swatches */
.vs-colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.vs-color-swatch {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.vs-swatch-block { height: 72px; width: 100%; }
.vs-swatch-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.vs-swatch-info strong { font-size: 13px; font-weight: 700; }
.vs-swatch-hex { font-size: 12px; color: var(--text-soft); font-family: monospace; }
.vs-swatch-role { font-size: 12px; color: var(--text-soft); }
.vs-swatch-usage { font-size: 12px; color: var(--text-soft); margin-bottom: 4px; }

/* Font cards */
.vs-fonts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.vs-font-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg-card);
}
.vs-font-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.vs-font-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.vs-font-role { font-size: 12px; background: var(--bg-card-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.vs-font-weight { font-size: 12px; color: var(--text-soft); padding: 2px 0; }
.vs-font-usage { font-size: 13px; color: var(--text-soft); margin-bottom: 8px; }

/* Format tabs */
.vs-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.vs-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s, border-color 0.15s;
}
.vs-tab:hover { color: var(--text); }
.vs-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.vs-format-spec { font-size: 12px; color: var(--text-soft); margin-bottom: 12px; }

/* Always / Never */
.vs-always-never { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs-an-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.vs-an-always-header { background: #D1FAE5; color: #065F46; }
.vs-an-never-header  { background: #FEE2E2; color: #991B1B; }

/* Client summary */
.vs-one-liner {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 16px;
  padding: 14px 18px;
  background: var(--bg-card-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}
.vs-gaps { background: #FFFBEB; border-radius: 8px; padding: 12px; }

/* Empty state */
.vs-empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-soft);
}
.vs-empty-state p { margin-bottom: 10px; }

.pipeline-list {
  padding-left: 18px;
  margin-top: 10px;
}
.bullet-list { padding-left: 18px; }
.code-block {
  background: #0f0c08;
  color: #f0d8b0;
  border-radius: 16px;
  padding: 20px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}

/* ── Client registry ──────────────────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.client-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: .18s ease;
  display: grid;
  gap: 14px;
}
.client-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(217, 123, 26, 0.14);
  transform: translateY(-2px);
}
.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #C84B0A 0%, #F5A833 100%);
  color: white;
  font-weight: 800;
  font-size: 18px;
  font-family: "Syne", sans-serif;
  display: grid;
  place-items: center;
}
.client-name {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  font-family: "Syne", sans-serif;
}
.client-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin: 3px 0 0;
}
.client-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.client-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.client-badge.has-docs {
  background: rgba(15,159,103,0.1);
  border-color: rgba(15,159,103,0.2);
  color: var(--success);
}
.client-badge.has-score {
  background: var(--primary-soft);
  border-color: rgba(217, 123, 26, 0.2);
  color: var(--primary-strong);
}
.empty-clients {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-soft);
}
.empty-clients h3 {
  font-size: 20px;
  color: var(--text);
  margin: 0 0 8px;
}

/* ── Session questions ────────────────────────────────────────────── */
.question-blocks {
  display: grid;
  gap: 24px;
  margin-bottom: 18px;
}
.question-block-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.question-list {
  display: grid;
  gap: 8px;
}
.question-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card-soft);
  transition: .18s ease;
}
.question-item.answered {
  border-color: rgba(15,159,103,0.28);
  background: rgba(15,159,103,0.06);
}
.question-item.not-answered {
  border-color: rgba(195,64,64,0.28);
  background: rgba(195,64,64,0.05);
}
.question-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.question-item.answered .question-num {
  background: rgba(15,159,103,0.14);
  color: var(--success);
}
.question-item.not-answered .question-num {
  background: rgba(195,64,64,0.1);
  color: var(--danger);
}
.question-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
}
.question-status-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Coverage banner ──────────────────────────────────────────────── */
.coverage-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0C0905 0%, #2A1A08 100%);
  color: white;
  margin-bottom: 24px;
}
.coverage-score-big {
  font-family: "Syne", sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: #F5A833;
  line-height: 1;
  flex-shrink: 0;
}
.coverage-info {
  flex: 1;
}
.coverage-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.coverage-summary-text {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.coverage-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Insight quote ────────────────────────────────────────────────── */
.insight-quote {
  border-left: 3px solid var(--primary);
  background: var(--bg-card-soft);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.6;
}

/* ── Visual pack ──────────────────────────────────────────────────── */
.visual-pack-box {
  border: 1px solid var(--line);
  background: var(--bg-card-soft);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.visual-pack-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.visual-pack-copy {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}
.visual-pack-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.visual-pack-list li {
  color: var(--text-soft);
  line-height: 1.6;
}
.visual-pack-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(217, 123, 26, 0.18);
}
.visual-pack-link:hover {
  background: rgba(217, 123, 26, 0.18);
}

/* ── Modal ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 8, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.hidden { display: none; }
.hidden { display: none !important; }
#visualStyleConditional { display: contents; }
.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(40, 20, 5, 0.18);
  width: 100%;
  max-width: 760px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-soft);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
}
.modal-close:hover { background: var(--line); }
.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}
.modal-transcript {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  font-family: "DM Sans", monospace;
}

/* ── Content Ideas ───────────────────────────────────────────────── */
.ci-status {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
}
.ci-status-loading { background: #EFF6FF; color: #1E40AF; }
.ci-status-error   { background: #FEF2F2; color: #991B1B; }

.ci-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ci-filter-select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

.ci-strategic-notes {
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 28px;
  overflow: hidden;
}
.ci-notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
}
.ci-notes-title { font-weight: 600; font-size: 14px; }
.ci-notes-toggle-icon { color: var(--text-soft); font-size: 12px; }
.ci-notes-body { padding: 0 20px 16px; }
.ci-notes-section { margin-bottom: 12px; }
.ci-notes-section ul { margin: 6px 0 0 18px; padding: 0; }
.ci-notes-section li { font-size: 13px; color: var(--text-soft); margin-bottom: 4px; }

.ci-pillar-block { margin-bottom: 36px; }
.ci-pillar-header {
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.ci-pillar-name { margin: 0 0 6px; font-size: 17px; }
.ci-pillar-purpose { margin: 0 0 10px; color: var(--text-soft); font-size: 14px; }
.ci-pillar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-soft);
}
.ci-pillar-count {
  margin-left: auto;
  font-weight: 600;
  color: var(--text);
}

.ci-ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.ci-no-ideas { font-size: 13px; color: var(--text-soft); padding: 12px 0; }

.ci-idea-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s;
}
.ci-idea-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.ci-card-rejected { opacity: 0.5; }

.ci-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ci-card-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.ci-card-desc { margin: 0; font-size: 13px; color: var(--text-soft); line-height: 1.5; }

.ci-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.ci-status-propuesta  { background: #F3F4F6; color: #374151; }
.ci-status-aprobada   { background: #D1FAE5; color: #065F46; }
.ci-status-rechazada  { background: #FEE2E2; color: #991B1B; }
.ci-status-en_grilla  { background: #DBEAFE; color: #1E40AF; }

.ci-priority-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ci-p-alta  { background: #EF4444; }
.ci-p-media { background: #F59E0B; }
.ci-p-baja  { background: #10B981; }

.ci-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ci-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.ci-tag-intent { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

.ci-card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ci-card-btn {
  font: inherit;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-card-soft);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.ci-card-btn:hover { background: var(--line); }
.ci-card-approve { background: #D1FAE5; border-color: #6EE7B7; color: #065F46; }
.ci-card-approve:hover { background: #A7F3D0; }
.ci-card-reject { background: #FEE2E2; border-color: #FCA5A5; color: #991B1B; }
.ci-card-reject:hover { background: #FECACA; }
.ci-card-send { background: #DBEAFE; border-color: #93C5FD; color: #1E40AF; }
.ci-card-send:hover { background: #BFDBFE; }

.ci-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.9;
}

/* Idea detail modal */
.ci-detail-grid { display: flex; flex-direction: column; gap: 18px; }
.ci-detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.ci-detail-section { display: block; }
.ci-detail-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.ci-detail-section p { margin: 0; font-size: 14px; line-height: 1.7; }
.ci-source-text {
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
}
.ci-date-row { display: flex; gap: 10px; align-items: center; }
.ci-date-assign input { flex: 1; max-width: 200px; }

/* ── Content Grid ────────────────────────────────────────────────── */
.modal-box-lg  { max-width: 900px; }
.modal-box-xl  { max-width: 1100px; }
.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.cg-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cg-view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.cg-toggle-btn {
  background: none;
  border: none;
  padding: 7px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-soft);
  transition: background 0.15s, color 0.15s;
}
.cg-toggle-btn.active {
  background: var(--text);
  color: #fff;
}

/* Status badges */
.cg-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.cg-badge-en_proceso  { background: #FEF3C7; color: #92400E; }
.cg-badge-programado  { background: #DBEAFE; color: #1E40AF; }
.cg-badge-publicado   { background: #D1FAE5; color: #065F46; }
.cg-badge-atrasado    { background: #FEE2E2; color: #991B1B; }

/* Focus tag */
.cg-focus-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
  white-space: nowrap;
}

/* Calendar */
.cg-cal-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.cg-cal-month-label {
  font-size: 16px;
  font-weight: 600;
  min-width: 200px;
  text-align: center;
}
.cg-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cg-cal-dayname {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  padding-bottom: 6px;
}
.cg-cal-cell {
  min-height: 90px;
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cg-cal-cell.cg-cal-empty { background: transparent; border-color: transparent; }
.cg-cal-cell.cg-cal-today { border-color: #D97B1A; }
.cg-cal-daynum {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.cg-cal-chip {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cg-cal-chip:hover { opacity: 0.8; }
.cg-chip-en_proceso  { background: #FEF3C7; color: #92400E; }
.cg-chip-programado  { background: #DBEAFE; color: #1E40AF; }
.cg-chip-publicado   { background: #D1FAE5; color: #065F46; }
.cg-chip-atrasado    { background: #FEE2E2; color: #991B1B; }

/* Table */
.cg-table-wrap { overflow-x: auto; }
.cg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cg-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.cg-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cg-table tr:hover td { background: var(--bg-card-soft); }
.cg-td-date { white-space: nowrap; font-size: 13px; color: var(--text-soft); }
.cg-td-topic { font-weight: 500; max-width: 180px; }
.cg-td-preview { max-width: 200px; }
.cg-preview-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}
.cg-empty-cell { color: var(--line); }
.cg-td-actions { white-space: nowrap; }
.cg-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-soft);
  transition: background 0.15s;
}
.cg-action-btn:hover { background: var(--line); }
.cg-action-delete:hover { background: #FEE2E2; color: #991B1B; }

/* Empty state */
.cg-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}

/* Post form */
.post-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.post-form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── Media queries ────────────────────────────────────────────────── */
@media (max-width: 1300px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .score-panel { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .cards-2,
  .cards-3,
  .cards-4,
  .clients-grid,
  .two-col { grid-template-columns: 1fr; }
  .main { padding: 18px; }
  .hero,
  .section-header,
  .card-header { flex-direction: column; }
  .hero h2 { font-size: 28px; }
  .coverage-banner { flex-direction: column; align-items: flex-start; }
  .cc-hero { grid-template-columns: 1fr; gap: 20px; padding: 24px 22px; }
  .cc-hero-aside { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cc-hero-score, .cc-hero-next { text-align: left; }
  .cc-next-hint { max-width: 100%; }
  .cc-client-name { font-size: 26px; white-space: normal; }
}

/* ========================================================================== */
/* Ads module                                                                  */
/* ========================================================================== */

.ad-doc-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 8px;
}
.ad-doc-warning.error   { background: rgba(195,64,64,0.08); border: 1px solid rgba(195,64,64,0.2); color: #7f1d1d; }
.ad-doc-warning.caution { background: rgba(214,124,0,0.08); border: 1px solid rgba(214,124,0,0.2);  color: #7c3700; }

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

.ad-option-card {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 10px;
  transition: .15s ease;
  background: var(--bg-card);
}
.ad-option-card.approved {
  border-color: var(--success);
  background: rgba(15,159,103,0.05);
}
.ad-option-angle {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-soft);
}
.ad-option-title {
  font-family: "Syne", "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.ad-option-subtitle {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.55;
}
.ad-option-cta-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 12px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.ad-option-notes {
  font-size: 12px;
  color: var(--text-soft);
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.ad-option-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.ad-caption-box {
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: 12px;
}
.ad-caption-notes {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 16px;
}

/* Status badges */
.ad-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.ad-badge-borrador        { background: #F3F4F6; color: #6B7280; }
.ad-badge-texto_aprobado  { background: var(--primary-soft); color: var(--primary-strong); }
.ad-badge-copy_generado   { background: rgba(15,159,103,0.1); color: var(--success); }
.ad-badge-finalizado      { background: rgba(15,159,103,0.15); color: var(--success); border: 1px solid rgba(15,159,103,0.2); }

/* Ads list */
.ad-list-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.ad-list-service { font-weight: 700; font-size: 15px; }
.ad-list-meta    { font-size: 12px; color: var(--text-soft); margin-top: 3px; }
.ad-list-badges  { display: flex; align-items: center; gap: 8px; }
.ad-list-actions { display: flex; gap: 6px; }
.ad-list-actions .btn { padding: 7px 12px; font-size: 12px; }

@media (max-width: 980px) {
  .ad-options-grid { grid-template-columns: 1fr; }
  .ad-list-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ========================================================================== */
/* Score info panel                                                            */
/* ========================================================================== */

.score-info-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: .15s ease;
  padding: 0;
  line-height: 1;
  font-family: inherit;
}
.score-info-btn:hover { background: rgba(255,255,255,0.24); color: white; }

.score-info-panel {
  position: fixed;
  left: 316px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 12px 48px rgba(40,20,5,0.14);
  z-index: 200;
  max-height: 80vh;
  overflow-y: auto;
}
.score-info-panel.hidden { display: none; }

.score-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.score-info-section {
  margin-bottom: 16px;
}
.score-info-section:last-child { margin-bottom: 0; }
.score-info-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-soft);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.score-info-item {
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  line-height: 1.45;
}
.score-info-item:last-child { border-bottom: none; }
.score-info-empty { font-size: 13px; color: var(--success); font-weight: 600; }

.session-missing-item {
  padding: 10px 14px;
  background: var(--bg-card-soft);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  border-left: 3px solid var(--primary-soft);
}

/* ============================================================
   Landing Page Module
   ============================================================ */

.lp-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 16px;
}
.lp-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.lp-meta-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-soft);
}
.lp-color-chip {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.lp-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.lp-warning {
  padding: 10px 14px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.22);
  border-radius: 8px;
  font-size: 13px;
  color: #b45309;
  margin-bottom: 6px;
}
.lp-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* Section card */
.lsc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.lsc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.02);
}
.lsc-type-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent, #c07830);
}
.lsc-edit-btn {
  font-size: 12px;
  padding: 4px 10px;
  height: auto;
}
.lsc-body {
  padding: 14px 16px;
}
.lsc-heading {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.4;
}
.lsc-sub {
  font-size: 12px;
  color: var(--text-soft);
  margin: 0 0 10px;
  line-height: 1.4;
}
.lsc-cta-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent, #c07830);
  color: #fff;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.lsc-items {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.6;
}
.lsc-items li { margin-bottom: 2px; }
.lsc-more {
  color: var(--accent, #c07830);
  list-style: none;
  margin-left: -16px;
  font-size: 11px;
  font-weight: 600;
}
.lsc-empty {
  color: var(--text-soft);
  font-size: 12px;
  margin: 0;
  font-style: italic;
}

/* Section edit modal — form */
.lsm-form {
  display: grid;
  gap: 14px;
}
.lsm-form-field {
  display: grid;
  gap: 5px;
}
.lsm-form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-soft);
}
.lsm-form-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  background: var(--bg-main, #F7F3EC);
  color: var(--text);
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.lsm-form-input:focus {
  outline: none;
  border-color: var(--accent, #c07830);
}
.lsm-form-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  background: var(--bg-main, #F7F3EC);
  color: var(--text);
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.55;
  transition: border-color 0.15s;
}
.lsm-form-textarea:focus {
  outline: none;
  border-color: var(--accent, #c07830);
}
.lsm-form-items {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
  display: grid;
  gap: 10px;
}
.lsm-item-group {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}
.lsm-item-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #c07830);
  padding-top: 10px;
  text-align: center;
}
.lsm-item-fields {
  display: grid;
  gap: 6px;
}

/* AI section + regen notice */
.lsm-ai-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.lsm-ai-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-soft);
}
.lsm-regen-notice {
  margin-top: 10px;
  padding: 8px 14px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 8px;
  font-size: 13px;
  color: #166534;
  font-weight: 500;
}

/* ============================================================
   Landing Preview — Toolbar & Toggle
   ============================================================ */
.lp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.lp-view-toggle {
  display: flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.lp-toggle-btn {
  padding: 7px 20px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lp-toggle-btn.active {
  background: var(--text);
  color: #F7F3EC;
}
.lp-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================================
   Landing Preview — Wrapper
   ============================================================ */
.lp-pv-wrap {
  --lp-pv-primary:   #9A5A18;
  --lp-pv-dark:      #17120C;
  --lp-pv-bg:        #F7F3EC;
  --lp-pv-font-head: Georgia, serif;
  --lp-pv-font-body: system-ui, sans-serif;
  --lp-pv-radius:    20px;
  font-family: var(--lp-pv-font-body);
  background: var(--lp-pv-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.lp-pv-client-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px;
  background: rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.lp-pv-client-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lp-pv-dark);
}
.lp-pv-preview-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  background: rgba(245,158,11,0.1);
  color: #92400e;
  border-radius: 20px;
  border: 1px solid rgba(245,158,11,0.25);
}

/* Containers */
.lp-pv-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 40px;
}
.lp-pv-narrow    { max-width: 700px; }
.lp-pv-center-text { text-align: center; }

/* Section base */
.lp-pv-section {
  position: relative;
  padding: 72px 0;
}

/* Explicit section backgrounds — ordered by page flow */
.lp-pv-hero         { background: var(--lp-pv-bg); }
.lp-pv-vsl          { background: #fff; }
.lp-pv-trust-bar    { background: var(--lp-pv-dark); }
.lp-pv-tension      { background: #fff; }
.lp-pv-reframe      { background: var(--lp-pv-dark); }
.lp-pv-method       { background: var(--lp-pv-bg); }
.lp-pv-bcl          { background: #fff; }
.lp-pv-clinical-cases { background: var(--lp-pv-bg); }
.lp-pv-fit          { background: #fff; }
.lp-pv-first-consult{ background: var(--lp-pv-bg); }
.lp-pv-services     { background: #fff; }
.lp-pv-diff         { background: var(--lp-pv-bg); }
.lp-pv-proof        { background: #fff; }
.lp-pv-contact-flow { background: var(--lp-pv-bg); }
.lp-pv-faq          { background: #fff; }
.lp-pv-friction     { background: #fff; }
.lp-pv-final-cta    { background: var(--lp-pv-dark); }

/* Edit button (appears on hover) */
.lp-pv-edit-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  background: rgba(255,255,255,0.9);
  color: #555;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 3;
  font-family: inherit;
}
.lp-pv-section:hover .lp-pv-edit-btn { opacity: 1; }
.lp-pv-edit-btn-light {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}
.lp-pv-edit-btn-light:hover { background: rgba(255,255,255,0.2); }

/* Typography */
.lp-pv-h2 {
  font-family: var(--lp-pv-font-head);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--lp-pv-dark);
  margin: 0 0 16px;
  line-height: 1.25;
}
.lp-pv-lead {
  font-size: 17px;
  color: rgba(23,18,12,0.6);
  margin: 0 0 24px;
  line-height: 1.65;
}
.lp-pv-body-text {
  font-size: 15px;
  color: rgba(23,18,12,0.65);
  line-height: 1.75;
  margin: 0 0 20px;
}
.lp-pv-bullets {
  margin: 16px 0 0;
  padding: 0 0 0 20px;
  font-size: 15px;
  color: rgba(23,18,12,0.65);
  line-height: 1.75;
}
.lp-pv-bullets li { margin-bottom: 6px; }

/* Buttons */
.lp-pv-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--lp-pv-dark);
  color: #fff;
  border: none;
  border-radius: var(--lp-pv-radius);
  font-family: var(--lp-pv-font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: default;
  letter-spacing: 0.01em;
}
.lp-pv-btn-primary.lp-pv-btn-lg {
  padding: 17px 44px;
  font-size: 16px;
}
.lp-pv-cta-group {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Visual blocks */
.lp-pv-visual-block,
.lp-pv-visual-ph {
  background: rgba(0,0,0,0.04);
  border: 1px dashed rgba(0,0,0,0.14);
  border-radius: calc(var(--lp-pv-radius) * 0.7);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}
.lp-pv-visual-block-dark,
.lp-pv-visual-ph-dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}
.lp-pv-visual-ph,
.lp-pv-visual-ph-dark {
  align-items: center;
  color: rgba(23,18,12,0.3);
  font-size: 13px;
  font-style: italic;
}
.lp-pv-visual-ph-dark { color: rgba(255,255,255,0.3); }
.lp-pv-visual-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(23,18,12,0.35);
  margin: 0 0 8px;
}
.lp-pv-visual-block-dark .lp-pv-visual-label { color: rgba(255,255,255,0.4); }
.lp-pv-visual-desc {
  font-size: 13px;
  color: rgba(23,18,12,0.6);
  margin: 0 0 8px;
  font-style: italic;
  line-height: 1.5;
}
.lp-pv-visual-block-dark .lp-pv-visual-desc { color: rgba(255,255,255,0.65); }
.lp-pv-visual-note {
  font-size: 11px;
  color: #92400e;
  margin: 8px 0 0;
}
.lp-pv-visual-block-dark .lp-pv-visual-note { color: rgba(245,158,11,0.85); }

/* Warning inline */
.lp-pv-warn-inline {
  font-size: 13px;
  color: #92400e;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.22);
  padding: 10px 16px;
  border-radius: 10px;
  margin: 8px 0;
}
.lp-pv-error {
  padding: 48px 24px;
  text-align: center;
  color: #ef4444;
  font-size: 14px;
}

/* ============================================================
   Hero — light premium with accent bar
   ============================================================ */
.lp-pv-hero {
  background: var(--lp-pv-bg);
  padding: 0 0 80px;
}
.lp-pv-hero-accent-bar {
  height: 4px;
  background: var(--lp-pv-primary);
  width: 100%;
}
.lp-pv-hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
}
.lp-pv-hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lp-pv-primary);
  margin: 0 0 14px;
}
.lp-pv-hero-title {
  font-family: var(--lp-pv-font-head);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  color: var(--lp-pv-dark);
  margin: 0 0 14px;
  line-height: 1.15;
}
.lp-pv-hero-sub {
  font-size: 18px;
  color: rgba(23,18,12,0.65);
  margin: 0 0 10px;
  line-height: 1.55;
}
.lp-pv-hero-body {
  font-size: 14px;
  color: rgba(23,18,12,0.45);
  margin: 0;
  line-height: 1.65;
}
.lp-pv-hero-trust {
  font-size: 12px;
  color: rgba(23,18,12,0.4);
  margin: 12px 0 0;
  letter-spacing: 0.02em;
}
.lp-pv-hero .lp-pv-btn-primary { background: var(--lp-pv-dark); }

/* Premium placeholder frame */
.lp-pv-ph-frame {
  position: relative;
  background: rgba(23,18,12,0.04);
  border: 1px solid rgba(23,18,12,0.1);
  border-radius: calc(var(--lp-pv-radius) * 0.8);
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-pv-ph-frame-sm { min-height: 220px; }
.lp-pv-ph-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23,18,12,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,18,12,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.lp-pv-ph-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
}
.lp-pv-ph-icon {
  font-size: 28px;
  color: rgba(23,18,12,0.2);
  margin-bottom: 10px;
  line-height: 1;
}
.lp-pv-ph-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(23,18,12,0.35);
  margin: 0 0 6px;
}
.lp-pv-ph-desc {
  font-size: 12px;
  color: rgba(23,18,12,0.5);
  margin: 0 0 10px;
  line-height: 1.5;
  font-style: italic;
}
.lp-pv-ph-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  background: rgba(154,90,24,0.1);
  color: var(--lp-pv-primary);
  border-radius: 20px;
  border: 1px solid rgba(154,90,24,0.2);
}

/* ============================================================
   Patient Tension — chip pills
   ============================================================ */
.lp-pv-tension { background: #fff; }
.lp-pv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}
.lp-pv-chip {
  padding: 10px 20px;
  background: var(--lp-pv-bg);
  border: 1px solid rgba(23,18,12,0.1);
  border-radius: 999px;
  font-size: 14px;
  color: rgba(23,18,12,0.7);
  line-height: 1.3;
}

/* ============================================================
   Reframe — accent bg with decorative lines
   ============================================================ */
.lp-pv-reframe {
  background: var(--lp-pv-primary);
  padding: 80px 0;
}
.lp-pv-reframe-line {
  width: 48px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  margin: 0 auto 32px;
}
.lp-pv-reframe-quote {
  font-family: var(--lp-pv-font-head);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.3;
  font-style: italic;
  quotes: none;
}
.lp-pv-reframe-body {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   Method — horizontal timeline
   ============================================================ */
.lp-pv-method { background: var(--lp-pv-bg); }
.lp-pv-section-intro { margin-bottom: 48px; }
.lp-pv-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  position: relative;
}
.lp-pv-tl-step {
  position: relative;
  padding: 0 24px 40px 0;
  display: flex;
  flex-direction: column;
}
.lp-pv-tl-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lp-pv-dark);
  color: #fff;
  font-family: var(--lp-pv-font-head);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.lp-pv-tl-line {
  position: absolute;
  top: 20px;
  left: 40px;
  right: 0;
  height: 1px;
  background: rgba(23,18,12,0.12);
  z-index: 0;
}
.lp-pv-tl-step:last-child .lp-pv-tl-line { display: none; }
.lp-pv-tl-content { flex: 1; }
.lp-pv-tl-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-pv-dark);
  margin: 0 0 6px;
  line-height: 1.4;
}
.lp-pv-tl-desc {
  font-size: 12px;
  color: rgba(23,18,12,0.55);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   Differentiators — featured first card
   ============================================================ */
.lp-pv-diff { background: #fff; }
.lp-pv-diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.lp-pv-diff-card {
  padding: 24px;
  background: var(--lp-pv-bg);
  border-radius: var(--lp-pv-radius);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.lp-pv-diff-featured {
  background: var(--lp-pv-dark);
  border-color: transparent;
}
.lp-pv-diff-featured .lp-pv-diff-num  { color: rgba(255,255,255,0.3); opacity: 1; }
.lp-pv-diff-featured .lp-pv-diff-title { color: #fff; }
.lp-pv-diff-featured .lp-pv-diff-desc  { color: rgba(255,255,255,0.6); }
.lp-pv-diff-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--lp-pv-primary);
  opacity: 0.45;
  margin-bottom: 8px;
  font-family: var(--lp-pv-font-head);
  line-height: 1;
}
.lp-pv-diff-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-pv-dark);
  margin: 0 0 6px;
  line-height: 1.4;
}
.lp-pv-diff-desc {
  font-size: 13px;
  color: rgba(23,18,12,0.6);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   Services — accent bar on cards
   ============================================================ */
.lp-pv-services { background: var(--lp-pv-bg); }
.lp-pv-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.lp-pv-service-card {
  padding: 0;
  background: #fff;
  border-radius: var(--lp-pv-radius);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lp-pv-service-accent {
  height: 3px;
  background: var(--lp-pv-primary);
  flex-shrink: 0;
}
.lp-pv-service-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--lp-pv-dark);
  margin: 0 0 8px;
  line-height: 1.35;
  padding: 20px 20px 0;
}
.lp-pv-service-desc {
  font-size: 13px;
  color: rgba(23,18,12,0.6);
  margin: 0;
  line-height: 1.55;
  padding: 0 20px 12px;
  flex: 1;
}
.lp-pv-service-note {
  font-size: 11px;
  color: rgba(23,18,12,0.45);
  margin: 0;
  padding: 8px 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  line-height: 1.4;
}
.lp-pv-service-cta {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 9px 16px;
  border: 1px solid rgba(23,18,12,0.15);
  border-radius: 10px;
  background: transparent;
  color: var(--lp-pv-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  text-align: center;
}

/* ============================================================
   Proof — two-column layout
   ============================================================ */
.lp-pv-proof { background: #fff; }
.lp-pv-proof-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
.lp-pv-proof-list {
  margin: 16px 0 0;
  padding: 0 0 0 20px;
  font-size: 14px;
  color: rgba(23,18,12,0.65);
  line-height: 1.75;
}
.lp-pv-proof-list li { margin-bottom: 6px; }
.lp-pv-proof-panel {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--lp-pv-bg);
  border-radius: 14px;
  border: 1px solid rgba(23,18,12,0.07);
}
.lp-pv-proof-panel-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lp-pv-primary);
  margin: 0 0 6px;
}
.lp-pv-proof-panel-text {
  font-size: 13px;
  color: rgba(23,18,12,0.6);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   FAQ — two-column grid
   ============================================================ */
.lp-pv-faq { background: var(--lp-pv-bg); }
.lp-pv-faq-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}
.lp-pv-faq-item {
  padding: 20px 24px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
}
.lp-pv-faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-pv-dark);
  margin: 0 0 8px;
  line-height: 1.4;
}
.lp-pv-faq-a {
  font-size: 13px;
  color: rgba(23,18,12,0.6);
  margin: 0;
  line-height: 1.65;
}

/* ============================================================
   Final CTA — dark bg with dot pattern
   ============================================================ */
.lp-pv-final-cta {
  background: var(--lp-pv-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.lp-pv-cta-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.lp-pv-final-title {
  font-family: var(--lp-pv-font-head);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
  position: relative;
}
.lp-pv-final-body {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 36px;
  line-height: 1.65;
  position: relative;
}
.lp-pv-final-trust {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin: 16px 0 0;
  letter-spacing: 0.02em;
  position: relative;
}
.lp-pv-final-cta .lp-pv-btn-primary {
  background: var(--lp-pv-primary);
  position: relative;
}
.lp-pv-final-cta .lp-pv-container { position: relative; }

/* ============================================================
   Generic fallback
   ============================================================ */
.lp-pv-generic {
  background: rgba(245,158,11,0.03);
  border-top: 1px dashed rgba(245,158,11,0.25);
  border-bottom: 1px dashed rgba(245,158,11,0.25);
}

/* ============================================================
   Section card — updated elements
   ============================================================ */
.lsc-objective {
  font-size: 11px;
  color: var(--text-soft);
  margin: 0 0 10px;
  line-height: 1.5;
  font-style: italic;
}
.lsc-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.lsc-btn-edit {
  flex: 1;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.lsc-btn-edit:hover { background: rgba(0,0,0,0.04); }
.lsc-btn-regen {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-soft);
  transition: background 0.15s;
}
.lsc-btn-regen:hover { background: rgba(0,0,0,0.04); }
.lsc-visual-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  padding: 8px 10px;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.lsc-visual-icon {
  font-size: 14px;
  color: var(--text-soft);
  flex-shrink: 0;
  margin-top: 1px;
}
.lsc-visual-desc {
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.4;
  flex: 1;
}
.lsc-visual-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(0,0,0,0.06);
  color: var(--text-soft);
  flex-shrink: 0;
  white-space: nowrap;
}
.lsc-visual-tag-real {
  background: rgba(245,158,11,0.12);
  color: #92400e;
}
.lsc-warnings { margin: 8px 0 0; }
.lsc-warn-item {
  font-size: 11px;
  color: #92400e;
  margin: 4px 0;
  padding: 4px 8px;
  background: rgba(245,158,11,0.07);
  border-radius: 6px;
}

/* ============================================================
   Action button modifiers
   ============================================================ */
.lp-act-secondary {
  font-size: 13px !important;
  padding: 7px 14px !important;
}
.lp-act-danger {
  color: #b91c1c !important;
  border-color: rgba(185,28,28,0.25) !important;
}
.lp-act-danger:hover { background: rgba(185,28,28,0.05) !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .lp-pv-container  { padding: 0 20px; }
  .lp-pv-section    { padding: 48px 0; }
  .lp-pv-hero       { padding: 0 0 56px; }
  .lp-pv-reframe    { padding: 56px 0; }
  .lp-pv-final-cta  { padding: 56px 0; }
  .lp-pv-hero-inner { grid-template-columns: 1fr; }
  .lp-pv-hero-visual { display: none; }
  .lp-pv-proof-inner { grid-template-columns: 1fr; }
  .lp-pv-proof-visual { display: none; }
  .lp-pv-timeline   { grid-template-columns: 1fr; }
  .lp-pv-tl-line    { display: none; }
  .lp-pv-diff-grid  { grid-template-columns: 1fr; }
  .lp-pv-service-grid { grid-template-columns: 1fr; }
  .lp-pv-faq-grid   { grid-template-columns: 1fr; }
  .lp-pv-visual-block,
  .lp-pv-visual-ph  { min-height: 140px; }
  .lp-pv-btn-primary.lp-pv-btn-lg { width: 100%; }
  .lp-toolbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .lp-pv-h2 { font-size: 22px; }
  .lp-pv-hero-title { font-size: 28px; }
  .lp-pv-chips { gap: 8px; }
  .lp-pv-chip { padding: 8px 14px; font-size: 13px; }
}

/* ============================================================
   Trust Bar
   ============================================================ */
.lp-pv-trust-bar.lp-pv-section { padding: 14px 0; }
.lp-pv-tb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.lp-pv-tb-item {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}
.lp-pv-tb-sep {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  line-height: 1;
}

/* ============================================================
   BCL / Video de bienvenida
   ============================================================ */
.lp-pv-bcl-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.lp-pv-bcl-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--lp-pv-dark);
  border-radius: calc(var(--lp-pv-radius) * 0.8);
  overflow: hidden;
}
.lp-pv-bcl-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-pv-bcl-ph-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.lp-pv-bcl-ph-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
}
.lp-pv-bcl-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255,255,255,0.8);
  margin: 0 auto 14px;
}
.lp-pv-bcl-ph-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin: 0 0 6px;
}
.lp-pv-bcl-ph-status {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0 0 4px;
  line-height: 1.4;
  font-style: italic;
}
.lp-pv-bcl-ph-duration {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin: 4px 0 12px;
}
.lp-pv-bcl-microcopy {
  font-size: 11px;
  color: rgba(23,18,12,0.4);
  margin: 12px 0 0;
  letter-spacing: 0.02em;
}
.lp-pv-bcl-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   Fit — Para quién es
   ============================================================ */
.lp-pv-fit-list {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}
.lp-pv-fit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--lp-pv-bg);
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.05);
}
.lp-pv-fit-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lp-pv-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.lp-pv-fit-text {
  font-size: 15px;
  color: var(--lp-pv-dark);
  margin: 2px 0 0;
  line-height: 1.5;
}

/* ============================================================
   First Consultation — Qué se evalúa
   ============================================================ */
.lp-pv-fc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.lp-pv-fc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
}
.lp-pv-fc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-pv-primary);
  flex-shrink: 0;
}
.lp-pv-fc-text {
  font-size: 14px;
  color: var(--lp-pv-dark);
  line-height: 1.4;
}

/* ============================================================
   Contact Flow — Qué pasa después
   ============================================================ */
.lp-pv-cf-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0;
  margin-top: 40px;
  position: relative;
}
.lp-pv-cf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px 32px;
  position: relative;
}
.lp-pv-cf-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lp-pv-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.lp-pv-cf-connector {
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 1px;
  background: rgba(23,18,12,0.1);
  z-index: 0;
}
.lp-pv-cf-text {
  font-size: 13px;
  color: rgba(23,18,12,0.65);
  line-height: 1.5;
  max-width: 130px;
}

/* ============================================================
   Friction Reducer
   ============================================================ */
.lp-pv-friction-inner {
  padding: 40px 48px;
  background: var(--lp-pv-bg);
  border-radius: 20px;
  border-left: 4px solid var(--lp-pv-primary);
  position: relative;
}
.lp-pv-friction-accent { display: none; }
.lp-pv-friction-title {
  font-family: var(--lp-pv-font-head);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--lp-pv-dark);
  margin: 0 0 16px;
  line-height: 1.3;
  font-style: italic;
  quotes: none;
}
.lp-pv-friction-body {
  font-size: 16px;
  color: rgba(23,18,12,0.65);
  margin: 0;
  line-height: 1.7;
}

/* ============================================================
   Responsive — new sections
   ============================================================ */
@media (max-width: 768px) {
  .lp-pv-bcl-inner     { grid-template-columns: 1fr; }
  .lp-pv-cf-steps      { grid-template-columns: 1fr; }
  .lp-pv-cf-connector  { display: none; }
  .lp-pv-fc-grid       { grid-template-columns: 1fr; }
  .lp-pv-friction-inner{ padding: 28px 24px; }
  .lp-pv-cases-grid    { grid-template-columns: 1fr; }
}

/* ============================================================
   VSL — Video Sales Letter (main conversion video)
   ============================================================ */
.lp-pv-vsl-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--lp-pv-dark);
  border-radius: calc(var(--lp-pv-radius) * 0.8);
  overflow: hidden;
  margin-top: 32px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.lp-pv-vsl-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-pv-vsl-ph-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.lp-pv-vsl-ph-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px;
}
.lp-pv-vsl-play {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,0.75);
  margin: 0 auto 18px;
}
.lp-pv-vsl-ph-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35);
  margin: 0 0 8px;
}
.lp-pv-vsl-ph-status {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 6px;
  line-height: 1.4;
  font-style: italic;
}
.lp-pv-vsl-ph-duration {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  margin: 4px 0 14px;
}
.lp-pv-vsl-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lp-pv-vsl-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-top: 28px;
}
.lp-pv-vsl-microcopy {
  font-size: 11px;
  color: rgba(23,18,12,0.4);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ============================================================
   Clinical Cases
   ============================================================ */
.lp-pv-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.lp-pv-case-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--lp-pv-radius);
  overflow: hidden;
}
.lp-pv-case-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.lp-pv-case-img-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(23,18,12,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: rgba(23,18,12,0.2);
}
.lp-pv-case-body {
  padding: 20px 22px;
}
.lp-pv-case-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-pv-dark);
  margin: 0 0 10px;
}
.lp-pv-case-row {
  font-size: 13px;
  color: rgba(23,18,12,0.65);
  margin: 0 0 6px;
  line-height: 1.5;
}
.lp-pv-case-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lp-pv-primary);
  margin-right: 6px;
}
.lp-pv-cases-placeholder {
  margin-top: 36px;
  padding: 56px 32px;
  background: rgba(23,18,12,0.04);
  border: 1.5px dashed rgba(23,18,12,0.12);
  border-radius: var(--lp-pv-radius);
  text-align: center;
}
.lp-pv-cases-ph-icon {
  font-size: 40px;
  color: rgba(23,18,12,0.15);
  margin-bottom: 16px;
}
.lp-pv-cases-ph-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--lp-pv-dark);
  margin: 0 0 8px;
}
.lp-pv-cases-ph-body {
  font-size: 14px;
  color: rgba(23,18,12,0.5);
  max-width: 500px;
  margin: 0 auto 16px;
  line-height: 1.6;
}
