/**
 * Compound Interest Calculator Styles - HipotekaAI
 * Prefix: kps- (Kalkulator Procent Skladany)
 */

/* =============================================================================
   HERO
   ============================================================================= */

.kps-hero {
  background: linear-gradient(135deg, #1E3A5F 0%, #1E88E5 50%, #059669 100%);
  color: #fff;
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.kps-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.kps-hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.kps-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.kps-hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
  opacity: 0.95;
  max-width: 720px;
  margin: 0 auto 28px;
}

.kps-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.kps-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.kps-hero-badge i {
  width: 16px;
  height: 16px;
}

/* =============================================================================
   SECTION WRAPPER
   ============================================================================= */

.kps-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.kps-section-narrow {
  max-width: 900px;
}

.kps-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.kps-section p {
  color: #475569;
  line-height: 1.7;
  font-size: 1rem;
}

/* =============================================================================
   GUIDE (COLLAPSIBLE)
   ============================================================================= */

.kps-guide-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

.kps-guide-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: #1E3A5F;
  font-weight: 700;
  font-size: 1.1rem;
}

.kps-guide-header:hover {
  background: #F1F5F9;
}

.kps-guide-header i {
  transition: transform 0.2s;
}

.kps-guide-header[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.kps-guide-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.kps-guide-body.kps-guide-open {
  max-height: 800px;
  padding: 0 24px 24px;
}

.kps-guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.kps-guide-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.kps-guide-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1E88E5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.kps-guide-step-text {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
}

.kps-guide-step-text strong {
  color: #1E3A5F;
}

/* =============================================================================
   CALCULATOR CARD
   ============================================================================= */

.kps-calculator-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(30, 58, 95, 0.08);
  border: 1px solid #E2E8F0;
  padding: 32px;
  margin-bottom: 48px;
}

.kps-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.kps-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kps-field label {
  font-weight: 700;
  color: #1E3A5F;
  font-size: 0.95rem;
}

.kps-field-hint {
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 400;
}

.kps-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.kps-input {
  flex: 1;
  padding: 12px 14px;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  font-size: 1rem;
  color: #1E3A5F;
  background: #fff;
  transition: border-color 0.2s;
  font-weight: 600;
  min-width: 0;
}

.kps-input:focus {
  outline: none;
  border-color: #1E88E5;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}

.kps-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kps-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.kps-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1E88E5;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.4);
}

.kps-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1E88E5;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.4);
}

.kps-slider-value {
  min-width: 80px;
  text-align: right;
  font-weight: 700;
  color: #1E88E5;
  font-size: 0.95rem;
}

/* =============================================================================
   OPTIONAL SECTION (COLLAPSIBLE)
   ============================================================================= */

.kps-optional-section {
  margin-top: 8px;
  margin-bottom: 24px;
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  background: #F8FAFC;
  overflow: hidden;
}

.kps-optional-header {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1E3A5F;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
}

.kps-optional-header:hover {
  background: #F1F5F9;
}

.kps-optional-header i.kps-chevron {
  transition: transform 0.2s;
}

.kps-optional-header[aria-expanded="true"] i.kps-chevron {
  transform: rotate(180deg);
}

.kps-optional-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.kps-optional-body.kps-optional-open {
  max-height: 400px;
  padding: 0 20px 20px;
}

.kps-optional-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn-kps-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #1E88E5 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.25);
  width: 100%;
}

.btn-kps-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 136, 229, 0.35);
  color: #fff;
}

.btn-kps-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: #1E88E5;
  border: 2px solid #1E88E5;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-kps-secondary:hover {
  background: #F0F9FF;
  color: #1E88E5;
}

/* =============================================================================
   RESULT CARD
   ============================================================================= */

.kps-result-card {
  display: none;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid #E2E8F0;
}

.kps-result-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 20px;
}

/* Tax toggle (brutto/netto pill) */
.kps-tax-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.kps-tax-toggle-label {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
}

.kps-tax-toggle-label.active {
  color: #1E3A5F;
  font-weight: 800;
}

.kps-tax-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.kps-tax-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.kps-tax-slider-ui {
  position: absolute;
  inset: 0;
  background: #CBD5E1;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.2s;
}

.kps-tax-slider-ui::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.kps-tax-switch input:checked + .kps-tax-slider-ui {
  background: #059669;
}

.kps-tax-switch input:checked + .kps-tax-slider-ui::before {
  transform: translateX(22px);
}

/* KPI tiles */
.kps-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.kps-kpi-tile {
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid #E2E8F0;
  text-align: center;
}

.kps-kpi-tile.kps-kpi-primary {
  background: linear-gradient(135deg, #1E88E5 0%, #059669 100%);
  color: #fff;
  border: none;
}

.kps-kpi-label {
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kps-kpi-primary .kps-kpi-label {
  color: rgba(255, 255, 255, 0.85);
}

.kps-kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1E3A5F;
  line-height: 1.1;
}

.kps-kpi-primary .kps-kpi-value {
  color: #fff;
  font-size: 1.8rem;
}

.kps-kpi-sub {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #059669;
  font-weight: 700;
}

.kps-kpi-primary .kps-kpi-sub {
  color: rgba(255, 255, 255, 0.9);
}

/* =============================================================================
   CHARTS
   ============================================================================= */

.kps-chart-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.kps-chart-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 16px;
}

.kps-chart-wrap {
  width: 100%;
  overflow: hidden;
}

.kps-chart-wrap svg {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.kps-chart-caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #64748B;
  text-align: center;
  font-style: italic;
}

.kps-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #475569;
}

.kps-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kps-chart-legend-swatch {
  width: 14px;
  height: 3px;
  border-radius: 2px;
}

.kps-legend-balance {
  background: #1E88E5;
}

.kps-legend-contrib {
  background: #94A3B8;
  border-top: 1px dashed #94A3B8;
}

/* =============================================================================
   DOWN PAYMENT BOX
   ============================================================================= */

.kps-dp-box {
  display: none;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ECFDF5 0%, #F0F9FF 100%);
  border: 1px solid #A7F3D0;
  margin-bottom: 24px;
}

.kps-dp-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 16px;
}

.kps-dp-subtitle {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 20px;
}

.kps-dp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
}

.kps-dp-label {
  font-weight: 700;
  color: #1E3A5F;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kps-dp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.kps-dp-status {
  font-size: 0.9rem;
  color: #475569;
  text-align: right;
}

.kps-dp-achieved .kps-dp-status {
  color: #059669;
  font-weight: 700;
}

.kps-dp-missed .kps-dp-status {
  color: #dc2626;
  font-weight: 600;
}

/* Progress bar (segment-based) */
.kps-dp-progress {
  margin: 20px 0 12px;
}

.kps-dp-progress-track {
  position: relative;
  height: 18px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: visible;
}

.kps-dp-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #1E88E5 0%, #059669 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.kps-dp-progress-marker {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 2px;
  background: #1E3A5F;
}

.kps-dp-marker-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: #1E3A5F;
  white-space: nowrap;
}

.kps-dp-progress-caption {
  margin-top: 28px;
  font-size: 0.85rem;
  color: #475569;
  text-align: center;
}

.kps-dp-cta {
  margin-top: 16px;
  text-align: center;
}

/* =============================================================================
   YEARLY TABLE (COLLAPSIBLE)
   ============================================================================= */

.kps-table-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}

.kps-table-header {
  width: 100%;
  padding: 16px 24px;
  background: #F8FAFC;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1E3A5F;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
}

.kps-table-header:hover {
  background: #F1F5F9;
}

.kps-table-header i {
  transition: transform 0.2s;
}

.kps-table-header[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.kps-table-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.kps-table-wrapper.kps-table-open {
  max-height: 2000px;
}

.kps-table-scroll {
  overflow-x: auto;
  padding: 0 24px 24px;
}

.kps-yearly-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.9rem;
}

.kps-yearly-table thead th {
  background: #F8FAFC;
  padding: 12px 10px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #E2E8F0;
}

.kps-yearly-table .kps-th-left {
  text-align: left;
}

.kps-yearly-table tbody td {
  padding: 12px 10px;
  text-align: right;
  border-bottom: 1px solid #F1F5F9;
  color: #475569;
}

.kps-yearly-table tbody td.kps-td-left {
  text-align: left;
  color: #1E3A5F;
}

.kps-yearly-table tbody tr:nth-child(even) {
  background: #FAFBFC;
}

.kps-yearly-table tbody tr:hover {
  background: #F0F9FF;
}

/* =============================================================================
   SAVE / COMPARE
   ============================================================================= */

.kps-save-row {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.kps-compare-title {
  font-weight: 700;
  color: #1E3A5F;
  font-size: 1rem;
  margin-bottom: 16px;
}

.kps-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.kps-compare-card {
  position: relative;
  padding: 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.kps-compare-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.kps-compare-remove:hover {
  color: #dc2626;
  background: #FEF2F2;
}

.kps-compare-big {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1E88E5;
  line-height: 1.1;
}

.kps-compare-sub {
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 12px;
}

.kps-compare-detail {
  font-size: 0.85rem;
  color: #475569;
  margin-top: 4px;
}

.kps-compare-interest {
  color: #059669;
  font-weight: 700;
}

/* =============================================================================
   DISCLAIMER
   ============================================================================= */

.kps-disclaimer {
  margin-top: 24px;
  padding: 14px 18px;
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #78350F;
  line-height: 1.5;
}

/* =============================================================================
   EDUCATIONAL SECTION
   ============================================================================= */

.kps-edu-section {
  background: #F8FAFC;
  padding: 56px 24px;
}

.kps-edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.kps-edu-card {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
}

.kps-edu-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kps-edu-card h3 i {
  width: 22px;
  height: 22px;
  color: #1E88E5;
}

.kps-edu-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 10px;
}

.kps-edu-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.7;
}

.kps-magic-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.9rem;
}

.kps-magic-table th,
.kps-magic-table td {
  padding: 10px;
  text-align: right;
  border-bottom: 1px solid #E2E8F0;
}

.kps-magic-table th {
  background: #F8FAFC;
  font-weight: 700;
  color: #1E3A5F;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.kps-magic-table th:first-child,
.kps-magic-table td:first-child {
  text-align: left;
}

/* =============================================================================
   FAQ
   ============================================================================= */

.kps-faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px;
}

.kps-faq-item {
  border-bottom: 1px solid #E2E8F0;
}

.kps-faq-question {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E3A5F;
  transition: color 0.2s;
}

.kps-faq-question:hover {
  color: #1E88E5;
}

.kps-faq-question i {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
  color: #94A3B8;
}

.kps-faq-question.active i {
  transform: rotate(180deg);
  color: #1E88E5;
}

.kps-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: #475569;
  line-height: 1.7;
  font-size: 0.95rem;
}

.kps-faq-answer.open {
  max-height: 1500px;
  padding: 0 0 24px;
}

.kps-faq-answer p {
  margin-bottom: 10px;
}

.kps-faq-answer ul {
  padding-left: 20px;
  margin: 10px 0;
}

.kps-faq-answer ul li {
  margin-bottom: 6px;
}

.kps-faq-answer a {
  color: #1E88E5;
  font-weight: 600;
  text-decoration: underline;
}

.kps-faq-source {
  font-size: 0.8rem;
  color: #94A3B8;
  font-style: italic;
  margin-top: 8px;
}

/* =============================================================================
   RELATED CALCULATORS & BLOG
   ============================================================================= */

.kps-related-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

.kps-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.kps-related-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  text-decoration: none;
  color: #1E3A5F;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kps-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.1);
  border-color: #1E88E5;
  color: #1E3A5F;
}

.kps-related-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1E88E5, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.kps-related-icon i {
  width: 22px;
  height: 22px;
}

.kps-related-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: #1E3A5F;
}

.kps-related-card p {
  font-size: 0.88rem;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

.kps-related-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #EFF6FF;
  color: #1E88E5;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: flex-start;
}

/* =============================================================================
   FINAL CTA
   ============================================================================= */

.kps-final-cta {
  background: linear-gradient(135deg, #1E3A5F 0%, #1E88E5 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}

.kps-final-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.kps-final-cta p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
}

.kps-final-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-kps-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: #fff;
  color: #1E88E5;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-kps-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #1E88E5;
}

.btn-kps-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-kps-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* =============================================================================
   TOAST
   ============================================================================= */

.kps-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1E3A5F;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  max-width: 90%;
}

.kps-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.kps-toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
  .kps-hero {
    padding: 56px 20px 44px;
  }

  .kps-section {
    padding: 36px 20px;
  }

  .kps-calculator-card {
    padding: 20px;
  }

  .kps-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .kps-result-grid {
    grid-template-columns: 1fr;
  }

  .kps-kpi-value {
    font-size: 1.4rem;
  }

  .kps-kpi-primary .kps-kpi-value {
    font-size: 1.55rem;
  }

  .kps-dp-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .kps-dp-status {
    text-align: left;
  }

  .kps-chart-card {
    padding: 16px;
  }

  .kps-edu-grid {
    grid-template-columns: 1fr;
  }

  .kps-final-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-kps-cta-primary,
  .btn-kps-cta-secondary {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .kps-hero h1 {
    font-size: 1.6rem;
  }

  .kps-kpi-value {
    font-size: 1.2rem;
  }
}
