:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #667085;
  --soft: #f4f8fb;
  --line: #dbe7f0;
  --card: #ffffff;
  --navy: #0b2341;
  --blue: #1457c8;
  --cyan: #17a8d6;
  --green: #16a36a;
  --green-soft: #e9f8f1;
  --shadow: 0 24px 70px rgba(15, 35, 65, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(23, 168, 214, 0.18), transparent 32rem),
    linear-gradient(180deg, #f8fbfd 0%, #eef5f9 42%, #ffffff 100%);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.guide-page {
  overflow: hidden;
}

.guide-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.guide-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 231, 240, 0.9);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.guide-nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.guide-brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  box-shadow: 0 14px 28px rgba(20, 87, 200, 0.22);
  font-weight: 900;
  letter-spacing: 0;
}

.guide-brand-text strong,
.guide-brand-text span {
  display: block;
}

.guide-brand-text strong {
  font-size: 18px;
}

.guide-brand-text span {
  color: var(--muted);
  font-size: 13px;
  margin-top: -4px;
}

.guide-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #38516e;
  font-size: 14px;
  font-weight: 700;
}

.guide-nav-links a {
  padding: 8px 10px;
  border-radius: var(--radius);
}

.guide-nav-links a:hover {
  background: #edf6fb;
}

.guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.guide-btn:hover {
  transform: translateY(-1px);
}

.guide-btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #0b3e92);
  box-shadow: 0 16px 34px rgba(20, 87, 200, 0.22);
}

.guide-btn.secondary {
  color: var(--navy);
  background: #ffffff;
  border-color: var(--line);
}

.guide-btn.ghost {
  color: var(--navy);
  background: #ecf8fc;
  border-color: #cbeef8;
}

.hero {
  padding: 74px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
  background: var(--green-soft);
  border: 1px solid #c8efdc;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: #465a74;
  font-size: 20px;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.hero-metric strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
}

.hero-metric span {
  color: var(--muted);
  font-size: 13px;
}

.product-visual {
  position: relative;
  min-height: 520px;
  padding: 22px;
  border: 1px solid rgba(219, 231, 240, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 247, 252, 0.92)),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(20, 87, 200, 0.06) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(20, 87, 200, 0.05) 32px);
  box-shadow: var(--shadow);
}

.visual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #2f4b69;
  font-size: 13px;
  font-weight: 900;
}

.visual-dots {
  display: flex;
  gap: 6px;
}

.visual-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #b7c6d5;
}

.visual-board {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 14px;
}

.visual-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 35, 65, 0.08);
}

.omr-preview {
  padding: 18px;
  min-height: 356px;
}

.omr-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6eef5;
}

.omr-head strong,
.omr-head span {
  display: block;
}

.omr-head strong {
  color: var(--navy);
}

.omr-head span {
  color: var(--muted);
  font-size: 12px;
}

.barcode-sample {
  width: 132px;
  height: 34px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 4px, #111 4px 5px, #fff 5px 9px);
  border: 1px solid #111;
}

.bubble-row {
  display: grid;
  grid-template-columns: 34px repeat(5, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 13px;
}

.bubble-row b {
  color: #52667d;
  font-size: 12px;
  text-align: center;
}

.bubble-row span {
  width: 16px;
  height: 16px;
  margin: auto;
  border-radius: 999px;
  border: 2px solid #172234;
  background: #fff;
}

.side-stack {
  display: grid;
  gap: 14px;
}

.mini-panel {
  padding: 16px;
}

.mini-panel strong {
  display: block;
  color: var(--navy);
  margin-bottom: 8px;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #e7eef6;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.visual-list {
  display: grid;
  gap: 9px;
}

.visual-list span {
  display: flex;
  justify-content: space-between;
  color: #4a5d75;
  font-size: 13px;
}

.section {
  padding: 58px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(244, 248, 251, 0.65), rgba(255, 255, 255, 0.9));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 0;
}

.section-head p {
  max-width: 610px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.detail-card,
.safety-card,
.report-card,
.faq-card,
.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 26px rgba(15, 35, 65, 0.06);
}

.feature-card {
  padding: 20px;
  min-height: 160px;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--blue);
  background: #edf5ff;
  font-weight: 900;
  margin-bottom: 12px;
}

.feature-card h3,
.detail-card h3,
.safety-card h3,
.report-card h3,
.step-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 19px;
}

.feature-card p,
.detail-card p,
.safety-card p,
.report-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-pill {
  display: flex;
  gap: 10px;
  align-items: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.feature-pill::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.feature-pill strong {
  display: block;
  color: var(--navy);
  margin-bottom: 2px;
}

.feature-pill span {
  color: var(--muted);
  font-size: 14px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-card {
  padding: 22px;
}

.detail-card.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: center;
}

.tracking-box {
  border-radius: 14px;
  padding: 20px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(11, 35, 65, 0.94), rgba(20, 87, 200, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 255, 255, 0.08) 10px 12px);
}

.tracking-box strong {
  display: block;
  font-size: 28px;
  letter-spacing: 0;
}

.tracking-box span {
  color: rgba(255, 255, 255, 0.78);
}

.clean-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.clean-list li {
  position: relative;
  padding-inline-start: 22px;
  color: #4d6179;
}

.clean-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.step-card {
  counter-increment: step;
  position: relative;
  padding: 18px;
  min-height: 145px;
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: var(--radius);
  font-weight: 900;
}

.print-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  align-items: stretch;
}

.print-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.print-routes {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.print-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2edf5;
  border-radius: var(--radius);
  background: #f9fcfe;
}

.print-route b {
  color: var(--navy);
}

.print-route span {
  color: var(--muted);
  font-size: 13px;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-card {
  padding: 18px;
}

.report-card small {
  color: var(--green);
  font-weight: 900;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.safety-card {
  padding: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-card {
  overflow: hidden;
}

.faq-card summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  color: var(--navy);
  font-weight: 900;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.closing {
  padding: 70px 0 88px;
}

.closing-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), #12499d 62%, #0e8eab);
  box-shadow: var(--shadow);
}

.closing-box::after {
  content: "";
  position: absolute;
  inset: auto -10% -70% auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 56px solid rgba(255, 255, 255, 0.08);
}

.closing-box h2 {
  position: relative;
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 48px);
}

.closing-box p {
  position: relative;
  margin: 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.84);
}

.closing-box .guide-btn {
  position: relative;
  color: var(--navy);
  background: #ffffff;
}

.guide-footer {
  padding: 24px 0;
  color: #617389;
  border-top: 1px solid var(--line);
  background: #ffffff;
  font-size: 14px;
}

.guide-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 1040px) {
  .hero-grid,
  .print-layout,
  .detail-card.wide {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-grid,
  .safety-grid,
  .grid.cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .guide-container {
    width: min(100% - 20px, 1180px);
  }

  .guide-nav-inner,
  .section-head,
  .guide-footer-inner,
  .closing-box {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-metrics,
  .visual-board,
  .feature-list,
  .details-grid,
  .steps,
  .reports-grid,
  .safety-grid,
  .grid.cards-2,
  .grid.cards-3,
  .closing-box {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: auto;
    padding: 14px;
  }

  .omr-preview {
    min-height: auto;
  }

  .guide-btn {
    width: 100%;
  }
}
