/* ============================================================
   Blueprint Code Consulting — Demo Dashboards
   Design system: light, professional, user-friendly per PMI
   ============================================================ */

:root {
  /* Brand BPC */
  --navy:        #0A1628;
  --navy-700:    #1A2A47;
  --navy-500:    #3A4A6A;
  --navy-300:    #8492A8;
  --navy-200:    #BAC4D3;
  --navy-100:    #E5E9F0;
  --navy-50:     #F2F4F8;

  --mint:        #00B896;
  --mint-700:    #008A70;
  --mint-100:    #D7F4EC;

  --gold:        #C5A572;
  --gold-light:  #E8DBC1;

  --amber:       #D97706;
  --amber-100:   #FEF3C7;

  --red:         #DC2626;
  --red-100:     #FEE2E2;

  --bg:          #FBFAF7;
  --card:        #FFFFFF;
  --border:      #ECEEF2;

  --radius-card: 14px;
  --radius-btn:  10px;
  --radius-pill: 999px;

  --shadow-sm:   0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-md:   0 4px 16px rgba(10, 22, 40, 0.06);
  --shadow-lg:   0 12px 32px rgba(10, 22, 40, 0.08);

  --font-sans:   'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display:'Outfit', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--mint-700); }

/* ===== Top bar (di-falco style: dark navy) ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand-logo .c { color: var(--mint); }

.product-name {
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.18);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-name .dot { color: rgba(255,255,255,0.4); margin: 0 8px; }
.product-name .name { color: #fff; }

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

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
}
.user-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(0,184,150,0.2);
  animation: pulse 2s infinite;
}
.user-pill .role { color: rgba(255,255,255,0.5); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.user-pill .name { color: #fff; font-weight: 500; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,184,150,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(0,184,150,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,184,150,0); }
}

/* Topbar buttons sit on dark background */
.topbar .btn {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}
.topbar .btn:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.22); color: #fff; }
.topbar .btn-primary { background: var(--mint); border-color: var(--mint); color: var(--navy); font-weight: 600; }
.topbar .btn-primary:hover { background: #00CFA8; border-color: #00CFA8; color: var(--navy); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn:hover { border-color: var(--navy-200); box-shadow: var(--shadow-sm); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.btn-mint {
  background: var(--mint);
  color: #fff;
  border-color: var(--mint);
}
.btn-mint:hover { background: var(--mint-700); border-color: var(--mint-700); color: #fff; }

.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--navy-50); }

/* ===== Layout ===== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 24px;
  flex-wrap: wrap;
}

.page-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 6px;
}

.page-subtitle {
  color: var(--navy-500);
  font-size: 15px;
  max-width: 720px;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--gold-light);
  color: var(--navy);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--navy-50);
  color: var(--navy-500);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

/* ===== KPI Grid ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .kpi-grid { grid-template-columns: 1fr; } }

.kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.05;
}

.kpi-value .unit {
  font-size: 18px;
  color: var(--navy-300);
  font-weight: 500;
  margin-left: 4px;
}

.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}

.delta-up   { color: var(--mint-700); }
.delta-down { color: var(--red); }
.delta-neutral { color: var(--navy-500); }

.kpi-foot {
  margin-top: 8px;
  font-size: 12px;
  color: var(--navy-500);
}

.kpi-accent { border-top: 3px solid var(--mint); }
.kpi-warn   { border-top: 3px solid var(--amber); }
.kpi-risk   { border-top: 3px solid var(--red); }
.kpi-gold   { border-top: 3px solid var(--gold); }

/* ===== Cards & sections ===== */
.row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.row-2 { grid-template-columns: 2fr 1fr; }
.row-2-eq { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: 2fr 1fr 1fr; }

@media (max-width: 1100px) {
  .row-2, .row-2-eq, .row-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.card-sub {
  font-size: 13px;
  color: var(--navy-500);
  margin-top: 2px;
}

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--navy-50);
  color: var(--navy);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
}

.chip-mint { background: var(--mint-100); color: var(--mint-700); }
.chip-amber { background: var(--amber-100); color: var(--amber); }
.chip-red { background: var(--red-100); color: var(--red); }
.chip-gold { background: var(--gold-light); color: var(--navy); }

/* ===== Chart wrappers ===== */
.chart-wrap {
  position: relative;
  height: 280px;
}

.chart-wrap.lg { height: 340px; }
.chart-wrap.sm { height: 220px; }

/* ===== Table ===== */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tbl thead th {
  text-align: left;
  font-weight: 600;
  color: var(--navy-500);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.tbl tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  vertical-align: middle;
}

.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--navy-50); }

.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.tbl .strong { font-weight: 600; }

/* Mini bar for in-row visualization */
.minibar {
  display: inline-block;
  height: 8px;
  border-radius: 4px;
  background: var(--mint);
  vertical-align: middle;
}
.minibar.warn { background: var(--amber); }
.minibar.risk { background: var(--red); }
.minibar-track {
  display: inline-block;
  width: 100px;
  height: 8px;
  border-radius: 4px;
  background: var(--navy-100);
  vertical-align: middle;
  overflow: hidden;
}

/* ===== Action panel ===== */
.actions { display: flex; flex-direction: column; gap: 12px; }

.action {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  background: var(--navy-50);
  border-left: 3px solid var(--mint);
}

.action.warn { border-left-color: var(--amber); background: #FFFBEB; }
.action.risk { border-left-color: var(--red); background: #FEF7F7; }

.action-ico {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--mint-700);
  font-weight: 700;
}
.action.warn .action-ico { color: var(--amber); }
.action.risk .action-ico { color: var(--red); }

.action-body { flex: 1; }
.action-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.action-desc { font-size: 13px; color: var(--navy-500); }

/* ===== Upload panel ===== */
.upload {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff 0%, var(--navy-50) 100%);
  border: 1px dashed var(--navy-200);
  border-radius: var(--radius-card);
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.upload:hover { border-color: var(--mint); background: linear-gradient(135deg, #fff 0%, var(--mint-100) 100%); }

.upload-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  display: grid;
  place-items: center;
  color: var(--mint);
  flex-shrink: 0;
}

.upload-body { flex: 1; }
.upload-title { font-weight: 600; font-size: 15px; color: var(--navy); }
.upload-desc { font-size: 13px; color: var(--navy-500); margin-top: 2px; }
.upload-hint {
  font-size: 11px;
  color: var(--navy-500);
  padding: 4px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.upload.loaded {
  background: linear-gradient(135deg, #fff 0%, var(--mint-100) 100%);
  border-style: solid;
  border-color: var(--mint);
}

#csvInput { display: none; }

/* ===== Upload helper: download CSV template ============== */
.upload-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  margin-top: -18px;
  margin-bottom: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  font-size: 13px;
  margin-left: 14px;
  margin-right: 14px;
}
.dl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint-700);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.dl-link:hover { color: var(--mint); text-decoration: underline; }
.dl-help { color: var(--navy-500); font-size: 12px; }

/* ===== Privacy badge GDPR =================================== */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 8px;
  font-size: 12.5px;
  color: #065F46;
  margin: 0 auto 24px;
  width: fit-content;
  max-width: 100%;
}
.privacy-badge svg { flex-shrink: 0; color: var(--mint-700); }
.privacy-badge b { color: var(--mint-700); font-weight: 700; }

/* ===== Toast notification =================================== */
.bpc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(10,22,40,0.25), 0 2px 8px rgba(10,22,40,0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s;
  max-width: 380px;
}
.bpc-toast.show { transform: translateY(0); opacity: 1; }
.bpc-toast svg { flex-shrink: 0; color: var(--mint); }
.bpc-toast-success { border-left: 4px solid var(--mint); }
.bpc-toast-warn { border-left: 4px solid var(--amber); }
.bpc-toast-error { border-left: 4px solid var(--red); }

/* ===== Korea focus toggle (Dashboard 03) ==================== */
.korea-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 16px;
}
.korea-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--navy-200);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.korea-toggle:hover { border-color: var(--navy); }
.korea-toggle.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.korea-toggle.active::before {
  content: '✓';
  font-weight: 800;
  color: var(--mint);
}

.korea-focus {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: none;
}
.korea-focus.active { display: block; animation: slideIn .35s cubic-bezier(.4,0,.2,1); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.korea-focus-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.korea-focus-flag { font-size: 24px; }
.korea-focus-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.korea-focus-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--mint); text-transform: uppercase; padding: 3px 8px; background: rgba(0,184,150,0.15); border-radius: 4px; }
.korea-focus-sub { color: var(--navy-200); font-size: 14px; line-height: 1.55; margin-bottom: 20px; max-width: 760px; }

.korea-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 1000px) { .korea-kpis { grid-template-columns: repeat(2, 1fr); } }
.korea-kpi {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
}
.korea-kpi-lbl { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-200); margin-bottom: 8px; font-weight: 600; }
.korea-kpi-val { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--mint); letter-spacing: -0.01em; }
.korea-kpi-val.gold { color: var(--gold); }
.korea-kpi-val.amber { color: #FBBF24; }
.korea-kpi-sub { font-size: 11px; color: var(--navy-200); margin-top: 4px; }

.korea-insights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 900px) { .korea-insights { grid-template-columns: 1fr; } }
.korea-insight {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--mint);
  border-radius: 6px;
  padding: 12px 14px;
}
.korea-insight b { color: var(--mint); }
.korea-insight-title { font-weight: 600; color: #fff; margin-bottom: 4px; font-size: 13.5px; }
.korea-insight-desc { font-size: 12.5px; color: var(--navy-200); line-height: 1.5; }

/* ===== What-if simulation panel (Dashboard 01) ============== */
.whatif-panel {
  background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 60%);
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.whatif-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.whatif-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.whatif-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.whatif-sub {
  font-size: 13px;
  color: var(--navy-500);
  margin-top: 2px;
}

.whatif-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 16px;
}
@media (max-width: 800px) { .whatif-controls { grid-template-columns: 1fr; } }

.whatif-slider {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.whatif-slider label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
.whatif-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  min-width: 50px;
  text-align: right;
}
.whatif-value.positive { color: var(--red); }
.whatif-value.negative { color: var(--mint-700); }
.whatif-value.zero { color: var(--navy-300); }

.whatif-slider input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--mint) 0%, var(--mint) 33%, var(--navy-100) 33%, var(--navy-100) 100%);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}
.whatif-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--navy);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(10,22,40,.25);
}
.whatif-slider input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--navy);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(10,22,40,.25);
}

.whatif-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}
.whatif-result-label { color: var(--navy-500); font-weight: 500; }
.whatif-result-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.whatif-result-value.negative { color: var(--red); }
.whatif-result-value.positive { color: var(--mint-700); }
.whatif-result-value.zero { color: var(--navy-300); }

/* ===== Sector demo loader (top-of-dashboard menu) =========== */
.sector-loader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--navy-50);
  border: 1px dashed var(--navy-200);
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 13px;
}
.sector-loader-label {
  color: var(--navy-500);
  font-weight: 500;
  flex-shrink: 0;
}
.sector-loader-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sector-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all .15s ease;
}
.sector-chip:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.sector-chip.active { background: var(--mint); border-color: var(--mint); color: #fff; }

/* ===== Gestionale connect modal ============================ */
.gest-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--navy-50);
  color: var(--navy-500);
  border: 1px dashed var(--navy-200);
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
  margin-left: auto;
  position: relative;
}
.gest-cta:hover {
  background: var(--gold-light);
  color: var(--navy);
  border-color: var(--gold);
  border-style: solid;
}
.gest-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--navy-300);
}
.gest-cta:hover .gest-cta-icon { color: var(--gold); }
.gest-cta-tier {
  display: inline-block;
  padding: 1px 7px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 4px;
}

/* ===== Mid upsell mini-modal =============================== */
.mid-upsell-modal {
  max-width: 480px;
  text-align: left;
}
.mid-upsell-head {
  padding: 22px 26px 8px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.mid-upsell-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-light);
  color: var(--gold);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mid-upsell-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.mid-upsell-tier {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mint-700);
  text-transform: uppercase;
  margin-top: 2px;
}
.mid-upsell-body { padding: 8px 26px 12px; font-size: 14px; line-height: 1.55; color: var(--navy-500); }
.mid-upsell-body b { color: var(--navy); }
.mid-upsell-list { padding: 4px 26px 18px; }
.mid-upsell-list ul { list-style: none; }
.mid-upsell-list li {
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--navy);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.mid-upsell-list li::before {
  content: '✓';
  color: var(--mint-700);
  font-weight: 800;
  flex-shrink: 0;
}
.mid-upsell-actions {
  padding: 18px 26px 22px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.mid-upsell-actions .btn { flex: 1; justify-content: center; }

.upload-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}
.upload-or {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-300);
  margin: 8px 0;
  position: relative;
}
.upload-or::before,
.upload-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: var(--border);
}
.upload-or::before { left: 0; }
.upload-or::after { right: 0; }

.gest-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.gest-modal-backdrop.show { display: flex; }
.gest-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(10,22,40,0.4);
  animation: modalIn .25s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.gest-modal-head {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.gest-modal-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 4px;
}
.gest-modal-sub { font-size: 13px; color: var(--navy-500); max-width: 420px; }
.gest-modal-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: var(--navy-50);
  border-radius: 8px;
  cursor: pointer;
  color: var(--navy-500);
  font-size: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.gest-modal-close:hover { background: var(--navy-100); color: var(--navy); }

.gest-options {
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 600px) { .gest-options { grid-template-columns: 1fr; } }
.gest-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all .15s ease;
}
.gest-option:hover { border-color: var(--mint); background: var(--mint-100); }
.gest-option-logo {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--mint);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.gest-option-name { font-weight: 600; font-size: 14px; color: var(--navy); }
.gest-option-meta { font-size: 11px; color: var(--navy-500); margin-top: 2px; }

.gest-modal-foot {
  padding: 14px 28px 22px;
  font-size: 12px;
  color: var(--navy-500);
  border-top: 1px solid var(--border);
}

.gest-connecting {
  padding: 60px 32px;
  text-align: center;
}
.gest-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--navy-100);
  border-top-color: var(--mint);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gest-connecting-step {
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  margin: 8px 0;
}
.gest-success {
  padding: 50px 32px;
  text-align: center;
}
.gest-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: var(--mint);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
}

/* ===== Footer ===== */
.footer {
  margin-top: 48px;
  padding: 32px;
  text-align: center;
  color: var(--navy-300);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.footer a { color: var(--navy-500); font-weight: 500; }

/* ===== Brand inline (Outfit + mint accent in body copy) ===== */
.brand-inline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.brand-inline .c { color: var(--mint-700); }
.brand-inline.light { color: #fff; }
.brand-inline.light .c { color: var(--mint); }

/* ===== Verticali (expanded section) ===== */
.verticali {
  margin-top: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  color: #fff;
}

.verticali-header { margin-bottom: 8px; max-width: 760px; }
.verticali-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mint);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.verticali-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}
.verticali-sub {
  color: var(--navy-200);
  font-size: 15px;
  line-height: 1.55;
}

.verticali-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 1100px) { .verticali-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .verticali-grid { grid-template-columns: 1fr; } }

.vert-col {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px;
}
.vert-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--mint);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.vert-col ul { list-style: none; }
.vert-col li {
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  line-height: 1.4;
}
.vert-col li:last-child { border-bottom: none; }
.vert-col li b { color: #fff; font-weight: 600; }
.vert-col li span { color: rgba(255,255,255,0.55); font-size: 11px; display: block; margin-top: 3px; }

/* ===== Utility ===== */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; }
.text-sm { font-size: 13px; }
.text-muted { color: var(--navy-500); }
.text-mint { color: var(--mint-700); }
.text-red  { color: var(--red); }
.text-gold { color: var(--gold); }
.bold { font-weight: 600; }
.center { text-align: center; }
.right { text-align: right; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ===== Value proposition box (post page-header) ===== */
.value-prop {
  margin: 20px 0 24px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #F5FBF9 0%, #FEFEFA 100%);
  border: 1px solid rgba(0, 184, 150, 0.18);
  border-left: 4px solid var(--mint);
  border-radius: var(--radius-card);
}
.value-prop-tagline {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.value-prop-tagline::before {
  content: "Cosa libera per voi questa dashboard · ";
  color: var(--mint-700);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}
.value-prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.value-prop-card {
  background: #fff;
  border: 1px solid var(--navy-100);
  border-radius: 10px;
  padding: 12px 14px;
}
.value-prop-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--mint-700);
  margin-bottom: 4px;
  line-height: 1.1;
}
.value-prop-label {
  font-size: 11px;
  color: var(--navy-500);
  line-height: 1.4;
}
.value-prop-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 184, 150, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.value-prop-cta-text {
  font-size: 12px;
  color: var(--navy-500);
}
.value-prop-cta-text b { color: var(--navy); }
.cta-mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--mint);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: background 0.15s, transform 0.15s;
}
.cta-mail-btn:hover {
  background: var(--mint-700);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== Tier upsell banner ===== */
.upsell {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.upsell-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.upsell-desc { font-size: 14px; color: var(--navy-200); max-width: 540px; }

.tier-list {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--navy-200);
}

.tier-list .now {
  background: var(--mint);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

/* ===== Index page specifics ===== */
.hero {
  padding: 48px 32px 24px;
  text-align: center;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 12px;
}
.hero-sub {
  color: var(--navy-500);
  font-size: 17px;
  max-width: 680px;
  margin: 0 auto;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
@media (max-width: 1000px) { .demo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .demo-grid { grid-template-columns: 1fr; } }

.demo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
}
.demo-card:hover {
  border-color: var(--mint);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: var(--navy);
}

.demo-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mint-700);
}

.demo-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.demo-desc {
  color: var(--navy-500);
  font-size: 14px;
  line-height: 1.5;
}

.demo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }

.demo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
}

/* Print + PDF export — nasconde elementi UI non rilevanti nel report */
@media print {
  .topbar, .upload, .upload-actions, .privacy-badge, .upsell, .footer,
  .whatif-panel, .korea-toggle-wrap, .sector-loader, .gest-cta { display: none !important; }
  .card, .kpi { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  body { background: white; }
}

.exporting-pdf .topbar,
.exporting-pdf .upload,
.exporting-pdf .upload-actions,
.exporting-pdf .privacy-badge,
.exporting-pdf .whatif-panel,
.exporting-pdf .korea-toggle-wrap,
.exporting-pdf .sector-loader,
.exporting-pdf .gest-cta,
.exporting-pdf .upload-or,
.exporting-pdf .upsell { display: none !important; }
.exporting-pdf .card,
.exporting-pdf .kpi { box-shadow: none; }
.exporting-pdf .container { padding: 16px 20px; }
.exporting-pdf body { background: #fff; }
.exporting-pdf .pdf-header {
  display: block !important;
  padding: 14px 20px;
  margin: 0 0 18px;
  border-bottom: 2px solid var(--navy);
  background: #fff;
}
.exporting-pdf .pdf-header-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}
.exporting-pdf .pdf-header-brand .c { color: var(--mint-700); }
.exporting-pdf .pdf-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--navy-500);
  margin-top: 4px;
}
.pdf-header { display: none; }

/* ============================================================
   INDEX v2 — Hero rich, stats, trust, demo previews,
   steps, tier cards, FAQ, closing CTA
   ============================================================ */

/* ===== Buttons (size variants & ghost on dark/light) ===== */
.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 12px;
}
.btn-ghost-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.btn-ghost-light {
  background: transparent;
  border: 1px solid var(--navy-200);
  color: var(--navy);
}
.btn-ghost-light:hover {
  background: var(--navy-50);
  border-color: var(--navy-300);
  color: var(--navy);
}

/* ===== Hero rich · Stripe-style animated background ===== */
.hero-rich {
  position: relative;
  padding: 0;
  text-align: left;
  background: #0A1628;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
/* Base animated diagonal gradient (slow 20s shift) */
.hero-rich::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -45deg,
    #0A1628 0%,
    #0D2137 20%,
    rgba(0, 212, 170, 0.08) 35%,
    #0A1628 50%,
    rgba(0, 180, 216, 0.06) 65%,
    #0D1F35 80%,
    #0A1628 100%
  );
  background-size: 400% 400%;
  animation: hero-gradient-shift 20s ease infinite;
  z-index: 0;
}
/* Subtle grid overlay */
.hero-rich::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 80%);
  z-index: 2;
}

/* Animated gradient orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  filter: blur(170px);
  will-change: transform, opacity, border-radius;
}
.hero-orb-1 {
  top: 15%;
  right: 10%;
  width: 700px;
  height: 700px;
  background: rgba(0, 212, 170, 0.12);
  animation: orb-float-1 18s ease-in-out infinite;
}
.hero-orb-2 {
  bottom: 20%;
  left: 5%;
  width: 600px;
  height: 600px;
  background: rgba(0, 180, 216, 0.10);
  animation: orb-float-2 18s ease-in-out infinite 4s;
}
.hero-orb-3 {
  top: 40%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: rgba(0, 212, 170, 0.08);
  animation: orb-float-3 18s ease-in-out infinite 7s;
}

@keyframes hero-gradient-shift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 25%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 25% 100%; }
  100% { background-position: 0% 50%; }
}
@keyframes orb-float-1 {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
  50% {
    transform: translateY(-30px) translateX(15px) scale(1.1);
    opacity: 0.6;
    border-radius: 60% 40% 30% 70% / 40% 60% 70% 30%;
  }
}
@keyframes orb-float-2 {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.25;
    border-radius: 60% 40% 30% 70% / 40% 60% 70% 30%;
  }
  50% {
    transform: translateY(-25px) translateX(-10px) scale(1.08);
    opacity: 0.5;
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  }
}
@keyframes orb-float-3 {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.2;
    border-radius: 50% 50% 40% 60% / 50% 40% 60% 50%;
  }
  50% {
    transform: translateY(-20px) translateX(12px) scale(1.12);
    opacity: 0.45;
    border-radius: 40% 60% 50% 50% / 60% 50% 50% 40%;
  }
}

/* Reduced motion: disable animations */
@media (prefers-reduced-motion: reduce) {
  .hero-rich::after,
  .hero-orb-1,
  .hero-orb-2,
  .hero-orb-3 { animation: none; }
}
.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 32px 56px;
  z-index: 3;
}
.hero-rich .demo-pill {
  background: rgba(0,184,150,0.14);
  color: var(--mint);
  border: 1px solid rgba(0,184,150,0.28);
  font-weight: 600;
}
.hero-rich .demo-pill .pill-dot {
  width: 6px; height: 6px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0,184,150,0.18);
  animation: pulse 2s infinite;
}
.hero-rich .hero-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 880px;
}
.hero-rich .hero-title .hl {
  background: linear-gradient(120deg, var(--mint) 0%, #58e8c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-rich .hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 18px;
  max-width: 720px;
  margin: 12px 0 0;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* hero stats grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.hero-stat {
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { border-right: none; }
.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .hero-inner { padding: 56px 24px 40px; }
  .hero-rich .hero-title { font-size: 38px; }
  .hero-rich .hero-sub { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .hero-stat { padding: 16px 16px; border-right: 1px solid rgba(255,255,255,0.08); border-bottom: none; }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-stat:nth-child(3) { padding-left: 0; }
  .hero-stat-num { font-size: 30px; }
}
@media (max-width: 480px) {
  .hero-rich .hero-title { font-size: 32px; }
}

/* ===== Trust bar ===== */
.trust-bar {
  margin: 28px 0 8px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.trust-bar-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-500);
  white-space: nowrap;
}
.trust-bar-items {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  flex: 1;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}
.trust-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-mint  { background: var(--mint); }
.dot-amber { background: var(--amber); }
.dot-gold  { background: var(--gold); }
.dot-navy  { background: var(--navy); }

/* ===== Section heads ===== */
.section-anchor { scroll-margin-top: 80px; padding-top: 56px; }
.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-700);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--navy-500);
  line-height: 1.55;
}
@media (max-width: 700px) {
  .section-title { font-size: 24px; }
  .section-sub { font-size: 14px; }
}

/* ===== Demo cards rich ===== */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 8px;
}
@media (max-width: 1000px) { .demo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .demo-grid { grid-template-columns: 1fr; } }

.demo-card-rich {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
  overflow: hidden;
}
.demo-card-rich::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--navy-100);
  transition: background 0.18s ease;
}
.demo-card-rich:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-200);
  color: var(--navy);
}
.demo-card-rich:hover .arrow { transform: translateX(4px); }

.accent-mint::before  { background: var(--mint); }
.accent-amber::before { background: var(--amber); }
.accent-gold::before  { background: var(--gold); }
.accent-green::before { background: #16a34a; }
.accent-navy::before  { background: var(--navy); }

.accent-mint .demo-num  { color: var(--mint-700); }
.accent-amber .demo-num { color: var(--amber); }
.accent-gold .demo-num  { color: #8a7242; }
.accent-green .demo-num { color: #15803d; }
.accent-navy .demo-num  { color: var(--navy); }

.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--mint-100);
  color: var(--mint-700);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.demo-badge.badge-hot {
  background: var(--amber-100);
  color: var(--amber);
}
.demo-badge.badge-real {
  background: var(--gold-light);
  color: #6f5a35;
}
.demo-badge.badge-soft {
  background: var(--navy-50);
  color: var(--navy-500);
}

.demo-preview {
  height: 84px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.demo-preview svg {
  width: 100%;
  height: 100%;
  display: block;
}

.demo-card-rich .demo-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.demo-card-rich .demo-desc {
  color: var(--navy-500);
  font-size: 13.5px;
  line-height: 1.5;
}
.demo-card-rich .demo-tags { margin-top: auto; }
.demo-card-rich .demo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}
.demo-cta .arrow {
  display: inline-block;
  transition: transform 0.18s ease;
  font-weight: 700;
}

/* "Custom" card variant (last cell, sales-driven) */
.demo-card-custom {
  position: relative;
  background: linear-gradient(155deg, #FBFAF7 0%, var(--gold-light) 100%);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
}
.demo-card-custom .custom-icon {
  color: var(--gold);
  margin: 4px 0;
}
.demo-card-custom .demo-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.demo-card-custom .demo-desc {
  color: var(--navy-700);
  font-size: 13.5px;
  line-height: 1.5;
}
.demo-card-custom .cta-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  border-top: 1px solid rgba(197,165,114,0.4);
  padding-top: 14px;
  text-decoration: none;
}
.demo-card-custom .cta-custom:hover .arrow { transform: translateX(4px); }

/* ===== Steps ===== */
.steps-section { padding-top: 64px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease;
}
.step:hover { border-color: var(--mint); }
.step-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mint);
  line-height: 1;
}
.step-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0;
}
.step-desc {
  font-size: 13.5px;
  color: var(--navy-500);
  line-height: 1.55;
}

/* ===== Pricing tiers ===== */
.pricing-section { padding-top: 64px; }
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 1000px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
.tier-card.tier-featured {
  background: linear-gradient(180deg, #ffffff 0%, var(--mint-100) 100%);
  border: 2px solid var(--mint);
  box-shadow: 0 16px 40px rgba(0,184,150,0.18);
  transform: translateY(-4px);
}
.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mint);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,184,150,0.25);
}
.tier-head { display: flex; flex-direction: column; gap: 4px; }
.tier-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--mint-700);
  letter-spacing: 0.14em;
}
.tier-card:not(.tier-featured) .tier-name { color: var(--navy-500); }
.tier-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.tier-features li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--navy);
  line-height: 1.5;
}
.tier-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--mint-100);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008A70' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: center;
}
.tier-note {
  display: block;
  font-size: 12px;
  color: var(--navy-500);
  margin-top: 2px;
}
.tier-foot {
  font-size: 13px;
  color: var(--navy-500);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
}
.tier-featured .tier-foot { border-top-color: rgba(0,184,150,0.25); color: var(--mint-700); font-weight: 500; font-style: normal; }
.tier-price {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 14px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.tier-featured .tier-price { color: var(--mint-700); }
.tier-price-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--navy-500);
  letter-spacing: 0.02em;
  margin-top: 3px;
  text-transform: none;
  font-family: var(--font-body);
}
.tier-target {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--navy-500);
  line-height: 1.55;
}
.tier-featured .tier-target { border-top-color: rgba(0,184,150,0.18); }
.tier-note-block {
  margin: 36px auto 0;
  max-width: 880px;
  padding: 20px 24px;
  background: var(--navy-50);
  border: 1px solid var(--border);
  border-left: 3px solid var(--mint);
  border-radius: var(--radius-card);
  font-size: 13px;
  line-height: 1.6;
  color: var(--navy-500);
}
.tier-note-block strong { color: var(--navy); }
.tier-note-block p { margin: 0; }

/* ===== FAQ ===== */
.faq-section { padding-top: 64px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--mint);
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.faq-item:hover {
  border-color: var(--navy-200);
  border-left-color: var(--mint);
  box-shadow: var(--shadow-sm);
}
.faq-q {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.faq-a {
  font-size: 14px;
  color: var(--navy-500);
  line-height: 1.6;
}
.faq-a b { color: var(--navy); font-weight: 600; }

/* ===== Closing CTA ===== */
.cta-final {
  margin-top: 80px;
  padding: 0;
  position: relative;
}
.cta-final-inner {
  background:
    radial-gradient(ellipse 70% 80% at 90% 100%, rgba(197,165,114,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(0,184,150,0.18) 0%, transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
@media (max-width: 900px) {
  .cta-final-inner { grid-template-columns: 1fr; padding: 36px 28px; gap: 24px; }
}
.cta-final-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}
.cta-final-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
}
.cta-final-sub {
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
}
.cta-final-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.cta-final .btn-mint {
  background: var(--mint);
  color: var(--navy);
  font-weight: 700;
  justify-content: center;
}
.cta-final .btn-mint:hover { background: #00CFA8; }
.cta-final .btn-ghost-light {
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  background: transparent;
  justify-content: center;
}
.cta-final .btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); color: #fff; }
@media (max-width: 600px) {
  .cta-final-title { font-size: 24px; }
}

/* ===== Footer adjustments (within new layout) ===== */
.footer a:hover { color: var(--mint-700); }

