/*
  Área do Cliente — Sideral Sync × Vale Verde Assessoria
  Identidade: Premium Healthtech · Cannabis Medicinal
  Versão 1.0 · Maio 2026
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════
   DESIGN TOKENS — Vale Verde Identity
═══════════════════════════════════════════════ */
:root {
  --forest:          #1B4332;
  --green-deep:      #2D6A4F;
  --green-mid:       #40916C;
  --green-bright:    #52B788;
  --green-light:     #95D5B2;
  --green-pale:      #D8F3DC;
  --green-wash:      #F2F7F4;

  --bg:              #F5F9F6;
  --bg-alt:          #EDF2EE;
  --bg-card:         #FFFFFF;

  --text-primary:    #1B2A1E;
  --text-secondary:  #3D5747;
  --text-muted:      #6B8F7A;
  --text-light:      #94B0A0;

  --border:          rgba(45,106,79,0.12);
  --border-bright:   rgba(45,106,79,0.28);
  --border-card:     rgba(45,106,79,0.08);

  --gold:            #C4A35A;
  --gold-light:      #E8D48B;

  --red:             #D64045;
  --red-bg:          rgba(214,64,69,0.06);
  --red-border:      rgba(214,64,69,0.20);
  --amber:           #D97706;
  --amber-bg:        rgba(217,119,6,0.06);
  --amber-border:    rgba(217,119,6,0.20);
  --success:         #2D6A4F;
  --success-bg:      rgba(45,106,79,0.06);
  --success-border:  rgba(45,106,79,0.22);

  --sidebar-width:   264px;
  --sidebar-bg:      #1B4332;
  --sidebar-border:  rgba(255,255,255,0.07);
  --sidebar-text:    rgba(216,243,220,0.85);
  --sidebar-active:  #52B788;
  --sidebar-hover:   rgba(82,183,136,0.12);

  --topbar-height:   64px;
  --topbar-bg:       #FFFFFF;

  --shadow-sm:       0 1px 4px rgba(27,67,50,0.08);
  --shadow-md:       0 4px 20px rgba(27,67,50,0.10);
  --shadow-lg:       0 12px 48px rgba(27,67,50,0.14);
  --shadow-card:     0 2px 12px rgba(27,67,50,0.06);

  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       18px;
  --radius-xl:       24px;

  --trans-fast:      0.15s ease;
  --trans-base:      0.25s ease;
  --trans-slow:      0.40s ease;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  font-weight: 600;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Offset anchor targets so fixed topbar doesn't overlap */
[id] { scroll-margin-top: calc(var(--topbar-height) + 16px); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.app-layout { display: flex; min-height: 100vh; width: 100%; overflow-x: hidden; }

/* ── SIDEBAR ─────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--trans-base);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(82,183,136,0.3) transparent;
}

.sidebar-brand {
  padding: 28px 22px 22px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.sidebar-brand-row img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(1.3) saturate(0.8);
  border-radius: 4px;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--green-pale);
  letter-spacing: 0.3px;
}

.brand-sub {
  font-size: 10px;
  color: var(--sidebar-text);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.6;
}

.sidebar-client {
  padding: 14px 22px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.client-info .client-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-pale);
  display: block;
  line-height: 1.3;
}

.client-info .client-role {
  font-size: 11px;
  color: var(--sidebar-text);
  opacity: 0.6;
}

.sidebar-nav {
  flex: 1;
  padding: 18px 14px;
}

.nav-section-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sidebar-text);
  opacity: 0.4;
  padding: 14px 8px 6px;
  display: block;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sidebar-text);
  transition: all var(--trans-fast);
  position: relative;
}

.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.75; }

.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--green-pale);
}

.nav-item:hover svg { opacity: 1; }

.nav-item.active {
  background: rgba(82,183,136,0.16);
  color: var(--sidebar-active);
}

.nav-item.active svg { opacity: 1; }

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 55%;
  background: var(--sidebar-active);
  border-radius: 0 2px 2px 0;
}

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--green-mid);
  color: white;
  font-weight: 700;
}

.sidebar-footer {
  padding: 14px 22px 20px;
  border-top: 1px solid var(--sidebar-border);
}

.sidebar-date {
  font-size: 10px;
  color: var(--sidebar-text);
  opacity: 0.45;
  margin-bottom: 10px;
  display: block;
}

.btn-logout {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--sidebar-text);
  font-size: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  transition: all var(--trans-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}

.btn-logout svg { width: 16px; height: 16px; }

.btn-logout:hover {
  background: rgba(255,255,255,0.07);
  color: var(--green-pale);
  opacity: 1;
}

/* ── MAIN CONTENT ────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── TOPBAR ──────────────────────────────────── */
.topbar {
  height: var(--topbar-height);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.topbar-toggle {
  display: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background var(--trans-fast);
}

.topbar-toggle:hover { background: var(--bg-alt); }
.topbar-toggle svg { width: 22px; height: 22px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; flex: 1; }

.breadcrumb-item {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb-item.current { color: var(--text-primary); }

.breadcrumb-sep { color: var(--text-light); font-size: 14px; margin: 0 2px; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.topbar-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--green-wash);
  border: 1px solid var(--border);
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
}

.topbar-badge span {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-deep);
}

.topbar-date {
  font-size: 12px;
  color: var(--text-muted);
  display: none;
}

/* ── PAGE CONTENT ────────────────────────────── */
.page-content {
  flex: 1;
  padding: 44px 44px 60px;
  max-width: 1180px;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

/* ── SIDEBAR OVERLAY ─────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 90;
  backdrop-filter: blur(2px);
}

/* ═══════════════════════════════════════════════
   PAGE HEADERS
═══════════════════════════════════════════════ */
.page-header { margin-bottom: 40px; }

.page-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.page-header h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-header h1 em { font-style: italic; color: var(--green-deep); }

.page-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

.section-header { margin-bottom: 28px; }

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.section-header h2 em { font-style: italic; color: var(--green-deep); }
.section-header p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.section { margin-bottom: 56px; }

.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* ═══════════════════════════════════════════════
   HERO BLOCK
═══════════════════════════════════════════════ */
.hero-block {
  background: linear-gradient(135deg, var(--forest) 0%, var(--green-deep) 55%, #3a8f5e 100%);
  border-radius: var(--radius-xl);
  padding: 56px 52px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-block::before {
  content: '';
  position: absolute;
  top: -60%;  right: -8%;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,183,136,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-block::after {
  content: '';
  position: absolute;
  bottom: -50%; left: 35%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,183,136,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}

.hero-block h1 {
  font-size: clamp(28px, 3.5vw, 50px);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-block h1 em { font-style: italic; color: var(--green-light); }

.hero-block > p {
  font-size: 15px;
  color: rgba(216,243,220,0.85);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-meta { display: flex; gap: 36px; flex-wrap: wrap; }

.meta-item { display: flex; flex-direction: column; gap: 4px; }

.meta-value {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.meta-label {
  font-size: 11px;
  color: rgba(216,243,220,0.6);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   KPI GRID
═══════════════════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--trans-base);
}

.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.kpi-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green-bright);
  transform: scaleX(0);
  transition: transform var(--trans-slow);
}

.kpi-card:hover::after { transform: scaleX(1); }

.kpi-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.kpi-value {
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: block;
}

.kpi-value.green { color: var(--green-deep); }
.kpi-value.amber { color: var(--amber); }
.kpi-value.red { color: var(--red); }
.kpi-value.gold { color: var(--gold); }

.kpi-sub { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ═══════════════════════════════════════════════
   NAV CARDS (Hub)
═══════════════════════════════════════════════ */
.nav-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
  display: block;
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-deep), var(--green-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans-base);
}

.nav-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border); transform: translateY(-4px); }
.nav-card:hover::before { transform: scaleX(1); }

.nav-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--green-wash);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
  transition: background var(--trans-fast);
}

.nav-card:hover .nav-card-icon { background: var(--green-pale); }

.nav-card h3 {
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.nav-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
}

.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-deep);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--trans-fast);
}

.nav-card:hover .card-link { gap: 10px; }

/* ═══════════════════════════════════════════════
   SCORE CARDS
═══════════════════════════════════════════════ */
.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--trans-base);
  overflow: hidden;
  position: relative;
}

.score-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.score-num {
  font-family: 'Poppins', sans-serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.score-num.green { color: var(--green-mid); }
.score-num.amber { color: var(--amber); }
.score-num.red { color: var(--red); }

.score-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.5px; line-height: 1.5; }

/* ═══════════════════════════════════════════════
   VERDICT BLOCK
═══════════════════════════════════════════════ */
.verdict-block {
  background: linear-gradient(135deg, var(--forest) 0%, var(--green-deep) 100%);
  border-radius: var(--radius-xl);
  padding: 56px 52px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.verdict-block::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,183,136,0.14) 0%, transparent 65%);
  pointer-events: none;
}

.verdict-eyebrow {
  font-size: 10px;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
  display: block;
  margin-bottom: 22px;
  opacity: 0.9;
}

.verdict-block blockquote {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 500;
  font-style: italic;
  color: white;
  line-height: 1.35;
  margin: 0 auto 20px;
  max-width: 680px;
}

.verdict-block blockquote em { color: var(--green-light); }

.verdict-block > p {
  font-size: 14px;
  color: rgba(216,243,220,0.75);
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.8;
}

.verdict-keyword {
  display: inline-block;
  padding: 8px 28px;
  border: 1px solid rgba(82,183,136,0.35);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
  background: rgba(82,183,136,0.08);
}

/* ═══════════════════════════════════════════════
   DIAGNOSTIC ENTRIES
═══════════════════════════════════════════════ */
.diag-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }

.diag-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--border);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 30px 28px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  align-items: start;
  box-shadow: var(--shadow-card);
  transition: all var(--trans-base);
}

.diag-entry:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }

.diag-entry.ruido { border-left-color: var(--red); }
.diag-entry.forca { border-left-color: var(--green-bright); }
.diag-entry.alerta { border-left-color: var(--amber); }

.diag-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--green-wash);
}

.diag-entry.ruido .diag-icon { background: var(--red-bg); border-color: var(--red-border); }
.diag-entry.forca .diag-icon { background: var(--success-bg); border-color: var(--success-border); }
.diag-entry.alerta .diag-icon { background: var(--amber-bg); border-color: var(--amber-border); }

.diag-content h3 { font-size: 20px; color: var(--text-primary); margin-bottom: 4px; }
.diag-entry.ruido .diag-content h3 { color: var(--red); }
.diag-entry.forca .diag-content h3 { color: var(--success); }
.diag-entry.alerta .diag-content h3 { color: var(--amber); }

.diag-tag {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.diag-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 12px;
}

.diag-impact {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

.diag-impact strong { color: var(--text-secondary); font-style: normal; font-weight: 600; }

/* ═══════════════════════════════════════════════
   PRIORITY CARDS
═══════════════════════════════════════════════ */
.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.priority-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--trans-base);
}

.priority-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.p-num {
  font-family: 'Poppins', sans-serif;
  font-size: 64px;
  color: var(--green-pale);
  line-height: 1;
  position: absolute;
  top: 10px; right: 14px;
  font-weight: 700;
  pointer-events: none;
}

.p-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.priority-card h3 { font-size: 18px; color: var(--text-primary); margin-bottom: 10px; }

.priority-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.impact-tag {
  font-size: 12px;
  padding: 7px 12px;
  background: var(--green-wash);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--green-deep);
  font-weight: 500;
  display: block;
}

/* ═══════════════════════════════════════════════
   CHART CARDS
═══════════════════════════════════════════════ */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  overflow: hidden;
}

.chart-title { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.chart-subtitle { font-size: 12px; color: var(--text-muted); margin-bottom: 24px; display: block; }
.chart-card canvas { max-height: 260px; max-width: 100%; }

/* ═══════════════════════════════════════════════
   TWO COLUMN
═══════════════════════════════════════════════ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }

.col-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.col-card h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 14px; }

.col-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.78; margin-bottom: 14px; }

/* Large italic quote inside col-card (used in diagnostico.html teses) */
.col-quote {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  color: var(--green-deep);
  line-height: 1.4;
  margin-bottom: 14px;
}

.col-card ul { list-style: none; }

.col-card ul li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.col-card ul li:last-child { border-bottom: none; }

.col-card ul li::before {
  content: '◆';
  position: absolute;
  left: 0; top: 11px;
  color: var(--green-bright);
  font-size: 7px;
}

.col-card ul li strong { color: var(--text-primary); font-weight: 600; }

/* ═══════════════════════════════════════════════
   FUNNEL VISUAL
═══════════════════════════════════════════════ */
.funnel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.funnel-step {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 24px 14px;
  text-align: center;
  position: relative;
  transition: all var(--trans-base);
}

.funnel-step:hover { background: var(--green-wash); z-index: 1; }

.funnel-n {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
  font-weight: 700;
}

.funnel-icon { font-size: 20px; margin-bottom: 8px; display: block; }

.funnel-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-deep);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.funnel-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

.funnel-arrow {
  position: absolute;
  right: -9px; top: 50%;
  transform: translateY(-50%);
  color: var(--green-mid);
  font-size: 16px;
  z-index: 2;
  background: var(--bg);
  width: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════════
   POSITIONING MAP
═══════════════════════════════════════════════ */
.positioning-map {
  position: relative;
  height: 290px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green-wash) 0%, #fff 100%);
  overflow: hidden;
}

.map-axis-h, .map-axis-v { position: absolute; background: var(--border-bright); }
.map-axis-h { left: 5%; right: 5%; top: 50%; height: 1px; }
.map-axis-v { top: 5%; bottom: 5%; left: 50%; width: 1px; }

.map-label {
  position: absolute;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.map-label.top    { top: 10px; left: 50%; transform: translateX(-50%); }
.map-label.bottom { bottom: 10px; left: 50%; transform: translateX(-50%); }
.map-label.left   { left: 10px; top: 50%; transform: translateY(-50%); }
.map-label.right  { right: 10px; top: 50%; transform: translateY(-50%); }

.map-dot {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  cursor: pointer;
  transition: transform var(--trans-fast);
  box-shadow: var(--shadow-sm);
}

.map-dot:hover { transform: translate(-50%,-50%) scale(1.4); }

.map-dot-label {
  position: absolute;
  font-size: 11px;
  white-space: nowrap;
  transform: translateX(-50%);
  font-weight: 600;
  margin-top: 5px;
}

.vv-zone {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed var(--green-bright);
  background: rgba(82,183,136,0.09);
  transform: translate(-50%,-50%);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}

.vv-zone span { font-size: 10px; color: var(--green-deep); font-weight: 600; line-height: 1.3; }

/* ═══════════════════════════════════════════════
   BIO COMPARE
═══════════════════════════════════════════════ */
.bio-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }

.bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.bio-card.antes { border-left: 4px solid var(--red); }
.bio-card.depois { border-left: 4px solid var(--green-bright); }

.bio-tag {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}

.bio-card.antes .bio-tag { color: var(--red); }
.bio-card.depois .bio-tag { color: var(--success); }

.bio-text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.7;
  padding: 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid;
}

.bio-card.antes .bio-text { background: var(--red-bg); border-color: var(--red-border); }
.bio-card.depois .bio-text { background: var(--success-bg); border-color: var(--success-border); }

.bio-note { font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.bio-note strong { color: var(--text-secondary); font-weight: 600; }

/* ═══════════════════════════════════════════════
   BENCHMARK TABLE
═══════════════════════════════════════════════ */
.bench-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.bench-table th {
  text-align: left;
  padding: 13px 18px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.bench-table td {
  padding: 13px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}

.bench-table tr:last-child td { border-bottom: none; }
.bench-table tr:hover td { background: var(--green-wash); }
.bench-table .nome { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.vv-win { color: var(--green-mid); font-weight: 500; }

.tag-threat {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid;
  font-weight: 700;
}

.tag-alta { color: var(--red); border-color: var(--red-border); background: var(--red-bg); }
.tag-media { color: var(--amber); border-color: var(--amber-border); background: var(--amber-bg); }
.tag-baixa { color: var(--text-muted); border-color: var(--border); background: var(--bg-alt); }

/* ═══════════════════════════════════════════════
   SERVICE CARDS (Proposta)
═══════════════════════════════════════════════ */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: all var(--trans-base);
  display: flex;
  flex-direction: column;
}

.service-card:hover { box-shadow: var(--shadow-md); border-color: var(--border); transform: translateY(-3px); }

.service-icon { font-size: 28px; margin-bottom: 14px; display: block; }

.service-card h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }

.service-card > p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; flex: 1; margin-bottom: 18px; }

.service-price {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--green-deep);
  display: block;
  line-height: 1;
}

.service-price-label { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; margin-top: 2px; display: block; }

/* ═══════════════════════════════════════════════
   PACKAGE CARDS
═══════════════════════════════════════════════ */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }

.package-card {
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px 28px 32px;
  text-align: center;
  position: relative;
  transition: all var(--trans-base);
}

.package-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--border); }

.package-card.featured {
  border-color: var(--green-bright);
  background: linear-gradient(160deg, var(--forest) 0%, var(--green-deep) 100%);
  color: white;
}

.package-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--green-bright);
  color: white;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.package-name {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 14px;
}

.package-card.featured .package-name { color: var(--green-light); }

.package-price {
  font-family: 'Poppins', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}

.package-card.featured .package-price { color: white; }

.package-price-note { font-size: 12px; color: var(--text-muted); margin-bottom: 28px; display: block; }
.package-card.featured .package-price-note { color: rgba(216,243,220,0.65); }

.package-features { list-style: none; text-align: left; margin-bottom: 28px; }

.package-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 7px 0 7px 22px;
  position: relative;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.package-features li:last-child { border-bottom: none; }

.package-card.featured .package-features li { color: rgba(216,243,220,0.85); border-bottom-color: rgba(255,255,255,0.08); }

.package-features li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 8px;
  color: var(--green-mid);
  font-weight: 700;
  font-size: 12px;
}

.package-card.featured .package-features li::before { color: var(--green-light); }

/* ═══════════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════════ */
.timeline { position: relative; margin-bottom: 40px; padding-left: 12px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 24px; top: 25px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-bright) 0%, var(--green-pale) 100%);
}

.timeline-item { display: flex; gap: 28px; margin-bottom: 28px; position: relative; }

.timeline-dot {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--green-bright);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative; z-index: 1;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-base);
}

.timeline-dot.completed { background: var(--green-bright); }
.timeline-dot.upcoming { border-color: var(--border); }

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  flex: 1;
  box-shadow: var(--shadow-card);
  margin-top: 4px;
  transition: all var(--trans-base);
}

.timeline-content:hover { box-shadow: var(--shadow-md); }

.timeline-phase {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.timeline-content h3 { font-size: 20px; color: var(--text-primary); margin-bottom: 8px; }

.timeline-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }

.timeline-tasks { display: flex; flex-wrap: wrap; gap: 7px; }

.task-tag {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--green-wash);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--green-deep);
  font-weight: 500;
}

.timeline-milestone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: linear-gradient(90deg, var(--forest), var(--green-deep));
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  justify-content: space-around;
  gap: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

.stat-item { text-align: center; flex: 1; min-width: 100px; }

.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-value.green { color: var(--green-mid); }
.stat-value.gold { color: var(--gold); }

.stat-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); line-height: 1.4; }

.stat-sep { width: 1px; background: var(--border); align-self: stretch; }

/* ═══════════════════════════════════════════════
   NEXT STEPS
═══════════════════════════════════════════════ */
.next-steps {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
}

.next-steps h3 { font-size: 22px; font-weight: 600; color: var(--text-primary); margin-bottom: 20px; }

.step-list { display: flex; flex-direction: column; gap: 10px; }

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
}

.step-item:hover { background: var(--green-wash); border-color: var(--border-bright); }

.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-deep);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}

.step-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.step-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--trans-fast);
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--green-deep); color: white; }
.btn-primary:hover { background: var(--forest); box-shadow: 0 4px 14px rgba(27,67,50,0.32); transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--green-deep); border: 1.5px solid var(--green-deep); }
.btn-secondary:hover { background: var(--green-wash); }

.btn-light { background: rgba(255,255,255,0.14); color: white; border: 1px solid rgba(255,255,255,0.22); }
.btn-light:hover { background: rgba(255,255,255,0.22); }

/* ═══════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════ */
.badge {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.badge-green { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-amber { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.badge-red { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.badge-gold { background: rgba(196,163,90,0.08); color: var(--gold); border: 1px solid rgba(196,163,90,0.25); }

/* ═══════════════════════════════════════════════
   PROGRESS BARS
═══════════════════════════════════════════════ */
.progress-bar {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-deep), var(--green-bright));
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ═══════════════════════════════════════════════
   CONTENT PILLARS
═══════════════════════════════════════════════ */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  transition: all var(--trans-base);
  box-shadow: var(--shadow-card);
}

.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border); }

.pillar-icon { font-size: 26px; margin-bottom: 14px; display: block; }

.pillar-name {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.pillar-items { list-style: none; text-align: left; }

.pillar-items li {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 5px 0 5px 16px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.pillar-items li:last-child { border-bottom: none; }

.pillar-items li::before {
  content: '◆';
  position: absolute; left: 0; top: 8px;
  color: var(--green-bright);
  font-size: 7px;
}

.pillar-items li strong { color: var(--green-deep); font-weight: 600; }

/* ═══════════════════════════════════════════════
   WHY SIDERAL SECTION
═══════════════════════════════════════════════ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  transition: all var(--trans-base);
}

.why-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.why-icon { font-size: 30px; margin-bottom: 14px; display: block; }
.why-card h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in     { animation: fadeIn 0.4s ease both; }
.fade-in-up  { animation: fadeInUp 0.5s ease both; }

/* ═══════════════════════════════════════════════
   PHASE STRIP (Cronograma)
═══════════════════════════════════════════════ */
.phase-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 40px;
}

/* ═══════════════════════════════════════════════
   SVG ICON SIZING — component slots
═══════════════════════════════════════════════ */
.diag-icon svg         { width: 26px; height: 26px; flex-shrink: 0; }
.pillar-icon           { display: flex; align-items: center; justify-content: center; }
.pillar-icon svg       { width: 28px; height: 28px; stroke: var(--green-mid); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.funnel-icon           { display: block; text-align: center; }
.funnel-icon svg       { width: 22px; height: 22px; display: inline-block; }
.nav-card-icon svg     { width: 28px; height: 28px; }
.gallery-section-icon  { display: flex; align-items: center; flex-shrink: 0; }
.gallery-section-icon svg { width: 22px; height: 22px; stroke: var(--green-mid); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.timeline-dot svg      { width: 22px; height: 22px; }

/* Fase stats grid (Cronograma Fase 4) */
.fase-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile-first comprehensive
═══════════════════════════════════════════════ */

/* ─── 1100px ─── */
@media (max-width: 1100px) {
  .score-grid     { grid-template-columns: repeat(2, 1fr); }
  .nav-cards-grid { grid-template-columns: 1fr 1fr; }
  .package-grid   { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .pillar-grid    { grid-template-columns: repeat(2, 1fr); }
  .why-grid       { grid-template-columns: 1fr 1fr; }
}

/* ─── 900px: sidebar collapses ─── */
@media (max-width: 900px) {
  .sidebar             { transform: translateX(-100%); z-index: 200; }
  .sidebar.open        { transform: translateX(0); }
  .sidebar-overlay.visible { display: block; }
  .main-content        { margin-left: 0; }
  .topbar-toggle       { display: flex; }
  .topbar              { padding: 0 20px; }

  .page-content        { padding: 28px 24px 52px; }

  .hero-block          { padding: 40px 32px 36px; }
  .hero-block h1       { font-size: clamp(26px, 5vw, 40px); }
  .hero-block > p      { margin-bottom: 28px; }
  .hero-meta           { gap: 24px; }

  .verdict-block       { padding: 44px 32px; }

  .chart-grid          { grid-template-columns: 1fr; }
  .service-grid        { grid-template-columns: 1fr; }
  .two-col             { grid-template-columns: 1fr; }
  .bio-compare         { grid-template-columns: 1fr; }
  .priority-grid       { grid-template-columns: 1fr 1fr; }
  .diag-entry          { display: flex; flex-direction: row; align-items: flex-start; gap: 16px; padding: 22px 20px; }
  .diag-icon           { width: 48px; height: 48px; flex-shrink: 0; }
  .diag-content        { flex: 1; min-width: 0; }
  .bio-text            { overflow-wrap: break-word; word-break: break-word; }

  .funnel-grid         { grid-template-columns: repeat(2, 1fr); }
  .funnel-arrow        { display: none; }

  .chart-card canvas   { max-height: 220px; }
  .phase-strip         { grid-template-columns: repeat(3, 1fr); }
  .section-header p    { font-size: 13px; }

  /* ── Long-text overflow fixes ── */
  .verdict-keyword     { display: block; white-space: normal; word-break: break-word;
                         max-width: 100%; text-align: center; letter-spacing: 1px;
                         padding: 10px 16px; }
  .diag-body           { overflow-wrap: break-word; }
  .diag-impact         { overflow-wrap: break-word; }
  .bench-table td      { word-break: break-word; }
  .bench-table         { min-width: 480px; }
  /* Ensure all grid/flex children can shrink */
  .score-grid, .chart-grid, .diag-grid,
  .two-col, .bio-compare, .priority-grid,
  .pillar-grid          { min-width: 0; }
}

/* ─── 768px: tablet portrait ─── */
@media (max-width: 768px) {
  .page-content        { padding: 24px 20px 48px; }

  .page-header h1      { font-size: clamp(24px, 5.5vw, 34px); }
  .page-subtitle       { font-size: 14px; }

  .hero-block          { padding: 32px 24px 28px; border-radius: var(--radius-lg); }
  .hero-block h1       { font-size: clamp(24px, 5vw, 34px); }
  .hero-block > p      { font-size: 14px; max-width: 100%; }
  .hero-eyebrow        { font-size: 10px; }
  .hero-meta           { gap: 20px; }
  .meta-value          { font-size: 26px; }
  .meta-label          { font-size: 10px; }

  .kpi-card            { padding: 20px 18px; }
  .kpi-value           { font-size: 34px; }

  .verdict-block       { padding: 36px 24px; border-radius: var(--radius-lg); }

  .score-grid          { grid-template-columns: repeat(2, 1fr); }
  .score-num           { font-size: 44px; }

  .timeline::before    { left: 20px; }
  .timeline-item       { gap: 16px; }
  .timeline-dot        { width: 40px; height: 40px; font-size: 16px; }
  .timeline-content    { padding: 18px 20px; }
  .timeline-content h3 { font-size: 17px; }

  .priority-grid       { grid-template-columns: 1fr; }
  .phase-strip         { grid-template-columns: repeat(2, 1fr); }
  .positioning-map     { height: 220px; }
  .pillar-grid         { grid-template-columns: 1fr 1fr; }
  .why-grid            { grid-template-columns: 1fr; }
  .package-grid        { max-width: 420px; }
}

/* ─── 640px: large phones ─── */
@media (max-width: 640px) {
  .page-content        { padding: 20px 16px 44px; }

  .kpi-grid            { grid-template-columns: 1fr 1fr; }  /* 3→2 */
  .nav-cards-grid      { grid-template-columns: 1fr; }
  .nav-card            { padding: 28px 22px; }

  .hero-block          { padding: 28px 20px 24px; margin-bottom: 24px; }
  .hero-block h1       { font-size: clamp(22px, 6vw, 30px); }
  .hero-meta           { gap: 16px; }
  .meta-value          { font-size: 22px; }

  .stats-bar           { flex-direction: column; padding: 20px; gap: 16px; }
  .stat-sep            { display: none; }
  .stat-item           { min-width: unset; }
  .stat-value          { font-size: 32px; }

  .funnel-grid         { grid-template-columns: 1fr; }

  .chart-card          { padding: 20px; }
  .chart-card canvas   { max-height: 200px; }

  .priority-grid       { grid-template-columns: 1fr; }
  .score-grid          { grid-template-columns: 1fr 1fr; }
  .pillar-grid         { grid-template-columns: 1fr 1fr; }
  .why-grid            { grid-template-columns: 1fr; }

  .col-quote           { font-size: 17px; }
  .diag-content h3     { font-size: 17px; }
  .verdict-keyword     { font-size: 10px; letter-spacing: 0.8px; padding: 8px 12px; }
  .diag-entry          { padding: 20px 16px; gap: 12px; }
  .diag-icon           { width: 44px; height: 44px; }

  .package-grid        { max-width: 100%; }
  .package-card        { padding: 36px 20px 24px; }
  .package-price       { font-size: 44px; }

  .service-card        { padding: 22px 18px; }
  .col-card            { padding: 24px 20px; }

  .timeline-tasks      { gap: 5px; }
  .task-tag            { font-size: 11px; padding: 3px 10px; }

  .phase-strip         { grid-template-columns: repeat(3, minmax(130px, 1fr)); overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .fase-stats          { grid-template-columns: 1fr 1fr; }

  .verdict-block       { padding: 32px 20px; }
  .section-header h2   { font-size: 22px; }
  .diag-entry          { padding: 18px 16px; gap: 12px; }

  /* ── Overflow protection at 640px ── */
  .section-eyebrow,
  .page-eyebrow        { letter-spacing: 2px; font-size: 10px; white-space: normal; overflow-wrap: break-word; }
  .chart-card          { overflow: hidden; }
  .two-col             { overflow: hidden; }
  .col-card            { min-width: 0; }
  .score-card          { min-width: 0; }
  .diag-content        { overflow-wrap: break-word; word-break: break-word; }
}

/* ─── 480px: small phones ─── */
@media (max-width: 480px) {
  .page-content        { padding: 16px 14px 36px; }

  .kpi-grid            { grid-template-columns: 1fr; }
  .kpi-card            { padding: 18px 16px; }
  .kpi-value           { font-size: 30px; }

  .hero-block          { padding: 24px 16px 20px; border-radius: var(--radius-md); }
  .hero-block h1       { font-size: 22px; }
  .meta-value          { font-size: 20px; }
  .meta-label          { font-size: 9px; letter-spacing: 1px; }

  .score-grid          { grid-template-columns: 1fr; }
  .score-num           { font-size: 42px; }
  .pillar-grid         { grid-template-columns: 1fr; }

  .verdict-block       { border-radius: var(--radius-md); padding: 28px 16px; }
  .verdict-block blockquote { font-size: clamp(18px, 5vw, 26px); }

  .bio-card            { padding: 20px; }
  .bio-text            { font-size: 14px; padding: 14px; }

  .topbar-badge span   { display: none; }
  .breadcrumb-item:not(.current) { display: none; }
  .breadcrumb-sep      { display: none; }

  .btn                 { padding: 11px 18px; font-size: 13px; }

  .timeline::before    { left: 16px; }
  .timeline-dot        { width: 32px; height: 32px; font-size: 13px; }
  .timeline-item       { gap: 12px; }
  .timeline-content    { padding: 16px; }
  .timeline-content h3 { font-size: 16px; }

  .chart-card canvas   { max-height: 180px; }
  .section-header h2   { font-size: 20px; }
  .page-header h1      { font-size: 22px; }
  .positioning-map     { height: 200px; }

  .funnel-step         { padding: 18px 10px; }
  .funnel-n            { font-size: 28px; }

  .priority-card       { padding: 22px 18px; }
  .p-num               { font-size: 48px; }

  .phase-strip         { grid-template-columns: repeat(3, minmax(110px, 1fr)); }

  .nav-card            { padding: 24px 18px; }
  .nav-card-icon       { width: 44px; height: 44px; margin-bottom: 16px; }
  .nav-card h3         { font-size: 18px; }

  .col-quote           { font-size: 15px; line-height: 1.5; }
  .diag-content h3     { font-size: 15px; }
  .diag-entry          { padding: 16px 14px; gap: 10px; }
  .diag-icon           { width: 38px; height: 38px; }
  .diag-icon svg       { width: 18px; height: 18px; }
  .diag-body           { font-size: 13px; line-height: 1.7; }
  .diag-tag            { font-size: 9px; letter-spacing: 1.5px; }
  .verdict-keyword     { font-size: 9px; letter-spacing: 0.4px; padding: 7px 10px; }
  .vv-zone             { width: 68px !important; height: 68px !important; }
  .vv-zone span        { font-size: 9px; }
  .priority-grid       { grid-template-columns: 1fr; }
  .score-grid          { grid-template-columns: 1fr 1fr; }
  .fase-stats          { grid-template-columns: 1fr; }

  /* ── Overflow protection at 480px ── */
  .section-eyebrow,
  .page-eyebrow        { letter-spacing: 1.5px; font-size: 9px; }
  .p-label             { letter-spacing: 1.5px; }
  .diag-tag            { letter-spacing: 1px; }
  .topbar              { padding: 0 16px; }
  .breadcrumb          { overflow: hidden; }
}

/* ─── 375px: iPhone SE / smallest devices ─── */
@media (max-width: 375px) {
  :root                { --topbar-height: 56px; }

  .topbar              { height: 56px; }
  .page-content        { padding: 14px 12px 32px; }

  .hero-block          { padding: 20px 14px 18px; }
  .hero-block h1       { font-size: 20px; }
  .meta-value          { font-size: 18px; }
  .hero-meta           { gap: 12px; }

  .kpi-card            { padding: 16px 14px; }
  .kpi-value           { font-size: 26px; }

  .phase-strip         { grid-template-columns: repeat(3, minmax(100px, 1fr)); }

  .verdict-block       { padding: 24px 14px; }
  .package-price       { font-size: 36px; }
  .stat-value          { font-size: 28px; }

  .bench-table th,
  .bench-table td      { padding: 10px 12px; font-size: 12px; }

  .score-num           { font-size: 36px; }
  .score-label         { font-size: 11px; }
  .score-card          { padding: 18px 14px; }

  .col-quote           { font-size: 14px; }
  .diag-entry          { padding: 14px 12px; gap: 8px; }
  .diag-icon           { width: 32px; height: 32px; }
  .diag-icon svg       { width: 14px; height: 14px; }
  .diag-content h3     { font-size: 13px; }
  .diag-body           { font-size: 12px; }
  .diag-impact         { font-size: 11px; }
  .positioning-map     { height: 180px; }
  .map-label           { font-size: 8px; letter-spacing: 1px; }
  .map-dot-label       { font-size: 9px; }

  .p-num               { font-size: 40px; }
  .priority-card h3    { font-size: 16px; }

  /* ── Overflow protection at 375px ── */
  .section-eyebrow,
  .page-eyebrow        { letter-spacing: 1px; font-size: 9px; }
  .chart-card          { padding: 16px 14px; }
  .topbar              { padding: 0 12px; gap: 10px; }
  .score-card          { padding: 16px 10px; }
}
