/* ================================================================
   Cash Clinic - Shared Styles  ·  النقش الراقي
   Rebranded to the Cash Clinic Design System:
   deep aubergine purple primary, teal + gold accents,
   IBM Plex Sans Arabic. Old token NAMES are kept so all
   existing markup re-skins automatically.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap');

:root {
  /* Brand colors - Cash Clinic Design System */
  --yellow: #D5A347;          /* gold — premium accent (headers, tables, buttons) */
  --yellow-soft: #F7ECD3;     /* gold-100 — soft fills, callouts */
  --yellow-section: #FBF4E2;
  --dark: #2F1748;            /* deep aubergine purple — headings, dark surfaces */
  --gray-900: #1B1226;        /* ink */
  --gray-700: #4A4356;
  --gray-600: #756E80;
  --gray-500: #9C95A6;
  --gray-300: #C7C2CF;
  --gray-200: #E4E1EA;
  --gray-100: #F1EFF4;
  --gray-50: #FAF9FB;
  --accent: #AD8132;          /* gold-700 — accent text on light */
  --accent-deep: #8A6627;
  --orange: #D5A347;
  --orange-soft: #F7ECD3;
  --purple: #2F1748;
  --purple-soft: #F3F0F8;
  --teal: #2A898C;            /* signature secondary — clarity / stability */
  --teal-deep: #1F696B;
  --success: #2A898C;
  --success-light: #D9ECEC;
  --danger: #962D38;          /* burgundy */
  --danger-light: #F6E3E5;
  --blue: #2D4A6B;
  --blue-soft: #DCE6F1;
  --blue-light: #D6ECF7;

  /* Typography — one family does it all (Latin + Arabic) */
  --font-ar: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  --font-en: 'IBM Plex Sans Arabic', system-ui, sans-serif;

  /* Spacing & Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--gray-50);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset for inputs */
input, textarea, button, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; border: none; background: none; }

/* ================================================================
   Dashboard
   ================================================================ */

.dashboard-bg {
  background:
    radial-gradient(circle at 100% 0%, rgba(242,196,2,0.08) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(242,196,2,0.04) 0%, transparent 40%),
    var(--gray-50);
  min-height: 100vh;
}

.dashboard-header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.brand-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand-mark {
  display: flex; align-items: center; gap: 14px;
}
.brand-logo {
  width: 48px; height: 48px;
  background: white;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.brand-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 2px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; color: var(--dark); font-size: 20px; }
.brand-en { font-size: 13px; color: var(--gray-600); font-family: var(--font-en); letter-spacing: 0.5px; }

.dashboard-meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 14px; color: var(--gray-600);
}
.dashboard-meta-pill {
  background: var(--gray-100);
  padding: 6px 12px; border-radius: 99px;
  font-size: 13px;
}

.hero {
  padding: 64px 0 32px;
}
.hero-title {
  font-size: 38px; font-weight: 700; color: var(--dark);
  margin-bottom: 12px; letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: 17px; color: var(--gray-600); max-width: 720px;
  line-height: 1.7;
}
.hero-stats {
  display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap;
}
.stat-card {
  background: white; padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: flex; flex-direction: column; gap: 4px;
  min-width: 160px;
}
.stat-num { font-size: 28px; font-weight: 700; color: var(--dark); }
.stat-label { font-size: 13px; color: var(--gray-600); }
.stat-card.accent { border-color: var(--yellow); background: var(--yellow-soft); }
.stat-card.accent .stat-num { color: var(--accent); }

/* Section */
.section {
  padding: 32px 0;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px;
}
.section-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 700; color: var(--dark);
}
.section-title-bar {
  width: 4px; height: 24px; background: var(--yellow); border-radius: 2px;
}
.section-en {
  font-size: 13px; color: var(--gray-500); font-family: var(--font-en);
  margin-right: 12px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.2s ease;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gray-200);
  transition: background 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--yellow);
}
.card:hover::before { background: var(--yellow); }

.card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.card-num {
  width: 40px; height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: var(--gray-700);
  flex-shrink: 0;
}
.card.accent .card-num { background: var(--yellow); color: var(--dark); }
.card.beneficiary .card-num { background: var(--blue-light); color: var(--blue); }
.card.financial .card-num { background: var(--success-light); color: var(--success); }

.status-pill {
  font-size: 11px; padding: 4px 10px; border-radius: 99px;
  background: var(--gray-100); color: var(--gray-600);
  font-weight: 500;
}
.status-pill.partial { background: var(--yellow-soft); color: var(--accent); }
.status-pill.complete { background: var(--success-light); color: var(--success); }

.card-title {
  font-size: 16px; font-weight: 700; color: var(--dark);
  line-height: 1.4;
}
.card-desc {
  font-size: 14px; color: var(--gray-600); line-height: 1.6;
}
.card-cta {
  display: flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: 14px;
  margin-top: auto; padding-top: 8px;
}
.card-cta::after { content: '←'; transition: transform 0.2s; }
.card:hover .card-cta::after { transform: translateX(-4px); }

.dashboard-footer {
  text-align: center; padding: 48px 0 32px;
  font-size: 13px; color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
  margin-top: 48px;
}

/* ================================================================
   Document / Report styles
   ================================================================ */

.report-bg {
  background: var(--gray-100);
  min-height: 100vh;
  padding: 0 0 60px;
}

.toolbar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.toolbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.btn-back {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--gray-700); text-decoration: none;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.btn-back:hover { background: var(--gray-100); }

.toolbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.save-status {
  font-size: 13px; color: var(--gray-600);
  display: flex; align-items: center; gap: 6px;
  padding-left: 8px;
}
.save-status.saving { color: var(--accent); }
.save-status.saved { color: var(--success); }
.save-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
}
.saving .save-dot { background: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.btn {
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-secondary {
  background: white; color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-secondary:hover {
  background: var(--gray-50); border-color: var(--gray-500);
}
.btn-primary {
  background: var(--yellow); color: var(--dark);
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(242,196,2,0.3);
}
.btn-primary:hover {
  background: #E5AB00; transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(242,196,2,0.4);
}
.btn-danger {
  background: white; color: var(--danger); border-color: var(--gray-300);
}
.btn-danger:hover { background: var(--danger-light); border-color: var(--danger); }

.document {
  background: white;
  max-width: 880px;
  margin: 32px auto;
  padding: 56px 64px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  position: relative;
}

.doc-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--yellow);
  margin-bottom: 36px;
}
.doc-brand {
  display: flex; align-items: center; gap: 12px;
}
.doc-brand-mark {
  width: 36px; height: 36px;
  background: var(--yellow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--dark); font-size: 18px;
}
.doc-brand-name {
  font-weight: 700; font-size: 18px; color: var(--dark);
}
.doc-brand-en {
  font-size: 12px; color: var(--gray-600); font-family: var(--font-en);
}
.doc-subtitle {
  font-size: 13px; color: var(--gray-600); align-self: flex-end;
  text-align: left;
}

.doc-title-block {
  text-align: center;
  margin: 32px 0 40px;
  padding: 32px 24px;
  background: var(--yellow-soft);
  border-radius: var(--radius);
}
.doc-title {
  font-size: 30px; font-weight: 700; color: var(--dark);
  margin-bottom: 8px; line-height: 1.3;
}
.doc-title-en {
  font-family: var(--font-en); font-size: 14px;
  color: var(--gray-600); letter-spacing: 0.5px;
}

.callout {
  background: var(--yellow-soft);
  border-right: 4px solid var(--yellow);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  line-height: 1.7;
  color: var(--dark);
}
.callout.success {
  background: var(--success-light);
  border-right-color: var(--success);
}
.callout.danger {
  background: var(--danger-light);
  border-right-color: var(--danger);
  color: var(--danger);
}
.callout.bold { font-weight: 600; }

h1.section-h {
  font-size: 22px; font-weight: 700; color: var(--dark);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--yellow);
}
h2.subsection-h {
  font-size: 18px; font-weight: 700; color: var(--accent);
  margin: 24px 0 12px;
}
h3.minor-h {
  font-size: 16px; font-weight: 700; color: var(--dark);
  margin: 18px 0 8px;
}

p { margin: 8px 0; line-height: 1.8; }
.muted { color: var(--gray-600); font-size: 14px; font-style: italic; }
.note { font-size: 13px; color: var(--gray-600); font-style: italic; margin: 8px 0; }

/* ================================================================
   Form inputs
   ================================================================ */

.field {
  border: none;
  background: transparent;
  border-bottom: 1px dashed var(--gray-400, var(--gray-500));
  padding: 4px 6px;
  outline: none;
  width: 100%;
  font-size: inherit;
  color: var(--dark);
  transition: border-color 0.15s, background 0.15s;
}
.field:focus, .field:hover {
  border-bottom-color: var(--yellow);
  background: var(--yellow-soft);
}
.field-inline {
  display: inline-block;
  width: auto;
  min-width: 120px;
}
.field-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

textarea.field {
  resize: vertical;
  min-height: 60px;
  border: 1px dashed var(--gray-400, var(--gray-500));
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  line-height: 1.7;
}
textarea.field:focus, textarea.field:hover {
  border-color: var(--yellow);
  background: var(--yellow-soft);
}
textarea.field.tall { min-height: 120px; }

/* Checkboxes */
.cb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 16px;
  margin: 8px 0;
}
.cb-line {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 6px 0; line-height: 1.7;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.15s;
}
.cb-line:hover { background: var(--gray-50); }
.cb-line input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  border: 2px solid var(--gray-400, #9CA3AF);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 4px;
  transition: all 0.15s;
}
.cb-line input[type="checkbox"]:hover { border-color: var(--yellow); }
.cb-line input[type="checkbox"]:checked {
  background: var(--yellow);
  border-color: var(--yellow);
}
.cb-line input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 0px;
  width: 5px; height: 10px;
  border: solid var(--dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cb-line.danger input[type="checkbox"]:checked {
  background: var(--danger); border-color: var(--danger);
}
.cb-line.danger input[type="checkbox"]:checked::after { border-color: white; }

/* Radio groups (rendered as choice pills) */
.choice-group {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.choice {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 99px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.choice input[type="radio"], .choice input[type="checkbox"] {
  appearance: none;
  width: 14px; height: 14px;
  border: 2px solid var(--gray-400, #9CA3AF);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}
.choice input[type="checkbox"] { border-radius: 3px; }
.choice input:checked {
  background: var(--yellow); border-color: var(--yellow);
}
.choice input[type="radio"]:checked::after {
  content: ''; position: absolute;
  left: 2px; top: 2px;
  width: 6px; height: 6px; background: var(--dark); border-radius: 50%;
}
.choice:has(input:checked) {
  background: var(--yellow-soft);
  border-color: var(--yellow);
  font-weight: 600;
}

/* Scale 1-5 */
.scale {
  display: inline-flex; gap: 4px;
}
.scale label {
  width: 32px; height: 32px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  background: white;
  transition: all 0.15s;
}
.scale label:hover { background: var(--gray-50); }
.scale input { display: none; }
.scale label:has(input:checked) {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

/* ================================================================
   Tables
   ================================================================ */

.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.tbl th, .tbl td {
  border: 1px solid var(--gray-300);
  padding: 10px 14px;
  text-align: right;
  vertical-align: middle;
}
.tbl thead th {
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}
.tbl tbody tr:nth-child(even) { background: var(--gray-50); }
.tbl tbody tr:hover { background: var(--yellow-soft); }

.tbl td.label {
  background: var(--yellow-soft);
  font-weight: 600;
  width: 32%;
}
.tbl td.center { text-align: center; }
.tbl td.num { text-align: center; font-variant-numeric: tabular-nums; }
.tbl td.before { background: var(--danger-light); }
.tbl td.after { background: var(--success-light); font-weight: 600; }
.tbl td.subhead {
  background: var(--yellow-section);
  font-weight: 700;
  text-align: center;
}
.tbl td.total {
  background: var(--yellow);
  font-weight: 700;
}
.tbl td.total.danger { color: var(--danger); }
.tbl td.total.success { color: var(--success); }

/* signature block */
.sig-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0 16px;
}
.sig-grid.three { grid-template-columns: repeat(3, 1fr); }
.sig-card {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: white;
}
.sig-card-title {
  font-weight: 700; text-align: center; margin-bottom: 16px;
  color: var(--dark);
}
.sig-card .field { margin: 6px 0; }
.sig-row {
  display: flex; align-items: baseline; gap: 8px;
  margin: 6px 0;
}
.sig-row label { font-weight: 600; min-width: 60px; font-size: 14px; }

.disclaimer {
  font-size: 13px;
  color: var(--gray-600);
  font-style: italic;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

/* responsive */
@media (max-width: 700px) {
  .container { padding: 0 16px; }
  .document { margin: 16px; padding: 24px 20px; }
  .hero-title { font-size: 28px; }
  .doc-title { font-size: 22px; }
  .cards-grid { grid-template-columns: 1fr; }
  .doc-header { flex-direction: column; gap: 12px; }
  .doc-subtitle { text-align: right; }
  .toolbar-inner { gap: 8px; }
  .btn { padding: 8px 12px; font-size: 13px; }
  .sig-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   Print
   ================================================================ */

@page {
  size: A4;
  margin: 18mm 16mm;
}

@media print {
  body, .report-bg { background: white !important; }
  .no-print { display: none !important; }

  .document {
    box-shadow: none;
    margin: 0;
    padding: 0;
    max-width: 100%;
    border-radius: 0;
  }

  .doc-title-block {
    background: transparent;
    border: 2px solid var(--yellow);
    margin-top: 0;
  }

  /* Form inputs print as flat text */
  .field {
    border-bottom: 1px solid var(--gray-400, #9CA3AF) !important;
    background: transparent !important;
    padding: 1px 4px;
    color: var(--dark) !important;
  }
  textarea.field {
    border: 1px solid var(--gray-400, #9CA3AF) !important;
    min-height: auto;
  }
  .cb-line:hover, .choice:hover { background: transparent; }
  .tbl tbody tr:hover { background: transparent; }
  .tbl tbody tr:nth-child(even) { background: white; }

  /* Page-break helpers */
  .page-break { page-break-before: always; break-before: page; }
  h1.section-h { page-break-after: avoid; }
  .tbl, .callout, .sig-grid { page-break-inside: avoid; }

  /* Print colors */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .callout, .doc-title-block, .tbl thead th,
  .tbl td.label, .tbl td.subhead, .tbl td.total,
  .tbl td.before, .tbl td.after, .stat-card.accent {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Show URL after links optionally? Disabled for cleanliness */
  a[href]:after { content: ''; }

  .document::after {
    content: 'سرّي – لا يُتداول إلا بين كاش كلينيك والجهة المرجِعة';
    display: block;
    text-align: center;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-300);
    font-size: 11px;
    color: var(--gray-600);
    font-style: italic;
  }
}

/* ================================================================
   Landing / Pitch Deck Styles
   ================================================================ */

.landing-bg {
  background: white;
  min-height: 100vh;
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-links a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-links a:hover { background: var(--gray-100); color: var(--dark); }
.nav-cta {
  background: var(--yellow) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  padding: 9px 18px !important;
  box-shadow: 0 2px 4px rgba(242,196,2,0.25);
}
.nav-cta:hover {
  background: #E5AB00 !important;
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* Hero */
.hero-landing {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-landing::before {
  content: '';
  position: absolute;
  top: -200px; right: -300px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(242,196,2,0.18) 0%, transparent 60%);
  z-index: 0;
}
.hero-landing-inner {
  position: relative; z-index: 1;
  max-width: 880px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow-soft);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.hero-headline {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero-headline .highlight {
  position: relative;
  display: inline-block;
  color: var(--dark);
}
.hero-headline .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 14px;
  background: var(--yellow);
  z-index: -1;
  opacity: 0.7;
  border-radius: 4px;
}
.hero-lead {
  font-size: 19px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 700px;
}
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius);
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-large.primary {
  background: var(--dark);
  color: white;
  box-shadow: 0 4px 12px rgba(31,41,55,0.2);
}
.btn-large.primary:hover {
  background: black;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(31,41,55,0.25);
}
.btn-large.secondary {
  background: white;
  color: var(--dark);
  border-color: var(--gray-300);
}
.btn-large.secondary:hover {
  border-color: var(--dark);
}
.btn-large.yellow {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(242,196,2,0.35);
}
.btn-large.yellow:hover {
  background: #E5AB00;
  transform: translateY(-2px);
}

/* Stats strip */
.stats-strip {
  background: var(--dark);
  color: white;
  padding: 56px 0;
}
.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.stat-strip-item {
  text-align: center;
}
.stat-strip-num {
  font-size: 56px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -2px;
  font-family: var(--font-en);
}
.stat-strip-label {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-top: 12px;
  line-height: 1.5;
}

/* Section */
.section-large {
  padding: 96px 0;
}
.section-large.alt {
  background: var(--gray-50);
}
.section-large.dark {
  background: var(--dark);
  color: white;
}
.section-large.dark h2,
.section-large.dark .section-eyebrow {
  color: white;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-en);
}
.section-headline {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 18px;
  color: var(--gray-700);
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 48px;
}
.section-large.dark .section-lead { color: rgba(255,255,255,0.8); }

/* Problem/Solution two-column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.problem-list {
  display: flex; flex-direction: column; gap: 16px;
}
.problem-item {
  background: white;
  border: 1px solid var(--gray-200);
  border-right: 4px solid var(--danger);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; gap: 14px; align-items: flex-start;
}
.problem-icon {
  width: 36px; height: 36px;
  background: var(--danger-light);
  color: var(--danger);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 18px;
}
.problem-text {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.6;
}
.problem-text strong { color: var(--dark); display: block; margin-bottom: 4px; }

.solution-card {
  background: linear-gradient(135deg, var(--yellow-soft), white);
  border: 1px solid var(--yellow);
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
}
.solution-card-badge {
  position: absolute;
  top: -16px; right: 32px;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}
.solution-headline {
  font-size: 26px; font-weight: 700; color: var(--dark);
  margin-bottom: 16px;
}
.solution-list { display: flex; flex-direction: column; gap: 12px; }
.solution-list-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--gray-700); line-height: 1.6;
}
.check-mark {
  width: 22px; height: 22px;
  background: var(--success); color: white;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  margin-top: 2px;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s;
  position: relative;
}
.service-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-icon {
  width: 56px; height: 56px;
  background: var(--yellow-soft);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-icon svg { width: 28px; height: 28px; }
.service-name {
  font-size: 19px; font-weight: 700; color: var(--dark);
  margin-bottom: 8px; line-height: 1.3;
}
.service-desc {
  font-size: 14px; color: var(--gray-600); line-height: 1.6;
}

/* Methodology timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
@media (max-width: 880px) { .timeline { grid-template-columns: 1fr; } }
.timeline-step {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.timeline-step::before {
  content: '';
  position: absolute;
  top: 50%; right: -16px;
  width: 16px; height: 2px;
  background: var(--yellow);
  z-index: 1;
}
.timeline-step:last-child::before { display: none; }
@media (max-width: 880px) {
  .timeline-step::before { display: none; }
}
.timeline-num {
  width: 44px; height: 44px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 16px;
  font-family: var(--font-en);
}
.timeline-week {
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-family: var(--font-en);
}
.timeline-name {
  font-size: 17px; font-weight: 700; color: var(--dark);
  margin-bottom: 8px; line-height: 1.3;
}
.timeline-desc {
  font-size: 13px; color: var(--gray-600); line-height: 1.6;
}

/* Process flow (charity workflow) */
.process-flow {
  display: flex; flex-direction: column; gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
}
.process-step:last-child { border-bottom: none; }
.process-step-num {
  background: var(--dark);
  color: var(--yellow);
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 24px;
  font-family: var(--font-en);
  position: relative;
}
.process-step-num::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  width: 2px; height: 24px;
  background: var(--gray-300);
}
.process-step:last-child .process-step-num::after { display: none; }
.process-step-content h4 {
  font-size: 19px; font-weight: 700; color: var(--dark);
  margin-bottom: 6px;
}
.process-step-content p {
  color: var(--gray-700); line-height: 1.7;
  margin-bottom: 8px;
}
.process-step-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px;
}
.process-tag {
  background: var(--yellow-soft);
  color: var(--accent);
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 99px;
}

/* Vision/Mission */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 880px) { .vision-grid { grid-template-columns: 1fr; } }
.vision-card {
  background: var(--dark);
  color: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.vision-card::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(242,196,2,0.2) 0%, transparent 70%);
}
.vision-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--yellow);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-en);
}
.vision-text {
  font-size: 22px; line-height: 1.6;
  font-weight: 500;
  position: relative; z-index: 1;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.team-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.2s;
}
.team-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 0 0 4px var(--yellow);
  transition: transform 0.3s ease;
}
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.team-card:hover .team-avatar { transform: scale(1.05); }
.team-card:nth-child(1) .team-avatar { box-shadow: 0 0 0 4px #F2C402; }
.team-card:nth-child(2) .team-avatar { box-shadow: 0 0 0 4px #702084; }
.team-card:nth-child(3) .team-avatar { box-shadow: 0 0 0 4px #2578C4; }
.team-card:nth-child(4) .team-avatar { box-shadow: 0 0 0 4px #F3AF2F; }
.team-name {
  font-size: 18px; font-weight: 700;
  color: var(--dark); margin-bottom: 4px;
}
.team-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.team-bio {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Final CTA */
.final-cta {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--yellow) 0%, #F59E0B 100%);
  color: var(--dark);
  text-align: center;
}
.final-cta-headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.final-cta-lead {
  font-size: 18px; line-height: 1.6;
  max-width: 640px; margin: 0 auto 32px;
}

/* Landing footer */
.landing-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  font-size: 14px;
}
.landing-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 32px;
}
@media (max-width: 760px) { .landing-footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand-name {
  color: white; font-size: 20px; font-weight: 700;
  margin-bottom: 8px;
}
.footer-tagline { line-height: 1.7; max-width: 360px; }
.footer-col h5 {
  color: white; font-size: 14px;
  margin-bottom: 12px; font-weight: 700;
  letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.15s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

/* Print for landing - turn into brochure-style PDF */
@media print {
  .nav, .final-cta a, .hero-ctas { display: none !important; }
  .hero-landing { padding: 32px 0; }
  .stats-strip { background: white; color: var(--dark); border: 1px solid var(--gray-300); padding: 24px 0; }
  .stats-strip .stat-strip-num { color: var(--accent); }
  .stats-strip .stat-strip-label { color: var(--gray-700); }
  .section-large { padding: 32px 0; page-break-inside: avoid; }
  .section-large.dark { background: white; color: var(--dark); border: 1px solid var(--gray-300); }
  .section-large.dark .section-headline,
  .section-large.dark .section-lead { color: var(--dark); }
  .vision-card { background: var(--yellow-soft); color: var(--dark); border: 1px solid var(--yellow); }
  .vision-card .vision-eyebrow { color: var(--accent); }
  .final-cta { background: var(--yellow-soft); }
  .timeline-step::before { display: none; }
  .landing-footer { background: white; color: var(--gray-700); border-top: 2px solid var(--yellow); }
  .landing-footer .footer-brand-name { color: var(--dark); }
  .landing-footer .footer-col h5 { color: var(--dark); }
  .landing-footer .footer-col a { color: var(--gray-700); }
  body { background: white !important; }
}

/* ================================================================
   Cash Clinic brand overrides  \u00b7  logo mark + accent fixes
   ================================================================ */

/* Swap the old "\u0643" letter mark for the real Cash Clinic mark */
.brand-logo {
  background-color: var(--dark) !important;
  background-image: url('../brand/mark-cream.png') !important;
  background-size: 70% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
  overflow: hidden;
}
.brand-logo img { display: none !important; }

/* ---- Branded report masthead (committee / beneficiary docs) ---- */
.doc-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: var(--dark) !important;
  border: 0 !important;
  border-radius: 18px !important;
  padding: 22px 28px !important;
  margin-bottom: 32px !important;
  box-shadow: 0 8px 24px rgba(47,23,72,0.20) !important;
}
.doc-brand { gap: 14px !important; }
.doc-brand-mark {
  width: 50px !important; height: 50px !important;
  background: transparent !important;
  background-image: url('../brand/mark-cream.png') !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  overflow: hidden;
}
.doc-brand-name { color: var(--cream, #FFE7BC) !important; font-weight: 600 !important; font-size: 21px !important; letter-spacing: -0.01em; }
.doc-brand-en { color: var(--yellow) !important; font-size: 11px !important; letter-spacing: 0.18em !important; text-transform: uppercase; }
.doc-subtitle { color: rgba(255,231,188,0.82) !important; align-self: center !important; font-size: 13px !important; line-height: 1.5; }
.doc-subtitle span { color: var(--yellow) !important; }

/* Primary buttons \u2014 brand gold, purple text, purple-tinted shadow */
.btn-primary {
  box-shadow: 0 2px 6px rgba(47,23,72,0.18) !important;
}
.btn-primary:hover {
  background: var(--accent-deep) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(47,23,72,0.24) !important;
}

/* Brand wordmark refinement */
.brand-name { letter-spacing: -0.01em; }
