@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url(fonts/plex-arabic-400.woff2) format('woff2');
  font-weight: 300 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url(fonts/plex-arabic-600.woff2) format('woff2');
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --mauve: #b97a8b;
  --mauve-text: #9a5b6c;
  --ink: #231c1f;
  --body: #4a3f43;
  --bg: #faf6f5;
  --line: #eee3e5;
  --tint: #efe3e6;
  --tile: #f6edf0;
  --sage: #7e9b93;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    'IBM Plex Sans Arabic',
    system-ui,
    -apple-system,
    'Segoe UI',
    Tahoma,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--mauve-text);
  text-decoration: none;
}
h1,
h2,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}
/* Anchors and focused elements land below the sticky header */
html {
  scroll-padding-top: 72px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding-top: 88px;
  padding-bottom: 88px;
}
.head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}
.kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--mauve-text);
}
h2 {
  font-size: 36px;
  line-height: 1.25;
  font-weight: 700;
  text-wrap: balance;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--mauve);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  flex-shrink: 0;
}
.logo img {
  height: 40px;
  width: auto;
}
.nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover,
.btn-line:hover {
  background: rgba(255, 255, 255, 0.16);
}
.actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-inline-start: auto;
}
.btn-line,
.btn-dark,
.btn-light {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.btn-line {
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn-dark {
  background: var(--ink);
}
.btn-dark:hover,
.store:hover {
  background: #000;
}

/* Hero */
.hero {
  background: var(--mauve);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 72px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.badge {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;
}
.lead {
  font-size: 18px;
  line-height: 1.7;
  max-width: 520px;
  text-wrap: pretty;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  min-width: 170px;
  padding: 10px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
}
.store b {
  font-size: 19px;
  font-weight: 600;
}
.phones {
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.phone {
  flex-shrink: 0;
  width: 200px;
  border: 8px solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
  background: var(--tile);
  box-shadow: 0 24px 48px rgba(35, 28, 31, 0.25);
}
.phone img {
  width: 100%;
  height: auto;
}
.phones .phone:first-child {
  transform: translateY(24px);
}
.phones .phone:last-child {
  width: 220px;
  border-radius: 34px;
}

/* About */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px;
  align-items: start;
}
.about .head {
  margin: 0;
}
.about p {
  font-size: 18px;
  line-height: 1.85;
  color: var(--body);
  text-wrap: pretty;
}

/* How it works */
.how {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  counter-reset: step;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  background: var(--bg);
  min-height: 180px;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
  text-wrap: pretty;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mauve);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

/* Categories */
.cats {
  display: grid;
  /* At most 7 columns, so the 13 categories fill 7 + 6 on desktop */
  grid-template-columns: repeat(auto-fill, minmax(max(120px, calc((100% - 72px) / 7)), 1fr));
  gap: 12px;
}
.cats li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}
.cats img {
  width: 100%;
  height: 96px;
  padding: 16px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--tile);
}
.cats span {
  padding: 0 4px 4px;
}

/* App screens */
.screens-section {
  background: var(--tint);
}
.screens {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.screens .phone {
  border-width: 7px;
  border-radius: 30px;
  box-shadow: none;
  scroll-snap-align: start;
}

/* Download & contact */
.download {
  background: var(--sage);
  color: #fff;
}
.download .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 24px;
}
.contact dl {
  margin: 0;
}
.contact dl div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.contact dl div:first-child {
  padding-top: 0;
}
.contact dt {
  font-size: 13px;
  opacity: 0.9;
}
.contact dd {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  text-wrap: balance;
}
.contact dd a {
  color: #fff;
}
.contact dd a:hover {
  color: var(--ink);
}
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.social a {
  height: 40px;
  padding: 0 16px;
  font-weight: 600;
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  background: var(--ink);
  color: #fff;
}
.social .btn-line {
  border-color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer {
  background: var(--ink);
  color: #cfc3c7;
  font-size: 13px;
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.footer a {
  color: #cfc3c7;
}
.footer a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
}
@media (max-width: 640px) {
  .header .wrap {
    gap: 12px;
  }
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  h2 {
    font-size: 28px;
  }
  .lead,
  .about p {
    font-size: 17px;
  }
  .hero .wrap {
    padding-top: 40px;
    padding-bottom: 56px;
  }
  .store {
    flex: 1;
    min-width: 140px;
  }
  .phones {
    height: auto;
    gap: 12px;
    padding-bottom: 24px;
  }
  .phones .phone:first-child {
    width: min(200px, 40vw);
  }
  .phones .phone:last-child {
    width: min(220px, 44vw);
  }
  .cats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .cats li {
    padding: 8px;
    gap: 8px;
    font-size: 14px;
  }
  .cats img {
    height: 72px;
    padding: 12px;
  }
  /* Centre a lone last tile */
  .cats li:nth-child(3n + 1):last-child {
    grid-column: 2;
  }
  .screens .phone {
    width: 170px;
  }
}
@media (max-width: 359px) {
  .cats {
    grid-template-columns: repeat(2, 1fr);
  }
  .cats li:nth-child(3n + 1):last-child {
    grid-column: auto;
  }
}
