@font-face {
  font-family: "DIN Next Arabic";
  src: url("assets/din-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DIN Next Arabic";
  src: url("assets/din-medium.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --ink: #162a24;
  --muted: #667873;
  --line: #d9e5e1;
  --surface: #f3f8f6;
  --green: #008f69;
  --green-dark: #0c493e;
  --green-soft: #eaf7f2;
  --red: #b73930;
  --red-soft: #fff4f2;
  --shadow: 0 16px 44px rgba(16, 58, 46, .09);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #edf5f2;
  font-family: "DIN Next Arabic", Tahoma, sans-serif;
}
button, a, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.presentation-head {
  min-height: 300px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(390px, .7fr);
  align-items: center;
  gap: 3rem;
  padding: 3rem 4vw;
  color: #f5fbf8;
  background: var(--green-dark);
}
.back-link {
  align-self: start;
  justify-self: start;
  padding: .55rem .75rem;
  border: 1px solid rgba(235, 249, 243, .3);
  border-radius: 5px;
  color: #e9f7f2;
  text-decoration: none;
  font-size: .76rem;
}
.back-link:hover { border-color: #e9f7f2; }
.concept-label {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: 3px;
  color: #0c493e;
  background: #bde8d9;
  font-size: .68rem;
  font-weight: 700;
}
.presentation-head > div > p:not(.lead) {
  margin: .8rem 0 .2rem;
  color: #a9d7c8;
  font-size: .8rem;
}
.presentation-head h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.presentation-head .lead {
  max-width: 680px;
  margin: 1rem 0 0;
  color: #c4ddd5;
  font-size: 1rem;
  line-height: 1.7;
}
.presentation-head dl {
  display: grid;
  gap: .8rem;
  margin: 0;
}
.presentation-head dl > div {
  padding: .85rem 1rem;
  border: 1px solid rgba(228, 246, 239, .18);
  border-radius: 6px;
  background: rgba(237, 249, 244, .05);
}
.presentation-head dt { color: #8ed5bd; font-size: .7rem; }
.presentation-head dd { margin: .2rem 0 0; color: #eff8f5; font-size: .82rem; line-height: 1.6; }

.comparison {
  width: min(1900px, calc(100% - 3vw));
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.journey {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fcfb;
  box-shadow: var(--shadow);
}
.journey--current { border-color: #e8d2cf; }
.journey--proposed { border-color: #bfe1d6; }
.journey__head {
  min-height: 112px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.journey--current .journey__head { background: var(--red-soft); }
.journey--proposed .journey__head { background: var(--green-soft); }
.journey__head > div > span { color: var(--muted); font-size: .68rem; }
.journey__head h2 { margin: .25rem 0 .15rem; font-size: 1.35rem; }
.journey--current .journey__head h2 { color: var(--red); }
.journey--proposed .journey__head h2 { color: #087a59; }
.journey__head p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.journey__head > b {
  flex: 0 0 auto;
  padding: .28rem .55rem;
  border-radius: 4px;
  color: #f8fcfa;
  font-size: .66rem;
}
.journey--current .journey__head > b { background: var(--red); }
.journey--proposed .journey__head > b { background: var(--green); }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 25px;
  right: 13%;
  left: 13%;
  height: 1px;
  background: #dbe6e2;
}
.steps li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .3rem;
  color: #85928e;
  text-align: center;
}
.steps i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #d7e2df;
  border-radius: 50%;
  color: #71817c;
  background: #f0f5f3;
  font-size: .58rem;
  font-style: normal;
  font-weight: 700;
}
.steps span { font-size: .57rem; }
.steps li.is-complete i { color: #fff; background: #62bfa1; border-color: #62bfa1; }
.journey--current .steps li.is-active { color: var(--red); font-weight: 700; }
.journey--current .steps li.is-active i { color: #fff; background: var(--red); border-color: var(--red); }
.journey--proposed .steps li.is-active { color: #087a59; font-weight: 700; }
.journey--proposed .steps li.is-active i { color: #fff; background: var(--green); border-color: var(--green); }

.presenter-note {
  margin: .8rem 1rem;
  padding: .7rem .8rem;
  border: 1px solid #dbe5e2;
  border-radius: 6px;
  background: #f5f8f7;
}
.journey--current .presenter-note { border-color: #ead6d3; background: #fff8f7; }
.journey--proposed .presenter-note { border-color: #cbe4dc; background: #f1faf7; }
.presenter-note > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.presenter-note strong { color: #34453f; font-size: .7rem; }
.journey--current .presenter-note strong { color: #9d3c35; }
.journey--proposed .presenter-note strong { color: #087a59; }
.presenter-note span {
  padding: .15rem .4rem;
  border-radius: 3px;
  color: #64736e;
  background: #e7edeb;
  font-size: .53rem;
}
.presenter-note p { margin: .25rem 0 0; color: #5f6e69; font-size: .65rem; line-height: 1.55; }

.browser {
  margin: 0 1rem;
  overflow: hidden;
  border: 1px solid #d7e2df;
  border-radius: 8px;
  background: #f1f7f5;
}
.browser__bar {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .8rem;
  padding: 0 .8rem;
  border-bottom: 1px solid #d7e2df;
  color: #6e7e79;
  background: #eaf0ee;
  font-size: .6rem;
}
.browser__dots { display: flex; gap: 5px; }
.browser__dots i { width: 8px; height: 8px; display: block; border-radius: 50%; background: #b8c5c1; }
.browser__dots i:first-child { background: #20b77e; }
.browser__bar > span { text-align: center; font-weight: 700; }
.browser__bar small {
  direction: ltr;
  padding: .18rem .55rem;
  border-radius: 12px;
  color: #7c8a86;
  background: #f8fbfa;
  font-size: .54rem;
}
.browser__viewport {
  min-height: 590px;
  position: relative;
  overflow: hidden;
  background: #f6faf8;
}
.screen {
  min-height: 590px;
  animation: screen-in .28s var(--ease) both;
}
@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
}

.gov-bar {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  color: #37443f;
  background: #f0f2f1;
  font-size: .52rem;
}
.gov-bar i { width: 10px; height: 7px; display: block; background: #16804e; }
.site-nav {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: .55rem 1rem;
  border-bottom: 1px solid #e1e8e6;
  background: #fff;
}
.site-nav img { width: 72px; height: 44px; object-fit: contain; }
.site-nav nav { display: flex; justify-content: center; gap: 1.25rem; color: #283631; font-size: .64rem; }
.site-actions { display: flex; align-items: center; gap: .65rem; }
.site-actions span { color: #3d4b46; font-size: .58rem; }
.login-button {
  min-height: 35px;
  padding: .5rem .8rem;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: #2f9b77;
  font-size: .62rem;
  font-weight: 700;
}
.home-hero {
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: #f7fbfa;
  background:
    radial-gradient(circle at 25% 65%, rgba(34, 137, 114, .35), transparent 29%),
    linear-gradient(135deg, #06101d 0%, #071b2a 46%, #0c4e49 100%);
  text-align: center;
}
.home-hero__content { max-width: 620px; }
.home-hero h3 { margin: 0; font-size: 2.5rem; }
.home-hero p { margin: 1rem auto; max-width: 520px; color: #d8e5e1; font-size: .9rem; line-height: 1.65; }
.home-hero button {
  min-height: 38px;
  padding: .55rem 1.1rem;
  border: 0;
  border-radius: 3px;
  color: #27332f;
  background: #f7faf9;
  font-size: .65rem;
}

.nafath-page { min-height: 590px; background: linear-gradient(165deg, #f9fcfb 0 58%, #ecf5f2 58%); }
.nafath-page h3 { margin: 0; padding: 1.6rem 1rem .8rem; font-size: 1.25rem; text-align: center; }
.nafath-card {
  width: min(480px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 1.25rem 1.25rem;
  border: 1px solid #edf1f0;
  background: #fff;
  box-shadow: 0 8px 25px rgba(31, 83, 66, .04);
}
.nafath-card__head {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e6ecea;
}
.nafath-mark {
  display: grid;
  place-items: center;
  min-height: 70px;
  color: #2f9b77;
  background: #f2f9f6;
  font-size: 2.1rem;
  font-weight: 700;
}
.nafath-card h4 { margin: 0; font-size: .9rem; }
.nafath-card__head p { margin: .3rem 0 0; color: #65736e; font-size: .6rem; line-height: 1.5; }
.role-context {
  margin: .75rem 0 0;
  padding: .45rem .65rem;
  border: 1px solid #cbe4dc;
  border-radius: 4px;
  color: #087a59;
  background: #f0faf6;
  font-size: .62rem;
}
.nafath-card label { display: block; margin: .9rem 0 .3rem; color: #4e5c57; font-size: .62rem; }
.nafath-card input {
  width: 100%;
  height: 40px;
  padding: 0 .7rem;
  border: 1px solid #cfe0db;
  color: #7a8883;
  background: #edf7f4;
  font-size: .62rem;
}
.nafath-card button {
  width: 100%;
  min-height: 40px;
  margin-top: .7rem;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: #83bda9;
  font-size: .68rem;
  font-weight: 700;
}

.dashboard { min-height: 590px; background: #f2faf8; }
.dashboard-nav {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .55rem 1rem;
  border-bottom: 1px solid #dce8e5;
  background: #fff;
}
.dashboard-nav img { width: 68px; }
.dashboard-nav nav { display: flex; justify-content: center; gap: 1rem; color: #65736e; font-size: .6rem; }
.account-menu { position: relative; }
.account-trigger {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .5rem;
  border: 1px solid #e0e9e6;
  border-radius: 5px;
  color: #32423c;
  background: #fff;
}
.account-trigger > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #087a59;
  font-size: .62rem;
}
.account-trigger b, .account-trigger small { display: block; text-align: right; }
.account-trigger b { color: #087a59; font-size: .56rem; }
.account-trigger small { color: #7b8984; font-size: .49rem; }
.account-trigger i { color: #899691; font-size: .56rem; font-style: normal; }
.role-dropdown {
  width: 210px;
  display: none;
  position: absolute;
  z-index: 5;
  top: calc(100% + .4rem);
  left: 0;
  padding: .5rem;
  border: 1px solid #d8e4e0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(19, 53, 43, .15);
}
.role-dropdown.is-open { display: block; }
.role-dropdown > b { display: block; padding: .35rem; color: #71807b; font-size: .55rem; }
.role-dropdown button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: .5rem;
  border: 0;
  border-radius: 3px;
  color: #35433e;
  background: transparent;
  font-size: .6rem;
  text-align: right;
}
.role-dropdown button:hover { background: #eef8f4; }
.dashboard-body { padding: 1.25rem; }
.dashboard-body > span { color: #008f69; font-size: .6rem; }
.dashboard-body h3 { margin: .3rem 0 1rem; font-size: 1.35rem; }
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.dashboard-cards article {
  min-height: 130px;
  padding: 1rem;
  border: 1px solid #dce8e4;
  border-radius: 5px;
  background: #fff;
}
.dashboard-cards small, .dashboard-cards strong, .dashboard-cards span { display: block; }
.dashboard-cards small { color: #7b8984; font-size: .58rem; }
.dashboard-cards strong { margin: .45rem 0 .65rem; font-size: 1.35rem; }
.dashboard-cards span { color: #008f69; font-size: .55rem; }
.role-confirmation {
  margin-bottom: .8rem;
  padding: .6rem .75rem;
  border: 1px solid #c7e3da;
  border-radius: 5px;
  color: #087a59;
  background: #effaf6;
  font-size: .65rem;
}

.role-page {
  min-height: 590px;
  padding: 1.4rem;
  background: #f1f8f5;
}
.role-picker {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.35rem;
  border: 1px solid #cfe2dc;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(25, 69, 55, .07);
}
.role-picker__intro { max-width: 530px; margin: 0 auto 1rem; text-align: center; }
.role-picker__intro > span {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 3px;
  color: #087a59;
  background: #dff3ec;
  font-size: .56rem;
  font-weight: 700;
}
.role-picker h3 { margin: .6rem 0 .3rem; font-size: 1.35rem; }
.role-picker__intro p { margin: 0; color: #6b7b75; font-size: .68rem; line-height: 1.6; }
.role-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}
.role-option {
  min-height: 170px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: .9rem .7rem;
  border: 1px solid #d8e5e1;
  border-radius: 6px;
  color: #31413b;
  background: #fbfdfc;
  text-align: center;
  transition: transform .2s var(--ease), border-color .2s ease, background .2s ease;
}
.role-option:hover { transform: translateY(-2px); border-color: #70c5a8; }
.role-option.is-selected {
  border-color: #00a477;
  background: #edf9f5;
  box-shadow: 0 0 0 2px rgba(0, 164, 119, .1);
}
.role-option i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #087a59;
  background: #dff2eb;
  font-size: 1.1rem;
  font-style: normal;
}
.role-option b { margin: .6rem 0 .25rem; font-size: .78rem; }
.role-option small { color: #74827d; font-size: .54rem; line-height: 1.5; }
.role-option span { margin-top: auto; color: #008f69; font-size: .54rem; font-weight: 700; }
.role-next {
  min-width: 190px;
  min-height: 40px;
  display: block;
  margin: 1rem auto 0;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: #00a477;
  font-size: .68rem;
  font-weight: 700;
}
.role-picker > p { margin: .5rem 0 0; color: #83908c; font-size: .54rem; text-align: center; }

.journey__controls {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
}
.journey__controls span { color: #71807b; font-size: .62rem; text-align: center; }
.primary, .secondary {
  min-height: 36px;
  padding: .45rem .8rem;
  border-radius: 4px;
  font-size: .65rem;
}
.primary { border: 1px solid #008f69; color: #fff; background: #008f69; }
.secondary { border: 1px solid #cadbd6; color: #40514b; background: #fff; }
.primary:disabled { cursor: default; opacity: .45; }

.decision-summary {
  width: min(1220px, calc(100% - 3rem));
  margin: 3rem auto 5rem;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}
.decision-summary > div:first-child > span { color: #008f69; font-size: .75rem; font-weight: 700; }
.decision-summary h2 { margin: .35rem 0 0; font-size: 2rem; line-height: 1.3; }
.decision-summary__items { border-top: 1px solid #cfded9; }
.decision-summary article {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #cfded9;
}
.decision-summary article b { color: #087a59; font-size: .78rem; }
.decision-summary article p { margin: 0; color: #61706b; font-size: .78rem; line-height: 1.6; }

.toast {
  position: fixed;
  z-index: 20;
  right: 50%;
  bottom: 1.2rem;
  transform: translate(50%, 130%);
  min-width: 280px;
  max-width: 90vw;
  padding: .8rem 1rem;
  border-radius: 5px;
  color: #f5fbf8;
  background: #172c25;
  box-shadow: var(--shadow);
  font-size: .72rem;
  text-align: center;
  opacity: 0;
  transition: transform .25s var(--ease), opacity .2s ease;
}
.toast.is-visible { transform: translate(50%, 0); opacity: 1; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(0, 164, 119, .25); outline-offset: 3px; }

@media (max-width: 1100px) {
  .presentation-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .back-link { order: 3; }
  .presentation-head dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison { grid-template-columns: 1fr; width: min(900px, calc(100% - 1.5rem)); }
  .decision-summary { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 680px) {
  .presentation-head { padding: 2rem 1rem; }
  .presentation-head dl { grid-template-columns: 1fr; }
  .presentation-head h1 { font-size: 2.1rem; }
  .journey__head { min-height: auto; flex-direction: column; }
  .steps { overflow-x: auto; grid-template-columns: repeat(4, minmax(92px, 1fr)); }
  .presenter-note > div { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .browser { margin: 0 .6rem; }
  .browser__bar { grid-template-columns: auto 1fr; }
  .browser__bar small { display: none; }
  .site-nav nav, .site-actions > span, .dashboard-nav nav { display: none; }
  .home-hero h3 { font-size: 2rem; }
  .nafath-card__head { grid-template-columns: 1fr; }
  .dashboard-cards, .role-options { grid-template-columns: 1fr; }
  .browser__viewport, .screen, .nafath-page, .dashboard, .role-page { min-height: 680px; }
  .role-option { min-height: 145px; }
  .decision-summary { width: calc(100% - 2rem); }
  .decision-summary article { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
