/* ============================================
   SMARTCOURT RWANDA — MAIN STYLESHEET
   Design: Legal-institutional with Rwandan
   identity. Deep indigo + warm saffron accent.
   IBM Plex type family throughout.
   ============================================ */

:root {
  --indigo-900: #0F1B35;
  --indigo-800: #1A2D52;
  --indigo-700: #243E6E;
  --indigo-600: #2E5090;
  --indigo-200: #C5D4F0;
  --indigo-100: #E8EEF9;
  --indigo-50:  #F4F7FD;

  --saffron:    #D4820A;
  --saffron-lt: #FDF3E0;
  --saffron-dk: #A36208;

  --green-700:  #166534;
  --green-100:  #DCFCE7;

  --red-700:    #B91C1C;
  --red-100:    #FEE2E2;

  --slate-700:  #334155;
  --slate-500:  #64748B;
  --slate-300:  #CBD5E1;
  --slate-100:  #F1F5F9;
  --white:      #FFFFFF;

  --serif: 'IBM Plex Serif', Georgia, serif;
  --sans:  'IBM Plex Sans', system-ui, sans-serif;
  --mono:  'IBM Plex Mono', monospace;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 3px rgba(15,27,53,.10);
  --shadow:    0 4px 16px rgba(15,27,53,.12);
  --shadow-lg: 0 12px 40px rgba(15,27,53,.18);

  --nav-h: 64px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; color: var(--indigo-900); background: var(--white); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--sans); }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 { font-family: var(--serif); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.7; color: var(--slate-700); }
em { font-style: italic; }

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-title { text-align: center; margin-bottom: 16px; }
.section-sub { text-align: center; color: var(--slate-500); max-width: 600px; margin: 0 auto 56px; font-size: 1.05rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 500; font-family: var(--sans);
  transition: all .18s ease; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--indigo-800); color: var(--white); }
.btn-primary:hover { background: var(--indigo-700); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: transparent; color: var(--indigo-800); border-color: var(--indigo-600); }
.btn-outline:hover { background: var(--indigo-50); }
.btn-saffron { background: var(--saffron); color: var(--white); }
.btn-saffron:hover { background: var(--saffron-dk); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--indigo-900);
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; background: var(--saffron);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-family: var(--serif); font-weight: 600;
  color: var(--white); font-size: .85rem; letter-spacing: .5px;
}
.logo-text { font-size: .95rem; font-weight: 500; color: var(--white); }
.logo-text em { font-style: normal; color: var(--indigo-200); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 6px 14px; border-radius: var(--radius-sm);
  color: var(--indigo-200); font-size: .875rem; font-weight: 400;
  transition: all .15s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.1); color: var(--white); }
.nav-lang { display: flex; gap: 4px; margin-left: 16px; }
.lang-btn {
  padding: 4px 10px; border-radius: var(--radius-sm);
  color: var(--indigo-200); font-size: .8rem; font-family: var(--mono);
  border: 1px solid transparent; transition: all .15s;
}
.lang-btn.active { background: rgba(212,130,10,.2); color: var(--saffron); border-color: rgba(212,130,10,.3); }
.lang-btn:hover:not(.active) { color: var(--white); border-color: rgba(255,255,255,.2); }
.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-mobile-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all .2s; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo-800) 60%, var(--indigo-700) 100%);
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 0 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-size: .8rem; font-family: var(--mono); color: var(--saffron);
  letter-spacing: .05em; margin-bottom: 20px;
  padding: 6px 12px; background: rgba(212,130,10,.15);
  border-radius: var(--radius-sm); display: inline-block;
  border: 1px solid rgba(212,130,10,.25);
}
.hero-title { color: var(--white); margin-bottom: 20px; }
.hero-title em { color: var(--saffron); font-style: italic; }
.hero-sub { color: var(--indigo-200); font-size: 1.1rem; max-width: 500px; margin-bottom: 36px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 32px; }
.stat-num { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--white); }
.stat-label { font-size: .8rem; color: var(--indigo-200); font-family: var(--mono); }

/* Formula card */
.formula-card {
  background: var(--indigo-800);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.formula-header {
  background: rgba(255,255,255,.06);
  padding: 14px 20px;
  font-size: .8rem; font-family: var(--mono);
  color: var(--indigo-200);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.formula-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.formula-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.formula-line.divider { border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; margin-top: 2px; }
.formula-line.result { border-top: 2px solid var(--saffron); padding-top: 12px; margin-top: 4px; }
.var { font-family: var(--mono); font-size: .8rem; color: var(--indigo-200); flex: 1; }
.eq  { color: rgba(255,255,255,.3); font-family: var(--mono); }
.val { font-family: var(--mono); font-size: .85rem; color: var(--white); font-weight: 500; }
.val.highlight { color: var(--saffron); }
.val.award { color: var(--saffron); font-size: 1.1rem; font-weight: 600; }
.formula-footer {
  padding: 12px 20px;
  font-size: .75rem; font-family: var(--mono);
  color: rgba(255,255,255,.3);
  border-top: 1px solid rgba(255,255,255,.06);
}
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--indigo-200); font-size: .75rem; font-family: var(--mono);
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--indigo-200), transparent); }

/* ── HOW IT WORKS ── */
.how { background: var(--indigo-50); }
.steps {
  display: flex; align-items: flex-start; gap: 0;
  justify-content: center; flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 220px; max-width: 280px;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-300);
}
.step-num { font-family: var(--mono); font-size: .75rem; color: var(--saffron); margin-bottom: 12px; font-weight: 500; }
.step-icon { font-size: 2rem; margin-bottom: 16px; }
.step h3 { margin-bottom: 12px; font-size: 1.1rem; }
.step p { font-size: .9rem; color: var(--slate-500); }
.step-arrow { font-size: 1.5rem; color: var(--indigo-200); align-self: center; padding: 0 8px; flex-shrink: 0; }

/* ── CASE GRID ── */
.cases-preview { background: var(--white); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 40px;
}
.case-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--slate-300);
  background: var(--white);
  transition: all .2s ease; cursor: pointer;
}
.case-card:hover {
  border-color: var(--indigo-600);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.case-icon { font-size: 1.6rem; margin-bottom: 4px; }
.case-card h4 { font-size: .95rem; color: var(--indigo-900); }
.case-card p { font-size: .82rem; color: var(--slate-500); line-height: 1.5; flex: 1; }
.case-meta { font-size: .72rem; font-family: var(--mono); color: var(--saffron); margin-top: 8px; }
.cases-cta { text-align: center; }

/* ── TRUST SECTION ── */
.trust { background: var(--indigo-900); color: var(--white); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.trust .section-title, .trust h2 { color: var(--white); margin-bottom: 20px; }
.trust h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.trust p { color: var(--indigo-200); margin-bottom: 24px; }
.trust-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.trust-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--indigo-200);
}
.trust-list li::before { content: '✓'; color: var(--saffron); font-weight: 600; flex-shrink: 0; margin-top: 1px; }

/* Audit card */
.audit-card {
  background: var(--indigo-800); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); overflow: hidden;
}
.audit-header {
  background: rgba(255,255,255,.06); padding: 14px 20px;
  font-size: .8rem; font-family: var(--mono); color: var(--indigo-200);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.audit-line {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.05);
}
.audit-line.highlight { background: rgba(212,130,10,.12); border-bottom: none; }
.audit-step { font-family: var(--mono); font-size: .7rem; color: var(--saffron); width: 50px; flex-shrink: 0; }
.audit-desc { flex: 1; font-size: .85rem; color: var(--indigo-200); }
.audit-val { font-family: var(--mono); font-size: .85rem; color: var(--white); font-weight: 500; }
.audit-line.highlight .audit-val { color: var(--saffron); font-size: 1rem; }
.audit-badge {
  padding: 12px 20px; font-size: .75rem;
  font-family: var(--mono); color: rgba(255,255,255,.3);
  text-align: center;
}

/* ── FOOTER ── */
.footer { background: var(--indigo-900); border-top: 1px solid rgba(255,255,255,.06); padding: 48px 0; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 500; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: .875rem; color: var(--indigo-200); transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.footer-legal p { font-size: .78rem; color: rgba(255,255,255,.3); font-family: var(--mono); line-height: 1.8; }

/* ── FORMS ── */
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: .875rem; font-weight: 500; color: var(--indigo-900); margin-bottom: 6px; }
.form-label .required { color: var(--red-700); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--slate-300); border-radius: var(--radius);
  font-size: .95rem; font-family: var(--sans); color: var(--indigo-900);
  background: var(--white); transition: border-color .15s;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--indigo-600);
  box-shadow: 0 0 0 3px rgba(46,80,144,.12);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: .8rem; color: var(--slate-500); margin-top: 5px; }
.form-error { font-size: .8rem; color: var(--red-700); margin-top: 5px; display: none; }
.form-input.invalid { border-color: var(--red-700); }
.form-input.invalid + .form-error { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-section { margin-bottom: 40px; }
.form-section-title {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  color: var(--indigo-900); margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--indigo-100);
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--slate-300); border-radius: var(--radius);
  padding: 32px; text-align: center; transition: all .2s;
  cursor: pointer; background: var(--slate-100);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--indigo-600); background: var(--indigo-50);
}
.upload-zone input[type="file"] { display: none; }
.upload-icon { font-size: 2rem; margin-bottom: 12px; }
.upload-zone p { font-size: .875rem; color: var(--slate-500); }
.upload-zone strong { color: var(--indigo-700); }
.uploaded-files { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.uploaded-file {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--white); border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm); font-size: .82rem;
}
.uploaded-file .file-remove { margin-left: auto; color: var(--red-700); cursor: pointer; font-size: .8rem; }

/* Boolean radio */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-option {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 16px; border: 1.5px solid var(--slate-300);
  border-radius: var(--radius); transition: all .15s;
}
.radio-option input { display: none; }
.radio-option:has(input:checked) { border-color: var(--indigo-600); background: var(--indigo-50); }
.radio-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--slate-300); flex-shrink: 0; }
.radio-option:has(input:checked) .radio-dot { border-color: var(--indigo-600); background: var(--indigo-600); }

/* Progress bar */
.progress-bar-wrap { margin-bottom: 40px; }
.progress-steps {
  display: flex; align-items: center; gap: 0;
  counter-reset: step;
}
.progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 1; position: relative;
}
.progress-step:not(:last-child)::after {
  content: ''; position: absolute; top: 14px; left: 50%; width: 100%;
  height: 2px; background: var(--slate-300); z-index: 0;
}
.progress-step.done::after, .progress-step.active::after { background: var(--indigo-600); }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--slate-300); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-family: var(--mono); z-index: 1;
  position: relative; transition: all .2s;
}
.progress-step.active .step-dot { border-color: var(--indigo-600); background: var(--indigo-600); color: var(--white); }
.progress-step.done .step-dot { border-color: var(--green-700); background: var(--green-700); color: var(--white); }
.step-label { font-size: .72rem; color: var(--slate-500); text-align: center; font-family: var(--mono); }
.progress-step.active .step-label { color: var(--indigo-700); font-weight: 500; }

/* ── RESULT CARD ── */
.result-card {
  background: var(--white); border: 2px solid var(--indigo-600);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.result-header {
  background: var(--indigo-900); color: var(--white);
  padding: 24px 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.result-header h3 { font-size: 1rem; color: var(--indigo-200); font-family: var(--sans); font-weight: 400; }
.result-header .case-num { font-family: var(--mono); font-size: .8rem; color: var(--saffron); }
.result-award-block { text-align: center; padding: 40px 32px; border-bottom: 1px solid var(--slate-300); }
.result-award-label { font-size: .8rem; font-family: var(--mono); color: var(--slate-500); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.result-award-amount { font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--indigo-900); }
.result-award-currency { font-size: 1.2rem; color: var(--slate-500); margin-left: 4px; }
.result-breakdown { padding: 24px 32px; }
.breakdown-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--slate-100);
  font-size: .9rem;
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-label { color: var(--slate-600); }
.breakdown-value { font-family: var(--mono); font-weight: 500; }
.breakdown-value.positive { color: var(--green-700); }
.breakdown-value.negative { color: var(--red-700); }
.breakdown-value.total { color: var(--indigo-900); font-size: 1.05rem; }
.result-clause {
  margin: 0 32px 24px; padding: 12px 16px;
  background: var(--indigo-50); border-left: 3px solid var(--indigo-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .8rem; font-family: var(--mono); color: var(--indigo-700);
}
.result-actions { padding: 24px 32px; background: var(--slate-100); display: flex; gap: 12px; flex-wrap: wrap; }

/* ── STATUS BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-family: var(--mono);
}
.badge-pending { background: #FEF9C3; color: #854D0E; }
.badge-computing { background: var(--indigo-100); color: var(--indigo-700); }
.badge-review { background: #E0E7FF; color: #3730A3; }
.badge-complete { background: var(--green-100); color: var(--green-700); }
.badge-escalated { background: var(--red-100); color: var(--red-700); }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--indigo-900); padding: 60px 0 48px;
  color: var(--white);
}
.page-header-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: var(--indigo-200); max-width: 600px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; font-size: .8rem; font-family: var(--mono); color: var(--indigo-200); }
.breadcrumb a { color: var(--saffron); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ── TABLES ── */
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th {
  text-align: left; padding: 12px 16px;
  background: var(--indigo-900); color: var(--white);
  font-weight: 500; font-size: .8rem; font-family: var(--mono);
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--slate-100); }
.data-table tr:hover td { background: var(--indigo-50); }
.data-table .amount { font-family: var(--mono); text-align: right; }

/* ── CARDS GENERIC ── */
.card {
  background: var(--white); border: 1px solid var(--slate-300);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.card-title { font-size: 1rem; font-weight: 600; font-family: var(--serif); }

/* ── ALERTS ── */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  font-size: .875rem; display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 20px;
}
.alert-info { background: var(--indigo-100); color: var(--indigo-800); border: 1px solid var(--indigo-200); }
.alert-success { background: var(--green-100); color: var(--green-700); }
.alert-warning { background: #FEF9C3; color: #854D0E; border: 1px solid #FDE047; }
.alert-error { background: var(--red-100); color: var(--red-700); }

/* ── SIDEBAR LAYOUT ── */
.layout-sidebar { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.sidebar-nav { position: sticky; top: calc(var(--nav-h) + 24px); }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--slate-600); transition: all .15s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover { color: var(--indigo-900); background: var(--indigo-50); }
.sidebar-nav a.active { color: var(--indigo-700); background: var(--indigo-50); border-left-color: var(--indigo-600); font-weight: 500; }

/* ── TOOLTIP ── */
.tooltip { position: relative; display: inline-flex; }
.tooltip-trigger { cursor: help; color: var(--slate-500); font-size: .8rem; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--slate-300); display: inline-flex; align-items: center; justify-content: center; }
.tooltip-content {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--indigo-900); color: var(--white); font-size: .78rem;
  padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 10;
}
.tooltip:hover .tooltip-content { opacity: 1; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,27,53,.6);
  display: none; align-items: center; justify-content: center; z-index: 200;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header { padding: 24px 28px; border-bottom: 1px solid var(--slate-300); display: flex; justify-content: space-between; align-items: center; }
.modal-close { font-size: 1.2rem; color: var(--slate-500); cursor: pointer; }
.modal-body { padding: 28px; }
.modal-footer { padding: 20px 28px; border-top: 1px solid var(--slate-300); display: flex; gap: 12px; justify-content: flex-end; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 700px) {
  .nav-links, .nav-lang { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-inner.mobile-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--indigo-900); padding: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 99;
  }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .case-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .case-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .progress-steps { gap: 0; }
}

/* ── PRINT ── */
@media print {
  .nav, .hero-scroll, footer, .btn { display: none !important; }
  body { font-size: 12pt; }
  .result-card { box-shadow: none; border: 1px solid #000; }
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .4s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
