/* ============================================================
   همراه سلامت زائران اربعین — Sarop Arbaeen Public Health Portal
   Mobile-first, RTL-first, WCAG 2.2 AA oriented
   ============================================================ */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
}

:root {
  --c-bg: #f7faf9;
  --c-surface: #ffffff;
  --c-surface-2: #eef5f3;
  --c-text: #1a2b28;
  --c-text-2: #43605a;
  --c-primary: #0e7466;
  --c-primary-strong: #0a5c51;
  --c-primary-soft: #d7ece8;
  --c-accent: #b45309;
  --c-accent-soft: #fdf3e3;
  --c-border: #d8e5e2;
  --c-danger: #b3261e;
  --c-danger-strong: #8f1d16;
  --c-danger-soft: #fdecea;
  --c-danger-border: #f3c1bd;
  --c-focus: #7c3aed;
  --c-link: #0a5c51;
  --shadow-1: 0 1px 3px rgba(16, 42, 38, 0.08), 0 4px 14px rgba(16, 42, 38, 0.06);
  --shadow-2: 0 6px 24px rgba(16, 42, 38, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 72rem;
  --font-sans: "Vazirmatn", "IRANSans", "Noto Naskh Arabic", "Segoe UI",
    Tahoma, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0e1715;
    --c-surface: #16221f;
    --c-surface-2: #1c2b28;
    --c-text: #e4efec;
    --c-text-2: #a3bdb7;
    --c-primary: #34b3a2;
    --c-primary-strong: #5eccbd;
    --c-primary-soft: #133430;
    --c-accent: #e8a04c;
    --c-accent-soft: #2d2113;
    --c-border: #2a3d39;
    --c-danger: #f2726a;
    --c-danger-strong: #ff958e;
    --c-danger-soft: #331614;
    --c-danger-border: #57231f;
    --c-link: #6fd4c5;
    --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 6px 24px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--c-link); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-strong); }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.7rem, 5.5vw, 2.7rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-inline-start: 1.3em; margin: 0.4em 0 1em; }
li { margin-bottom: 0.35em; }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 48em) { .container { padding-inline: 1.75rem; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 0.5rem;
  top: -4rem;
  z-index: 200;
  background: var(--c-primary);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-strong); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--c-primary-strong);
  border-color: var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary-soft); }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: var(--c-danger-strong); color: #fff; }
.btn-ghost { background: var(--c-surface-2); color: var(--c-text); }
.btn-ghost:hover { background: var(--c-primary-soft); }
.btn-sm { min-height: 40px; padding: 0.35rem 1rem; font-size: 0.92rem; }

@media (prefers-color-scheme: dark) {
  .btn-primary { color: #06211d; }
  .btn-primary:hover { color: #06211d; }
}

/* ---------- Top notice banner ---------- */
.top-banner {
  background: var(--c-primary-soft);
  color: var(--c-text);
  font-size: 0.92rem;
  padding: 0.45rem 0;
  text-align: center;
  border-bottom: 1px solid var(--c-border);
}
.top-banner a { font-weight: 700; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--c-surface) 92%, transparent);
  border-bottom: 1px solid var(--c-border);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--c-text);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
}
.brand-logo {
  inline-size: 42px;
  block-size: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--c-primary);
  color: #fff;
  display: grid;
  place-items: center;
}
.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--c-text-2);
}

.main-nav { display: none; }
@media (min-width: 64em) {
  .main-nav { display: block; margin-inline-start: auto; }
  .main-nav ul {
    display: flex;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .main-nav a {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--c-text);
    font-size: 0.93rem;
    font-weight: 600;
  }
  .main-nav a:hover { background: var(--c-primary-soft); color: var(--c-primary-strong); }
  .main-nav a.nav-emergency { color: var(--c-danger); font-weight: 800; }
  .main-nav a.nav-emergency:hover { background: var(--c-danger-soft); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}
@media (min-width: 64em) { .header-actions { margin-inline-start: 0.5rem; } }

.lang-switch { position: relative; }
.lang-switch select {
  appearance: none;
  min-height: 44px;
  padding: 0.35rem 2rem 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
[dir="ltr"] .lang-switch select { padding: 0.35rem 0.9rem 0.35rem 2rem; }
.lang-switch::after {
  content: "▾";
  position: absolute;
  inset-inline-start: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--c-text-2);
  font-size: 0.8rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 48px;
  block-size: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
}
@media (min-width: 64em) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem 1rem 1rem; }
.mobile-nav a {
  display: block;
  padding: 0.8rem 0.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--c-text);
  font-weight: 600;
  border-bottom: 1px solid var(--c-border);
}
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-nav a:hover { background: var(--c-primary-soft); }
.mobile-nav a.nav-emergency { color: var(--c-danger); font-weight: 800; }

/* ---------- Offline banner ---------- */
.offline-banner {
  display: none;
  background: var(--c-accent-soft);
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  padding: 0.6rem 0;
  font-size: 0.92rem;
}
.offline-banner.show { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% -20%, var(--c-primary-soft), transparent 60%),
    radial-gradient(40rem 22rem at 5% 110%, var(--c-accent-soft), transparent 55%),
    var(--c-bg);
  padding-block: 3rem 3.5rem;
  border-bottom: 1px solid var(--c-border);
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 60em) {
  .hero { padding-block: 4.5rem 5rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero h1 { margin-bottom: 0.5rem; }
.hero h1 .line2 { color: var(--c-primary); display: block; }
.hero-sub { font-size: 1.08rem; color: var(--c-text-2); max-width: 38em; }
.hero-free-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--c-primary-soft);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
}
.hero-emergency-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-danger);
  font-weight: 700;
}
.hero-emergency-link:hover { color: var(--c-danger-strong); }

.hero-brand .hero-trust {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 1.4rem 1.5rem;
}
.hero-trust h2 { font-size: 1.05rem; display: flex; gap: 0.5rem; align-items: center; }
.hero-trust p { font-size: 0.95rem; color: var(--c-text-2); margin-bottom: 0.6em; }
.hero-trust .disclaimer-mini {
  border-top: 1px dashed var(--c-border);
  padding-top: 0.7rem;
  font-size: 0.88rem;
}

/* ---------- Sections ---------- */
.section { padding-block: 3.2rem; }
.section-alt { background: var(--c-surface-2); border-block: 1px solid var(--c-border); }
.section-head { max-width: 46em; margin-bottom: 1.8rem; }
.section-head .kicker {
  display: inline-block;
  color: var(--c-primary-strong);
  background: var(--c-primary-soft);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.section-head p { color: var(--c-text-2); }

/* ---------- Card grids ---------- */
.grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 40em) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.4rem;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card .card-icon {
  inline-size: 46px;
  block-size: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  margin-bottom: 0.4rem;
  flex: none;
}
.card h3 { margin-bottom: 0.2rem; }
.card p { font-size: 0.93rem; color: var(--c-text-2); flex: 1; }
.card .btn { align-self: flex-start; }
.card.card-danger { border-color: var(--c-danger-border); }
.card.card-danger .card-icon { background: var(--c-danger-soft); color: var(--c-danger); }

/* ---------- Search ---------- */
.search-box { position: relative; max-width: 40em; }
.search-box input {
  inline-size: 100%;
  min-height: 52px;
  padding: 0.7rem 3rem 0.7rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
}
[dir="ltr"] .search-box input { padding: 0.7rem 1rem 0.7rem 3rem; }
.search-box .search-icon {
  position: absolute;
  inset-inline-end: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-2);
  pointer-events: none;
}
[dir="ltr"] .search-box .search-icon { inset-inline-end: auto; inset-inline-start: 1rem; }
.search-results {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.4rem);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  max-height: 18rem;
  overflow: auto;
  z-index: 50;
}
.search-results[hidden] { display: none; }
.search-results a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--c-text);
  font-size: 0.95rem;
}
.search-results a:hover, .search-results a:focus { background: var(--c-primary-soft); }
.search-results .no-result { padding: 0.6rem 0.8rem; color: var(--c-text-2); font-size: 0.92rem; }
.search-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.search-tags button {
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-2);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  min-height: 40px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.search-tags button:hover { background: var(--c-primary-soft); color: var(--c-primary-strong); }

/* ---------- Accordions (details/summary) ---------- */
.acc {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.2rem;
  font-weight: 700;
  min-height: 52px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+";
  margin-inline-start: auto;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--c-primary);
  flex: none;
  transition: transform 0.15s;
}
.acc[open] summary::after { content: "−"; }
.acc summary:hover { background: var(--c-surface-2); }
.acc .acc-body {
  padding: 0.2rem 1.2rem 1.2rem;
  color: var(--c-text-2);
  font-size: 0.96rem;
  border-top: 1px dashed var(--c-border);
  padding-top: 0.9rem;
}
.acc .acc-body strong { color: var(--c-text); }
.acc .acc-icon {
  inline-size: 34px; block-size: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  font-size: 1rem;
}
.acc-danger { border-color: var(--c-danger-border); }
.acc-danger summary::after { color: var(--c-danger); }
.acc-danger .acc-icon { background: var(--c-danger-soft); color: var(--c-danger); }
.acc-body .warn-line {
  background: var(--c-danger-soft);
  border: 1px solid var(--c-danger-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem;
  margin-top: 0.6rem;
  font-size: 0.92rem;
}
.acc-body .em-label {
  display: block;
  font-weight: 800;
  color: var(--c-text);
  margin-top: 0.7rem;
}
.acc-body .em-label:first-child { margin-top: 0; }

/* ---------- Emergency section ---------- */
.section-emergency {
  background:
    radial-gradient(50rem 25rem at 90% 0%, var(--c-danger-soft), transparent 55%),
    var(--c-surface-2);
  border-block: 2px solid var(--c-danger-border);
}
.emergency-alert {
  background: var(--c-danger-soft);
  border: 1.5px solid var(--c-danger-border);
  border-inline-start: 6px solid var(--c-danger);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1.6rem;
}
.emergency-alert h3 { color: var(--c-danger-strong); display: flex; align-items: center; gap: 0.5rem; }
.emergency-numbers-note {
  background: var(--c-surface);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--c-text-2);
  margin-top: 1.4rem;
}
.emergency-numbers-note .status-chip {
  display: inline-block;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.05rem 0.7rem;
  font-size: 0.82rem;
  margin-inline-end: 0.4rem;
}

/* ---------- Tools ---------- */
.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.tool-tabs button {
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  min-height: 46px;
  padding: 0.4rem 1.1rem;
  cursor: pointer;
}
.tool-tabs button[aria-selected="true"] {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .tool-tabs button[aria-selected="true"] { color: #06211d; }
}
.tool-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 1.5rem;
}
.tool-panel[hidden] { display: none; }
.tool-note {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.88rem;
  color: var(--c-text-2);
  margin-bottom: 1.1rem;
}
.tool-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }

.checklist-progress {
  background: var(--c-surface-2);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  margin: 0.4rem 0 1.2rem;
}
.checklist-progress .bar {
  height: 100%;
  width: 0%;
  background: var(--c-primary);
  border-radius: 999px;
  transition: width 0.25s;
}
.check-group { margin-bottom: 1.2rem; }
.check-group h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--c-primary-strong);
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0.3rem;
  border-radius: var(--radius-sm);
}
.check-item:hover { background: var(--c-surface-2); }
.check-item input {
  inline-size: 22px;
  block-size: 22px;
  margin-top: 0.35rem;
  accent-color: var(--c-primary);
  flex: none;
}
.check-item span { font-size: 0.95rem; }
.check-item input:checked + span { color: var(--c-text-2); text-decoration: line-through; }

.form-grid { display: grid; gap: 0.9rem; }
@media (min-width: 40em) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.25rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.9rem; }
.form-field input, .form-field textarea, .form-field select {
  font: inherit;
  min-height: 48px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text);
}
.form-field textarea { min-height: 5.5rem; resize: vertical; }
.consent-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin-top: 0.9rem;
  color: var(--c-text-2);
}
.consent-row input { inline-size: 20px; block-size: 20px; margin-top: 0.3rem; accent-color: var(--c-primary); flex: none; }

.preview-card {
  border: 2px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-top: 1.4rem;
  background: var(--c-bg);
}
.preview-card h4 {
  margin: 0 0 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--c-primary);
  color: var(--c-primary-strong);
}
.preview-card dl { margin: 0; display: grid; gap: 0.15rem; }
.preview-card dt { font-weight: 800; font-size: 0.85rem; color: var(--c-text-2); }
.preview-card dd { margin: 0 0 0.5rem; font-size: 1rem; overflow-wrap: anywhere; }

.med-table-wrap { overflow-x: auto; margin-top: 1rem; }
table.med-table {
  border-collapse: collapse;
  inline-size: 100%;
  min-inline-size: 34rem;
  font-size: 0.93rem;
}
.med-table th, .med-table td {
  border: 1px solid var(--c-border);
  padding: 0.55rem 0.7rem;
  text-align: start;
}
.med-table th { background: var(--c-surface-2); }
.med-table .del-btn {
  border: 0;
  background: var(--c-danger-soft);
  color: var(--c-danger);
  border-radius: var(--radius-sm);
  min-height: 36px;
  min-inline-size: 44px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}

.quiz-q {
  border-bottom: 1px dashed var(--c-border);
  padding: 0.9rem 0;
}
.quiz-q p { font-weight: 700; margin-bottom: 0.5rem; }
.quiz-opts { display: flex; gap: 1.4rem; }
.quiz-opts label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.quiz-opts input { inline-size: 20px; block-size: 20px; accent-color: var(--c-primary); }
.quiz-result {
  margin-top: 1.2rem;
  background: var(--c-primary-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.quiz-result[hidden] { display: none; }
.quiz-result ul { margin-bottom: 0; }

/* ---------- Sarop section ---------- */
.sarop-box {
  background: linear-gradient(135deg, var(--c-primary-soft), var(--c-surface));
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
}
@media (min-width: 60em) { .sarop-box { padding: 2.6rem 2.4rem; } }
.sarop-box .no-block-note {
  font-size: 0.88rem;
  color: var(--c-text-2);
  margin-top: 0.9rem;
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 50em; }

/* ---------- Meta / review boxes ---------- */
.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  font-size: 0.85rem;
  color: var(--c-text-2);
  border-top: 1px dashed var(--c-border);
  margin-top: 1.6rem;
  padding-top: 0.9rem;
}
.review-meta .pending {
  color: var(--c-accent);
  font-weight: 700;
}

/* ---------- Share ---------- */
.share-box { text-align: center; max-width: 44em; margin-inline: auto; }
.share-box .tool-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding-block: 2.8rem 1.6rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 64em) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.site-footer h4 { font-size: 0.95rem; margin-bottom: 0.7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--c-text-2); text-decoration: none; }
.site-footer a:hover { color: var(--c-primary-strong); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--c-border);
  margin-top: 2rem;
  padding-top: 1.2rem;
  color: var(--c-text-2);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Emergency FAB (mobile) ---------- */
.emergency-fab {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--c-danger);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  min-height: 52px;
  box-shadow: var(--shadow-2);
}
.emergency-fab:hover { background: var(--c-danger-strong); color: #fff; }
@media (min-width: 64em) { .emergency-fab { display: none; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .top-banner, .offline-banner, .emergency-fab, .mobile-nav,
  .hero-ctas, .tool-tabs, .tool-actions, .search-box, .search-tags,
  .site-footer .footer-grid, .btn, .nav-toggle, .sarop-box, #share,
  .quiz-opts, .consent-row { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .acc { border: 1px solid #999; break-inside: avoid; }
  .acc summary::after { display: none; }
  .card { box-shadow: none; break-inside: avoid; }
  .preview-card { border-color: #000; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .section { padding-block: 1rem; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ---------- Long-text / large-font resilience ---------- */
@media (min-width: 0) {
  .card h3, .acc summary, .btn { overflow-wrap: anywhere; }
}

/* ============================================================
   2026 visual system — airy, service-first Arbaeen landing page
   ============================================================ */

:root {
  --c-bg: #fbfcfb;
  --c-surface: #ffffff;
  --c-surface-2: #f3f8f6;
  --c-text: #15262f;
  --c-text-2: #52666b;
  --c-primary: #12a47f;
  --c-primary-strong: #08765f;
  --c-primary-soft: #e5f6f0;
  --c-accent: #9a5b08;
  --c-accent-soft: #fff5e5;
  --c-border: #e3ece9;
  --c-danger: #b42318;
  --c-danger-strong: #8f1d16;
  --c-danger-soft: #fff0ee;
  --c-danger-border: #f2c7c2;
  --c-link: #08765f;
  --shadow-1: 0 10px 30px rgba(26, 61, 54, 0.07);
  --shadow-2: 0 18px 46px rgba(26, 61, 54, 0.13);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 80rem;
}

body {
  background:
    radial-gradient(circle at 7% 8%, rgba(245, 218, 171, 0.16), transparent 22rem),
    var(--c-bg);
  line-height: 1.85;
}

.container { padding-inline: clamp(1rem, 3vw, 2rem); }

.top-banner {
  padding-block: 0.35rem;
  background: #f0faf6;
  border-color: rgba(14, 116, 102, 0.12);
  color: #35574f;
}

.top-banner .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
}

.top-banner a { white-space: nowrap; }

.site-header {
  background: color-mix(in srgb, var(--c-surface) 94%, transparent);
  border-bottom-color: rgba(19, 68, 57, 0.08);
  box-shadow: 0 8px 30px rgba(24, 61, 52, 0.04);
}

.header-row { min-height: 5rem; }

.brand { gap: 0.75rem; font-size: 1.08rem; }

.brand-logo {
  inline-size: 46px;
  block-size: 46px;
  color: var(--c-primary);
  background: #ecf9f4;
  border: 1px solid #d5eee5;
  border-radius: 50% 50% 44% 56%;
}

.brand small { margin-top: 0.16rem; }

.main-nav a { position: relative; }

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0.7rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--c-primary);
  border-radius: 99px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }
.main-nav a:hover { background: transparent; }

.header-service { display: none; box-shadow: 0 8px 20px rgba(18, 164, 127, 0.2); }

.lang-switch select {
  border-color: #dbe8e4;
  background-color: #f8fbfa;
}

/* Hero: copy stays readable while the photo occupies the visual half. */
.hero {
  min-height: 37rem;
  isolation: isolate;
  padding-block: clamp(3.25rem, 7vw, 6.4rem);
  background:
    radial-gradient(circle at 92% 12%, rgba(238, 249, 245, 0.95), transparent 28rem),
    var(--c-surface);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: 0;
  width: 62%;
  background: url("../images/arbaeen-hero.webp") left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 58%, rgba(0, 0, 0, 0.8) 70%, transparent 100%);
  mask-image: linear-gradient(to right, #000 58%, rgba(0, 0, 0, 0.8) 70%, transparent 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 25rem;
  grid-template-columns: minmax(0, 0.94fr) minmax(24rem, 1.06fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-copy { grid-column: 1; max-width: 38rem; }

.hero h1 {
  font-size: clamp(2.35rem, 4.7vw, 4.6rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero h1 .line2 {
  color: var(--c-primary);
  text-shadow: 0 12px 34px rgba(18, 164, 127, 0.1);
}

.hero-sub { font-size: clamp(1rem, 1.35vw, 1.15rem); max-width: 35rem; }

.hero-free-note {
  max-width: 36rem;
  border: 0;
  background: rgba(231, 247, 241, 0.78);
  border-radius: 14px;
}

.hero-ctas .btn-primary {
  min-width: 15rem;
  box-shadow: 0 12px 28px rgba(18, 164, 127, 0.24);
}

.hero-trust {
  grid-column: 2;
  align-self: end;
  max-width: 25rem;
  margin-top: 12rem;
  background: color-mix(in srgb, var(--c-surface) 88%, transparent);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 45px rgba(33, 40, 37, 0.16);
}

[dir="ltr"] .hero::before {
  left: auto;
  right: 0;
  transform: scaleX(-1);
}

.section { padding-block: clamp(3.5rem, 6vw, 5.75rem); }

.section-alt {
  background:
    linear-gradient(110deg, rgba(231, 246, 241, 0.72), rgba(248, 249, 255, 0.76));
  border-block-color: rgba(24, 87, 72, 0.07);
}

.section-head { max-width: 52rem; margin-bottom: 2.25rem; }

.section-head .kicker {
  background: transparent;
  padding: 0;
  color: var(--c-primary-strong);
  letter-spacing: 0;
}

.section-head .kicker::before {
  content: "✦";
  margin-inline-end: 0.45rem;
  color: #d2a85c;
}

.section-head h2 { letter-spacing: -0.025em; }

.card {
  border-color: rgba(22, 104, 85, 0.1);
  padding: 1.55rem;
  box-shadow: var(--shadow-1);
}

.card:hover { transform: translateY(-5px); }

.card .card-icon {
  inline-size: 52px;
  block-size: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, #e9faf4, #d9f0e8);
  color: var(--c-primary);
}

#stages .card { min-height: 17rem; position: relative; overflow: hidden; }
#stages .card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--c-primary);
}
#stages .card:nth-child(2) { background: linear-gradient(145deg, #fff, #f4f7ff); }
#stages .card:nth-child(3) { background: linear-gradient(145deg, #fff, #f0faf7); }
#stages .card:nth-child(4) { background: linear-gradient(145deg, #fff, #f7f5ff); }

#personas .card { min-height: 13rem; }

.search-box { max-width: none; }
.search-box input {
  min-height: 60px;
  border-color: rgba(17, 113, 90, 0.15);
  box-shadow: 0 12px 34px rgba(33, 70, 61, 0.08);
  padding-inline-start: 3.2rem;
}

.search-tags { justify-content: center; }
.search-tags button { background: rgba(255, 255, 255, 0.8); }

.acc {
  border-color: rgba(22, 104, 85, 0.11);
  box-shadow: 0 8px 22px rgba(26, 61, 54, 0.05);
  margin-bottom: 0.85rem;
}

.acc summary { padding: 1.1rem 1.2rem; }
.acc summary:hover { background: #f6fbf9; }
.acc .acc-icon { background: #e9f8f2; color: var(--c-primary-strong); }

.tool-tabs {
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--c-border);
  border-radius: 18px;
}

.tool-tabs button { flex: 1 1 10rem; }
.tool-panel { padding: clamp(1.3rem, 3vw, 2.4rem); }

.sarop-box {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.9), transparent 18rem),
    linear-gradient(120deg, #e4f5ef, #f5faf8);
  border: 0;
  box-shadow: var(--shadow-1);
}

.site-footer { background: #f7faf9; }

@media (min-width: 64em) {
  .header-service { display: inline-flex; }
  .main-nav a { font-size: 0.82rem; padding-inline: 0.48rem; }

  #before > .container,
  #during > .container,
  #after > .container,
  #emergency > .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    align-items: start;
  }

  #before .section-head,
  #during .section-head,
  #after .section-head,
  #emergency .section-head,
  #before .container > p,
  #emergency .emergency-alert,
  #emergency .emergency-numbers-note {
    grid-column: 1 / -1;
  }

  #before .acc,
  #during .acc,
  #after .acc,
  #emergency .acc { margin-bottom: 0; }

  #chronic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    align-items: start;
  }

  #chronic .acc { margin-bottom: 0; }
}

@media (min-width: 64em) and (max-width: 74.99em) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-service { display: none; }
}

@media (max-width: 59.99em) {
  .hero {
    min-height: 0;
    padding-block: 3.2rem 21.5rem;
  }

  .hero::before {
    left: 0;
    right: 0;
    inset-block: auto 0;
    width: 100%;
    height: 21rem;
    background-position: 30% center;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%);
    mask-image: linear-gradient(to bottom, transparent, #000 24%);
  }

  [dir="ltr"] .hero::before {
    left: 0;
    right: 0;
    transform: none;
  }

  .hero-grid { display: block; min-height: 0; }
  .hero-copy { max-width: 42rem; }
  .hero-trust { display: none; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
}

@media (max-width: 39.99em) {
  .top-banner .container { align-items: flex-start; text-align: start; }
  .header-row { min-height: 4.5rem; }
  .brand small { display: none; }
  .brand-logo { inline-size: 42px; block-size: 42px; }
  .lang-switch select { max-width: 6.75rem; }
  .hero { padding-top: 2.5rem; }
  .hero-ctas { align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-free-note { font-size: 0.86rem; }
  #stages .card { min-height: 0; }
  .section { padding-block: 3.25rem; }
  .tool-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .tool-tabs button { flex: 0 0 auto; }
}

@media print {
  .hero::before { display: none !important; }
}

/* ============================================================
   Sarop brand layer — blue identity, campaign hero, app showcase
   ============================================================ */
:root {
  --c-primary: #1173d4;
  --c-primary-strong: #0c5ab0;
  --c-primary-soft: #e1eefc;
  --c-link: #0c5ab0;
  --c-navy: #0a2a5e;
  --c-navy-2: #0e3a80;
  --c-azure: #38c6ff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --c-primary: #5aa9f5;
    --c-primary-strong: #85c2fb;
    --c-primary-soft: #10294d;
    --c-link: #7fc0ff;
    --c-bg: #0b1220;
    --c-surface: #101a2e;
    --c-surface-2: #15223b;
    --c-text: #e6edf7;
    --c-text-2: #9fb3d1;
    --c-border: #24354f;
  }
}

/* Re-tint teal-hardcoded accents from the previous layer */
.header-service { box-shadow: 0 8px 20px rgba(17, 115, 212, 0.25); }
.lang-switch select { border-color: var(--c-border); background-color: var(--c-surface); }
.section-alt {
  background: linear-gradient(110deg, rgba(228, 239, 253, 0.72), rgba(247, 250, 255, 0.8));
  border-block-color: rgba(12, 62, 128, 0.08);
}
@media (prefers-color-scheme: dark) {
  .section-alt { background: linear-gradient(110deg, rgba(16, 32, 60, 0.7), rgba(11, 18, 32, 0.7)); }
}
.card { border-color: rgba(17, 90, 180, 0.12); }
.hero-ctas .btn-primary { box-shadow: 0 12px 28px rgba(13, 60, 130, 0.35); }

/* Header brand */
.brand-logo-sarop {
  background: var(--c-navy);
  inline-size: 56px;
  block-size: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.brand-logo-sarop img { display: block; }
.brand-sarop-word {
  color: var(--c-primary);
  font-weight: 900;
  letter-spacing: 0.01em;
}

/* ---------- Campaign hero (deep Sarop navy + photo) ---------- */
.hero.hero-brand {
  position: relative;
  color: #fff;
  background:
    linear-gradient(to left, rgba(9, 33, 74, 0.94) 42%, rgba(10, 42, 94, 0.62) 68%, rgba(10, 42, 94, 0.35)),
    url("../images/arbaeen-hero.webp") left center / cover no-repeat,
    var(--c-navy);
}
[dir="ltr"] .hero.hero-brand {
  background:
    linear-gradient(to right, rgba(9, 33, 74, 0.94) 42%, rgba(10, 42, 94, 0.62) 68%, rgba(10, 42, 94, 0.35)),
    url("../images/arbaeen-hero.webp") right center / cover no-repeat,
    var(--c-navy);
}
.hero.hero-brand::before { display: none; }
.hero-brand h1 { color: #fff; }
.hero-brand h1 .line2 { color: #6ec8ff; text-shadow: 0 10px 34px rgba(56, 198, 255, 0.25); }
.hero-brand .hero-sub { color: rgba(235, 243, 252, 0.88); }
.hero-brand .hero-free-note {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #eaf3fd;
}
.hero-brand .hero-ctas .btn-primary {
  background: linear-gradient(120deg, #2f8ef7, #38c6ff);
  color: #04203f;
  border: 0;
}
.hero-brand .hero-ctas .btn-primary:hover { opacity: 0.92; }
.hero-brand .hero-ctas .btn-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}
.hero-brand .hero-ctas .btn-outline:hover { background: rgba(255, 255, 255, 0.14); }
.hero-brand .hero-emergency-link { color: #ffb9b0; }
.hero-brand .hero-emergency-link:hover { color: #ffd4ce; }

.hero-brandchip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #dcecfd;
  border-radius: 999px;
  padding: 0.28rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero-brandchip img { display: block; }

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  margin: 1.9rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-stats li { display: flex; flex-direction: column; min-inline-size: 7rem; }
.hero-stats b { font-size: 1.28rem; font-weight: 800; color: #fff; }
.hero-stats small { font-size: 0.8rem; color: rgba(222, 235, 250, 0.75); }

.hero-brand .hero-trust {
  background: color-mix(in srgb, var(--c-surface) 92%, transparent);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ---------- Journey storytelling ---------- */
.journey-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  counter-reset: jstep;
}
@media (min-width: 40em) { .journey-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64em) { .journey-list { grid-template-columns: repeat(6, 1fr); } }
.j-step {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-1);
}
.j-step h3 { font-size: 1rem; margin: 0.65rem 0 0.3rem; }
.j-step p { font-size: 0.86rem; color: var(--c-text-2); margin-bottom: 0.55rem; min-block-size: 3.2em; }
.j-num {
  display: inline-grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f8ef7, #38c6ff);
  color: #04203f;
  font-weight: 800;
  font-size: 1.02rem;
  box-shadow: 0 6px 16px rgba(17, 115, 212, 0.3);
}
.j-link { font-size: 0.86rem; font-weight: 700; }
@media (min-width: 64em) {
  .j-step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 2.3rem;
    inset-inline-start: -1rem;
    inline-size: 1rem;
    border-top: 2px dashed var(--c-primary);
    opacity: 0.45;
  }
}

/* ---------- Sources / trust ---------- */
.source-pills {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.source-pills li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-1);
}
.source-pills b {
  color: var(--c-primary-strong);
  font-weight: 900;
  letter-spacing: 0.02em;
}
.source-note { font-size: 0.85rem; color: var(--c-text-2); max-width: 52rem; }

/* ---------- Dignity note ---------- */
.dignity-note {
  background: var(--c-primary-soft);
  border: 1px solid var(--c-border);
  border-inline-start: 5px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  font-size: 0.95rem;
  color: var(--c-text-2);
  margin-bottom: 1.4rem;
}
.dignity-note strong { display: block; color: var(--c-text); margin-bottom: 0.2rem; }

/* ---------- Why Sarop / showcase ---------- */
.section-sarop {
  background:
    radial-gradient(46rem 26rem at 90% -10%, rgba(56, 198, 255, 0.12), transparent 60%),
    radial-gradient(40rem 24rem at 0% 110%, rgba(17, 115, 212, 0.1), transparent 55%),
    var(--c-bg);
  border-block: 1px solid var(--c-border);
}
.compare-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.4rem;
}
@media (min-width: 48em) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem;
  box-shadow: var(--shadow-1);
}
.compare-card h3 { margin: 0.65rem 0 0.6rem; font-size: 1.08rem; }
.compare-card ul { margin: 0; padding: 0; list-style: none; }
.compare-card li {
  position: relative;
  padding-inline-start: 1.5em;
  font-size: 0.93rem;
  color: var(--c-text-2);
  margin-bottom: 0.45em;
}
.compare-card li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--c-primary);
  font-weight: 800;
}
.compare-app {
  border: 1.5px solid rgba(17, 115, 212, 0.4);
  background: linear-gradient(160deg, var(--c-primary-soft), var(--c-surface) 55%);
}
.compare-badge {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.15rem 0.85rem;
}
.compare-badge.free { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.compare-badge.app { background: var(--c-navy); color: #8ed3ff; }

.features-title { margin: 0 0 1.1rem; }
.feature-grid { margin-bottom: 0.9rem; }
.feature-card {
  background: linear-gradient(165deg, var(--c-surface), var(--c-primary-soft) 160%);
  border: 1px solid rgba(17, 115, 212, 0.18);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-1);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.feature-card h4 { margin: 0.7rem 0 0.25rem; font-size: 1rem; }
.feature-card p { margin: 0; font-size: 0.88rem; color: var(--c-text-2); }
.feature-icon {
  display: inline-grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f8ef7, #38c6ff);
  color: #fff;
  box-shadow: 0 6px 16px rgba(17, 115, 212, 0.3);
}
.features-note { font-size: 0.85rem; color: var(--c-text-2); margin-bottom: 2.2rem; }

/* ---------- Download box ---------- */
.download-box {
  background:
    radial-gradient(30rem 16rem at 85% 0%, rgba(56, 198, 255, 0.2), transparent 60%),
    linear-gradient(135deg, var(--c-navy), var(--c-navy-2));
  color: #eaf3fd;
  border-radius: calc(var(--radius) + 4px);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-2);
}
@media (min-width: 48em) { .download-box { padding: 2.6rem 2.6rem; } }
.download-box h3 { color: #fff; font-size: 1.35rem; margin: 0.8rem 0 0.4rem; }
.download-box p { color: rgba(228, 240, 252, 0.85); max-width: 40rem; }
.download-box .no-block-note { color: rgba(210, 228, 248, 0.7); font-size: 0.85rem; margin-top: 1rem; }
.download-box .btn-primary {
  background: linear-gradient(120deg, #2f8ef7, #38c6ff);
  color: #04203f;
  border: 0;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 12px;
  padding: 0.45rem 1.1rem;
  min-height: 48px;
  text-decoration: none;
  transition: background 0.15s;
}
.store-badge:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.store-badge small { display: block; font-size: 0.68rem; opacity: 0.75; line-height: 1.2; }
.store-badge b { display: block; font-size: 0.88rem; line-height: 1.3; }

.support-line {
  margin: 1.6rem 0 0;
  font-size: 0.92rem;
  color: var(--c-text-2);
}
.support-line a { font-weight: 700; }

/* ---------- Footer brand ---------- */
.footer-brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.footer-brand img { flex: none; }

@media print {
  .hero-stats, .hero-brandchip, .download-box, .store-badge, .compare-grid { display: none !important; }
  .hero.hero-brand { background: #fff !important; color: #000; }
  .hero-brand h1, .hero-brand h1 .line2 { color: #000; text-shadow: none; }
}


/* Solid and gradient surfaces intentionally replace compositing filters. */
.site-header { background: color-mix(in srgb, var(--c-surface) 97%, transparent); }
.hero-brand .hero-free-note { background: rgba(13, 42, 88, 0.72); }
.hero-brandchip { background: rgba(13, 42, 88, 0.55); }
.hero-brand .hero-trust { background: var(--c-surface); }

/* ============================================================
   Controlled redesign v4 — Sarop Arbaeen campaign system
   Dark narrative zones, warm reading surfaces, no backdrop blur.
   ============================================================ */

:root {
  color-scheme: light;
  --c-bg: #f5f1e8;
  --c-surface: #fffdf8;
  --c-surface-2: #edf3f4;
  --c-text: #142234;
  --c-text-2: #51606f;
  --c-primary: #1173d4;
  --c-primary-strong: #0a2a5e;
  --c-primary-soft: #e7f2fd;
  --c-accent: #d6a647;
  --c-accent-soft: #fff4d9;
  --c-border: #dce3e4;
  --c-danger: #d75145;
  --c-danger-strong: #b9342b;
  --c-danger-soft: #fff0ed;
  --c-danger-border: #edb8b1;
  --c-link: #0b5cae;
  --c-navy-950: #07111f;
  --c-navy-900: #0c1c34;
  --c-navy-800: #112b4c;
  --c-cyan: #17c8e7;
  --c-success: #197b64;
  --shadow-1: 0 8px 24px rgba(7, 17, 31, 0.07);
  --shadow-2: 0 18px 44px rgba(7, 17, 31, 0.13);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 80rem;
  --space-section: clamp(3.5rem, 6vw, 5.25rem);
}

html { background: var(--c-navy-950); }

body {
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.86;
}

h1, h2, h3, h4 { letter-spacing: -0.018em; }
h2 { font-size: clamp(1.65rem, 3.1vw, 2.55rem); }
p { max-width: 68ch; }

.container { padding-inline: clamp(1rem, 3vw, 2rem); }
.section { padding-block: var(--space-section); }
.section-alt { background: #edf3f4; border-block: 0; }
.section-head { max-width: 52rem; margin-bottom: clamp(1.6rem, 3vw, 2.35rem); }
.section-head p { font-size: 1rem; }

.section-head .kicker {
  padding: 0;
  background: transparent;
  color: var(--c-primary);
  letter-spacing: 0;
}

.section-head .kicker::before {
  content: "";
  display: inline-block;
  inline-size: 1.6rem;
  block-size: 2px;
  margin-inline-end: 0.55rem;
  vertical-align: middle;
  background: currentColor;
}

.top-banner {
  background: #091728;
  color: #dce8f6;
  border: 0;
  padding-block: 0.35rem;
}

.top-banner .container {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  align-items: center;
}

.top-banner a { color: #72d9ee; }

.offline-banner {
  background: #fff0c7;
  color: #35280b;
  border-bottom-color: #e3bd62;
}

/* Header is part of the campaign opening, then becomes a solid reading bar. */
.site-header {
  top: 0;
  background: var(--c-navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: #fffdf8;
  border-bottom-color: #dce3e4;
  box-shadow: 0 8px 24px rgba(7, 17, 31, 0.08);
}

.header-row { min-height: 4.7rem; }

.brand {
  gap: 0.65rem;
  color: #fff;
  flex: 0 0 auto;
}

.brand-logo {
  inline-size: 148px;
  block-size: 38px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Dark header shows the light wordmark; scrolled (light) header shows the dark one. */
.brand-logo-sarop .brand-logo-dark { display: none; }
.site-header.is-scrolled .brand-logo-sarop .brand-logo-light { display: none; }
.site-header.is-scrolled .brand-logo-sarop .brand-logo-dark { display: block; }
.brand-campaign { color: #e7f3ff; font-size: 0.86rem; font-weight: 700; white-space: nowrap; }
.site-header.is-scrolled .brand-campaign { color: var(--c-primary-strong); }

@media (min-width: 64em) {
  .main-nav { margin-inline-start: auto; }
  .main-nav ul { gap: 0.05rem; }
  .main-nav a {
    color: #dce8f6;
    font-size: 0.84rem;
    padding: 0.55rem 0.52rem;
  }
  .main-nav a:hover,
  .main-nav a:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.08); }
  .main-nav a::after { background: var(--c-cyan); bottom: 0; }
  .main-nav a.nav-emergency { color: #ffb4aa; }
  .site-header.is-scrolled .main-nav a { color: var(--c-text); }
  .site-header.is-scrolled .main-nav a:hover,
  .site-header.is-scrolled .main-nav a:focus-visible { color: var(--c-primary-strong); background: var(--c-primary-soft); }
  .site-header.is-scrolled .main-nav a.nav-emergency { color: var(--c-danger-strong); }
}

.header-actions { gap: 0.45rem; }

.header-emergency {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  color: #ffd1cb;
  border: 1px solid rgba(255, 145, 132, 0.55);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.header-emergency span:first-child {
  display: grid;
  place-items: center;
  inline-size: 22px;
  block-size: 22px;
  border-radius: 50%;
  background: var(--c-danger);
  color: #fff;
}

.header-emergency:hover { color: #fff; background: rgba(215, 81, 69, 0.15); }
.site-header.is-scrolled .header-emergency { color: var(--c-danger-strong); border-color: var(--c-danger-border); }

.lang-switch select {
  color: #eff7ff;
  border-color: rgba(255, 255, 255, 0.24);
  background: #10243d;
}

.lang-switch::after { color: #b9cbe0; }
.site-header.is-scrolled .lang-switch select { color: var(--c-text); background: #fff; border-color: var(--c-border); }
.site-header.is-scrolled .lang-switch::after { color: var(--c-text-2); }

.nav-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  background: #10243d;
}

.site-header.is-scrolled .nav-toggle { color: var(--c-text); border-color: var(--c-border); background: #fff; }

.mobile-nav { background: var(--c-navy-900); border-top-color: rgba(255, 255, 255, 0.12); }
.mobile-nav a { color: #edf5ff; border-bottom-color: rgba(255, 255, 255, 0.1); }
.mobile-nav a:hover { background: rgba(255, 255, 255, 0.08); }
.mobile-nav a.nav-emergency { color: #ffb4aa; }
.site-header.is-scrolled .mobile-nav { background: #fffdf8; border-top-color: var(--c-border); }
.site-header.is-scrolled .mobile-nav a { color: var(--c-text); border-bottom-color: var(--c-border); }

/* Cinematic campaign Hero */
.hero.hero-brand {
  min-height: 43rem;
  padding-block: clamp(3.4rem, 7vw, 6.25rem);
  color: #fff;
  background-image:
    linear-gradient(to right, rgba(7, 17, 31, 0.5) 0%, rgba(7, 17, 31, 0.68) 44%, rgba(7, 17, 31, 0.97) 100%),
    url("../images/arbaeen-hero.webp");
  background-size: cover;
  background-position: left center;
  border-bottom: 0;
}

[dir="ltr"] .hero.hero-brand {
  background-image:
    linear-gradient(to left, rgba(7, 17, 31, 0.5) 0%, rgba(7, 17, 31, 0.68) 44%, rgba(7, 17, 31, 0.97) 100%),
    url("../images/arbaeen-hero.webp");
  background-position: right center;
}

.hero::before { display: none; }

.hero-grid {
  min-height: 32rem;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy { grid-column: 1; max-width: 43rem; }
.hero-visual { grid-column: 2; display: grid; justify-items: center; gap: 1rem; }

.hero-brandchip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 34px;
  margin: 0 0 1rem;
  padding: 0.25rem 0.7rem;
  color: #c9def4;
  background: #10243d;
  border: 1px solid rgba(114, 217, 238, 0.32);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
}

.hero-brandchip::before { content: ""; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--c-cyan); }

.hero h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2.75rem, 5.25vw, 5rem);
  line-height: 1.16;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.32);
}

.hero h1 .line2 { color: #79dcef; text-shadow: 0 3px 20px rgba(0, 0, 0, 0.35); }
.hero-sub { max-width: 36rem; color: #d9e5f2; font-size: 1.08rem; }

.hero-free-note {
  max-width: 38rem;
  margin-bottom: 1.2rem;
  color: #f2f7fc;
  background: #10243d;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}

.hero-ctas { margin-bottom: 0.75rem; }
.hero-ctas .btn-primary,
.sarop-actions .btn-primary {
  color: #06111e;
  background: linear-gradient(115deg, #6cb8ff, #17c8e7);
  border: 0;
  box-shadow: 0 12px 28px rgba(23, 200, 231, 0.18);
}
.hero-ctas .btn-primary:hover,
.sarop-actions .btn-primary:hover { color: #06111e; background: linear-gradient(115deg, #87c6ff, #4bd6ef); }

.hero-ctas .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.68); background: transparent; }
.hero-ctas .btn-outline:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.hero-emergency-link { color: #ffb1a7; }
.hero-emergency-link:hover { color: #ffd2cc; }

.hero-trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  max-width: 42rem;
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-trust-list li { min-height: 3.7rem; margin: 0; padding: 0.25rem 0.85rem; border-inline-start: 2px solid rgba(23, 200, 231, 0.55); }
.hero-trust-list b { display: block; color: #fff; font-size: 0.94rem; }
.hero-trust-list small { display: block; color: #aebfd1; font-size: 0.76rem; line-height: 1.55; }

.hero-campaign-logo {
  width: clamp(10.5rem, 18vw, 14rem);
  height: auto;
  border: 1px solid rgba(214, 166, 71, 0.4);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-brand .hero-trust {
  width: min(100%, 24rem);
  margin: 0;
  padding: 1.15rem 1.25rem;
  color: #eef6ff;
  background: #0c1c34;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: none;
}

.hero-brand .hero-trust h2 { color: #fff; }
.hero-brand .hero-trust p { color: #c8d6e5; }
.hero-brand .hero-trust .disclaimer-mini { color: #aebfd1; border-top-color: rgba(255, 255, 255, 0.15); }

/* Connected route: one story, not six floating cards. */
.journey-section {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 12% 25%, rgba(23, 200, 231, 0.1), transparent 23rem),
    var(--c-navy-900);
}

.journey-section > #journey { position: absolute; top: 0; }
.journey-section .section-head { max-width: 44rem; }
.journey-section .section-head .kicker { color: #7bd9ed; }
.journey-section .section-head h2 { color: #fff; }
.journey-section .section-head p { color: #bdcce0; }

.journey-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
}

.journey-list::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  inset-inline: 7%;
  block-size: 2px;
  background: linear-gradient(90deg, rgba(23, 200, 231, 0.22), #17c8e7, rgba(214, 166, 71, 0.65));
}

.j-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0;
  padding: 0 0.7rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.j-step:not(:first-child)::before { display: none; }

.j-num {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  margin-bottom: 1rem;
  color: #06111e;
  background: #72d9ee;
  border: 5px solid var(--c-navy-900);
  border-radius: 50%;
  font-weight: 850;
}

.j-step:nth-child(5) .j-num,
.j-step:nth-child(6) .j-num { background: #e4b961; }
.j-step h3 { color: #fff; font-size: 1.02rem; }
.j-step p { min-block-size: 0; color: #b8c8d8; font-size: 0.86rem; line-height: 1.7; }
.j-link { display: inline; color: #7bd9ed; font-size: 0.84rem; font-weight: 750; text-underline-offset: 4px; }
.j-link:hover { color: #fff; }

.journey-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.journey-panel {
  min-width: 0;
  padding: 1rem;
  color: #dce8f6;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.journey-panel:target {
  border-color: rgba(114, 217, 238, 0.8);
  box-shadow: 0 0 0 3px rgba(23, 200, 231, 0.16);
}

.journey-panel-step {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #06111e;
  background: #72d9ee;
  border-radius: 999px;
  padding: 0.08rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 850;
}

.journey-panel h3 {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: 1rem;
}

.journey-panel p {
  margin: 0;
  color: #bdcce0;
  font-size: 0.88rem;
  line-height: 1.75;
}

.journey-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.journey-panel-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.32rem 0.7rem;
  color: #e9f9ff;
  background: rgba(23, 200, 231, 0.11);
  border: 1px solid rgba(114, 217, 238, 0.28);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.journey-panel-actions a:hover,
.journey-panel-actions a:focus-visible {
  color: #07111f;
  background: #72d9ee;
}

/* Interactive timeline: a stage is a clickable control that reveals one panel. */
.j-step.is-clickable { cursor: pointer; border-radius: 12px; transition: background-color 0.18s ease; }
.j-step.is-clickable:hover { background: rgba(255, 255, 255, 0.05); }
.j-step.is-clickable:hover .j-num { transform: scale(1.06); }
.j-num { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.j-step.is-active .j-num {
  box-shadow: 0 0 0 4px rgba(114, 217, 238, 0.28);
}
.j-step.is-active h3 { color: #9fe8f7; }

/* When JS is on, only the selected stage's panel is shown, full width. */
.journey-panels.is-interactive {
  display: block;
  margin-top: 1.6rem;
}
.journey-panels.is-interactive .journey-panel {
  animation: journeyPanelIn 0.28s ease;
  padding: 1.35rem 1.5rem;
}
.journey-panels.is-interactive .journey-panel p { font-size: 0.94rem; max-width: 60rem; }
@keyframes journeyPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .journey-panels.is-interactive .journey-panel { animation: none; }
}

/* Search is a utility rail, not another card deck. */
.search-section { background: linear-gradient(180deg, #e7eef0, #f5f1e8); }
.search-layout { display: grid; grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.search-copy h2 { margin-bottom: 0.4rem; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.search-copy p { color: var(--c-text-2); }
.search-box { max-width: none; }
.search-box input {
  min-height: 58px;
  background: #fffdf8;
  border-color: #cbd7da;
  border-radius: 12px;
  box-shadow: none;
}
.search-tags { justify-content: flex-start; }
.search-tags button { background: transparent; border-color: #c7d1d4; }

/* Editorial hierarchy in the audience and mission sections. */
#personas { background: #fffdf8; }
#personas .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
#personas .card {
  min-height: 0;
  padding: 1.05rem 1.1rem;
  background: transparent;
  border: 0;
  border-top: 1px solid #cfd9dc;
  border-radius: 0;
  box-shadow: none;
}
#personas .card:hover { transform: none; background: #f3f6f4; box-shadow: none; }
#personas .card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.5rem;
  color: #fff;
  background: var(--c-navy-800);
  border: 0;
  border-radius: 12px;
}
#personas .card:first-child h3 { margin: 0; color: #fff; }
#personas .card:first-child p { margin: 0; color: #cbd9e7; }
#personas .card:first-child .btn { color: #07111f; background: #72d9ee; }
#personas .card h3 { font-size: 1rem; }
#personas .card p { font-size: 0.88rem; }
#personas .card .btn { min-height: 38px; padding: 0.25rem 0; background: transparent; color: var(--c-link); text-decoration: underline; text-underline-offset: 4px; }

#mission { background: #e8eff1; }
#mission .container { display: grid; grid-template-columns: minmax(14rem, 0.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
#mission .section-head { margin: 0; }
#mission .container > div:last-child { max-width: 46rem !important; }

/* Reading chapters: compact groups and low-chrome accordions. */
#before { background: #fffdf8; }
#during { background: #edf4f6; }
#conditions { background: #fffdf8; }
#after { background: #f6f2ea; }

.acc {
  background: rgba(255, 255, 255, 0.68);
  border-color: #d7e0e2;
  border-radius: 10px;
  box-shadow: none;
}
.acc summary { min-height: 58px; padding: 0.9rem 1rem; }
.acc summary:hover { background: rgba(17, 115, 212, 0.05); }
.acc .acc-icon { background: #e4eff8; color: var(--c-primary-strong); border-radius: 8px; }
.acc .acc-body { color: #425261; background: #fffdf8; }
.acc[open] { border-color: #aebfc6; }

@media (min-width: 64em) {
  #before > .container,
  #during > .container,
  #after > .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    align-items: start;
  }
  #before .section-head,
  #during .section-head,
  #after .section-head,
  #before .container > p { grid-column: 1 / -1; }
  #before .acc,
  #during .acc,
  #after .acc { margin: 0; }
  #before .acc[open],
  #during .acc[open],
  #after .acc[open] { grid-column: 1 / -1; }
  #chronic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; }
  #chronic .acc[open] { grid-column: 1 / -1; }
}

#vulnerable {
  max-width: none;
  margin: 3.25rem 0 1.1rem !important;
  padding: 1.5rem;
  color: #fff;
  background: var(--c-navy-800);
  border-inline-start: 5px solid var(--c-cyan);
  border-radius: 10px;
}
#vulnerable .kicker { color: #7bd9ed; }
#vulnerable h2 { color: #fff; }
#vulnerable p { color: #c8d7e6; }
#conditions .container > .acc:not(#chronic .acc) .acc-icon { background: #e8f5f2; color: var(--c-success); }

/* Immediate-action centre */
.section-emergency {
  color: #eef6ff;
  background:
    radial-gradient(circle at 88% 8%, rgba(215, 81, 69, 0.12), transparent 30rem),
    var(--c-navy-950);
  border: 0;
}
.section-emergency > .container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; align-items: start; }
.section-emergency .emergency-alert,
.section-emergency .emergency-quick,
.section-emergency .section-head,
.section-emergency .emergency-numbers-note { grid-column: 1 / -1; }
.section-emergency .section-head { margin: 1.2rem 0 1.6rem; }
.section-emergency .section-head .kicker { color: #ffb1a7; }
.section-emergency .section-head h2 { color: #fff; }
.section-emergency .section-head p { color: #bfd0e2; }

.emergency-alert {
  margin: 0;
  padding: clamp(1.3rem, 3vw, 2rem);
  color: #fff;
  background: #13233a;
  border: 1px solid rgba(255, 152, 140, 0.38);
  border-inline-start: 5px solid var(--c-danger);
  border-radius: 10px;
}
.emergency-alert h3 { color: #fff; font-size: clamp(1.25rem, 2.3vw, 1.7rem); }
.emergency-alert p { color: #dce6f0; margin-bottom: 0; }
.emergency-alert strong { color: #ffd0ca; }

.emergency-quick { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 0.25rem; }
.emergency-quick a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  color: #f3f7fb;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.emergency-quick a::before { content: ""; inline-size: 7px; block-size: 7px; margin-inline-end: 0.45rem; border-radius: 50%; background: var(--c-danger); }
.emergency-quick a:hover { color: #fff; background: rgba(215, 81, 69, 0.16); }

.section-emergency .acc {
  margin: 0;
  color: #eef6ff;
  background: #0f2037;
  border-color: rgba(255, 255, 255, 0.13);
}
.section-emergency .acc[open] { grid-column: 1 / -1; border-color: rgba(255, 161, 150, 0.42); }
.section-emergency .acc summary:hover { background: rgba(255, 255, 255, 0.05); }
.section-emergency .acc .acc-icon { background: rgba(215, 81, 69, 0.16); color: #ffb1a7; }
.section-emergency .acc .acc-body { color: #c9d7e5; background: #13243b; border-top-color: rgba(255, 255, 255, 0.12); }
.section-emergency .acc-body strong,
.section-emergency .acc-body .em-label { color: #fff; }
.section-emergency .warn-line { color: #ffe6e2; background: rgba(215, 81, 69, 0.13); border-color: rgba(255, 161, 150, 0.32); }
.section-emergency .acc summary::after { color: #ffb1a7; }

.emergency-numbers-note {
  color: #f5e8c7;
  background: rgba(214, 166, 71, 0.1);
  border-color: rgba(214, 166, 71, 0.38);
}
.emergency-numbers-note .status-chip { color: #251a03; background: #e4b961; }

/* Public tools remain the primary utility surface. */
#tools { background: #edf3f4; }
#tools .section-head { max-width: 58rem; }
.tool-tabs { padding: 0; background: transparent; border: 0; border-bottom: 1px solid #cbd6d9; border-radius: 0; }
.tool-tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; }
.tool-tabs button[aria-selected="true"] { color: var(--c-primary-strong); background: transparent; border-color: var(--c-primary); }
.tool-panel { background: #fffdf8; border-color: #d5dfe1; border-radius: 12px; box-shadow: var(--shadow-1); }
.tool-note { background: #e9f2f7; border-color: #ccdde7; }

#sources { background: #dfeaec; }
.source-pills { gap: 0; border-block: 1px solid #bdcdd1; }
.source-pills li { border-radius: 0; border: 0; border-inline-end: 1px solid #bdcdd1; background: transparent; }
.source-note { max-width: 70rem; }

#faq { background: #fffdf8; }
.faq-list { max-width: 58rem; }
.faq-list .acc { border-inline: 0; border-radius: 0; background: transparent; }
.faq-list .acc .acc-body { background: transparent; }

/* Sarop Life appears only after public value, with explicit availability. */
.section-sarop {
  color: #eef6ff;
  background:
    radial-gradient(circle at 12% 50%, rgba(23, 200, 231, 0.12), transparent 28rem),
    var(--c-navy-900);
}
.section-sarop .container { position: relative; }
.sarop-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.36fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.section-sarop .section-head { margin-bottom: 1.4rem; }
.section-sarop .section-head .kicker { color: #78d9ed; }
.section-sarop .section-head h2 { color: #fff; }
.section-sarop .section-head p { color: #c5d4e3; }
.sarop-optional { color: #fff !important; font-weight: 700; }
.sarop-life-mark { width: min(100%, 13.5rem); height: auto; justify-self: center; border-radius: 24px; box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28); }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 2rem 0 1.3rem;
  border-block: 1px solid rgba(255, 255, 255, 0.17);
}
.compare-column { padding: 1.6rem 0; }
.section-sarop .compare-column { background: transparent; border-block: 0; }
.compare-column + .compare-column { padding-inline-start: 2rem; border-inline-start: 1px solid rgba(255, 255, 255, 0.17); }
.compare-column h3 { color: #fff; }
.compare-column ul { color: #c4d3e2; }
.compare-column li::marker { color: #72d9ee; }
.compare-badge { display: inline-block; margin-bottom: 0.7rem; padding: 0.12rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.compare-badge.free { color: #061d18; background: #70d4bd; }
.compare-badge.app { color: #06111e; background: #72d9ee; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  max-width: 56rem;
  margin: 1.7rem auto 0.5rem;
}

.store-badge {
  flex: 1 1 11.5rem;
  max-width: 15.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 0.6rem 1rem;
  color: #eaf3ff;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(114, 217, 238, 0.6);
  background: linear-gradient(160deg, rgba(114, 217, 238, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.store-badge small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  line-height: 1.1;
}

.store-badge b {
  display: block;
  color: inherit;
  font-size: 1rem;
  line-height: 1.25;
}

.store-icon {
  display: grid;
  place-items: center;
  inline-size: 1.85rem;
  block-size: 1.85rem;
  flex: none;
}

.store-icon svg {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  fill: currentColor;
}

.store-badge-play .store-icon { color: #61d394; }
.store-badge-fa .store-icon { color: #72d9ee; }
.store-letter {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 900;
}

[data-fa-only][hidden] { display: none !important; }

.sarop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.2rem; }
.section-sarop .no-block-note { text-align: center; }
.sarop-actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.sarop-actions .btn-outline:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.section-sarop .no-block-note { color: #b8cadb; }
.support-line { color: #aebfd1; }
.support-line a { color: #72d9ee; }

.site-footer { background: #fffdf8; }
.footer-brand { gap: 1rem; }
.footer-brand img { width: 150px; height: auto; padding: 0.2rem 0.4rem; background: #fff; border-radius: 6px; }

/* Compact, persistent and clearly non-promotional emergency access. */
.emergency-fab {
  inset-inline-end: 0.75rem;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  min-height: 48px;
  padding: 0.55rem 0.9rem;
  font-size: 0.84rem;
  background: #9f3028;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(7, 17, 31, 0.24);
}

@media (min-width: 64em) and (max-width: 75em) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-campaign { display: none; }
}

@media (max-width: 63.99em) {
  .header-emergency { margin-inline-start: auto; }
  .hero.hero-brand { min-height: 0; padding-block: 3.25rem; background-position: 35% center; }
  .hero-grid { min-height: 0; grid-template-columns: minmax(0, 1fr) 12rem; gap: 1.5rem; }
  .hero-copy { grid-column: 1; }
  .hero-visual { grid-column: 2; }
  .hero-campaign-logo { width: 10rem; }
  .hero-trust { font-size: 0.9rem; }
  .journey-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem 0; }
  .journey-list::before { display: none; }
  .journey-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #personas .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-emergency > .container { grid-template-columns: 1fr; }
}

@media (max-width: 47.99em) {
  :root { --space-section: 3.4rem; }
  .top-banner { font-size: 0.8rem; }
  .top-banner .container { justify-content: flex-start; text-align: start; }
  .brand-logo { inline-size: 112px; block-size: 34px; }
  .brand-campaign { display: none; }
  .header-emergency span:last-child { display: none; }
  .header-emergency { padding: 0.3rem; border-radius: 50%; }
  .lang-switch select { max-width: 6.2rem; min-height: 42px; }
  .nav-toggle { inline-size: 44px; block-size: 44px; }

  .hero.hero-brand {
    padding-block: 2.7rem 3rem;
    background-image:
      linear-gradient(to bottom, rgba(7, 17, 31, 0.88), rgba(7, 17, 31, 0.76) 48%, rgba(7, 17, 31, 0.94)),
      url("../images/arbaeen-hero.webp");
    background-position: 30% center;
  }
  [dir="ltr"] .hero.hero-brand {
    background-image:
      linear-gradient(to bottom, rgba(7, 17, 31, 0.88), rgba(7, 17, 31, 0.76) 48%, rgba(7, 17, 31, 0.94)),
      url("../images/arbaeen-hero.webp");
  }
  .hero-grid { display: block; }
  .hero-copy { max-width: none; }
  .hero-brandchip { margin-inline-end: 6.1rem; font-size: 0.78rem; }
  .hero h1 { max-width: 10ch; font-size: clamp(2.35rem, 12vw, 3.45rem); }
  .hero-sub { font-size: 0.98rem; }
  .hero-free-note { font-size: 0.84rem; }
  .hero-ctas { display: grid; grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .hero-trust-list { grid-template-columns: 1fr 1fr; }
  .hero-trust-list li { padding-inline: 0.55rem; }
  .hero-visual { display: block; }
  .hero-campaign-logo { position: absolute; top: 2.3rem; inset-inline-end: 1rem; width: 5.25rem; border-radius: 10px; }
  .hero-trust { width: 100%; margin-top: 1.25rem; padding: 1rem; }

  .journey-section .section-head { margin-bottom: 1.8rem; }
  .journey-list { display: block; margin-inline-start: 0.35rem; padding-inline-start: 1.65rem; }
  .journey-list::before { display: block; top: 0; bottom: 0; inset-inline-start: 1.35rem; inset-inline-end: auto; inline-size: 2px; block-size: auto; background: linear-gradient(#17c8e7, #d6a647); }
  .j-step { padding: 0 0 1.55rem; }
  .j-num { position: absolute; inset-inline-start: -2.5rem; top: -0.15rem; inline-size: 2.15rem; block-size: 2.15rem; border-width: 4px; font-size: 0.8rem; }
  .j-step h3 { margin-bottom: 0.2rem; }
  .j-step p { margin-bottom: 0.25rem; }
  .journey-panels { grid-template-columns: 1fr; margin-top: 1rem; }
  .journey-panel { padding: 0.9rem; }
  .journey-panel-actions { display: grid; }

  .search-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .search-copy,
  .search-area,
  .search-box { min-width: 0; max-width: 100%; }
  .search-box input { width: 100%; max-width: 100%; }
  .search-tags { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.35rem; }
  .search-tags button { flex: 0 0 auto; }

  #personas .grid { grid-template-columns: 1fr; }
  #personas .card:first-child { display: block; }
  #personas .card:first-child h3,
  #personas .card:first-child p { margin-bottom: 0.6rem; }

  #mission .container { grid-template-columns: 1fr; gap: 1.2rem; }
  #vulnerable { padding: 1.2rem; }
  .section-emergency > .container { display: block; }
  .section-emergency .acc { margin-bottom: 0.65rem; }
  .emergency-quick { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.35rem; }
  .emergency-quick a { flex: 0 0 auto; }
  .tool-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tool-tabs button { flex: 0 0 auto; }
  .sarop-intro { grid-template-columns: 1fr; }
  .sarop-life-mark { width: 8.5rem; justify-self: start; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-column + .compare-column { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, 0.17); }
  .store-badges { display: grid; grid-template-columns: 1fr; }
  .store-badge { width: 100%; min-width: 0; }
  .sarop-actions { display: grid; }
  .sarop-actions .btn { width: 100%; }
  .footer-bottom { align-items: flex-start; }
  .footer-brand { display: grid; }
}

@media (max-width: 22.5em) {
  .brand-logo { inline-size: 92px; }
  .header-row { gap: 0.35rem; }
  .lang-switch select { max-width: 5.5rem; font-size: 0.86rem; }
  .hero h1 { font-size: 2.35rem; }
  .hero-brandchip { margin-inline-end: 5.3rem; }
  .hero-trust-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

@media print {
  .hero.hero-brand,
  .journey-section,
  .section-emergency,
  .section-sarop { color: #000 !important; background: #fff !important; }
  .hero-campaign-logo,
  .sarop-life-mark,
  .hero-trust-list,
  .emergency-quick,
  .store-badges { display: none !important; }
  .hero h1,
  .hero h1 .line2,
  .journey-section h2,
  .section-emergency h2,
  .section-sarop h2 { color: #000 !important; text-shadow: none !important; }
}
