/* ==========================================================================
   TOPSCORE.NL - AIRBNB & BOOKING.COM RENDEMENT SPANJE CALCULATOR
   100% Pure CSS - Geen externe frameworks, libraries of preprocessors.
   ========================================================================== */

:root {
  --primary: #0c233c;
  --primary-light: #163659;
  --primary-dark: #071524;
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-light: #fef3c7;
  --accent-soft: #fffbeb;
  
  --emerald: #059669;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;
  
  --blue: #2563eb;
  --blue-light: #eff6ff;
  
  --amber: #d97706;
  --amber-light: #fef3c7;
  
  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  
  --danger: #dc2626;
  --danger-light: #fef2f2;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-focus: #0284c7;
  
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   HEADER & ACTIONS
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-badge {
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.brand-titles h1 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.brand-titles p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-action-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.btn-action-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO & PRESETS
   ========================================================================== */
.hero-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 2.2rem 1.5rem 1.8rem;
  box-shadow: var(--shadow-sm);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.hero-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.hero-badge-accent {
  display: inline-block;
  background-color: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.hero-content h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 950px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Presets Bar */
.region-presets-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.preset-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.preset-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  background: #f8fafc;
  border-color: var(--border-focus);
  color: var(--primary);
}

.preset-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   MAIN TWO-COLUMN LAYOUT
   ========================================================================== */
.main-layout {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1120px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   INPUT SECTIONS (LEFT COLUMN)
   ========================================================================== */
.inputs-column {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.card-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-section:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.section-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(12, 35, 60, 0.25);
}

.section-title-wrap h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

.section-title-wrap p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Forms & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.label-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.label-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.label-calc-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: #e0f2fe;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid #bae6fd;
}

.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-symbol .input-symbol {
  position: absolute;
  left: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.input-with-symbol input[type="number"] {
  width: 100%;
  padding: 0.65rem 0.85rem 0.65rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.input-with-symbol.suffix .input-symbol {
  left: auto;
  right: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.input-with-symbol.suffix input[type="number"] {
  padding-left: 0.85rem;
  padding-right: 3.5rem;
}

.input-with-symbol input[type="number"]:focus,
.form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  background-color: #ffffff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.input-range {
  width: 100%;
  margin-top: 0.5rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.field-hint {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

.checkbox-line label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-main);
  user-select: none;
}

.checkbox-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.mt-1 { margin-top: 0.35rem; }
.mt-2 { margin-top: 0.65rem; }
.mt-4 { margin-top: 1.25rem; }
.mb-4 { margin-bottom: 1.25rem; }

/* Highlight bar in sections */
.calc-highlight-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-item .hl-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.highlight-item .hl-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

/* Toggle Switch */
.toggle-group-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
}

.toggle-switch-label {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.toggle-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.toggle-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.toggle-input {
  width: 22px;
  height: 22px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* Tax Info Box */
.tax-box-wrap {
  padding: 1.1rem;
  background: #fdf6ec;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
}

.tax-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.tax-box-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400e;
}

.tax-rate-pill {
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.tax-box-desc {
  font-size: 0.82rem;
  color: #78350f;
  line-height: 1.5;
}

/* ==========================================================================
   STICKY SUMMARY PANEL (RIGHT COLUMN)
   ========================================================================== */
.summary-column {
  position: relative;
}

.summary-sticky-panel {
  position: sticky;
  top: 5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.summary-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald);
  display: block;
  margin-bottom: 2px;
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.property-tag-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}

/* KPI Cards Grid */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.kpi-card.highlight-card {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.kpi-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-blue { background: #dbeafe; color: var(--blue); }
.bg-emerald { background: #dcfce7; color: var(--emerald); }
.bg-amber { background: #fef3c7; color: var(--amber); }
.bg-purple { background: #ede9fe; color: var(--purple); }

.kpi-content {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 2px 0 1px;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-light);
}

.text-blue { color: var(--blue); }
.text-emerald { color: var(--emerald); }
.text-amber { color: var(--amber); }
.text-purple { color: var(--purple); }
.text-success { color: var(--emerald); }
.text-danger { color: var(--danger); }
.text-conservative { color: #d97706; }
.text-optimistic { color: #2563eb; }

/* Financial Summary List */
.summary-breakdown-list {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  margin-bottom: 1.4rem;
}

.sb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.38rem 0;
  color: var(--text-muted);
}

.sb-row strong, .sb-row span:last-child {
  font-weight: 600;
  color: var(--text-main);
}

.sb-row.divider {
  border-top: 1px dashed var(--border);
  margin-top: 0.4rem;
  padding-top: 0.55rem;
}

.sb-row.total-row {
  border-top: 2px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  font-size: 0.95rem;
}

.sb-row.total-row strong {
  font-size: 1.15rem;
  font-weight: 800;
}

/* Visual Stacked Bar */
.visual-stack-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.visual-stack-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.visual-stacked-bar {
  display: flex;
  height: 14px;
  border-radius: 9999px;
  overflow: hidden;
  background: #e2e8f0;
}

.bar-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.seg-platform { background-color: #3b82f6; }
.seg-beheer { background-color: #8b5cf6; }
.seg-schoonmaak { background-color: #f59e0b; }
.seg-vaste { background-color: #ef4444; }
.seg-belasting { background-color: #64748b; }
.seg-netto { background-color: #10b981; }

.bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.leg-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-platform { background: #3b82f6; }
.dot-beheer { background: #8b5cf6; }
.dot-schoonmaak { background: #f59e0b; }
.dot-vaste { background: #ef4444; }
.dot-belasting { background: #64748b; }
.dot-netto { background: #10b981; }

/* ==========================================================================
   SCENARIOS SECTION (SIDE-BY-SIDE CARDS & COMPARISON TABLE)
   ========================================================================== */
.scenarios-section {
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem;
  margin-top: 2rem;
}

.scenarios-container {
  max-width: 1400px;
  margin: 0 auto;
}

.scenarios-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.scenarios-badge {
  display: inline-block;
  background: #e2e8f0;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.scenarios-header h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.scenarios-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Scenario Controls Strip */
.scenario-controls-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  background: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.sc-ctrl-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.sc-ctrl-buttons {
  display: flex;
  gap: 0.35rem;
}

.sc-var-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sc-var-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.sc-var-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* 3 Cards Side by Side */
.scenario-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .scenario-cards-grid {
    grid-template-columns: 1fr;
  }
}

.scenario-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.scenario-card.is-featured {
  border: 2px solid var(--emerald);
  box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.18), 0 8px 10px -6px rgba(5, 150, 105, 0.1);
  transform: scale(1.02);
  z-index: 10;
}

.scenario-card.is-featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.95rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
}

.scenario-card-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.scenario-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.6rem;
}

.badge-conservative {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-realistic {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-optimistic {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.scenario-card-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.scenario-card-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  min-height: 2.4em;
}

.scenario-assumptions {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
  margin-bottom: 1.25rem;
}

.sc-assump-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.2rem 0;
  color: var(--text-muted);
}

.sc-assump-row strong {
  color: var(--text-main);
  font-weight: 700;
}

.scenario-kpi-block {
  text-align: center;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border);
  margin-bottom: 1.4rem;
}

.card-conservative .scenario-kpi-block { background: #fffbeb; border-color: #fef3c7; }
.card-realistic .scenario-kpi-block { background: #f0fdf4; border-color: #dcfce7; }
.card-optimistic .scenario-kpi-block { background: #f8fafc; border-color: #e2e8f0; }

.sc-kpi-sub {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.sc-kpi-main {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0.25rem 0;
}

.sc-kpi-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sc-kpi-note span {
  font-weight: 700;
  color: var(--text-main);
}

.scenario-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-top: auto;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid #f1f5f9;
}

.metric-row strong, .metric-row span:last-child {
  font-weight: 600;
  color: var(--text-main);
}

.metric-row.highlight {
  background: var(--bg-subtle);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border-bottom: none;
  margin: 0.25rem 0;
}

.metric-row.highlight strong {
  font-size: 0.95rem;
  color: var(--primary);
}

.metric-row.cashflow-row {
  border-top: 2px solid var(--border);
  border-bottom: none;
  padding-top: 0.65rem;
  margin-top: 0.4rem;
  font-size: 0.92rem;
}

.metric-row.cashflow-row strong {
  font-size: 1.15rem;
  font-weight: 800;
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */
.comparison-table-wrapper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.table-header-title {
  padding: 1.25rem 1.75rem;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-header-title h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

.table-header-title span {
  font-size: 0.82rem;
  color: #94a3b8;
}

.table-responsive {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.comparison-table th, 
.comparison-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}

.comparison-table th.col-cons { color: #b45309; }
.comparison-table th.col-real { color: var(--emerald); }
.comparison-table th.col-opt { color: #1d4ed8; }

.comparison-table .highlight-col,
.comparison-table .highlight-cell {
  background-color: #f0fdf4;
  font-weight: 600;
}

.comparison-table tr:hover td {
  background-color: #f8fafc;
}

.comparison-table tr.row-highlight td {
  background-color: #f1f5f9;
  font-weight: 700;
}

.comparison-table tr.row-cashflow td {
  background-color: #ecfdf5;
  font-size: 0.95rem;
  font-weight: 700;
  border-top: 2px solid #a7f3d0;
}

.comparison-table tr.row-cashflow-month td {
  background-color: #d1fae5;
  font-size: 1rem;
  font-weight: 800;
  color: #065f46;
}

/* ==========================================================================
   INFO & KNOWLEDGE BASE
   ========================================================================== */
.info-section {
  padding: 3.5rem 1.5rem;
  background: #ffffff;
}

.info-container {
  max-width: 1400px;
  margin: 0 auto;
}

.info-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 2.5rem;
}

.info-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 0.6rem;
}

.info-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.info-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 640px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

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

.info-icon {
  font-size: 1.8rem;
  margin-bottom: 0.85rem;
}

.info-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 3rem 1.5rem;
  margin: 0;
}

.cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 768px) {
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

.cta-text h3 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.cta-text p {
  font-size: 1rem;
  color: #cbd5e1;
}

.btn-cta {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 550px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.55;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-disclaimer-text {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.76rem;
  color: #64748b;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PRINT STYLESHEET
   ========================================================================== */
.print-header {
  display: none;
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .site-header,
  .hero-strip,
  .preset-buttons,
  .scenario-controls-strip,
  .btn-action-ghost,
  .btn-action-primary,
  .cta-banner,
  .site-footer,
  .toast {
    display: none !important;
  }

  .print-header {
    display: block;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #000000;
  }

  .print-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .print-header h1 {
    font-size: 16pt;
    font-weight: 800;
  }

  .print-header p {
    font-size: 10pt;
    color: #444444;
  }

  .main-layout {
    display: block;
    padding: 0;
    margin: 0;
  }

  .inputs-column {
    display: none; /* Hide inputs in printed final summary, or keep only KPI & Scenarios */
  }

  .summary-sticky-panel {
    position: static;
    box-shadow: none;
    border: 1px solid #cccccc;
    margin-bottom: 2rem;
    page-break-inside: avoid;
  }

  .scenarios-section {
    background: transparent;
    padding: 0;
    border: none;
  }

  .scenario-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem;
    page-break-inside: avoid;
  }

  .scenario-card {
    box-shadow: none;
    border: 1px solid #999999;
    padding: 1rem;
  }

  .comparison-table-wrapper {
    box-shadow: none;
    border: 1px solid #999999;
    page-break-before: always;
  }
}
