@font-face {
  font-family: Tajawal;
  src: url('/fonts/Tajawal.woff');
  font-display: swap;
}
:root {
  font-family: Tajawal, Tahoma, Arial, sans-serif;
  color: #1d2d48;
  background: #edf1f7;
  --accent: #405cc2;
  --line: #d8e0ee;
  --muted: #566780;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a.primary {
  cursor: pointer;
}
button {
  min-height: 44px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6886e1;
  outline-offset: 3px;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid var(--line);
  line-height: 1.4;
}
.primary {
  background: linear-gradient(115deg, #385fcb, #7450cc);
  color: white;
  border: 0;
  box-shadow: 0 5px 15px #425bb31a;
}
.secondary {
  background: #edf1fc;
  color: #344b87;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.subtle,
small {
  color: var(--muted);
}
p {
  line-height: 1.8;
}
h1,
h2,
h3 {
  line-height: 1.4;
}
.eyebrow {
  color: #5667a1;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.demo-top {
  min-height: 82px;
  background: #f9faff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 16px max(24px, calc((100vw - 1440px) / 2));
  font-size: 14px;
}
.demo-top > a:first-child {
  margin-inline-end: auto;
}
.demo-top img {
  object-fit: contain;
  display: block;
  max-width: 100%;
}
.demo-notice {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #e1e8fb;
  border-bottom: 1px solid #c7d4f6;
  padding: 12px 20px;
  font-size: 13px;
  flex-wrap: wrap;
  color: #2c477f;
}
.demo-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #4264bf;
  box-shadow: 0 0 0 5px #4264bf14;
}
.catalog-intro {
  max-width: 950px;
  margin: 70px auto 36px;
  text-align: center;
  padding: 0 24px;
}
.catalog-intro h1 {
  font-size: clamp(30px, 4vw, 49px);
  letter-spacing: -0.04em;
  margin: 14px 0;
}
.catalog-intro > p {
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto 22px;
}
.catalog-benefits {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.catalog-benefits span {
  font-size: 12px;
  border: 1px solid #d5dfee;
  background: #f8faff;
  border-radius: 20px;
  padding: 8px 14px;
}
.catalog-controls {
  max-width: 1260px;
  margin: 0 auto 25px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.demo-catalog {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.demo-card {
  background: #f9fbff;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 25px #21355205;
}
.demo-card > img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.demo-card > div {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.demo-card h2 {
  font-size: 22px;
  margin: 7px 0;
}
.demo-card p {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}
.demo-card button {
  width: 100%;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #cbd5e6;
  border-radius: 9px;
  padding: 10px 12px;
  color: #1d2d48;
  background: #fff;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.error {
  color: #a12e43;
  min-height: 1em;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.dialog-top h2 {
  font-size: 22px;
  margin: 0;
}
.dialog-top button {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 44px;
  background: #edf2fc;
  font-size: 27px;
  flex: none;
}
dialog {
  width: min(800px, calc(100% - 30px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f9fbff;
  color: inherit;
  padding: 26px;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 25px 90px #111f4c33;
}
dialog::backdrop {
  background: #14244888;
  backdrop-filter: blur(3px);
}
dialog .subtle {
  font-size: 12px;
}
#demo-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: min(410px, calc(100vw - 40px));
  font-size: 13px;
  z-index: 10;
  background: #243c70;
  color: white;
  border-radius: 10px;
  box-shadow: 0 8px 25px #182f5d26;
  line-height: 1.7;
}
#demo-toast:not(:empty) {
  padding: 12px 18px;
}
.trial-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: calc(100dvh - 130px);
}
.trial-sidebar {
  background: #f6f8fe;
  border-inline-end: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-height: calc(100dvh - 20px);
  position: sticky;
  top: 0;
  overflow-y: auto;
}
.program-identity {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 14px 22px;
  border-bottom: 1px solid var(--line);
}
.program-identity strong {
  font-size: 19px;
  color: #3455a0;
}
.program-identity > span {
  font-size: 12px;
  color: var(--muted);
}
.trial-sidebar nav {
  display: grid;
  gap: 7px;
}
.trial-sidebar nav button {
  border: 0;
  background: transparent;
  text-align: start;
  color: #445777;
  padding: 14px 12px;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.trial-sidebar nav button.active {
  background: #e2e9fb;
  color: #234487;
  font-weight: 700;
}
.trial-sidebar nav button > span {
  color: #667da8;
}
.sidebar-bottom {
  display: grid;
  gap: 9px;
  margin-top: auto;
}
.sidebar-bottom .primary {
  font-size: 13px;
}
.trial-workspace {
  padding: 32px;
  min-width: 0;
  max-width: 1500px;
  width: 100%;
  margin: auto;
}
.workspace-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.workspace-title h1 {
  margin: 6px 0 0;
  font-size: 27px;
}
.panel {
  background: #f9fbff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px;
  margin: 22px 0;
}
.panel h2 {
  font-size: 20px;
  margin: 0;
}
.panel .subtle {
  font-size: 13px;
}
.sector-hero {
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}
.sector-hero > div {
  padding: 32px;
}
.sector-hero h2 {
  font-size: clamp(24px, 2.5vw, 33px);
  margin: 12px 0;
}
.sector-hero p {
  color: var(--muted);
  font-size: 14px;
}
.sector-hero > img {
  width: 100%;
  height: 100%;
  max-height: 310px;
  object-fit: cover;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.metric-grid article {
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.metric-grid span {
  color: var(--muted);
  font-size: 13px;
}
.metric-grid b {
  font-size: 32px;
  color: #2b4485;
}
.metric-grid small {
  font-size: 10px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbff;
  overscroll-behavior: contain;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 13px;
}
th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: middle;
  min-width: 100px;
  overflow-wrap: anywhere;
}
th {
  background: #e8eef9;
  color: #374d78;
  font-weight: 700;
}
td button {
  font-size: 12px;
  margin: 3px;
  padding: 9px 12px;
}
td b {
  font-weight: 700;
}
tr:last-child td {
  border-bottom: 0;
}
.badge {
  background: #e5ebfa;
  color: #345396;
  border-radius: 12px;
  padding: 5px 9px;
  display: inline-block;
}
.link-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #3453a0;
  background: #e8eefa;
}
.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}
.tabs button {
  background: #f9fbff;
  border: 1px solid var(--line);
  color: #455b88;
  border-radius: 9px;
  padding: 10px 16px;
}
.tabs button[aria-pressed='true'] {
  color: white;
  background: #465eb5;
  border-color: transparent;
}
.trial-footer {
  padding: 25px 0;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.trial-footer a {
  color: #3456ab;
  font-weight: 700;
}
.report-rows p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 0;
}
.report-rows {
  margin: 16px 0 22px;
}
.stage-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  margin: 25px 0;
}
.stage-list li {
  padding: 12px;
  background: #edf1f7;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #7d8799;
  font-size: 13px;
}
.stage-list li.done {
  border-color: #9eb3e6;
  color: #2a519d;
  background: #e4ecfb;
}
.stage-list li span {
  margin-inline-end: 9px;
  font-weight: 700;
}
.detail-name {
  font-size: 22px;
  font-weight: 700;
}
.demo-invoice {
  background: white;
  border: 1px solid var(--line);
  padding: 25px;
  margin-bottom: 24px;
}
.invoice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #405ca6;
  padding-bottom: 16px;
}
.invoice-head img {
  height: 40px;
  object-fit: contain;
}
.demo-invoice h2 {
  font-size: 20px;
  margin: 22px 0;
}
.demo-invoice footer {
  font-size: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
}
.workshop-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.workshop-job-card {
  background: #f9fbff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.workshop-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.workshop-card-top > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.workshop-card-top > strong {
  font-size: 12px;
  color: var(--muted);
}
.workshop-car {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}
.workshop-need {
  border-block: 1px solid var(--line);
  padding: 14px 0;
}
.workshop-need p {
  margin: 7px 0;
}
.workshop-time-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.workshop-time-row b,
.workshop-time-row small {
  display: block;
  margin-bottom: 8px;
}
.workshop-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
@media (max-width: 1050px) {
  .demo-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trial-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .trial-workspace {
    padding: 24px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sector-hero {
    grid-template-columns: 1fr;
  }
  .sector-hero > img {
    height: 170px;
  }
  .workshop-board-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .demo-top {
    gap: 14px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    font-size: 12px;
  }
  .demo-top img {
    width: 130px;
    height: 32px;
  }
  .demo-top > a:first-child {
    margin: 0;
  }
  .demo-notice {
    justify-content: flex-start;
    gap: 8px;
    font-size: 11px;
  }
  .demo-notice > span:last-child {
    width: 100%;
    padding-inline-start: 16px;
  }
  .catalog-intro {
    margin-top: 38px;
  }
  .catalog-controls {
    grid-template-columns: 1fr;
    padding: 0 18px;
  }
  .demo-catalog {
    grid-template-columns: 1fr;
    padding: 0 18px 40px;
  }
  .demo-card > img {
    height: 180px;
  }
  .trial-layout {
    display: flex;
    flex-direction: column;
  }
  .trial-sidebar {
    position: static;
    max-height: none;
    padding: 14px;
    gap: 14px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }
  .program-identity {
    padding: 0 4px 12px;
    gap: 5px;
  }
  .program-identity strong {
    font-size: 17px;
  }
  .trial-sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    max-width: 100%;
    overscroll-behavior: contain;
  }
  .trial-sidebar nav button {
    white-space: nowrap;
    flex: none;
    font-size: 13px;
    border: 1px solid var(--line);
    padding: 10px 14px;
  }
  .trial-sidebar nav button > span {
    display: none;
  }
  .sidebar-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }
  .sidebar-bottom .secondary {
    font-size: 11px;
    min-height: 36px;
    padding: 7px 12px;
  }
  .sidebar-bottom > a.primary {
    margin-inline-start: auto;
    padding: 8px 12px;
    font-size: 11px;
  }
  .trial-workspace {
    padding: 22px 16px;
  }
  .workspace-title {
    gap: 14px;
    margin-bottom: 18px;
  }
  .workspace-title h1 {
    font-size: 24px;
  }
  .sector-hero > div {
    padding: 24px;
  }
  .sector-hero .actions {
    display: grid;
  }
  .metric-grid {
    gap: 11px;
  }
  .metric-grid article {
    padding: 17px 14px;
  }
  .metric-grid b {
    font-size: 27px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .stage-list {
    grid-template-columns: repeat(2, 1fr);
  }
  dialog {
    padding: 20px;
  }
  .demo-invoice {
    padding: 16px;
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .tabs button {
    white-space: nowrap;
    flex: none;
  }
  .workshop-time-row small {
    font-size: 10px;
  }
  .trial-footer {
    line-height: 1.9;
  }
  #demo-toast {
    font-size: 12px;
    bottom: 12px;
    left: 12px;
    max-width: calc(100vw - 24px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .demo-card {
    transition:
      transform 0.18s,
      box-shadow 0.18s;
  }
  .demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px #20325412;
  }
}
