:root {
  --ink: #4d3533;
  --ink-2: rgba(77, 53, 51, 0.72);
  --ink-3: rgba(77, 53, 51, 0.52);
  --hairline: rgba(77, 53, 51, 0.12);
  --page: #faf8f6;
  --card: #ffffff;
  --soft: rgba(77, 53, 51, 0.045);
  --radius: 16px;
  --font: "IBM Plex Sans Arabic", -apple-system, "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex: 0 0 auto;
  border: 1px solid var(--hairline);
  object-fit: cover;
}

.brand-text { min-width: 0; }

h1 {
  margin: 0;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-fact {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}

.brand-intro {
  margin: 18px 0 0;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* Sections */
.section { margin-top: 44px; }

.label {
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

h2 {
  margin: 0 0 18px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 600;
}

/* Screenshot strip */
.strip {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
  -webkit-overflow-scrolling: touch;
}

.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 99px; }

.strip li {
  flex: 0 0 82%;
  max-width: 420px;
  scroll-snap-align: start;
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(77, 53, 51, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shot:hover { box-shadow: 0 6px 16px rgba(77, 53, 51, 0.12); }
.shot:active { transform: scale(0.995); }

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.caption {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-3);
}

/* Rows */
.rows {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.rows li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.rows li:last-child { border-bottom: 1px solid var(--hairline); }

.rows.numbered li { align-items: flex-start; }

.row-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.row-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.row-detail {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* Bullets */
.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bullets li {
  position: relative;
  padding: 10px 26px 10px 0;
  font-size: 15.5px;
  line-height: 1.7;
  border-top: 1px solid var(--hairline);
}

.bullets li:last-child { border-bottom: 1px solid var(--hairline); }

.bullets li::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.55;
}

/* Callout */
.callout {
  background: var(--soft);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 20px;
}

.callout p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }

.callout-title {
  font-weight: 600;
  color: var(--ink) !important;
  margin-bottom: 4px !important;
  font-size: 15px !important;
}

/* Facts */
.facts { margin: 0 0 22px; }

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
}

.facts > div:last-child { border-bottom: 1px solid var(--hairline); }

.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 500; text-align: left; }

/* CTA */
.cta-wrap { margin: 0; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.cta:hover { opacity: 0.9; }

.cta:focus-visible,
.shot:focus-visible,
.viewer-nav:focus-visible,
.viewer-close:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.closing {
  margin: 40px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-3);
}

/* Viewer */
.viewer {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  background: #170f0e;
  color: #fff;
}

.viewer::backdrop { background: #170f0e; }

.viewer-inner {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 60px 12px 104px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
}

.viewer img {
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: calc(100vh - 176px);
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
}

.viewer.is-zoomed .viewer-inner {
  display: block;
  padding: 60px 12px 104px;
  text-align: center;
}

.viewer img[data-zoom="1"] {
  max-width: none;
  max-height: none;
  width: 230%;
  margin: 0 auto;
  cursor: zoom-out;
}

.viewer-close {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.viewer-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  z-index: 2;
}

.viewer-nav {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.viewer-count { font-size: 14px; font-variant-numeric: tabular-nums; min-width: 46px; text-align: center; }

.viewer-hint {
  position: absolute;
  bottom: 76px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  z-index: 1;
}

@media (min-width: 720px) {
  .page { padding: 48px 24px 64px; }
  .strip li { flex: 0 0 300px; }
  .brand-icon { width: 72px; height: 72px; border-radius: 18px; }
  h2 { font-size: 23px; }
}

@media (max-width: 420px) {
  .brand { gap: 12px; }
  .brand-icon { width: 52px; height: 52px; border-radius: 13px; }
  .brand-intro { font-size: 16px; }
  .strip li { flex: 0 0 88%; }
}
